diff --git a/public/exchange/openapi/sell-provider-openapi.yml b/public/exchange/openapi/sell-provider-openapi.yml index a6b9a504..90213fcf 100644 --- a/public/exchange/openapi/sell-provider-openapi.yml +++ b/public/exchange/openapi/sell-provider-openapi.yml @@ -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: @@ -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: @@ -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 @@ -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: