Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BankTransferInstruction ¶
type BankTransferInstruction struct {
mixin.Model[BankTransferInstruction]
CustomerId string `json:"customerId"`
Currency currency.Type `json:"currency" orm:"default:usd"`
Type string `json:"type"` // "ach" | "wire" | "sepa"
Reference string `json:"reference"` // unique payment reference
BankName string `json:"bankName"`
AccountHolder string `json:"accountHolder,omitempty"`
AccountNumber string `json:"accountNumber"` // last 4 only (masked)
RoutingNumber string `json:"routingNumber,omitempty"`
IBAN string `json:"iban,omitempty"`
BIC string `json:"bic,omitempty"`
Status string `json:"status" orm:"default:active"` // "active" | "expired"
Metadata Map `json:"metadata,omitempty" datastore:"-"`
Metadata_ string `json:"-" datastore:",noindex"`
}
BankTransferInstruction represents bank account details issued to a customer for receiving inbound wire/ACH/SEPA transfers. Each instruction carries a unique payment reference that is used to reconcile incoming funds.
func New ¶
func New(db *datastore.Datastore) *BankTransferInstruction
func (*BankTransferInstruction) Load ¶
func (i *BankTransferInstruction) Load(ps []datastore.Property) (err error)
func (*BankTransferInstruction) Save ¶
func (i *BankTransferInstruction) Save() (ps []datastore.Property, err error)
func (*BankTransferInstruction) Validator ¶
func (i *BankTransferInstruction) Validator() *val.Validator
Click to show internal directories.
Click to hide internal directories.