In the swagger definition for Party Account.
Party Account contains a Financial Account, and part of that is a reference
"financialAccount": {
"$ref": "#/definitions/FinancialAccountRef"
},
Defined as
"FinancialAccountRef": {
"type": "object",
"description": "AccountReceivable reference. An account of money owed by a party to another entity in exchange for goods or services that have been delivered or used. An account receivable aggregates the amounts of one or more party accounts (billing or settlement) owned by a given party.",
"properties": {
"@referredType": {
"type": "string",
"description": "Generic attribute indicating the name of the class type of the referred resource entity."
},
"href": {
"type": "string",
"description": "Unique reference of the account"
},
"id": {
"type": "string",
"description": "Unique identifier of the account"
},
"name": {
"type": "string",
"description": "Name of the account"
},
"accountBalance": {
"$ref": "#/definitions/AccountBalance"
}
}
},
The challenge here is the presence of the AccountBalance. This is not an identifier of an account. All other reference classes present only have identifiers in their reference.
Is this intended?
Is it an anomaly?
Or is this a way of finding accounts based on current balance?
If so, how would we get to the right account as this would make it very possible to get multiple accounts with the same balance and balance type?
------------------------------
Hugo Vaughan
Crowd Frame Consulting Limited.
------------------------------