Versions in this module Expand all Collapse all v0 v0.3.0 Aug 16, 2022 v0.2.0 Jul 28, 2022 Changes in this version + var File_proto_stripe_proto protoreflect.FileDescriptor + func NewStripeEndpoints() []*api.Endpoint + func RegisterStripeHandler(s server.Server, hdlr StripeHandler, opts ...server.HandlerOption) error + type Card struct + Expires string + Id string + LastFour string + func (*Card) Descriptor() ([]byte, []int) + func (*Card) ProtoMessage() + func (x *Card) GetExpires() string + func (x *Card) GetId() string + func (x *Card) GetLastFour() string + func (x *Card) ProtoReflect() protoreflect.Message + func (x *Card) Reset() + func (x *Card) String() string + type ChargeCardRequest struct + Amount int64 + Id string + func (*ChargeCardRequest) Descriptor() ([]byte, []int) + func (*ChargeCardRequest) ProtoMessage() + func (x *ChargeCardRequest) GetAmount() int64 + func (x *ChargeCardRequest) GetId() string + func (x *ChargeCardRequest) ProtoReflect() protoreflect.Message + func (x *ChargeCardRequest) Reset() + func (x *ChargeCardRequest) String() string + type ChargeCardResponse struct + ClientSecret string + func (*ChargeCardResponse) Descriptor() ([]byte, []int) + func (*ChargeCardResponse) ProtoMessage() + func (x *ChargeCardResponse) GetClientSecret() string + func (x *ChargeCardResponse) ProtoReflect() protoreflect.Message + func (x *ChargeCardResponse) Reset() + func (x *ChargeCardResponse) String() string + type CreateCheckoutSessionRequest struct + Amount int64 + SaveCard bool + func (*CreateCheckoutSessionRequest) Descriptor() ([]byte, []int) + func (*CreateCheckoutSessionRequest) ProtoMessage() + func (x *CreateCheckoutSessionRequest) GetAmount() int64 + func (x *CreateCheckoutSessionRequest) GetSaveCard() bool + func (x *CreateCheckoutSessionRequest) ProtoReflect() protoreflect.Message + func (x *CreateCheckoutSessionRequest) Reset() + func (x *CreateCheckoutSessionRequest) String() string + type CreateCheckoutSessionResponse struct + Id string + func (*CreateCheckoutSessionResponse) Descriptor() ([]byte, []int) + func (*CreateCheckoutSessionResponse) ProtoMessage() + func (x *CreateCheckoutSessionResponse) GetId() string + func (x *CreateCheckoutSessionResponse) ProtoReflect() protoreflect.Message + func (x *CreateCheckoutSessionResponse) Reset() + func (x *CreateCheckoutSessionResponse) String() string + type DeleteCardRequest struct + Id string + func (*DeleteCardRequest) Descriptor() ([]byte, []int) + func (*DeleteCardRequest) ProtoMessage() + func (x *DeleteCardRequest) GetId() string + func (x *DeleteCardRequest) ProtoReflect() protoreflect.Message + func (x *DeleteCardRequest) Reset() + func (x *DeleteCardRequest) String() string + type DeleteCardResponse struct + func (*DeleteCardResponse) Descriptor() ([]byte, []int) + func (*DeleteCardResponse) ProtoMessage() + func (x *DeleteCardResponse) ProtoReflect() protoreflect.Message + func (x *DeleteCardResponse) Reset() + func (x *DeleteCardResponse) String() string + type GetPaymentRequest struct + Id string + func (*GetPaymentRequest) Descriptor() ([]byte, []int) + func (*GetPaymentRequest) ProtoMessage() + func (x *GetPaymentRequest) GetId() string + func (x *GetPaymentRequest) ProtoReflect() protoreflect.Message + func (x *GetPaymentRequest) Reset() + func (x *GetPaymentRequest) String() string + type GetPaymentResponse struct + Payment *Payment + func (*GetPaymentResponse) Descriptor() ([]byte, []int) + func (*GetPaymentResponse) ProtoMessage() + func (x *GetPaymentResponse) GetPayment() *Payment + func (x *GetPaymentResponse) ProtoReflect() protoreflect.Message + func (x *GetPaymentResponse) Reset() + func (x *GetPaymentResponse) String() string + type ListCardsRequest struct + func (*ListCardsRequest) Descriptor() ([]byte, []int) + func (*ListCardsRequest) ProtoMessage() + func (x *ListCardsRequest) ProtoReflect() protoreflect.Message + func (x *ListCardsRequest) Reset() + func (x *ListCardsRequest) String() string + type ListCardsResponse struct + Cards []*Card + func (*ListCardsResponse) Descriptor() ([]byte, []int) + func (*ListCardsResponse) ProtoMessage() + func (x *ListCardsResponse) GetCards() []*Card + func (x *ListCardsResponse) ProtoReflect() protoreflect.Message + func (x *ListCardsResponse) Reset() + func (x *ListCardsResponse) String() string + type ListPaymentsRequest struct + func (*ListPaymentsRequest) Descriptor() ([]byte, []int) + func (*ListPaymentsRequest) ProtoMessage() + func (x *ListPaymentsRequest) ProtoReflect() protoreflect.Message + func (x *ListPaymentsRequest) Reset() + func (x *ListPaymentsRequest) String() string + type ListPaymentsResponse struct + Payments []*Payment + func (*ListPaymentsResponse) Descriptor() ([]byte, []int) + func (*ListPaymentsResponse) ProtoMessage() + func (x *ListPaymentsResponse) GetPayments() []*Payment + func (x *ListPaymentsResponse) ProtoReflect() protoreflect.Message + func (x *ListPaymentsResponse) Reset() + func (x *ListPaymentsResponse) String() string + type Payment struct + Amount int64 + Currency string + Date int64 + Description string + Id string + ReceiptUrl string + func (*Payment) Descriptor() ([]byte, []int) + func (*Payment) ProtoMessage() + func (x *Payment) GetAmount() int64 + func (x *Payment) GetCurrency() string + func (x *Payment) GetDate() int64 + func (x *Payment) GetDescription() string + func (x *Payment) GetId() string + func (x *Payment) GetReceiptUrl() string + func (x *Payment) ProtoReflect() protoreflect.Message + func (x *Payment) Reset() + func (x *Payment) String() string + type SetupCardRequest struct + func (*SetupCardRequest) Descriptor() ([]byte, []int) + func (*SetupCardRequest) ProtoMessage() + func (x *SetupCardRequest) ProtoReflect() protoreflect.Message + func (x *SetupCardRequest) Reset() + func (x *SetupCardRequest) String() string + type SetupCardResponse struct + ClientSecret string + func (*SetupCardResponse) Descriptor() ([]byte, []int) + func (*SetupCardResponse) ProtoMessage() + func (x *SetupCardResponse) GetClientSecret() string + func (x *SetupCardResponse) ProtoReflect() protoreflect.Message + func (x *SetupCardResponse) Reset() + func (x *SetupCardResponse) String() string + type StripeHandler interface + ChargeCard func(context.Context, *ChargeCardRequest, *ChargeCardResponse) error + CreateCheckoutSession func(context.Context, *CreateCheckoutSessionRequest, *CreateCheckoutSessionResponse) error + DeleteCard func(context.Context, *DeleteCardRequest, *DeleteCardResponse) error + GetPayment func(context.Context, *GetPaymentRequest, *GetPaymentResponse) error + ListCards func(context.Context, *ListCardsRequest, *ListCardsResponse) error + ListPayments func(context.Context, *ListPaymentsRequest, *ListPaymentsResponse) error + SetupCard func(context.Context, *SetupCardRequest, *SetupCardResponse) error + Subscribe func(context.Context, *SubscribeRequest, *SubscribeResponse) error + Unsubscribe func(context.Context, *UnsubscribeRequest, *UnsubscribeResponse) error + type StripeService interface + ChargeCard func(ctx context.Context, in *ChargeCardRequest, opts ...client.CallOption) (*ChargeCardResponse, error) + CreateCheckoutSession func(ctx context.Context, in *CreateCheckoutSessionRequest, ...) (*CreateCheckoutSessionResponse, error) + DeleteCard func(ctx context.Context, in *DeleteCardRequest, opts ...client.CallOption) (*DeleteCardResponse, error) + GetPayment func(ctx context.Context, in *GetPaymentRequest, opts ...client.CallOption) (*GetPaymentResponse, error) + ListCards func(ctx context.Context, in *ListCardsRequest, opts ...client.CallOption) (*ListCardsResponse, error) + ListPayments func(ctx context.Context, in *ListPaymentsRequest, opts ...client.CallOption) (*ListPaymentsResponse, error) + SetupCard func(ctx context.Context, in *SetupCardRequest, opts ...client.CallOption) (*SetupCardResponse, error) + Subscribe func(ctx context.Context, in *SubscribeRequest, opts ...client.CallOption) (*SubscribeResponse, error) + Unsubscribe func(ctx context.Context, in *UnsubscribeRequest, opts ...client.CallOption) (*UnsubscribeResponse, error) + func NewStripeService(name string, c client.Client) StripeService + type SubscribeRequest struct + CardId string + PriceId string + func (*SubscribeRequest) Descriptor() ([]byte, []int) + func (*SubscribeRequest) ProtoMessage() + func (x *SubscribeRequest) GetCardId() string + func (x *SubscribeRequest) GetPriceId() string + func (x *SubscribeRequest) ProtoReflect() protoreflect.Message + func (x *SubscribeRequest) Reset() + func (x *SubscribeRequest) String() string + type SubscribeResponse struct + SubscriptionId string + func (*SubscribeResponse) Descriptor() ([]byte, []int) + func (*SubscribeResponse) ProtoMessage() + func (x *SubscribeResponse) GetSubscriptionId() string + func (x *SubscribeResponse) ProtoReflect() protoreflect.Message + func (x *SubscribeResponse) Reset() + func (x *SubscribeResponse) String() string + type UnsubscribeRequest struct + SubscriptionId string + func (*UnsubscribeRequest) Descriptor() ([]byte, []int) + func (*UnsubscribeRequest) ProtoMessage() + func (x *UnsubscribeRequest) GetSubscriptionId() string + func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message + func (x *UnsubscribeRequest) Reset() + func (x *UnsubscribeRequest) String() string + type UnsubscribeResponse struct + func (*UnsubscribeResponse) Descriptor() ([]byte, []int) + func (*UnsubscribeResponse) ProtoMessage() + func (x *UnsubscribeResponse) ProtoReflect() protoreflect.Message + func (x *UnsubscribeResponse) Reset() + func (x *UnsubscribeResponse) String() string