Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7180,14 +7180,7 @@
"example": "2020-02-29T10:56:56.876Z"
},
"status": {
"description": "Current status of the transaction.",
"type": "string",
"enum": [
"SUCCESSFUL",
"CANCELLED",
"FAILED",
"PENDING"
]
"$ref": "#/components/schemas/TransactionStatus"
},
"payment_type": {
"$ref": "#/components/schemas/PaymentType"
Expand Down Expand Up @@ -7650,6 +7643,18 @@
],
"title": "Currency"
},
"TransactionStatus": {
"description": "Current status of the transaction.\n\n- `PENDING`: The transaction has been created but its final outcome is not known yet.\n- `SUCCESSFUL`: The transaction completed successfully.\n- `CANCELLED`: The transaction was cancelled or otherwise reversed before completion.\n- `FAILED`: The transaction attempt did not complete successfully.\n- `REFUNDED`: The transaction was refunded in full or in part.",
"type": "string",
"enum": [
"SUCCESSFUL",
"CANCELLED",
"FAILED",
"PENDING",
"REFUNDED"
],
"title": "Transaction Status"
},
"EventType": {
"description": "Type of the transaction event.",
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions src/Types/TransactionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ class TransactionBase

/**
* Current status of the transaction.
* - `PENDING`: The transaction has been created but its final outcome is not known yet.
* - `SUCCESSFUL`: The transaction completed successfully.
* - `CANCELLED`: The transaction was cancelled or otherwise reversed before completion.
* - `FAILED`: The transaction attempt did not complete successfully.
* - `REFUNDED`: The transaction was refunded in full or in part.
*
* @var TransactionBaseStatus|null
*/
Expand Down
7 changes: 7 additions & 0 deletions src/Types/TransactionBaseStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@

/**
* Current status of the transaction.
*
* - `PENDING`: The transaction has been created but its final outcome is not known yet.
* - `SUCCESSFUL`: The transaction completed successfully.
* - `CANCELLED`: The transaction was cancelled or otherwise reversed before completion.
* - `FAILED`: The transaction attempt did not complete successfully.
* - `REFUNDED`: The transaction was refunded in full or in part.
*/
enum TransactionBaseStatus: string
{
case SUCCESSFUL = 'SUCCESSFUL';
case CANCELLED = 'CANCELLED';
case FAILED = 'FAILED';
case PENDING = 'PENDING';
case REFUNDED = 'REFUNDED';
}
5 changes: 5 additions & 0 deletions src/Types/TransactionFull.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ class TransactionFull

/**
* Current status of the transaction.
* - `PENDING`: The transaction has been created but its final outcome is not known yet.
* - `SUCCESSFUL`: The transaction completed successfully.
* - `CANCELLED`: The transaction was cancelled or otherwise reversed before completion.
* - `FAILED`: The transaction attempt did not complete successfully.
* - `REFUNDED`: The transaction was refunded in full or in part.
*
* @var string|null
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Types/TransactionHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ class TransactionHistory

/**
* Current status of the transaction.
* - `PENDING`: The transaction has been created but its final outcome is not known yet.
* - `SUCCESSFUL`: The transaction completed successfully.
* - `CANCELLED`: The transaction was cancelled or otherwise reversed before completion.
* - `FAILED`: The transaction attempt did not complete successfully.
* - `REFUNDED`: The transaction was refunded in full or in part.
*
* @var string|null
*/
Expand Down
Loading