financialtransaction

package
v0.0.0-...-984c388 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinancialTransaction

type FinancialTransaction struct {
	ID                   string
	User                 user.User                          // req, FK -> users
	FinancialAccount     *financialaccount.FinancialAccount // FK -> financial_accounts, nullable
	Card                 *card.Card                         // FK -> cards, nullable
	Contact              contact.Contact                    // FK -> contacts
	FromScheduledPayment *scheduledpayment.ScheduledPayment // FK -> scheduled_payments, nullable
	DisplayName          string                             // req
	Description          string
	Amount               float64
	CurrencyCode         string    // uses ISO-4127 standard
	OccurredAt           time.Time //req
	customtype.Auditable
}

FinancialTransaction record generated by the financial interaction between a User and a Contact.

Assets could come from either FinancialAccount directly or from a Card; both instruments are mutually exclusive.

Transactions could also be generated by ScheduledPayment(s).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL