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 ¶
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 ¶
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 PreCreateOrderLogic ¶
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 ¶
func NewPurchaseLogic ¶
func NewPurchaseLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PurchaseLogic
purchase Subscription
func (*PurchaseLogic) Purchase ¶
func (l *PurchaseLogic) Purchase(req *types.PurchaseOrderRequest) (resp *types.PurchaseOrderResponse, err error)
type QueryOrderDetailLogic ¶
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 ¶
func NewQueryOrderListLogic ¶
func NewQueryOrderListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryOrderListLogic
Get order list
func (*QueryOrderListLogic) QueryOrderList ¶
func (l *QueryOrderListLogic) QueryOrderList(req *types.QueryOrderListRequest) (resp *types.QueryOrderListResponse, err error)
type RechargeLogic ¶
func NewRechargeLogic ¶
func NewRechargeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RechargeLogic
NewRechargeLogic Recharge
func (*RechargeLogic) Recharge ¶
func (l *RechargeLogic) Recharge(req *types.RechargeOrderRequest) (resp *types.RechargeOrderResponse, err error)
type RenewalLogic ¶
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 ¶
func NewResetTrafficLogic ¶
func NewResetTrafficLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ResetTrafficLogic
Reset traffic
func (*ResetTrafficLogic) ResetTraffic ¶
func (l *ResetTrafficLogic) ResetTraffic(req *types.ResetTrafficOrderRequest) (resp *types.ResetTrafficOrderResponse, err error)
Click to show internal directories.
Click to hide internal directories.