swag-payments/spec/definitions/CardData.yaml
Artem Ocheredko 3a34b8915b CAPI-97: Add payments search, update invoices search (#52)
* CAPI-97 Add payments search, update invoices search. Remove statuses array in invoices/payments search requests
2017-04-21 16:59:45 +04:00

26 lines
693 B
YAML

type: object
allOf:
- $ref: '#/definitions/PaymentTool'
- type: object
description: Банковская карта
required:
- cardNumber
- expDate
- cvv
properties:
cardNumber:
description: Номер банковской карты
type: string
pattern: '^\d{12,19}$'
expDate:
description: Срок действия банковской карты
type: string
pattern: '^\d{2}\/\d{2}$'
cvv:
description: Код верификации
type: string
pattern: '^\d{3,4}$'
cardHolder:
description: Имя держателя карты
type: string