Structure containing data used to update a payment.
The following example updates a payment status to "canceled":
$updateStruct = new PaymentUpdateStruct();
$updateStruct->setTransition('cancel');
$payment = $paymentService->updatePayment($payment, $updateStruct);
    Tags
Methods¶
                
__construct()
            ¶
    
        Construct object optionally with a set of properties.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $transition | string|null | null | - | 
| $identifier | string|null | null | - | 
| $owner | UserReference|null | null | - | 
| $context | MapInterface<string, mixed>|null | null | - | 
                
getContext()
            ¶
    
        Returns a new context for a payment. If not set, the context will not be updated.
| 
                     | 
                
                    
                     | 
            
The context is a set of key-value pairs that can be used to store additional information about the payment.
Return values
MapInterface<string, mixed>|null
                
getIdentifier()
            ¶
    
        Returns the payment identifier. If not set, the identifier will not be updated.
| 
                     | 
                
                    
                     | 
            
Return values
string|null
                
getOwner()
            ¶
    
        Returns the user who owns the payment. If not set, the owner will not be updated.
| 
                     | 
                
                    
                     | 
            
Return values
UserReference|null
                
getTransition()
            ¶
    
        Returns the transition to be applied to the payment (if not set, the transition will not be updated).
| 
                     | 
                
                    
                     | 
            
Return values
string|null
                
setContext()
            ¶
    
        Sets new context for a payment. If not set, the context will not be updated.
| 
                     | 
                
                    
                     | 
            
The context is a set of key-value pairs that can be used to store additional information about the payment.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $context | MapInterface<string, mixed>|null | - | - | 
                
setIdentifier()
            ¶
    
        Sets the payment identifier. If not set, the identifier will not be updated.
| 
                     | 
                
                    
                     | 
            
Identifier must be unique and contain only alphanumeric characters, hyphen, dashes, and underscores. Maximum allowed identifier length is 64 characters.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $identifier | string|null | - | - | 
                
setOwner()
            ¶
    
        Sets the user who owns the payment. If not set, the owner will not be updated.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $owner | UserReference|null | - | - | 
                
setTransition()
            ¶
    
        Sets the transition to be applied to the payment (if not set, the transition will not be updated).
| 
                     | 
                
                    
                     | 
            
The transition must be valid transition identifier according to workflow definition associated with payment.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $transition | string|null | - | - | 
                
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>
Attributes
- #[Ignore]