payment

package
v0.0.0-...-9fd7169 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payment

type Payment struct {
	Id           int32   `gorm:"primaryKey" json:"id"`
	Code         string  `json:"code"`
	CustomerId   string  `json:"customer_id"`
	CustomerName string  `json:"customer_name"`
	MerchantId   string  `json:"merchant_id"`
	MerchantName string  `json:"merchant_name"`
	Amount       float64 `json:"amount"`
	IsRefunded   bool    `json:"is_refunded"`
	ExternalCode string  `json:"external_code"`
	CreatedAt    int64   `gorm:"autoCreateTime:false" json:"created_at"`
}

type PaymentPersistence

type PaymentPersistence interface {
	Create(data *Payment)
	Update(data *Payment)
	GetByCodeOrNil(code string) *Payment
}

Jump to

Keyboard shortcuts

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