Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterBillingServer(s grpc.ServiceRegistrar, srv BillingServer)
- type BillingClient
- type BillingServer
- type ExportGeneratedInvoiceReq
- func (*ExportGeneratedInvoiceReq) Descriptor() ([]byte, []int)deprecated
- func (x *ExportGeneratedInvoiceReq) GetFormat() InvoiceFormatdeprecated
- func (x *ExportGeneratedInvoiceReq) GetInvoiceDate() *timestamppb.Timestamp
- func (x *ExportGeneratedInvoiceReq) GetInvoiceFormat() billing.InvoiceFormat
- func (x *ExportGeneratedInvoiceReq) GetOrgId() string
- func (*ExportGeneratedInvoiceReq) ProtoMessage()
- func (x *ExportGeneratedInvoiceReq) ProtoReflect() protoreflect.Message
- func (x *ExportGeneratedInvoiceReq) Reset()
- func (x *ExportGeneratedInvoiceReq) String() string
- type ExportGeneratedInvoiceRes
- func (*ExportGeneratedInvoiceRes) Descriptor() ([]byte, []int)deprecated
- func (x *ExportGeneratedInvoiceRes) GetBillingCycle() string
- func (x *ExportGeneratedInvoiceRes) GetCsvUrl() stringdeprecated
- func (m *ExportGeneratedInvoiceRes) GetFormat() isExportGeneratedInvoiceRes_Format
- func (x *ExportGeneratedInvoiceRes) GetInvoiceCsvUrl() string
- func (m *ExportGeneratedInvoiceRes) GetInvoiceData() isExportGeneratedInvoiceRes_InvoiceData
- func (x *ExportGeneratedInvoiceRes) GetInvoiceProto() *billing.Invoice
- func (x *ExportGeneratedInvoiceRes) GetProto() *billing.Invoicedeprecated
- func (*ExportGeneratedInvoiceRes) ProtoMessage()
- func (x *ExportGeneratedInvoiceRes) ProtoReflect() protoreflect.Message
- func (x *ExportGeneratedInvoiceRes) Reset()
- func (x *ExportGeneratedInvoiceRes) String() string
- type ExportGeneratedInvoiceRes_CsvUrl
- type ExportGeneratedInvoiceRes_InvoiceCsvUrl
- type ExportGeneratedInvoiceRes_InvoiceProto
- type ExportGeneratedInvoiceRes_Proto
- type GetBillingPlanReq
- type GetBillingPlanRes
- func (*GetBillingPlanRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetBillingPlanRes) GetBillingPlan() *billing.Plan
- func (*GetBillingPlanRes) ProtoMessage()
- func (x *GetBillingPlanRes) ProtoReflect() protoreflect.Message
- func (x *GetBillingPlanRes) Reset()
- func (x *GetBillingPlanRes) String() string
- type GetInvoiceReq
- func (*GetInvoiceReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetInvoiceReq) GetFormat() InvoiceFormatdeprecated
- func (x *GetInvoiceReq) GetInvoiceDate() *timestamppb.Timestamp
- func (x *GetInvoiceReq) GetInvoiceFormat() billing.InvoiceFormat
- func (x *GetInvoiceReq) GetOrgId() string
- func (*GetInvoiceReq) ProtoMessage()
- func (x *GetInvoiceReq) ProtoReflect() protoreflect.Message
- func (x *GetInvoiceReq) Reset()
- func (x *GetInvoiceReq) String() string
- type GetInvoiceRes
- func (*GetInvoiceRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetInvoiceRes) GetBillingCycle() string
- func (x *GetInvoiceRes) GetCsvUrl() stringdeprecated
- func (m *GetInvoiceRes) GetFormat() isGetInvoiceRes_Format
- func (x *GetInvoiceRes) GetInvoice() *billing.Invoicedeprecated
- func (x *GetInvoiceRes) GetInvoiceCsvUrl() string
- func (m *GetInvoiceRes) GetInvoiceData() isGetInvoiceRes_InvoiceData
- func (x *GetInvoiceRes) GetInvoiceProto() *billing.Invoice
- func (x *GetInvoiceRes) GetProto() *billing.Invoicedeprecated
- func (*GetInvoiceRes) ProtoMessage()
- func (x *GetInvoiceRes) ProtoReflect() protoreflect.Message
- func (x *GetInvoiceRes) Reset()
- func (x *GetInvoiceRes) String() string
- type GetInvoiceRes_CsvUrl
- type GetInvoiceRes_InvoiceCsvUrl
- type GetInvoiceRes_InvoiceProto
- type GetInvoiceRes_Proto
- type InvoiceFormat
- func (InvoiceFormat) Descriptor() protoreflect.EnumDescriptor
- func (x InvoiceFormat) Enum() *InvoiceFormat
- func (InvoiceFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x InvoiceFormat) Number() protoreflect.EnumNumber
- func (x InvoiceFormat) String() string
- func (InvoiceFormat) Type() protoreflect.EnumType
- type UnimplementedBillingServer
- func (UnimplementedBillingServer) ExportGeneratedInvoice(context.Context, *ExportGeneratedInvoiceReq) (*ExportGeneratedInvoiceRes, error)
- func (UnimplementedBillingServer) GetBillingPlan(context.Context, *GetBillingPlanReq) (*GetBillingPlanRes, error)
- func (UnimplementedBillingServer) GetInvoice(context.Context, *GetInvoiceReq) (*GetInvoiceRes, error)
- func (UnimplementedBillingServer) UpdateBillingPlan(context.Context, *UpdateBillingPlanReq) (*UpdateBillingPlanRes, error)
- type UnsafeBillingServer
- type UpdateBillingPlanReq
- func (*UpdateBillingPlanReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBillingPlanReq) GetBillingDetails() []*billing.Detail
- func (x *UpdateBillingPlanReq) GetOrgId() string
- func (*UpdateBillingPlanReq) ProtoMessage()
- func (x *UpdateBillingPlanReq) ProtoReflect() protoreflect.Message
- func (x *UpdateBillingPlanReq) Reset()
- func (x *UpdateBillingPlanReq) String() string
- type UpdateBillingPlanRes
- func (*UpdateBillingPlanRes) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBillingPlanRes) GetBillingPlan() *billing.Plan
- func (*UpdateBillingPlanRes) ProtoMessage()
- func (x *UpdateBillingPlanRes) ProtoReflect() protoreflect.Message
- func (x *UpdateBillingPlanRes) Reset()
- func (x *UpdateBillingPlanRes) String() string
Constants ¶
const ( Billing_GetBillingPlan_FullMethodName = "/api.v1alpha1.billing.Billing/GetBillingPlan" Billing_UpdateBillingPlan_FullMethodName = "/api.v1alpha1.billing.Billing/UpdateBillingPlan" Billing_GetInvoice_FullMethodName = "/api.v1alpha1.billing.Billing/GetInvoice" Billing_ExportGeneratedInvoice_FullMethodName = "/api.v1alpha1.billing.Billing/ExportGeneratedInvoice" )
Variables ¶
var ( InvoiceFormat_name = map[int32]string{ 0: "INVOICE_FORMAT_UNSPECIFIED", 1: "INVOICE_FORMAT_PROTO", 2: "INVOICE_FORMAT_CSV", } InvoiceFormat_value = map[string]int32{ "INVOICE_FORMAT_UNSPECIFIED": 0, "INVOICE_FORMAT_PROTO": 1, "INVOICE_FORMAT_CSV": 2, } )
Enum value maps for InvoiceFormat.
var Billing_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1alpha1.billing.Billing", HandlerType: (*BillingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBillingPlan", Handler: _Billing_GetBillingPlan_Handler, }, { MethodName: "UpdateBillingPlan", Handler: _Billing_UpdateBillingPlan_Handler, }, { MethodName: "GetInvoice", Handler: _Billing_GetInvoice_Handler, }, { MethodName: "ExportGeneratedInvoice", Handler: _Billing_ExportGeneratedInvoice_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1alpha1/billing/service.proto", }
Billing_ServiceDesc is the grpc.ServiceDesc for Billing service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_v1alpha1_billing_entities_proto protoreflect.FileDescriptor
var File_api_v1alpha1_billing_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBillingServer ¶
func RegisterBillingServer(s grpc.ServiceRegistrar, srv BillingServer)
Types ¶
type BillingClient ¶
type BillingClient interface { // GetBillingPlan - returns the billing plan for the provided organization. GetBillingPlan(ctx context.Context, in *GetBillingPlanReq, opts ...grpc.CallOption) (*GetBillingPlanRes, error) // UpdateBillingPlan - updates the provided billing plan and it's details. // If some details are not provided, they will be left as is. However, if // deletion is desired, the DeleteBillingDetails method should be used. The // billing plan still follows the constraint of only having one billing detail // with a specific config type and event type, and so if the request contains // more than one billing detail with a config type and event type, the request // is malformed and will result in potentially unexpected behavior. UpdateBillingPlan(ctx context.Context, in *UpdateBillingPlanReq, opts ...grpc.CallOption) (*UpdateBillingPlanRes, error) // GetInvoice - returns the invoice for the organization. // If a date is provided, this will return the invoice for the // organization that corresponds to the billing cycle that contains // the provided date. If no date is provided, this will return the // invoice as it currently stands for the current billing cycle. GetInvoice(ctx context.Context, in *GetInvoiceReq, opts ...grpc.CallOption) (*GetInvoiceRes, error) // ExportGeneratedInvoice - returns the invoice for the organization. // If a date is provided, this will return the invoice for the // organization that corresponds to the billing cycle that contains // the provided date. If no date is provided, this will return the // invoice, as it has been last generated, for the current billing cycle. // This differs from GetInvoice in that it returns the invoice as // it was last generated. It will not take into account new billing // events since the last generation. ExportGeneratedInvoice(ctx context.Context, in *ExportGeneratedInvoiceReq, opts ...grpc.CallOption) (*ExportGeneratedInvoiceRes, error) }
BillingClient is the client API for Billing service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBillingClient ¶
func NewBillingClient(cc grpc.ClientConnInterface) BillingClient
type BillingServer ¶
type BillingServer interface { // GetBillingPlan - returns the billing plan for the provided organization. GetBillingPlan(context.Context, *GetBillingPlanReq) (*GetBillingPlanRes, error) // UpdateBillingPlan - updates the provided billing plan and it's details. // If some details are not provided, they will be left as is. However, if // deletion is desired, the DeleteBillingDetails method should be used. The // billing plan still follows the constraint of only having one billing detail // with a specific config type and event type, and so if the request contains // more than one billing detail with a config type and event type, the request // is malformed and will result in potentially unexpected behavior. UpdateBillingPlan(context.Context, *UpdateBillingPlanReq) (*UpdateBillingPlanRes, error) // GetInvoice - returns the invoice for the organization. // If a date is provided, this will return the invoice for the // organization that corresponds to the billing cycle that contains // the provided date. If no date is provided, this will return the // invoice as it currently stands for the current billing cycle. GetInvoice(context.Context, *GetInvoiceReq) (*GetInvoiceRes, error) // ExportGeneratedInvoice - returns the invoice for the organization. // If a date is provided, this will return the invoice for the // organization that corresponds to the billing cycle that contains // the provided date. If no date is provided, this will return the // invoice, as it has been last generated, for the current billing cycle. // This differs from GetInvoice in that it returns the invoice as // it was last generated. It will not take into account new billing // events since the last generation. ExportGeneratedInvoice(context.Context, *ExportGeneratedInvoiceReq) (*ExportGeneratedInvoiceRes, error) // contains filtered or unexported methods }
BillingServer is the server API for Billing service. All implementations must embed UnimplementedBillingServer for forward compatibility
type ExportGeneratedInvoiceReq ¶ added in v1.7.25
type ExportGeneratedInvoiceReq struct { // Optional. the date of the invoice to retrieve. If not specified, // will return the invoice associated with the current billing cycle. // Otherwise, it will return the invoice associated with the billing // cycle that contains the specified date. InvoiceDate *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=invoice_date,json=invoiceDate,proto3" json:"invoice_date,omitempty"` // Required. the identifier of the organization to get the plan for OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // deprecated // // Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto. Format InvoiceFormat `protobuf:"varint,3,opt,name=format,proto3,enum=api.v1alpha1.billing.InvoiceFormat" json:"format,omitempty"` // Optional. the invoice for the organization. If not specified, // will use the proto format as the default InvoiceFormat billing.InvoiceFormat `` /* 140-byte string literal not displayed */ // contains filtered or unexported fields }
ExportGenerateInvoicesReq - request to export a generated invoice
func (*ExportGeneratedInvoiceReq) Descriptor
deprecated
added in
v1.7.25
func (*ExportGeneratedInvoiceReq) Descriptor() ([]byte, []int)
Deprecated: Use ExportGeneratedInvoiceReq.ProtoReflect.Descriptor instead.
func (*ExportGeneratedInvoiceReq) GetFormat
deprecated
added in
v1.7.25
func (x *ExportGeneratedInvoiceReq) GetFormat() InvoiceFormat
Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto.
func (*ExportGeneratedInvoiceReq) GetInvoiceDate ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceReq) GetInvoiceDate() *timestamppb.Timestamp
func (*ExportGeneratedInvoiceReq) GetInvoiceFormat ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceReq) GetInvoiceFormat() billing.InvoiceFormat
func (*ExportGeneratedInvoiceReq) GetOrgId ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceReq) GetOrgId() string
func (*ExportGeneratedInvoiceReq) ProtoMessage ¶ added in v1.7.25
func (*ExportGeneratedInvoiceReq) ProtoMessage()
func (*ExportGeneratedInvoiceReq) ProtoReflect ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceReq) ProtoReflect() protoreflect.Message
func (*ExportGeneratedInvoiceReq) Reset ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceReq) Reset()
func (*ExportGeneratedInvoiceReq) String ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceReq) String() string
type ExportGeneratedInvoiceRes ¶ added in v1.7.25
type ExportGeneratedInvoiceRes struct { // deprecated // // Types that are assignable to Format: // // *ExportGeneratedInvoiceRes_Proto // *ExportGeneratedInvoiceRes_CsvUrl Format isExportGeneratedInvoiceRes_Format `protobuf_oneof:"format"` // the invoice in the format requested // // Types that are assignable to InvoiceData: // // *ExportGeneratedInvoiceRes_InvoiceProto // *ExportGeneratedInvoiceRes_InvoiceCsvUrl InvoiceData isExportGeneratedInvoiceRes_InvoiceData `protobuf_oneof:"invoice_data"` // the billing cycle of the invoice requested BillingCycle string `protobuf:"bytes,4,opt,name=billing_cycle,json=billingCycle,proto3" json:"billing_cycle,omitempty"` // contains filtered or unexported fields }
ExportGeneratedInvoicesRes - result of exporting a generated invoice
func (*ExportGeneratedInvoiceRes) Descriptor
deprecated
added in
v1.7.25
func (*ExportGeneratedInvoiceRes) Descriptor() ([]byte, []int)
Deprecated: Use ExportGeneratedInvoiceRes.ProtoReflect.Descriptor instead.
func (*ExportGeneratedInvoiceRes) GetBillingCycle ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceRes) GetBillingCycle() string
func (*ExportGeneratedInvoiceRes) GetCsvUrl
deprecated
added in
v1.7.25
func (x *ExportGeneratedInvoiceRes) GetCsvUrl() string
Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto.
func (*ExportGeneratedInvoiceRes) GetFormat ¶ added in v1.7.25
func (m *ExportGeneratedInvoiceRes) GetFormat() isExportGeneratedInvoiceRes_Format
func (*ExportGeneratedInvoiceRes) GetInvoiceCsvUrl ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceRes) GetInvoiceCsvUrl() string
func (*ExportGeneratedInvoiceRes) GetInvoiceData ¶ added in v1.7.25
func (m *ExportGeneratedInvoiceRes) GetInvoiceData() isExportGeneratedInvoiceRes_InvoiceData
func (*ExportGeneratedInvoiceRes) GetInvoiceProto ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceRes) GetInvoiceProto() *billing.Invoice
func (*ExportGeneratedInvoiceRes) GetProto
deprecated
added in
v1.7.25
func (x *ExportGeneratedInvoiceRes) GetProto() *billing.Invoice
Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto.
func (*ExportGeneratedInvoiceRes) ProtoMessage ¶ added in v1.7.25
func (*ExportGeneratedInvoiceRes) ProtoMessage()
func (*ExportGeneratedInvoiceRes) ProtoReflect ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceRes) ProtoReflect() protoreflect.Message
func (*ExportGeneratedInvoiceRes) Reset ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceRes) Reset()
func (*ExportGeneratedInvoiceRes) String ¶ added in v1.7.25
func (x *ExportGeneratedInvoiceRes) String() string
type ExportGeneratedInvoiceRes_CsvUrl ¶ added in v1.7.25
type ExportGeneratedInvoiceRes_CsvUrl struct { // Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto. CsvUrl string `protobuf:"bytes,2,opt,name=csv_url,json=csvUrl,proto3,oneof"` }
type ExportGeneratedInvoiceRes_InvoiceCsvUrl ¶ added in v1.7.25
type ExportGeneratedInvoiceRes_InvoiceCsvUrl struct {
InvoiceCsvUrl string `protobuf:"bytes,101,opt,name=invoice_csv_url,json=invoiceCsvUrl,proto3,oneof"`
}
type ExportGeneratedInvoiceRes_InvoiceProto ¶ added in v1.7.25
type ExportGeneratedInvoiceRes_Proto ¶ added in v1.7.25
type GetBillingPlanReq ¶
type GetBillingPlanReq struct { // Required. the identifier of the organization to get the plan for OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // contains filtered or unexported fields }
GetBillingPlanReq - request to get an organization's billing plan
func (*GetBillingPlanReq) Descriptor
deprecated
func (*GetBillingPlanReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBillingPlanReq.ProtoReflect.Descriptor instead.
func (*GetBillingPlanReq) GetOrgId ¶ added in v1.7.25
func (x *GetBillingPlanReq) GetOrgId() string
func (*GetBillingPlanReq) ProtoMessage ¶
func (*GetBillingPlanReq) ProtoMessage()
func (*GetBillingPlanReq) ProtoReflect ¶
func (x *GetBillingPlanReq) ProtoReflect() protoreflect.Message
func (*GetBillingPlanReq) Reset ¶
func (x *GetBillingPlanReq) Reset()
func (*GetBillingPlanReq) String ¶
func (x *GetBillingPlanReq) String() string
type GetBillingPlanRes ¶
type GetBillingPlanRes struct { // the billing plan BillingPlan *billing.Plan `protobuf:"bytes,1,opt,name=billing_plan,json=billingPlan,proto3" json:"billing_plan,omitempty"` // contains filtered or unexported fields }
GetBillingPlanRes - result of retrieving an organization's billing plan
func (*GetBillingPlanRes) Descriptor
deprecated
func (*GetBillingPlanRes) Descriptor() ([]byte, []int)
Deprecated: Use GetBillingPlanRes.ProtoReflect.Descriptor instead.
func (*GetBillingPlanRes) GetBillingPlan ¶
func (x *GetBillingPlanRes) GetBillingPlan() *billing.Plan
func (*GetBillingPlanRes) ProtoMessage ¶
func (*GetBillingPlanRes) ProtoMessage()
func (*GetBillingPlanRes) ProtoReflect ¶
func (x *GetBillingPlanRes) ProtoReflect() protoreflect.Message
func (*GetBillingPlanRes) Reset ¶
func (x *GetBillingPlanRes) Reset()
func (*GetBillingPlanRes) String ¶
func (x *GetBillingPlanRes) String() string
type GetInvoiceReq ¶
type GetInvoiceReq struct { // Optional. the date of the invoice to retrieve. If not specified, // will return the invoice associated with the current billing cycle. // Otherwise, it will return the invoice associated with the billing // cycle that contains the specified date. InvoiceDate *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=invoice_date,json=invoiceDate,proto3" json:"invoice_date,omitempty"` // Required. the identifier of the organization to update the plan for OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // deprecated // // Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto. Format InvoiceFormat `protobuf:"varint,3,opt,name=format,proto3,enum=api.v1alpha1.billing.InvoiceFormat" json:"format,omitempty"` // Optional. the format the invoice is returned using. If not specified, // will use the proto format as the default InvoiceFormat billing.InvoiceFormat `` /* 140-byte string literal not displayed */ // contains filtered or unexported fields }
GetInvoiceReq - request to get an invoice
func (*GetInvoiceReq) Descriptor
deprecated
func (*GetInvoiceReq) Descriptor() ([]byte, []int)
Deprecated: Use GetInvoiceReq.ProtoReflect.Descriptor instead.
func (*GetInvoiceReq) GetFormat
deprecated
added in
v1.7.25
func (x *GetInvoiceReq) GetFormat() InvoiceFormat
Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto.
func (*GetInvoiceReq) GetInvoiceDate ¶
func (x *GetInvoiceReq) GetInvoiceDate() *timestamppb.Timestamp
func (*GetInvoiceReq) GetInvoiceFormat ¶ added in v1.7.25
func (x *GetInvoiceReq) GetInvoiceFormat() billing.InvoiceFormat
func (*GetInvoiceReq) GetOrgId ¶ added in v1.7.25
func (x *GetInvoiceReq) GetOrgId() string
func (*GetInvoiceReq) ProtoMessage ¶
func (*GetInvoiceReq) ProtoMessage()
func (*GetInvoiceReq) ProtoReflect ¶
func (x *GetInvoiceReq) ProtoReflect() protoreflect.Message
func (*GetInvoiceReq) Reset ¶
func (x *GetInvoiceReq) Reset()
func (*GetInvoiceReq) String ¶
func (x *GetInvoiceReq) String() string
type GetInvoiceRes ¶
type GetInvoiceRes struct { // deprecated // // Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto. Invoice *billing.Invoice `protobuf:"bytes,1,opt,name=invoice,proto3" json:"invoice,omitempty"` // deprecated // // Types that are assignable to Format: // // *GetInvoiceRes_Proto // *GetInvoiceRes_CsvUrl Format isGetInvoiceRes_Format `protobuf_oneof:"format"` // the invoice in the format requested // // Types that are assignable to InvoiceData: // // *GetInvoiceRes_InvoiceProto // *GetInvoiceRes_InvoiceCsvUrl InvoiceData isGetInvoiceRes_InvoiceData `protobuf_oneof:"invoice_data"` // the billing cycle of the invoice requested BillingCycle string `protobuf:"bytes,4,opt,name=billing_cycle,json=billingCycle,proto3" json:"billing_cycle,omitempty"` // contains filtered or unexported fields }
GetInvoiceRes - result of retrieving an invoice
func (*GetInvoiceRes) Descriptor
deprecated
func (*GetInvoiceRes) Descriptor() ([]byte, []int)
Deprecated: Use GetInvoiceRes.ProtoReflect.Descriptor instead.
func (*GetInvoiceRes) GetBillingCycle ¶ added in v1.7.25
func (x *GetInvoiceRes) GetBillingCycle() string
func (*GetInvoiceRes) GetCsvUrl
deprecated
added in
v1.7.25
func (x *GetInvoiceRes) GetCsvUrl() string
Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto.
func (*GetInvoiceRes) GetFormat ¶ added in v1.7.25
func (m *GetInvoiceRes) GetFormat() isGetInvoiceRes_Format
func (*GetInvoiceRes) GetInvoice
deprecated
func (x *GetInvoiceRes) GetInvoice() *billing.Invoice
Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto.
func (*GetInvoiceRes) GetInvoiceCsvUrl ¶ added in v1.7.25
func (x *GetInvoiceRes) GetInvoiceCsvUrl() string
func (*GetInvoiceRes) GetInvoiceData ¶ added in v1.7.25
func (m *GetInvoiceRes) GetInvoiceData() isGetInvoiceRes_InvoiceData
func (*GetInvoiceRes) GetInvoiceProto ¶ added in v1.7.25
func (x *GetInvoiceRes) GetInvoiceProto() *billing.Invoice
func (*GetInvoiceRes) GetProto
deprecated
added in
v1.7.25
func (x *GetInvoiceRes) GetProto() *billing.Invoice
Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto.
func (*GetInvoiceRes) ProtoMessage ¶
func (*GetInvoiceRes) ProtoMessage()
func (*GetInvoiceRes) ProtoReflect ¶
func (x *GetInvoiceRes) ProtoReflect() protoreflect.Message
func (*GetInvoiceRes) Reset ¶
func (x *GetInvoiceRes) Reset()
func (*GetInvoiceRes) String ¶
func (x *GetInvoiceRes) String() string
type GetInvoiceRes_CsvUrl ¶ added in v1.7.25
type GetInvoiceRes_CsvUrl struct { // Deprecated: Marked as deprecated in api/v1alpha1/billing/entities.proto. CsvUrl string `protobuf:"bytes,3,opt,name=csv_url,json=csvUrl,proto3,oneof"` }
type GetInvoiceRes_InvoiceCsvUrl ¶ added in v1.7.25
type GetInvoiceRes_InvoiceCsvUrl struct {
InvoiceCsvUrl string `protobuf:"bytes,101,opt,name=invoice_csv_url,json=invoiceCsvUrl,proto3,oneof"`
}
type GetInvoiceRes_InvoiceProto ¶ added in v1.7.25
type GetInvoiceRes_Proto ¶ added in v1.7.25
type InvoiceFormat ¶ added in v1.7.25
type InvoiceFormat int32
const ( InvoiceFormat_INVOICE_FORMAT_UNSPECIFIED InvoiceFormat = 0 InvoiceFormat_INVOICE_FORMAT_PROTO InvoiceFormat = 1 InvoiceFormat_INVOICE_FORMAT_CSV InvoiceFormat = 2 )
func (InvoiceFormat) Descriptor ¶ added in v1.7.25
func (InvoiceFormat) Descriptor() protoreflect.EnumDescriptor
func (InvoiceFormat) Enum ¶ added in v1.7.25
func (x InvoiceFormat) Enum() *InvoiceFormat
func (InvoiceFormat) EnumDescriptor
deprecated
added in
v1.7.25
func (InvoiceFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use InvoiceFormat.Descriptor instead.
func (InvoiceFormat) Number ¶ added in v1.7.25
func (x InvoiceFormat) Number() protoreflect.EnumNumber
func (InvoiceFormat) String ¶ added in v1.7.25
func (x InvoiceFormat) String() string
func (InvoiceFormat) Type ¶ added in v1.7.25
func (InvoiceFormat) Type() protoreflect.EnumType
type UnimplementedBillingServer ¶
type UnimplementedBillingServer struct { }
UnimplementedBillingServer must be embedded to have forward compatible implementations.
func (UnimplementedBillingServer) ExportGeneratedInvoice ¶ added in v1.7.25
func (UnimplementedBillingServer) ExportGeneratedInvoice(context.Context, *ExportGeneratedInvoiceReq) (*ExportGeneratedInvoiceRes, error)
func (UnimplementedBillingServer) GetBillingPlan ¶
func (UnimplementedBillingServer) GetBillingPlan(context.Context, *GetBillingPlanReq) (*GetBillingPlanRes, error)
func (UnimplementedBillingServer) GetInvoice ¶
func (UnimplementedBillingServer) GetInvoice(context.Context, *GetInvoiceReq) (*GetInvoiceRes, error)
func (UnimplementedBillingServer) UpdateBillingPlan ¶
func (UnimplementedBillingServer) UpdateBillingPlan(context.Context, *UpdateBillingPlanReq) (*UpdateBillingPlanRes, error)
type UnsafeBillingServer ¶
type UnsafeBillingServer interface {
// contains filtered or unexported methods
}
UnsafeBillingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BillingServer will result in compilation errors.
type UpdateBillingPlanReq ¶
type UpdateBillingPlanReq struct { // Required. the billing details to update BillingDetails []*billing.Detail `protobuf:"bytes,1,rep,name=billing_details,json=billingDetails,proto3" json:"billing_details,omitempty"` // Required. the identifier of the organization to update the plan for OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // contains filtered or unexported fields }
UpdateBillingPlanReq - request to update a billing plan.
func (*UpdateBillingPlanReq) Descriptor
deprecated
func (*UpdateBillingPlanReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBillingPlanReq.ProtoReflect.Descriptor instead.
func (*UpdateBillingPlanReq) GetBillingDetails ¶ added in v1.7.13
func (x *UpdateBillingPlanReq) GetBillingDetails() []*billing.Detail
func (*UpdateBillingPlanReq) GetOrgId ¶ added in v1.7.25
func (x *UpdateBillingPlanReq) GetOrgId() string
func (*UpdateBillingPlanReq) ProtoMessage ¶
func (*UpdateBillingPlanReq) ProtoMessage()
func (*UpdateBillingPlanReq) ProtoReflect ¶
func (x *UpdateBillingPlanReq) ProtoReflect() protoreflect.Message
func (*UpdateBillingPlanReq) Reset ¶
func (x *UpdateBillingPlanReq) Reset()
func (*UpdateBillingPlanReq) String ¶
func (x *UpdateBillingPlanReq) String() string
type UpdateBillingPlanRes ¶
type UpdateBillingPlanRes struct { // the updated billing plan BillingPlan *billing.Plan `protobuf:"bytes,1,opt,name=billing_plan,json=billingPlan,proto3" json:"billing_plan,omitempty"` // contains filtered or unexported fields }
UpdateBillingPlanRes - result of updating a billing plan; contains only the details that were provided in the request
func (*UpdateBillingPlanRes) Descriptor
deprecated
func (*UpdateBillingPlanRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBillingPlanRes.ProtoReflect.Descriptor instead.
func (*UpdateBillingPlanRes) GetBillingPlan ¶
func (x *UpdateBillingPlanRes) GetBillingPlan() *billing.Plan
func (*UpdateBillingPlanRes) ProtoMessage ¶
func (*UpdateBillingPlanRes) ProtoMessage()
func (*UpdateBillingPlanRes) ProtoReflect ¶
func (x *UpdateBillingPlanRes) ProtoReflect() protoreflect.Message
func (*UpdateBillingPlanRes) Reset ¶
func (x *UpdateBillingPlanRes) Reset()
func (*UpdateBillingPlanRes) String ¶
func (x *UpdateBillingPlanRes) String() string