-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathothers_creditcard.xsd
314 lines (295 loc) · 12.2 KB
/
others_creditcard.xsd
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:aa="http://api.rebit.org.in/others/others_creditcard" elementFormDefault="qualified"
targetNamespace="http://api.rebit.org.in/others/others_creditcard"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" vc:minVersion="1.1">
<xs:simpleType name="HolderEmail">
<xs:restriction base="xs:string">
<xs:pattern value="[^@]+@[^\.]+\..+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="version">
<xs:restriction base="xs:float">
<xs:minInclusive value="0.0"/>
<xs:maxInclusive value="2.0"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HoldingNominee">
<xs:restriction base="xs:string">
<xs:enumeration value="REGISTERED"/>
<xs:enumeration value="NOT-REGISTERED"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HolderPan">
<xs:restriction base="xs:string">
<xs:pattern value="[a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z][0-9][0-9][0-9][0-9][a-zA-Z]"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CardType">
<xs:restriction base="xs:string">
<xs:enumeration value="MASTER_CARD"/>
<xs:enumeration value="VISA"/>
<xs:enumeration value="RUPAY"/>
<xs:enumeration value="OTHERS"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TypeChoice">
<xs:restriction base="xs:string">
<xs:enumeration value="YES"/>
<xs:enumeration value="NO"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TransactionType">
<xs:restriction base="xs:string">
<xs:enumeration value="DEBIT"/>
<xs:enumeration value="CREDIT"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="Account">
<xs:complexType>
<xs:sequence>
<xs:element ref="aa:Profile" minOccurs="0" maxOccurs="1"/>
<xs:element ref="aa:Summary" minOccurs="0" maxOccurs="1"/>
<xs:element ref="aa:Transactions" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="maskedAccNumber" use="required" type="xs:string"/>
<xs:attribute name="linkedAccRef" use="required" type="xs:string"/>
<xs:attribute name="version" use="required" type="aa:version"/>
<xs:attribute name="type" use="required" type="xs:string" fixed="credit_card"/>
</xs:complexType>
</xs:element>
<xs:element name="Profile">
<xs:annotation>
<xs:documentation>Basic Profile of the account which should include the Account Owner information,
maskedAccNumber and linkedAccRef numbers, type of account specific to the FI type and any other generic details
as might be pertinent for the specified FI type. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="aa:Holders"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Summary">
<xs:annotation>
<xs:documentation>The value of the account, term of the deposits if relevant and any other data
that summarizes the funds in the account. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="currentDue" use="required" type="xs:float">
<xs:annotation>
<xs:documentation> Current month outstanding balance on the credit card hold </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="lastStatementDate" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> Date of last statement generated </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="dueDate" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> Due date for the oustanding amount which need to pay </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="previousDueAmount" use="required" type="xs:float">
<xs:annotation>
<xs:documentation> Previous month outstanding balance </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="totalDueAmount" use="required" type="xs:float">
<xs:annotation>
<xs:documentation> Total outstanding balance due or need to pay. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="minDueAmount" use="required" type="xs:float">
<xs:annotation>
<xs:documentation> Minimum balance which need to paid. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="creditLimit" use="required" type="xs:float">
<xs:annotation>
<xs:documentation> Total Credit Limit of cardholder. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="cashLimit" use="required" type="xs:float">
<xs:annotation>
<xs:documentation> Total Cash Limit of cardholder. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="availableCredit" use="required" type="xs:float">
<xs:annotation>
<xs:documentation>Available Credit Limit in the account. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="loyaltyPoints" use="required" type="xs:positiveInteger">
<xs:annotation>
<xs:documentation> Loyalty Point earned on the transaction conducted </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="financeCharges" use="required" type="xs:float">
<xs:annotation>
<xs:documentation> Finance charges implied by company if applicable </xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Holders">
<xs:complexType>
<xs:sequence>
<xs:element ref="aa:Holder"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Holder">
<xs:complexType>
<xs:sequence>
<xs:element ref="aa:Cards"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string">
<xs:annotation>
<xs:documentation> Name of Profile holder to whom card is issued. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="dob" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> Date of birth of primary account holder. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="mobile" use="required" type="xs:integer">
<xs:annotation>
<xs:documentation> Mobile number of primary holder. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="nominee" use="required" type="aa:HoldingNominee">
<xs:annotation>
<xs:documentation> Name of nominee associated with the account. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="landline" type="xs:string">
<xs:annotation>
<xs:documentation> Landline number of primary holder. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="address" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation> Address of primary holder. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="email" use="required" type="aa:HolderEmail">
<xs:annotation>
<xs:documentation> Email ID of primary account holder </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="pan" use="required" type="aa:HolderPan">
<xs:annotation>
<xs:documentation> PAN number of primary account holder </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ckycCompliance" use="required" type="xs:boolean">
<xs:annotation>
<xs:documentation> KYC status whether its completed or pending </xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Cards">
<xs:complexType>
<xs:sequence>
<xs:element ref="aa:Card"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Card">
<xs:complexType>
<xs:attribute name="cardType" use="required" type="aa:CardType">
<xs:annotation>
<xs:documentation> Type of credit card - RuPay, Visa, Mastercard, etc </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="primary" use="required" type="aa:TypeChoice">
<xs:annotation>
<xs:documentation> Name of Profile holder to whom card is issued </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="issuedDate" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> Issue date of credit card </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="maskedCardNumber" use="required" type="xs:string">
<xs:annotation>
<xs:documentation> The credit card number with some of the numbers masked </xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Transactions">
<xs:annotation>
<xs:documentation>Details of all transactions that have been posted in an account. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="aa:Transaction"/>
</xs:sequence>
<xs:attribute name="startDate" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> Start date of investment since when it is applicable </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="endDate" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> End date of investment when tenure get complete </xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Transaction">
<xs:complexType>
<xs:attribute name="txnId" use="required" type="xs:string">
<xs:annotation>
<xs:documentation> Transaction ID recorded or captured for investment made </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="txnType" use="required" type="aa:TransactionType">
<xs:annotation>
<xs:documentation> Type of transaction whether debit or credit. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="txnDate" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> Transaction date time stamp for particular record when investment taken place </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="amount" use="required" type="xs:float">
<xs:annotation>
<xs:documentation> The transaction amount </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="valueDate" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> Available balance or value as on date </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="narration" use="required" type="xs:string">
<xs:annotation>
<xs:documentation> Nararation is additional details in form of decription of remark associated with investment. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="statementDate" use="required" type="xs:date">
<xs:annotation>
<xs:documentation> Statement Generated Date. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="mcc" use="required" type="xs:string">
<xs:annotation>
<xs:documentation> Merchant category code for the given transaction </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="maskedCardNumber" use="required" type="xs:string">
<xs:annotation>
<xs:documentation> The credit card number with some of the numbers masked. </xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>