Documentation ¶
Index ¶
- type CardStatement
- type CardStatus
- type NullTime
- func (n NullTime) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
- func (n NullTime) MarshalJSON() ([]byte, error)
- func (n NullTime) MarshalText() ([]byte, error)
- func (n *NullTime) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
- func (n *NullTime) UnmarshalText(text []byte) error
- type TxStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardStatement ¶
type CardStatement struct { Status CardStatus `json:"status"` Transactions []TxStatus `json:"tx"` }
CardStatement contains info about a prepaid card along with all transactions with it.
type CardStatus ¶
type CardStatus struct { ID string `json:"id" dynamo:"id"` Balance float64 `json:"balance" dynamo:"balance"` Blocked float64 `json:"blocked" dynamo:"blocked,omitempty"` }
CardStatus contains info about a prepaid card.
type NullTime ¶
NullTime represents an time.Time value that may be null, represented as an empty string in text, and null in JSON.
func (NullTime) MarshalDynamoDBAttributeValue ¶
func (n NullTime) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
MarshalDynamoDBAttributeValue implements the dynamodbattribute.Marshaler interface.
func (NullTime) MarshalJSON ¶
MarshalJSON implements the encoding/json.MarshalJSON interface.
func (NullTime) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*NullTime) UnmarshalDynamoDBAttributeValue ¶
func (n *NullTime) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
UnmarshalDynamoDBAttributeValue implements the dynamodbattribute.Unmarshaler interface.
func (*NullTime) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type TxStatus ¶
type TxStatus struct { ID string `json:"id" dynamo:"id"` CardID string `json:"-" dynamo:"card_id"` Merchant string `json:"merchant" dynamo:"merchant"` Blocked float64 `json:"blocked" dynamo:"blocked"` Captured float64 `json:"captured" dynamo:"captured"` Refunded float64 `json:"refunded" dynamo:"refunded"` CreatedAt NullTime `json:"created_at" dynamo:"created_at"` ExpiresAt NullTime `json:"expires_at" dynamo:"expires_at"` CapturedAt NullTime `json:"captured_at" dynamo:"captured_at"` RefundedAt NullTime `json:"refunded_at" dynamo:"refunded_at"` }
TxStatus contains info about a transaction.Null