From 1e890ffa5ec1f0b7866f415ba279dcebbd704ff3 Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Tue, 16 Apr 2024 16:44:11 +0200 Subject: [PATCH] spec release --- json/PaymentService-v25.json | 2 +- json/PaymentService-v30.json | 2 +- json/PaymentService-v40.json | 2 +- json/PaymentService-v46.json | 2 +- json/PaymentService-v49.json | 2 +- json/PaymentService-v50.json | 2 +- json/PaymentService-v51.json | 2 +- json/PaymentService-v52.json | 2 +- json/PaymentService-v64.json | 4 ++-- json/PaymentService-v67.json | 4 ++-- json/PaymentService-v68.json | 19 ++++++++++++++++--- yaml/PaymentService-v25.yaml | 8 ++++---- yaml/PaymentService-v30.yaml | 8 ++++---- yaml/PaymentService-v40.yaml | 8 ++++---- yaml/PaymentService-v46.yaml | 8 ++++---- yaml/PaymentService-v49.yaml | 8 ++++---- yaml/PaymentService-v50.yaml | 8 ++++---- yaml/PaymentService-v51.yaml | 8 ++++---- yaml/PaymentService-v52.yaml | 8 ++++---- yaml/PaymentService-v64.yaml | 13 ++++++------- yaml/PaymentService-v67.yaml | 13 ++++++------- yaml/PaymentService-v68.yaml | 30 +++++++++++++++++++++++------- 22 files changed, 95 insertions(+), 68 deletions(-) diff --git a/json/PaymentService-v25.json b/json/PaymentService-v25.json index e43bdfb2..8f757766 100644 --- a/json/PaymentService-v25.json +++ b/json/PaymentService-v25.json @@ -2331,7 +2331,7 @@ "additionalProperties" : false, "properties" : { "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v30.json b/json/PaymentService-v30.json index 59318031..bd3f81cb 100644 --- a/json/PaymentService-v30.json +++ b/json/PaymentService-v30.json @@ -2681,7 +2681,7 @@ "additionalProperties" : false, "properties" : { "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v40.json b/json/PaymentService-v40.json index 5ed56a6b..5c542c6b 100644 --- a/json/PaymentService-v40.json +++ b/json/PaymentService-v40.json @@ -3340,7 +3340,7 @@ "additionalProperties" : false, "properties" : { "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v46.json b/json/PaymentService-v46.json index 32824c40..9ae45cbe 100644 --- a/json/PaymentService-v46.json +++ b/json/PaymentService-v46.json @@ -3360,7 +3360,7 @@ "additionalProperties" : false, "properties" : { "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v49.json b/json/PaymentService-v49.json index bf161e7a..e7099f10 100644 --- a/json/PaymentService-v49.json +++ b/json/PaymentService-v49.json @@ -3360,7 +3360,7 @@ "additionalProperties" : false, "properties" : { "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v50.json b/json/PaymentService-v50.json index 15182a18..1adc18c5 100644 --- a/json/PaymentService-v50.json +++ b/json/PaymentService-v50.json @@ -3370,7 +3370,7 @@ "additionalProperties" : false, "properties" : { "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v51.json b/json/PaymentService-v51.json index ce814359..8f8915a1 100644 --- a/json/PaymentService-v51.json +++ b/json/PaymentService-v51.json @@ -3516,7 +3516,7 @@ "additionalProperties" : false, "properties" : { "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v52.json b/json/PaymentService-v52.json index 81740663..75b35bb6 100644 --- a/json/PaymentService-v52.json +++ b/json/PaymentService-v52.json @@ -3516,7 +3516,7 @@ "additionalProperties" : false, "properties" : { "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v64.json b/json/PaymentService-v64.json index 34f301de..22d899b0 100644 --- a/json/PaymentService-v64.json +++ b/json/PaymentService-v64.json @@ -3595,7 +3595,7 @@ "properties" : { "plan" : { "x-addedInVersion" : "64", - "description" : "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values:\n* **regular**\n* **revolving**\n", + "description" : "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan).\nand [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico).\nBy default, this is set to **regular**.\n", "enum" : [ "regular", "revolving" @@ -3603,7 +3603,7 @@ "type" : "string" }, "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v67.json b/json/PaymentService-v67.json index 648edfad..c22eb8f4 100644 --- a/json/PaymentService-v67.json +++ b/json/PaymentService-v67.json @@ -3595,7 +3595,7 @@ "properties" : { "plan" : { "x-addedInVersion" : "64", - "description" : "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values:\n* **regular**\n* **revolving**\n", + "description" : "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan).\nand [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico).\nBy default, this is set to **regular**.\n", "enum" : [ "regular", "revolving" @@ -3603,7 +3603,7 @@ "type" : "string" }, "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/json/PaymentService-v68.json b/json/PaymentService-v68.json index ff93b1bd..0be9a646 100644 --- a/json/PaymentService-v68.json +++ b/json/PaymentService-v68.json @@ -3754,17 +3754,30 @@ "Installments" : { "additionalProperties" : false, "properties" : { + "extra" : { + "x-addedInVersion" : "68", + "description" : "Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later.\nUsed for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico)\n", + "format" : "int32", + "type" : "integer" + }, "plan" : { "x-addedInVersion" : "64", - "description" : "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values:\n* **regular**\n* **revolving**\n", + "description" : "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan).\nand [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico).\nBy default, this is set to **regular**.\n", "enum" : [ + "buynow_paylater", + "interes_refund_prctg", + "interest_bonus", + "nointeres_refund_prctg", + "nointerest_bonus", + "refund_prctg", "regular", - "revolving" + "revolving", + "with_interest" ], "type" : "string" }, "value" : { - "description" : "Defines the number of installments. Its value needs to be greater than zero.\n\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.", + "description" : "Defines the number of installments.\nUsually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.\nThis value can be zero for Installments processed in Mexico.", "format" : "int32", "type" : "integer" } diff --git a/yaml/PaymentService-v25.yaml b/yaml/PaymentService-v25.yaml index 99bb9a44..da4a88ae 100644 --- a/yaml/PaymentService-v25.yaml +++ b/yaml/PaymentService-v25.yaml @@ -2661,13 +2661,13 @@ components: additionalProperties: false properties: value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v30.yaml b/yaml/PaymentService-v30.yaml index 74a2b65d..190f9ae0 100644 --- a/yaml/PaymentService-v30.yaml +++ b/yaml/PaymentService-v30.yaml @@ -2910,13 +2910,13 @@ components: additionalProperties: false properties: value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v40.yaml b/yaml/PaymentService-v40.yaml index 699e2407..0783a5e8 100644 --- a/yaml/PaymentService-v40.yaml +++ b/yaml/PaymentService-v40.yaml @@ -3490,13 +3490,13 @@ components: additionalProperties: false properties: value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v46.yaml b/yaml/PaymentService-v46.yaml index 8608ac9a..9d338551 100644 --- a/yaml/PaymentService-v46.yaml +++ b/yaml/PaymentService-v46.yaml @@ -3510,13 +3510,13 @@ components: additionalProperties: false properties: value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v49.yaml b/yaml/PaymentService-v49.yaml index 8d7f2a47..e11f8514 100644 --- a/yaml/PaymentService-v49.yaml +++ b/yaml/PaymentService-v49.yaml @@ -3510,13 +3510,13 @@ components: additionalProperties: false properties: value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v50.yaml b/yaml/PaymentService-v50.yaml index f7f31a40..c46cf4e3 100644 --- a/yaml/PaymentService-v50.yaml +++ b/yaml/PaymentService-v50.yaml @@ -3527,13 +3527,13 @@ components: additionalProperties: false properties: value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v51.yaml b/yaml/PaymentService-v51.yaml index 5bfde016..ce4d5e51 100644 --- a/yaml/PaymentService-v51.yaml +++ b/yaml/PaymentService-v51.yaml @@ -3619,13 +3619,13 @@ components: additionalProperties: false properties: value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v52.yaml b/yaml/PaymentService-v52.yaml index c971128e..8901a0dc 100644 --- a/yaml/PaymentService-v52.yaml +++ b/yaml/PaymentService-v52.yaml @@ -3619,13 +3619,13 @@ components: additionalProperties: false properties: value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v64.yaml b/yaml/PaymentService-v64.yaml index 4d3e41de..04ac72d1 100644 --- a/yaml/PaymentService-v64.yaml +++ b/yaml/PaymentService-v64.yaml @@ -3697,11 +3697,10 @@ components: plan: x-addedInVersion: '64' description: 'The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - By default, this is set to **regular**. Possible values: - * **regular** + and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * **revolving** + By default, this is set to **regular**. ' enum: @@ -3709,13 +3708,13 @@ components: - revolving type: string value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v67.yaml b/yaml/PaymentService-v67.yaml index 0e441f69..74393f1c 100644 --- a/yaml/PaymentService-v67.yaml +++ b/yaml/PaymentService-v67.yaml @@ -3697,11 +3697,10 @@ components: plan: x-addedInVersion: '64' description: 'The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - By default, this is set to **regular**. Possible values: - * **regular** + and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * **revolving** + By default, this is set to **regular**. ' enum: @@ -3709,13 +3708,13 @@ components: - revolving type: string value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: diff --git a/yaml/PaymentService-v68.yaml b/yaml/PaymentService-v68.yaml index 9c924b86..5350e43b 100644 --- a/yaml/PaymentService-v68.yaml +++ b/yaml/PaymentService-v68.yaml @@ -3863,28 +3863,44 @@ components: Installments: additionalProperties: false properties: + extra: + x-addedInVersion: '68' + description: 'Defines the bonus percentage, refund percentage or if the + transaction is Buy now Pay later. + + Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico) + + ' + format: int32 + type: integer plan: x-addedInVersion: '64' description: 'The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). - By default, this is set to **regular**. Possible values: - * **regular** + and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). - * **revolving** + By default, this is set to **regular**. ' enum: + - buynow_paylater + - interes_refund_prctg + - interest_bonus + - nointeres_refund_prctg + - nointerest_bonus + - refund_prctg - regular - revolving + - with_interest type: string value: - description: 'Defines the number of installments. Its value needs to be - greater than zero. - + description: 'Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. - The acquirer sets this upper limit, so its value may vary.' + The acquirer sets this upper limit, so its value may vary. + + This value can be zero for Installments processed in Mexico.' format: int32 type: integer required: