From 2c9cc0ea508ebc9c930506ceb79ffa471a65508b Mon Sep 17 00:00:00 2001 From: andrew-paystack Date: Thu, 22 May 2025 13:42:57 +0300 Subject: [PATCH 1/2] update preauth responses --- src/api/preauthorization/reserve/response.json | 7 +++++-- src/api/preauthorization/verify/response.json | 5 ++++- src/doc/payments/preauthorization/reserve/index.json | 7 +++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/api/preauthorization/reserve/response.json b/src/api/preauthorization/reserve/response.json index 088011c..87e8945 100644 --- a/src/api/preauthorization/reserve/response.json +++ b/src/api/preauthorization/reserve/response.json @@ -16,7 +16,7 @@ }, "created_at": "2023-08-24T19:00:18.000Z", "released_at": null, - "scheduled_release_date": "2023-08-25T19:00:26.000Z", + "expiry_date": "2023-08-25T19:00:26.000Z", "currency": "ZAR", "metadata": null, "fees": 0, @@ -47,7 +47,10 @@ "international_format_phone": null }, "merchant_id": 210002, - "merchant_name": "ABC merchant" + "merchant_name": "ABC merchant", + "expire_action": "release", + "split_code": null, + "split": null } } }, diff --git a/src/api/preauthorization/verify/response.json b/src/api/preauthorization/verify/response.json index 0f3a59b..072f40c 100644 --- a/src/api/preauthorization/verify/response.json +++ b/src/api/preauthorization/verify/response.json @@ -43,7 +43,10 @@ "international_format_phone": null }, "merchant_id": 210002, - "merchant_name": "ABC merchant" + "merchant_name": "ABC merchant", + "expire_action": "release", + "split_code": null, + "split": null } } }, diff --git a/src/doc/payments/preauthorization/reserve/index.json b/src/doc/payments/preauthorization/reserve/index.json index 8f4f279..26fc09f 100644 --- a/src/doc/payments/preauthorization/reserve/index.json +++ b/src/doc/payments/preauthorization/reserve/index.json @@ -13,7 +13,7 @@ }, "created_at": "2023-08-24T19:00:18.000Z", "released_at": null, - "scheduled_release_date": "2023-08-25T19:00:26.000Z", + "expiry_date": "2023-08-25T19:00:26.000Z", "currency": "ZAR", "metadata": null, "fees": 0, @@ -44,6 +44,9 @@ "international_format_phone": null }, "merchant_id": 210002, - "merchant_name": "ABC merchant" + "merchant_name": "ABC merchant", + "expire_action": "release", + "split_code": null, + "split": null } } \ No newline at end of file From 0049d5b3521a19acad698a752ad54a2e5fe891db Mon Sep 17 00:00:00 2001 From: andrew-paystack Date: Thu, 22 May 2025 13:44:37 +0300 Subject: [PATCH 2/2] build the updated responses --- dist/api/preauthorization/reserve/response.json | 7 +++++-- dist/api/preauthorization/verify/response.json | 5 ++++- dist/doc/payments/preauthorization/reserve.js | 7 +++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/dist/api/preauthorization/reserve/response.json b/dist/api/preauthorization/reserve/response.json index 088011c..87e8945 100644 --- a/dist/api/preauthorization/reserve/response.json +++ b/dist/api/preauthorization/reserve/response.json @@ -16,7 +16,7 @@ }, "created_at": "2023-08-24T19:00:18.000Z", "released_at": null, - "scheduled_release_date": "2023-08-25T19:00:26.000Z", + "expiry_date": "2023-08-25T19:00:26.000Z", "currency": "ZAR", "metadata": null, "fees": 0, @@ -47,7 +47,10 @@ "international_format_phone": null }, "merchant_id": 210002, - "merchant_name": "ABC merchant" + "merchant_name": "ABC merchant", + "expire_action": "release", + "split_code": null, + "split": null } } }, diff --git a/dist/api/preauthorization/verify/response.json b/dist/api/preauthorization/verify/response.json index 0f3a59b..072f40c 100644 --- a/dist/api/preauthorization/verify/response.json +++ b/dist/api/preauthorization/verify/response.json @@ -43,7 +43,10 @@ "international_format_phone": null }, "merchant_id": 210002, - "merchant_name": "ABC merchant" + "merchant_name": "ABC merchant", + "expire_action": "release", + "split_code": null, + "split": null } } }, diff --git a/dist/doc/payments/preauthorization/reserve.js b/dist/doc/payments/preauthorization/reserve.js index f0c1f1c..26611a2 100644 --- a/dist/doc/payments/preauthorization/reserve.js +++ b/dist/doc/payments/preauthorization/reserve.js @@ -93,7 +93,7 @@ const json = `{ }, "created_at": "2023-08-24T19:00:18.000Z", "released_at": null, - "scheduled_release_date": "2023-08-25T19:00:26.000Z", + "expiry_date": "2023-08-25T19:00:26.000Z", "currency": "ZAR", "metadata": null, "fees": 0, @@ -124,7 +124,10 @@ const json = `{ "international_format_phone": null }, "merchant_id": 210002, - "merchant_name": "ABC merchant" + "merchant_name": "ABC merchant", + "expire_action": "release", + "split_code": null, + "split": null } }`