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_billing_proto protoreflect.FileDescriptor + func NewBillingEndpoints() []*api.Endpoint + func RegisterBillingHandler(s server.Server, hdlr BillingHandler, opts ...server.HandlerOption) error + type BillingAccount struct + Admins []string + Id string + Members []string + Subscriptions []*Subscription + func (*BillingAccount) Descriptor() ([]byte, []int) + func (*BillingAccount) ProtoMessage() + func (x *BillingAccount) GetAdmins() []string + func (x *BillingAccount) GetId() string + func (x *BillingAccount) GetMembers() []string + func (x *BillingAccount) GetSubscriptions() []*Subscription + func (x *BillingAccount) ProtoReflect() protoreflect.Message + func (x *BillingAccount) Reset() + func (x *BillingAccount) String() string + type BillingHandler 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 + ReadAccount func(context.Context, *ReadAccountRequest, *ReadAccountResponse) error + SetupCard func(context.Context, *SetupCardRequest, *SetupCardResponse) error + SubscribeTier func(context.Context, *SubscribeTierRequest, *SubscribeTierResponse) error + type BillingService 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) + ReadAccount func(ctx context.Context, in *ReadAccountRequest, opts ...client.CallOption) (*ReadAccountResponse, error) + SetupCard func(ctx context.Context, in *SetupCardRequest, opts ...client.CallOption) (*SetupCardResponse, error) + SubscribeTier func(ctx context.Context, in *SubscribeTierRequest, opts ...client.CallOption) (*SubscribeTierResponse, error) + func NewBillingService(name string, c client.Client) BillingService + 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 + 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) GetId() string + func (x *Payment) GetReceiptUrl() string + func (x *Payment) ProtoReflect() protoreflect.Message + func (x *Payment) Reset() + func (x *Payment) String() string + type ReadAccountRequest struct + AdminId string + Id string + func (*ReadAccountRequest) Descriptor() ([]byte, []int) + func (*ReadAccountRequest) ProtoMessage() + func (x *ReadAccountRequest) GetAdminId() string + func (x *ReadAccountRequest) GetId() string + func (x *ReadAccountRequest) ProtoReflect() protoreflect.Message + func (x *ReadAccountRequest) Reset() + func (x *ReadAccountRequest) String() string + type ReadAccountResponse struct + BillingAccount *BillingAccount + func (*ReadAccountResponse) Descriptor() ([]byte, []int) + func (*ReadAccountResponse) ProtoMessage() + func (x *ReadAccountResponse) GetBillingAccount() *BillingAccount + func (x *ReadAccountResponse) ProtoReflect() protoreflect.Message + func (x *ReadAccountResponse) Reset() + func (x *ReadAccountResponse) 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 SubscribeTierRequest struct + CardId string + Id string + func (*SubscribeTierRequest) Descriptor() ([]byte, []int) + func (*SubscribeTierRequest) ProtoMessage() + func (x *SubscribeTierRequest) GetCardId() string + func (x *SubscribeTierRequest) GetId() string + func (x *SubscribeTierRequest) ProtoReflect() protoreflect.Message + func (x *SubscribeTierRequest) Reset() + func (x *SubscribeTierRequest) String() string + type SubscribeTierResponse struct + func (*SubscribeTierResponse) Descriptor() ([]byte, []int) + func (*SubscribeTierResponse) ProtoMessage() + func (x *SubscribeTierResponse) ProtoReflect() protoreflect.Message + func (x *SubscribeTierResponse) Reset() + func (x *SubscribeTierResponse) String() string + type Subscription struct + Id string + func (*Subscription) Descriptor() ([]byte, []int) + func (*Subscription) ProtoMessage() + func (x *Subscription) GetId() string + func (x *Subscription) ProtoReflect() protoreflect.Message + func (x *Subscription) Reset() + func (x *Subscription) String() string + type Tier struct + Description string + Id string + Name string + Price string + func (*Tier) Descriptor() ([]byte, []int) + func (*Tier) ProtoMessage() + func (x *Tier) GetDescription() string + func (x *Tier) GetId() string + func (x *Tier) GetName() string + func (x *Tier) GetPrice() string + func (x *Tier) ProtoReflect() protoreflect.Message + func (x *Tier) Reset() + func (x *Tier) String() string