Documentation
¶
Overview ¶
Package evntsrc_billing is a generated protocol buffer package. It is generated from these files: billing.proto It has these top-level messages: Empty Product Plan Subscription PlanList CreateRequest CreateResponse UserSubscriptionsRequest UserSubscriptionsResponse SubscribeRequest SubscribeResponse TerminateRequest InfoRequest Card Source Customer
Package evntsrc_billing is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBillingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBillingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BillingServiceClient) error
- func RegisterBillingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBillingServiceServer(s *grpc.Server, srv BillingServiceServer)
- type BillingServiceClient
- type BillingServiceServer
- type Card
- func (*Card) Descriptor() ([]byte, []int)
- func (m *Card) GetBrand() string
- func (m *Card) GetCountry() string
- func (m *Card) GetCvcCheck() string
- func (m *Card) GetExpMonth() uint32
- func (m *Card) GetExpYear() uint32
- func (m *Card) GetId() string
- func (m *Card) GetName() string
- func (m *Card) GetNumber() string
- func (m *Card) Marshal() (dAtA []byte, err error)
- func (m *Card) MarshalTo(dAtA []byte) (int, error)
- func (*Card) ProtoMessage()
- func (m *Card) Reset()
- func (m *Card) Size() (n int)
- func (m *Card) String() string
- func (m *Card) Unmarshal(dAtA []byte) error
- func (*Card) XXX_MessageName() string
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetCardToken() string
- func (m *CreateRequest) GetUserId() string
- func (m *CreateRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) Size() (n int)
- func (m *CreateRequest) String() string
- func (m *CreateRequest) Unmarshal(dAtA []byte) error
- func (*CreateRequest) XXX_MessageName() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)
- func (m *CreateResponse) GetCustomerId() string
- func (m *CreateResponse) Marshal() (dAtA []byte, err error)
- func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (*CreateResponse) ProtoMessage()
- func (m *CreateResponse) Reset()
- func (m *CreateResponse) Size() (n int)
- func (m *CreateResponse) String() string
- func (m *CreateResponse) Unmarshal(dAtA []byte) error
- func (*CreateResponse) XXX_MessageName() string
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)
- func (m *Customer) GetAccountBalance() int64
- func (m *Customer) GetCreated() int64
- func (m *Customer) GetCurrency() string
- func (m *Customer) GetDeleted() bool
- func (m *Customer) GetDelinquent() bool
- func (m *Customer) GetDescription() string
- func (m *Customer) GetEmail() string
- func (m *Customer) GetId() string
- func (m *Customer) GetInvoicePrefix() string
- func (m *Customer) GetLiveMode() bool
- func (m *Customer) GetMetadata() map[string]string
- func (m *Customer) GetSources() []*Source
- func (m *Customer) GetSubscriptions() []*Subscription
- func (m *Customer) GetTaxInfo() string
- func (m *Customer) GetTaxInfoVerification() string
- func (m *Customer) Marshal() (dAtA []byte, err error)
- func (m *Customer) MarshalTo(dAtA []byte) (int, error)
- func (*Customer) ProtoMessage()
- func (m *Customer) Reset()
- func (m *Customer) Size() (n int)
- func (m *Customer) String() string
- func (m *Customer) Unmarshal(dAtA []byte) error
- func (*Customer) XXX_MessageName() string
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (*Empty) XXX_MessageName() string
- type InfoRequest
- func (*InfoRequest) Descriptor() ([]byte, []int)
- func (m *InfoRequest) GetUserId() string
- func (m *InfoRequest) Marshal() (dAtA []byte, err error)
- func (m *InfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (*InfoRequest) ProtoMessage()
- func (m *InfoRequest) Reset()
- func (m *InfoRequest) Size() (n int)
- func (m *InfoRequest) String() string
- func (m *InfoRequest) Unmarshal(dAtA []byte) error
- func (*InfoRequest) XXX_MessageName() string
- type Plan
- func (*Plan) Descriptor() ([]byte, []int)
- func (m *Plan) GetActive() bool
- func (m *Plan) GetAggregateUsage() string
- func (m *Plan) GetAmount() int64
- func (m *Plan) GetBillingScheme() string
- func (m *Plan) GetCurrency() string
- func (m *Plan) GetDeleted() bool
- func (m *Plan) GetId() string
- func (m *Plan) GetInterval() string
- func (m *Plan) GetIntervalCount() int64
- func (m *Plan) GetLiveMode() bool
- func (m *Plan) GetMetadata() map[string]string
- func (m *Plan) GetNickname() string
- func (m *Plan) GetProduct() *Product
- func (m *Plan) GetTiresMode() string
- func (m *Plan) GetTrialPeriodDays() int64
- func (m *Plan) GetUsageType() string
- func (m *Plan) Marshal() (dAtA []byte, err error)
- func (m *Plan) MarshalTo(dAtA []byte) (int, error)
- func (*Plan) ProtoMessage()
- func (m *Plan) Reset()
- func (m *Plan) Size() (n int)
- func (m *Plan) String() string
- func (m *Plan) Unmarshal(dAtA []byte) error
- func (*Plan) XXX_MessageName() string
- type PlanList
- func (*PlanList) Descriptor() ([]byte, []int)
- func (m *PlanList) GetPlans() []*Plan
- func (m *PlanList) Marshal() (dAtA []byte, err error)
- func (m *PlanList) MarshalTo(dAtA []byte) (int, error)
- func (*PlanList) ProtoMessage()
- func (m *PlanList) Reset()
- func (m *PlanList) Size() (n int)
- func (m *PlanList) String() string
- func (m *PlanList) Unmarshal(dAtA []byte) error
- func (*PlanList) XXX_MessageName() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)
- func (m *Product) GetActive() bool
- func (m *Product) GetAttributes() []string
- func (m *Product) GetCaption() string
- func (m *Product) GetDescription() string
- func (m *Product) GetId() string
- func (m *Product) GetMetadata() map[string]string
- func (m *Product) GetName() string
- func (m *Product) Marshal() (dAtA []byte, err error)
- func (m *Product) MarshalTo(dAtA []byte) (int, error)
- func (*Product) ProtoMessage()
- func (m *Product) Reset()
- func (m *Product) Size() (n int)
- func (m *Product) String() string
- func (m *Product) Unmarshal(dAtA []byte) error
- func (*Product) XXX_MessageName() string
- type Source
- func (*Source) Descriptor() ([]byte, []int)
- func (m *Source) GetCard() *Card
- func (m *Source) GetId() string
- func (m *Source) GetSource() isSource_Source
- func (m *Source) GetType() string
- func (m *Source) Marshal() (dAtA []byte, err error)
- func (m *Source) MarshalTo(dAtA []byte) (int, error)
- func (*Source) ProtoMessage()
- func (m *Source) Reset()
- func (m *Source) Size() (n int)
- func (m *Source) String() string
- func (m *Source) Unmarshal(dAtA []byte) error
- func (*Source) XXX_MessageName() string
- func (*Source) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Source_Card
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest) GetPlanId() string
- func (m *SubscribeRequest) GetUserId() string
- func (m *SubscribeRequest) Marshal() (dAtA []byte, err error)
- func (m *SubscribeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*SubscribeRequest) ProtoMessage()
- func (m *SubscribeRequest) Reset()
- func (m *SubscribeRequest) Size() (n int)
- func (m *SubscribeRequest) String() string
- func (m *SubscribeRequest) Unmarshal(dAtA []byte) error
- func (*SubscribeRequest) XXX_MessageName() string
- type SubscribeResponse
- func (*SubscribeResponse) Descriptor() ([]byte, []int)
- func (m *SubscribeResponse) GetSubscriptionId() string
- func (m *SubscribeResponse) Marshal() (dAtA []byte, err error)
- func (m *SubscribeResponse) MarshalTo(dAtA []byte) (int, error)
- func (*SubscribeResponse) ProtoMessage()
- func (m *SubscribeResponse) Reset()
- func (m *SubscribeResponse) Size() (n int)
- func (m *SubscribeResponse) String() string
- func (m *SubscribeResponse) Unmarshal(dAtA []byte) error
- func (*SubscribeResponse) XXX_MessageName() string
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)
- func (m *Subscription) GetBilling() string
- func (m *Subscription) GetBillingCycleAnchor() int64
- func (m *Subscription) GetCancelAtPeriodEnd() bool
- func (m *Subscription) GetCanceledAt() int64
- func (m *Subscription) GetCreatedAt() int64
- func (m *Subscription) GetCurrentPeriodEnds() int64
- func (m *Subscription) GetCurrentPeriodStarts() int64
- func (m *Subscription) GetDaysUntilDue() int64
- func (m *Subscription) GetDiscount() string
- func (m *Subscription) GetDiscountEnds() int64
- func (m *Subscription) GetEndedAt() int64
- func (m *Subscription) GetId() string
- func (m *Subscription) GetMetadata() map[string]string
- func (m *Subscription) GetPlan() string
- func (m *Subscription) GetStart() int64
- func (m *Subscription) GetStatus() string
- func (m *Subscription) GetTaxPercent() float64
- func (m *Subscription) GetTrialEnds() int64
- func (m *Subscription) GetTrialStarts() int64
- func (m *Subscription) Marshal() (dAtA []byte, err error)
- func (m *Subscription) MarshalTo(dAtA []byte) (int, error)
- func (*Subscription) ProtoMessage()
- func (m *Subscription) Reset()
- func (m *Subscription) Size() (n int)
- func (m *Subscription) String() string
- func (m *Subscription) Unmarshal(dAtA []byte) error
- func (*Subscription) XXX_MessageName() string
- type TerminateRequest
- func (*TerminateRequest) Descriptor() ([]byte, []int)
- func (m *TerminateRequest) GetPlanId() string
- func (m *TerminateRequest) Marshal() (dAtA []byte, err error)
- func (m *TerminateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*TerminateRequest) ProtoMessage()
- func (m *TerminateRequest) Reset()
- func (m *TerminateRequest) Size() (n int)
- func (m *TerminateRequest) String() string
- func (m *TerminateRequest) Unmarshal(dAtA []byte) error
- func (*TerminateRequest) XXX_MessageName() string
- type UserSubscriptionsRequest
- func (*UserSubscriptionsRequest) Descriptor() ([]byte, []int)
- func (m *UserSubscriptionsRequest) GetUserId() string
- func (m *UserSubscriptionsRequest) Marshal() (dAtA []byte, err error)
- func (m *UserSubscriptionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (*UserSubscriptionsRequest) ProtoMessage()
- func (m *UserSubscriptionsRequest) Reset()
- func (m *UserSubscriptionsRequest) Size() (n int)
- func (m *UserSubscriptionsRequest) String() string
- func (m *UserSubscriptionsRequest) Unmarshal(dAtA []byte) error
- func (*UserSubscriptionsRequest) XXX_MessageName() string
- type UserSubscriptionsResponse
- func (*UserSubscriptionsResponse) Descriptor() ([]byte, []int)
- func (m *UserSubscriptionsResponse) GetSubscriptions() []*Subscription
- func (m *UserSubscriptionsResponse) Marshal() (dAtA []byte, err error)
- func (m *UserSubscriptionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (*UserSubscriptionsResponse) ProtoMessage()
- func (m *UserSubscriptionsResponse) Reset()
- func (m *UserSubscriptionsResponse) Size() (n int)
- func (m *UserSubscriptionsResponse) String() string
- func (m *UserSubscriptionsResponse) Unmarshal(dAtA []byte) error
- func (*UserSubscriptionsResponse) XXX_MessageName() string
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthBilling = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBilling = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterBillingServiceHandler ¶
func RegisterBillingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBillingServiceHandler registers the http handlers for service BillingService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBillingServiceHandlerClient ¶
func RegisterBillingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BillingServiceClient) error
RegisterBillingServiceHandlerClient registers the http handlers for service BillingService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BillingServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BillingServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BillingServiceClient" to call the correct interceptors.
func RegisterBillingServiceHandlerFromEndpoint ¶
func RegisterBillingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBillingServiceHandlerFromEndpoint is same as RegisterBillingServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBillingServiceServer ¶
func RegisterBillingServiceServer(s *grpc.Server, srv BillingServiceServer)
Types ¶
type BillingServiceClient ¶
type BillingServiceClient interface { GetPlans(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PlanList, error) CreateCustomerFromUser(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) GetUserInfo(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*Customer, error) AttachPaymentMethod(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Empty, error) SubscribeUser(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error) TerminateSubscription(ctx context.Context, in *TerminateRequest, opts ...grpc.CallOption) (*Empty, error) }
func NewBillingServiceClient ¶
func NewBillingServiceClient(cc *grpc.ClientConn) BillingServiceClient
type BillingServiceServer ¶
type BillingServiceServer interface { GetPlans(context.Context, *Empty) (*PlanList, error) CreateCustomerFromUser(context.Context, *CreateRequest) (*CreateResponse, error) GetUserInfo(context.Context, *InfoRequest) (*Customer, error) AttachPaymentMethod(context.Context, *CreateRequest) (*Empty, error) SubscribeUser(context.Context, *SubscribeRequest) (*SubscribeResponse, error) TerminateSubscription(context.Context, *TerminateRequest) (*Empty, error) }
type Card ¶
type Card struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Brand string `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"` ExpMonth uint32 `protobuf:"varint,4,opt,name=expMonth,proto3" json:"expMonth,omitempty"` ExpYear uint32 `protobuf:"varint,5,opt,name=expYear,proto3" json:"expYear,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Number string `protobuf:"bytes,7,opt,name=number,proto3" json:"number,omitempty"` CvcCheck string `protobuf:"bytes,8,opt,name=cvcCheck,proto3" json:"cvcCheck,omitempty"` }
https://github.com/stripe/stripe-go/blob/master/card.go
func (*Card) Descriptor ¶
func (*Card) GetCountry ¶
func (*Card) GetCvcCheck ¶
func (*Card) GetExpMonth ¶
func (*Card) GetExpYear ¶
func (*Card) ProtoMessage ¶
func (*Card) ProtoMessage()
func (*Card) XXX_MessageName ¶
type CreateRequest ¶
type CreateRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` CardToken string `protobuf:"bytes,2,opt,name=cardToken,proto3" json:"cardToken,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetCardToken ¶
func (m *CreateRequest) GetCardToken() string
func (*CreateRequest) GetUserId ¶
func (m *CreateRequest) GetUserId() string
func (*CreateRequest) Marshal ¶
func (m *CreateRequest) Marshal() (dAtA []byte, err error)
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) Size ¶
func (m *CreateRequest) Size() (n int)
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
func (*CreateRequest) Unmarshal ¶
func (m *CreateRequest) Unmarshal(dAtA []byte) error
func (*CreateRequest) XXX_MessageName ¶
func (*CreateRequest) XXX_MessageName() string
type CreateResponse ¶
type CreateResponse struct {
CustomerId string `protobuf:"bytes,1,opt,name=customerId,proto3" json:"customerId,omitempty"`
}
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) GetCustomerId ¶
func (m *CreateResponse) GetCustomerId() string
func (*CreateResponse) Marshal ¶
func (m *CreateResponse) Marshal() (dAtA []byte, err error)
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) Size ¶
func (m *CreateResponse) Size() (n int)
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
func (*CreateResponse) Unmarshal ¶
func (m *CreateResponse) Unmarshal(dAtA []byte) error
func (*CreateResponse) XXX_MessageName ¶
func (*CreateResponse) XXX_MessageName() string
type Customer ¶
type Customer struct { AccountBalance int64 `protobuf:"varint,1,opt,name=accountBalance,proto3" json:"accountBalance,omitempty"` Created int64 `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"` Currency string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"` Deleted bool `protobuf:"varint,5,opt,name=deleted,proto3" json:"deleted,omitempty"` Delinquent bool `protobuf:"varint,6,opt,name=delinquent,proto3" json:"delinquent,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"` Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty"` InvoicePrefix string `protobuf:"bytes,11,opt,name=invoicePrefix,proto3" json:"invoicePrefix,omitempty"` LiveMode bool `protobuf:"varint,12,opt,name=liveMode,proto3" json:"liveMode,omitempty"` Metadata map[string]string `` /* 151-byte string literal not displayed */ Sources []*Source `protobuf:"bytes,15,rep,name=sources" json:"sources,omitempty"` Subscriptions []*Subscription `protobuf:"bytes,16,rep,name=subscriptions" json:"subscriptions,omitempty"` TaxInfo string `protobuf:"bytes,17,opt,name=taxInfo,proto3" json:"taxInfo,omitempty"` TaxInfoVerification string `protobuf:"bytes,18,opt,name=taxInfoVerification,proto3" json:"taxInfoVerification,omitempty"` }
https://github.com/stripe/stripe-go/blob/master/customer.go
func (*Customer) Descriptor ¶
func (*Customer) GetAccountBalance ¶
func (*Customer) GetCreated ¶
func (*Customer) GetCurrency ¶
func (*Customer) GetDeleted ¶
func (*Customer) GetDelinquent ¶
func (*Customer) GetDescription ¶
func (*Customer) GetInvoicePrefix ¶
func (*Customer) GetLiveMode ¶
func (*Customer) GetMetadata ¶
func (*Customer) GetSources ¶
func (*Customer) GetSubscriptions ¶
func (m *Customer) GetSubscriptions() []*Subscription
func (*Customer) GetTaxInfo ¶
func (*Customer) GetTaxInfoVerification ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) XXX_MessageName ¶
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_MessageName ¶
type InfoRequest ¶
type InfoRequest struct {
UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
}
func (*InfoRequest) Descriptor ¶
func (*InfoRequest) Descriptor() ([]byte, []int)
func (*InfoRequest) GetUserId ¶
func (m *InfoRequest) GetUserId() string
func (*InfoRequest) Marshal ¶
func (m *InfoRequest) Marshal() (dAtA []byte, err error)
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) Reset ¶
func (m *InfoRequest) Reset()
func (*InfoRequest) Size ¶
func (m *InfoRequest) Size() (n int)
func (*InfoRequest) String ¶
func (m *InfoRequest) String() string
func (*InfoRequest) Unmarshal ¶
func (m *InfoRequest) Unmarshal(dAtA []byte) error
func (*InfoRequest) XXX_MessageName ¶
func (*InfoRequest) XXX_MessageName() string
type Plan ¶
type Plan struct { Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` AggregateUsage string `protobuf:"bytes,2,opt,name=aggregateUsage,proto3" json:"aggregateUsage,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` BillingScheme string `protobuf:"bytes,4,opt,name=billingScheme,proto3" json:"billingScheme,omitempty"` Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"` Deleted bool `protobuf:"varint,7,opt,name=deleted,proto3" json:"deleted,omitempty"` Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` Interval string `protobuf:"bytes,9,opt,name=interval,proto3" json:"interval,omitempty"` IntervalCount int64 `protobuf:"varint,10,opt,name=intervalCount,proto3" json:"intervalCount,omitempty"` LiveMode bool `protobuf:"varint,11,opt,name=liveMode,proto3" json:"liveMode,omitempty"` Metadata map[string]string `` /* 151-byte string literal not displayed */ Nickname string `protobuf:"bytes,13,opt,name=nickname,proto3" json:"nickname,omitempty"` Product *Product `protobuf:"bytes,14,opt,name=product" json:"product,omitempty"` TiresMode string `protobuf:"bytes,15,opt,name=tiresMode,proto3" json:"tiresMode,omitempty"` TrialPeriodDays int64 `protobuf:"varint,17,opt,name=trialPeriodDays,proto3" json:"trialPeriodDays,omitempty"` UsageType string `protobuf:"bytes,18,opt,name=usageType,proto3" json:"usageType,omitempty"` }
https://github.com/stripe/stripe-go/blob/master/plan.go
func (*Plan) Descriptor ¶
func (*Plan) GetAggregateUsage ¶
func (*Plan) GetBillingScheme ¶
func (*Plan) GetCurrency ¶
func (*Plan) GetDeleted ¶
func (*Plan) GetInterval ¶
func (*Plan) GetIntervalCount ¶
func (*Plan) GetLiveMode ¶
func (*Plan) GetMetadata ¶
func (*Plan) GetNickname ¶
func (*Plan) GetProduct ¶
func (*Plan) GetTiresMode ¶
func (*Plan) GetTrialPeriodDays ¶
func (*Plan) GetUsageType ¶
func (*Plan) ProtoMessage ¶
func (*Plan) ProtoMessage()
func (*Plan) XXX_MessageName ¶
type PlanList ¶
type PlanList struct {
Plans []*Plan `protobuf:"bytes,1,rep,name=plans" json:"plans,omitempty"`
}
func (*PlanList) Descriptor ¶
func (*PlanList) ProtoMessage ¶
func (*PlanList) ProtoMessage()
func (*PlanList) XXX_MessageName ¶
type Product ¶
type Product struct { Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` Attributes []string `protobuf:"bytes,2,rep,name=attributes" json:"attributes,omitempty"` Caption string `protobuf:"bytes,3,opt,name=caption,proto3" json:"caption,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` Metadata map[string]string `` /* 150-byte string literal not displayed */ Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` }
https://github.com/stripe/stripe-go/blob/master/product.go
func (*Product) Descriptor ¶
func (*Product) GetAttributes ¶
func (*Product) GetCaption ¶
func (*Product) GetDescription ¶
func (*Product) GetMetadata ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) XXX_MessageName ¶
type Source ¶
type Source struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // Types that are valid to be assigned to Source: // *Source_Card Source isSource_Source `protobuf_oneof:"source"` }
https://github.com/stripe/stripe-go/blob/master/source.go
func (*Source) Descriptor ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) XXX_MessageName ¶
type Source_Card ¶
type Source_Card struct {
Card *Card `protobuf:"bytes,3,opt,name=card,oneof"`
}
func (*Source_Card) Size ¶
func (m *Source_Card) Size() (n int)
type SubscribeRequest ¶
type SubscribeRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` PlanId string `protobuf:"bytes,2,opt,name=planId,proto3" json:"planId,omitempty"` }
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetPlanId ¶
func (m *SubscribeRequest) GetPlanId() string
func (*SubscribeRequest) GetUserId ¶
func (m *SubscribeRequest) GetUserId() string
func (*SubscribeRequest) Marshal ¶
func (m *SubscribeRequest) Marshal() (dAtA []byte, err error)
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) Size ¶
func (m *SubscribeRequest) Size() (n int)
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
func (*SubscribeRequest) Unmarshal ¶
func (m *SubscribeRequest) Unmarshal(dAtA []byte) error
func (*SubscribeRequest) XXX_MessageName ¶
func (*SubscribeRequest) XXX_MessageName() string
type SubscribeResponse ¶
type SubscribeResponse struct {
SubscriptionId string `protobuf:"bytes,1,opt,name=subscriptionId,proto3" json:"subscriptionId,omitempty"`
}
func (*SubscribeResponse) Descriptor ¶
func (*SubscribeResponse) Descriptor() ([]byte, []int)
func (*SubscribeResponse) GetSubscriptionId ¶
func (m *SubscribeResponse) GetSubscriptionId() string
func (*SubscribeResponse) Marshal ¶
func (m *SubscribeResponse) Marshal() (dAtA []byte, err error)
func (*SubscribeResponse) MarshalTo ¶
func (m *SubscribeResponse) MarshalTo(dAtA []byte) (int, error)
func (*SubscribeResponse) ProtoMessage ¶
func (*SubscribeResponse) ProtoMessage()
func (*SubscribeResponse) Reset ¶
func (m *SubscribeResponse) Reset()
func (*SubscribeResponse) Size ¶
func (m *SubscribeResponse) Size() (n int)
func (*SubscribeResponse) String ¶
func (m *SubscribeResponse) String() string
func (*SubscribeResponse) Unmarshal ¶
func (m *SubscribeResponse) Unmarshal(dAtA []byte) error
func (*SubscribeResponse) XXX_MessageName ¶
func (*SubscribeResponse) XXX_MessageName() string
type Subscription ¶
type Subscription struct { Billing string `protobuf:"bytes,2,opt,name=billing,proto3" json:"billing,omitempty"` BillingCycleAnchor int64 `protobuf:"varint,3,opt,name=billingCycleAnchor,proto3" json:"billingCycleAnchor,omitempty"` CanceledAt int64 `protobuf:"varint,4,opt,name=canceledAt,proto3" json:"canceledAt,omitempty"` CreatedAt int64 `protobuf:"varint,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` CurrentPeriodEnds int64 `protobuf:"varint,6,opt,name=currentPeriodEnds,proto3" json:"currentPeriodEnds,omitempty"` CurrentPeriodStarts int64 `protobuf:"varint,7,opt,name=currentPeriodStarts,proto3" json:"currentPeriodStarts,omitempty"` DaysUntilDue int64 `protobuf:"varint,9,opt,name=daysUntilDue,proto3" json:"daysUntilDue,omitempty"` Discount string `protobuf:"bytes,10,opt,name=discount,proto3" json:"discount,omitempty"` CancelAtPeriodEnd bool `protobuf:"varint,11,opt,name=cancelAtPeriodEnd,proto3" json:"cancelAtPeriodEnd,omitempty"` EndedAt int64 `protobuf:"varint,12,opt,name=endedAt,proto3" json:"endedAt,omitempty"` Id string `protobuf:"bytes,13,opt,name=id,proto3" json:"id,omitempty"` Metadata map[string]string `` /* 151-byte string literal not displayed */ Plan string `protobuf:"bytes,17,opt,name=plan,proto3" json:"plan,omitempty"` Start int64 `protobuf:"varint,19,opt,name=start,proto3" json:"start,omitempty"` Status string `protobuf:"bytes,20,opt,name=status,proto3" json:"status,omitempty"` TaxPercent float64 `protobuf:"fixed64,21,opt,name=taxPercent,proto3" json:"taxPercent,omitempty"` TrialEnds int64 `protobuf:"varint,22,opt,name=trialEnds,proto3" json:"trialEnds,omitempty"` TrialStarts int64 `protobuf:"varint,23,opt,name=trialStarts,proto3" json:"trialStarts,omitempty"` DiscountEnds int64 `protobuf:"varint,24,opt,name=discountEnds,proto3" json:"discountEnds,omitempty"` }
https://github.com/stripe/stripe-go/blob/master/sub.go
func (*Subscription) Descriptor ¶
func (*Subscription) Descriptor() ([]byte, []int)
func (*Subscription) GetBilling ¶
func (m *Subscription) GetBilling() string
func (*Subscription) GetBillingCycleAnchor ¶
func (m *Subscription) GetBillingCycleAnchor() int64
func (*Subscription) GetCancelAtPeriodEnd ¶
func (m *Subscription) GetCancelAtPeriodEnd() bool
func (*Subscription) GetCanceledAt ¶
func (m *Subscription) GetCanceledAt() int64
func (*Subscription) GetCreatedAt ¶
func (m *Subscription) GetCreatedAt() int64
func (*Subscription) GetCurrentPeriodEnds ¶
func (m *Subscription) GetCurrentPeriodEnds() int64
func (*Subscription) GetCurrentPeriodStarts ¶
func (m *Subscription) GetCurrentPeriodStarts() int64
func (*Subscription) GetDaysUntilDue ¶
func (m *Subscription) GetDaysUntilDue() int64
func (*Subscription) GetDiscount ¶
func (m *Subscription) GetDiscount() string
func (*Subscription) GetDiscountEnds ¶
func (m *Subscription) GetDiscountEnds() int64
func (*Subscription) GetEndedAt ¶
func (m *Subscription) GetEndedAt() int64
func (*Subscription) GetId ¶
func (m *Subscription) GetId() string
func (*Subscription) GetMetadata ¶
func (m *Subscription) GetMetadata() map[string]string
func (*Subscription) GetPlan ¶
func (m *Subscription) GetPlan() string
func (*Subscription) GetStart ¶
func (m *Subscription) GetStart() int64
func (*Subscription) GetStatus ¶
func (m *Subscription) GetStatus() string
func (*Subscription) GetTaxPercent ¶
func (m *Subscription) GetTaxPercent() float64
func (*Subscription) GetTrialEnds ¶
func (m *Subscription) GetTrialEnds() int64
func (*Subscription) GetTrialStarts ¶
func (m *Subscription) GetTrialStarts() int64
func (*Subscription) Marshal ¶
func (m *Subscription) Marshal() (dAtA []byte, err error)
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) Reset ¶
func (m *Subscription) Reset()
func (*Subscription) Size ¶
func (m *Subscription) Size() (n int)
func (*Subscription) String ¶
func (m *Subscription) String() string
func (*Subscription) Unmarshal ¶
func (m *Subscription) Unmarshal(dAtA []byte) error
func (*Subscription) XXX_MessageName ¶
func (*Subscription) XXX_MessageName() string
type TerminateRequest ¶
type TerminateRequest struct {
PlanId string `protobuf:"bytes,1,opt,name=planId,proto3" json:"planId,omitempty"`
}
func (*TerminateRequest) Descriptor ¶
func (*TerminateRequest) Descriptor() ([]byte, []int)
func (*TerminateRequest) GetPlanId ¶
func (m *TerminateRequest) GetPlanId() string
func (*TerminateRequest) Marshal ¶
func (m *TerminateRequest) Marshal() (dAtA []byte, err error)
func (*TerminateRequest) ProtoMessage ¶
func (*TerminateRequest) ProtoMessage()
func (*TerminateRequest) Reset ¶
func (m *TerminateRequest) Reset()
func (*TerminateRequest) Size ¶
func (m *TerminateRequest) Size() (n int)
func (*TerminateRequest) String ¶
func (m *TerminateRequest) String() string
func (*TerminateRequest) Unmarshal ¶
func (m *TerminateRequest) Unmarshal(dAtA []byte) error
func (*TerminateRequest) XXX_MessageName ¶
func (*TerminateRequest) XXX_MessageName() string
type UserSubscriptionsRequest ¶
type UserSubscriptionsRequest struct {
UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
}
func (*UserSubscriptionsRequest) Descriptor ¶
func (*UserSubscriptionsRequest) Descriptor() ([]byte, []int)
func (*UserSubscriptionsRequest) GetUserId ¶
func (m *UserSubscriptionsRequest) GetUserId() string
func (*UserSubscriptionsRequest) Marshal ¶
func (m *UserSubscriptionsRequest) Marshal() (dAtA []byte, err error)
func (*UserSubscriptionsRequest) MarshalTo ¶
func (m *UserSubscriptionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*UserSubscriptionsRequest) ProtoMessage ¶
func (*UserSubscriptionsRequest) ProtoMessage()
func (*UserSubscriptionsRequest) Reset ¶
func (m *UserSubscriptionsRequest) Reset()
func (*UserSubscriptionsRequest) Size ¶
func (m *UserSubscriptionsRequest) Size() (n int)
func (*UserSubscriptionsRequest) String ¶
func (m *UserSubscriptionsRequest) String() string
func (*UserSubscriptionsRequest) Unmarshal ¶
func (m *UserSubscriptionsRequest) Unmarshal(dAtA []byte) error
func (*UserSubscriptionsRequest) XXX_MessageName ¶
func (*UserSubscriptionsRequest) XXX_MessageName() string
type UserSubscriptionsResponse ¶
type UserSubscriptionsResponse struct {
Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions" json:"subscriptions,omitempty"`
}
func (*UserSubscriptionsResponse) Descriptor ¶
func (*UserSubscriptionsResponse) Descriptor() ([]byte, []int)
func (*UserSubscriptionsResponse) GetSubscriptions ¶
func (m *UserSubscriptionsResponse) GetSubscriptions() []*Subscription
func (*UserSubscriptionsResponse) Marshal ¶
func (m *UserSubscriptionsResponse) Marshal() (dAtA []byte, err error)
func (*UserSubscriptionsResponse) MarshalTo ¶
func (m *UserSubscriptionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*UserSubscriptionsResponse) ProtoMessage ¶
func (*UserSubscriptionsResponse) ProtoMessage()
func (*UserSubscriptionsResponse) Reset ¶
func (m *UserSubscriptionsResponse) Reset()
func (*UserSubscriptionsResponse) Size ¶
func (m *UserSubscriptionsResponse) Size() (n int)
func (*UserSubscriptionsResponse) String ¶
func (m *UserSubscriptionsResponse) String() string
func (*UserSubscriptionsResponse) Unmarshal ¶
func (m *UserSubscriptionsResponse) Unmarshal(dAtA []byte) error
func (*UserSubscriptionsResponse) XXX_MessageName ¶
func (*UserSubscriptionsResponse) XXX_MessageName() string