payment

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchRentPayment

type BranchRentPayment struct {
	gorm.Model
	BranchRentPaymentsID uint64
	BranchRentPayments   BranchRentPayments `gorm:"foreignKey:BranchRentPaymentsID"`
	PaymentID            uint64
	Payment              Payment `gorm:"foreignKey:PaymentID"`
}

BranchRentPayment is the PostgreSQL branch rent payment model

type BranchRentPayments

type BranchRentPayments struct {
	gorm.Model
	BranchRentIDHex string
}

BranchRentPayments is the PostgreSQL branch rent payments model

type OrderPayment

type OrderPayment struct {
	gorm.Model
	OrderPaymentsID uint64
	OrderPayments   OrderPayments `gorm:"foreignKey:OrderPaymentsID"`
	PaymentID       uint64
	Payment         Payment `gorm:"foreignKey:PaymentID"`
}

OrderPayment is the PostgreSQL order payment model

type OrderPayments

type OrderPayments struct {
	gorm.Model
	OrderID uint64
}

OrderPayments is the PostgreSQL order payments model

type Payment

type Payment struct {
	gorm.Model
	PaymentAccountID uint64
	PaymentAccount   PaymentAccount `gorm:"foreignKey:PaymentAccountID"`
	Amount           float64
	PaymentDate      time.Time
	RefundedAt       sql.NullTime
	VerifiedByUserID sql.NullInt64
	VerifiedByUser   User `gorm:"foreignKey:VerifiedByUserID"`
}

Payment is the PostgreSQL payment model

type PaymentAccount

type PaymentAccount struct {
	gorm.Model
	BranchIDHex        sql.NullString
	AccountPlatform    string
	AccountNumber      sql.NullString
	AccountName        sql.NullString
	AccountEmail       sql.NullString
	AccountPhoneNumber sql.NullString
	IsActive           bool
}

PaymentAccount is the PostgreSQL payment account model

type User

type User struct {
	gorm.Model
	UserIDHex string
}

User is the PostgreSQL user model

Jump to

Keyboard shortcuts

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