payclient

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCreateReq

type AppCreateReq = pay.AppCreateReq

type AppInfo

type AppInfo = pay.AppInfo

type AppListResp

type AppListResp = pay.AppListResp

type AppPageReq

type AppPageReq = pay.AppPageReq

type AppUpdateReq

type AppUpdateReq = pay.AppUpdateReq

type AppUpdateStatusReq

type AppUpdateStatusReq = pay.AppUpdateStatusReq

type BaseIDResp

type BaseIDResp = pay.BaseIDResp

type BaseMsg

type BaseMsg = pay.BaseMsg

type BaseResp

type BaseResp = pay.BaseResp

type BaseUUIDResp

type BaseUUIDResp = pay.BaseUUIDResp

type ByAppIdAndCodeReq

type ByAppIdAndCodeReq = pay.ByAppIdAndCodeReq

type ChannelCreateReq

type ChannelCreateReq = pay.ChannelCreateReq

type ChannelInfo

type ChannelInfo = pay.ChannelInfo

type ChannelListReq

type ChannelListReq = pay.ChannelListReq

type ChannelListResp

type ChannelListResp = pay.ChannelListResp

type ChannelUpdateReq

type ChannelUpdateReq = pay.ChannelUpdateReq

type DemoOrderInfo

type DemoOrderInfo = pay.DemoOrderInfo

type DemoOrderListResp

type DemoOrderListResp = pay.DemoOrderListResp

type DemoOrderPageReq

type DemoOrderPageReq = pay.DemoOrderPageReq

type Empty

type Empty = pay.Empty

type IDReq

type IDReq = pay.IDReq

type IDsReq

type IDsReq = pay.IDsReq

type NoReq

type NoReq = pay.NoReq

type NotifyOrderReq

type NotifyOrderReq = pay.NotifyOrderReq

type OrderCreateExtensionReq

type OrderCreateExtensionReq = pay.OrderCreateExtensionReq

type OrderCreateReq

type OrderCreateReq = pay.OrderCreateReq

type OrderExtensionInfo

type OrderExtensionInfo = pay.OrderExtensionInfo

type OrderInfo

type OrderInfo = pay.OrderInfo

type OrderListResp

type OrderListResp = pay.OrderListResp

type OrderPageReq

type OrderPageReq = pay.OrderPageReq

type PageInfoReq

type PageInfoReq = pay.PageInfoReq

type Pay

type Pay interface {
	// App management
	CreateApp(ctx context.Context, in *AppCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateApp(ctx context.Context, in *AppUpdateReq, opts ...grpc.CallOption) (*BaseResp, error)
	UpdateAppStatus(ctx context.Context, in *AppUpdateStatusReq, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteApp(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetApp(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*AppInfo, error)
	GetAppList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*AppListResp, error)
	GetAppPage(ctx context.Context, in *AppPageReq, opts ...grpc.CallOption) (*AppListResp, error)
	InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
	// Channel management
	CreateChannel(ctx context.Context, in *ChannelCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateChannel(ctx context.Context, in *ChannelUpdateReq, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteChannel(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetChannelById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*ChannelInfo, error)
	GetChannelListByAppIds(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*ChannelListResp, error)
	GetChannelListByAppIdAndCode(ctx context.Context, in *ByAppIdAndCodeReq, opts ...grpc.CallOption) (*ChannelInfo, error)
	GetEnableChannelList(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*ChannelListResp, error)
	ValidateChannelCanSubmit(ctx context.Context, in *ValidateChannelReq, opts ...grpc.CallOption) (*ChannelInfo, error)
	// Demo management
	CreateDemoOrder(ctx context.Context, in *PayDemoOrderCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	GetDemoOrder(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*DemoOrderInfo, error)
	GetListDemoOrder(ctx context.Context, in *DemoOrderPageReq, opts ...grpc.CallOption) (*DemoOrderListResp, error)
	UpdateDemoOrderPaid(ctx context.Context, in *UpdateDemoOrderPaidReq, opts ...grpc.CallOption) (*BaseResp, error)
	// Order management
	CreateOrder(ctx context.Context, in *OrderCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	GetOrder(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*OrderInfo, error)
	GetOrderPage(ctx context.Context, in *OrderPageReq, opts ...grpc.CallOption) (*OrderListResp, error)
	CreateOrderExtension(ctx context.Context, in *OrderCreateExtensionReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	GetOrderExtension(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*OrderExtensionInfo, error)
	NotifyOrder(ctx context.Context, in *NotifyOrderReq, opts ...grpc.CallOption) (*BaseResp, error)
	ValidateOrderCanSubmit(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*OrderInfo, error)
	// refund management
	CreateRefund(ctx context.Context, in *RefundCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	GetRefundPage(ctx context.Context, in *RefundPageReq, opts ...grpc.CallOption) (*RefundPageResp, error)
	GetRefundById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*RefundInfo, error)
}

func NewPay

func NewPay(cli zrpc.Client) Pay

type PayDemoOrderCreateReq

type PayDemoOrderCreateReq = pay.PayDemoOrderCreateReq

type RefundCountResp

type RefundCountResp = pay.RefundCountResp

type RefundCreateReq

type RefundCreateReq = pay.RefundCreateReq

type RefundInfo

type RefundInfo = pay.RefundInfo

type RefundListReq

type RefundListReq = pay.RefundListReq

type RefundListResp

type RefundListResp = pay.RefundListResp

type RefundPageReq

type RefundPageReq = pay.RefundPageReq

type RefundPageResp

type RefundPageResp = pay.RefundPageResp

type StringList

type StringList = pay.StringList

type UUIDReq

type UUIDReq = pay.UUIDReq

type UUIDsReq

type UUIDsReq = pay.UUIDsReq

type UpdateDemoOrderPaidReq

type UpdateDemoOrderPaidReq = pay.UpdateDemoOrderPaidReq

type ValidateChannelReq

type ValidateChannelReq = pay.ValidateChannelReq

Jump to

Keyboard shortcuts

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