Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBillingServiceServer(s grpc.ServiceRegistrar, srv BillingServiceServer)
- type BillingServiceClient
- type BillingServiceServer
- type CreateBillingPortalSessionRequest
- func (*CreateBillingPortalSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (*CreateBillingPortalSessionRequest) ProtoMessage()
- func (x *CreateBillingPortalSessionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBillingPortalSessionRequest) Reset()
- func (x *CreateBillingPortalSessionRequest) String() string
- type CreateBillingPortalSessionResponse
- func (*CreateBillingPortalSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBillingPortalSessionResponse) GetUrl() string
- func (*CreateBillingPortalSessionResponse) ProtoMessage()
- func (x *CreateBillingPortalSessionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateBillingPortalSessionResponse) Reset()
- func (x *CreateBillingPortalSessionResponse) String() string
- type CreateCustomerRequest
- func (*CreateCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCustomerRequest) GetEmail() string
- func (x *CreateCustomerRequest) GetIdempotencyKey() string
- func (x *CreateCustomerRequest) GetMetadata() map[string]string
- func (x *CreateCustomerRequest) GetName() string
- func (*CreateCustomerRequest) ProtoMessage()
- func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerRequest) Reset()
- func (x *CreateCustomerRequest) String() string
- type CreateCustomerResponse
- func (*CreateCustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCustomerResponse) GetCustomerId() string
- func (*CreateCustomerResponse) ProtoMessage()
- func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerResponse) Reset()
- func (x *CreateCustomerResponse) String() string
- type CreateSetupIntentRequest
- func (*CreateSetupIntentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSetupIntentRequest) GetCustomerId() string
- func (x *CreateSetupIntentRequest) GetIdempotencyKey() string
- func (*CreateSetupIntentRequest) ProtoMessage()
- func (x *CreateSetupIntentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSetupIntentRequest) Reset()
- func (x *CreateSetupIntentRequest) String() string
- type CreateSetupIntentResponse
- func (*CreateSetupIntentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSetupIntentResponse) GetClientSecret() string
- func (x *CreateSetupIntentResponse) GetPublishableKey() string
- func (x *CreateSetupIntentResponse) GetSetupIntentId() string
- func (*CreateSetupIntentResponse) ProtoMessage()
- func (x *CreateSetupIntentResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSetupIntentResponse) Reset()
- func (x *CreateSetupIntentResponse) String() string
- type EnsureBillingCustomerRequest
- func (*EnsureBillingCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureBillingCustomerRequest) GetAccountId() string
- func (*EnsureBillingCustomerRequest) ProtoMessage()
- func (x *EnsureBillingCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *EnsureBillingCustomerRequest) Reset()
- func (x *EnsureBillingCustomerRequest) String() string
- type EnsureBillingCustomerResponse
- func (*EnsureBillingCustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureBillingCustomerResponse) GetBillingProfileId() string
- func (x *EnsureBillingCustomerResponse) GetCreated() bool
- func (x *EnsureBillingCustomerResponse) GetStripeCustomerId() string
- func (*EnsureBillingCustomerResponse) ProtoMessage()
- func (x *EnsureBillingCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *EnsureBillingCustomerResponse) Reset()
- func (x *EnsureBillingCustomerResponse) String() string
- type GetAccountUsageRequest
- type GetAccountUsageResponse
- func (*GetAccountUsageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountUsageResponse) GetAgentTokens() *UsageItem
- func (x *GetAccountUsageResponse) GetBaseFeeCents() int64
- func (x *GetAccountUsageResponse) GetBaseFeeInterval() string
- func (x *GetAccountUsageResponse) GetBatches() *UsageItem
- func (x *GetAccountUsageResponse) GetEstimatedAgentSpendCents() int64
- func (x *GetAccountUsageResponse) GetInvoices() *UsageItem
- func (x *GetAccountUsageResponse) GetPlanName() string
- func (x *GetAccountUsageResponse) GetSandboxes() *UsageItem
- func (x *GetAccountUsageResponse) GetSeats() *UsageItem
- func (x *GetAccountUsageResponse) GetSubscription() *SubscriptionInfo
- func (*GetAccountUsageResponse) ProtoMessage()
- func (x *GetAccountUsageResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountUsageResponse) Reset()
- func (x *GetAccountUsageResponse) String() string
- type GetAgentSpendRequest
- func (*GetAgentSpendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentSpendRequest) GetAccountId() string
- func (*GetAgentSpendRequest) ProtoMessage()
- func (x *GetAgentSpendRequest) ProtoReflect() protoreflect.Message
- func (x *GetAgentSpendRequest) Reset()
- func (x *GetAgentSpendRequest) String() string
- type GetAgentSpendResponse
- func (*GetAgentSpendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentSpendResponse) GetEstimatedSpendCents() int64
- func (x *GetAgentSpendResponse) GetTokenRates() []*TokenRate
- func (*GetAgentSpendResponse) ProtoMessage()
- func (x *GetAgentSpendResponse) ProtoReflect() protoreflect.Message
- func (x *GetAgentSpendResponse) Reset()
- func (x *GetAgentSpendResponse) String() string
- type GetPlanByCodeRequest
- func (*GetPlanByCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPlanByCodeRequest) GetPlanCode() string
- func (*GetPlanByCodeRequest) ProtoMessage()
- func (x *GetPlanByCodeRequest) ProtoReflect() protoreflect.Message
- func (x *GetPlanByCodeRequest) Reset()
- func (x *GetPlanByCodeRequest) String() string
- type GetPlanByCodeResponse
- func (*GetPlanByCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPlanByCodeResponse) GetPlan() *PricingPlan
- func (*GetPlanByCodeResponse) ProtoMessage()
- func (x *GetPlanByCodeResponse) ProtoReflect() protoreflect.Message
- func (x *GetPlanByCodeResponse) Reset()
- func (x *GetPlanByCodeResponse) String() string
- type GetSetupIntentStatusRequest
- func (*GetSetupIntentStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSetupIntentStatusRequest) GetSetupIntentId() string
- func (*GetSetupIntentStatusRequest) ProtoMessage()
- func (x *GetSetupIntentStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetSetupIntentStatusRequest) Reset()
- func (x *GetSetupIntentStatusRequest) String() string
- type GetSetupIntentStatusResponse
- func (*GetSetupIntentStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSetupIntentStatusResponse) GetPaymentMethodId() string
- func (x *GetSetupIntentStatusResponse) GetStatus() string
- func (*GetSetupIntentStatusResponse) ProtoMessage()
- func (x *GetSetupIntentStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetSetupIntentStatusResponse) Reset()
- func (x *GetSetupIntentStatusResponse) String() string
- type ListPricingPlansRequest
- func (*ListPricingPlansRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPricingPlansRequest) GetCursor() string
- func (x *ListPricingPlansRequest) GetLimit() int32
- func (x *ListPricingPlansRequest) GetQuery() string
- func (*ListPricingPlansRequest) ProtoMessage()
- func (x *ListPricingPlansRequest) ProtoReflect() protoreflect.Message
- func (x *ListPricingPlansRequest) Reset()
- func (x *ListPricingPlansRequest) String() string
- type ListPricingPlansResponse
- func (*ListPricingPlansResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPricingPlansResponse) GetPageInfo() *PageInfo
- func (x *ListPricingPlansResponse) GetPlans() []*PricingPlan
- func (*ListPricingPlansResponse) ProtoMessage()
- func (x *ListPricingPlansResponse) ProtoReflect() protoreflect.Message
- func (x *ListPricingPlansResponse) Reset()
- func (x *ListPricingPlansResponse) String() string
- type PageInfo
- func (*PageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PageInfo) GetHasNextPage() bool
- func (x *PageInfo) GetHasPrevPage() bool
- func (x *PageInfo) GetNextCursor() string
- func (x *PageInfo) GetPrevCursor() string
- func (*PageInfo) ProtoMessage()
- func (x *PageInfo) ProtoReflect() protoreflect.Message
- func (x *PageInfo) Reset()
- func (x *PageInfo) String() string
- type PlanChangePreview
- func (*PlanChangePreview) Descriptor() ([]byte, []int)deprecated
- func (x *PlanChangePreview) GetFormattedMonthlyBillAmount() string
- func (x *PlanChangePreview) GetFormattedNetAmount() string
- func (x *PlanChangePreview) GetIsEstimate() bool
- func (x *PlanChangePreview) GetLineItems() []*PlanChangePreviewLineItem
- func (x *PlanChangePreview) GetMonthlyBillAmount() int64
- func (x *PlanChangePreview) GetNetAmount() int64
- func (*PlanChangePreview) ProtoMessage()
- func (x *PlanChangePreview) ProtoReflect() protoreflect.Message
- func (x *PlanChangePreview) Reset()
- func (x *PlanChangePreview) String() string
- type PlanChangePreviewLineItem
- func (*PlanChangePreviewLineItem) Descriptor() ([]byte, []int)deprecated
- func (x *PlanChangePreviewLineItem) GetAmount() int64
- func (x *PlanChangePreviewLineItem) GetDescription() string
- func (*PlanChangePreviewLineItem) ProtoMessage()
- func (x *PlanChangePreviewLineItem) ProtoReflect() protoreflect.Message
- func (x *PlanChangePreviewLineItem) Reset()
- func (x *PlanChangePreviewLineItem) String() string
- type PlanLimit
- type PreviewPlanChangeRequest
- func (*PreviewPlanChangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewPlanChangeRequest) GetPlanId() string
- func (*PreviewPlanChangeRequest) ProtoMessage()
- func (x *PreviewPlanChangeRequest) ProtoReflect() protoreflect.Message
- func (x *PreviewPlanChangeRequest) Reset()
- func (x *PreviewPlanChangeRequest) String() string
- type PreviewPlanChangeResponse
- func (*PreviewPlanChangeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewPlanChangeResponse) GetPreview() *PlanChangePreview
- func (*PreviewPlanChangeResponse) ProtoMessage()
- func (x *PreviewPlanChangeResponse) ProtoReflect() protoreflect.Message
- func (x *PreviewPlanChangeResponse) Reset()
- func (x *PreviewPlanChangeResponse) String() string
- type PricingPlan
- func (*PricingPlan) Descriptor() ([]byte, []int)deprecated
- func (x *PricingPlan) GetButtonText() string
- func (x *PricingPlan) GetDisplayFeatures() []string
- func (x *PricingPlan) GetDisplayOrder() int32
- func (x *PricingPlan) GetId() string
- func (x *PricingPlan) GetIncludesPreviousPlan() string
- func (x *PricingPlan) GetIsHighlighted() bool
- func (x *PricingPlan) GetLimits() []*PlanLimit
- func (x *PricingPlan) GetName() string
- func (x *PricingPlan) GetPlanTypeCode() string
- func (x *PricingPlan) GetPricePerMonth() float64
- func (x *PricingPlan) GetPricePerSeat() float64
- func (x *PricingPlan) GetSeatMinimum() int32
- func (*PricingPlan) ProtoMessage()
- func (x *PricingPlan) ProtoReflect() protoreflect.Message
- func (x *PricingPlan) Reset()
- func (x *PricingPlan) String() string
- type ProcessWebhookEventRequest
- func (*ProcessWebhookEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessWebhookEventRequest) GetRawPayload() []byte
- func (x *ProcessWebhookEventRequest) GetStripeSignature() string
- func (*ProcessWebhookEventRequest) ProtoMessage()
- func (x *ProcessWebhookEventRequest) ProtoReflect() protoreflect.Message
- func (x *ProcessWebhookEventRequest) Reset()
- func (x *ProcessWebhookEventRequest) String() string
- type ProcessWebhookEventResponse
- func (*ProcessWebhookEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessWebhookEventResponse) GetIsDuplicate() bool
- func (x *ProcessWebhookEventResponse) GetSuccess() bool
- func (*ProcessWebhookEventResponse) ProtoMessage()
- func (x *ProcessWebhookEventResponse) ProtoReflect() protoreflect.Message
- func (x *ProcessWebhookEventResponse) Reset()
- func (x *ProcessWebhookEventResponse) String() string
- type RequestEnterpriseUpgradeRequest
- func (*RequestEnterpriseUpgradeRequest) Descriptor() ([]byte, []int)deprecated
- func (*RequestEnterpriseUpgradeRequest) ProtoMessage()
- func (x *RequestEnterpriseUpgradeRequest) ProtoReflect() protoreflect.Message
- func (x *RequestEnterpriseUpgradeRequest) Reset()
- func (x *RequestEnterpriseUpgradeRequest) String() string
- type RequestEnterpriseUpgradeResponse
- func (*RequestEnterpriseUpgradeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RequestEnterpriseUpgradeResponse) GetSuccess() bool
- func (*RequestEnterpriseUpgradeResponse) ProtoMessage()
- func (x *RequestEnterpriseUpgradeResponse) ProtoReflect() protoreflect.Message
- func (x *RequestEnterpriseUpgradeResponse) Reset()
- func (x *RequestEnterpriseUpgradeResponse) String() string
- type SetupBillingProfileRequest
- func (*SetupBillingProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetupBillingProfileRequest) GetAccountId() string
- func (*SetupBillingProfileRequest) ProtoMessage()
- func (x *SetupBillingProfileRequest) ProtoReflect() protoreflect.Message
- func (x *SetupBillingProfileRequest) Reset()
- func (x *SetupBillingProfileRequest) String() string
- type SetupBillingProfileResponse
- func (*SetupBillingProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetupBillingProfileResponse) GetBillingCadenceId() string
- func (x *SetupBillingProfileResponse) GetBillingProfileId() string
- func (*SetupBillingProfileResponse) ProtoMessage()
- func (x *SetupBillingProfileResponse) ProtoReflect() protoreflect.Message
- func (x *SetupBillingProfileResponse) Reset()
- func (x *SetupBillingProfileResponse) String() string
- type SubscribeToPricingPlanRequest
- func (*SubscribeToPricingPlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeToPricingPlanRequest) GetPlanCode() string
- func (x *SubscribeToPricingPlanRequest) GetStripeCustomerId() string
- func (*SubscribeToPricingPlanRequest) ProtoMessage()
- func (x *SubscribeToPricingPlanRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeToPricingPlanRequest) Reset()
- func (x *SubscribeToPricingPlanRequest) String() string
- type SubscribeToPricingPlanResponse
- func (*SubscribeToPricingPlanResponse) Descriptor() ([]byte, []int)deprecated
- func (*SubscribeToPricingPlanResponse) ProtoMessage()
- func (x *SubscribeToPricingPlanResponse) ProtoReflect() protoreflect.Message
- func (x *SubscribeToPricingPlanResponse) Reset()
- func (x *SubscribeToPricingPlanResponse) String() string
- type SubscriptionInfo
- func (*SubscriptionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SubscriptionInfo) GetCollectionStatus() string
- func (x *SubscriptionInfo) GetCurrentPeriodEnd() *timestamppb.Timestamp
- func (x *SubscriptionInfo) GetServicingStatus() string
- func (*SubscriptionInfo) ProtoMessage()
- func (x *SubscriptionInfo) ProtoReflect() protoreflect.Message
- func (x *SubscriptionInfo) Reset()
- func (x *SubscriptionInfo) String() string
- type SwitchPlanRequest
- type SwitchPlanResponse
- func (*SwitchPlanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SwitchPlanResponse) GetIntentId() string
- func (x *SwitchPlanResponse) GetSuccess() bool
- func (*SwitchPlanResponse) ProtoMessage()
- func (x *SwitchPlanResponse) ProtoReflect() protoreflect.Message
- func (x *SwitchPlanResponse) Reset()
- func (x *SwitchPlanResponse) String() string
- type TokenRate
- func (*TokenRate) Descriptor() ([]byte, []int)deprecated
- func (x *TokenRate) GetModel() string
- func (x *TokenRate) GetTokenType() string
- func (x *TokenRate) GetUnitAmountCents() float64
- func (*TokenRate) ProtoMessage()
- func (x *TokenRate) ProtoReflect() protoreflect.Message
- func (x *TokenRate) Reset()
- func (x *TokenRate) String() string
- type UnimplementedBillingServiceServer
- func (UnimplementedBillingServiceServer) CreateBillingPortalSession(context.Context, *CreateBillingPortalSessionRequest) (*CreateBillingPortalSessionResponse, error)
- func (UnimplementedBillingServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error)
- func (UnimplementedBillingServiceServer) CreateSetupIntent(context.Context, *CreateSetupIntentRequest) (*CreateSetupIntentResponse, error)
- func (UnimplementedBillingServiceServer) EnsureBillingCustomer(context.Context, *EnsureBillingCustomerRequest) (*EnsureBillingCustomerResponse, error)
- func (UnimplementedBillingServiceServer) GetAccountUsage(context.Context, *GetAccountUsageRequest) (*GetAccountUsageResponse, error)
- func (UnimplementedBillingServiceServer) GetAgentSpend(context.Context, *GetAgentSpendRequest) (*GetAgentSpendResponse, error)
- func (UnimplementedBillingServiceServer) GetPlanByCode(context.Context, *GetPlanByCodeRequest) (*GetPlanByCodeResponse, error)
- func (UnimplementedBillingServiceServer) GetSetupIntentStatus(context.Context, *GetSetupIntentStatusRequest) (*GetSetupIntentStatusResponse, error)
- func (UnimplementedBillingServiceServer) ListPricingPlans(context.Context, *ListPricingPlansRequest) (*ListPricingPlansResponse, error)
- func (UnimplementedBillingServiceServer) PreviewPlanChange(context.Context, *PreviewPlanChangeRequest) (*PreviewPlanChangeResponse, error)
- func (UnimplementedBillingServiceServer) ProcessWebhookEvent(context.Context, *ProcessWebhookEventRequest) (*ProcessWebhookEventResponse, error)
- func (UnimplementedBillingServiceServer) RequestEnterpriseUpgrade(context.Context, *RequestEnterpriseUpgradeRequest) (*RequestEnterpriseUpgradeResponse, error)
- func (UnimplementedBillingServiceServer) SetupBillingProfile(context.Context, *SetupBillingProfileRequest) (*SetupBillingProfileResponse, error)
- func (UnimplementedBillingServiceServer) SubscribeToPricingPlan(context.Context, *SubscribeToPricingPlanRequest) (*SubscribeToPricingPlanResponse, error)
- func (UnimplementedBillingServiceServer) SwitchPlan(context.Context, *SwitchPlanRequest) (*SwitchPlanResponse, error)
- func (UnimplementedBillingServiceServer) ValidateStripePricingPlan(context.Context, *ValidateStripePricingPlanRequest) (*ValidateStripePricingPlanResponse, error)
- type UnsafeBillingServiceServer
- type UsageItem
- type ValidateStripePricingPlanRequest
- func (*ValidateStripePricingPlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateStripePricingPlanRequest) GetPlanCode() string
- func (*ValidateStripePricingPlanRequest) ProtoMessage()
- func (x *ValidateStripePricingPlanRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateStripePricingPlanRequest) Reset()
- func (x *ValidateStripePricingPlanRequest) String() string
- type ValidateStripePricingPlanResponse
- func (*ValidateStripePricingPlanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateStripePricingPlanResponse) GetValid() bool
- func (*ValidateStripePricingPlanResponse) ProtoMessage()
- func (x *ValidateStripePricingPlanResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateStripePricingPlanResponse) Reset()
- func (x *ValidateStripePricingPlanResponse) String() string
Constants ¶
const ( BillingService_ListPricingPlans_FullMethodName = "/billing.BillingService/ListPricingPlans" BillingService_GetPlanByCode_FullMethodName = "/billing.BillingService/GetPlanByCode" BillingService_ProcessWebhookEvent_FullMethodName = "/billing.BillingService/ProcessWebhookEvent" BillingService_CreateCustomer_FullMethodName = "/billing.BillingService/CreateCustomer" BillingService_GetAccountUsage_FullMethodName = "/billing.BillingService/GetAccountUsage" BillingService_CreateBillingPortalSession_FullMethodName = "/billing.BillingService/CreateBillingPortalSession" BillingService_PreviewPlanChange_FullMethodName = "/billing.BillingService/PreviewPlanChange" BillingService_RequestEnterpriseUpgrade_FullMethodName = "/billing.BillingService/RequestEnterpriseUpgrade" BillingService_EnsureBillingCustomer_FullMethodName = "/billing.BillingService/EnsureBillingCustomer" BillingService_GetAgentSpend_FullMethodName = "/billing.BillingService/GetAgentSpend" BillingService_SwitchPlan_FullMethodName = "/billing.BillingService/SwitchPlan" BillingService_SetupBillingProfile_FullMethodName = "/billing.BillingService/SetupBillingProfile" BillingService_SubscribeToPricingPlan_FullMethodName = "/billing.BillingService/SubscribeToPricingPlan" BillingService_CreateSetupIntent_FullMethodName = "/billing.BillingService/CreateSetupIntent" BillingService_GetSetupIntentStatus_FullMethodName = "/billing.BillingService/GetSetupIntentStatus" BillingService_ValidateStripePricingPlan_FullMethodName = "/billing.BillingService/ValidateStripePricingPlan" )
Variables ¶
var BillingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "billing.BillingService", HandlerType: (*BillingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListPricingPlans", Handler: _BillingService_ListPricingPlans_Handler, }, { MethodName: "GetPlanByCode", Handler: _BillingService_GetPlanByCode_Handler, }, { MethodName: "ProcessWebhookEvent", Handler: _BillingService_ProcessWebhookEvent_Handler, }, { MethodName: "CreateCustomer", Handler: _BillingService_CreateCustomer_Handler, }, { MethodName: "GetAccountUsage", Handler: _BillingService_GetAccountUsage_Handler, }, { MethodName: "CreateBillingPortalSession", Handler: _BillingService_CreateBillingPortalSession_Handler, }, { MethodName: "PreviewPlanChange", Handler: _BillingService_PreviewPlanChange_Handler, }, { MethodName: "RequestEnterpriseUpgrade", Handler: _BillingService_RequestEnterpriseUpgrade_Handler, }, { MethodName: "EnsureBillingCustomer", Handler: _BillingService_EnsureBillingCustomer_Handler, }, { MethodName: "GetAgentSpend", Handler: _BillingService_GetAgentSpend_Handler, }, { MethodName: "SwitchPlan", Handler: _BillingService_SwitchPlan_Handler, }, { MethodName: "SetupBillingProfile", Handler: _BillingService_SetupBillingProfile_Handler, }, { MethodName: "SubscribeToPricingPlan", Handler: _BillingService_SubscribeToPricingPlan_Handler, }, { MethodName: "CreateSetupIntent", Handler: _BillingService_CreateSetupIntent_Handler, }, { MethodName: "GetSetupIntentStatus", Handler: _BillingService_GetSetupIntentStatus_Handler, }, { MethodName: "ValidateStripePricingPlan", Handler: _BillingService_ValidateStripePricingPlan_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "billing/billing.proto", }
BillingService_ServiceDesc is the grpc.ServiceDesc for BillingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_billing_billing_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBillingServiceServer ¶
func RegisterBillingServiceServer(s grpc.ServiceRegistrar, srv BillingServiceServer)
Types ¶
type BillingServiceClient ¶
type BillingServiceClient interface {
// ListPricingPlans returns a paginated list of currently active pricing plans.
ListPricingPlans(ctx context.Context, in *ListPricingPlansRequest, opts ...grpc.CallOption) (*ListPricingPlansResponse, error)
// GetPlanByCode returns a single pricing plan by its plan type code.
GetPlanByCode(ctx context.Context, in *GetPlanByCodeRequest, opts ...grpc.CallOption) (*GetPlanByCodeResponse, error)
// ProcessWebhookEvent verifies and processes an incoming Stripe webhook event.
ProcessWebhookEvent(ctx context.Context, in *ProcessWebhookEventRequest, opts ...grpc.CallOption) (*ProcessWebhookEventResponse, error)
// CreateCustomer creates a Stripe customer for a registration session.
CreateCustomer(ctx context.Context, in *CreateCustomerRequest, opts ...grpc.CallOption) (*CreateCustomerResponse, error)
// GetAccountUsage returns current resource usage for an account with plan
// limits and subscription info.
GetAccountUsage(ctx context.Context, in *GetAccountUsageRequest, opts ...grpc.CallOption) (*GetAccountUsageResponse, error)
// CreateBillingPortalSession creates a Stripe billing portal session for
// managing subscriptions.
CreateBillingPortalSession(ctx context.Context, in *CreateBillingPortalSessionRequest, opts ...grpc.CallOption) (*CreateBillingPortalSessionResponse, error)
// PreviewPlanChange returns a cost preview for switching to a different plan
// using the billing intent reserve+void pattern.
PreviewPlanChange(ctx context.Context, in *PreviewPlanChangeRequest, opts ...grpc.CallOption) (*PreviewPlanChangeResponse, error)
// RequestEnterpriseUpgrade sends an enterprise plan inquiry to the sales
// team on behalf of the requesting admin.
RequestEnterpriseUpgrade(ctx context.Context, in *RequestEnterpriseUpgradeRequest, opts ...grpc.CallOption) (*RequestEnterpriseUpgradeResponse, error)
// EnsureBillingCustomer links or fetches a Stripe customer for an account.
// If the account already has a Stripe customer ID it is returned; otherwise
// a new Stripe customer is created and linked.
EnsureBillingCustomer(ctx context.Context, in *EnsureBillingCustomerRequest, opts ...grpc.CallOption) (*EnsureBillingCustomerResponse, error)
// GetAgentSpend returns the marked-up token spend an account has accrued in
// the current billing period, as it will be billed in Stripe. Used by
// agent-service to enforce the spending cap against the same figure the
// dashboard displays.
GetAgentSpend(ctx context.Context, in *GetAgentSpendRequest, opts ...grpc.CallOption) (*GetAgentSpendResponse, error)
// SwitchPlan initiates a plan switch using v2 billing intents.
SwitchPlan(ctx context.Context, in *SwitchPlanRequest, opts ...grpc.CallOption) (*SwitchPlanResponse, error)
// SetupBillingProfile creates a billing profile and cadence for an account.
SetupBillingProfile(ctx context.Context, in *SetupBillingProfileRequest, opts ...grpc.CallOption) (*SetupBillingProfileResponse, error)
// SubscribeToPricingPlan creates a v2 pricing plan subscription for an account.
SubscribeToPricingPlan(ctx context.Context, in *SubscribeToPricingPlanRequest, opts ...grpc.CallOption) (*SubscribeToPricingPlanResponse, error)
// CreateSetupIntent creates a Stripe Setup Intent for collecting a payment
// method during registration.
CreateSetupIntent(ctx context.Context, in *CreateSetupIntentRequest, opts ...grpc.CallOption) (*CreateSetupIntentResponse, error)
// GetSetupIntentStatus returns the current status of a Stripe Setup Intent.
GetSetupIntentStatus(ctx context.Context, in *GetSetupIntentStatusRequest, opts ...grpc.CallOption) (*GetSetupIntentStatusResponse, error)
// ValidateStripePricingPlan checks whether the Stripe pricing plan for a
// given plan code is accessible before account creation.
ValidateStripePricingPlan(ctx context.Context, in *ValidateStripePricingPlanRequest, opts ...grpc.CallOption) (*ValidateStripePricingPlanResponse, error)
}
BillingServiceClient is the client API for BillingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBillingServiceClient ¶
func NewBillingServiceClient(cc grpc.ClientConnInterface) BillingServiceClient
type BillingServiceServer ¶
type BillingServiceServer interface {
// ListPricingPlans returns a paginated list of currently active pricing plans.
ListPricingPlans(context.Context, *ListPricingPlansRequest) (*ListPricingPlansResponse, error)
// GetPlanByCode returns a single pricing plan by its plan type code.
GetPlanByCode(context.Context, *GetPlanByCodeRequest) (*GetPlanByCodeResponse, error)
// ProcessWebhookEvent verifies and processes an incoming Stripe webhook event.
ProcessWebhookEvent(context.Context, *ProcessWebhookEventRequest) (*ProcessWebhookEventResponse, error)
// CreateCustomer creates a Stripe customer for a registration session.
CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error)
// GetAccountUsage returns current resource usage for an account with plan
// limits and subscription info.
GetAccountUsage(context.Context, *GetAccountUsageRequest) (*GetAccountUsageResponse, error)
// CreateBillingPortalSession creates a Stripe billing portal session for
// managing subscriptions.
CreateBillingPortalSession(context.Context, *CreateBillingPortalSessionRequest) (*CreateBillingPortalSessionResponse, error)
// PreviewPlanChange returns a cost preview for switching to a different plan
// using the billing intent reserve+void pattern.
PreviewPlanChange(context.Context, *PreviewPlanChangeRequest) (*PreviewPlanChangeResponse, error)
// RequestEnterpriseUpgrade sends an enterprise plan inquiry to the sales
// team on behalf of the requesting admin.
RequestEnterpriseUpgrade(context.Context, *RequestEnterpriseUpgradeRequest) (*RequestEnterpriseUpgradeResponse, error)
// EnsureBillingCustomer links or fetches a Stripe customer for an account.
// If the account already has a Stripe customer ID it is returned; otherwise
// a new Stripe customer is created and linked.
EnsureBillingCustomer(context.Context, *EnsureBillingCustomerRequest) (*EnsureBillingCustomerResponse, error)
// GetAgentSpend returns the marked-up token spend an account has accrued in
// the current billing period, as it will be billed in Stripe. Used by
// agent-service to enforce the spending cap against the same figure the
// dashboard displays.
GetAgentSpend(context.Context, *GetAgentSpendRequest) (*GetAgentSpendResponse, error)
// SwitchPlan initiates a plan switch using v2 billing intents.
SwitchPlan(context.Context, *SwitchPlanRequest) (*SwitchPlanResponse, error)
// SetupBillingProfile creates a billing profile and cadence for an account.
SetupBillingProfile(context.Context, *SetupBillingProfileRequest) (*SetupBillingProfileResponse, error)
// SubscribeToPricingPlan creates a v2 pricing plan subscription for an account.
SubscribeToPricingPlan(context.Context, *SubscribeToPricingPlanRequest) (*SubscribeToPricingPlanResponse, error)
// CreateSetupIntent creates a Stripe Setup Intent for collecting a payment
// method during registration.
CreateSetupIntent(context.Context, *CreateSetupIntentRequest) (*CreateSetupIntentResponse, error)
// GetSetupIntentStatus returns the current status of a Stripe Setup Intent.
GetSetupIntentStatus(context.Context, *GetSetupIntentStatusRequest) (*GetSetupIntentStatusResponse, error)
// ValidateStripePricingPlan checks whether the Stripe pricing plan for a
// given plan code is accessible before account creation.
ValidateStripePricingPlan(context.Context, *ValidateStripePricingPlanRequest) (*ValidateStripePricingPlanResponse, error)
// contains filtered or unexported methods
}
BillingServiceServer is the server API for BillingService service. All implementations must embed UnimplementedBillingServiceServer for forward compatibility.
type CreateBillingPortalSessionRequest ¶
type CreateBillingPortalSessionRequest struct {
// contains filtered or unexported fields
}
Intentionally empty; account is identified by the caller's identity metadata.
func (*CreateBillingPortalSessionRequest) Descriptor
deprecated
func (*CreateBillingPortalSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBillingPortalSessionRequest.ProtoReflect.Descriptor instead.
func (*CreateBillingPortalSessionRequest) ProtoMessage ¶
func (*CreateBillingPortalSessionRequest) ProtoMessage()
func (*CreateBillingPortalSessionRequest) ProtoReflect ¶
func (x *CreateBillingPortalSessionRequest) ProtoReflect() protoreflect.Message
func (*CreateBillingPortalSessionRequest) Reset ¶
func (x *CreateBillingPortalSessionRequest) Reset()
func (*CreateBillingPortalSessionRequest) String ¶
func (x *CreateBillingPortalSessionRequest) String() string
type CreateBillingPortalSessionResponse ¶
type CreateBillingPortalSessionResponse struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
func (*CreateBillingPortalSessionResponse) Descriptor
deprecated
func (*CreateBillingPortalSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBillingPortalSessionResponse.ProtoReflect.Descriptor instead.
func (*CreateBillingPortalSessionResponse) GetUrl ¶
func (x *CreateBillingPortalSessionResponse) GetUrl() string
func (*CreateBillingPortalSessionResponse) ProtoMessage ¶
func (*CreateBillingPortalSessionResponse) ProtoMessage()
func (*CreateBillingPortalSessionResponse) ProtoReflect ¶
func (x *CreateBillingPortalSessionResponse) ProtoReflect() protoreflect.Message
func (*CreateBillingPortalSessionResponse) Reset ¶
func (x *CreateBillingPortalSessionResponse) Reset()
func (*CreateBillingPortalSessionResponse) String ¶
func (x *CreateBillingPortalSessionResponse) String() string
type CreateCustomerRequest ¶
type CreateCustomerRequest struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
IdempotencyKey string `protobuf:"bytes,3,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*CreateCustomerRequest) Descriptor
deprecated
func (*CreateCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerRequest.ProtoReflect.Descriptor instead.
func (*CreateCustomerRequest) GetEmail ¶
func (x *CreateCustomerRequest) GetEmail() string
func (*CreateCustomerRequest) GetIdempotencyKey ¶
func (x *CreateCustomerRequest) GetIdempotencyKey() string
func (*CreateCustomerRequest) GetMetadata ¶
func (x *CreateCustomerRequest) GetMetadata() map[string]string
func (*CreateCustomerRequest) GetName ¶
func (x *CreateCustomerRequest) GetName() string
func (*CreateCustomerRequest) ProtoMessage ¶
func (*CreateCustomerRequest) ProtoMessage()
func (*CreateCustomerRequest) ProtoReflect ¶
func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
func (*CreateCustomerRequest) Reset ¶
func (x *CreateCustomerRequest) Reset()
func (*CreateCustomerRequest) String ¶
func (x *CreateCustomerRequest) String() string
type CreateCustomerResponse ¶
type CreateCustomerResponse struct {
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateCustomerResponse) Descriptor
deprecated
func (*CreateCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerResponse.ProtoReflect.Descriptor instead.
func (*CreateCustomerResponse) GetCustomerId ¶
func (x *CreateCustomerResponse) GetCustomerId() string
func (*CreateCustomerResponse) ProtoMessage ¶
func (*CreateCustomerResponse) ProtoMessage()
func (*CreateCustomerResponse) ProtoReflect ¶
func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message
func (*CreateCustomerResponse) Reset ¶
func (x *CreateCustomerResponse) Reset()
func (*CreateCustomerResponse) String ¶
func (x *CreateCustomerResponse) String() string
type CreateSetupIntentRequest ¶
type CreateSetupIntentRequest struct {
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
IdempotencyKey string `protobuf:"bytes,2,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
// contains filtered or unexported fields
}
func (*CreateSetupIntentRequest) Descriptor
deprecated
func (*CreateSetupIntentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSetupIntentRequest.ProtoReflect.Descriptor instead.
func (*CreateSetupIntentRequest) GetCustomerId ¶
func (x *CreateSetupIntentRequest) GetCustomerId() string
func (*CreateSetupIntentRequest) GetIdempotencyKey ¶
func (x *CreateSetupIntentRequest) GetIdempotencyKey() string
func (*CreateSetupIntentRequest) ProtoMessage ¶
func (*CreateSetupIntentRequest) ProtoMessage()
func (*CreateSetupIntentRequest) ProtoReflect ¶
func (x *CreateSetupIntentRequest) ProtoReflect() protoreflect.Message
func (*CreateSetupIntentRequest) Reset ¶
func (x *CreateSetupIntentRequest) Reset()
func (*CreateSetupIntentRequest) String ¶
func (x *CreateSetupIntentRequest) String() string
type CreateSetupIntentResponse ¶
type CreateSetupIntentResponse struct {
SetupIntentId string `protobuf:"bytes,1,opt,name=setup_intent_id,json=setupIntentId,proto3" json:"setup_intent_id,omitempty"`
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
PublishableKey string `protobuf:"bytes,3,opt,name=publishable_key,json=publishableKey,proto3" json:"publishable_key,omitempty"`
// contains filtered or unexported fields
}
func (*CreateSetupIntentResponse) Descriptor
deprecated
func (*CreateSetupIntentResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSetupIntentResponse.ProtoReflect.Descriptor instead.
func (*CreateSetupIntentResponse) GetClientSecret ¶
func (x *CreateSetupIntentResponse) GetClientSecret() string
func (*CreateSetupIntentResponse) GetPublishableKey ¶
func (x *CreateSetupIntentResponse) GetPublishableKey() string
func (*CreateSetupIntentResponse) GetSetupIntentId ¶
func (x *CreateSetupIntentResponse) GetSetupIntentId() string
func (*CreateSetupIntentResponse) ProtoMessage ¶
func (*CreateSetupIntentResponse) ProtoMessage()
func (*CreateSetupIntentResponse) ProtoReflect ¶
func (x *CreateSetupIntentResponse) ProtoReflect() protoreflect.Message
func (*CreateSetupIntentResponse) Reset ¶
func (x *CreateSetupIntentResponse) Reset()
func (*CreateSetupIntentResponse) String ¶
func (x *CreateSetupIntentResponse) String() string
type EnsureBillingCustomerRequest ¶
type EnsureBillingCustomerRequest struct {
AccountId *string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3,oneof" json:"account_id,omitempty"`
// contains filtered or unexported fields
}
func (*EnsureBillingCustomerRequest) Descriptor
deprecated
func (*EnsureBillingCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnsureBillingCustomerRequest.ProtoReflect.Descriptor instead.
func (*EnsureBillingCustomerRequest) GetAccountId ¶
func (x *EnsureBillingCustomerRequest) GetAccountId() string
func (*EnsureBillingCustomerRequest) ProtoMessage ¶
func (*EnsureBillingCustomerRequest) ProtoMessage()
func (*EnsureBillingCustomerRequest) ProtoReflect ¶
func (x *EnsureBillingCustomerRequest) ProtoReflect() protoreflect.Message
func (*EnsureBillingCustomerRequest) Reset ¶
func (x *EnsureBillingCustomerRequest) Reset()
func (*EnsureBillingCustomerRequest) String ¶
func (x *EnsureBillingCustomerRequest) String() string
type EnsureBillingCustomerResponse ¶
type EnsureBillingCustomerResponse struct {
StripeCustomerId string `protobuf:"bytes,1,opt,name=stripe_customer_id,json=stripeCustomerId,proto3" json:"stripe_customer_id,omitempty"`
Created bool `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
// The billing profile ID, present if a billing profile was created or already exists.
BillingProfileId *string `protobuf:"bytes,3,opt,name=billing_profile_id,json=billingProfileId,proto3,oneof" json:"billing_profile_id,omitempty"`
// contains filtered or unexported fields
}
func (*EnsureBillingCustomerResponse) Descriptor
deprecated
func (*EnsureBillingCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnsureBillingCustomerResponse.ProtoReflect.Descriptor instead.
func (*EnsureBillingCustomerResponse) GetBillingProfileId ¶
func (x *EnsureBillingCustomerResponse) GetBillingProfileId() string
func (*EnsureBillingCustomerResponse) GetCreated ¶
func (x *EnsureBillingCustomerResponse) GetCreated() bool
func (*EnsureBillingCustomerResponse) GetStripeCustomerId ¶
func (x *EnsureBillingCustomerResponse) GetStripeCustomerId() string
func (*EnsureBillingCustomerResponse) ProtoMessage ¶
func (*EnsureBillingCustomerResponse) ProtoMessage()
func (*EnsureBillingCustomerResponse) ProtoReflect ¶
func (x *EnsureBillingCustomerResponse) ProtoReflect() protoreflect.Message
func (*EnsureBillingCustomerResponse) Reset ¶
func (x *EnsureBillingCustomerResponse) Reset()
func (*EnsureBillingCustomerResponse) String ¶
func (x *EnsureBillingCustomerResponse) String() string
type GetAccountUsageRequest ¶
type GetAccountUsageRequest struct {
// contains filtered or unexported fields
}
Intentionally empty; account is identified by the caller's identity metadata.
func (*GetAccountUsageRequest) Descriptor
deprecated
func (*GetAccountUsageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountUsageRequest.ProtoReflect.Descriptor instead.
func (*GetAccountUsageRequest) ProtoMessage ¶
func (*GetAccountUsageRequest) ProtoMessage()
func (*GetAccountUsageRequest) ProtoReflect ¶
func (x *GetAccountUsageRequest) ProtoReflect() protoreflect.Message
func (*GetAccountUsageRequest) Reset ¶
func (x *GetAccountUsageRequest) Reset()
func (*GetAccountUsageRequest) String ¶
func (x *GetAccountUsageRequest) String() string
type GetAccountUsageResponse ¶
type GetAccountUsageResponse struct {
Seats *UsageItem `protobuf:"bytes,1,opt,name=seats,proto3" json:"seats,omitempty"`
Invoices *UsageItem `protobuf:"bytes,2,opt,name=invoices,proto3" json:"invoices,omitempty"`
Batches *UsageItem `protobuf:"bytes,3,opt,name=batches,proto3" json:"batches,omitempty"`
Sandboxes *UsageItem `protobuf:"bytes,4,opt,name=sandboxes,proto3" json:"sandboxes,omitempty"`
Subscription *SubscriptionInfo `protobuf:"bytes,5,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"`
AgentTokens *UsageItem `protobuf:"bytes,6,opt,name=agent_tokens,json=agentTokens,proto3" json:"agent_tokens,omitempty"`
EstimatedAgentSpendCents int64 `` /* 138-byte string literal not displayed */
// Plan display name resolved live from Stripe (e.g. the pricing plan's display_name). Empty when the account has no Stripe pricing plan.
PlanName string `protobuf:"bytes,9,opt,name=plan_name,json=planName,proto3" json:"plan_name,omitempty"`
// Flat base fee in cents charged per base_fee_interval, resolved from the pricing plan's license fee component. 0 when the plan has no base fee (e.g. per-seat pricing).
BaseFeeCents int64 `protobuf:"varint,10,opt,name=base_fee_cents,json=baseFeeCents,proto3" json:"base_fee_cents,omitempty"`
// Billing interval the base fee is charged on (e.g. "month", "year"). Empty when there is no base fee.
BaseFeeInterval string `protobuf:"bytes,11,opt,name=base_fee_interval,json=baseFeeInterval,proto3" json:"base_fee_interval,omitempty"`
// contains filtered or unexported fields
}
func (*GetAccountUsageResponse) Descriptor
deprecated
func (*GetAccountUsageResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountUsageResponse.ProtoReflect.Descriptor instead.
func (*GetAccountUsageResponse) GetAgentTokens ¶
func (x *GetAccountUsageResponse) GetAgentTokens() *UsageItem
func (*GetAccountUsageResponse) GetBaseFeeCents ¶
func (x *GetAccountUsageResponse) GetBaseFeeCents() int64
func (*GetAccountUsageResponse) GetBaseFeeInterval ¶
func (x *GetAccountUsageResponse) GetBaseFeeInterval() string
func (*GetAccountUsageResponse) GetBatches ¶
func (x *GetAccountUsageResponse) GetBatches() *UsageItem
func (*GetAccountUsageResponse) GetEstimatedAgentSpendCents ¶
func (x *GetAccountUsageResponse) GetEstimatedAgentSpendCents() int64
func (*GetAccountUsageResponse) GetInvoices ¶
func (x *GetAccountUsageResponse) GetInvoices() *UsageItem
func (*GetAccountUsageResponse) GetPlanName ¶
func (x *GetAccountUsageResponse) GetPlanName() string
func (*GetAccountUsageResponse) GetSandboxes ¶
func (x *GetAccountUsageResponse) GetSandboxes() *UsageItem
func (*GetAccountUsageResponse) GetSeats ¶
func (x *GetAccountUsageResponse) GetSeats() *UsageItem
func (*GetAccountUsageResponse) GetSubscription ¶
func (x *GetAccountUsageResponse) GetSubscription() *SubscriptionInfo
func (*GetAccountUsageResponse) ProtoMessage ¶
func (*GetAccountUsageResponse) ProtoMessage()
func (*GetAccountUsageResponse) ProtoReflect ¶
func (x *GetAccountUsageResponse) ProtoReflect() protoreflect.Message
func (*GetAccountUsageResponse) Reset ¶
func (x *GetAccountUsageResponse) Reset()
func (*GetAccountUsageResponse) String ¶
func (x *GetAccountUsageResponse) String() string
type GetAgentSpendRequest ¶
type GetAgentSpendRequest struct {
AccountId *string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3,oneof" json:"account_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetAgentSpendRequest) Descriptor
deprecated
func (*GetAgentSpendRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentSpendRequest.ProtoReflect.Descriptor instead.
func (*GetAgentSpendRequest) GetAccountId ¶
func (x *GetAgentSpendRequest) GetAccountId() string
func (*GetAgentSpendRequest) ProtoMessage ¶
func (*GetAgentSpendRequest) ProtoMessage()
func (*GetAgentSpendRequest) ProtoReflect ¶
func (x *GetAgentSpendRequest) ProtoReflect() protoreflect.Message
func (*GetAgentSpendRequest) Reset ¶
func (x *GetAgentSpendRequest) Reset()
func (*GetAgentSpendRequest) String ¶
func (x *GetAgentSpendRequest) String() string
type GetAgentSpendResponse ¶
type GetAgentSpendResponse struct {
EstimatedSpendCents int64 `protobuf:"varint,1,opt,name=estimated_spend_cents,json=estimatedSpendCents,proto3" json:"estimated_spend_cents,omitempty"`
// Marked-up per-token rates from the account's plan rate card. Empty when the plan has no rate card. Lets the caller price in-flight usage against the cap without a per-turn round trip.
TokenRates []*TokenRate `protobuf:"bytes,2,rep,name=token_rates,json=tokenRates,proto3" json:"token_rates,omitempty"`
// contains filtered or unexported fields
}
func (*GetAgentSpendResponse) Descriptor
deprecated
func (*GetAgentSpendResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentSpendResponse.ProtoReflect.Descriptor instead.
func (*GetAgentSpendResponse) GetEstimatedSpendCents ¶
func (x *GetAgentSpendResponse) GetEstimatedSpendCents() int64
func (*GetAgentSpendResponse) GetTokenRates ¶
func (x *GetAgentSpendResponse) GetTokenRates() []*TokenRate
func (*GetAgentSpendResponse) ProtoMessage ¶
func (*GetAgentSpendResponse) ProtoMessage()
func (*GetAgentSpendResponse) ProtoReflect ¶
func (x *GetAgentSpendResponse) ProtoReflect() protoreflect.Message
func (*GetAgentSpendResponse) Reset ¶
func (x *GetAgentSpendResponse) Reset()
func (*GetAgentSpendResponse) String ¶
func (x *GetAgentSpendResponse) String() string
type GetPlanByCodeRequest ¶
type GetPlanByCodeRequest struct {
PlanCode string `protobuf:"bytes,1,opt,name=plan_code,json=planCode,proto3" json:"plan_code,omitempty"`
// contains filtered or unexported fields
}
func (*GetPlanByCodeRequest) Descriptor
deprecated
func (*GetPlanByCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPlanByCodeRequest.ProtoReflect.Descriptor instead.
func (*GetPlanByCodeRequest) GetPlanCode ¶
func (x *GetPlanByCodeRequest) GetPlanCode() string
func (*GetPlanByCodeRequest) ProtoMessage ¶
func (*GetPlanByCodeRequest) ProtoMessage()
func (*GetPlanByCodeRequest) ProtoReflect ¶
func (x *GetPlanByCodeRequest) ProtoReflect() protoreflect.Message
func (*GetPlanByCodeRequest) Reset ¶
func (x *GetPlanByCodeRequest) Reset()
func (*GetPlanByCodeRequest) String ¶
func (x *GetPlanByCodeRequest) String() string
type GetPlanByCodeResponse ¶
type GetPlanByCodeResponse struct {
Plan *PricingPlan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`
// contains filtered or unexported fields
}
func (*GetPlanByCodeResponse) Descriptor
deprecated
func (*GetPlanByCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPlanByCodeResponse.ProtoReflect.Descriptor instead.
func (*GetPlanByCodeResponse) GetPlan ¶
func (x *GetPlanByCodeResponse) GetPlan() *PricingPlan
func (*GetPlanByCodeResponse) ProtoMessage ¶
func (*GetPlanByCodeResponse) ProtoMessage()
func (*GetPlanByCodeResponse) ProtoReflect ¶
func (x *GetPlanByCodeResponse) ProtoReflect() protoreflect.Message
func (*GetPlanByCodeResponse) Reset ¶
func (x *GetPlanByCodeResponse) Reset()
func (*GetPlanByCodeResponse) String ¶
func (x *GetPlanByCodeResponse) String() string
type GetSetupIntentStatusRequest ¶
type GetSetupIntentStatusRequest struct {
SetupIntentId string `protobuf:"bytes,1,opt,name=setup_intent_id,json=setupIntentId,proto3" json:"setup_intent_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetSetupIntentStatusRequest) Descriptor
deprecated
func (*GetSetupIntentStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSetupIntentStatusRequest.ProtoReflect.Descriptor instead.
func (*GetSetupIntentStatusRequest) GetSetupIntentId ¶
func (x *GetSetupIntentStatusRequest) GetSetupIntentId() string
func (*GetSetupIntentStatusRequest) ProtoMessage ¶
func (*GetSetupIntentStatusRequest) ProtoMessage()
func (*GetSetupIntentStatusRequest) ProtoReflect ¶
func (x *GetSetupIntentStatusRequest) ProtoReflect() protoreflect.Message
func (*GetSetupIntentStatusRequest) Reset ¶
func (x *GetSetupIntentStatusRequest) Reset()
func (*GetSetupIntentStatusRequest) String ¶
func (x *GetSetupIntentStatusRequest) String() string
type GetSetupIntentStatusResponse ¶
type GetSetupIntentStatusResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
PaymentMethodId *string `protobuf:"bytes,2,opt,name=payment_method_id,json=paymentMethodId,proto3,oneof" json:"payment_method_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetSetupIntentStatusResponse) Descriptor
deprecated
func (*GetSetupIntentStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSetupIntentStatusResponse.ProtoReflect.Descriptor instead.
func (*GetSetupIntentStatusResponse) GetPaymentMethodId ¶
func (x *GetSetupIntentStatusResponse) GetPaymentMethodId() string
func (*GetSetupIntentStatusResponse) GetStatus ¶
func (x *GetSetupIntentStatusResponse) GetStatus() string
func (*GetSetupIntentStatusResponse) ProtoMessage ¶
func (*GetSetupIntentStatusResponse) ProtoMessage()
func (*GetSetupIntentStatusResponse) ProtoReflect ¶
func (x *GetSetupIntentStatusResponse) ProtoReflect() protoreflect.Message
func (*GetSetupIntentStatusResponse) Reset ¶
func (x *GetSetupIntentStatusResponse) Reset()
func (*GetSetupIntentStatusResponse) String ¶
func (x *GetSetupIntentStatusResponse) String() string
type ListPricingPlansRequest ¶
type ListPricingPlansRequest struct {
Cursor *string `protobuf:"bytes,1,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
Query *string `protobuf:"bytes,3,opt,name=query,proto3,oneof" json:"query,omitempty"`
// contains filtered or unexported fields
}
func (*ListPricingPlansRequest) Descriptor
deprecated
func (*ListPricingPlansRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPricingPlansRequest.ProtoReflect.Descriptor instead.
func (*ListPricingPlansRequest) GetCursor ¶
func (x *ListPricingPlansRequest) GetCursor() string
func (*ListPricingPlansRequest) GetLimit ¶
func (x *ListPricingPlansRequest) GetLimit() int32
func (*ListPricingPlansRequest) GetQuery ¶
func (x *ListPricingPlansRequest) GetQuery() string
func (*ListPricingPlansRequest) ProtoMessage ¶
func (*ListPricingPlansRequest) ProtoMessage()
func (*ListPricingPlansRequest) ProtoReflect ¶
func (x *ListPricingPlansRequest) ProtoReflect() protoreflect.Message
func (*ListPricingPlansRequest) Reset ¶
func (x *ListPricingPlansRequest) Reset()
func (*ListPricingPlansRequest) String ¶
func (x *ListPricingPlansRequest) String() string
type ListPricingPlansResponse ¶
type ListPricingPlansResponse struct {
Plans []*PricingPlan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`
PageInfo *PageInfo `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
// contains filtered or unexported fields
}
func (*ListPricingPlansResponse) Descriptor
deprecated
func (*ListPricingPlansResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPricingPlansResponse.ProtoReflect.Descriptor instead.
func (*ListPricingPlansResponse) GetPageInfo ¶
func (x *ListPricingPlansResponse) GetPageInfo() *PageInfo
func (*ListPricingPlansResponse) GetPlans ¶
func (x *ListPricingPlansResponse) GetPlans() []*PricingPlan
func (*ListPricingPlansResponse) ProtoMessage ¶
func (*ListPricingPlansResponse) ProtoMessage()
func (*ListPricingPlansResponse) ProtoReflect ¶
func (x *ListPricingPlansResponse) ProtoReflect() protoreflect.Message
func (*ListPricingPlansResponse) Reset ¶
func (x *ListPricingPlansResponse) Reset()
func (*ListPricingPlansResponse) String ¶
func (x *ListPricingPlansResponse) String() string
type PageInfo ¶
type PageInfo struct {
NextCursor *string `protobuf:"bytes,1,opt,name=next_cursor,json=nextCursor,proto3,oneof" json:"next_cursor,omitempty"`
PrevCursor *string `protobuf:"bytes,2,opt,name=prev_cursor,json=prevCursor,proto3,oneof" json:"prev_cursor,omitempty"`
HasNextPage bool `protobuf:"varint,3,opt,name=has_next_page,json=hasNextPage,proto3" json:"has_next_page,omitempty"`
HasPrevPage bool `protobuf:"varint,4,opt,name=has_prev_page,json=hasPrevPage,proto3" json:"has_prev_page,omitempty"`
// contains filtered or unexported fields
}
func (*PageInfo) Descriptor
deprecated
func (*PageInfo) GetHasNextPage ¶
func (*PageInfo) GetHasPrevPage ¶
func (*PageInfo) GetNextCursor ¶
func (*PageInfo) GetPrevCursor ¶
func (*PageInfo) ProtoMessage ¶
func (*PageInfo) ProtoMessage()
func (*PageInfo) ProtoReflect ¶
func (x *PageInfo) ProtoReflect() protoreflect.Message
type PlanChangePreview ¶
type PlanChangePreview struct {
NetAmount int64 `protobuf:"varint,1,opt,name=net_amount,json=netAmount,proto3" json:"net_amount,omitempty"`
FormattedNetAmount string `protobuf:"bytes,2,opt,name=formatted_net_amount,json=formattedNetAmount,proto3" json:"formatted_net_amount,omitempty"`
MonthlyBillAmount int64 `protobuf:"varint,3,opt,name=monthly_bill_amount,json=monthlyBillAmount,proto3" json:"monthly_bill_amount,omitempty"`
FormattedMonthlyBillAmount string `` /* 143-byte string literal not displayed */
LineItems []*PlanChangePreviewLineItem `protobuf:"bytes,5,rep,name=line_items,json=lineItems,proto3" json:"line_items,omitempty"`
// True when the preview is a local estimate rather than a Stripe billing intent calculation.
IsEstimate bool `protobuf:"varint,6,opt,name=is_estimate,json=isEstimate,proto3" json:"is_estimate,omitempty"`
// contains filtered or unexported fields
}
func (*PlanChangePreview) Descriptor
deprecated
func (*PlanChangePreview) Descriptor() ([]byte, []int)
Deprecated: Use PlanChangePreview.ProtoReflect.Descriptor instead.
func (*PlanChangePreview) GetFormattedMonthlyBillAmount ¶
func (x *PlanChangePreview) GetFormattedMonthlyBillAmount() string
func (*PlanChangePreview) GetFormattedNetAmount ¶
func (x *PlanChangePreview) GetFormattedNetAmount() string
func (*PlanChangePreview) GetIsEstimate ¶
func (x *PlanChangePreview) GetIsEstimate() bool
func (*PlanChangePreview) GetLineItems ¶
func (x *PlanChangePreview) GetLineItems() []*PlanChangePreviewLineItem
func (*PlanChangePreview) GetMonthlyBillAmount ¶
func (x *PlanChangePreview) GetMonthlyBillAmount() int64
func (*PlanChangePreview) GetNetAmount ¶
func (x *PlanChangePreview) GetNetAmount() int64
func (*PlanChangePreview) ProtoMessage ¶
func (*PlanChangePreview) ProtoMessage()
func (*PlanChangePreview) ProtoReflect ¶
func (x *PlanChangePreview) ProtoReflect() protoreflect.Message
func (*PlanChangePreview) Reset ¶
func (x *PlanChangePreview) Reset()
func (*PlanChangePreview) String ¶
func (x *PlanChangePreview) String() string
type PlanChangePreviewLineItem ¶
type PlanChangePreviewLineItem struct {
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
// contains filtered or unexported fields
}
func (*PlanChangePreviewLineItem) Descriptor
deprecated
func (*PlanChangePreviewLineItem) Descriptor() ([]byte, []int)
Deprecated: Use PlanChangePreviewLineItem.ProtoReflect.Descriptor instead.
func (*PlanChangePreviewLineItem) GetAmount ¶
func (x *PlanChangePreviewLineItem) GetAmount() int64
func (*PlanChangePreviewLineItem) GetDescription ¶
func (x *PlanChangePreviewLineItem) GetDescription() string
func (*PlanChangePreviewLineItem) ProtoMessage ¶
func (*PlanChangePreviewLineItem) ProtoMessage()
func (*PlanChangePreviewLineItem) ProtoReflect ¶
func (x *PlanChangePreviewLineItem) ProtoReflect() protoreflect.Message
func (*PlanChangePreviewLineItem) Reset ¶
func (x *PlanChangePreviewLineItem) Reset()
func (*PlanChangePreviewLineItem) String ¶
func (x *PlanChangePreviewLineItem) String() string
type PlanLimit ¶
type PlanLimit struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *int32 `protobuf:"varint,2,opt,name=value,proto3,oneof" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*PlanLimit) Descriptor
deprecated
func (*PlanLimit) ProtoMessage ¶
func (*PlanLimit) ProtoMessage()
func (*PlanLimit) ProtoReflect ¶
func (x *PlanLimit) ProtoReflect() protoreflect.Message
type PreviewPlanChangeRequest ¶
type PreviewPlanChangeRequest struct {
PlanId string `protobuf:"bytes,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
// contains filtered or unexported fields
}
func (*PreviewPlanChangeRequest) Descriptor
deprecated
func (*PreviewPlanChangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreviewPlanChangeRequest.ProtoReflect.Descriptor instead.
func (*PreviewPlanChangeRequest) GetPlanId ¶
func (x *PreviewPlanChangeRequest) GetPlanId() string
func (*PreviewPlanChangeRequest) ProtoMessage ¶
func (*PreviewPlanChangeRequest) ProtoMessage()
func (*PreviewPlanChangeRequest) ProtoReflect ¶
func (x *PreviewPlanChangeRequest) ProtoReflect() protoreflect.Message
func (*PreviewPlanChangeRequest) Reset ¶
func (x *PreviewPlanChangeRequest) Reset()
func (*PreviewPlanChangeRequest) String ¶
func (x *PreviewPlanChangeRequest) String() string
type PreviewPlanChangeResponse ¶
type PreviewPlanChangeResponse struct {
Preview *PlanChangePreview `protobuf:"bytes,1,opt,name=preview,proto3" json:"preview,omitempty"`
// contains filtered or unexported fields
}
func (*PreviewPlanChangeResponse) Descriptor
deprecated
func (*PreviewPlanChangeResponse) Descriptor() ([]byte, []int)
Deprecated: Use PreviewPlanChangeResponse.ProtoReflect.Descriptor instead.
func (*PreviewPlanChangeResponse) GetPreview ¶
func (x *PreviewPlanChangeResponse) GetPreview() *PlanChangePreview
func (*PreviewPlanChangeResponse) ProtoMessage ¶
func (*PreviewPlanChangeResponse) ProtoMessage()
func (*PreviewPlanChangeResponse) ProtoReflect ¶
func (x *PreviewPlanChangeResponse) ProtoReflect() protoreflect.Message
func (*PreviewPlanChangeResponse) Reset ¶
func (x *PreviewPlanChangeResponse) Reset()
func (*PreviewPlanChangeResponse) String ¶
func (x *PreviewPlanChangeResponse) String() string
type PricingPlan ¶
type PricingPlan struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
PlanTypeCode string `protobuf:"bytes,3,opt,name=plan_type_code,json=planTypeCode,proto3" json:"plan_type_code,omitempty"`
PricePerSeat float64 `protobuf:"fixed64,4,opt,name=price_per_seat,json=pricePerSeat,proto3" json:"price_per_seat,omitempty"`
PricePerMonth *float64 `protobuf:"fixed64,5,opt,name=price_per_month,json=pricePerMonth,proto3,oneof" json:"price_per_month,omitempty"`
SeatMinimum *int32 `protobuf:"varint,6,opt,name=seat_minimum,json=seatMinimum,proto3,oneof" json:"seat_minimum,omitempty"`
Limits []*PlanLimit `protobuf:"bytes,7,rep,name=limits,proto3" json:"limits,omitempty"`
DisplayFeatures []string `protobuf:"bytes,8,rep,name=display_features,json=displayFeatures,proto3" json:"display_features,omitempty"`
DisplayOrder int32 `protobuf:"varint,9,opt,name=display_order,json=displayOrder,proto3" json:"display_order,omitempty"`
IsHighlighted bool `protobuf:"varint,10,opt,name=is_highlighted,json=isHighlighted,proto3" json:"is_highlighted,omitempty"`
ButtonText string `protobuf:"bytes,11,opt,name=button_text,json=buttonText,proto3" json:"button_text,omitempty"`
IncludesPreviousPlan *string `` /* 130-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*PricingPlan) Descriptor
deprecated
func (*PricingPlan) Descriptor() ([]byte, []int)
Deprecated: Use PricingPlan.ProtoReflect.Descriptor instead.
func (*PricingPlan) GetButtonText ¶
func (x *PricingPlan) GetButtonText() string
func (*PricingPlan) GetDisplayFeatures ¶
func (x *PricingPlan) GetDisplayFeatures() []string
func (*PricingPlan) GetDisplayOrder ¶
func (x *PricingPlan) GetDisplayOrder() int32
func (*PricingPlan) GetId ¶
func (x *PricingPlan) GetId() string
func (*PricingPlan) GetIncludesPreviousPlan ¶
func (x *PricingPlan) GetIncludesPreviousPlan() string
func (*PricingPlan) GetIsHighlighted ¶
func (x *PricingPlan) GetIsHighlighted() bool
func (*PricingPlan) GetLimits ¶
func (x *PricingPlan) GetLimits() []*PlanLimit
func (*PricingPlan) GetName ¶
func (x *PricingPlan) GetName() string
func (*PricingPlan) GetPlanTypeCode ¶
func (x *PricingPlan) GetPlanTypeCode() string
func (*PricingPlan) GetPricePerMonth ¶
func (x *PricingPlan) GetPricePerMonth() float64
func (*PricingPlan) GetPricePerSeat ¶
func (x *PricingPlan) GetPricePerSeat() float64
func (*PricingPlan) GetSeatMinimum ¶
func (x *PricingPlan) GetSeatMinimum() int32
func (*PricingPlan) ProtoMessage ¶
func (*PricingPlan) ProtoMessage()
func (*PricingPlan) ProtoReflect ¶
func (x *PricingPlan) ProtoReflect() protoreflect.Message
func (*PricingPlan) Reset ¶
func (x *PricingPlan) Reset()
func (*PricingPlan) String ¶
func (x *PricingPlan) String() string
type ProcessWebhookEventRequest ¶
type ProcessWebhookEventRequest struct {
RawPayload []byte `protobuf:"bytes,1,opt,name=raw_payload,json=rawPayload,proto3" json:"raw_payload,omitempty"`
StripeSignature string `protobuf:"bytes,2,opt,name=stripe_signature,json=stripeSignature,proto3" json:"stripe_signature,omitempty"`
// contains filtered or unexported fields
}
func (*ProcessWebhookEventRequest) Descriptor
deprecated
func (*ProcessWebhookEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProcessWebhookEventRequest.ProtoReflect.Descriptor instead.
func (*ProcessWebhookEventRequest) GetRawPayload ¶
func (x *ProcessWebhookEventRequest) GetRawPayload() []byte
func (*ProcessWebhookEventRequest) GetStripeSignature ¶
func (x *ProcessWebhookEventRequest) GetStripeSignature() string
func (*ProcessWebhookEventRequest) ProtoMessage ¶
func (*ProcessWebhookEventRequest) ProtoMessage()
func (*ProcessWebhookEventRequest) ProtoReflect ¶
func (x *ProcessWebhookEventRequest) ProtoReflect() protoreflect.Message
func (*ProcessWebhookEventRequest) Reset ¶
func (x *ProcessWebhookEventRequest) Reset()
func (*ProcessWebhookEventRequest) String ¶
func (x *ProcessWebhookEventRequest) String() string
type ProcessWebhookEventResponse ¶
type ProcessWebhookEventResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
IsDuplicate bool `protobuf:"varint,2,opt,name=is_duplicate,json=isDuplicate,proto3" json:"is_duplicate,omitempty"`
// contains filtered or unexported fields
}
func (*ProcessWebhookEventResponse) Descriptor
deprecated
func (*ProcessWebhookEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProcessWebhookEventResponse.ProtoReflect.Descriptor instead.
func (*ProcessWebhookEventResponse) GetIsDuplicate ¶
func (x *ProcessWebhookEventResponse) GetIsDuplicate() bool
func (*ProcessWebhookEventResponse) GetSuccess ¶
func (x *ProcessWebhookEventResponse) GetSuccess() bool
func (*ProcessWebhookEventResponse) ProtoMessage ¶
func (*ProcessWebhookEventResponse) ProtoMessage()
func (*ProcessWebhookEventResponse) ProtoReflect ¶
func (x *ProcessWebhookEventResponse) ProtoReflect() protoreflect.Message
func (*ProcessWebhookEventResponse) Reset ¶
func (x *ProcessWebhookEventResponse) Reset()
func (*ProcessWebhookEventResponse) String ¶
func (x *ProcessWebhookEventResponse) String() string
type RequestEnterpriseUpgradeRequest ¶
type RequestEnterpriseUpgradeRequest struct {
// contains filtered or unexported fields
}
Intentionally empty.
func (*RequestEnterpriseUpgradeRequest) Descriptor
deprecated
func (*RequestEnterpriseUpgradeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RequestEnterpriseUpgradeRequest.ProtoReflect.Descriptor instead.
func (*RequestEnterpriseUpgradeRequest) ProtoMessage ¶
func (*RequestEnterpriseUpgradeRequest) ProtoMessage()
func (*RequestEnterpriseUpgradeRequest) ProtoReflect ¶
func (x *RequestEnterpriseUpgradeRequest) ProtoReflect() protoreflect.Message
func (*RequestEnterpriseUpgradeRequest) Reset ¶
func (x *RequestEnterpriseUpgradeRequest) Reset()
func (*RequestEnterpriseUpgradeRequest) String ¶
func (x *RequestEnterpriseUpgradeRequest) String() string
type RequestEnterpriseUpgradeResponse ¶
type RequestEnterpriseUpgradeResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
func (*RequestEnterpriseUpgradeResponse) Descriptor
deprecated
func (*RequestEnterpriseUpgradeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RequestEnterpriseUpgradeResponse.ProtoReflect.Descriptor instead.
func (*RequestEnterpriseUpgradeResponse) GetSuccess ¶
func (x *RequestEnterpriseUpgradeResponse) GetSuccess() bool
func (*RequestEnterpriseUpgradeResponse) ProtoMessage ¶
func (*RequestEnterpriseUpgradeResponse) ProtoMessage()
func (*RequestEnterpriseUpgradeResponse) ProtoReflect ¶
func (x *RequestEnterpriseUpgradeResponse) ProtoReflect() protoreflect.Message
func (*RequestEnterpriseUpgradeResponse) Reset ¶
func (x *RequestEnterpriseUpgradeResponse) Reset()
func (*RequestEnterpriseUpgradeResponse) String ¶
func (x *RequestEnterpriseUpgradeResponse) String() string
type SetupBillingProfileRequest ¶
type SetupBillingProfileRequest struct {
AccountId *string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3,oneof" json:"account_id,omitempty"`
// contains filtered or unexported fields
}
func (*SetupBillingProfileRequest) Descriptor
deprecated
func (*SetupBillingProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetupBillingProfileRequest.ProtoReflect.Descriptor instead.
func (*SetupBillingProfileRequest) GetAccountId ¶
func (x *SetupBillingProfileRequest) GetAccountId() string
func (*SetupBillingProfileRequest) ProtoMessage ¶
func (*SetupBillingProfileRequest) ProtoMessage()
func (*SetupBillingProfileRequest) ProtoReflect ¶
func (x *SetupBillingProfileRequest) ProtoReflect() protoreflect.Message
func (*SetupBillingProfileRequest) Reset ¶
func (x *SetupBillingProfileRequest) Reset()
func (*SetupBillingProfileRequest) String ¶
func (x *SetupBillingProfileRequest) String() string
type SetupBillingProfileResponse ¶
type SetupBillingProfileResponse struct {
BillingProfileId string `protobuf:"bytes,1,opt,name=billing_profile_id,json=billingProfileId,proto3" json:"billing_profile_id,omitempty"`
BillingCadenceId string `protobuf:"bytes,2,opt,name=billing_cadence_id,json=billingCadenceId,proto3" json:"billing_cadence_id,omitempty"`
// contains filtered or unexported fields
}
func (*SetupBillingProfileResponse) Descriptor
deprecated
func (*SetupBillingProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetupBillingProfileResponse.ProtoReflect.Descriptor instead.
func (*SetupBillingProfileResponse) GetBillingCadenceId ¶
func (x *SetupBillingProfileResponse) GetBillingCadenceId() string
func (*SetupBillingProfileResponse) GetBillingProfileId ¶
func (x *SetupBillingProfileResponse) GetBillingProfileId() string
func (*SetupBillingProfileResponse) ProtoMessage ¶
func (*SetupBillingProfileResponse) ProtoMessage()
func (*SetupBillingProfileResponse) ProtoReflect ¶
func (x *SetupBillingProfileResponse) ProtoReflect() protoreflect.Message
func (*SetupBillingProfileResponse) Reset ¶
func (x *SetupBillingProfileResponse) Reset()
func (*SetupBillingProfileResponse) String ¶
func (x *SetupBillingProfileResponse) String() string
type SubscribeToPricingPlanRequest ¶
type SubscribeToPricingPlanRequest struct {
StripeCustomerId string `protobuf:"bytes,1,opt,name=stripe_customer_id,json=stripeCustomerId,proto3" json:"stripe_customer_id,omitempty"`
PlanCode string `protobuf:"bytes,2,opt,name=plan_code,json=planCode,proto3" json:"plan_code,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeToPricingPlanRequest) Descriptor
deprecated
func (*SubscribeToPricingPlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeToPricingPlanRequest.ProtoReflect.Descriptor instead.
func (*SubscribeToPricingPlanRequest) GetPlanCode ¶
func (x *SubscribeToPricingPlanRequest) GetPlanCode() string
func (*SubscribeToPricingPlanRequest) GetStripeCustomerId ¶
func (x *SubscribeToPricingPlanRequest) GetStripeCustomerId() string
func (*SubscribeToPricingPlanRequest) ProtoMessage ¶
func (*SubscribeToPricingPlanRequest) ProtoMessage()
func (*SubscribeToPricingPlanRequest) ProtoReflect ¶
func (x *SubscribeToPricingPlanRequest) ProtoReflect() protoreflect.Message
func (*SubscribeToPricingPlanRequest) Reset ¶
func (x *SubscribeToPricingPlanRequest) Reset()
func (*SubscribeToPricingPlanRequest) String ¶
func (x *SubscribeToPricingPlanRequest) String() string
type SubscribeToPricingPlanResponse ¶
type SubscribeToPricingPlanResponse struct {
// contains filtered or unexported fields
}
Intentionally empty; success is indicated by a nil error.
func (*SubscribeToPricingPlanResponse) Descriptor
deprecated
func (*SubscribeToPricingPlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeToPricingPlanResponse.ProtoReflect.Descriptor instead.
func (*SubscribeToPricingPlanResponse) ProtoMessage ¶
func (*SubscribeToPricingPlanResponse) ProtoMessage()
func (*SubscribeToPricingPlanResponse) ProtoReflect ¶
func (x *SubscribeToPricingPlanResponse) ProtoReflect() protoreflect.Message
func (*SubscribeToPricingPlanResponse) Reset ¶
func (x *SubscribeToPricingPlanResponse) Reset()
func (*SubscribeToPricingPlanResponse) String ¶
func (x *SubscribeToPricingPlanResponse) String() string
type SubscriptionInfo ¶
type SubscriptionInfo struct {
ServicingStatus string `protobuf:"bytes,1,opt,name=servicing_status,json=servicingStatus,proto3" json:"servicing_status,omitempty"`
CollectionStatus string `protobuf:"bytes,2,opt,name=collection_status,json=collectionStatus,proto3" json:"collection_status,omitempty"`
CurrentPeriodEnd *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=current_period_end,json=currentPeriodEnd,proto3,oneof" json:"current_period_end,omitempty"`
// contains filtered or unexported fields
}
func (*SubscriptionInfo) Descriptor
deprecated
func (*SubscriptionInfo) Descriptor() ([]byte, []int)
Deprecated: Use SubscriptionInfo.ProtoReflect.Descriptor instead.
func (*SubscriptionInfo) GetCollectionStatus ¶
func (x *SubscriptionInfo) GetCollectionStatus() string
func (*SubscriptionInfo) GetCurrentPeriodEnd ¶
func (x *SubscriptionInfo) GetCurrentPeriodEnd() *timestamppb.Timestamp
func (*SubscriptionInfo) GetServicingStatus ¶
func (x *SubscriptionInfo) GetServicingStatus() string
func (*SubscriptionInfo) ProtoMessage ¶
func (*SubscriptionInfo) ProtoMessage()
func (*SubscriptionInfo) ProtoReflect ¶
func (x *SubscriptionInfo) ProtoReflect() protoreflect.Message
func (*SubscriptionInfo) Reset ¶
func (x *SubscriptionInfo) Reset()
func (*SubscriptionInfo) String ¶
func (x *SubscriptionInfo) String() string
type SwitchPlanRequest ¶
type SwitchPlanRequest struct {
PlanId string `protobuf:"bytes,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
// contains filtered or unexported fields
}
func (*SwitchPlanRequest) Descriptor
deprecated
func (*SwitchPlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use SwitchPlanRequest.ProtoReflect.Descriptor instead.
func (*SwitchPlanRequest) GetPlanId ¶
func (x *SwitchPlanRequest) GetPlanId() string
func (*SwitchPlanRequest) ProtoMessage ¶
func (*SwitchPlanRequest) ProtoMessage()
func (*SwitchPlanRequest) ProtoReflect ¶
func (x *SwitchPlanRequest) ProtoReflect() protoreflect.Message
func (*SwitchPlanRequest) Reset ¶
func (x *SwitchPlanRequest) Reset()
func (*SwitchPlanRequest) String ¶
func (x *SwitchPlanRequest) String() string
type SwitchPlanResponse ¶
type SwitchPlanResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
IntentId *string `protobuf:"bytes,2,opt,name=intent_id,json=intentId,proto3,oneof" json:"intent_id,omitempty"`
// contains filtered or unexported fields
}
func (*SwitchPlanResponse) Descriptor
deprecated
func (*SwitchPlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use SwitchPlanResponse.ProtoReflect.Descriptor instead.
func (*SwitchPlanResponse) GetIntentId ¶
func (x *SwitchPlanResponse) GetIntentId() string
func (*SwitchPlanResponse) GetSuccess ¶
func (x *SwitchPlanResponse) GetSuccess() bool
func (*SwitchPlanResponse) ProtoMessage ¶
func (*SwitchPlanResponse) ProtoMessage()
func (*SwitchPlanResponse) ProtoReflect ¶
func (x *SwitchPlanResponse) ProtoReflect() protoreflect.Message
func (*SwitchPlanResponse) Reset ¶
func (x *SwitchPlanResponse) Reset()
func (*SwitchPlanResponse) String ¶
func (x *SwitchPlanResponse) String() string
type TokenRate ¶
type TokenRate struct {
// Gateway model name the rate applies to (e.g. "anthropic/claude-sonnet-4.6").
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
// Token type the rate applies to: input, output, cached_input, or cached_output.
TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
// Price in cents per token, markup included.
UnitAmountCents float64 `protobuf:"fixed64,3,opt,name=unit_amount_cents,json=unitAmountCents,proto3" json:"unit_amount_cents,omitempty"`
// contains filtered or unexported fields
}
A marked-up per-token price from the account's plan rate card, used to price a run's usage against the cap with the same rates Stripe bills.
func (*TokenRate) Descriptor
deprecated
func (*TokenRate) GetTokenType ¶
func (*TokenRate) GetUnitAmountCents ¶
func (*TokenRate) ProtoMessage ¶
func (*TokenRate) ProtoMessage()
func (*TokenRate) ProtoReflect ¶
func (x *TokenRate) ProtoReflect() protoreflect.Message
type UnimplementedBillingServiceServer ¶
type UnimplementedBillingServiceServer struct{}
UnimplementedBillingServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedBillingServiceServer) CreateBillingPortalSession ¶
func (UnimplementedBillingServiceServer) CreateBillingPortalSession(context.Context, *CreateBillingPortalSessionRequest) (*CreateBillingPortalSessionResponse, error)
func (UnimplementedBillingServiceServer) CreateCustomer ¶
func (UnimplementedBillingServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error)
func (UnimplementedBillingServiceServer) CreateSetupIntent ¶
func (UnimplementedBillingServiceServer) CreateSetupIntent(context.Context, *CreateSetupIntentRequest) (*CreateSetupIntentResponse, error)
func (UnimplementedBillingServiceServer) EnsureBillingCustomer ¶
func (UnimplementedBillingServiceServer) EnsureBillingCustomer(context.Context, *EnsureBillingCustomerRequest) (*EnsureBillingCustomerResponse, error)
func (UnimplementedBillingServiceServer) GetAccountUsage ¶
func (UnimplementedBillingServiceServer) GetAccountUsage(context.Context, *GetAccountUsageRequest) (*GetAccountUsageResponse, error)
func (UnimplementedBillingServiceServer) GetAgentSpend ¶
func (UnimplementedBillingServiceServer) GetAgentSpend(context.Context, *GetAgentSpendRequest) (*GetAgentSpendResponse, error)
func (UnimplementedBillingServiceServer) GetPlanByCode ¶
func (UnimplementedBillingServiceServer) GetPlanByCode(context.Context, *GetPlanByCodeRequest) (*GetPlanByCodeResponse, error)
func (UnimplementedBillingServiceServer) GetSetupIntentStatus ¶
func (UnimplementedBillingServiceServer) GetSetupIntentStatus(context.Context, *GetSetupIntentStatusRequest) (*GetSetupIntentStatusResponse, error)
func (UnimplementedBillingServiceServer) ListPricingPlans ¶
func (UnimplementedBillingServiceServer) ListPricingPlans(context.Context, *ListPricingPlansRequest) (*ListPricingPlansResponse, error)
func (UnimplementedBillingServiceServer) PreviewPlanChange ¶
func (UnimplementedBillingServiceServer) PreviewPlanChange(context.Context, *PreviewPlanChangeRequest) (*PreviewPlanChangeResponse, error)
func (UnimplementedBillingServiceServer) ProcessWebhookEvent ¶
func (UnimplementedBillingServiceServer) ProcessWebhookEvent(context.Context, *ProcessWebhookEventRequest) (*ProcessWebhookEventResponse, error)
func (UnimplementedBillingServiceServer) RequestEnterpriseUpgrade ¶
func (UnimplementedBillingServiceServer) RequestEnterpriseUpgrade(context.Context, *RequestEnterpriseUpgradeRequest) (*RequestEnterpriseUpgradeResponse, error)
func (UnimplementedBillingServiceServer) SetupBillingProfile ¶
func (UnimplementedBillingServiceServer) SetupBillingProfile(context.Context, *SetupBillingProfileRequest) (*SetupBillingProfileResponse, error)
func (UnimplementedBillingServiceServer) SubscribeToPricingPlan ¶
func (UnimplementedBillingServiceServer) SubscribeToPricingPlan(context.Context, *SubscribeToPricingPlanRequest) (*SubscribeToPricingPlanResponse, error)
func (UnimplementedBillingServiceServer) SwitchPlan ¶
func (UnimplementedBillingServiceServer) SwitchPlan(context.Context, *SwitchPlanRequest) (*SwitchPlanResponse, error)
func (UnimplementedBillingServiceServer) ValidateStripePricingPlan ¶
func (UnimplementedBillingServiceServer) ValidateStripePricingPlan(context.Context, *ValidateStripePricingPlanRequest) (*ValidateStripePricingPlanResponse, error)
type UnsafeBillingServiceServer ¶
type UnsafeBillingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBillingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BillingServiceServer will result in compilation errors.
type UsageItem ¶
type UsageItem struct {
Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
Limit *int32 `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*UsageItem) Descriptor
deprecated
func (*UsageItem) GetCurrent ¶
func (*UsageItem) ProtoMessage ¶
func (*UsageItem) ProtoMessage()
func (*UsageItem) ProtoReflect ¶
func (x *UsageItem) ProtoReflect() protoreflect.Message
type ValidateStripePricingPlanRequest ¶
type ValidateStripePricingPlanRequest struct {
PlanCode string `protobuf:"bytes,1,opt,name=plan_code,json=planCode,proto3" json:"plan_code,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateStripePricingPlanRequest) Descriptor
deprecated
func (*ValidateStripePricingPlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateStripePricingPlanRequest.ProtoReflect.Descriptor instead.
func (*ValidateStripePricingPlanRequest) GetPlanCode ¶
func (x *ValidateStripePricingPlanRequest) GetPlanCode() string
func (*ValidateStripePricingPlanRequest) ProtoMessage ¶
func (*ValidateStripePricingPlanRequest) ProtoMessage()
func (*ValidateStripePricingPlanRequest) ProtoReflect ¶
func (x *ValidateStripePricingPlanRequest) ProtoReflect() protoreflect.Message
func (*ValidateStripePricingPlanRequest) Reset ¶
func (x *ValidateStripePricingPlanRequest) Reset()
func (*ValidateStripePricingPlanRequest) String ¶
func (x *ValidateStripePricingPlanRequest) String() string
type ValidateStripePricingPlanResponse ¶
type ValidateStripePricingPlanResponse struct {
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateStripePricingPlanResponse) Descriptor
deprecated
func (*ValidateStripePricingPlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateStripePricingPlanResponse.ProtoReflect.Descriptor instead.
func (*ValidateStripePricingPlanResponse) GetValid ¶
func (x *ValidateStripePricingPlanResponse) GetValid() bool
func (*ValidateStripePricingPlanResponse) ProtoMessage ¶
func (*ValidateStripePricingPlanResponse) ProtoMessage()
func (*ValidateStripePricingPlanResponse) ProtoReflect ¶
func (x *ValidateStripePricingPlanResponse) ProtoReflect() protoreflect.Message
func (*ValidateStripePricingPlanResponse) Reset ¶
func (x *ValidateStripePricingPlanResponse) Reset()
func (*ValidateStripePricingPlanResponse) String ¶
func (x *ValidateStripePricingPlanResponse) String() string