-
Notifications
You must be signed in to change notification settings - Fork 28
/
Account.schema.json
84 lines (84 loc) · 3.77 KB
/
Account.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "Account.schema.json",
"title": "Account",
"definitions": {
"Account": {
"$id": "#Account",
"description": "Generic Account structure used to define commonalities between sub concepts of PartyAccount and Financial Account.",
"type": "object",
"allOf": [
{
"properties": {
"creditLimit": {
"$ref": "../Common/Money.schema.json#Money",
"description": "The maximum amount of money that may be charged on an account"
},
"description": {
"type": "string",
"description": "Detailed description of the party account"
},
"href": {
"type": "string",
"description": "Unique reference of the account"
},
"id": {
"type": "string",
"description": "Unique identifier of the account"
},
"lastModified": {
"type": "string",
"format": "date-time",
"description": "Date of last modification of the account"
},
"name": {
"type": "string",
"description": "Name of the account"
},
"state": {
"type": "string",
"description": "Contains the lifecycle state such as: Active, Closed, Suspended and so on."
},
"type": {
"type": "string",
"description": "A categorization of an account, such as individual, joint, and so forth, whose instances share some of the same characteristics. Note: for flexibility we use a String here but an implementation may use an enumeration with a limited list of valid values."
},
"relatedParty": {
"type": "array",
"items": {
"$ref": "RelatedPartyRef.schema.json#RelatedPartyRef"
}
},
"taxExemption": {
"type": "array",
"items": {
"$ref": "AccountTaxExemption.schema.json#AccountTaxExemption"
}
},
"contact": {
"type": "array",
"items": {
"$ref": "Contact.schema.json#Contact"
}
},
"accountBalance": {
"type": "array",
"items": {
"$ref": "AccountBalance.schema.json#AccountBalance"
}
},
"accountRelationship": {
"type": "array",
"items": {
"$ref": "AccountRelationship.schema.json#AccountRelationship"
}
}
}
},
{
"$ref": "../Common/CommonComponents.schema.json#polymorphicPattern"
}
]
}
}
}