Time series
It means you are able to go back in time and retrieve past values of a resource, even if the current value is not the same as it was
previously or if it has changed multiple different times.
Some examples of how you might use the time series in a Smart Contract hook:
Retrieving the latest denomination, used to check that a posting currency is valid.
Retrieving a past balance according to a provided timestamp.
Retrieving a past balance according to the previous day’send of dayy balance for that account.
Retrieving all of the flag values for a repayment holiday flag over the previous month.
Retrieving only the latest value for a repayment holiday flag.
Flags
Often a contract writer might wish to customize the behavior of the contract for some customers and not others. For thes e binary cases,
we recommend the use of account flags. Flags are stored against individual Payment Devices, Accounts, and Customers. They are a Boolean
piece of state that allows us to control the flow of a contract
Example use cases for flags include:
Marking a customer account as delinquent because they stopped paying their bills.
Adding a repayment holiday flag to an account so the customer doesn't have to repay their bill on time.
Flagging a customer as dormant when they stop using their product, leading to a freeze on the account.
Tier based features such as a better deal for employees, to help with staff retention.