diff --git a/spec/definitions/CorrespondentAccount.yaml b/spec/definitions/CorrespondentAccount.yaml new file mode 100644 index 0000000..efa52e6 --- /dev/null +++ b/spec/definitions/CorrespondentAccount.yaml @@ -0,0 +1,16 @@ +description: Корреспондентский банковский счёт +type: object +required: + - accountHolder + - iban + - number + - bank +properties: + accountHolder: + type: string + iban: + type: string + number: + type: string + bank: + $ref: '#/definitions/CorrespondentBankDetails' \ No newline at end of file diff --git a/spec/definitions/CorrespondentBankDetails.yaml b/spec/definitions/CorrespondentBankDetails.yaml new file mode 100644 index 0000000..537b04c --- /dev/null +++ b/spec/definitions/CorrespondentBankDetails.yaml @@ -0,0 +1,19 @@ +description: Детальная информация по корр. банковскому счёту +type: object +required: + - abaRtn + - address + - bic + - name + - country +properties: + abaRtn: + type: string + address: + type: string + bic: + type: string + name: + type: string + country: + type: integer \ No newline at end of file diff --git a/spec/definitions/InternationalBankAccount.yaml b/spec/definitions/InternationalBankAccount.yaml new file mode 100644 index 0000000..28683e5 --- /dev/null +++ b/spec/definitions/InternationalBankAccount.yaml @@ -0,0 +1,21 @@ +description: Междyнародный банковский счёт +type: object +required: + - accountHolder + - iban + - number + - bank +allOf: + - $ref: '#/definitions/BankAccount' + - type: object + properties: + accountHolder: + type: string + iban: + type: string + number: + type: string + bank: + $ref: '#/definitions/InternationalBankDetails' + correspondentAccount: + $ref: '#/definitions/CorrespondentAccount' diff --git a/spec/definitions/InternationalBankDetails.yaml b/spec/definitions/InternationalBankDetails.yaml new file mode 100644 index 0000000..551f8e9 --- /dev/null +++ b/spec/definitions/InternationalBankDetails.yaml @@ -0,0 +1,19 @@ +description: Детальная информация по международному банковскому счёту +type: object +required: + - abaRtn + - address + - bic + - name + - country +properties: + abaRtn: + type: string + address: + type: string + bic: + type: string + name: + type: string + country: + type: integer \ No newline at end of file diff --git a/spec/definitions/InternationalLegalEntity.yaml b/spec/definitions/InternationalLegalEntity.yaml new file mode 100644 index 0000000..cfe3e2b --- /dev/null +++ b/spec/definitions/InternationalLegalEntity.yaml @@ -0,0 +1,27 @@ +description: Юридическое лицо-резидент РФ +type: object +allOf: + - $ref: '#/definitions/LegalEntity' + - type: object + required: + - legalName + - actualAddress + - registeredAddress + - registeredNumber + - tradingName + properties: + legalName: + description: Наименование + type: string + actualAddress: + description: Адрес места нахождения + type: string + registeredAddress: + description: Адрес места регистрации + type: string + registeredNumber: + description: Регистрационный номер + type: string + tradingName: + description: Торговое наименование + type: string