handler

package
v0.0.0-...-fb1a1ec Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(serv *service.Service) stripepb.StripeHandler

Types

type CustomerMapping

type CustomerMapping struct {
	ID       string
	StripeID string
}

type Stripe

type Stripe struct {
	// contains filtered or unexported fields
}

func (*Stripe) ChargeCard

func (s *Stripe) ChargeCard(ctx context.Context, request *stripepb.ChargeCardRequest, response *stripepb.ChargeCardResponse) error

func (*Stripe) CreateCheckoutSession

func (s *Stripe) CreateCheckoutSession(ctx context.Context, request *stripepb.CreateCheckoutSessionRequest, response *stripepb.CreateCheckoutSessionResponse) error

func (*Stripe) DeleteCard

func (s *Stripe) DeleteCard(ctx context.Context, request *stripepb.DeleteCardRequest, response *stripepb.DeleteCardResponse) error

func (*Stripe) GetPayment

func (s *Stripe) GetPayment(ctx context.Context, request *stripepb.GetPaymentRequest, response *stripepb.GetPaymentResponse) error

func (*Stripe) ListCards

func (s *Stripe) ListCards(ctx context.Context, request *stripepb.ListCardsRequest, response *stripepb.ListCardsResponse) error

func (*Stripe) ListPayments

func (s *Stripe) ListPayments(ctx context.Context, request *stripepb.ListPaymentsRequest, response *stripepb.ListPaymentsResponse) error

func (*Stripe) SetupCard

func (s *Stripe) SetupCard(ctx context.Context, request *stripepb.SetupCardRequest, response *stripepb.SetupCardResponse) error

func (*Stripe) Subscribe

func (s *Stripe) Subscribe(ctx context.Context, request *stripepb.SubscribeRequest, response *stripepb.SubscribeResponse) error

func (*Stripe) Unsubscribe

func (s *Stripe) Unsubscribe(ctx context.Context, request *stripepb.UnsubscribeRequest, response *stripepb.UnsubscribeResponse) error

func (*Stripe) Webhook

func (s *Stripe) Webhook(ctx context.Context, req *api.Request, rsp *api.Response) error

type WebhookResponse

type WebhookResponse struct{}

Jump to

Keyboard shortcuts

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