Skip to content

Commit

Permalink
Add min and max payment methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ebarber-ledger committed Oct 22, 2024
1 parent 84436eb commit 2365d30
Showing 1 changed file with 44 additions and 6 deletions.
50 changes: 44 additions & 6 deletions public/exchange/openapi/sell-provider-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,39 @@ paths:
- country: FR
paymentMethods:
- name: sepa
minMaxRestrictions:
- fiat: EUR
minAmount: 30
maxAmount: 3000
- name: visa
minMaxRestrictions:
- fiat: EUR
minAmount: 10
maxAmount: 1000
- country: US
paymentMethods:
- name: sepa
minMaxRestrictions:
- fiat: USD
minAmount: 30
maxAmount: 3000
- name: visa
minMaxRestrictions:
- fiat: USD
minAmount: 10
maxAmount: 1000
- country: GB
paymentMethods:
- name: sepa
minMaxRestrictions:
- fiat: GBP
minAmount: 10
maxAmount: 3000
- name: visa
minMaxRestrictions:
- fiat: GBP
minAmount: 30
maxAmount: 1000
default:
description: Error sent by the provider
content:
Expand Down Expand Up @@ -333,16 +357,15 @@ components:
SellPaymentMethod:
required:
- name
- minAmount
- maxAmount
- minMaxRestrictions
type: object
properties:
name:
$ref: '#/components/schemas/PaymentMethod'
minAmount:
type: number
maxAmount:
type: number
minMaxRestrictions:
type: array
items:
$ref: '#/components/schemas/FiatCurrencyCapabilityPaymentMethods'
SellProviderCapabilities:
type: object
properties:
Expand Down Expand Up @@ -417,6 +440,14 @@ components:
- $ref: '#/components/schemas/Coin'
- $ref: '#/components/schemas/Token'
FiatCurrencyCapability:
required:
- fiat
type: object
properties:
fiat:
type: string
description: Currency code of the ISO-4217 standard.
FiatCurrencyCapabilityPaymentMethods:
required:
- fiat
- minAmount
Expand All @@ -425,6 +456,13 @@ components:
properties:
fiat:
type: string
description: Currency code of the ISO-4217 standard.
minAmount:
type: string
description: Miniumum supported amount of this currency
maxAmount:
type: string
description: Maximum supported amount of this currency
Mastercard:
type: object
Other:
Expand Down

0 comments on commit 2365d30

Please sign in to comment.