From 966eb6bbd01310f15cd1565ca78d6822a1788159 Mon Sep 17 00:00:00 2001 From: appscisumup Date: Thu, 21 May 2026 10:57:56 +0000 Subject: [PATCH 1/2] chore: synced local 'openapi.json' with remote 'specs/openapi.json' --- openapi.json | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) 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", From a16d8cea794576eee8f588283923f6928b24ec52 Mon Sep 17 00:00:00 2001 From: "sumup-bot[bot]" <241716704+sumup-bot[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 10:59:27 +0000 Subject: [PATCH 2/2] chore: generate code --- src/Types/TransactionBase.php | 5 +++++ src/Types/TransactionBaseStatus.php | 7 +++++++ src/Types/TransactionFull.php | 5 +++++ src/Types/TransactionHistory.php | 5 +++++ 4 files changed, 22 insertions(+) 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 */