Skip to content

Commit

Permalink
oas update
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielraeder committed Nov 26, 2024
1 parent f26b3fe commit 63028e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
19 changes: 19 additions & 0 deletions openAPI/merchants_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
<small>⚠️ Either `account_ids` or `account_ref` should be used, not both. ⚠️</small>
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.
<small>⚠️ Either `account_ids` or `account_ref` should be used, not both. ⚠️</small>
name:
type: string
description: The name of the payment link.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
<small>⚠️ Either `account_ids` or `account_ref` should be used, not both. ⚠️</small>
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.
<small>⚠️ Either `account_ids` or `account_ref` should be used, not both. ⚠️</small>
name:
type: string
description: The name of the payment link.
Expand Down

0 comments on commit 63028e9

Please sign in to comment.