paymentclient

package
v0.0.0-...-3414fa2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePaymentChannelRequest

type CreatePaymentChannelRequest = payment.CreatePaymentChannelRequest

type CreatePaymentChannelResponse

type CreatePaymentChannelResponse = payment.CreatePaymentChannelResponse

type CreatePaymentRequest

type CreatePaymentRequest = payment.CreatePaymentRequest

type CreatePaymentResponse

type CreatePaymentResponse = payment.CreatePaymentResponse

type CreateRefundRequest

type CreateRefundRequest = payment.CreateRefundRequest

type CreateRefundResponse

type CreateRefundResponse = payment.CreateRefundResponse

type GetPaymentRequest

type GetPaymentRequest = payment.GetPaymentRequest

type GetPaymentResponse

type GetPaymentResponse = payment.GetPaymentResponse

type GetPaymentStatusRequest

type GetPaymentStatusRequest = payment.GetPaymentStatusRequest

type GetPaymentStatusResponse

type GetPaymentStatusResponse = payment.GetPaymentStatusResponse

type GetRefundRequest

type GetRefundRequest = payment.GetRefundRequest

type GetRefundResponse

type GetRefundResponse = payment.GetRefundResponse

type ListPaymentChannelsRequest

type ListPaymentChannelsRequest = payment.ListPaymentChannelsRequest

type ListPaymentChannelsResponse

type ListPaymentChannelsResponse = payment.ListPaymentChannelsResponse

type Payment

type Payment interface {
	// 支付相关
	CreatePayment(ctx context.Context, in *CreatePaymentRequest, opts ...grpc.CallOption) (*CreatePaymentResponse, error)
	GetPayment(ctx context.Context, in *GetPaymentRequest, opts ...grpc.CallOption) (*GetPaymentResponse, error)
	PaymentNotify(ctx context.Context, in *PaymentNotifyRequest, opts ...grpc.CallOption) (*PaymentNotifyResponse, error)
	GetPaymentStatus(ctx context.Context, in *GetPaymentStatusRequest, opts ...grpc.CallOption) (*GetPaymentStatusResponse, error)
	// 退款相关
	CreateRefund(ctx context.Context, in *CreateRefundRequest, opts ...grpc.CallOption) (*CreateRefundResponse, error)
	GetRefund(ctx context.Context, in *GetRefundRequest, opts ...grpc.CallOption) (*GetRefundResponse, error)
	RefundNotify(ctx context.Context, in *RefundNotifyRequest, opts ...grpc.CallOption) (*RefundNotifyResponse, error)
	// 支付渠道
	CreatePaymentChannel(ctx context.Context, in *CreatePaymentChannelRequest, opts ...grpc.CallOption) (*CreatePaymentChannelResponse, error)
	UpdatePaymentChannel(ctx context.Context, in *UpdatePaymentChannelRequest, opts ...grpc.CallOption) (*UpdatePaymentChannelResponse, error)
	ListPaymentChannels(ctx context.Context, in *ListPaymentChannelsRequest, opts ...grpc.CallOption) (*ListPaymentChannelsResponse, error)
}

func NewPayment

func NewPayment(cli zrpc.Client) Payment

type PaymentChannel

type PaymentChannel = payment.PaymentChannel

type PaymentNotifyRequest

type PaymentNotifyRequest = payment.PaymentNotifyRequest

type PaymentNotifyResponse

type PaymentNotifyResponse = payment.PaymentNotifyResponse

type PaymentOrder

type PaymentOrder = payment.PaymentOrder

type RefundNotifyRequest

type RefundNotifyRequest = payment.RefundNotifyRequest

type RefundNotifyResponse

type RefundNotifyResponse = payment.RefundNotifyResponse

type RefundOrder

type RefundOrder = payment.RefundOrder

type UpdatePaymentChannelRequest

type UpdatePaymentChannelRequest = payment.UpdatePaymentChannelRequest

type UpdatePaymentChannelResponse

type UpdatePaymentChannelResponse = payment.UpdatePaymentChannelResponse

Jump to

Keyboard shortcuts

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