-
Notifications
You must be signed in to change notification settings - Fork 1
/
payment-request-schema.json
128 lines (128 loc) · 3.46 KB
/
payment-request-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "PaymentRequest",
"type": "object",
"properties": {
"payment-id": {
"type": "string",
"maxLength": 36,
"description": "Unique identifier for the payment.",
"minLength": 1,
"examples": [
"8D8AC610-566D-4EF0-9C22-186B2A5ED793"
]
},
"instructed-amount": {
"type": "string",
"minLength": 1,
"maxLength": 8,
"description": "The amount given with fractional digits, where fractions must be compliant to the currency definition. Up to 14 significant figures. Negative amounts are signed by minus. The decimal separator is a dot..",
"examples": [
"1595",
"14.22",
"34.5"
]
},
"purpose": {
"type": "string",
"description": "Purpose of the payment.",
"maxLength": 140,
"examples": [
"Shopping at Merchant A"
]
},
"currency": {
"type": "string",
"description": "ISO 4217 Alpha 3 currency code.",
"pattern": "^[A-Z]{3}$",
"minLength": 3,
"maxLength": 3,
"examples": [
"EUR",
"NOK"
]
},
"creditor-name": {
"type": "string",
"description": "Name of the creditor.",
"maxLength": 140,
"examples": [
"Merchant A"
]
},
"creditor-account": {
"type": "object",
"properties": {
"iban": {
"type": "string",
"description": "IBAN of the account. This is required when no BBAN is provided.",
"pattern": "^([A-Z]{2}[ '+'\\'+'-]?[0-9]{2})(?=(?:[ '+'\\'+'-]?[A-Z0-9]){9,30}$)((?:[ '+'\\'+'-]?[A-Z0-9]{3,5}){2,7})([ '+'\\'+'-]?[A-Z0-9]{1,3})?$",
"maxLength": 34,
"examples": [
"DE75512108001245126199"
]
},
"bic": {
"type": "string",
"description": "The BIC associated to the account.",
"pattern": "^[A-Z]{4}[-]{0,1}[A-Z]{2}[-]{0,1}[A-Z0-9]{2}[-]{0,1}[0-9]{3}$",
"maxLength": 11,
"examples": [
"SOGEDEFFXXX"
]
},
"bban": {
"type": "string",
"description": "BBAN of the account. Used for payment accounts without IBAN.",
"pattern": "^[A-Z0-9]+$",
"maxLength": 30
}
},
"required": ["iban"]
},
"start-date": {
"type": "string",
"format": "date",
"description": "Start of a recurring payment.",
"examples": [
"2018-11-13"
]
},
"end-date": {
"type": "string",
"format": "date",
"description": "End of a recurring payment.",
"examples": [
"2018-11-13"
]
},
"frequency": {
"type": "string",
"description": "End of a recurring payment indicated as EventFrequency7Code of ISO 20022",
"enum": ["Daily", "Weekly", "EveryTwoWeeks", "Monthly","EveryTwoMonths", "Quarterly", "SemiAnnual", "Annual", "MonthlyVariable"],
"examples": [
"Daily"
]
},
"execution-day": {
"type": "integer",
"minimum": 1,
"maximum": 31,
"description": "Day of execution.",
"examples": [
12
]
},
"execution-month": {
"type": "integer",
"minimum": 1,
"maximum": 12,
"description": "Month of execution.",
"examples": [
3
]
}
},
"additionalProperties": false,
"required": ["payment-id", "instructed-amount", "purpose", "currency", "creditor-name"]
}