Skip to content

Commit 5d76a76

Browse files
authored
Add remaining required fields for certain payout countries (#237)
1 parent 5294806 commit 5d76a76

7 files changed

Lines changed: 207 additions & 39 deletions

File tree

mintlify/openapi.yaml

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

openapi.yaml

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

openapi/components/schemas/common/HkdAccountInfo.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ required:
44
- paymentRails
55
- bankName
66
- accountNumber
7+
- swiftCode
78
properties:
89
accountType:
910
type: string
@@ -17,7 +18,16 @@ properties:
1718
- BANK_TRANSFER
1819
bankName:
1920
type: string
20-
description: The bank name of the bank
21+
description: Name of the bank
22+
example: HSBC Hong Kong
2123
accountNumber:
2224
type: string
23-
description: The account number of the bank
25+
description: Hong Kong bank account number
26+
example: '123456789012'
27+
swiftCode:
28+
type: string
29+
description: SWIFT/BIC code (8 or 11 characters)
30+
example: HSBCHKHHHKH
31+
minLength: 8
32+
maxLength: 11
33+
pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$

openapi/components/schemas/common/IdrAccountInfo.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ type: object
22
required:
33
- accountType
44
- paymentRails
5-
- sortCode
65
- accountNumber
6+
- bankName
7+
- swiftCode
8+
- phoneNumber
79
properties:
810
accountType:
911
type: string
@@ -15,9 +17,23 @@ properties:
1517
type: string
1618
enum:
1719
- BANK_TRANSFER
18-
sortCode:
19-
type: string
20-
description: The sort code of the bank
2120
accountNumber:
2221
type: string
23-
description: The account number of the bank
22+
description: Indonesian bank account number
23+
example: '1234567890'
24+
bankName:
25+
type: string
26+
description: Name of the bank
27+
example: Bank Central Asia
28+
swiftCode:
29+
type: string
30+
description: SWIFT/BIC code (8 or 11 characters)
31+
example: CENAIDJA
32+
minLength: 8
33+
maxLength: 11
34+
pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$
35+
phoneNumber:
36+
type: string
37+
description: Indonesian phone number for e-wallet payments
38+
example: '+6281234567890'
39+
pattern: ^\+62[0-9]{9,12}$

0 commit comments

Comments
 (0)