From a4b3cb8800e7e511b88bc623ba066eabda6ca004 Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Thu, 16 Jun 2022 01:04:02 +0530 Subject: [PATCH 1/4] refund doc correction --- documents/refund.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/refund.md b/documents/refund.md index debdecf6..3620acac 100644 --- a/documents/refund.md +++ b/documents/refund.md @@ -249,7 +249,7 @@ client.refund.fetch(refundId) ### Update the refund ```py -client.refund.edit({ +client.refund.edit(refundId,{ "notes": { "notes_key_1": "Beam me up Scotty.", "notes_key_2": "Engage" From b6f225a13611e80c0c8de71b582e7e552d276364 Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Fri, 1 Jul 2022 11:49:35 +0530 Subject: [PATCH 2/4] update response parameter --- documents/refund.md | 52 +++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/documents/refund.md b/documents/refund.md index 3620acac..4e1baf08 100644 --- a/documents/refund.md +++ b/documents/refund.md @@ -27,20 +27,24 @@ client.payment.refund(paymentId,{ **Response:** ```json { - "id": "rfnd_FP8QHiV938haTz", + "id": "rfnd_JnzyQwYOOBNJJu", "entity": "refund", - "amount": 500100, - "receipt": "Receipt No. 31", + "amount": 100, "currency": "INR", - "payment_id": "pay_FCXKPFtYfPXJPy", - "notes": [], + "payment_id": "pay_JRSS9bMrRMds3w", + "notes": { + "notes_key_1": "Beam me up Scotty.", + "notes_key_2": "Engage" + }, + "receipt": "#Receipt No. 131", "acquirer_data": { "arn": null }, - "created_at": 1597078866, + "created_at": 1656655960, "batch_id": null, "status": "processed", - "speed_processed": "normal" + "speed_processed": "normal", + "speed_requested": "normal" } ``` ------------------------------------------------------------------------------------------------------- @@ -67,22 +71,20 @@ client.payment.refund(paymentId,{ **Response:** ```json { - "id": "rfnd_FP8R8EGjGbPkVb", + "id": "rfnd_Jo00DtIBzADMi6", "entity": "refund", - "amount": 500100, + "amount": 100, "currency": "INR", - "payment_id": "pay_FC8MmhMBZPKDHF", - "notes": { - "notes_key_1": "Tea, Earl Grey, Hot", - "notes_key_2": "Tea, Earl Grey… decaf." - }, - "receipt": "Receipt No. 31", + "payment_id": "pay_JRP3Y66cNcf2qF", + "notes": [], + "receipt": "#Receipt No. 132", "acquirer_data": { "arn": null }, - "created_at": 1597078914, + "created_at": 1656656062, "batch_id": null, - "status": "processed", + "status": "pending", + "speed_processed": "instant", "speed_requested": "optimum" } ``` @@ -99,10 +101,10 @@ client.payment.fetch_multiple_refund(paymentId,option) | Name | Type | Description | |-------|-----------|--------------------------------------------------| | paymentId* | string | The id of the payment | -| from | timestamp | timestamp after which the payments were created | -| to | timestamp | timestamp before which the payments were created | -| count | integer | number of payments to fetch (default: 10) | -| skip | integer | number of payments to be skipped (default: 0) | +| from | timestamp | timestamp after which the refunds were created | +| to | timestamp | timestamp before which the refunds were created | +| count | integer | number of refunds to fetch (default: 10) | +| skip | integer | number of refunds to be skipped (default: 0) | **Refund:** ```json @@ -179,10 +181,10 @@ client.refund.all(options) | Name | Type | Description | |-------|-----------|--------------------------------------------------| -| from | timestamp | timestamp after which the payments were created | -| to | timestamp | timestamp before which the payments were created | -| count | integer | number of payments to fetch (default: 10) | -| skip | integer | number of payments to be skipped (default: 0) | +| from | timestamp | timestamp after which the refunds were created | +| to | timestamp | timestamp before which the refunds were created | +| count | integer | number of refunds to fetch (default: 10) | +| skip | integer | number of refunds to be skipped (default: 0) | **Response:** ```json From e6fa144f240886adf55e99d74c2fb89c7aacb4ef Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Fri, 1 Jul 2022 18:28:48 +0530 Subject: [PATCH 3/4] response param change --- documents/refund.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/refund.md b/documents/refund.md index 4e1baf08..31878268 100644 --- a/documents/refund.md +++ b/documents/refund.md @@ -10,7 +10,7 @@ client.payment.refund(paymentId,{ "notes_key_1": "Beam me up Scotty.", "notes_key_2": "Engage" }, - "receipt": "Receipt No. 31" + "receipt": "#Receipt No. 131" }) ``` From 45aac00251ba4a9bdb8d0862110b4f276369087b Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Fri, 1 Jul 2022 18:42:15 +0530 Subject: [PATCH 4/4] response param update --- documents/refund.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/refund.md b/documents/refund.md index 31878268..9914e0af 100644 --- a/documents/refund.md +++ b/documents/refund.md @@ -55,7 +55,7 @@ client.payment.refund(paymentId,{ client.payment.refund(paymentId,{ "amount": "100", "speed": "optimum", - "receipt": "Receipt No. 31" + "receipt": "#Receipt No. 132" }) ```