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()
            ¶
    
        Construct object optionally with a set of properties.
|  |  | 
Readonly properties values must be set using $properties as they aren't writable anymore
after object has been created.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $properties | array<string, mixed> | [] | - | 
                 getDescriptions()
            ¶
getDescriptions()
            ¶
    
        Returns updated descriptions or null if the payment method descriptions should not be updated.
|  |  | 
Return values
array<string, string|null>|null
                 getIdentifier()
            ¶
getIdentifier()
            ¶
    
        Returns updated identifier or null if the identifier should not be updated.
|  |  | 
Return values
string|null
                 getNames()
            ¶
getNames()
            ¶
    
        Returns updated names or null if the payment method names should not be updated.
|  |  | 
Return values
array<string, string|null>|null
                 getOptions()
            ¶
getOptions()
            ¶
    
        Returns updated options or null if the payment method options should not be updated.
|  |  | 
Return values
MapInterface<string, mixed>|null
                 isEnabled()
            ¶
isEnabled()
            ¶
    
        Returns updated enabled status or null if the enabled status should not be updated.
|  |  | 
Return values
bool|null
                 setDescriptions()
            ¶
setDescriptions()
            ¶
    
        Set new descriptions for the payment methods.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $descriptions | array<string, string|null>|null | - | - | 
                 setEnabled()
            ¶
setEnabled()
            ¶
    
        Sets new enabled status for the payment method.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $enabled | bool|null | - | - | 
                 setIdentifier()
            ¶
setIdentifier()
            ¶
    
        Sets new identifier for the payment method.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $identifier | string|null | - | - | 
                 setNames()
            ¶
setNames()
            ¶
    
        Sets new names for the payment methods.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $names | array<string, string|null>|null | - | - | 
                 setOptions()
            ¶
setOptions()
            ¶
    
        Sets new options for the payment method.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $options | MapInterface<string, mixed>|null | - | - | 
                 getProperties()
            ¶
getProperties()
            ¶
    
        Returns list of available properties' names.
|  |  | 
Override to add dynamic properties.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $dynamicProperties | array<int, string> | [] | Additional dynamic properties exposed on the object | 
Return values
array<int, string>