Skip to content

Instantly share code, notes, and snippets.

@notxcain
Created March 2, 2016 08:35
Show Gist options
  • Save notxcain/607520c49ac3140241d6 to your computer and use it in GitHub Desktop.
Save notxcain/607520c49ac3140241d6 to your computer and use it in GitHub Desktop.
{
"id": "464",
"content": {
"terms": {
"type": "DefaultQWTerms",
"id": "464",
"commission": {
"ranges": [
{
"bound": 0,
"rate": 0.016,
"min": 100
}
]
},
"limits": [
{
"currency": "643",
"min": 3,
"max": 250000
}
],
"description": "Средства на счет зачисляются моментально.Также организована возможность перевода денежных средств из Интернет-банка «Альфа-Клик» в Visa QIWI Wallet моментально и <a href=\"http://alfabank.ru/retail/transfer/qiwi/\" target=\"_blank\"><b>без комиссии</b></a>. Сумма платежей на один номер счета/карты договора в течение 7 дней не должна превышать 600 000 рублей.",
"overpayment": true,
"underpayment": true,
"identification": {
"required": true
},
"deadline": "Средства на счет зачисляются моментально.",
"sumConstraint": {
"type": "EditableSumConstraint"
},
"cashbacks": []
},
"elements": [
{
"type": "field",
"name": "account_type",
"validator": {
"type": "predicate",
"predicate": {
"type": "regex",
"pattern": "^1$|^2$"
},
"message": "Необходимо выбрать тип идентификатора"
},
"view": {
"title": "Тип идентификатора",
"prompt": "Выберите тип идентификатора",
"widget": {
"type": "radio",
"choices": [
{
"value": "1",
"title": "Номер карты"
},
{
"value": "2",
"title": "Номер счета"
}
]
}
},
"hideFromConfirmationScreen": false
},
{
"type": "dependency",
"condition": {
"type": "predicate",
"field": "account_type",
"predicate": {
"type": "regex",
"pattern": "^1$"
}
},
"content": {
"elements": [
{
"type": "field",
"name": "account",
"validator": {
"type": "predicate",
"predicate": {
"type": "regex",
"pattern": "^\\d{4} \\d{4} \\d{4} \\d{4,6}$"
},
"message": "Проверьте номер карты"
},
"view": {
"title": "Номер карты",
"prompt": "Номер карты",
"widget": {
"type": "text",
"mask": "dddd dddd dddd dddd?dd",
"keyboard": "numeric",
"stripStaticSymbols": false
}
},
"sensitiveData": true,
"hideFromConfirmationScreen": false
},
{
"type": "field",
"name": "exp_date",
"validator": {
"type": "predicate",
"predicate": {
"type": "regex",
"pattern": "^\\d{4}$"
},
"message": "Неверное значение"
},
"view": {
"title": "Expiry date",
"prompt": "Expiry date",
"widget": {
"type": "expiryDate",
"format": "MMyy"
}
},
"sensitiveData": false,
"hideFromConfirmationScreen": false
}
]
}
},
{
"type": "dependency",
"condition": {
"type": "predicate",
"field": "account_type",
"predicate": {
"type": "regex",
"pattern": "^2$"
}
},
"content": {
"elements": [
{
"type": "field",
"name": "mfo",
"value": "044525593"
},
{
"type": "field",
"name": "account",
"validator": {
"type": "predicate",
"predicate": {
"type": "and",
"subpredicates": [
{
"type": "regex",
"pattern": "^\\d{20}$"
},
{
"type": "regex",
"pattern": "^40817|^40820|^42301|^42601"
}
]
},
"message": "Неверное значение"
},
"view": {
"title": "Номер счета",
"prompt": "Номер счета",
"widget": {
"type": "text",
"mask": "dddddddddddddddddddd",
"keyboard": "numeric",
"stripStaticSymbols": false
}
},
"sensitiveData": false,
"hideFromConfirmationScreen": false
}
]
}
}
],
"receipt": {
"items": [
{
"type": "TitleValueItem",
"title": {
"type": "StaticSource",
"value": "ОПЛАТА ЗА"
},
"value": {
"type": "CompoundSource",
"items": [
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "КИВИ Банк (АО)"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Лицензия № 2241"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Принято: "
},
{
"type": "GrossSumSource"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Сервисный сбор: "
},
{
"type": "CommissionSumSource"
},
{
"type": "NewLineSource"
}
]
}
},
{
"type": "TitleValueItem",
"title": {
"type": "StaticSource",
"value": "Операция по переводу средств в"
},
"value": {
"type": "CompoundSource",
"items": [
{
"type": "NewLineSource"
},
{
"type": "ServiceNameSource"
},
{
"type": "NewLineSource"
},
{
"type": "FieldTitleSource",
"field": "account"
},
{
"type": "StaticSource",
"value": ": "
},
{
"type": "FieldValueSource",
"field": "account"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Сумма: "
},
{
"type": "NetSumSource"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Принята КИВИ Банк (АО) к исполнению."
}
]
}
},
{
"type": "TitleValueItem",
"title": {
"type": "FieldTitleSource",
"field": "Адрес"
},
"value": {
"type": "FieldValueSource",
"field": "123001, г. Москва, ул. Спиридоновка, д. 4, стр. 2"
}
},
{
"type": "TitleValueItem",
"title": {
"type": "FieldTitleSource",
"field": "ИНН"
},
"value": {
"type": "FieldValueSource",
"field": "3123011520"
}
}
]
}
},
"receipt": {
"items": [
{
"type": "TitleValueItem",
"title": {
"type": "StaticSource",
"value": "ОПЛАТА ЗА"
},
"value": {
"type": "CompoundSource",
"items": [
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "КИВИ Банк (АО)"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Лицензия № 2241"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Принято: "
},
{
"type": "GrossSumSource"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Сервисный сбор: "
},
{
"type": "CommissionSumSource"
},
{
"type": "NewLineSource"
}
]
}
},
{
"type": "TitleValueItem",
"title": {
"type": "StaticSource",
"value": "Операция по переводу средств в"
},
"value": {
"type": "CompoundSource",
"items": [
{
"type": "NewLineSource"
},
{
"type": "ServiceNameSource"
},
{
"type": "NewLineSource"
},
{
"type": "FieldTitleSource",
"field": "account"
},
{
"type": "StaticSource",
"value": ": "
},
{
"type": "FieldValueSource",
"field": "account"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Сумма: "
},
{
"type": "NetSumSource"
},
{
"type": "NewLineSource"
},
{
"type": "StaticSource",
"value": "Принята КИВИ Банк (АО) к исполнению."
}
]
}
},
{
"type": "TitleValueItem",
"title": {
"type": "FieldTitleSource",
"field": "Адрес"
},
"value": {
"type": "FieldValueSource",
"field": "123001, г. Москва, ул. Спиридоновка, д. 4, стр. 2"
}
},
{
"type": "TitleValueItem",
"title": {
"type": "FieldTitleSource",
"field": "ИНН"
},
"value": {
"type": "FieldValueSource",
"field": "3123011520"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment