Skip to content

Commit

Permalink
Merge pull request #319 from LedgerHQ/chore/buy-redoc-update
Browse files Browse the repository at this point in the history
Added new card payment method to Buy redoc
  • Loading branch information
brit-ledger authored Nov 26, 2024
2 parents 4557789 + 3284b9e commit 93e3d3d
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions public/exchange/openapi/buy-provider-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ paths:
- "fiatCurrencyCapabilities.[].minAmount": minimum amount in fiat the user can buy crypto,
- "fiatCurrencyCapabilities.[].maxAmount ": minimum amount in fiat the user can buy crypto,
- "countryCapabilities.[].country": available at the Alpha-2 standard (ISO3166),
- "countryCapabilities.[].paymentMethods.[].name": Available payment method, valid values : visa, mastercard, creditcard, pix, mobikwik, easypay, astropay, upibanktransfer, sofort, bancontact, giropay, maestro, googlepay, applepay, paypal, sepa, ach, fasterpayments, easybank, bank, gbpbank, eps, ideal, revolut
- "countryCapabilities.[].paymentMethods.[].name": Available payment method, valid values : card, pix, mobikwik, easypay, astropay, upibanktransfer, sofort, bancontact, giropay, googlepay, applepay, paypal, sepa, ach, fasterpayments, easybank, bank, gbpbank, eps, ideal, revolut
content:
application/json:
schema:
Expand All @@ -35,17 +35,17 @@ paths:
paymentMethods:
- name: paypal
- name: pix
- name: visa
- name: card
- country: US
paymentMethods:
- name: paypal
- name: pix
- name: visa
- name: card
- country: GB
paymentMethods:
- name: paypal
- name: pix
- name: visa
- name: card
default:
description: Error sent by the provider
content:
Expand Down Expand Up @@ -77,9 +77,9 @@ paths:
example: bitcoin
- name: payment-method
in: query
description: 'Payment method, valid values : visa, mastercard, creditcard,
description: 'Payment method, valid values : card,
pix, mobikwik, easypay, astropay, upibanktransfer, sofort, bancontact, giropay,
maestro, googlepay, applepay, paypal, sepa, ach, fasterpayments, easybank,
googlepay, applepay, paypal, sepa, ach, fasterpayments, easybank,
bank, gbpbank, eps, ideal, revolut.'
required: true
schema:
Expand Down Expand Up @@ -159,9 +159,9 @@ paths:
example: bitcoin
- name: payment-method
in: query
description: 'Payment method, valid values : visa, mastercard, creditcard,
description: 'Payment method, valid values : card,
pix, mobikwik, easypay, astropay, upibanktransfer, sofort, bancontact, giropay,
maestro, googlepay, applepay, paypal, sepa, ach, fasterpayments, easybank,
googlepay, applepay, paypal, sepa, ach, fasterpayments, easybank,
bank, gbpbank, eps, ideal, revolut.'
required: true
schema:
Expand Down Expand Up @@ -285,9 +285,9 @@ components:
\ be at the ledgerId format (see ledger_tokens.json and ledger_coins.json\
\ files),\n- \"coutriesCapabilities.[].country\": available at the Alpha-2\
\ standard (ISO3166),\n- \"coutriesCapabilities.[].paymentMethods.[].name\"\
: Available payment method, valid values : visa, mastercard, creditcard, pix,\
: Available payment method, valid values : card, pix,\
\ mobikwik, easypay, astropay, upibanktransfer, sofort, bancontact, giropay,\
\ maestro, googlepay, applepay, paypal, sepa, ach, fasterpayments, easybank,\
\ googlepay, applepay, paypal, sepa, ach, fasterpayments, easybank,\
\ bank, gbpbank, eps, ideal, revolut\n- \"countriesCapabilities.[].paymentMethods.[].successRate\"\
: percentage of success of the transaction.\n"
Coin:
Expand All @@ -303,7 +303,7 @@ components:
type: array
items:
$ref: '#/components/schemas/BuyPaymentMethod'
CreditCard:
Card:
type: object
CryptoCurrencies:
required:
Expand Down Expand Up @@ -357,10 +357,6 @@ components:
type: object
Ideal:
type: object
Maestro:
type: object
Mastercard:
type: object
Mobikwik:
type: object
Other:
Expand All @@ -374,7 +370,7 @@ components:
- $ref: '#/components/schemas/Astropay'
- $ref: '#/components/schemas/BanContact'
- $ref: '#/components/schemas/Bank'
- $ref: '#/components/schemas/CreditCard'
- $ref: '#/components/schemas/Card'
- $ref: '#/components/schemas/EasyBank'
- $ref: '#/components/schemas/Easypay'
- $ref: '#/components/schemas/Eps'
Expand All @@ -383,8 +379,6 @@ components:
- $ref: '#/components/schemas/Giropay'
- $ref: '#/components/schemas/GooglePay'
- $ref: '#/components/schemas/Ideal'
- $ref: '#/components/schemas/Maestro'
- $ref: '#/components/schemas/Mastercard'
- $ref: '#/components/schemas/Mobikwik'
- $ref: '#/components/schemas/Other'
- $ref: '#/components/schemas/PayPal'
Expand All @@ -394,7 +388,6 @@ components:
- $ref: '#/components/schemas/Sofort'
- $ref: '#/components/schemas/UPIBankTransfer'
- $ref: '#/components/schemas/Unknown'
- $ref: '#/components/schemas/Visa'
Pix:
type: object
ProviderQuoteResponse:
Expand Down Expand Up @@ -441,8 +434,6 @@ components:
properties:
message:
type: string
Visa:
type: object
RampRedirectUrl:
type: object
description: Redirect URL to Ramp UI widget
Expand Down

0 comments on commit 93e3d3d

Please sign in to comment.