order

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Stripe = "Stripe"
	QR     = "qr"
	Link   = "link"
)
View Source
const CloseOrderTimeMinutes = 15

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckoutOrderLogic

type CheckoutOrderLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewCheckoutOrderLogic

func NewCheckoutOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CheckoutOrderLogic

NewCheckoutOrderLogic Checkout order

func (*CheckoutOrderLogic) CheckoutOrder

func (l *CheckoutOrderLogic) CheckoutOrder(req *types.CheckoutOrderRequest, requestHost string) (resp *types.CheckoutOrderResponse, err error)

type CloseOrderLogic

type CloseOrderLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewCloseOrderLogic

func NewCloseOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CloseOrderLogic

NewCloseOrderLogic Close order

func (*CloseOrderLogic) CloseOrder

func (l *CloseOrderLogic) CloseOrder(req *types.CloseOrderRequest) error

type CurrencyConfig

type CurrencyConfig struct {
	CurrencyUnit   string
	CurrencySymbol string
	AccessKey      string
}

type PreCreateOrderLogic

type PreCreateOrderLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewPreCreateOrderLogic

func NewPreCreateOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PreCreateOrderLogic

Pre create order

func (*PreCreateOrderLogic) PreCreateOrder

func (l *PreCreateOrderLogic) PreCreateOrder(req *types.PurchaseOrderRequest) (resp *types.PreOrderResponse, err error)

type PurchaseLogic

type PurchaseLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewPurchaseLogic

func NewPurchaseLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PurchaseLogic

purchase Subscription

func (*PurchaseLogic) Purchase

type QueryOrderDetailLogic

type QueryOrderDetailLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewQueryOrderDetailLogic

func NewQueryOrderDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryOrderDetailLogic

Get order

func (*QueryOrderDetailLogic) QueryOrderDetail

func (l *QueryOrderDetailLogic) QueryOrderDetail(req *types.QueryOrderDetailRequest) (resp *types.OrderDetail, err error)

type QueryOrderListLogic

type QueryOrderListLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewQueryOrderListLogic

func NewQueryOrderListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryOrderListLogic

Get order list

func (*QueryOrderListLogic) QueryOrderList

type RechargeLogic

type RechargeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewRechargeLogic

func NewRechargeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RechargeLogic

NewRechargeLogic Recharge

func (*RechargeLogic) Recharge

type RenewalLogic

type RenewalLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewRenewalLogic

func NewRenewalLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RenewalLogic

Renewal Subscription

func (*RenewalLogic) Renewal

func (l *RenewalLogic) Renewal(req *types.RenewalOrderRequest) (resp *types.RenewalOrderResponse, err error)

type ResetTrafficLogic

type ResetTrafficLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewResetTrafficLogic

func NewResetTrafficLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ResetTrafficLogic

Reset traffic

func (*ResetTrafficLogic) ResetTraffic

Jump to

Keyboard shortcuts

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