-
Notifications
You must be signed in to change notification settings - Fork 30
/
BalanceAdjustmentRequest.schema.json
64 lines (64 loc) · 3.07 KB
/
BalanceAdjustmentRequest.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "BalanceAdjustmentRequest.schema.json",
"title": "BalanceAdjustmentRequest",
"definitions": {
"BalanceAdjustmentRequest": {
"$id": "#BalanceAdjustmentRequest",
"description": "the BalanceAdjustment resource is a detailed description of credit adjustment operation erformed on a given bucket (defined by a specific product or reference to a product (i.e.: a commercial id such as an msisidn) and a service type)",
"properties": {
"bucket": {
"description": "A reference to the bucket impacted by the request. This is used in scenarios where the requestor knows beforehand the bucket that is going to be impacted instead of just referring to the commercial identifier of the impacted product and the type of bucket created under that product",
"$ref": "../Customer/BucketBalanceRef.schema.json#BucketBalanceRef"
},
"description": {
"type": "string",
"description": "Description of the recharge operation"
},
"href": {
"type": "string",
"description": "A resource URI pointing to the resource in the OB that stores the detailed information. This is typically the resource url to retrieve individual top-up operation details"
},
"id": {
"type": "string",
"description": "Unique Identifier within the server for the balance adjustment operation request"
},
"partyAccount": {
"description": "A reference to the account that owns the bucket impacted by the balance related operation",
"$ref": "../EngagedParty/PartyAccountRef.schema.json#PartyAccountRef"
},
"relatedParty": {
"type": "array",
"items": {
"$ref": "../EngagedParty/RelatedPartyRef.schema.json#RelatedPartyRef"
},
"description": "Used to provide information about any other entity with relation to the operation"
},
"requestedDate": {
"type": "string",
"description": "Date when the top-up request was received in the server"
},
"requestor": {
"description": "Identifier for the user/customer/entity that performs the top-up action. This can be used to indicate the identifier of an agent that performs the operation on behalf of a user via a customer service channel. Structure including at least attributes �role� and �name�.",
"$ref": "../EngagedParty/RelatedPartyRef.schema.json#RelatedPartyRef"
},
"validFor": {
"description": "The period defined for the adjusted amount to be part of the prepay balance. This could be used to define expiration times to remove balance not consumed.",
"$ref": "../Common/TimePeriodType.schema.json#TimePeriodType"
}
},
"allOf": [
{
"$ref": "../Customer/BalanceAdjustmentBody.schema.json#BalanceAdjustmentBody"
}
],
"required": [
"id",
"href",
"requestedDate",
"product"
],
"type": "object"
}
}
}