diff --git a/api-docs.json b/api-docs.json new file mode 100644 index 0000000..b75d724 --- /dev/null +++ b/api-docs.json @@ -0,0 +1 @@ +{"openapi":"3.0.1","info":{"title":"Card-API","description":"Сервис работы с картами клиента","version":"3.8.0"},"servers":[{"url":"/"}],"paths":{"/card/v3/{cardId}":{"get":{"tags":["CardController"],"summary":"Получить детали по карте","operationId":"getCardDetails","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseCardDetailsResponseDto"}}}}}},"put":{"tags":["CardController"],"summary":"Запрос на изменение данных карты.","operationId":"updateCard","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseCardIdResponseDto"}}}}}}},"/card/v3/digital/issue/{id}":{"put":{"tags":["DigitalCardController"],"summary":"Запрос на редактирование заявки и выпуск цифровой карты","operationId":"editDigitalCardIssue","parameters":[{"name":"id","in":"path","description":"Идентификатор документа цифровой карты","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditDigitalCardIssueRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEditDigitalCardIssueResponseDto"}}}}}}},"/card/v3/alias/{aliasId}":{"put":{"tags":["AliasController"],"summary":"Редактирование данных карты-алиаса","operationId":"editAlias","parameters":[{"name":"aliasId","in":"path","description":"Идентификатора алиаса","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutAliasDetailsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePutAliasDetailsResponseDto"}}}}}},"delete":{"tags":["AliasController"],"summary":"Удаление карты-алиаса","operationId":"deleteAlias","parameters":[{"name":"aliasId","in":"path","description":"Идентификатора алиаса","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDeleteAliasResponseDto"}}}}}}},"/card/v3/{cardId}/requisites":{"post":{"tags":["CardController"],"summary":"Получить детали цифровой карты","operationId":"getDigitalCardDetails","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalCardDetailsRequestDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseCardDigitalDetailsResponseDto"}}}}}}},"/card/v3/{cardId}/changepin":{"post":{"tags":["ChangePinController"],"summary":"Создать документ на смену PIN-кода карты","operationId":"changePinCreate","parameters":[{"name":"X-Idempotence-Key","in":"header","description":"Ключ идемпонентности","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseChangePinCreateResponseDto"}}}}}}},"/card/v3/{cardId}/activate":{"post":{"tags":["ActivateController"],"summary":"Создать документ на активацию карты","operationId":"activateDocCreate","parameters":[{"name":"X-Idempotence-Key","in":"header","description":"Ключ идемпонентности","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseChangePinCreateResponseDto"}}}}}}},"/card/v3/digital/issue":{"post":{"tags":["DigitalCardController"],"summary":"Запрос на создание заявки, связанной с выпуском цифровой карты","operationId":"createDigitalCardIssue","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseCreateDigitalCardIssueResponseDto"}}}}}}},"/card/v3/{cardId}/status":{"patch":{"tags":["CardController"],"summary":"Запрос на блокировку/разблокировку карты.","operationId":"updateCardStatus","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeCardStatusRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseCardIdResponseDto"}}}}}}},"/card/v3/{cardId}/limit":{"get":{"tags":["CardController"],"summary":"Получить лимиты по карте","operationId":"getCardLimit","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseLimitResponseDto"}}}}}},"patch":{"tags":["CardController"],"summary":"Изменить лимиты по карте","operationId":"setCardLimit","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeLimitRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseChangeLimitResponseDto"}}}}}}},"/card/v3/{cardId}/changepin/executed":{"patch":{"tags":["ChangePinController"],"summary":"Изменить PIN-код карты","operationId":"changePinExecute","parameters":[{"name":"X-Idempotence-Key","in":"header","description":"Ключ идемпонентности","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePinExecuteRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseVoid"}}}}}}},"/card/v3/{cardId}/changepin/canceled":{"patch":{"tags":["ChangePinController"],"summary":"Отмена смены PIN-кода карты","operationId":"changePinCancel","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePinCancelRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseVoid"}}}}}}},"/card/v3/{cardId}/changeAccount":{"patch":{"tags":["CardController"],"summary":"Изменить основной счет карты","operationId":"changeAccount","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeAccountRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseChangeAccountResponseDto"}}}}}}},"/card/v3/{cardId}/activate/executed":{"patch":{"tags":["ActivateController"],"summary":"Активировать карту","operationId":"activationExecute","parameters":[{"name":"X-Idempotence-Key","in":"header","description":"Ключ идемпонентности","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePinExecuteRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseVoid"}}}}}}},"/card/v3/{cardId}/activate/canceled":{"patch":{"tags":["ActivateController"],"summary":"Отмена активации карты","operationId":"activationCancel","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePinCancelRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseVoid"}}}}}}},"/card/v3/digital/cancel/{id}":{"patch":{"tags":["DigitalCardController"],"summary":"Отмена заказа цифровой карты на этапе редактирования документа.","operationId":"editDigitalCardIssue_1","parameters":[{"name":"id","in":"path","description":"Идентификатор документа цифровой карты","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseVoid"}}}}}}},"/card/v3":{"get":{"tags":["CardController"],"summary":"Получить список карт клиента","operationId":"getCards","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseListCardDto"}}}}}}},"/card/v3/{cardNumber}/detail":{"get":{"tags":["CardController"],"summary":"Получить данные о карте по её номеру из АТМ","operationId":"getCardDetailsATM","parameters":[{"name":"cardNumber","in":"path","description":"Номер карты","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseCardDetailsDto"}}}}}}},"/card/v3/{cardId}/operation/limit":{"get":{"tags":["CardController"],"summary":"Получить лимиты по карте","operationId":"getOperationCardLimit","parameters":[{"name":"cardId","in":"path","description":"ID карты","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseCardTransferLimitResponseDto"}}}}}}},"/card/v3/digital/available":{"get":{"tags":["DigitalCardController"],"summary":"Получить список доступных для оформления цифровых карт","operationId":"getAvailableDigitalCards","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseListGetAvailableDigitalCardsResponseDto"}}}}}}},"/card/v3/alias":{"get":{"tags":["AliasController"],"summary":"Получение списка алиасов клиента","operationId":"getAliases","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseListGetAliasesResponseDto"}}}}}}}},"components":{"schemas":{"CardRequestDto":{"type":"object","properties":{"name":{"type":"string"}},"description":"Изменяемые данные по карте"},"CardIdResponseDto":{"type":"object","properties":{"cardId":{"type":"string"}}},"ResponseCardIdResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/CardIdResponseDto"}}},"ResponseMetaData":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"status":{"type":"integer","format":"int32"},"code":{"type":"string"},"message":{"type":"string"}}},"EditDigitalCardIssueRequestDto":{"required":["accountCode","accountCurrencyCode","embossedName"],"type":"object","properties":{"embossedName":{"type":"string","description":"Эмбоссированное имя","example":"ROMAN SHISHKIN"},"accountCode":{"type":"string","description":"13-значный номер счета","example":"9643Q94354001"},"accountCurrencyCode":{"type":"string","description":"Код валюты счета","example":"USD"}},"description":"Данные для выпуска карты"},"EditDigitalCardIssueResponseDto":{"required":["cardPictureURL","orderId"],"type":"object","properties":{"orderId":{"type":"string","description":"Номер заказа","format":"uuid"},"cardNumber":{"type":"string","description":"Максированный номер карты.","example":"5328 23** **** 3366"},"cardPictureURL":{"type":"string","description":"Ссылка на ресурс подложки цифровой карты","example":"https://web-static.com/icon2"}},"description":"Данные ответа запроса на редактирование документа на заказ карты"},"ResponseEditDigitalCardIssueResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/EditDigitalCardIssueResponseDto"}}},"ExpirationDateDto":{"type":"object","properties":{"month":{"type":"integer","format":"int32"},"year":{"type":"integer","format":"int32"}},"description":"Срок действия карты"},"PutAliasDetailsRequest":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"Имя алиаса, введенное пользователем при переименовании"},"expirationDate":{"$ref":"#/components/schemas/ExpirationDateDto"}},"description":"Данные для изменения алиаса"},"PutAliasDetailsResponseDto":{"required":["aliasId","name"],"type":"object","properties":{"aliasId":{"type":"string","description":"Идентификатор измененного алиаса"},"name":{"type":"string","description":"Имя алиаса, введенное пользователем при переименовании"},"expirationDate":{"$ref":"#/components/schemas/ExpirationDateDto"}},"description":"Данные ответа запроса на изменение алиаса"},"ResponsePutAliasDetailsResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/PutAliasDetailsResponseDto"}}},"DigitalCardDetailsRequestDto":{"type":"object","properties":{"authorizationMethod":{"type":"string","enum":["OTP","PIN","TOUCH","FACE"]},"authorizationId":{"type":"string","format":"uuid"},"authorizationCode":{"type":"string"},"includeCVC":{"type":"boolean"}},"description":"Данные для подтверждения"},"AdditionalAuthInfoResponse":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"AuthorizationResponseDto":{"type":"object","properties":{"authorizationId":{"type":"string"},"createTime":{"type":"string"},"timeout":{"type":"string"},"method":{"type":"string"},"info":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalAuthInfoResponse"}}}},"CardDigitalDetailsResponseDto":{"type":"object","properties":{"cvv":{"type":"string"},"fullCardNumber":{"type":"string"},"cardHolder":{"type":"string"},"authorization":{"$ref":"#/components/schemas/AuthorizationResponseDto"},"expireDate":{"type":"string"}}},"ResponseCardDigitalDetailsResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/CardDigitalDetailsResponseDto"}}},"ChangePinCreateAuthorizationDto":{"required":["authorizationCode","authorizationId","authorizationMethod","createDate","phone","timeout"],"type":"object","properties":{"authorizationId":{"type":"string","description":"Идентификатор авторизации"},"createDate":{"type":"string","description":"Дата и время создания авторизации"},"timeout":{"type":"integer","description":"Дата и время создания авторизации","format":"int32","example":60000},"authorizationMethod":{"type":"string","description":"Метод подтверждения","example":"SMS"},"phone":{"type":"string","description":"Номер телефона","example":"+79991234567"},"authorizationCode":{"type":"string","description":"Код подтвержденияя","example":"123456"}},"description":"Данные авторизации для создания документа на смену PIN-код карты"},"ChangePinCreateResponseDto":{"required":["documentId"],"type":"object","properties":{"documentId":{"type":"string","description":"Идентификатор документа","format":"uuid"},"authorization":{"$ref":"#/components/schemas/ChangePinCreateAuthorizationDto"}},"description":"Данные ответа на создание документа для смены PIN-код карты или активации карты"},"ResponseChangePinCreateResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/ChangePinCreateResponseDto"}}},"CreateDigitalCardIssueResponseDto":{"required":["3dsEnable","accounts","cardName","cardPictureURL","documentId","embossedName","phone","tariff"],"type":"object","properties":{"documentId":{"type":"string","description":"Идентификатор документа","example":"123e4567-e89b-12d3-a456-426655440000"},"cardName":{"type":"string","description":"Наименование карты","example":"Visa Signature #МожноВСЁ Цифровая"},"phone":{"type":"string","description":"Номер телефона","example":"+7******0000"},"accounts":{"type":"array","description":"Список счетов для привязки к цифровой карте","items":{"$ref":"#/components/schemas/DocumentAccountDto"}},"maxEmbossedName":{"type":"integer","description":"Максимальная длина эмбоссированного имени","format":"int32","example":13},"cardPictureURL":{"type":"string","description":"Полный url для загрузки подложки цифровой карты.","example":"https://web-static.com/cardPicture"},"embossedName":{"type":"string","description":"Эмбоссируемое имя по умолчанию.","example":"ROMAN SHISHKIN"},"3dsEnable":{"type":"boolean","description":"Признак подключения карты к 3DS.","example":false},"tariff":{"type":"string","description":"Ссылка на тарифы.","example":"https://rosbank.ru/tariff/cards"}},"description":"Данные для экрана заказа ЦК."},"DocumentAccountDto":{"required":["accountBalance","accountCode","accountCurrencyCode","accountId","accountName"],"type":"object","properties":{"accountId":{"type":"string","description":"Идентификатор счета","example":"abc88defg90h2928304982309483029"},"accountCurrencyCode":{"type":"string","description":"Код валюты счета, длина значения: 3 символа","example":"USD"},"accountBalance":{"type":"number","description":"Баланс счета в рублях","example":2300.0},"accountName":{"type":"string","description":"Пользовательское наименование счета","example":"Мой зарплатный счет"},"accountCode":{"type":"string","description":"13-значный номер счета","example":"9643Q94354001"}},"description":"Данные для экрана заказа ЦК."},"ResponseCreateDigitalCardIssueResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/CreateDigitalCardIssueResponseDto"}}},"ChangeCardStatusRequestDto":{"type":"object","properties":{"status":{"type":"string","enum":["BLOCK","BLOCK_BANCKRUPT","UNBLOCK","CLOSE"]}},"description":"Новый статус"},"ChangeLimitRequestDto":{"type":"object","properties":{"operationType":{"type":"string"},"limitType":{"type":"string"},"limitAmount":{"type":"number"},"currencyCode":{"type":"string"}},"description":"Новые параметры лимита"},"ChangeLimitResponseDto":{"type":"object","properties":{"cardId":{"type":"string"},"operationType":{"type":"string"},"limitType":{"type":"string"},"limitAmount":{"type":"number"},"currencyCode":{"type":"string"}}},"ResponseChangeLimitResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/ChangeLimitResponseDto"}}},"ChangePinExecuteAuthorizationDto":{"required":["authorizationCode","authorizationId","authorizationMethod"],"type":"object","properties":{"authorizationMethod":{"type":"string","description":"Метод подтверждения","example":"OTP","enum":["SMS"]},"authorizationId":{"type":"string","description":"Идентификатор авторизации","format":"uuid"},"authorizationCode":{"pattern":"[0-9]{6}","type":"string","description":"Код подтверждения","example":"123456"}},"description":"Данные авторизации для выполнения смены PIN-код карты"},"ChangePinExecuteBodyDto":{"required":["documentId","pin"],"type":"object","properties":{"pin":{"pattern":"[0-9]{4}","type":"string","description":"Новый PIN-код карты","example":"1234"},"documentId":{"type":"string","description":"Идентификатор документа","format":"uuid"}},"description":"Тело запроса для выполнения смены PIN-код карты"},"ChangePinExecuteRequestDto":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/ChangePinExecuteBodyDto"},"authorization":{"$ref":"#/components/schemas/ChangePinExecuteAuthorizationDto"}},"description":"Данные для выполнения активации карты"},"ResponseVoid":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"type":"object"}}},"ChangePinCancelRequestDto":{"required":["documentId"],"type":"object","properties":{"documentId":{"type":"string","description":"Идентификатор документа","format":"uuid"}},"description":"Данные запроса для отмены активации карты"},"ChangeAccountRequestDto":{"required":["accountCode","currencyCode"],"type":"object","properties":{"accountCode":{"type":"string","description":"13-значный номер счета ","example":"97017U7668003"},"currencyCode":{"type":"string","description":"Валюта счета","example":"RUB"}},"description":"Данные для выполнения смены счета карты"},"ChangeAccountResponseDto":{"type":"object","properties":{"cardId":{"type":"string","description":"Идентификатор карты"},"accountCode":{"type":"string","description":"13-значный номер счета","example":"97017U7668003"}},"description":"Данные ответа на запрос изменения основного счета карты "},"ResponseChangeAccountResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/ChangeAccountResponseDto"}}},"CardDto":{"type":"object","properties":{"id":{"type":"string"},"cardNumber":{"type":"string"},"name":{"type":"string"},"expirationDate":{"type":"string"},"paymentSystem":{"type":"string"},"primaryAccountNumber":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"digital":{"type":"boolean"},"isVisible":{"type":"boolean"},"sortOrder":{"type":"integer","format":"int32"},"showOnMainScreen":{"type":"boolean"},"sortOrderMainScreen":{"type":"integer","format":"int32"},"corporate":{"type":"boolean"},"backgroundUrl":{"type":"string"},"cardLocation":{"type":"string"},"tokenizationFlag":{"type":"boolean"}}},"ResponseListCardDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CardDto"}}}},"AccountDto":{"type":"object","properties":{"mainAccountNumber":{"type":"string"},"accountNumber":{"type":"array","items":{"type":"string"}}}},"CardDetailsDto":{"type":"object","properties":{"id":{"type":"string"},"cardNumber":{"type":"string"},"customer":{"$ref":"#/components/schemas/CustomerDto"},"issueDate":{"type":"string","format":"date-time"},"expirationDate":{"type":"string","format":"date-time"},"creditCard":{"type":"boolean"},"embossedName":{"type":"string"},"holder":{"type":"string"},"enabled3DSecure":{"type":"boolean"},"tokenizationFlag":{"type":"boolean"},"accounts":{"$ref":"#/components/schemas/AccountDto"},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"expired":{"type":"boolean"},"blocked":{"type":"boolean"}}},"CustomerDto":{"type":"object","properties":{"id":{"type":"string"},"branchCode":{"type":"string"}}},"ResponseCardDetailsDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/CardDetailsDto"}}},"TokenDto":{"type":"object","properties":{"token":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","BLOCKED","DELETED","WAITING"]},"device":{"type":"string"}}},"CardDetailDto":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}}},"CardDetailsResponseDto":{"type":"object","properties":{"id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/CardDetailDto"}}}},"ResponseCardDetailsResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/CardDetailsResponseDto"}}},"CardTransferLimitResponseDto":{"type":"object","properties":{"cardId":{"type":"string"},"currencyCode":{"type":"string"},"availableAmount":{"type":"number"}}},"ResponseCardTransferLimitResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/CardTransferLimitResponseDto"}}},"LimitDto":{"type":"object","properties":{"operationType":{"type":"string"},"limitType":{"type":"string"},"currencyCode":{"type":"string"},"maxLimitAmount":{"type":"number"},"limitAmount":{"type":"number"},"expendedAmount":{"type":"number"}}},"LimitResponseDto":{"type":"object","properties":{"cardId":{"type":"string"},"limit":{"type":"array","items":{"$ref":"#/components/schemas/LimitDto"}}}},"ResponseLimitResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/LimitResponseDto"}}},"AdvantageDto":{"required":["iconURL","text"],"type":"object","properties":{"text":{"type":"string","description":"Текст преимущества","example":"Cashback до 10% на одежду и обувь"},"iconURL":{"type":"string","description":"Ссылка на ресур иконки преимущества","example":"https://web-static.com/icon2"}},"description":"Список преимуществ цифровой карты. Список отсортирован в соответствии с порядком, заданным в БД. Клиенты не должны менять порядок элементов списка. Передается пустым, если для карты не заданы преимущества в БД."},"GetAvailableDigitalCardsResponseDto":{"required":["advantages","cardName","cardPictureURL","digitalCardId","servicePackageCode"],"type":"object","properties":{"servicePackageCode":{"type":"string","description":"Код ПБУ цифровой карты.","example":"ABC"},"cardName":{"type":"string","description":"Название цифровой карты на русском","example":"Mastercard Black Edition #МожноВсе Цифровая"},"advantages":{"type":"array","description":"Список преимуществ цифровой карты. Список отсортирован в соответствии с порядком, заданным в БД. Клиенты не должны менять порядок элементов списка. Передается пустым, если для карты не заданы преимущества в БД.","items":{"$ref":"#/components/schemas/AdvantageDto"}},"digitalCardId":{"type":"string","description":"Идентификатор цифровой карты","format":"uuid","example":"123e4567-e89b-12d3-a456-426655440000"},"cardPictureURL":{"type":"string","description":"Ссылка на подложку цифровой карты","example":"https://web-static.com/cardPicture"}},"description":"Список доступных цифровых карт для оформления. Список отсортирован в соответствии с порядком, заданным в БД. Клиенты не должны менять порядок элементов."},"ResponseListGetAvailableDigitalCardsResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GetAvailableDigitalCardsResponseDto"}}}},"GetAliasesResponseDto":{"type":"object","properties":{"id":{"type":"string"},"cardNumber":{"type":"string"},"name":{"type":"string"},"expirationDate":{"$ref":"#/components/schemas/ExpirationDateDto"},"isRosbank":{"type":"boolean"},"isInternal":{"type":"boolean"},"brand":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"paySystem":{"type":"string"},"paySystemColor":{"type":"string"},"colorMaskedPan":{"type":"string"},"logoRound":{"type":"string"},"paySystemCode":{"type":"string"},"backgroundUrl":{"type":"string"},"isTransgran":{"type":"boolean"},"countryCode":{"type":"string"}},"description":"Данные ответа на запрос получения списка карт-алиасов"},"ResponseListGetAliasesResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GetAliasesResponseDto"}}}},"DeleteAliasResponseDto":{"required":["aliasId"],"type":"object","properties":{"aliasId":{"type":"string","description":"Данные ответа запроса на удаление алиаса"}},"description":"Данные ответа запроса на удаление алиаса"},"ResponseDeleteAliasResponseDto":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ResponseMetaData"},"data":{"$ref":"#/components/schemas/DeleteAliasResponseDto"}}}}}}