stripe

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_stripe_proto protoreflect.FileDescriptor

Functions

func NewStripeEndpoints

func NewStripeEndpoints() []*api.Endpoint

func RegisterStripeHandler

func RegisterStripeHandler(s server.Server, hdlr StripeHandler, opts ...server.HandlerOption) error

Types

type Card

type Card struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	LastFour string `protobuf:"bytes,2,opt,name=last_four,json=lastFour,proto3" json:"last_four,omitempty"`
	Expires  string `protobuf:"bytes,3,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

func (*Card) Descriptor deprecated

func (*Card) Descriptor() ([]byte, []int)

Deprecated: Use Card.ProtoReflect.Descriptor instead.

func (*Card) GetExpires

func (x *Card) GetExpires() string

func (*Card) GetId

func (x *Card) GetId() string

func (*Card) GetLastFour

func (x *Card) GetLastFour() string

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) ProtoReflect

func (x *Card) ProtoReflect() protoreflect.Message

func (*Card) Reset

func (x *Card) Reset()

func (*Card) String

func (x *Card) String() string

type ChargeCardRequest

type ChargeCardRequest struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Amount int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ChargeCardRequest) Descriptor deprecated

func (*ChargeCardRequest) Descriptor() ([]byte, []int)

Deprecated: Use ChargeCardRequest.ProtoReflect.Descriptor instead.

func (*ChargeCardRequest) GetAmount

func (x *ChargeCardRequest) GetAmount() int64

func (*ChargeCardRequest) GetId

func (x *ChargeCardRequest) GetId() string

func (*ChargeCardRequest) ProtoMessage

func (*ChargeCardRequest) ProtoMessage()

func (*ChargeCardRequest) ProtoReflect

func (x *ChargeCardRequest) ProtoReflect() protoreflect.Message

func (*ChargeCardRequest) Reset

func (x *ChargeCardRequest) Reset()

func (*ChargeCardRequest) String

func (x *ChargeCardRequest) String() string

type ChargeCardResponse

type ChargeCardResponse struct {
	ClientSecret string `protobuf:"bytes,1,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	// contains filtered or unexported fields
}

func (*ChargeCardResponse) Descriptor deprecated

func (*ChargeCardResponse) Descriptor() ([]byte, []int)

Deprecated: Use ChargeCardResponse.ProtoReflect.Descriptor instead.

func (*ChargeCardResponse) GetClientSecret

func (x *ChargeCardResponse) GetClientSecret() string

func (*ChargeCardResponse) ProtoMessage

func (*ChargeCardResponse) ProtoMessage()

func (*ChargeCardResponse) ProtoReflect

func (x *ChargeCardResponse) ProtoReflect() protoreflect.Message

func (*ChargeCardResponse) Reset

func (x *ChargeCardResponse) Reset()

func (*ChargeCardResponse) String

func (x *ChargeCardResponse) String() string

type CreateCheckoutSessionRequest

type CreateCheckoutSessionRequest struct {
	Amount   int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	SaveCard bool  `protobuf:"varint,2,opt,name=save_card,json=saveCard,proto3" json:"save_card,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCheckoutSessionRequest) Descriptor deprecated

func (*CreateCheckoutSessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateCheckoutSessionRequest.ProtoReflect.Descriptor instead.

func (*CreateCheckoutSessionRequest) GetAmount

func (x *CreateCheckoutSessionRequest) GetAmount() int64

func (*CreateCheckoutSessionRequest) GetSaveCard

func (x *CreateCheckoutSessionRequest) GetSaveCard() bool

func (*CreateCheckoutSessionRequest) ProtoMessage

func (*CreateCheckoutSessionRequest) ProtoMessage()

func (*CreateCheckoutSessionRequest) ProtoReflect

func (*CreateCheckoutSessionRequest) Reset

func (x *CreateCheckoutSessionRequest) Reset()

func (*CreateCheckoutSessionRequest) String

type CreateCheckoutSessionResponse

type CreateCheckoutSessionResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCheckoutSessionResponse) Descriptor deprecated

func (*CreateCheckoutSessionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateCheckoutSessionResponse.ProtoReflect.Descriptor instead.

func (*CreateCheckoutSessionResponse) GetId

func (*CreateCheckoutSessionResponse) ProtoMessage

func (*CreateCheckoutSessionResponse) ProtoMessage()

func (*CreateCheckoutSessionResponse) ProtoReflect

func (*CreateCheckoutSessionResponse) Reset

func (x *CreateCheckoutSessionResponse) Reset()

func (*CreateCheckoutSessionResponse) String

type DeleteCardRequest

type DeleteCardRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCardRequest) Descriptor deprecated

func (*DeleteCardRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCardRequest.ProtoReflect.Descriptor instead.

func (*DeleteCardRequest) GetId

func (x *DeleteCardRequest) GetId() string

func (*DeleteCardRequest) ProtoMessage

func (*DeleteCardRequest) ProtoMessage()

func (*DeleteCardRequest) ProtoReflect

func (x *DeleteCardRequest) ProtoReflect() protoreflect.Message

func (*DeleteCardRequest) Reset

func (x *DeleteCardRequest) Reset()

func (*DeleteCardRequest) String

func (x *DeleteCardRequest) String() string

type DeleteCardResponse

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

func (*DeleteCardResponse) Descriptor deprecated

func (*DeleteCardResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCardResponse.ProtoReflect.Descriptor instead.

func (*DeleteCardResponse) ProtoMessage

func (*DeleteCardResponse) ProtoMessage()

func (*DeleteCardResponse) ProtoReflect

func (x *DeleteCardResponse) ProtoReflect() protoreflect.Message

func (*DeleteCardResponse) Reset

func (x *DeleteCardResponse) Reset()

func (*DeleteCardResponse) String

func (x *DeleteCardResponse) String() string

type GetPaymentRequest

type GetPaymentRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPaymentRequest) Descriptor deprecated

func (*GetPaymentRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPaymentRequest.ProtoReflect.Descriptor instead.

func (*GetPaymentRequest) GetId

func (x *GetPaymentRequest) GetId() string

func (*GetPaymentRequest) ProtoMessage

func (*GetPaymentRequest) ProtoMessage()

func (*GetPaymentRequest) ProtoReflect

func (x *GetPaymentRequest) ProtoReflect() protoreflect.Message

func (*GetPaymentRequest) Reset

func (x *GetPaymentRequest) Reset()

func (*GetPaymentRequest) String

func (x *GetPaymentRequest) String() string

type GetPaymentResponse

type GetPaymentResponse struct {
	Payment *Payment `protobuf:"bytes,1,opt,name=payment,proto3" json:"payment,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPaymentResponse) Descriptor deprecated

func (*GetPaymentResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPaymentResponse.ProtoReflect.Descriptor instead.

func (*GetPaymentResponse) GetPayment

func (x *GetPaymentResponse) GetPayment() *Payment

func (*GetPaymentResponse) ProtoMessage

func (*GetPaymentResponse) ProtoMessage()

func (*GetPaymentResponse) ProtoReflect

func (x *GetPaymentResponse) ProtoReflect() protoreflect.Message

func (*GetPaymentResponse) Reset

func (x *GetPaymentResponse) Reset()

func (*GetPaymentResponse) String

func (x *GetPaymentResponse) String() string

type ListCardsRequest

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

func (*ListCardsRequest) Descriptor deprecated

func (*ListCardsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCardsRequest.ProtoReflect.Descriptor instead.

func (*ListCardsRequest) ProtoMessage

func (*ListCardsRequest) ProtoMessage()

func (*ListCardsRequest) ProtoReflect

func (x *ListCardsRequest) ProtoReflect() protoreflect.Message

func (*ListCardsRequest) Reset

func (x *ListCardsRequest) Reset()

func (*ListCardsRequest) String

func (x *ListCardsRequest) String() string

type ListCardsResponse

type ListCardsResponse struct {
	Cards []*Card `protobuf:"bytes,1,rep,name=cards,proto3" json:"cards,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCardsResponse) Descriptor deprecated

func (*ListCardsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCardsResponse.ProtoReflect.Descriptor instead.

func (*ListCardsResponse) GetCards

func (x *ListCardsResponse) GetCards() []*Card

func (*ListCardsResponse) ProtoMessage

func (*ListCardsResponse) ProtoMessage()

func (*ListCardsResponse) ProtoReflect

func (x *ListCardsResponse) ProtoReflect() protoreflect.Message

func (*ListCardsResponse) Reset

func (x *ListCardsResponse) Reset()

func (*ListCardsResponse) String

func (x *ListCardsResponse) String() string

type ListPaymentsRequest

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

func (*ListPaymentsRequest) Descriptor deprecated

func (*ListPaymentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListPaymentsRequest.ProtoReflect.Descriptor instead.

func (*ListPaymentsRequest) ProtoMessage

func (*ListPaymentsRequest) ProtoMessage()

func (*ListPaymentsRequest) ProtoReflect

func (x *ListPaymentsRequest) ProtoReflect() protoreflect.Message

func (*ListPaymentsRequest) Reset

func (x *ListPaymentsRequest) Reset()

func (*ListPaymentsRequest) String

func (x *ListPaymentsRequest) String() string

type ListPaymentsResponse

type ListPaymentsResponse struct {
	Payments []*Payment `protobuf:"bytes,1,rep,name=payments,proto3" json:"payments,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPaymentsResponse) Descriptor deprecated

func (*ListPaymentsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListPaymentsResponse.ProtoReflect.Descriptor instead.

func (*ListPaymentsResponse) GetPayments

func (x *ListPaymentsResponse) GetPayments() []*Payment

func (*ListPaymentsResponse) ProtoMessage

func (*ListPaymentsResponse) ProtoMessage()

func (*ListPaymentsResponse) ProtoReflect

func (x *ListPaymentsResponse) ProtoReflect() protoreflect.Message

func (*ListPaymentsResponse) Reset

func (x *ListPaymentsResponse) Reset()

func (*ListPaymentsResponse) String

func (x *ListPaymentsResponse) String() string

type Payment

type Payment struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Amount      int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Currency    string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
	Date        int64  `protobuf:"varint,4,opt,name=date,proto3" json:"date,omitempty"`
	ReceiptUrl  string `protobuf:"bytes,5,opt,name=receipt_url,json=receiptUrl,proto3" json:"receipt_url,omitempty"`
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Payment) Descriptor deprecated

func (*Payment) Descriptor() ([]byte, []int)

Deprecated: Use Payment.ProtoReflect.Descriptor instead.

func (*Payment) GetAmount

func (x *Payment) GetAmount() int64

func (*Payment) GetCurrency

func (x *Payment) GetCurrency() string

func (*Payment) GetDate

func (x *Payment) GetDate() int64

func (*Payment) GetDescription

func (x *Payment) GetDescription() string

func (*Payment) GetId

func (x *Payment) GetId() string

func (*Payment) GetReceiptUrl

func (x *Payment) GetReceiptUrl() string

func (*Payment) ProtoMessage

func (*Payment) ProtoMessage()

func (*Payment) ProtoReflect

func (x *Payment) ProtoReflect() protoreflect.Message

func (*Payment) Reset

func (x *Payment) Reset()

func (*Payment) String

func (x *Payment) String() string

type SetupCardRequest

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

func (*SetupCardRequest) Descriptor deprecated

func (*SetupCardRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetupCardRequest.ProtoReflect.Descriptor instead.

func (*SetupCardRequest) ProtoMessage

func (*SetupCardRequest) ProtoMessage()

func (*SetupCardRequest) ProtoReflect

func (x *SetupCardRequest) ProtoReflect() protoreflect.Message

func (*SetupCardRequest) Reset

func (x *SetupCardRequest) Reset()

func (*SetupCardRequest) String

func (x *SetupCardRequest) String() string

type SetupCardResponse

type SetupCardResponse struct {
	ClientSecret string `protobuf:"bytes,1,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	// contains filtered or unexported fields
}

func (*SetupCardResponse) Descriptor deprecated

func (*SetupCardResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetupCardResponse.ProtoReflect.Descriptor instead.

func (*SetupCardResponse) GetClientSecret

func (x *SetupCardResponse) GetClientSecret() string

func (*SetupCardResponse) ProtoMessage

func (*SetupCardResponse) ProtoMessage()

func (*SetupCardResponse) ProtoReflect

func (x *SetupCardResponse) ProtoReflect() protoreflect.Message

func (*SetupCardResponse) Reset

func (x *SetupCardResponse) Reset()

func (*SetupCardResponse) String

func (x *SetupCardResponse) String() string

type SubscribeRequest

type SubscribeRequest struct {
	PriceId string `protobuf:"bytes,1,opt,name=price_id,json=priceId,proto3" json:"price_id,omitempty"`
	CardId  string `protobuf:"bytes,2,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeRequest) Descriptor deprecated

func (*SubscribeRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeRequest) GetCardId

func (x *SubscribeRequest) GetCardId() string

func (*SubscribeRequest) GetPriceId

func (x *SubscribeRequest) GetPriceId() string

func (*SubscribeRequest) ProtoMessage

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) ProtoReflect

func (x *SubscribeRequest) ProtoReflect() protoreflect.Message

func (*SubscribeRequest) Reset

func (x *SubscribeRequest) Reset()

func (*SubscribeRequest) String

func (x *SubscribeRequest) String() string

type SubscribeResponse

type SubscribeResponse struct {
	SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeResponse) Descriptor deprecated

func (*SubscribeResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead.

func (*SubscribeResponse) GetSubscriptionId

func (x *SubscribeResponse) GetSubscriptionId() string

func (*SubscribeResponse) ProtoMessage

func (*SubscribeResponse) ProtoMessage()

func (*SubscribeResponse) ProtoReflect

func (x *SubscribeResponse) ProtoReflect() protoreflect.Message

func (*SubscribeResponse) Reset

func (x *SubscribeResponse) Reset()

func (*SubscribeResponse) String

func (x *SubscribeResponse) String() string

type UnsubscribeRequest

type UnsubscribeRequest struct {
	SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsubscribeRequest) Descriptor deprecated

func (*UnsubscribeRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnsubscribeRequest.ProtoReflect.Descriptor instead.

func (*UnsubscribeRequest) GetSubscriptionId

func (x *UnsubscribeRequest) GetSubscriptionId() string

func (*UnsubscribeRequest) ProtoMessage

func (*UnsubscribeRequest) ProtoMessage()

func (*UnsubscribeRequest) ProtoReflect

func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message

func (*UnsubscribeRequest) Reset

func (x *UnsubscribeRequest) Reset()

func (*UnsubscribeRequest) String

func (x *UnsubscribeRequest) String() string

type UnsubscribeResponse

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

func (*UnsubscribeResponse) Descriptor deprecated

func (*UnsubscribeResponse) Descriptor() ([]byte, []int)

Deprecated: Use UnsubscribeResponse.ProtoReflect.Descriptor instead.

func (*UnsubscribeResponse) ProtoMessage

func (*UnsubscribeResponse) ProtoMessage()

func (*UnsubscribeResponse) ProtoReflect

func (x *UnsubscribeResponse) ProtoReflect() protoreflect.Message

func (*UnsubscribeResponse) Reset

func (x *UnsubscribeResponse) Reset()

func (*UnsubscribeResponse) String

func (x *UnsubscribeResponse) String() string

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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