Merge pull request #21 from valitydev/TD-324/ft/remove_enums

TD-324: Remove enums and digital wallet provider qiwi
This commit is contained in:
Артем 2022-06-28 15:16:32 +03:00 committed by GitHub
commit ec7a406e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 79 additions and 87 deletions

View File

@ -1,19 +1,20 @@
description: Платежная система
type: string
enum:
- visa
- mastercard
- visaelectron
- maestro
- forbrugsforeningen
- dankort
- amex
- dinersclub
- discover
- unionpay
- jcb
- nspkmir
- elo
- rupay
- dummy
- uzcard
example: VISA
# enum:
# - visa
# - mastercard
# - visaelectron
# - maestro
# - forbrugsforeningen
# - dankort
# - amex
# - dinersclub
# - discover
# - unionpay
# - jcb
# - nspkmir
# - elo
# - rupay
# - dummy
# - uzcard

View File

@ -1,7 +1,8 @@
description: Провайдер платежных токенов
type: string
enum:
- applepay
- googlepay
- samsungpay
- yandexpay
example: APPLE PAY
# enum:
# - applepay
# - googlepay
# - samsungpay
# - yandexpay

View File

@ -1,9 +1,10 @@
description: Тип криптовалюты
type: string
enum:
- bitcoin
- litecoin
- bitcoinCash
- ripple
- ethereum
- zcash
example: BTC
# enum:
# - bitcoin
# - litecoin
# - bitcoinCash
# - ripple
# - ethereum
# - zcash

View File

@ -1,9 +1,5 @@
required:
- digitalWalletDetailsType
- provider
properties:
digitalWalletDetailsType:
type: string
enum:
- DigitalWalletDetailsQIWI
discriminator:
propertyName: digitalWalletDetailsType
provider:
$ref: '../schemas/DigitalWalletProvider.yaml'

View File

@ -1,13 +0,0 @@
allOf:
- $ref: '../schemas/DigitalWalletDetails.yaml'
- type: object
required:
- phoneNumberMask
properties:
phoneNumberMask:
type: string
description: |
Маскированный номер телефона плательщика в международном формате, выступающий
в роли идентификатора кошелька Visa QIWI Wallet.
pattern: '^\+\d\*{1,10}\d{2,4}$'
example: '+7******3210'

View File

@ -0,0 +1,5 @@
description: Провайдер электронных денежных средств
type: string
example: QIWI
# enum:
# - QIWI

View File

@ -1,10 +1,11 @@
description: Провайдер терминальной сети
type: string
enum:
- euroset
- wechat
- alipay
- zotapay
- qps
- uzcard
- rbs
example: EUROSET
# enum:
# - euroset
# - wechat
# - alipay
# - zotapay
# - qps
# - uzcard
# - rbs

View File

@ -55,14 +55,14 @@ get:
required: false
schema:
type: string
enum:
- euroset
- wechat
- alipay
- zotapay
- qps
- uzcard
- rbs
# enum:
# - euroset
# - wechat
# - alipay
# - zotapay
# - qps
# - uzcard
# - rbs
- name: payerEmail
in: query
description: 'Email, указанный при оплате'
@ -129,34 +129,34 @@ get:
schema:
description: Провайдер платежных токенов
type: string
enum:
- applepay
- googlepay
- samsungpay
- yandexpay
# enum:
# - applepay
# - googlepay
# - samsungpay
# - yandexpay
- name: bankCardPaymentSystem
in: query
required: false
schema:
description: Платежная система
type: string
enum:
- visa
- mastercard
- visaelectron
- maestro
- forbrugsforeningen
- dankort
- amex
- dinersclub
- discover
- unionpay
- jcb
- nspkmir
- elo
- rupay
- dummy
- uzcard
# enum:
# - visa
# - mastercard
# - visaelectron
# - maestro
# - forbrugsforeningen
# - dankort
# - amex
# - dinersclub
# - discover
# - unionpay
# - jcb
# - nspkmir
# - elo
# - rupay
# - dummy
# - uzcard
- name: paymentAmountFrom
in: query
description: Минимальная сумма платежа