Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package billing/v1 contains the API of Billing services.
Index ¶
- Constants
- Variables
- func ForEachInvoice(ctx context.Context, ...) error
- func ForEachPaymentMethod(ctx context.Context, ...) error
- func ForEachPaymentProvider(ctx context.Context, ...) error
- func InvoiceURL(organizationID, invoiceID string) string
- func RegisterBillingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBillingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BillingServiceClient) error
- func RegisterBillingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBillingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BillingServiceServer) error
- func RegisterBillingServiceServer(s *grpc.Server, srv BillingServiceServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetAddress() []string
- func (m *Address) GetCity() string
- func (m *Address) GetCountryCode() string
- func (m *Address) GetState() string
- func (m *Address) GetZipcode() string
- func (m *Address) Marshal() (dAtA []byte, err error)
- func (m *Address) MarshalTo(dAtA []byte) (int, error)
- func (m *Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) Size() (n int)
- func (m *Address) String() string
- func (m *Address) Unmarshal(dAtA []byte) error
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type AvailableCredits
- func (*AvailableCredits) Descriptor() ([]byte, []int)
- func (m *AvailableCredits) GetCredits() []*AvailableCredits_CreditCurrencyAmount
- func (m *AvailableCredits) Marshal() (dAtA []byte, err error)
- func (m *AvailableCredits) MarshalTo(dAtA []byte) (int, error)
- func (m *AvailableCredits) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AvailableCredits) ProtoMessage()
- func (m *AvailableCredits) Reset()
- func (m *AvailableCredits) Size() (n int)
- func (m *AvailableCredits) String() string
- func (m *AvailableCredits) Unmarshal(dAtA []byte) error
- func (m *AvailableCredits) XXX_DiscardUnknown()
- func (m *AvailableCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AvailableCredits) XXX_Merge(src proto.Message)
- func (m *AvailableCredits) XXX_Size() int
- func (m *AvailableCredits) XXX_Unmarshal(b []byte) error
- type AvailableCredits_CreditCurrencyAmount
- func (*AvailableCredits_CreditCurrencyAmount) Descriptor() ([]byte, []int)
- func (m *AvailableCredits_CreditCurrencyAmount) GetAmount() float32
- func (m *AvailableCredits_CreditCurrencyAmount) GetCurrencyId() string
- func (m *AvailableCredits_CreditCurrencyAmount) Marshal() (dAtA []byte, err error)
- func (m *AvailableCredits_CreditCurrencyAmount) MarshalTo(dAtA []byte) (int, error)
- func (m *AvailableCredits_CreditCurrencyAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AvailableCredits_CreditCurrencyAmount) ProtoMessage()
- func (m *AvailableCredits_CreditCurrencyAmount) Reset()
- func (m *AvailableCredits_CreditCurrencyAmount) Size() (n int)
- func (m *AvailableCredits_CreditCurrencyAmount) String() string
- func (m *AvailableCredits_CreditCurrencyAmount) Unmarshal(dAtA []byte) error
- func (m *AvailableCredits_CreditCurrencyAmount) XXX_DiscardUnknown()
- func (m *AvailableCredits_CreditCurrencyAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AvailableCredits_CreditCurrencyAmount) XXX_Merge(src proto.Message)
- func (m *AvailableCredits_CreditCurrencyAmount) XXX_Size() int
- func (m *AvailableCredits_CreditCurrencyAmount) XXX_Unmarshal(b []byte) error
- type BillingConfig
- func (*BillingConfig) Descriptor() ([]byte, []int)
- func (m *BillingConfig) GetAddress() *Address
- func (m *BillingConfig) GetCompanyLegalName() string
- func (m *BillingConfig) GetEmailAddresses() []string
- func (m *BillingConfig) GetUsTaxNumber() string
- func (m *BillingConfig) GetVatNumber() string
- func (m *BillingConfig) Marshal() (dAtA []byte, err error)
- func (m *BillingConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *BillingConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BillingConfig) ProtoMessage()
- func (m *BillingConfig) Reset()
- func (m *BillingConfig) Size() (n int)
- func (m *BillingConfig) String() string
- func (m *BillingConfig) Unmarshal(dAtA []byte) error
- func (m *BillingConfig) XXX_DiscardUnknown()
- func (m *BillingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BillingConfig) XXX_Merge(src proto.Message)
- func (m *BillingConfig) XXX_Size() int
- func (m *BillingConfig) XXX_Unmarshal(b []byte) error
- type BillingServiceClient
- type BillingServiceServer
- type CreatePaymentMethodRequest
- func (*CreatePaymentMethodRequest) Descriptor() ([]byte, []int)
- func (m *CreatePaymentMethodRequest) GetFirstName() string
- func (m *CreatePaymentMethodRequest) GetLastName() string
- func (m *CreatePaymentMethodRequest) GetPreparedPaymentMethod() *PreparedPaymentMethod
- func (m *CreatePaymentMethodRequest) Marshal() (dAtA []byte, err error)
- func (m *CreatePaymentMethodRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreatePaymentMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreatePaymentMethodRequest) ProtoMessage()
- func (m *CreatePaymentMethodRequest) Reset()
- func (m *CreatePaymentMethodRequest) Size() (n int)
- func (m *CreatePaymentMethodRequest) String() string
- func (m *CreatePaymentMethodRequest) Unmarshal(dAtA []byte) error
- func (m *CreatePaymentMethodRequest) XXX_DiscardUnknown()
- func (m *CreatePaymentMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreatePaymentMethodRequest) XXX_Merge(src proto.Message)
- func (m *CreatePaymentMethodRequest) XXX_Size() int
- func (m *CreatePaymentMethodRequest) XXX_Unmarshal(b []byte) error
- type GetAvailableCreditsRequest
- func (*GetAvailableCreditsRequest) Descriptor() ([]byte, []int)
- func (m *GetAvailableCreditsRequest) GetOrganizationId() string
- func (m *GetAvailableCreditsRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAvailableCreditsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAvailableCreditsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAvailableCreditsRequest) ProtoMessage()
- func (m *GetAvailableCreditsRequest) Reset()
- func (m *GetAvailableCreditsRequest) Size() (n int)
- func (m *GetAvailableCreditsRequest) String() string
- func (m *GetAvailableCreditsRequest) Unmarshal(dAtA []byte) error
- func (m *GetAvailableCreditsRequest) XXX_DiscardUnknown()
- func (m *GetAvailableCreditsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAvailableCreditsRequest) XXX_Merge(src proto.Message)
- func (m *GetAvailableCreditsRequest) XXX_Size() int
- func (m *GetAvailableCreditsRequest) XXX_Unmarshal(b []byte) error
- type GetPreliminaryInvoiceRequest
- func (*GetPreliminaryInvoiceRequest) Descriptor() ([]byte, []int)
- func (m *GetPreliminaryInvoiceRequest) GetOrganizationId() string
- func (m *GetPreliminaryInvoiceRequest) Marshal() (dAtA []byte, err error)
- func (m *GetPreliminaryInvoiceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetPreliminaryInvoiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetPreliminaryInvoiceRequest) ProtoMessage()
- func (m *GetPreliminaryInvoiceRequest) Reset()
- func (m *GetPreliminaryInvoiceRequest) Size() (n int)
- func (m *GetPreliminaryInvoiceRequest) String() string
- func (m *GetPreliminaryInvoiceRequest) Unmarshal(dAtA []byte) error
- func (m *GetPreliminaryInvoiceRequest) XXX_DiscardUnknown()
- func (m *GetPreliminaryInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPreliminaryInvoiceRequest) XXX_Merge(src proto.Message)
- func (m *GetPreliminaryInvoiceRequest) XXX_Size() int
- func (m *GetPreliminaryInvoiceRequest) XXX_Unmarshal(b []byte) error
- type Invoice
- func (*Invoice) Descriptor() ([]byte, []int)
- func (m *Invoice) GetCreatedAt() *types.Timestamp
- func (m *Invoice) GetCurrencyId() string
- func (m *Invoice) GetEmailAddresses() []string
- func (m *Invoice) GetEntityId() string
- func (m *Invoice) GetEntityName() string
- func (m *Invoice) GetId() string
- func (m *Invoice) GetInvoiceBuilderVersion() string
- func (m *Invoice) GetInvoiceNumber() string
- func (m *Invoice) GetItems() []*Invoice_Item
- func (m *Invoice) GetLastUpdatedAt() *types.Timestamp
- func (m *Invoice) GetOrganizationId() string
- func (m *Invoice) GetOrganizationName() string
- func (m *Invoice) GetPayments() []*Invoice_Payment
- func (m *Invoice) GetPurchaseOrderBased() bool
- func (m *Invoice) GetRequiresManualVerification() bool
- func (m *Invoice) GetSalesTaxPercentageUsed() float32
- func (m *Invoice) GetStatus() *Invoice_Status
- func (m *Invoice) GetTotalAmountExclTaxes() float32
- func (m *Invoice) GetTotalAmountInclTaxes() float32
- func (m *Invoice) GetTotalSalesTax() float32
- func (m *Invoice) GetTotalVat() float32
- func (m *Invoice) GetUrl() string
- func (m *Invoice) GetVatPercentageUsed() float32
- func (m *Invoice) GetVatReverseCharge() bool
- func (m *Invoice) Marshal() (dAtA []byte, err error)
- func (m *Invoice) MarshalTo(dAtA []byte) (int, error)
- func (m *Invoice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Invoice) ProtoMessage()
- func (m *Invoice) Reset()
- func (m *Invoice) Size() (n int)
- func (m *Invoice) String() string
- func (m *Invoice) Unmarshal(dAtA []byte) error
- func (m *Invoice) XXX_DiscardUnknown()
- func (m *Invoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Invoice) XXX_Merge(src proto.Message)
- func (m *Invoice) XXX_Size() int
- func (m *Invoice) XXX_Unmarshal(b []byte) error
- type InvoiceCallback
- type InvoiceList
- func (*InvoiceList) Descriptor() ([]byte, []int)
- func (m *InvoiceList) GetItems() []*Invoice
- func (m *InvoiceList) Marshal() (dAtA []byte, err error)
- func (m *InvoiceList) MarshalTo(dAtA []byte) (int, error)
- func (m *InvoiceList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InvoiceList) ProtoMessage()
- func (m *InvoiceList) Reset()
- func (m *InvoiceList) Size() (n int)
- func (m *InvoiceList) String() string
- func (m *InvoiceList) Unmarshal(dAtA []byte) error
- func (m *InvoiceList) XXX_DiscardUnknown()
- func (m *InvoiceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InvoiceList) XXX_Merge(src proto.Message)
- func (m *InvoiceList) XXX_Size() int
- func (m *InvoiceList) XXX_Unmarshal(b []byte) error
- type Invoice_Item
- func (*Invoice_Item) Descriptor() ([]byte, []int)
- func (m *Invoice_Item) GetAmount() float32
- func (m *Invoice_Item) GetDescription() string
- func (m *Invoice_Item) GetIsPrepaid() bool
- func (m *Invoice_Item) GetUsageitemIds() []string
- func (m *Invoice_Item) Marshal() (dAtA []byte, err error)
- func (m *Invoice_Item) MarshalTo(dAtA []byte) (int, error)
- func (m *Invoice_Item) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Invoice_Item) ProtoMessage()
- func (m *Invoice_Item) Reset()
- func (m *Invoice_Item) Size() (n int)
- func (m *Invoice_Item) String() string
- func (m *Invoice_Item) Unmarshal(dAtA []byte) error
- func (m *Invoice_Item) XXX_DiscardUnknown()
- func (m *Invoice_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Invoice_Item) XXX_Merge(src proto.Message)
- func (m *Invoice_Item) XXX_Size() int
- func (m *Invoice_Item) XXX_Unmarshal(b []byte) error
- type Invoice_Payment
- func (*Invoice_Payment) Descriptor() ([]byte, []int)
- func (m *Invoice_Payment) GetAmount() float32
- func (m *Invoice_Payment) GetCompletedAt() *types.Timestamp
- func (m *Invoice_Payment) GetConvertedAmount() float32
- func (m *Invoice_Payment) GetConvertedCurrencyId() string
- func (m *Invoice_Payment) GetCreatedAt() *types.Timestamp
- func (m *Invoice_Payment) GetIsCompleted() bool
- func (m *Invoice_Payment) GetIsPending() bool
- func (m *Invoice_Payment) GetIsRejected() bool
- func (m *Invoice_Payment) GetPaymentId() string
- func (m *Invoice_Payment) GetPaymentMethodId() string
- func (m *Invoice_Payment) GetPaymentProviderId() string
- func (m *Invoice_Payment) GetRejectedAt() *types.Timestamp
- func (m *Invoice_Payment) GetRejectionReason() string
- func (m *Invoice_Payment) Marshal() (dAtA []byte, err error)
- func (m *Invoice_Payment) MarshalTo(dAtA []byte) (int, error)
- func (m *Invoice_Payment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Invoice_Payment) ProtoMessage()
- func (m *Invoice_Payment) Reset()
- func (m *Invoice_Payment) Size() (n int)
- func (m *Invoice_Payment) String() string
- func (m *Invoice_Payment) Unmarshal(dAtA []byte) error
- func (m *Invoice_Payment) XXX_DiscardUnknown()
- func (m *Invoice_Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Invoice_Payment) XXX_Merge(src proto.Message)
- func (m *Invoice_Payment) XXX_Size() int
- func (m *Invoice_Payment) XXX_Unmarshal(b []byte) error
- type Invoice_Status
- func (*Invoice_Status) Descriptor() ([]byte, []int)
- func (m *Invoice_Status) GetCompletedAt() *types.Timestamp
- func (m *Invoice_Status) GetCompletedBy() string
- func (m *Invoice_Status) GetCompletionReason() string
- func (m *Invoice_Status) GetIsCompleted() bool
- func (m *Invoice_Status) GetIsPending() bool
- func (m *Invoice_Status) GetIsRejected() bool
- func (m *Invoice_Status) GetIsVerified() bool
- func (m *Invoice_Status) GetNeedsRebuild() bool
- func (m *Invoice_Status) GetRejectedAt() *types.Timestamp
- func (m *Invoice_Status) GetRejectedBy() string
- func (m *Invoice_Status) GetRejectionReason() string
- func (m *Invoice_Status) Marshal() (dAtA []byte, err error)
- func (m *Invoice_Status) MarshalTo(dAtA []byte) (int, error)
- func (m *Invoice_Status) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Invoice_Status) ProtoMessage()
- func (m *Invoice_Status) Reset()
- func (m *Invoice_Status) Size() (n int)
- func (m *Invoice_Status) String() string
- func (m *Invoice_Status) Unmarshal(dAtA []byte) error
- func (m *Invoice_Status) XXX_DiscardUnknown()
- func (m *Invoice_Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Invoice_Status) XXX_Merge(src proto.Message)
- func (m *Invoice_Status) XXX_Size() int
- func (m *Invoice_Status) XXX_Unmarshal(b []byte) error
- type ListInvoicesRequest
- func (*ListInvoicesRequest) Descriptor() ([]byte, []int)
- func (m *ListInvoicesRequest) GetFrom() *types.Timestamp
- func (m *ListInvoicesRequest) GetIncludeUsageitemIds() bool
- func (m *ListInvoicesRequest) GetOptions() *v1.ListOptions
- func (m *ListInvoicesRequest) GetOrganizationId() string
- func (m *ListInvoicesRequest) GetTo() *types.Timestamp
- func (m *ListInvoicesRequest) Marshal() (dAtA []byte, err error)
- func (m *ListInvoicesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListInvoicesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListInvoicesRequest) ProtoMessage()
- func (m *ListInvoicesRequest) Reset()
- func (m *ListInvoicesRequest) Size() (n int)
- func (m *ListInvoicesRequest) String() string
- func (m *ListInvoicesRequest) Unmarshal(dAtA []byte) error
- func (m *ListInvoicesRequest) XXX_DiscardUnknown()
- func (m *ListInvoicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListInvoicesRequest) XXX_Merge(src proto.Message)
- func (m *ListInvoicesRequest) XXX_Size() int
- func (m *ListInvoicesRequest) XXX_Unmarshal(b []byte) error
- type ListPaymentMethodsRequest
- func (*ListPaymentMethodsRequest) Descriptor() ([]byte, []int)
- func (m *ListPaymentMethodsRequest) GetOptions() *v1.ListOptions
- func (m *ListPaymentMethodsRequest) GetOrganizationId() string
- func (m *ListPaymentMethodsRequest) Marshal() (dAtA []byte, err error)
- func (m *ListPaymentMethodsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListPaymentMethodsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListPaymentMethodsRequest) ProtoMessage()
- func (m *ListPaymentMethodsRequest) Reset()
- func (m *ListPaymentMethodsRequest) Size() (n int)
- func (m *ListPaymentMethodsRequest) String() string
- func (m *ListPaymentMethodsRequest) Unmarshal(dAtA []byte) error
- func (m *ListPaymentMethodsRequest) XXX_DiscardUnknown()
- func (m *ListPaymentMethodsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPaymentMethodsRequest) XXX_Merge(src proto.Message)
- func (m *ListPaymentMethodsRequest) XXX_Size() int
- func (m *ListPaymentMethodsRequest) XXX_Unmarshal(b []byte) error
- type ListPaymentProvidersRequest
- func (*ListPaymentProvidersRequest) Descriptor() ([]byte, []int)
- func (m *ListPaymentProvidersRequest) GetIncludeInternal() bool
- func (m *ListPaymentProvidersRequest) GetOptions() *v1.ListOptions
- func (m *ListPaymentProvidersRequest) GetOrganizationId() string
- func (m *ListPaymentProvidersRequest) Marshal() (dAtA []byte, err error)
- func (m *ListPaymentProvidersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListPaymentProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListPaymentProvidersRequest) ProtoMessage()
- func (m *ListPaymentProvidersRequest) Reset()
- func (m *ListPaymentProvidersRequest) Size() (n int)
- func (m *ListPaymentProvidersRequest) String() string
- func (m *ListPaymentProvidersRequest) Unmarshal(dAtA []byte) error
- func (m *ListPaymentProvidersRequest) XXX_DiscardUnknown()
- func (m *ListPaymentProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPaymentProvidersRequest) XXX_Merge(src proto.Message)
- func (m *ListPaymentProvidersRequest) XXX_Size() int
- func (m *ListPaymentProvidersRequest) XXX_Unmarshal(b []byte) error
- type OrganizationBillingFlags
- func (*OrganizationBillingFlags) Descriptor() ([]byte, []int)
- func (m *OrganizationBillingFlags) GetIsAllowedToAccessPaymentMethods() bool
- func (m *OrganizationBillingFlags) GetIsAllowedToListInvoices() bool
- func (m *OrganizationBillingFlags) Marshal() (dAtA []byte, err error)
- func (m *OrganizationBillingFlags) MarshalTo(dAtA []byte) (int, error)
- func (m *OrganizationBillingFlags) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrganizationBillingFlags) ProtoMessage()
- func (m *OrganizationBillingFlags) Reset()
- func (m *OrganizationBillingFlags) Size() (n int)
- func (m *OrganizationBillingFlags) String() string
- func (m *OrganizationBillingFlags) Unmarshal(dAtA []byte) error
- func (m *OrganizationBillingFlags) XXX_DiscardUnknown()
- func (m *OrganizationBillingFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrganizationBillingFlags) XXX_Merge(src proto.Message)
- func (m *OrganizationBillingFlags) XXX_Size() int
- func (m *OrganizationBillingFlags) XXX_Unmarshal(b []byte) error
- type PDFDocument
- func (*PDFDocument) Descriptor() ([]byte, []int)
- func (m *PDFDocument) GetContent() []byte
- func (m *PDFDocument) GetFilename() string
- func (m *PDFDocument) Marshal() (dAtA []byte, err error)
- func (m *PDFDocument) MarshalTo(dAtA []byte) (int, error)
- func (m *PDFDocument) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PDFDocument) ProtoMessage()
- func (m *PDFDocument) Reset()
- func (m *PDFDocument) Size() (n int)
- func (m *PDFDocument) String() string
- func (m *PDFDocument) Unmarshal(dAtA []byte) error
- func (m *PDFDocument) XXX_DiscardUnknown()
- func (m *PDFDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PDFDocument) XXX_Merge(src proto.Message)
- func (m *PDFDocument) XXX_Size() int
- func (m *PDFDocument) XXX_Unmarshal(b []byte) error
- type PaymentMethod
- func (*PaymentMethod) Descriptor() ([]byte, []int)
- func (m *PaymentMethod) GetCreatedAt() *types.Timestamp
- func (m *PaymentMethod) GetCreditCardInfo() *PaymentMethod_CreditCardInfo
- func (m *PaymentMethod) GetCurrencyId() string
- func (m *PaymentMethod) GetDeletedAt() *types.Timestamp
- func (m *PaymentMethod) GetDescription() string
- func (m *PaymentMethod) GetId() string
- func (m *PaymentMethod) GetIsDefault() bool
- func (m *PaymentMethod) GetIsDeleted() bool
- func (m *PaymentMethod) GetName() string
- func (m *PaymentMethod) GetOrganizationId() string
- func (m *PaymentMethod) GetPaymentProviderId() string
- func (m *PaymentMethod) GetToken() string
- func (m *PaymentMethod) GetType() string
- func (m *PaymentMethod) GetValidUntil() *types.Timestamp
- func (m *PaymentMethod) Marshal() (dAtA []byte, err error)
- func (m *PaymentMethod) MarshalTo(dAtA []byte) (int, error)
- func (m *PaymentMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PaymentMethod) ProtoMessage()
- func (m *PaymentMethod) Reset()
- func (m *PaymentMethod) Size() (n int)
- func (m *PaymentMethod) String() string
- func (m *PaymentMethod) Unmarshal(dAtA []byte) error
- func (m *PaymentMethod) XXX_DiscardUnknown()
- func (m *PaymentMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaymentMethod) XXX_Merge(src proto.Message)
- func (m *PaymentMethod) XXX_Size() int
- func (m *PaymentMethod) XXX_Unmarshal(b []byte) error
- type PaymentMethodCallback
- type PaymentMethodList
- func (*PaymentMethodList) Descriptor() ([]byte, []int)
- func (m *PaymentMethodList) GetItems() []*PaymentMethod
- func (m *PaymentMethodList) Marshal() (dAtA []byte, err error)
- func (m *PaymentMethodList) MarshalTo(dAtA []byte) (int, error)
- func (m *PaymentMethodList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PaymentMethodList) ProtoMessage()
- func (m *PaymentMethodList) Reset()
- func (m *PaymentMethodList) Size() (n int)
- func (m *PaymentMethodList) String() string
- func (m *PaymentMethodList) Unmarshal(dAtA []byte) error
- func (m *PaymentMethodList) XXX_DiscardUnknown()
- func (m *PaymentMethodList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaymentMethodList) XXX_Merge(src proto.Message)
- func (m *PaymentMethodList) XXX_Size() int
- func (m *PaymentMethodList) XXX_Unmarshal(b []byte) error
- type PaymentMethod_CreditCardInfo
- func (*PaymentMethod_CreditCardInfo) Descriptor() ([]byte, []int)
- func (m *PaymentMethod_CreditCardInfo) GetCardType() string
- func (m *PaymentMethod_CreditCardInfo) GetLastDigits() string
- func (m *PaymentMethod_CreditCardInfo) Marshal() (dAtA []byte, err error)
- func (m *PaymentMethod_CreditCardInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *PaymentMethod_CreditCardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PaymentMethod_CreditCardInfo) ProtoMessage()
- func (m *PaymentMethod_CreditCardInfo) Reset()
- func (m *PaymentMethod_CreditCardInfo) Size() (n int)
- func (m *PaymentMethod_CreditCardInfo) String() string
- func (m *PaymentMethod_CreditCardInfo) Unmarshal(dAtA []byte) error
- func (m *PaymentMethod_CreditCardInfo) XXX_DiscardUnknown()
- func (m *PaymentMethod_CreditCardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaymentMethod_CreditCardInfo) XXX_Merge(src proto.Message)
- func (m *PaymentMethod_CreditCardInfo) XXX_Size() int
- func (m *PaymentMethod_CreditCardInfo) XXX_Unmarshal(b []byte) error
- type PaymentProvider
- func (*PaymentProvider) Descriptor() ([]byte, []int)
- func (m *PaymentProvider) GetDescription() string
- func (m *PaymentProvider) GetId() string
- func (m *PaymentProvider) GetName() string
- func (m *PaymentProvider) GetType() string
- func (m *PaymentProvider) Marshal() (dAtA []byte, err error)
- func (m *PaymentProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *PaymentProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PaymentProvider) ProtoMessage()
- func (m *PaymentProvider) Reset()
- func (m *PaymentProvider) Size() (n int)
- func (m *PaymentProvider) String() string
- func (m *PaymentProvider) Unmarshal(dAtA []byte) error
- func (m *PaymentProvider) XXX_DiscardUnknown()
- func (m *PaymentProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaymentProvider) XXX_Merge(src proto.Message)
- func (m *PaymentProvider) XXX_Size() int
- func (m *PaymentProvider) XXX_Unmarshal(b []byte) error
- type PaymentProviderCallback
- type PaymentProviderList
- func (*PaymentProviderList) Descriptor() ([]byte, []int)
- func (m *PaymentProviderList) GetItems() []*PaymentProvider
- func (m *PaymentProviderList) Marshal() (dAtA []byte, err error)
- func (m *PaymentProviderList) MarshalTo(dAtA []byte) (int, error)
- func (m *PaymentProviderList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PaymentProviderList) ProtoMessage()
- func (m *PaymentProviderList) Reset()
- func (m *PaymentProviderList) Size() (n int)
- func (m *PaymentProviderList) String() string
- func (m *PaymentProviderList) Unmarshal(dAtA []byte) error
- func (m *PaymentProviderList) XXX_DiscardUnknown()
- func (m *PaymentProviderList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaymentProviderList) XXX_Merge(src proto.Message)
- func (m *PaymentProviderList) XXX_Size() int
- func (m *PaymentProviderList) XXX_Unmarshal(b []byte) error
- type PreparePaymentMethodRequest
- func (*PreparePaymentMethodRequest) Descriptor() ([]byte, []int)
- func (m *PreparePaymentMethodRequest) GetCurrencyId() string
- func (m *PreparePaymentMethodRequest) GetOrganizationId() string
- func (m *PreparePaymentMethodRequest) GetProviderId() string
- func (m *PreparePaymentMethodRequest) Marshal() (dAtA []byte, err error)
- func (m *PreparePaymentMethodRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PreparePaymentMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PreparePaymentMethodRequest) ProtoMessage()
- func (m *PreparePaymentMethodRequest) Reset()
- func (m *PreparePaymentMethodRequest) Size() (n int)
- func (m *PreparePaymentMethodRequest) String() string
- func (m *PreparePaymentMethodRequest) Unmarshal(dAtA []byte) error
- func (m *PreparePaymentMethodRequest) XXX_DiscardUnknown()
- func (m *PreparePaymentMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PreparePaymentMethodRequest) XXX_Merge(src proto.Message)
- func (m *PreparePaymentMethodRequest) XXX_Size() int
- func (m *PreparePaymentMethodRequest) XXX_Unmarshal(b []byte) error
- type PreparedPaymentMethod
- func (*PreparedPaymentMethod) Descriptor() ([]byte, []int)
- func (m *PreparedPaymentMethod) GetCurrencyId() string
- func (m *PreparedPaymentMethod) GetOrganizationId() string
- func (m *PreparedPaymentMethod) GetProviderId() string
- func (m *PreparedPaymentMethod) GetScriptUrl() string
- func (m *PreparedPaymentMethod) GetSignature() string
- func (m *PreparedPaymentMethod) GetToken() string
- func (m *PreparedPaymentMethod) Marshal() (dAtA []byte, err error)
- func (m *PreparedPaymentMethod) MarshalTo(dAtA []byte) (int, error)
- func (m *PreparedPaymentMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PreparedPaymentMethod) ProtoMessage()
- func (m *PreparedPaymentMethod) Reset()
- func (m *PreparedPaymentMethod) Size() (n int)
- func (m *PreparedPaymentMethod) String() string
- func (m *PreparedPaymentMethod) Unmarshal(dAtA []byte) error
- func (m *PreparedPaymentMethod) XXX_DiscardUnknown()
- func (m *PreparedPaymentMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PreparedPaymentMethod) XXX_Merge(src proto.Message)
- func (m *PreparedPaymentMethod) XXX_Size() int
- func (m *PreparedPaymentMethod) XXX_Unmarshal(b []byte) error
- type SetBillingConfigRequest
- func (*SetBillingConfigRequest) Descriptor() ([]byte, []int)
- func (m *SetBillingConfigRequest) GetConfig() *BillingConfig
- func (m *SetBillingConfigRequest) GetOrganizationId() string
- func (m *SetBillingConfigRequest) Marshal() (dAtA []byte, err error)
- func (m *SetBillingConfigRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SetBillingConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetBillingConfigRequest) ProtoMessage()
- func (m *SetBillingConfigRequest) Reset()
- func (m *SetBillingConfigRequest) Size() (n int)
- func (m *SetBillingConfigRequest) String() string
- func (m *SetBillingConfigRequest) Unmarshal(dAtA []byte) error
- func (m *SetBillingConfigRequest) XXX_DiscardUnknown()
- func (m *SetBillingConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetBillingConfigRequest) XXX_Merge(src proto.Message)
- func (m *SetBillingConfigRequest) XXX_Size() int
- func (m *SetBillingConfigRequest) XXX_Unmarshal(b []byte) error
- type SetDefaultPaymentMethodRequest
- func (*SetDefaultPaymentMethodRequest) Descriptor() ([]byte, []int)
- func (m *SetDefaultPaymentMethodRequest) GetOrganizationId() string
- func (m *SetDefaultPaymentMethodRequest) GetPaymentMethodId() string
- func (m *SetDefaultPaymentMethodRequest) Marshal() (dAtA []byte, err error)
- func (m *SetDefaultPaymentMethodRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SetDefaultPaymentMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetDefaultPaymentMethodRequest) ProtoMessage()
- func (m *SetDefaultPaymentMethodRequest) Reset()
- func (m *SetDefaultPaymentMethodRequest) Size() (n int)
- func (m *SetDefaultPaymentMethodRequest) String() string
- func (m *SetDefaultPaymentMethodRequest) Unmarshal(dAtA []byte) error
- func (m *SetDefaultPaymentMethodRequest) XXX_DiscardUnknown()
- func (m *SetDefaultPaymentMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetDefaultPaymentMethodRequest) XXX_Merge(src proto.Message)
- func (m *SetDefaultPaymentMethodRequest) XXX_Size() int
- func (m *SetDefaultPaymentMethodRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedBillingServiceServer
- func (*UnimplementedBillingServiceServer) CreatePaymentMethod(ctx context.Context, req *CreatePaymentMethodRequest) (*PaymentMethod, error)
- func (*UnimplementedBillingServiceServer) DeletePaymentMethod(ctx context.Context, req *v1.IDOptions) (*v1.Empty, error)
- func (*UnimplementedBillingServiceServer) GetAPIVersion(ctx context.Context, req *v1.Empty) (*v1.Version, error)
- func (*UnimplementedBillingServiceServer) GetAvailableCredits(ctx context.Context, req *GetAvailableCreditsRequest) (*AvailableCredits, error)
- func (*UnimplementedBillingServiceServer) GetBillingConfig(ctx context.Context, req *v1.IDOptions) (*BillingConfig, error)
- func (*UnimplementedBillingServiceServer) GetDefaultPaymentMethod(ctx context.Context, req *v1.IDOptions) (*PaymentMethod, error)
- func (*UnimplementedBillingServiceServer) GetInvoice(ctx context.Context, req *v1.IDOptions) (*Invoice, error)
- func (*UnimplementedBillingServiceServer) GetInvoicePDF(ctx context.Context, req *v1.IDOptions) (*PDFDocument, error)
- func (*UnimplementedBillingServiceServer) GetOrganizationBillingFlags(ctx context.Context, req *v1.IDOptions) (*OrganizationBillingFlags, error)
- func (*UnimplementedBillingServiceServer) GetPaymentMethod(ctx context.Context, req *v1.IDOptions) (*PaymentMethod, error)
- func (*UnimplementedBillingServiceServer) GetPaymentProvider(ctx context.Context, req *v1.IDOptions) (*PaymentProvider, error)
- func (*UnimplementedBillingServiceServer) GetPreliminaryInvoice(ctx context.Context, req *GetPreliminaryInvoiceRequest) (*Invoice, error)
- func (*UnimplementedBillingServiceServer) ListInvoices(ctx context.Context, req *ListInvoicesRequest) (*InvoiceList, error)
- func (*UnimplementedBillingServiceServer) ListPaymentMethods(ctx context.Context, req *ListPaymentMethodsRequest) (*PaymentMethodList, error)
- func (*UnimplementedBillingServiceServer) ListPaymentProviders(ctx context.Context, req *ListPaymentProvidersRequest) (*PaymentProviderList, error)
- func (*UnimplementedBillingServiceServer) PreparePaymentMethod(ctx context.Context, req *PreparePaymentMethodRequest) (*PreparedPaymentMethod, error)
- func (*UnimplementedBillingServiceServer) SetBillingConfig(ctx context.Context, req *SetBillingConfigRequest) (*v1.Empty, error)
- func (*UnimplementedBillingServiceServer) SetDefaultPaymentMethod(ctx context.Context, req *SetDefaultPaymentMethodRequest) (*v1.Empty, error)
- func (*UnimplementedBillingServiceServer) UpdatePaymentMethod(ctx context.Context, req *PaymentMethod) (*PaymentMethod, error)
Constants ¶
const ( // PermissionConfigGet is needed for getting the billing configuration of an organization PermissionConfigGet = "billing.config.get" // PermissionConfigSet is needed for setting the billing configuration of an organization PermissionConfigSet = "billing.config.set" )
const ( // PermissionInvoiceList is needed for listing invoices in an organization PermissionInvoiceList = "billing.invoice.list" // PermissionInvoiceGet is needed for getting indivual invoices in an organization PermissionInvoiceGet = "billing.invoice.get" // PermissionInvoiceGetPremiminary is needed for getting the preliminary invoice in an organization PermissionInvoiceGetPremiminary = "billing.invoice.get-preliminary" )
const ( // PermissionPaymentMethodList is needed for listing payment methods created for an organization PermissionPaymentMethodList = "billing.paymentmethod.list" // PermissionPaymentMethodGet is needed for getting individual payment methods created for an organization PermissionPaymentMethodGet = "billing.paymentmethod.get" // PermissionPaymentMethodDelete is needed for deleting individual payment methods PermissionPaymentMethodDelete = "billing.paymentmethod.delete" // PermissionPaymentMethodCreate is needed for creating individual payment methods PermissionPaymentMethodCreate = "billing.paymentmethod.create" // PermissionPaymentMethodUpdate is needed for updating individual payment methods PermissionPaymentMethodUpdate = "billing.paymentmethod.update" // PermissionPaymentMethodGetDefault is needed for getting the default payment method for an organization PermissionPaymentMethodGetDefault = "billing.paymentmethod.get-default" // PermissionPaymentMethodSetDefault is needed for changing the default payment method for an organization PermissionPaymentMethodSetDefault = "billing.paymentmethod.set-default" )
const ( // PaymentMethodTypeCreditCard indicates that the payment method // is of type creditcard. PaymentMethodTypeCreditCard = "creditcard" // PaymentMethodTypeInternalCredit indicates that the payment method // is of type credit. PaymentMethodTypeInternalCredit = "credit" )
const ( // CardTypeVisa indicates a VISA creditcard CardTypeVisa = "visa" // CardTypeMastercard indicates a Mastercard creditcard CardTypeMastercard = "mastercard" )
const ( // APIID contains identifier of this API APIID = "billing/v1" // APIMajorVersion contains major version of this API APIMajorVersion = 1 // APIMinorVersion contains minor version of this API APIMinorVersion = 4 // APIPatchVersion contains patch version of this API APIPatchVersion = 3 )
const (
// KindInvoice is a constants for the kind of Invoice resources.
KindInvoice = "Invoice"
)
const (
// PermissionGetAvailableCredits is needed to get credits available to organization
PermissionGetAvailableCredits = "billing.credits.get_available"
)
const (
// PermissionOrganizationGet is needed for getting the billing flags of an organization
PermissionOrganizationGet = "billing.organization.get"
)
const (
// PermissionPaymentProviderList is needed for listing payment providers in the context of an organization
PermissionPaymentProviderList = "billing.paymentprovider.list"
)
Variables ¶
Functions ¶
func ForEachInvoice ¶
func ForEachInvoice(ctx context.Context, listFunc func(ctx context.Context, req *ListInvoicesRequest) (*InvoiceList, error), req ListInvoicesRequest, cb InvoiceCallback) error
ForEachInvoice iterates over all invoices that match the given request, invoking the given callback for each invoice.
func ForEachPaymentMethod ¶
func ForEachPaymentMethod(ctx context.Context, listFunc func(ctx context.Context, req *ListPaymentMethodsRequest) (*PaymentMethodList, error), req ListPaymentMethodsRequest, cb PaymentMethodCallback) error
ForEachPaymentMethod iterates over all payment methods that match the given request, invoking the given callback for each method.
func ForEachPaymentProvider ¶
func ForEachPaymentProvider(ctx context.Context, listFunc func(ctx context.Context, req *ListPaymentProvidersRequest) (*PaymentProviderList, error), req ListPaymentProvidersRequest, cb PaymentProviderCallback) error
ForEachPaymentProvider iterates over all payment providers that match the given request, invoking the given callback for each provider.
func InvoiceURL ¶
InvoiceURL creates a resource URL for the Invoice with given ID in given context.
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 RegisterBillingServiceHandlerServer ¶
func RegisterBillingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BillingServiceServer) error
RegisterBillingServiceHandlerServer registers the http handlers for service BillingService to "mux". UnaryRPC :call BillingServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterBillingServiceServer ¶
func RegisterBillingServiceServer(s *grpc.Server, srv BillingServiceServer)
Types ¶
type Address ¶
type Address struct { // Address lines Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"` // ZIP code (if any) Zipcode string `protobuf:"bytes,2,opt,name=zipcode,proto3" json:"zipcode,omitempty"` // City City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` // State // For US, this must be an ISO 3166-2 2-letter state code // See https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` // Country code CountryCode string `protobuf:"bytes,5,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Address of organization
func (*Address) Descriptor ¶
func (*Address) GetAddress ¶
func (*Address) GetCountryCode ¶
func (*Address) GetZipcode ¶
func (*Address) MarshalToSizedBuffer ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type AvailableCredits ¶ added in v0.74.3
type AvailableCredits struct { // contains information about credits in different currencies Credits []*AvailableCredits_CreditCurrencyAmount `protobuf:"bytes,1,rep,name=credits,proto3" json:"credits,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AvailableCredits) Descriptor ¶ added in v0.74.3
func (*AvailableCredits) Descriptor() ([]byte, []int)
func (*AvailableCredits) GetCredits ¶ added in v0.74.3
func (m *AvailableCredits) GetCredits() []*AvailableCredits_CreditCurrencyAmount
func (*AvailableCredits) Marshal ¶ added in v0.74.3
func (m *AvailableCredits) Marshal() (dAtA []byte, err error)
func (*AvailableCredits) MarshalTo ¶ added in v0.74.3
func (m *AvailableCredits) MarshalTo(dAtA []byte) (int, error)
func (*AvailableCredits) MarshalToSizedBuffer ¶ added in v0.74.3
func (m *AvailableCredits) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AvailableCredits) ProtoMessage ¶ added in v0.74.3
func (*AvailableCredits) ProtoMessage()
func (*AvailableCredits) Reset ¶ added in v0.74.3
func (m *AvailableCredits) Reset()
func (*AvailableCredits) Size ¶ added in v0.74.3
func (m *AvailableCredits) Size() (n int)
func (*AvailableCredits) String ¶ added in v0.74.3
func (m *AvailableCredits) String() string
func (*AvailableCredits) Unmarshal ¶ added in v0.74.3
func (m *AvailableCredits) Unmarshal(dAtA []byte) error
func (*AvailableCredits) XXX_DiscardUnknown ¶ added in v0.74.3
func (m *AvailableCredits) XXX_DiscardUnknown()
func (*AvailableCredits) XXX_Marshal ¶ added in v0.74.3
func (m *AvailableCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AvailableCredits) XXX_Merge ¶ added in v0.74.3
func (m *AvailableCredits) XXX_Merge(src proto.Message)
func (*AvailableCredits) XXX_Size ¶ added in v0.74.3
func (m *AvailableCredits) XXX_Size() int
func (*AvailableCredits) XXX_Unmarshal ¶ added in v0.74.3
func (m *AvailableCredits) XXX_Unmarshal(b []byte) error
type AvailableCredits_CreditCurrencyAmount ¶ added in v0.74.3
type AvailableCredits_CreditCurrencyAmount struct { // amount of credit Amount float32 `protobuf:"fixed32,1,opt,name=amount,proto3" json:"amount,omitempty"` // identifier of the currency for this credit CurrencyId string `protobuf:"bytes,2,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
information abou Credit in a given currency
func (*AvailableCredits_CreditCurrencyAmount) Descriptor ¶ added in v0.74.3
func (*AvailableCredits_CreditCurrencyAmount) Descriptor() ([]byte, []int)
func (*AvailableCredits_CreditCurrencyAmount) GetAmount ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) GetAmount() float32
func (*AvailableCredits_CreditCurrencyAmount) GetCurrencyId ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) GetCurrencyId() string
func (*AvailableCredits_CreditCurrencyAmount) Marshal ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) Marshal() (dAtA []byte, err error)
func (*AvailableCredits_CreditCurrencyAmount) MarshalTo ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) MarshalTo(dAtA []byte) (int, error)
func (*AvailableCredits_CreditCurrencyAmount) MarshalToSizedBuffer ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AvailableCredits_CreditCurrencyAmount) ProtoMessage ¶ added in v0.74.3
func (*AvailableCredits_CreditCurrencyAmount) ProtoMessage()
func (*AvailableCredits_CreditCurrencyAmount) Reset ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) Reset()
func (*AvailableCredits_CreditCurrencyAmount) Size ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) Size() (n int)
func (*AvailableCredits_CreditCurrencyAmount) String ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) String() string
func (*AvailableCredits_CreditCurrencyAmount) Unmarshal ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) Unmarshal(dAtA []byte) error
func (*AvailableCredits_CreditCurrencyAmount) XXX_DiscardUnknown ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) XXX_DiscardUnknown()
func (*AvailableCredits_CreditCurrencyAmount) XXX_Marshal ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AvailableCredits_CreditCurrencyAmount) XXX_Merge ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) XXX_Merge(src proto.Message)
func (*AvailableCredits_CreditCurrencyAmount) XXX_Size ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) XXX_Size() int
func (*AvailableCredits_CreditCurrencyAmount) XXX_Unmarshal ¶ added in v0.74.3
func (m *AvailableCredits_CreditCurrencyAmount) XXX_Unmarshal(b []byte) error
type BillingConfig ¶
type BillingConfig struct { // Address of the organization Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // EU VAT number of the organization (if any) VatNumber string `protobuf:"bytes,2,opt,name=vat_number,json=vatNumber,proto3" json:"vat_number,omitempty"` // Email address(es) to send emails related to billing (mostly invoices) to. EmailAddresses []string `protobuf:"bytes,3,rep,name=email_addresses,json=emailAddresses,proto3" json:"email_addresses,omitempty"` // US sales tax number of the organization (if any) UsTaxNumber string `protobuf:"bytes,4,opt,name=us_tax_number,json=usTaxNumber,proto3" json:"us_tax_number,omitempty"` // Legal name of the organization CompanyLegalName string `protobuf:"bytes,5,opt,name=company_legal_name,json=companyLegalName,proto3" json:"company_legal_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Billing configuration for an organization
func (*BillingConfig) Descriptor ¶
func (*BillingConfig) Descriptor() ([]byte, []int)
func (*BillingConfig) GetAddress ¶
func (m *BillingConfig) GetAddress() *Address
func (*BillingConfig) GetCompanyLegalName ¶ added in v0.72.1
func (m *BillingConfig) GetCompanyLegalName() string
func (*BillingConfig) GetEmailAddresses ¶
func (m *BillingConfig) GetEmailAddresses() []string
func (*BillingConfig) GetUsTaxNumber ¶
func (m *BillingConfig) GetUsTaxNumber() string
func (*BillingConfig) GetVatNumber ¶
func (m *BillingConfig) GetVatNumber() string
func (*BillingConfig) Marshal ¶
func (m *BillingConfig) Marshal() (dAtA []byte, err error)
func (*BillingConfig) MarshalToSizedBuffer ¶
func (m *BillingConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BillingConfig) ProtoMessage ¶
func (*BillingConfig) ProtoMessage()
func (*BillingConfig) Reset ¶
func (m *BillingConfig) Reset()
func (*BillingConfig) Size ¶
func (m *BillingConfig) Size() (n int)
func (*BillingConfig) String ¶
func (m *BillingConfig) String() string
func (*BillingConfig) Unmarshal ¶
func (m *BillingConfig) Unmarshal(dAtA []byte) error
func (*BillingConfig) XXX_DiscardUnknown ¶
func (m *BillingConfig) XXX_DiscardUnknown()
func (*BillingConfig) XXX_Marshal ¶
func (m *BillingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BillingConfig) XXX_Merge ¶
func (m *BillingConfig) XXX_Merge(src proto.Message)
func (*BillingConfig) XXX_Size ¶
func (m *BillingConfig) XXX_Size() int
func (*BillingConfig) XXX_Unmarshal ¶
func (m *BillingConfig) XXX_Unmarshal(b []byte) error
type BillingServiceClient ¶
type BillingServiceClient interface { // Get the current API version of this service. // Required permissions: // - None GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error) // Fetch the billing specific flags for the organization identified by the given ID. // Required permissions: // - billing.organization.get GetOrganizationBillingFlags(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*OrganizationBillingFlags, error) // Fetch all Invoice resources for the organization identified by the given // organization ID that match the given criteria. // Required permissions: // - billing.invoice.list on the organization identified by the given organization ID ListInvoices(ctx context.Context, in *ListInvoicesRequest, opts ...grpc.CallOption) (*InvoiceList, error) // Fetch a specific Invoice identified by the given ID. // Required permissions: // - billing.invoice.get on the organization that owns the invoice // with given ID. GetInvoice(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*Invoice, error) // Fetch a preliminary Invoice identified by the given organization ID. // The preliminary invoice contains all costs from the last invoice (if any, otherwise the creation date of the organization) until last night (midnight UTC). // Required permissions: // - billing.invoice.get-preliminary on the organization identified by the given organization ID GetPreliminaryInvoice(ctx context.Context, in *GetPreliminaryInvoiceRequest, opts ...grpc.CallOption) (*Invoice, error) // Fetch a specific Invoice identified by the given ID as PDF document. // Required permissions: // - billing.invoice.get on the organization that owns the invoice // with given ID. GetInvoicePDF(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*PDFDocument, error) // Fetch all payment providers that are usable for the organization identified // by the given context ID. // Required permissions: // - billing.paymentprovider.list on the organization identified by the given context ID ListPaymentProviders(ctx context.Context, in *ListPaymentProvidersRequest, opts ...grpc.CallOption) (*PaymentProviderList, error) // Fetch a specific payment provider identified by the given ID. // Required permissions: // - None GetPaymentProvider(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*PaymentProvider, error) // Fetch all payment methods that are configured for the organization identified // by the given context ID. // Required permissions: // - billing.paymentmethod.list on the organization identified by the given context ID ListPaymentMethods(ctx context.Context, in *ListPaymentMethodsRequest, opts ...grpc.CallOption) (*PaymentMethodList, error) // Fetch a specific payment method identified by the given ID. // Required permissions: // - billing.paymentmethod.get on the organization that owns the payment method // which is identified by the given ID GetPaymentMethod(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*PaymentMethod, error) // Prepare the payment provider for creating a new payment method. // Required permissions: // - billing.paymentmethod.create on the organization that owns future payment method. PreparePaymentMethod(ctx context.Context, in *PreparePaymentMethodRequest, opts ...grpc.CallOption) (*PreparedPaymentMethod, error) // Create a new payment method. // Required permissions: // - billing.paymentmethod.create on the organization that owns the given payment method. CreatePaymentMethod(ctx context.Context, in *CreatePaymentMethodRequest, opts ...grpc.CallOption) (*PaymentMethod, error) // Update a specific payment method. // Note that only name, description & valid period are updated. // Required permissions: // - billing.paymentmethod.update on the organization that owns the given payment method. UpdatePaymentMethod(ctx context.Context, in *PaymentMethod, opts ...grpc.CallOption) (*PaymentMethod, error) // Delete a specific payment method identified by the given ID. // Required permissions: // - billing.paymentmethod.delete on the organization that owns the given payment method // which is identified by the given ID. DeletePaymentMethod(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error) // Fetch the default PaymentMethod for an organization identified by the given ID. // Required permissions: // - billing.paymentmethod.get-default on the organization that is identified by the given ID GetDefaultPaymentMethod(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*PaymentMethod, error) // Update the default PaymentMethod for an organization identified by the // given organization ID, to the payment method identified by the given payment method ID. // Required permissions: // - billing.paymentmethod.set-default on the organization identified by the given organization ID SetDefaultPaymentMethod(ctx context.Context, in *SetDefaultPaymentMethodRequest, opts ...grpc.CallOption) (*v1.Empty, error) // Fetch the billing configuration of an organization identified by the given ID. // Required permissions: // - billing.config.get on the organization that is identified by the given ID GetBillingConfig(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*BillingConfig, error) // Update the billing configuration for an organization identified by the // given organization ID. // Required permissions: // - billing.config.set on the organization identified by the given organization ID SetBillingConfig(ctx context.Context, in *SetBillingConfigRequest, opts ...grpc.CallOption) (*v1.Empty, error) // Get available credits for an organization identified by organization_id // Required permissions: // - billing.credits.get_available on the organization identified by the given organization ID GetAvailableCredits(ctx context.Context, in *GetAvailableCreditsRequest, opts ...grpc.CallOption) (*AvailableCredits, error) }
BillingServiceClient is the client API for BillingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBillingServiceClient ¶
func NewBillingServiceClient(cc *grpc.ClientConn) BillingServiceClient
type BillingServiceServer ¶
type BillingServiceServer interface { // Get the current API version of this service. // Required permissions: // - None GetAPIVersion(context.Context, *v1.Empty) (*v1.Version, error) // Fetch the billing specific flags for the organization identified by the given ID. // Required permissions: // - billing.organization.get GetOrganizationBillingFlags(context.Context, *v1.IDOptions) (*OrganizationBillingFlags, error) // Fetch all Invoice resources for the organization identified by the given // organization ID that match the given criteria. // Required permissions: // - billing.invoice.list on the organization identified by the given organization ID ListInvoices(context.Context, *ListInvoicesRequest) (*InvoiceList, error) // Fetch a specific Invoice identified by the given ID. // Required permissions: // - billing.invoice.get on the organization that owns the invoice // with given ID. GetInvoice(context.Context, *v1.IDOptions) (*Invoice, error) // Fetch a preliminary Invoice identified by the given organization ID. // The preliminary invoice contains all costs from the last invoice (if any, otherwise the creation date of the organization) until last night (midnight UTC). // Required permissions: // - billing.invoice.get-preliminary on the organization identified by the given organization ID GetPreliminaryInvoice(context.Context, *GetPreliminaryInvoiceRequest) (*Invoice, error) // Fetch a specific Invoice identified by the given ID as PDF document. // Required permissions: // - billing.invoice.get on the organization that owns the invoice // with given ID. GetInvoicePDF(context.Context, *v1.IDOptions) (*PDFDocument, error) // Fetch all payment providers that are usable for the organization identified // by the given context ID. // Required permissions: // - billing.paymentprovider.list on the organization identified by the given context ID ListPaymentProviders(context.Context, *ListPaymentProvidersRequest) (*PaymentProviderList, error) // Fetch a specific payment provider identified by the given ID. // Required permissions: // - None GetPaymentProvider(context.Context, *v1.IDOptions) (*PaymentProvider, error) // Fetch all payment methods that are configured for the organization identified // by the given context ID. // Required permissions: // - billing.paymentmethod.list on the organization identified by the given context ID ListPaymentMethods(context.Context, *ListPaymentMethodsRequest) (*PaymentMethodList, error) // Fetch a specific payment method identified by the given ID. // Required permissions: // - billing.paymentmethod.get on the organization that owns the payment method // which is identified by the given ID GetPaymentMethod(context.Context, *v1.IDOptions) (*PaymentMethod, error) // Prepare the payment provider for creating a new payment method. // Required permissions: // - billing.paymentmethod.create on the organization that owns future payment method. PreparePaymentMethod(context.Context, *PreparePaymentMethodRequest) (*PreparedPaymentMethod, error) // Create a new payment method. // Required permissions: // - billing.paymentmethod.create on the organization that owns the given payment method. CreatePaymentMethod(context.Context, *CreatePaymentMethodRequest) (*PaymentMethod, error) // Update a specific payment method. // Note that only name, description & valid period are updated. // Required permissions: // - billing.paymentmethod.update on the organization that owns the given payment method. UpdatePaymentMethod(context.Context, *PaymentMethod) (*PaymentMethod, error) // Delete a specific payment method identified by the given ID. // Required permissions: // - billing.paymentmethod.delete on the organization that owns the given payment method // which is identified by the given ID. DeletePaymentMethod(context.Context, *v1.IDOptions) (*v1.Empty, error) // Fetch the default PaymentMethod for an organization identified by the given ID. // Required permissions: // - billing.paymentmethod.get-default on the organization that is identified by the given ID GetDefaultPaymentMethod(context.Context, *v1.IDOptions) (*PaymentMethod, error) // Update the default PaymentMethod for an organization identified by the // given organization ID, to the payment method identified by the given payment method ID. // Required permissions: // - billing.paymentmethod.set-default on the organization identified by the given organization ID SetDefaultPaymentMethod(context.Context, *SetDefaultPaymentMethodRequest) (*v1.Empty, error) // Fetch the billing configuration of an organization identified by the given ID. // Required permissions: // - billing.config.get on the organization that is identified by the given ID GetBillingConfig(context.Context, *v1.IDOptions) (*BillingConfig, error) // Update the billing configuration for an organization identified by the // given organization ID. // Required permissions: // - billing.config.set on the organization identified by the given organization ID SetBillingConfig(context.Context, *SetBillingConfigRequest) (*v1.Empty, error) // Get available credits for an organization identified by organization_id // Required permissions: // - billing.credits.get_available on the organization identified by the given organization ID GetAvailableCredits(context.Context, *GetAvailableCreditsRequest) (*AvailableCredits, error) }
BillingServiceServer is the server API for BillingService service.
type CreatePaymentMethodRequest ¶
type CreatePaymentMethodRequest struct { // The result of PreparePaymentMethod. PreparedPaymentMethod *PreparedPaymentMethod `` /* 126-byte string literal not displayed */ // First name of owner of payment method FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` // Last name of owner of payment method LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request arguments for CreatePaymentMethod
func (*CreatePaymentMethodRequest) Descriptor ¶
func (*CreatePaymentMethodRequest) Descriptor() ([]byte, []int)
func (*CreatePaymentMethodRequest) GetFirstName ¶
func (m *CreatePaymentMethodRequest) GetFirstName() string
func (*CreatePaymentMethodRequest) GetLastName ¶
func (m *CreatePaymentMethodRequest) GetLastName() string
func (*CreatePaymentMethodRequest) GetPreparedPaymentMethod ¶
func (m *CreatePaymentMethodRequest) GetPreparedPaymentMethod() *PreparedPaymentMethod
func (*CreatePaymentMethodRequest) Marshal ¶
func (m *CreatePaymentMethodRequest) Marshal() (dAtA []byte, err error)
func (*CreatePaymentMethodRequest) MarshalTo ¶
func (m *CreatePaymentMethodRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreatePaymentMethodRequest) MarshalToSizedBuffer ¶
func (m *CreatePaymentMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreatePaymentMethodRequest) ProtoMessage ¶
func (*CreatePaymentMethodRequest) ProtoMessage()
func (*CreatePaymentMethodRequest) Reset ¶
func (m *CreatePaymentMethodRequest) Reset()
func (*CreatePaymentMethodRequest) Size ¶
func (m *CreatePaymentMethodRequest) Size() (n int)
func (*CreatePaymentMethodRequest) String ¶
func (m *CreatePaymentMethodRequest) String() string
func (*CreatePaymentMethodRequest) Unmarshal ¶
func (m *CreatePaymentMethodRequest) Unmarshal(dAtA []byte) error
func (*CreatePaymentMethodRequest) XXX_DiscardUnknown ¶
func (m *CreatePaymentMethodRequest) XXX_DiscardUnknown()
func (*CreatePaymentMethodRequest) XXX_Marshal ¶
func (m *CreatePaymentMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreatePaymentMethodRequest) XXX_Merge ¶
func (m *CreatePaymentMethodRequest) XXX_Merge(src proto.Message)
func (*CreatePaymentMethodRequest) XXX_Size ¶
func (m *CreatePaymentMethodRequest) XXX_Size() int
func (*CreatePaymentMethodRequest) XXX_Unmarshal ¶
func (m *CreatePaymentMethodRequest) XXX_Unmarshal(b []byte) error
type GetAvailableCreditsRequest ¶ added in v0.74.3
type GetAvailableCreditsRequest struct { OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAvailableCreditsRequest) Descriptor ¶ added in v0.74.3
func (*GetAvailableCreditsRequest) Descriptor() ([]byte, []int)
func (*GetAvailableCreditsRequest) GetOrganizationId ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) GetOrganizationId() string
func (*GetAvailableCreditsRequest) Marshal ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) Marshal() (dAtA []byte, err error)
func (*GetAvailableCreditsRequest) MarshalTo ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetAvailableCreditsRequest) MarshalToSizedBuffer ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAvailableCreditsRequest) ProtoMessage ¶ added in v0.74.3
func (*GetAvailableCreditsRequest) ProtoMessage()
func (*GetAvailableCreditsRequest) Reset ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) Reset()
func (*GetAvailableCreditsRequest) Size ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) Size() (n int)
func (*GetAvailableCreditsRequest) String ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) String() string
func (*GetAvailableCreditsRequest) Unmarshal ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) Unmarshal(dAtA []byte) error
func (*GetAvailableCreditsRequest) XXX_DiscardUnknown ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) XXX_DiscardUnknown()
func (*GetAvailableCreditsRequest) XXX_Marshal ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAvailableCreditsRequest) XXX_Merge ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) XXX_Merge(src proto.Message)
func (*GetAvailableCreditsRequest) XXX_Size ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) XXX_Size() int
func (*GetAvailableCreditsRequest) XXX_Unmarshal ¶ added in v0.74.3
func (m *GetAvailableCreditsRequest) XXX_Unmarshal(b []byte) error
type GetPreliminaryInvoiceRequest ¶ added in v0.63.9
type GetPreliminaryInvoiceRequest struct { // Identifier of the organization // This is a required field. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request argument for GetPreliminaryInvoice
func (*GetPreliminaryInvoiceRequest) Descriptor ¶ added in v0.63.9
func (*GetPreliminaryInvoiceRequest) Descriptor() ([]byte, []int)
func (*GetPreliminaryInvoiceRequest) GetOrganizationId ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) GetOrganizationId() string
func (*GetPreliminaryInvoiceRequest) Marshal ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) Marshal() (dAtA []byte, err error)
func (*GetPreliminaryInvoiceRequest) MarshalTo ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetPreliminaryInvoiceRequest) MarshalToSizedBuffer ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetPreliminaryInvoiceRequest) ProtoMessage ¶ added in v0.63.9
func (*GetPreliminaryInvoiceRequest) ProtoMessage()
func (*GetPreliminaryInvoiceRequest) Reset ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) Reset()
func (*GetPreliminaryInvoiceRequest) Size ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) Size() (n int)
func (*GetPreliminaryInvoiceRequest) String ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) String() string
func (*GetPreliminaryInvoiceRequest) Unmarshal ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) Unmarshal(dAtA []byte) error
func (*GetPreliminaryInvoiceRequest) XXX_DiscardUnknown ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) XXX_DiscardUnknown()
func (*GetPreliminaryInvoiceRequest) XXX_Marshal ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPreliminaryInvoiceRequest) XXX_Merge ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) XXX_Merge(src proto.Message)
func (*GetPreliminaryInvoiceRequest) XXX_Size ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) XXX_Size() int
func (*GetPreliminaryInvoiceRequest) XXX_Unmarshal ¶ added in v0.63.9
func (m *GetPreliminaryInvoiceRequest) XXX_Unmarshal(b []byte) error
type Invoice ¶
type Invoice struct { // System identifier of the invoice. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // URL of this resource Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Identifier of the organization that is responsible for the payment of this invoice. OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Name of the organization that is responsible for the payment of this invoice. OrganizationName string `protobuf:"bytes,4,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` // Identifier of the legal entity that is the sender of this invoice. EntityId string `protobuf:"bytes,5,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` // Name of the legal entity that is the sender of this invoice. EntityName string `protobuf:"bytes,6,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"` // Invoice number (used by accounting) InvoiceNumber string `protobuf:"bytes,7,opt,name=invoice_number,json=invoiceNumber,proto3" json:"invoice_number,omitempty"` // The creation date of the invoice CreatedAt *types.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // If set, this invoice must be manually verified // before payment can be initiated. RequiresManualVerification bool `` /* 143-byte string literal not displayed */ // The last update date of the invoice. // This applies to 'specification' only and doesn't apply to status or payments changes. LastUpdatedAt *types.Timestamp `protobuf:"bytes,12,opt,name=last_updated_at,json=lastUpdatedAt,proto3" json:"last_updated_at,omitempty"` // The list of email addresses that this invoice (and payments related to this invoice) will be send to. EmailAddresses []string `protobuf:"bytes,13,rep,name=email_addresses,json=emailAddresses,proto3" json:"email_addresses,omitempty"` // If set, this invoice is generated for an organization that is configured to use purchase orders. PurchaseOrderBased bool `protobuf:"varint,14,opt,name=purchase_order_based,json=purchaseOrderBased,proto3" json:"purchase_order_based,omitempty"` // The version of the invoice-builder who created the invoice. InvoiceBuilderVersion string `` /* 127-byte string literal not displayed */ // All items of the invoice Items []*Invoice_Item `protobuf:"bytes,100,rep,name=items,proto3" json:"items,omitempty"` // Currency for all amounts CurrencyId string `protobuf:"bytes,110,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"` // Sum all amount for all items (excluding VAT and sales tax) TotalAmountExclTaxes float32 `` /* 129-byte string literal not displayed */ // VAT amount for all items (applicable for Entity GmbH) TotalVat float32 `protobuf:"fixed32,112,opt,name=total_vat,json=totalVat,proto3" json:"total_vat,omitempty"` // If set, the VAT reverse charge rule is applied for this invoice. VatReverseCharge bool `protobuf:"varint,114,opt,name=vat_reverse_charge,json=vatReverseCharge,proto3" json:"vat_reverse_charge,omitempty"` // The VAT percentage used VatPercentageUsed float32 `protobuf:"fixed32,115,opt,name=vat_percentage_used,json=vatPercentageUsed,proto3" json:"vat_percentage_used,omitempty"` // Sales tax amount for all items (applicable for Entity Inc.) TotalSalesTax float32 `protobuf:"fixed32,116,opt,name=total_sales_tax,json=totalSalesTax,proto3" json:"total_sales_tax,omitempty"` // The sales tax percentage used SalesTaxPercentageUsed float32 `` /* 135-byte string literal not displayed */ // Sum of total_amount_excl_taxes + total_vat + total_sales_tax. // This is the amount that the customer will be charged for. TotalAmountInclTaxes float32 `` /* 129-byte string literal not displayed */ Status *Invoice_Status `protobuf:"bytes,200,opt,name=status,proto3" json:"status,omitempty"` // All payment attempts for this invoice, ordered by created_at. Payments []*Invoice_Payment `protobuf:"bytes,201,rep,name=payments,proto3" json:"payments,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An Invoice message describes a transaction for usage of ArangoDB Oasis.
func (*Invoice) Descriptor ¶
func (*Invoice) GetCreatedAt ¶
func (*Invoice) GetCurrencyId ¶
func (*Invoice) GetEmailAddresses ¶
func (*Invoice) GetEntityId ¶
func (*Invoice) GetEntityName ¶
func (*Invoice) GetInvoiceBuilderVersion ¶
func (*Invoice) GetInvoiceNumber ¶
func (*Invoice) GetItems ¶
func (m *Invoice) GetItems() []*Invoice_Item
func (*Invoice) GetLastUpdatedAt ¶
func (*Invoice) GetOrganizationId ¶
func (*Invoice) GetOrganizationName ¶
func (*Invoice) GetPayments ¶
func (m *Invoice) GetPayments() []*Invoice_Payment
func (*Invoice) GetPurchaseOrderBased ¶
func (*Invoice) GetRequiresManualVerification ¶
func (*Invoice) GetSalesTaxPercentageUsed ¶
func (*Invoice) GetStatus ¶
func (m *Invoice) GetStatus() *Invoice_Status
func (*Invoice) GetTotalAmountExclTaxes ¶
func (*Invoice) GetTotalAmountInclTaxes ¶
func (*Invoice) GetTotalSalesTax ¶
func (*Invoice) GetTotalVat ¶
func (*Invoice) GetVatPercentageUsed ¶
func (*Invoice) GetVatReverseCharge ¶
func (*Invoice) MarshalToSizedBuffer ¶
func (*Invoice) ProtoMessage ¶
func (*Invoice) ProtoMessage()
func (*Invoice) XXX_DiscardUnknown ¶
func (m *Invoice) XXX_DiscardUnknown()
func (*Invoice) XXX_Marshal ¶
func (*Invoice) XXX_Unmarshal ¶
type InvoiceCallback ¶
InvoiceCallback is a callback for individual invoices.
type InvoiceList ¶
type InvoiceList struct { Items []*Invoice `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List of Invoices.
func (*InvoiceList) Descriptor ¶
func (*InvoiceList) Descriptor() ([]byte, []int)
func (*InvoiceList) GetItems ¶
func (m *InvoiceList) GetItems() []*Invoice
func (*InvoiceList) Marshal ¶
func (m *InvoiceList) Marshal() (dAtA []byte, err error)
func (*InvoiceList) MarshalToSizedBuffer ¶
func (m *InvoiceList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InvoiceList) ProtoMessage ¶
func (*InvoiceList) ProtoMessage()
func (*InvoiceList) Reset ¶
func (m *InvoiceList) Reset()
func (*InvoiceList) Size ¶
func (m *InvoiceList) Size() (n int)
func (*InvoiceList) String ¶
func (m *InvoiceList) String() string
func (*InvoiceList) Unmarshal ¶
func (m *InvoiceList) Unmarshal(dAtA []byte) error
func (*InvoiceList) XXX_DiscardUnknown ¶
func (m *InvoiceList) XXX_DiscardUnknown()
func (*InvoiceList) XXX_Marshal ¶
func (m *InvoiceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InvoiceList) XXX_Merge ¶
func (m *InvoiceList) XXX_Merge(src proto.Message)
func (*InvoiceList) XXX_Size ¶
func (m *InvoiceList) XXX_Size() int
func (*InvoiceList) XXX_Unmarshal ¶
func (m *InvoiceList) XXX_Unmarshal(b []byte) error
type Invoice_Item ¶
type Invoice_Item struct { // Identifiers of the UsageItems that this item covers. UsageitemIds []string `protobuf:"bytes,4,rep,name=usageitem_ids,json=usageitemIds,proto3" json:"usageitem_ids,omitempty"` // Amount of money (ex VAT) for this item Amount float32 `protobuf:"fixed32,2,opt,name=amount,proto3" json:"amount,omitempty"` // Human readable description of this item Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // If set, this invoice item is already prepaid IsPrepaid bool `protobuf:"varint,5,opt,name=is_prepaid,json=isPrepaid,proto3" json:"is_prepaid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A single item of the invoice
func (*Invoice_Item) Descriptor ¶
func (*Invoice_Item) Descriptor() ([]byte, []int)
func (*Invoice_Item) GetAmount ¶
func (m *Invoice_Item) GetAmount() float32
func (*Invoice_Item) GetDescription ¶
func (m *Invoice_Item) GetDescription() string
func (*Invoice_Item) GetIsPrepaid ¶ added in v0.70.0
func (m *Invoice_Item) GetIsPrepaid() bool
func (*Invoice_Item) GetUsageitemIds ¶
func (m *Invoice_Item) GetUsageitemIds() []string
func (*Invoice_Item) Marshal ¶
func (m *Invoice_Item) Marshal() (dAtA []byte, err error)
func (*Invoice_Item) MarshalToSizedBuffer ¶
func (m *Invoice_Item) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Invoice_Item) ProtoMessage ¶
func (*Invoice_Item) ProtoMessage()
func (*Invoice_Item) Reset ¶
func (m *Invoice_Item) Reset()
func (*Invoice_Item) Size ¶
func (m *Invoice_Item) Size() (n int)
func (*Invoice_Item) String ¶
func (m *Invoice_Item) String() string
func (*Invoice_Item) Unmarshal ¶
func (m *Invoice_Item) Unmarshal(dAtA []byte) error
func (*Invoice_Item) XXX_DiscardUnknown ¶
func (m *Invoice_Item) XXX_DiscardUnknown()
func (*Invoice_Item) XXX_Marshal ¶
func (m *Invoice_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Invoice_Item) XXX_Merge ¶
func (m *Invoice_Item) XXX_Merge(src proto.Message)
func (*Invoice_Item) XXX_Size ¶
func (m *Invoice_Item) XXX_Size() int
func (*Invoice_Item) XXX_Unmarshal ¶
func (m *Invoice_Item) XXX_Unmarshal(b []byte) error
type Invoice_Payment ¶
type Invoice_Payment struct { // The timestamp of the start of the payment attempt. CreatedAt *types.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Identifier of the payment provider that is used for this payment. PaymentProviderId string `protobuf:"bytes,2,opt,name=payment_provider_id,json=paymentProviderId,proto3" json:"payment_provider_id,omitempty"` // Identifier of this payment (created by payment provider) PaymentId string `protobuf:"bytes,3,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` // Identifier of the payment method that is used for this payment. PaymentMethodId string `protobuf:"bytes,4,opt,name=payment_method_id,json=paymentMethodId,proto3" json:"payment_method_id,omitempty"` // If set, this payment is still being processed. IsPending bool `protobuf:"varint,10,opt,name=is_pending,json=isPending,proto3" json:"is_pending,omitempty"` // If set, this payment has been payed for succesfully. IsCompleted bool `protobuf:"varint,11,opt,name=is_completed,json=isCompleted,proto3" json:"is_completed,omitempty"` // If set, this payment has been rejected. IsRejected bool `protobuf:"varint,12,opt,name=is_rejected,json=isRejected,proto3" json:"is_rejected,omitempty"` // The timestamp of succesfull completion of the payment. CompletedAt *types.Timestamp `protobuf:"bytes,20,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"` // The timestamp of rejected completion of the payment. RejectedAt *types.Timestamp `protobuf:"bytes,21,opt,name=rejected_at,json=rejectedAt,proto3" json:"rejected_at,omitempty"` // Human readable reason for the rejection. RejectionReason string `protobuf:"bytes,22,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"` // If the currency of the payment method differs from the currency of the // invoice, the amount is converted from the currency of the invoice // to the currency of the payment method. // If such a converted was needed, this field is set to the currency // of the payment method. ConvertedCurrencyId string `protobuf:"bytes,30,opt,name=converted_currency_id,json=convertedCurrencyId,proto3" json:"converted_currency_id,omitempty"` // If the converted_currency_id is non-empty, this field it set to the // the amount (in converted currency) that the customer is charged for. // This is the total_amount_incl_taxes converted into the payment // method currency. ConvertedAmount float32 `protobuf:"fixed32,31,opt,name=converted_amount,json=convertedAmount,proto3" json:"converted_amount,omitempty"` // Amount in the invoice currency that was paid with this payment // If it's 0, it is assumed that this is a full amount of the invoice Amount float32 `protobuf:"fixed32,32,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Payment (attempt) of the invoice
func (*Invoice_Payment) Descriptor ¶
func (*Invoice_Payment) Descriptor() ([]byte, []int)
func (*Invoice_Payment) GetAmount ¶ added in v0.74.3
func (m *Invoice_Payment) GetAmount() float32
func (*Invoice_Payment) GetCompletedAt ¶
func (m *Invoice_Payment) GetCompletedAt() *types.Timestamp
func (*Invoice_Payment) GetConvertedAmount ¶ added in v0.51.0
func (m *Invoice_Payment) GetConvertedAmount() float32
func (*Invoice_Payment) GetConvertedCurrencyId ¶ added in v0.51.0
func (m *Invoice_Payment) GetConvertedCurrencyId() string
func (*Invoice_Payment) GetCreatedAt ¶
func (m *Invoice_Payment) GetCreatedAt() *types.Timestamp
func (*Invoice_Payment) GetIsCompleted ¶
func (m *Invoice_Payment) GetIsCompleted() bool
func (*Invoice_Payment) GetIsPending ¶
func (m *Invoice_Payment) GetIsPending() bool
func (*Invoice_Payment) GetIsRejected ¶
func (m *Invoice_Payment) GetIsRejected() bool
func (*Invoice_Payment) GetPaymentId ¶
func (m *Invoice_Payment) GetPaymentId() string
func (*Invoice_Payment) GetPaymentMethodId ¶
func (m *Invoice_Payment) GetPaymentMethodId() string
func (*Invoice_Payment) GetPaymentProviderId ¶
func (m *Invoice_Payment) GetPaymentProviderId() string
func (*Invoice_Payment) GetRejectedAt ¶
func (m *Invoice_Payment) GetRejectedAt() *types.Timestamp
func (*Invoice_Payment) GetRejectionReason ¶
func (m *Invoice_Payment) GetRejectionReason() string
func (*Invoice_Payment) Marshal ¶
func (m *Invoice_Payment) Marshal() (dAtA []byte, err error)
func (*Invoice_Payment) MarshalToSizedBuffer ¶
func (m *Invoice_Payment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Invoice_Payment) ProtoMessage ¶
func (*Invoice_Payment) ProtoMessage()
func (*Invoice_Payment) Reset ¶
func (m *Invoice_Payment) Reset()
func (*Invoice_Payment) Size ¶
func (m *Invoice_Payment) Size() (n int)
func (*Invoice_Payment) String ¶
func (m *Invoice_Payment) String() string
func (*Invoice_Payment) Unmarshal ¶
func (m *Invoice_Payment) Unmarshal(dAtA []byte) error
func (*Invoice_Payment) XXX_DiscardUnknown ¶
func (m *Invoice_Payment) XXX_DiscardUnknown()
func (*Invoice_Payment) XXX_Marshal ¶
func (m *Invoice_Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Invoice_Payment) XXX_Merge ¶
func (m *Invoice_Payment) XXX_Merge(src proto.Message)
func (*Invoice_Payment) XXX_Size ¶
func (m *Invoice_Payment) XXX_Size() int
func (*Invoice_Payment) XXX_Unmarshal ¶
func (m *Invoice_Payment) XXX_Unmarshal(b []byte) error
type Invoice_Status ¶
type Invoice_Status struct { // If set, this invoice is still being processed. IsPending bool `protobuf:"varint,1,opt,name=is_pending,json=isPending,proto3" json:"is_pending,omitempty"` // If set, a successful payment has been made for this invoice. IsCompleted bool `protobuf:"varint,2,opt,name=is_completed,json=isCompleted,proto3" json:"is_completed,omitempty"` // If set, all payment attempts for this invoice have been rejected. IsRejected bool `protobuf:"varint,3,opt,name=is_rejected,json=isRejected,proto3" json:"is_rejected,omitempty"` // If set, this invoice has been verified manually. IsVerified bool `protobuf:"varint,4,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"` // If set, this payment needs to be rebuild (by the invoice-builder service). // If set, is_completed & is_rejected must be false. NeedsRebuild bool `protobuf:"varint,5,opt,name=needs_rebuild,json=needsRebuild,proto3" json:"needs_rebuild,omitempty"` // The timestamp of succesfull completion of the payment. // This field equals the completed_at field of the last payment if // that payment succeeded, nil otherwise. CompletedAt *types.Timestamp `protobuf:"bytes,10,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"` // The timestamp of rejected completion of the payment. // This field equals the rejected_at field of the last payment if // that payment failed, nil otherwise. RejectedAt *types.Timestamp `protobuf:"bytes,11,opt,name=rejected_at,json=rejectedAt,proto3" json:"rejected_at,omitempty"` // Human readable reason for the completion. CompletionReason string `protobuf:"bytes,12,opt,name=completion_reason,json=completionReason,proto3" json:"completion_reason,omitempty"` // Human readable reason for the rejection. RejectionReason string `protobuf:"bytes,13,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"` // Identifier of user who completed this invoice. CompletedBy string `protobuf:"bytes,14,opt,name=completed_by,json=completedBy,proto3" json:"completed_by,omitempty"` // Identifier of user who rejected this invoice. RejectedBy string `protobuf:"bytes,15,opt,name=rejected_by,json=rejectedBy,proto3" json:"rejected_by,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Status of the invoice
func (*Invoice_Status) Descriptor ¶
func (*Invoice_Status) Descriptor() ([]byte, []int)
func (*Invoice_Status) GetCompletedAt ¶
func (m *Invoice_Status) GetCompletedAt() *types.Timestamp
func (*Invoice_Status) GetCompletedBy ¶
func (m *Invoice_Status) GetCompletedBy() string
func (*Invoice_Status) GetCompletionReason ¶
func (m *Invoice_Status) GetCompletionReason() string
func (*Invoice_Status) GetIsCompleted ¶
func (m *Invoice_Status) GetIsCompleted() bool
func (*Invoice_Status) GetIsPending ¶
func (m *Invoice_Status) GetIsPending() bool
func (*Invoice_Status) GetIsRejected ¶
func (m *Invoice_Status) GetIsRejected() bool
func (*Invoice_Status) GetIsVerified ¶
func (m *Invoice_Status) GetIsVerified() bool
func (*Invoice_Status) GetNeedsRebuild ¶
func (m *Invoice_Status) GetNeedsRebuild() bool
func (*Invoice_Status) GetRejectedAt ¶
func (m *Invoice_Status) GetRejectedAt() *types.Timestamp
func (*Invoice_Status) GetRejectedBy ¶
func (m *Invoice_Status) GetRejectedBy() string
func (*Invoice_Status) GetRejectionReason ¶
func (m *Invoice_Status) GetRejectionReason() string
func (*Invoice_Status) Marshal ¶
func (m *Invoice_Status) Marshal() (dAtA []byte, err error)
func (*Invoice_Status) MarshalToSizedBuffer ¶
func (m *Invoice_Status) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Invoice_Status) ProtoMessage ¶
func (*Invoice_Status) ProtoMessage()
func (*Invoice_Status) Reset ¶
func (m *Invoice_Status) Reset()
func (*Invoice_Status) Size ¶
func (m *Invoice_Status) Size() (n int)
func (*Invoice_Status) String ¶
func (m *Invoice_Status) String() string
func (*Invoice_Status) Unmarshal ¶
func (m *Invoice_Status) Unmarshal(dAtA []byte) error
func (*Invoice_Status) XXX_DiscardUnknown ¶
func (m *Invoice_Status) XXX_DiscardUnknown()
func (*Invoice_Status) XXX_Marshal ¶
func (m *Invoice_Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Invoice_Status) XXX_Merge ¶
func (m *Invoice_Status) XXX_Merge(src proto.Message)
func (*Invoice_Status) XXX_Size ¶
func (m *Invoice_Status) XXX_Size() int
func (*Invoice_Status) XXX_Unmarshal ¶
func (m *Invoice_Status) XXX_Unmarshal(b []byte) error
type ListInvoicesRequest ¶
type ListInvoicesRequest struct { // Request invoices for the organization with this id. // This is a required field. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Request invoices that are created at or after this timestamp. // This is an optional field. From *types.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // Request invoices that are created before this timestamp. // This is an optional field. To *types.Timestamp `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` // Standard list options // This is an optional field. Options *v1.ListOptions `protobuf:"bytes,10,opt,name=options,proto3" json:"options,omitempty"` // Whether or not to include the usage item IDs on every Invoice_Item in the returned Invoices. // This is an optional field; usage item IDs are not included by default. IncludeUsageitemIds bool `protobuf:"varint,20,opt,name=include_usageitem_ids,json=includeUsageitemIds,proto3" json:"include_usageitem_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request arguments for ListInvoices
func (*ListInvoicesRequest) Descriptor ¶
func (*ListInvoicesRequest) Descriptor() ([]byte, []int)
func (*ListInvoicesRequest) GetFrom ¶
func (m *ListInvoicesRequest) GetFrom() *types.Timestamp
func (*ListInvoicesRequest) GetIncludeUsageitemIds ¶ added in v0.73.13
func (m *ListInvoicesRequest) GetIncludeUsageitemIds() bool
func (*ListInvoicesRequest) GetOptions ¶
func (m *ListInvoicesRequest) GetOptions() *v1.ListOptions
func (*ListInvoicesRequest) GetOrganizationId ¶
func (m *ListInvoicesRequest) GetOrganizationId() string
func (*ListInvoicesRequest) GetTo ¶
func (m *ListInvoicesRequest) GetTo() *types.Timestamp
func (*ListInvoicesRequest) Marshal ¶
func (m *ListInvoicesRequest) Marshal() (dAtA []byte, err error)
func (*ListInvoicesRequest) MarshalTo ¶
func (m *ListInvoicesRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListInvoicesRequest) MarshalToSizedBuffer ¶
func (m *ListInvoicesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListInvoicesRequest) ProtoMessage ¶
func (*ListInvoicesRequest) ProtoMessage()
func (*ListInvoicesRequest) Reset ¶
func (m *ListInvoicesRequest) Reset()
func (*ListInvoicesRequest) Size ¶
func (m *ListInvoicesRequest) Size() (n int)
func (*ListInvoicesRequest) String ¶
func (m *ListInvoicesRequest) String() string
func (*ListInvoicesRequest) Unmarshal ¶
func (m *ListInvoicesRequest) Unmarshal(dAtA []byte) error
func (*ListInvoicesRequest) XXX_DiscardUnknown ¶
func (m *ListInvoicesRequest) XXX_DiscardUnknown()
func (*ListInvoicesRequest) XXX_Marshal ¶
func (m *ListInvoicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListInvoicesRequest) XXX_Merge ¶
func (m *ListInvoicesRequest) XXX_Merge(src proto.Message)
func (*ListInvoicesRequest) XXX_Size ¶
func (m *ListInvoicesRequest) XXX_Size() int
func (*ListInvoicesRequest) XXX_Unmarshal ¶
func (m *ListInvoicesRequest) XXX_Unmarshal(b []byte) error
type ListPaymentMethodsRequest ¶
type ListPaymentMethodsRequest struct { // Identifier of the organization for which payment methods are requested. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Optional common list options. (Context ID is ignored) Options *v1.ListOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request arguments for ListPaymentMethods
func (*ListPaymentMethodsRequest) Descriptor ¶
func (*ListPaymentMethodsRequest) Descriptor() ([]byte, []int)
func (*ListPaymentMethodsRequest) GetOptions ¶
func (m *ListPaymentMethodsRequest) GetOptions() *v1.ListOptions
func (*ListPaymentMethodsRequest) GetOrganizationId ¶
func (m *ListPaymentMethodsRequest) GetOrganizationId() string
func (*ListPaymentMethodsRequest) Marshal ¶
func (m *ListPaymentMethodsRequest) Marshal() (dAtA []byte, err error)
func (*ListPaymentMethodsRequest) MarshalTo ¶
func (m *ListPaymentMethodsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListPaymentMethodsRequest) MarshalToSizedBuffer ¶
func (m *ListPaymentMethodsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListPaymentMethodsRequest) ProtoMessage ¶
func (*ListPaymentMethodsRequest) ProtoMessage()
func (*ListPaymentMethodsRequest) Reset ¶
func (m *ListPaymentMethodsRequest) Reset()
func (*ListPaymentMethodsRequest) Size ¶
func (m *ListPaymentMethodsRequest) Size() (n int)
func (*ListPaymentMethodsRequest) String ¶
func (m *ListPaymentMethodsRequest) String() string
func (*ListPaymentMethodsRequest) Unmarshal ¶
func (m *ListPaymentMethodsRequest) Unmarshal(dAtA []byte) error
func (*ListPaymentMethodsRequest) XXX_DiscardUnknown ¶
func (m *ListPaymentMethodsRequest) XXX_DiscardUnknown()
func (*ListPaymentMethodsRequest) XXX_Marshal ¶
func (m *ListPaymentMethodsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPaymentMethodsRequest) XXX_Merge ¶
func (m *ListPaymentMethodsRequest) XXX_Merge(src proto.Message)
func (*ListPaymentMethodsRequest) XXX_Size ¶
func (m *ListPaymentMethodsRequest) XXX_Size() int
func (*ListPaymentMethodsRequest) XXX_Unmarshal ¶
func (m *ListPaymentMethodsRequest) XXX_Unmarshal(b []byte) error
type ListPaymentProvidersRequest ¶
type ListPaymentProvidersRequest struct { // Identifier of the organization for which payment providers are requested. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Optional common list options. (Context ID is ignored) Options *v1.ListOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` // If set to true, also return include internal payment providers, for whom users can't create payment methods. IncludeInternal bool `protobuf:"varint,3,opt,name=include_internal,json=includeInternal,proto3" json:"include_internal,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request arguments for ListPaymentProviders
func (*ListPaymentProvidersRequest) Descriptor ¶
func (*ListPaymentProvidersRequest) Descriptor() ([]byte, []int)
func (*ListPaymentProvidersRequest) GetIncludeInternal ¶ added in v0.74.5
func (m *ListPaymentProvidersRequest) GetIncludeInternal() bool
func (*ListPaymentProvidersRequest) GetOptions ¶
func (m *ListPaymentProvidersRequest) GetOptions() *v1.ListOptions
func (*ListPaymentProvidersRequest) GetOrganizationId ¶
func (m *ListPaymentProvidersRequest) GetOrganizationId() string
func (*ListPaymentProvidersRequest) Marshal ¶
func (m *ListPaymentProvidersRequest) Marshal() (dAtA []byte, err error)
func (*ListPaymentProvidersRequest) MarshalTo ¶
func (m *ListPaymentProvidersRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListPaymentProvidersRequest) MarshalToSizedBuffer ¶
func (m *ListPaymentProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListPaymentProvidersRequest) ProtoMessage ¶
func (*ListPaymentProvidersRequest) ProtoMessage()
func (*ListPaymentProvidersRequest) Reset ¶
func (m *ListPaymentProvidersRequest) Reset()
func (*ListPaymentProvidersRequest) Size ¶
func (m *ListPaymentProvidersRequest) Size() (n int)
func (*ListPaymentProvidersRequest) String ¶
func (m *ListPaymentProvidersRequest) String() string
func (*ListPaymentProvidersRequest) Unmarshal ¶
func (m *ListPaymentProvidersRequest) Unmarshal(dAtA []byte) error
func (*ListPaymentProvidersRequest) XXX_DiscardUnknown ¶
func (m *ListPaymentProvidersRequest) XXX_DiscardUnknown()
func (*ListPaymentProvidersRequest) XXX_Marshal ¶
func (m *ListPaymentProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPaymentProvidersRequest) XXX_Merge ¶
func (m *ListPaymentProvidersRequest) XXX_Merge(src proto.Message)
func (*ListPaymentProvidersRequest) XXX_Size ¶
func (m *ListPaymentProvidersRequest) XXX_Size() int
func (*ListPaymentProvidersRequest) XXX_Unmarshal ¶
func (m *ListPaymentProvidersRequest) XXX_Unmarshal(b []byte) error
type OrganizationBillingFlags ¶
type OrganizationBillingFlags struct { // If set, this organization is allowed to list invoices. IsAllowedToListInvoices bool `` /* 137-byte string literal not displayed */ // If set, this organization is allowed to create/list/update payment methods. IsAllowedToAccessPaymentMethods bool `` /* 163-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Billing specific organization flags
func (*OrganizationBillingFlags) Descriptor ¶
func (*OrganizationBillingFlags) Descriptor() ([]byte, []int)
func (*OrganizationBillingFlags) GetIsAllowedToAccessPaymentMethods ¶
func (m *OrganizationBillingFlags) GetIsAllowedToAccessPaymentMethods() bool
func (*OrganizationBillingFlags) GetIsAllowedToListInvoices ¶
func (m *OrganizationBillingFlags) GetIsAllowedToListInvoices() bool
func (*OrganizationBillingFlags) Marshal ¶
func (m *OrganizationBillingFlags) Marshal() (dAtA []byte, err error)
func (*OrganizationBillingFlags) MarshalTo ¶
func (m *OrganizationBillingFlags) MarshalTo(dAtA []byte) (int, error)
func (*OrganizationBillingFlags) MarshalToSizedBuffer ¶
func (m *OrganizationBillingFlags) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrganizationBillingFlags) ProtoMessage ¶
func (*OrganizationBillingFlags) ProtoMessage()
func (*OrganizationBillingFlags) Reset ¶
func (m *OrganizationBillingFlags) Reset()
func (*OrganizationBillingFlags) Size ¶
func (m *OrganizationBillingFlags) Size() (n int)
func (*OrganizationBillingFlags) String ¶
func (m *OrganizationBillingFlags) String() string
func (*OrganizationBillingFlags) Unmarshal ¶
func (m *OrganizationBillingFlags) Unmarshal(dAtA []byte) error
func (*OrganizationBillingFlags) XXX_DiscardUnknown ¶
func (m *OrganizationBillingFlags) XXX_DiscardUnknown()
func (*OrganizationBillingFlags) XXX_Marshal ¶
func (m *OrganizationBillingFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrganizationBillingFlags) XXX_Merge ¶
func (m *OrganizationBillingFlags) XXX_Merge(src proto.Message)
func (*OrganizationBillingFlags) XXX_Size ¶
func (m *OrganizationBillingFlags) XXX_Size() int
func (*OrganizationBillingFlags) XXX_Unmarshal ¶
func (m *OrganizationBillingFlags) XXX_Unmarshal(b []byte) error
type PDFDocument ¶
type PDFDocument struct { // Content of the document Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // Filename of the document Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PDFDocument) Descriptor ¶
func (*PDFDocument) Descriptor() ([]byte, []int)
func (*PDFDocument) GetContent ¶
func (m *PDFDocument) GetContent() []byte
func (*PDFDocument) GetFilename ¶
func (m *PDFDocument) GetFilename() string
func (*PDFDocument) Marshal ¶
func (m *PDFDocument) Marshal() (dAtA []byte, err error)
func (*PDFDocument) MarshalToSizedBuffer ¶
func (m *PDFDocument) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PDFDocument) ProtoMessage ¶
func (*PDFDocument) ProtoMessage()
func (*PDFDocument) Reset ¶
func (m *PDFDocument) Reset()
func (*PDFDocument) Size ¶
func (m *PDFDocument) Size() (n int)
func (*PDFDocument) String ¶
func (m *PDFDocument) String() string
func (*PDFDocument) Unmarshal ¶
func (m *PDFDocument) Unmarshal(dAtA []byte) error
func (*PDFDocument) XXX_DiscardUnknown ¶
func (m *PDFDocument) XXX_DiscardUnknown()
func (*PDFDocument) XXX_Marshal ¶
func (m *PDFDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PDFDocument) XXX_Merge ¶
func (m *PDFDocument) XXX_Merge(src proto.Message)
func (*PDFDocument) XXX_Size ¶
func (m *PDFDocument) XXX_Size() int
func (*PDFDocument) XXX_Unmarshal ¶
func (m *PDFDocument) XXX_Unmarshal(b []byte) error
type PaymentMethod ¶
type PaymentMethod struct { // System identifier of this payment method. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Name of the payment method Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Description of the payment method Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Identifier of the payment provider used for this payment method // This is a read-only field. PaymentProviderId string `protobuf:"bytes,4,opt,name=payment_provider_id,json=paymentProviderId,proto3" json:"payment_provider_id,omitempty"` // Identifier of the organization that owns this payment method // This is a read-only field. OrganizationId string `protobuf:"bytes,5,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Creation timestamp of this payment method // This is a read-only field. CreatedAt *types.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Deletion timestamp of this payment method // This is a read-only field. DeletedAt *types.Timestamp `protobuf:"bytes,11,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // Set if the payment method is deleted. // This is a read-only field. IsDeleted bool `protobuf:"varint,12,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` // If set, this timestamp specifies when the payment method is no longer valid. // If not set, there is no (known) end date for this payment method. ValidUntil *types.Timestamp `protobuf:"bytes,13,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` // Token for this payment method, provided by the payment provider. // This is a read-only field. Token string `protobuf:"bytes,14,opt,name=token,proto3" json:"token,omitempty"` // Type of payment method Type string `protobuf:"bytes,15,opt,name=type,proto3" json:"type,omitempty"` // If set, this payment method is the default for its organization. // This is a read-only field. IsDefault bool `protobuf:"varint,16,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` // Currency for invoices using this payment method CurrencyId string `protobuf:"bytes,17,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"` CreditCardInfo *PaymentMethod_CreditCardInfo `protobuf:"bytes,101,opt,name=credit_card_info,json=creditCardInfo,proto3" json:"credit_card_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Payment methods are specific methods for paying at a specific payment provider such as a specific credit card.
func (*PaymentMethod) Descriptor ¶
func (*PaymentMethod) Descriptor() ([]byte, []int)
func (*PaymentMethod) GetCreatedAt ¶
func (m *PaymentMethod) GetCreatedAt() *types.Timestamp
func (*PaymentMethod) GetCreditCardInfo ¶
func (m *PaymentMethod) GetCreditCardInfo() *PaymentMethod_CreditCardInfo
func (*PaymentMethod) GetCurrencyId ¶ added in v0.51.0
func (m *PaymentMethod) GetCurrencyId() string
func (*PaymentMethod) GetDeletedAt ¶
func (m *PaymentMethod) GetDeletedAt() *types.Timestamp
func (*PaymentMethod) GetDescription ¶
func (m *PaymentMethod) GetDescription() string
func (*PaymentMethod) GetId ¶
func (m *PaymentMethod) GetId() string
func (*PaymentMethod) GetIsDefault ¶
func (m *PaymentMethod) GetIsDefault() bool
func (*PaymentMethod) GetIsDeleted ¶
func (m *PaymentMethod) GetIsDeleted() bool
func (*PaymentMethod) GetName ¶
func (m *PaymentMethod) GetName() string
func (*PaymentMethod) GetOrganizationId ¶
func (m *PaymentMethod) GetOrganizationId() string
func (*PaymentMethod) GetPaymentProviderId ¶
func (m *PaymentMethod) GetPaymentProviderId() string
func (*PaymentMethod) GetToken ¶
func (m *PaymentMethod) GetToken() string
func (*PaymentMethod) GetType ¶
func (m *PaymentMethod) GetType() string
func (*PaymentMethod) GetValidUntil ¶
func (m *PaymentMethod) GetValidUntil() *types.Timestamp
func (*PaymentMethod) Marshal ¶
func (m *PaymentMethod) Marshal() (dAtA []byte, err error)
func (*PaymentMethod) MarshalToSizedBuffer ¶
func (m *PaymentMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PaymentMethod) ProtoMessage ¶
func (*PaymentMethod) ProtoMessage()
func (*PaymentMethod) Reset ¶
func (m *PaymentMethod) Reset()
func (*PaymentMethod) Size ¶
func (m *PaymentMethod) Size() (n int)
func (*PaymentMethod) String ¶
func (m *PaymentMethod) String() string
func (*PaymentMethod) Unmarshal ¶
func (m *PaymentMethod) Unmarshal(dAtA []byte) error
func (*PaymentMethod) XXX_DiscardUnknown ¶
func (m *PaymentMethod) XXX_DiscardUnknown()
func (*PaymentMethod) XXX_Marshal ¶
func (m *PaymentMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaymentMethod) XXX_Merge ¶
func (m *PaymentMethod) XXX_Merge(src proto.Message)
func (*PaymentMethod) XXX_Size ¶
func (m *PaymentMethod) XXX_Size() int
func (*PaymentMethod) XXX_Unmarshal ¶
func (m *PaymentMethod) XXX_Unmarshal(b []byte) error
type PaymentMethodCallback ¶
type PaymentMethodCallback func(context.Context, *PaymentMethod) error
PaymentMethodCallback is a callback for individual payment methods.
type PaymentMethodList ¶
type PaymentMethodList struct { Items []*PaymentMethod `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List of Payment methods
func (*PaymentMethodList) Descriptor ¶
func (*PaymentMethodList) Descriptor() ([]byte, []int)
func (*PaymentMethodList) GetItems ¶
func (m *PaymentMethodList) GetItems() []*PaymentMethod
func (*PaymentMethodList) Marshal ¶
func (m *PaymentMethodList) Marshal() (dAtA []byte, err error)
func (*PaymentMethodList) MarshalTo ¶
func (m *PaymentMethodList) MarshalTo(dAtA []byte) (int, error)
func (*PaymentMethodList) MarshalToSizedBuffer ¶
func (m *PaymentMethodList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PaymentMethodList) ProtoMessage ¶
func (*PaymentMethodList) ProtoMessage()
func (*PaymentMethodList) Reset ¶
func (m *PaymentMethodList) Reset()
func (*PaymentMethodList) Size ¶
func (m *PaymentMethodList) Size() (n int)
func (*PaymentMethodList) String ¶
func (m *PaymentMethodList) String() string
func (*PaymentMethodList) Unmarshal ¶
func (m *PaymentMethodList) Unmarshal(dAtA []byte) error
func (*PaymentMethodList) XXX_DiscardUnknown ¶
func (m *PaymentMethodList) XXX_DiscardUnknown()
func (*PaymentMethodList) XXX_Marshal ¶
func (m *PaymentMethodList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaymentMethodList) XXX_Merge ¶
func (m *PaymentMethodList) XXX_Merge(src proto.Message)
func (*PaymentMethodList) XXX_Size ¶
func (m *PaymentMethodList) XXX_Size() int
func (*PaymentMethodList) XXX_Unmarshal ¶
func (m *PaymentMethodList) XXX_Unmarshal(b []byte) error
type PaymentMethod_CreditCardInfo ¶
type PaymentMethod_CreditCardInfo struct { // Last 4 digits of the CC number. LastDigits string `protobuf:"bytes,1,opt,name=last_digits,json=lastDigits,proto3" json:"last_digits,omitempty"` // Type of creditcard CardType string `protobuf:"bytes,2,opt,name=card_type,json=cardType,proto3" json:"card_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Information of the creditcard. Only set when type == "creditcard"
func (*PaymentMethod_CreditCardInfo) Descriptor ¶
func (*PaymentMethod_CreditCardInfo) Descriptor() ([]byte, []int)
func (*PaymentMethod_CreditCardInfo) GetCardType ¶
func (m *PaymentMethod_CreditCardInfo) GetCardType() string
func (*PaymentMethod_CreditCardInfo) GetLastDigits ¶
func (m *PaymentMethod_CreditCardInfo) GetLastDigits() string
func (*PaymentMethod_CreditCardInfo) Marshal ¶
func (m *PaymentMethod_CreditCardInfo) Marshal() (dAtA []byte, err error)
func (*PaymentMethod_CreditCardInfo) MarshalTo ¶
func (m *PaymentMethod_CreditCardInfo) MarshalTo(dAtA []byte) (int, error)
func (*PaymentMethod_CreditCardInfo) MarshalToSizedBuffer ¶
func (m *PaymentMethod_CreditCardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PaymentMethod_CreditCardInfo) ProtoMessage ¶
func (*PaymentMethod_CreditCardInfo) ProtoMessage()
func (*PaymentMethod_CreditCardInfo) Reset ¶
func (m *PaymentMethod_CreditCardInfo) Reset()
func (*PaymentMethod_CreditCardInfo) Size ¶
func (m *PaymentMethod_CreditCardInfo) Size() (n int)
func (*PaymentMethod_CreditCardInfo) String ¶
func (m *PaymentMethod_CreditCardInfo) String() string
func (*PaymentMethod_CreditCardInfo) Unmarshal ¶
func (m *PaymentMethod_CreditCardInfo) Unmarshal(dAtA []byte) error
func (*PaymentMethod_CreditCardInfo) XXX_DiscardUnknown ¶
func (m *PaymentMethod_CreditCardInfo) XXX_DiscardUnknown()
func (*PaymentMethod_CreditCardInfo) XXX_Marshal ¶
func (m *PaymentMethod_CreditCardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaymentMethod_CreditCardInfo) XXX_Merge ¶
func (m *PaymentMethod_CreditCardInfo) XXX_Merge(src proto.Message)
func (*PaymentMethod_CreditCardInfo) XXX_Size ¶
func (m *PaymentMethod_CreditCardInfo) XXX_Size() int
func (*PaymentMethod_CreditCardInfo) XXX_Unmarshal ¶
func (m *PaymentMethod_CreditCardInfo) XXX_Unmarshal(b []byte) error
type PaymentProvider ¶
type PaymentProvider struct { // System identifier of this payment provider. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Name of the payment provider Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Description of the payment provider Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Type of payment method supported by this provider Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Payment providers are services that handle payments.
func (*PaymentProvider) Descriptor ¶
func (*PaymentProvider) Descriptor() ([]byte, []int)
func (*PaymentProvider) GetDescription ¶
func (m *PaymentProvider) GetDescription() string
func (*PaymentProvider) GetId ¶
func (m *PaymentProvider) GetId() string
func (*PaymentProvider) GetName ¶
func (m *PaymentProvider) GetName() string
func (*PaymentProvider) GetType ¶
func (m *PaymentProvider) GetType() string
func (*PaymentProvider) Marshal ¶
func (m *PaymentProvider) Marshal() (dAtA []byte, err error)
func (*PaymentProvider) MarshalToSizedBuffer ¶
func (m *PaymentProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PaymentProvider) ProtoMessage ¶
func (*PaymentProvider) ProtoMessage()
func (*PaymentProvider) Reset ¶
func (m *PaymentProvider) Reset()
func (*PaymentProvider) Size ¶
func (m *PaymentProvider) Size() (n int)
func (*PaymentProvider) String ¶
func (m *PaymentProvider) String() string
func (*PaymentProvider) Unmarshal ¶
func (m *PaymentProvider) Unmarshal(dAtA []byte) error
func (*PaymentProvider) XXX_DiscardUnknown ¶
func (m *PaymentProvider) XXX_DiscardUnknown()
func (*PaymentProvider) XXX_Marshal ¶
func (m *PaymentProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaymentProvider) XXX_Merge ¶
func (m *PaymentProvider) XXX_Merge(src proto.Message)
func (*PaymentProvider) XXX_Size ¶
func (m *PaymentProvider) XXX_Size() int
func (*PaymentProvider) XXX_Unmarshal ¶
func (m *PaymentProvider) XXX_Unmarshal(b []byte) error
type PaymentProviderCallback ¶
type PaymentProviderCallback func(context.Context, *PaymentProvider) error
PaymentProviderCallback is a callback for individual payment providers.
type PaymentProviderList ¶
type PaymentProviderList struct { Items []*PaymentProvider `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List of Payment providers
func (*PaymentProviderList) Descriptor ¶
func (*PaymentProviderList) Descriptor() ([]byte, []int)
func (*PaymentProviderList) GetItems ¶
func (m *PaymentProviderList) GetItems() []*PaymentProvider
func (*PaymentProviderList) Marshal ¶
func (m *PaymentProviderList) Marshal() (dAtA []byte, err error)
func (*PaymentProviderList) MarshalTo ¶
func (m *PaymentProviderList) MarshalTo(dAtA []byte) (int, error)
func (*PaymentProviderList) MarshalToSizedBuffer ¶
func (m *PaymentProviderList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PaymentProviderList) ProtoMessage ¶
func (*PaymentProviderList) ProtoMessage()
func (*PaymentProviderList) Reset ¶
func (m *PaymentProviderList) Reset()
func (*PaymentProviderList) Size ¶
func (m *PaymentProviderList) Size() (n int)
func (*PaymentProviderList) String ¶
func (m *PaymentProviderList) String() string
func (*PaymentProviderList) Unmarshal ¶
func (m *PaymentProviderList) Unmarshal(dAtA []byte) error
func (*PaymentProviderList) XXX_DiscardUnknown ¶
func (m *PaymentProviderList) XXX_DiscardUnknown()
func (*PaymentProviderList) XXX_Marshal ¶
func (m *PaymentProviderList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaymentProviderList) XXX_Merge ¶
func (m *PaymentProviderList) XXX_Merge(src proto.Message)
func (*PaymentProviderList) XXX_Size ¶
func (m *PaymentProviderList) XXX_Size() int
func (*PaymentProviderList) XXX_Unmarshal ¶
func (m *PaymentProviderList) XXX_Unmarshal(b []byte) error
type PreparePaymentMethodRequest ¶
type PreparePaymentMethodRequest struct { // ID of the provider to prepare ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` // ID of the organization that will own the future payment method OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Currency for the future payment payment method CurrencyId string `protobuf:"bytes,3,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request arguments for PreparePaymentMethod.
func (*PreparePaymentMethodRequest) Descriptor ¶
func (*PreparePaymentMethodRequest) Descriptor() ([]byte, []int)
func (*PreparePaymentMethodRequest) GetCurrencyId ¶ added in v0.51.0
func (m *PreparePaymentMethodRequest) GetCurrencyId() string
func (*PreparePaymentMethodRequest) GetOrganizationId ¶
func (m *PreparePaymentMethodRequest) GetOrganizationId() string
func (*PreparePaymentMethodRequest) GetProviderId ¶
func (m *PreparePaymentMethodRequest) GetProviderId() string
func (*PreparePaymentMethodRequest) Marshal ¶
func (m *PreparePaymentMethodRequest) Marshal() (dAtA []byte, err error)
func (*PreparePaymentMethodRequest) MarshalTo ¶
func (m *PreparePaymentMethodRequest) MarshalTo(dAtA []byte) (int, error)
func (*PreparePaymentMethodRequest) MarshalToSizedBuffer ¶
func (m *PreparePaymentMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PreparePaymentMethodRequest) ProtoMessage ¶
func (*PreparePaymentMethodRequest) ProtoMessage()
func (*PreparePaymentMethodRequest) Reset ¶
func (m *PreparePaymentMethodRequest) Reset()
func (*PreparePaymentMethodRequest) Size ¶
func (m *PreparePaymentMethodRequest) Size() (n int)
func (*PreparePaymentMethodRequest) String ¶
func (m *PreparePaymentMethodRequest) String() string
func (*PreparePaymentMethodRequest) Unmarshal ¶
func (m *PreparePaymentMethodRequest) Unmarshal(dAtA []byte) error
func (*PreparePaymentMethodRequest) XXX_DiscardUnknown ¶
func (m *PreparePaymentMethodRequest) XXX_DiscardUnknown()
func (*PreparePaymentMethodRequest) XXX_Marshal ¶
func (m *PreparePaymentMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PreparePaymentMethodRequest) XXX_Merge ¶
func (m *PreparePaymentMethodRequest) XXX_Merge(src proto.Message)
func (*PreparePaymentMethodRequest) XXX_Size ¶
func (m *PreparePaymentMethodRequest) XXX_Size() int
func (*PreparePaymentMethodRequest) XXX_Unmarshal ¶
func (m *PreparePaymentMethodRequest) XXX_Unmarshal(b []byte) error
type PreparedPaymentMethod ¶
type PreparedPaymentMethod struct { // ID of the provider of the future payment method ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` // ID of the organization that will own the future payment method OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Currency for this payment method CurrencyId string `protobuf:"bytes,3,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"` // Token (semantics depends on payment provider) Token string `protobuf:"bytes,11,opt,name=token,proto3" json:"token,omitempty"` // URL of custom script to load to create the payment method ScriptUrl string `protobuf:"bytes,12,opt,name=script_url,json=scriptUrl,proto3" json:"script_url,omitempty"` // Signature used to verify the consistency of the data in this message. Signature string `protobuf:"bytes,101,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response data for PreparePaymentMethod.
func (*PreparedPaymentMethod) Descriptor ¶
func (*PreparedPaymentMethod) Descriptor() ([]byte, []int)
func (*PreparedPaymentMethod) GetCurrencyId ¶ added in v0.51.0
func (m *PreparedPaymentMethod) GetCurrencyId() string
func (*PreparedPaymentMethod) GetOrganizationId ¶
func (m *PreparedPaymentMethod) GetOrganizationId() string
func (*PreparedPaymentMethod) GetProviderId ¶
func (m *PreparedPaymentMethod) GetProviderId() string
func (*PreparedPaymentMethod) GetScriptUrl ¶
func (m *PreparedPaymentMethod) GetScriptUrl() string
func (*PreparedPaymentMethod) GetSignature ¶
func (m *PreparedPaymentMethod) GetSignature() string
func (*PreparedPaymentMethod) GetToken ¶
func (m *PreparedPaymentMethod) GetToken() string
func (*PreparedPaymentMethod) Marshal ¶
func (m *PreparedPaymentMethod) Marshal() (dAtA []byte, err error)
func (*PreparedPaymentMethod) MarshalTo ¶
func (m *PreparedPaymentMethod) MarshalTo(dAtA []byte) (int, error)
func (*PreparedPaymentMethod) MarshalToSizedBuffer ¶
func (m *PreparedPaymentMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PreparedPaymentMethod) ProtoMessage ¶
func (*PreparedPaymentMethod) ProtoMessage()
func (*PreparedPaymentMethod) Reset ¶
func (m *PreparedPaymentMethod) Reset()
func (*PreparedPaymentMethod) Size ¶
func (m *PreparedPaymentMethod) Size() (n int)
func (*PreparedPaymentMethod) String ¶
func (m *PreparedPaymentMethod) String() string
func (*PreparedPaymentMethod) Unmarshal ¶
func (m *PreparedPaymentMethod) Unmarshal(dAtA []byte) error
func (*PreparedPaymentMethod) XXX_DiscardUnknown ¶
func (m *PreparedPaymentMethod) XXX_DiscardUnknown()
func (*PreparedPaymentMethod) XXX_Marshal ¶
func (m *PreparedPaymentMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PreparedPaymentMethod) XXX_Merge ¶
func (m *PreparedPaymentMethod) XXX_Merge(src proto.Message)
func (*PreparedPaymentMethod) XXX_Size ¶
func (m *PreparedPaymentMethod) XXX_Size() int
func (*PreparedPaymentMethod) XXX_Unmarshal ¶
func (m *PreparedPaymentMethod) XXX_Unmarshal(b []byte) error
type SetBillingConfigRequest ¶
type SetBillingConfigRequest struct { // Identifier of the organization for which billing address is to be set. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Billing configuration to set. Config *BillingConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request arguments for SetBillingConfig.
func (*SetBillingConfigRequest) Descriptor ¶
func (*SetBillingConfigRequest) Descriptor() ([]byte, []int)
func (*SetBillingConfigRequest) GetConfig ¶
func (m *SetBillingConfigRequest) GetConfig() *BillingConfig
func (*SetBillingConfigRequest) GetOrganizationId ¶
func (m *SetBillingConfigRequest) GetOrganizationId() string
func (*SetBillingConfigRequest) Marshal ¶
func (m *SetBillingConfigRequest) Marshal() (dAtA []byte, err error)
func (*SetBillingConfigRequest) MarshalTo ¶
func (m *SetBillingConfigRequest) MarshalTo(dAtA []byte) (int, error)
func (*SetBillingConfigRequest) MarshalToSizedBuffer ¶
func (m *SetBillingConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetBillingConfigRequest) ProtoMessage ¶
func (*SetBillingConfigRequest) ProtoMessage()
func (*SetBillingConfigRequest) Reset ¶
func (m *SetBillingConfigRequest) Reset()
func (*SetBillingConfigRequest) Size ¶
func (m *SetBillingConfigRequest) Size() (n int)
func (*SetBillingConfigRequest) String ¶
func (m *SetBillingConfigRequest) String() string
func (*SetBillingConfigRequest) Unmarshal ¶
func (m *SetBillingConfigRequest) Unmarshal(dAtA []byte) error
func (*SetBillingConfigRequest) XXX_DiscardUnknown ¶
func (m *SetBillingConfigRequest) XXX_DiscardUnknown()
func (*SetBillingConfigRequest) XXX_Marshal ¶
func (m *SetBillingConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetBillingConfigRequest) XXX_Merge ¶
func (m *SetBillingConfigRequest) XXX_Merge(src proto.Message)
func (*SetBillingConfigRequest) XXX_Size ¶
func (m *SetBillingConfigRequest) XXX_Size() int
func (*SetBillingConfigRequest) XXX_Unmarshal ¶
func (m *SetBillingConfigRequest) XXX_Unmarshal(b []byte) error
type SetDefaultPaymentMethodRequest ¶
type SetDefaultPaymentMethodRequest struct { // Identifier of the organization for which the default payment method will be set. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Identifier of the new default payment method for the organization. PaymentMethodId string `protobuf:"bytes,2,opt,name=payment_method_id,json=paymentMethodId,proto3" json:"payment_method_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request argument for SetDefaultPaymentMethod
func (*SetDefaultPaymentMethodRequest) Descriptor ¶
func (*SetDefaultPaymentMethodRequest) Descriptor() ([]byte, []int)
func (*SetDefaultPaymentMethodRequest) GetOrganizationId ¶
func (m *SetDefaultPaymentMethodRequest) GetOrganizationId() string
func (*SetDefaultPaymentMethodRequest) GetPaymentMethodId ¶
func (m *SetDefaultPaymentMethodRequest) GetPaymentMethodId() string
func (*SetDefaultPaymentMethodRequest) Marshal ¶
func (m *SetDefaultPaymentMethodRequest) Marshal() (dAtA []byte, err error)
func (*SetDefaultPaymentMethodRequest) MarshalTo ¶
func (m *SetDefaultPaymentMethodRequest) MarshalTo(dAtA []byte) (int, error)
func (*SetDefaultPaymentMethodRequest) MarshalToSizedBuffer ¶
func (m *SetDefaultPaymentMethodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetDefaultPaymentMethodRequest) ProtoMessage ¶
func (*SetDefaultPaymentMethodRequest) ProtoMessage()
func (*SetDefaultPaymentMethodRequest) Reset ¶
func (m *SetDefaultPaymentMethodRequest) Reset()
func (*SetDefaultPaymentMethodRequest) Size ¶
func (m *SetDefaultPaymentMethodRequest) Size() (n int)
func (*SetDefaultPaymentMethodRequest) String ¶
func (m *SetDefaultPaymentMethodRequest) String() string
func (*SetDefaultPaymentMethodRequest) Unmarshal ¶
func (m *SetDefaultPaymentMethodRequest) Unmarshal(dAtA []byte) error
func (*SetDefaultPaymentMethodRequest) XXX_DiscardUnknown ¶
func (m *SetDefaultPaymentMethodRequest) XXX_DiscardUnknown()
func (*SetDefaultPaymentMethodRequest) XXX_Marshal ¶
func (m *SetDefaultPaymentMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetDefaultPaymentMethodRequest) XXX_Merge ¶
func (m *SetDefaultPaymentMethodRequest) XXX_Merge(src proto.Message)
func (*SetDefaultPaymentMethodRequest) XXX_Size ¶
func (m *SetDefaultPaymentMethodRequest) XXX_Size() int
func (*SetDefaultPaymentMethodRequest) XXX_Unmarshal ¶
func (m *SetDefaultPaymentMethodRequest) XXX_Unmarshal(b []byte) error
type UnimplementedBillingServiceServer ¶
type UnimplementedBillingServiceServer struct { }
UnimplementedBillingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBillingServiceServer) CreatePaymentMethod ¶
func (*UnimplementedBillingServiceServer) CreatePaymentMethod(ctx context.Context, req *CreatePaymentMethodRequest) (*PaymentMethod, error)
func (*UnimplementedBillingServiceServer) DeletePaymentMethod ¶
func (*UnimplementedBillingServiceServer) GetAPIVersion ¶
func (*UnimplementedBillingServiceServer) GetAvailableCredits ¶ added in v0.74.3
func (*UnimplementedBillingServiceServer) GetAvailableCredits(ctx context.Context, req *GetAvailableCreditsRequest) (*AvailableCredits, error)
func (*UnimplementedBillingServiceServer) GetBillingConfig ¶
func (*UnimplementedBillingServiceServer) GetBillingConfig(ctx context.Context, req *v1.IDOptions) (*BillingConfig, error)
func (*UnimplementedBillingServiceServer) GetDefaultPaymentMethod ¶
func (*UnimplementedBillingServiceServer) GetDefaultPaymentMethod(ctx context.Context, req *v1.IDOptions) (*PaymentMethod, error)
func (*UnimplementedBillingServiceServer) GetInvoice ¶
func (*UnimplementedBillingServiceServer) GetInvoicePDF ¶
func (*UnimplementedBillingServiceServer) GetInvoicePDF(ctx context.Context, req *v1.IDOptions) (*PDFDocument, error)
func (*UnimplementedBillingServiceServer) GetOrganizationBillingFlags ¶
func (*UnimplementedBillingServiceServer) GetOrganizationBillingFlags(ctx context.Context, req *v1.IDOptions) (*OrganizationBillingFlags, error)
func (*UnimplementedBillingServiceServer) GetPaymentMethod ¶
func (*UnimplementedBillingServiceServer) GetPaymentMethod(ctx context.Context, req *v1.IDOptions) (*PaymentMethod, error)
func (*UnimplementedBillingServiceServer) GetPaymentProvider ¶
func (*UnimplementedBillingServiceServer) GetPaymentProvider(ctx context.Context, req *v1.IDOptions) (*PaymentProvider, error)
func (*UnimplementedBillingServiceServer) GetPreliminaryInvoice ¶ added in v0.63.9
func (*UnimplementedBillingServiceServer) GetPreliminaryInvoice(ctx context.Context, req *GetPreliminaryInvoiceRequest) (*Invoice, error)
func (*UnimplementedBillingServiceServer) ListInvoices ¶
func (*UnimplementedBillingServiceServer) ListInvoices(ctx context.Context, req *ListInvoicesRequest) (*InvoiceList, error)
func (*UnimplementedBillingServiceServer) ListPaymentMethods ¶
func (*UnimplementedBillingServiceServer) ListPaymentMethods(ctx context.Context, req *ListPaymentMethodsRequest) (*PaymentMethodList, error)
func (*UnimplementedBillingServiceServer) ListPaymentProviders ¶
func (*UnimplementedBillingServiceServer) ListPaymentProviders(ctx context.Context, req *ListPaymentProvidersRequest) (*PaymentProviderList, error)
func (*UnimplementedBillingServiceServer) PreparePaymentMethod ¶
func (*UnimplementedBillingServiceServer) PreparePaymentMethod(ctx context.Context, req *PreparePaymentMethodRequest) (*PreparedPaymentMethod, error)
func (*UnimplementedBillingServiceServer) SetBillingConfig ¶
func (*UnimplementedBillingServiceServer) SetBillingConfig(ctx context.Context, req *SetBillingConfigRequest) (*v1.Empty, error)
func (*UnimplementedBillingServiceServer) SetDefaultPaymentMethod ¶
func (*UnimplementedBillingServiceServer) SetDefaultPaymentMethod(ctx context.Context, req *SetDefaultPaymentMethodRequest) (*v1.Empty, error)
func (*UnimplementedBillingServiceServer) UpdatePaymentMethod ¶
func (*UnimplementedBillingServiceServer) UpdatePaymentMethod(ctx context.Context, req *PaymentMethod) (*PaymentMethod, error)