From 63028e90a0b73a4ad71b8388548adad00fd42981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Gon=C3=A7alves?= Date: Tue, 26 Nov 2024 08:52:49 -0300 Subject: [PATCH] oas update --- openAPI/merchants_api.yml | 19 +++++++++++++++++++ ..._api_ON_HOLD.yml => merchants_api_OLD.yml} | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) rename openAPI/{merchants_api_ON_HOLD.yml => merchants_api_OLD.yml} (98%) diff --git a/openAPI/merchants_api.yml b/openAPI/merchants_api.yml index 48ea9a4..989a9a0 100644 --- a/openAPI/merchants_api.yml +++ b/openAPI/merchants_api.yml @@ -184,6 +184,9 @@ paths: > > When creating a payment link, you can implicitly create a plan by providing details such as `amount` and `currency`. + > 🚧 Account-specific Paylinks + > + > Create an account-specific paylink by adding either `account_ref` or `account_ids`. Its important to note that you cannot add both. consumes: - application/json produces: @@ -2275,8 +2278,24 @@ definitions: example: https://webhook.site/b09eec23-3f7a-4f0c-aec6-84c277c5eb78 paylinks.CreatePaymentLinkRequest: + required: + - name + - amount + - currency type: object properties: + account_ids: + items: + type: integer + type: array + description: | + A list of account IDs to associate with the payment link. Use this to attach specific accounts to the payment link, making it account-specific. + ⚠️ Either `account_ids` or `account_ref` should be used, not both. ⚠️ + account_ref: + type: string + description: | + An account reference to associate with the payment link. Use this to attach accounts with the specified account reference to the payment link, making it account-specific. + ⚠️ Either `account_ids` or `account_ref` should be used, not both. ⚠️ name: type: string description: The name of the payment link. diff --git a/openAPI/merchants_api_ON_HOLD.yml b/openAPI/merchants_api_OLD.yml similarity index 98% rename from openAPI/merchants_api_ON_HOLD.yml rename to openAPI/merchants_api_OLD.yml index 989a9a0..48ea9a4 100644 --- a/openAPI/merchants_api_ON_HOLD.yml +++ b/openAPI/merchants_api_OLD.yml @@ -184,9 +184,6 @@ paths: > > When creating a payment link, you can implicitly create a plan by providing details such as `amount` and `currency`. - > 🚧 Account-specific Paylinks - > - > Create an account-specific paylink by adding either `account_ref` or `account_ids`. Its important to note that you cannot add both. consumes: - application/json produces: @@ -2278,24 +2275,8 @@ definitions: example: https://webhook.site/b09eec23-3f7a-4f0c-aec6-84c277c5eb78 paylinks.CreatePaymentLinkRequest: - required: - - name - - amount - - currency type: object properties: - account_ids: - items: - type: integer - type: array - description: | - A list of account IDs to associate with the payment link. Use this to attach specific accounts to the payment link, making it account-specific. - ⚠️ Either `account_ids` or `account_ref` should be used, not both. ⚠️ - account_ref: - type: string - description: | - An account reference to associate with the payment link. Use this to attach accounts with the specified account reference to the payment link, making it account-specific. - ⚠️ Either `account_ids` or `account_ref` should be used, not both. ⚠️ name: type: string description: The name of the payment link.