Documentation ¶
Index ¶
Constants ¶
View Source
const Kind = "balance"
Kind distinguishes between different resource kinds
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct { Metadata resource.Metadata `json:"metadata,omitempty"` Data Data `json:"data,omitempty"` Signature string `json:"signature,omitempty"` }
Balance is a resource to communicate the amounts of each currency held by the PFI on behalf of its customer.
func Create ¶
func Create(fromDID did.BearerDID, currencyCode, availableAmount string, opts ...CreateOption) (Balance, error)
Create a Balance object
func (*Balance) UnmarshalJSON ¶
UnmarshalJSON validates and unmarshals the input data into a Balance.
type CreateOption ¶
type CreateOption func(*createOptions)
CreateOption implements functional options pattern for Create.
Click to show internal directories.
Click to hide internal directories.