diff --git a/openapi.json b/openapi.json index cc9d3e6..3217c6b 100755 --- a/openapi.json +++ b/openapi.json @@ -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" @@ -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", diff --git a/src/Types/TransactionBase.php b/src/Types/TransactionBase.php index 4178990..17c0c2b 100644 --- a/src/Types/TransactionBase.php +++ b/src/Types/TransactionBase.php @@ -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 */ diff --git a/src/Types/TransactionBaseStatus.php b/src/Types/TransactionBaseStatus.php index 633289a..b4f91e1 100644 --- a/src/Types/TransactionBaseStatus.php +++ b/src/Types/TransactionBaseStatus.php @@ -6,6 +6,12 @@ /** * 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 { @@ -13,4 +19,5 @@ enum TransactionBaseStatus: string case CANCELLED = 'CANCELLED'; case FAILED = 'FAILED'; case PENDING = 'PENDING'; + case REFUNDED = 'REFUNDED'; } diff --git a/src/Types/TransactionFull.php b/src/Types/TransactionFull.php index 0c65c31..b4d2612 100644 --- a/src/Types/TransactionFull.php +++ b/src/Types/TransactionFull.php @@ -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 */ diff --git a/src/Types/TransactionHistory.php b/src/Types/TransactionHistory.php index 6340405..ca9a69f 100644 --- a/src/Types/TransactionHistory.php +++ b/src/Types/TransactionHistory.php @@ -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 */