I'm trying to understand how balances are updated as charges are posted or payments are posted to an account. Looking at Account Balance in TMF666, it only defines PATCH methods for updating, but accountBalance is explicitly not patchable. There are no PUT methods, and there are no task resources to update accountBalance atomically. Meanwhile, TMF654 defines a comprehensible set of task resources for updating balances, but the API name suggests it is intended for prepay balance management to the exclusion of postpay services.
This raises two questions.
(1) Is TMF654 used for both prepay and postpay services to update balances?
(2) Is there an implicit relationship between TMF654 and the Account Balance on the accounts in TMF666, so that as the task resources on TMF654 are posted, the account balances on the accounts are updated implicitly?
Moreover, TMF666 appears to lack some precision in how Account Balance is depicted in examples. The Account Balance sub-resource is described as having an amount of type Money. However, the examples all show account as having a numeric value without a currency. I suspect the intent is for Account Balance to be a structure that handles monetary amounts similar to TMF654, but the document needs some edits to make it more consistent. Is that the right way to think of it?
------------------------------
Ben Eng
Oracle Corporation
------------------------------