Skip to content

Commit 69402bc

Browse files
lightspark-copybara[bot]Lightspark Eng
andauthored
chore: Sync account schemas (#307)
Auto-synced account schemas. These schemas are generated from VASP adapter field definitions in sparkcore. **Synced schemas:** - `common/` — per-currency account info, beneficiary, and payment account schemas - `common/PaymentInstructions.yaml` — payment instructions oneOf (new currencies added) - `external_accounts/` — per-currency external account schemas (reference common/) Please review the changes before merging. Co-authored-by: Lightspark Eng <engineering@lightspark.com>
1 parent 1670df2 commit 69402bc

64 files changed

Lines changed: 3416 additions & 1178 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

mintlify/openapi.yaml

Lines changed: 1302 additions & 548 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi.yaml

Lines changed: 1302 additions & 548 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/components/schemas/common/AedBeneficiary.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ properties:
2323
phoneNumber:
2424
type: string
2525
description: The phone number of the beneficiary
26-
registrationNumber:
27-
type: string
28-
description: The registration number of the beneficiary
2926
countryOfResidence:
3027
type: string
3128
description: The country of residence of the beneficiary
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
type: object
2+
required:
3+
- accountType
4+
- paymentRails
5+
- accountNumber
6+
- branchCode
7+
- phoneNumber
8+
properties:
9+
accountType:
10+
type: string
11+
enum:
12+
- BDT_ACCOUNT
13+
paymentRails:
14+
type: array
15+
items:
16+
type: string
17+
enum:
18+
- BANK_TRANSFER
19+
- MOBILE_MONEY
20+
accountNumber:
21+
type: string
22+
description: The account number of the bank
23+
minLength: 1
24+
maxLength: 34
25+
branchCode:
26+
type: string
27+
description: The branch code
28+
minLength: 5
29+
maxLength: 5
30+
pattern: ^[0-9]{5}$
31+
swiftCode:
32+
type: string
33+
description: The SWIFT/BIC code of the bank
34+
example: DEUTDEFF
35+
minLength: 8
36+
maxLength: 11
37+
pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$
38+
phoneNumber:
39+
type: string
40+
description: The phone number in international format
41+
example: '+1234567890'
42+
minLength: 7
43+
maxLength: 15
44+
pattern: ^\+[0-9]{6,14}$
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
title: Individual Beneficiary
2+
type: object
3+
required:
4+
- beneficiaryType
5+
- fullName
6+
properties:
7+
beneficiaryType:
8+
type: string
9+
enum:
10+
- INDIVIDUAL
11+
fullName:
12+
type: string
13+
description: The full name of the beneficiary
14+
birthDate:
15+
type: string
16+
description: The birth date of the beneficiary
17+
nationality:
18+
type: string
19+
description: The nationality of the beneficiary
20+
email:
21+
type: string
22+
description: The email of the beneficiary
23+
phoneNumber:
24+
type: string
25+
description: The phone number of the beneficiary
26+
countryOfResidence:
27+
type: string
28+
description: The country of residence of the beneficiary
29+
address:
30+
$ref: ./Address.yaml

openapi/components/schemas/common/BrlBeneficiary.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ properties:
2323
phoneNumber:
2424
type: string
2525
description: The phone number of the beneficiary
26-
registrationNumber:
27-
type: string
28-
description: The registration number of the beneficiary
2926
countryOfResidence:
3027
type: string
3128
description: The country of residence of the beneficiary

openapi/components/schemas/common/BwpBeneficiary.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ properties:
2323
phoneNumber:
2424
type: string
2525
description: The phone number of the beneficiary
26-
registrationNumber:
27-
type: string
28-
description: The registration number of the beneficiary
2926
countryOfResidence:
3027
type: string
3128
description: The country of residence of the beneficiary
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
type: object
2+
required:
3+
- accountType
4+
- paymentRails
5+
- accountNumber
6+
- bankAccountType
7+
- phoneNumber
8+
properties:
9+
accountType:
10+
type: string
11+
enum:
12+
- COP_ACCOUNT
13+
paymentRails:
14+
type: array
15+
items:
16+
type: string
17+
enum:
18+
- BANK_TRANSFER
19+
- MOBILE_MONEY
20+
accountNumber:
21+
type: string
22+
description: The account number of the bank
23+
minLength: 1
24+
maxLength: 34
25+
bankAccountType:
26+
type: string
27+
description: The bank account type
28+
enum:
29+
- CHECKING
30+
- SAVINGS
31+
phoneNumber:
32+
type: string
33+
description: The phone number in international format
34+
example: '+1234567890'
35+
minLength: 7
36+
maxLength: 15
37+
pattern: ^\+[0-9]{6,14}$
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
title: Individual Beneficiary
2+
type: object
3+
required:
4+
- beneficiaryType
5+
- countryOfResidence
6+
- fullName
7+
properties:
8+
beneficiaryType:
9+
type: string
10+
enum:
11+
- INDIVIDUAL
12+
fullName:
13+
type: string
14+
description: The full name of the beneficiary
15+
birthDate:
16+
type: string
17+
description: The birth date of the beneficiary
18+
nationality:
19+
type: string
20+
description: The nationality of the beneficiary
21+
email:
22+
type: string
23+
description: The email of the beneficiary
24+
phoneNumber:
25+
type: string
26+
description: The phone number of the beneficiary
27+
countryOfResidence:
28+
type: string
29+
description: The country of residence of the beneficiary
30+
address:
31+
$ref: ./Address.yaml

openapi/components/schemas/common/DkkBeneficiary.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ properties:
2323
phoneNumber:
2424
type: string
2525
description: The phone number of the beneficiary
26-
registrationNumber:
27-
type: string
28-
description: The registration number of the beneficiary
2926
countryOfResidence:
3027
type: string
3128
description: The country of residence of the beneficiary

0 commit comments

Comments
 (0)