evntsrc_billing

package
v0.0.0-...-0172641 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

func (*Card) GetBrand

func (m *Card) GetBrand() string

func (*Card) GetCountry

func (m *Card) GetCountry() string

func (*Card) GetCvcCheck

func (m *Card) GetCvcCheck() string

func (*Card) GetExpMonth

func (m *Card) GetExpMonth() uint32

func (*Card) GetExpYear

func (m *Card) GetExpYear() uint32

func (*Card) GetId

func (m *Card) GetId() string

func (*Card) GetName

func (m *Card) GetName() string

func (*Card) GetNumber

func (m *Card) GetNumber() string

func (*Card) Marshal

func (m *Card) Marshal() (dAtA []byte, err error)

func (*Card) MarshalTo

func (m *Card) MarshalTo(dAtA []byte) (int, error)

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) Reset

func (m *Card) Reset()

func (*Card) Size

func (m *Card) Size() (n int)

func (*Card) String

func (m *Card) String() string

func (*Card) Unmarshal

func (m *Card) Unmarshal(dAtA []byte) error

func (*Card) XXX_MessageName

func (*Card) XXX_MessageName() string

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) MarshalTo

func (m *CreateRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *CreateResponse) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Customer) GetAccountBalance

func (m *Customer) GetAccountBalance() int64

func (*Customer) GetCreated

func (m *Customer) GetCreated() int64

func (*Customer) GetCurrency

func (m *Customer) GetCurrency() string

func (*Customer) GetDeleted

func (m *Customer) GetDeleted() bool

func (*Customer) GetDelinquent

func (m *Customer) GetDelinquent() bool

func (*Customer) GetDescription

func (m *Customer) GetDescription() string

func (*Customer) GetEmail

func (m *Customer) GetEmail() string

func (*Customer) GetId

func (m *Customer) GetId() string

func (*Customer) GetInvoicePrefix

func (m *Customer) GetInvoicePrefix() string

func (*Customer) GetLiveMode

func (m *Customer) GetLiveMode() bool

func (*Customer) GetMetadata

func (m *Customer) GetMetadata() map[string]string

func (*Customer) GetSources

func (m *Customer) GetSources() []*Source

func (*Customer) GetSubscriptions

func (m *Customer) GetSubscriptions() []*Subscription

func (*Customer) GetTaxInfo

func (m *Customer) GetTaxInfo() string

func (*Customer) GetTaxInfoVerification

func (m *Customer) GetTaxInfoVerification() string

func (*Customer) Marshal

func (m *Customer) Marshal() (dAtA []byte, err error)

func (*Customer) MarshalTo

func (m *Customer) MarshalTo(dAtA []byte) (int, error)

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) Reset

func (m *Customer) Reset()

func (*Customer) Size

func (m *Customer) Size() (n int)

func (*Customer) String

func (m *Customer) String() string

func (*Customer) Unmarshal

func (m *Customer) Unmarshal(dAtA []byte) error

func (*Customer) XXX_MessageName

func (*Customer) XXX_MessageName() string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (m *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

func (*Empty) XXX_MessageName

func (*Empty) XXX_MessageName() string

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) MarshalTo

func (m *InfoRequest) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Plan) GetActive

func (m *Plan) GetActive() bool

func (*Plan) GetAggregateUsage

func (m *Plan) GetAggregateUsage() string

func (*Plan) GetAmount

func (m *Plan) GetAmount() int64

func (*Plan) GetBillingScheme

func (m *Plan) GetBillingScheme() string

func (*Plan) GetCurrency

func (m *Plan) GetCurrency() string

func (*Plan) GetDeleted

func (m *Plan) GetDeleted() bool

func (*Plan) GetId

func (m *Plan) GetId() string

func (*Plan) GetInterval

func (m *Plan) GetInterval() string

func (*Plan) GetIntervalCount

func (m *Plan) GetIntervalCount() int64

func (*Plan) GetLiveMode

func (m *Plan) GetLiveMode() bool

func (*Plan) GetMetadata

func (m *Plan) GetMetadata() map[string]string

func (*Plan) GetNickname

func (m *Plan) GetNickname() string

func (*Plan) GetProduct

func (m *Plan) GetProduct() *Product

func (*Plan) GetTiresMode

func (m *Plan) GetTiresMode() string

func (*Plan) GetTrialPeriodDays

func (m *Plan) GetTrialPeriodDays() int64

func (*Plan) GetUsageType

func (m *Plan) GetUsageType() string

func (*Plan) Marshal

func (m *Plan) Marshal() (dAtA []byte, err error)

func (*Plan) MarshalTo

func (m *Plan) MarshalTo(dAtA []byte) (int, error)

func (*Plan) ProtoMessage

func (*Plan) ProtoMessage()

func (*Plan) Reset

func (m *Plan) Reset()

func (*Plan) Size

func (m *Plan) Size() (n int)

func (*Plan) String

func (m *Plan) String() string

func (*Plan) Unmarshal

func (m *Plan) Unmarshal(dAtA []byte) error

func (*Plan) XXX_MessageName

func (*Plan) XXX_MessageName() string

type PlanList

type PlanList struct {
	Plans []*Plan `protobuf:"bytes,1,rep,name=plans" json:"plans,omitempty"`
}

func (*PlanList) Descriptor

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

func (*PlanList) GetPlans

func (m *PlanList) GetPlans() []*Plan

func (*PlanList) Marshal

func (m *PlanList) Marshal() (dAtA []byte, err error)

func (*PlanList) MarshalTo

func (m *PlanList) MarshalTo(dAtA []byte) (int, error)

func (*PlanList) ProtoMessage

func (*PlanList) ProtoMessage()

func (*PlanList) Reset

func (m *PlanList) Reset()

func (*PlanList) Size

func (m *PlanList) Size() (n int)

func (*PlanList) String

func (m *PlanList) String() string

func (*PlanList) Unmarshal

func (m *PlanList) Unmarshal(dAtA []byte) error

func (*PlanList) XXX_MessageName

func (*PlanList) XXX_MessageName() string

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) Descriptor() ([]byte, []int)

func (*Product) GetActive

func (m *Product) GetActive() bool

func (*Product) GetAttributes

func (m *Product) GetAttributes() []string

func (*Product) GetCaption

func (m *Product) GetCaption() string

func (*Product) GetDescription

func (m *Product) GetDescription() string

func (*Product) GetId

func (m *Product) GetId() string

func (*Product) GetMetadata

func (m *Product) GetMetadata() map[string]string

func (*Product) GetName

func (m *Product) GetName() string

func (*Product) Marshal

func (m *Product) Marshal() (dAtA []byte, err error)

func (*Product) MarshalTo

func (m *Product) MarshalTo(dAtA []byte) (int, error)

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) Size

func (m *Product) Size() (n int)

func (*Product) String

func (m *Product) String() string

func (*Product) Unmarshal

func (m *Product) Unmarshal(dAtA []byte) error

func (*Product) XXX_MessageName

func (*Product) XXX_MessageName() string

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) Descriptor() ([]byte, []int)

func (*Source) GetCard

func (m *Source) GetCard() *Card

func (*Source) GetId

func (m *Source) GetId() string

func (*Source) GetSource

func (m *Source) GetSource() isSource_Source

func (*Source) GetType

func (m *Source) GetType() string

func (*Source) Marshal

func (m *Source) Marshal() (dAtA []byte, err error)

func (*Source) MarshalTo

func (m *Source) MarshalTo(dAtA []byte) (int, error)

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) Reset

func (m *Source) Reset()

func (*Source) Size

func (m *Source) Size() (n int)

func (*Source) String

func (m *Source) String() string

func (*Source) Unmarshal

func (m *Source) Unmarshal(dAtA []byte) error

func (*Source) XXX_MessageName

func (*Source) XXX_MessageName() string

func (*Source) XXX_OneofFuncs

func (*Source) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Source_Card

type Source_Card struct {
	Card *Card `protobuf:"bytes,3,opt,name=card,oneof"`
}

func (*Source_Card) MarshalTo

func (m *Source_Card) MarshalTo(dAtA []byte) (int, error)

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) MarshalTo

func (m *SubscribeRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *Subscription) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *TerminateRequest) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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