models

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invoices

type Invoices struct {
	TransactionUuid   string  `json:"transaction_uuid"`
	InvoiceNo         string  `json:"invoice_no"`
	TotalPrice        float64 `json:"total_price"`
	PaymentGatewayID  int8    `json:"payment_gateway_id"`
	PaymentMethodType int8    `json:"payment_gateway_type"`
	PaymentMethodCode string  `json:"payment_method_id"`

	ExpiredAt      string `json:"expired_at"`
	Identifier     string `json:"identifier"`
	RedirectUrl    string `json:"redirect_url"`
	RedirectParams string `json:"redirect_params"`
	ResponseJson   string `json:"response_json"`
}

type PaymentMethods

type PaymentMethods struct {
	PaymentMethodTypeID int    `json:"payment_method_type_id"` // e-wallet, virtual-account, etc
	PaymentMethodID     int    `json:"payment_method_id"`      // ovo, dana, bni-va, bca-va, etc
	Code                string `json:"code"`                   // "OVO", "DANA", etc
}

type TransactionAddress

type TransactionAddress struct {
	TransactionUuid   string `json:"transaction_uuid"`
	FirstName         string `json:"first_name"`
	LastName          string `json:"last_name"`
	Address           string `json:"address"`
	AdditionalAddress string `json:"additional_address"`
	Postcode          string `json:"postcode"`
	EmailAddress      string `json:"email_address"`
	Phone             string `json:"phone"`

	CountryName  string `json:"country_name"`
	CountryCode  string `json:"country_code"`
	ProvinceName string `json:"province_name"`
	ProvinceCode string `json:"province_code"`
	CityName     string `json:"city_name"`
	CityCode     string `json:"city_code"`
}

type TransactionCompanies

type TransactionCompanies struct {
	TransactionUuid string `json:"transaction_uuid"`
	CompanyID       uint64 `json:"company_id"`
	CompanyCode     string `json:"company_code"`
	Name            string `json:"name"`
	Address         string `json:"address"`
	Postcode        string `json:"postcode"`
	Email           string `json:"email"`
	MobilePhone     string `json:"mobile_phone"`

	CountryName  string `json:"country_name"`
	CountryCode  string `json:"country_code"`
	ProvinceName string `json:"province_name"`
	ProvinceCode string `json:"province_code"`
	CityName     string `json:"city_name"`
	CityCode     string `json:"city_code"`
}

type TransactionDocuments

type TransactionDocuments struct {
	TransactionUuid string `json:"transaction_uuid"`
}

type TransactionItems

type TransactionItems struct {
	TransactionUuid     string     `json:"transaction_uuid"`
	TransactionItemUuid string     `json:"transaction_item_uuid"`
	Qty                 uint64     `json:"qty"`
	TotalPrice          float64    `json:"price"`
	ExpiredAt           *time.Time `json:"expired_at"`
	ProductName         string     `json:"product_name"`
	ProductCategoryName string     `json:"product_category_name"`
	ItemUrl             string     `json:"item_url"`
}

type TransactionUsers

type TransactionUsers struct {
	TransactionUuid   string `json:"transaction_uuid"`
	FirstName         string `json:"first_name"`
	LastName          string `json:"last_name"`
	Address           string `json:"address"`
	AdditionalAddress string `json:"additional_address"`
	Postcode          string `json:"postcode"`
	EmailAddress      string `json:"email_address"`
	Phone             string `json:"phone"`

	CountryName  string `json:"country_name"`
	CountryCode  string `json:"country_code"`
	ProvinceName string `json:"province_name"`
	ProvinceCode string `json:"province_code"`
	CityName     string `json:"city_name"`
	CityCode     string `json:"city_code"`
}

type Transactions

type Transactions struct {
	TransactionUuid   string     `json:"transaction_uuid"`
	PaymentGatewayID  int8       `json:"payment_gateway_id"`
	PaymentMethodType int8       `json:"payment_method_type"`
	PaymentMethodCode string     `json:"payment_method_code"`
	ReferenceNo       string     `json:"title"`
	Descriptions      string     `json:"descriptions"`
	RedirectUrl       string     `json:"redirect_url"`
	ExpiredAt         *time.Time `json:"expired_at"`

	TransactionItems           []TransactionItems     `json:"transaction_items"`
	TransactionShippingAddress *TransactionAddress    `json:"transaction_shipping_address"`
	TransactionBillingAddress  *TransactionAddress    `json:"transaction_billing_address"`
	TransactionUsers           *TransactionUsers      `json:"transaction_users"`
	TransactionCompanies       []TransactionCompanies `json:"transaction_companies"`
	PaymentMethods             []PaymentMethods       `json:"payment_methods"`
}

Jump to

Keyboard shortcuts

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