Structure containing data used to update a payment method.
The following example updates a payment method name to "Updated name":
$updateStruct = new PaymentMethodUpdateStruct();
$updateStruct->setName('eng-GB', 'Updated name');
$paymentMethod = $paymentMethodService->updatePaymentMethod($paymentMethod, $updateStruct);
Tags
Methods¶
__construct()
¶
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties as they are not writable anymore after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string|int, mixed> | [] | - |
getDescriptions()
¶
Returns updated descriptions or null if the payment method descriptions should not be updated.
|
|
Return values
array<string, string|null>|null
getIdentifier()
¶
Returns updated identifier or null if the identifier should not be updated.
|
|
Return values
string|null
getNames()
¶
Returns updated names or null if the payment method names should not be updated.
|
|
Return values
array<string, string|null>|null
getOptions()
¶
Returns updated options or null if the payment method options should not be updated.
|
|
Return values
MapInterface<string, mixed>|null
isEnabled()
¶
Returns updated enabled status or null if the enabled status should not be updated.
|
|
Return values
bool|null
setDescriptions()
¶
Set new descriptions for the payment methods.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$descriptions | array<string, string|null>|null | - | - |
setEnabled()
¶
Sets new enabled status for the payment method.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$enabled | bool|null | - | - |
setIdentifier()
¶
Sets new identifier for the payment method.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$identifier | string|null | - | - |
setNames()
¶
Sets new names for the payment methods.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$names | array<string, string|null>|null | - | - |
setOptions()
¶
Sets new options for the payment method.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$options | MapInterface<string, mixed>|null | - | - |
getProperties()
¶
Function where list of properties are returned.
|
|
Used by attributes(), override to add dynamic properties
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<string|int, mixed> | [] |
Additional dynamic properties exposed on the object |
Return values
array<string|int, mixed>