diff --git a/openapi.json b/openapi.json index e2bd9d5..7cdc6b1 100755 --- a/openapi.json +++ b/openapi.json @@ -8080,12 +8080,13 @@ "description": "Status of the transaction event.", "type": "string", "enum": [ - "PENDING", - "SCHEDULED", "FAILED", + "PAID_OUT", + "PENDING", + "RECONCILED", "REFUNDED", - "SUCCESSFUL", - "PAID_OUT" + "SCHEDULED", + "SUCCESSFUL" ], "title": "Event Status" }, @@ -9739,6 +9740,32 @@ "description": "Reader Checkout", "type": "object", "properties": { + "aade": { + "description": "Optional object containing data for transactions from ERP integrators in Greece that comply with the AADE 1155 protocol.\nWhen such regulatory/business requirements apply, this object must be provided and contains the data needed to validate the transaction with the AADE signature provider.\n", + "type": "object", + "properties": { + "provider_id": { + "description": "The identifier of the AADE signature provider.", + "type": "string", + "example": "123" + }, + "signature": { + "description": "The base64 encoded signature of the transaction data.", + "type": "string", + "example": "QjcxRDdBNTU1MDcyRTNFRTREMkZEM0Y0NTdBMjkxMTU4MzBFNkNCQTs7MjAyNTExMTIyMTQ3MTM7Nzk2OzEwNDs5MDA7OTAwOzU0ODg5MDM5" + }, + "signature_data": { + "description": "The string containing the signed transaction data.", + "type": "string", + "example": "B71D7A555072E3EE4D2FD3F457A29115830E6CBA;;20251112214713;796;104;900;900;54889039" + } + }, + "required": [ + "provider_id", + "signature", + "signature_data" + ] + }, "affiliate": { "description": "Affiliate metadata for the transaction.\nIt is a field that allow for integrators to track the source of the transaction.\n", "type": "object", @@ -9855,6 +9882,11 @@ } }, "example": { + "aade": { + "provider_id": "123", + "signature": "QjcxRDdBNTU1MDcyRTNFRTREMkZEM0Y0NTdBMjkxMTU4MzBFNkNCQTs7MjAyNTExMTIyMTQ3MTM7Nzk2OzEwNDs5MDA7OTAwOzU0ODg5MDM5", + "signature_data": "B71D7A555072E3EE4D2FD3F457A29115830E6CBA;;20251112214713;796;104;900;900;54889039" + }, "affiliate": { "app_id": "com.example.app", "foreign_transaction_id": "123456", diff --git a/src/Types/CreateReaderCheckoutRequest.php b/src/Types/CreateReaderCheckoutRequest.php index 5564b40..e318c93 100644 --- a/src/Types/CreateReaderCheckoutRequest.php +++ b/src/Types/CreateReaderCheckoutRequest.php @@ -9,6 +9,14 @@ */ class CreateReaderCheckoutRequest { + /** + * Optional object containing data for transactions from ERP integrators in Greece that comply with the AADE 1155 protocol. + * When such regulatory/business requirements apply, this object must be provided and contains the data needed to validate the transaction with the AADE signature provider. + * + * @var array|null + */ + public ?array $aade = null; + /** * Affiliate metadata for the transaction. * It is a field that allow for integrators to track the source of the transaction. diff --git a/src/Types/EventStatus.php b/src/Types/EventStatus.php index 86d991d..85701f9 100644 --- a/src/Types/EventStatus.php +++ b/src/Types/EventStatus.php @@ -9,10 +9,11 @@ */ enum EventStatus: string { - case PENDING = 'PENDING'; - case SCHEDULED = 'SCHEDULED'; case FAILED = 'FAILED'; + case PAID_OUT = 'PAID_OUT'; + case PENDING = 'PENDING'; + case RECONCILED = 'RECONCILED'; case REFUNDED = 'REFUNDED'; + case SCHEDULED = 'SCHEDULED'; case SUCCESSFUL = 'SUCCESSFUL'; - case PAID_OUT = 'PAID_OUT'; } diff --git a/src/Types/ReceiptEventStatus.php b/src/Types/ReceiptEventStatus.php index c7db2f6..7699b62 100644 --- a/src/Types/ReceiptEventStatus.php +++ b/src/Types/ReceiptEventStatus.php @@ -9,10 +9,11 @@ */ enum ReceiptEventStatus: string { - case PENDING = 'PENDING'; - case SCHEDULED = 'SCHEDULED'; case FAILED = 'FAILED'; + case PAID_OUT = 'PAID_OUT'; + case PENDING = 'PENDING'; + case RECONCILED = 'RECONCILED'; case REFUNDED = 'REFUNDED'; + case SCHEDULED = 'SCHEDULED'; case SUCCESSFUL = 'SUCCESSFUL'; - case PAID_OUT = 'PAID_OUT'; } diff --git a/src/Types/TransactionEventStatus.php b/src/Types/TransactionEventStatus.php index 6b61efa..0c1bd94 100644 --- a/src/Types/TransactionEventStatus.php +++ b/src/Types/TransactionEventStatus.php @@ -9,10 +9,11 @@ */ enum TransactionEventStatus: string { - case PENDING = 'PENDING'; - case SCHEDULED = 'SCHEDULED'; case FAILED = 'FAILED'; + case PAID_OUT = 'PAID_OUT'; + case PENDING = 'PENDING'; + case RECONCILED = 'RECONCILED'; case REFUNDED = 'REFUNDED'; + case SCHEDULED = 'SCHEDULED'; case SUCCESSFUL = 'SUCCESSFUL'; - case PAID_OUT = 'PAID_OUT'; }