Update bank card spec (#194)

This commit is contained in:
Anton Belyaev 2018-05-10 20:49:15 +03:00 committed by GitHub
parent ff1cff34ad
commit b04a12937f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View File

@ -5,11 +5,15 @@ properties:
cardNumberMask:
description: Маскированый номер карты
type: string
pattern: '^\d{2,4}$'
pattern: '^\d{6,8}\*+\d{2,4}$'
bin:
description: BIN банка-эмитента карты
type: string
pattern: '^\d{6,8}$'
lastDigits:
description: Последние цифры номера карты
type: string
pattern: '^\d{2,4}$'
paymentSystem:
x-rebillyMerge:
- $ref: '#/definitions/BankCardPaymentSystem'

View File

@ -96,12 +96,21 @@ get:
type: string
maxLength: 40
minLength: 1
- name: cardNumberMask
- name: lastDigits
in: query
description: Маскированый номер карты
description: Последние цифры номера карты
required: false
type: string
pattern: '^\d{2,4}$'
# ToDo: add as soon as magista has the implementation
# - name: bin
# in: query
# description: BIN банка-эмитента карты
# required: false
# type: string
# pattern: '^\d{6,8}\*+\d{2,4}$'
- name: paymentAmount
in: query
description: Сумма платежа