From 8106f58eb344adebb54733d9d5b2dda8cf7af870 Mon Sep 17 00:00:00 2001 From: Luis Merino Date: Thu, 3 Dec 2026 11:09:36 +0100 Subject: [PATCH] CBI-856 Add GetBillingProfile and UpdateBillingProfile to BillingService --- gen/go/qdrant/cloud/billing/v1/billing.pb.go | 545 ++++++++++++++++-- .../cloud/billing/v1/billing_grpc.pb.go | 90 +++ .../cloud/billing/v1/billing.swagger.json | 190 ++++++ .../qdrant/cloud/billing/v1/billing_pb2.py | 137 +++-- .../qdrant/cloud/billing/v1/billing_pb2.pyi | 63 ++ .../cloud/billing/v1/billing_pb2_grpc.py | 93 +++ .../billing-BillingService_connectquery.d.ts | 17 + .../v1/billing-BillingService_connectquery.js | 19 + .../qdrant/cloud/billing/v1/billing_pb.d.ts | 312 +++++++++- .../qdrant/cloud/billing/v1/billing_pb.js | 48 +- proto/qdrant/cloud/billing/v1/billing.proto | 178 ++++++ 11 files changed, 1612 insertions(+), 80 deletions(-) diff --git a/gen/go/qdrant/cloud/billing/v1/billing.pb.go b/gen/go/qdrant/cloud/billing/v1/billing.pb.go index f6aeafc5..2810685e 100644 --- a/gen/go/qdrant/cloud/billing/v1/billing.pb.go +++ b/gen/go/qdrant/cloud/billing/v1/billing.pb.go @@ -9,11 +9,13 @@ package billingv1 import ( _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" _ "github.com/qdrant/qdrant-cloud-public-api/gen/go/qdrant/cloud/common/v1" + _ "github.com/qdrant/qdrant-cloud-public-api/gen/go/qdrant/cloud/event/v1" _ "github.com/qdrant/qdrant-cloud-public-api/gen/go/qdrant/cloud/facade/mcp/v1" _ "github.com/qdrant/qdrant-cloud-public-api/gen/go/qdrant/cloud/facade/v1" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" @@ -1348,11 +1350,414 @@ func (x *ListBillingAccountChildrenResponse) GetChildAccountIds() []string { return nil } +// GetBillingProfileRequest is the request for the GetBillingProfile RPC. +type GetBillingProfileRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The identifier of the billing account (in GUID format). + // This is a required field. + AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetBillingProfileRequest) Reset() { + *x = GetBillingProfileRequest{} + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetBillingProfileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBillingProfileRequest) ProtoMessage() {} + +func (x *GetBillingProfileRequest) ProtoReflect() protoreflect.Message { + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBillingProfileRequest.ProtoReflect.Descriptor instead. +func (*GetBillingProfileRequest) Descriptor() ([]byte, []int) { + return file_qdrant_cloud_billing_v1_billing_proto_rawDescGZIP(), []int{19} +} + +func (x *GetBillingProfileRequest) GetAccountId() string { + if x != nil { + return x.AccountId + } + return "" +} + +// GetBillingProfileResponse is the response from the GetBillingProfile RPC. +type GetBillingProfileResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The billing profile. + BillingProfile *BillingProfile `protobuf:"bytes,1,opt,name=billing_profile,json=billingProfile,proto3" json:"billing_profile,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetBillingProfileResponse) Reset() { + *x = GetBillingProfileResponse{} + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetBillingProfileResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBillingProfileResponse) ProtoMessage() {} + +func (x *GetBillingProfileResponse) ProtoReflect() protoreflect.Message { + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBillingProfileResponse.ProtoReflect.Descriptor instead. +func (*GetBillingProfileResponse) Descriptor() ([]byte, []int) { + return file_qdrant_cloud_billing_v1_billing_proto_rawDescGZIP(), []int{20} +} + +func (x *GetBillingProfileResponse) GetBillingProfile() *BillingProfile { + if x != nil { + return x.BillingProfile + } + return nil +} + +// UpdateBillingProfileRequest is the request for the UpdateBillingProfile RPC. +type UpdateBillingProfileRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The billing profile to write. + // This is a required field. + BillingProfile *BillingProfile `protobuf:"bytes,1,opt,name=billing_profile,json=billingProfile,proto3" json:"billing_profile,omitempty"` + // Optional mask of fields to update. When set, only the fields listed in + // the mask are updated; all other fields keep their current values on the + // server. The address is masked as a whole, with the path `address`. + // Field paths reference the resource (BillingProfile) message, not the + // request envelope. + // When unset or empty, the request is treated as a full-resource + // replacement. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateBillingProfileRequest) Reset() { + *x = UpdateBillingProfileRequest{} + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateBillingProfileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateBillingProfileRequest) ProtoMessage() {} + +func (x *UpdateBillingProfileRequest) ProtoReflect() protoreflect.Message { + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateBillingProfileRequest.ProtoReflect.Descriptor instead. +func (*UpdateBillingProfileRequest) Descriptor() ([]byte, []int) { + return file_qdrant_cloud_billing_v1_billing_proto_rawDescGZIP(), []int{21} +} + +func (x *UpdateBillingProfileRequest) GetBillingProfile() *BillingProfile { + if x != nil { + return x.BillingProfile + } + return nil +} + +func (x *UpdateBillingProfileRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask + } + return nil +} + +// UpdateBillingProfileResponse is the response from the UpdateBillingProfile RPC. +type UpdateBillingProfileResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The billing profile as written. + BillingProfile *BillingProfile `protobuf:"bytes,1,opt,name=billing_profile,json=billingProfile,proto3" json:"billing_profile,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateBillingProfileResponse) Reset() { + *x = UpdateBillingProfileResponse{} + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateBillingProfileResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateBillingProfileResponse) ProtoMessage() {} + +func (x *UpdateBillingProfileResponse) ProtoReflect() protoreflect.Message { + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateBillingProfileResponse.ProtoReflect.Descriptor instead. +func (*UpdateBillingProfileResponse) Descriptor() ([]byte, []int) { + return file_qdrant_cloud_billing_v1_billing_proto_rawDescGZIP(), []int{22} +} + +func (x *UpdateBillingProfileResponse) GetBillingProfile() *BillingProfile { + if x != nil { + return x.BillingProfile + } + return nil +} + +// BillingProfile is who a billing account is billed as. +type BillingProfile struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The identifier of the billing account (in GUID format). + AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` + // The legal name printed on invoices. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // The billing email. + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + // The billing address. Written as a whole. + // Unset when the profile has no address. + Address *BillingProfileAddress `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + // The Tax ID. Needs an address country with a known tax type. + TaxId string `protobuf:"bytes,5,opt,name=tax_id,json=taxId,proto3" json:"tax_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BillingProfile) Reset() { + *x = BillingProfile{} + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BillingProfile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BillingProfile) ProtoMessage() {} + +func (x *BillingProfile) ProtoReflect() protoreflect.Message { + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BillingProfile.ProtoReflect.Descriptor instead. +func (*BillingProfile) Descriptor() ([]byte, []int) { + return file_qdrant_cloud_billing_v1_billing_proto_rawDescGZIP(), []int{23} +} + +func (x *BillingProfile) GetAccountId() string { + if x != nil { + return x.AccountId + } + return "" +} + +func (x *BillingProfile) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *BillingProfile) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *BillingProfile) GetAddress() *BillingProfileAddress { + if x != nil { + return x.Address + } + return nil +} + +func (x *BillingProfile) GetTaxId() string { + if x != nil { + return x.TaxId + } + return "" +} + +// BillingProfileAddress is the postal address of a billing profile. +type BillingProfileAddress struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The first line of the billing address. + // This is a required field. + Line1 string `protobuf:"bytes,1,opt,name=line1,proto3" json:"line1,omitempty"` + // The second line of the billing address. + // This is an optional field. + Line2 *string `protobuf:"bytes,2,opt,name=line2,proto3,oneof" json:"line2,omitempty"` + // The city of the billing address. + // This is an optional field. + City *string `protobuf:"bytes,3,opt,name=city,proto3,oneof" json:"city,omitempty"` + // The state or province of the billing address. + // This is an optional field. + State *string `protobuf:"bytes,4,opt,name=state,proto3,oneof" json:"state,omitempty"` + // The postal code of the billing address. + // This is an optional field. + PostalCode *string `protobuf:"bytes,5,opt,name=postal_code,json=postalCode,proto3,oneof" json:"postal_code,omitempty"` + // The country of the billing address. + // The format should be a two-letter country code ISO 3166-1 alpha-2 + // see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. + Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"` + // Indicates if the country supports tax. + // This is an read-only field, and filled out by the system. + TaxSupportedCountry *bool `protobuf:"varint,7,opt,name=tax_supported_country,json=taxSupportedCountry,proto3,oneof" json:"tax_supported_country,omitempty"` + // The address formatted for display on a single line, in the order and + // format of its country, ending with the country name. + // This is an read-only field, and filled out by the system. + FormattedAddress *string `protobuf:"bytes,8,opt,name=formatted_address,json=formattedAddress,proto3,oneof" json:"formatted_address,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BillingProfileAddress) Reset() { + *x = BillingProfileAddress{} + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BillingProfileAddress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BillingProfileAddress) ProtoMessage() {} + +func (x *BillingProfileAddress) ProtoReflect() protoreflect.Message { + mi := &file_qdrant_cloud_billing_v1_billing_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BillingProfileAddress.ProtoReflect.Descriptor instead. +func (*BillingProfileAddress) Descriptor() ([]byte, []int) { + return file_qdrant_cloud_billing_v1_billing_proto_rawDescGZIP(), []int{24} +} + +func (x *BillingProfileAddress) GetLine1() string { + if x != nil { + return x.Line1 + } + return "" +} + +func (x *BillingProfileAddress) GetLine2() string { + if x != nil && x.Line2 != nil { + return *x.Line2 + } + return "" +} + +func (x *BillingProfileAddress) GetCity() string { + if x != nil && x.City != nil { + return *x.City + } + return "" +} + +func (x *BillingProfileAddress) GetState() string { + if x != nil && x.State != nil { + return *x.State + } + return "" +} + +func (x *BillingProfileAddress) GetPostalCode() string { + if x != nil && x.PostalCode != nil { + return *x.PostalCode + } + return "" +} + +func (x *BillingProfileAddress) GetCountry() string { + if x != nil { + return x.Country + } + return "" +} + +func (x *BillingProfileAddress) GetTaxSupportedCountry() bool { + if x != nil && x.TaxSupportedCountry != nil { + return *x.TaxSupportedCountry + } + return false +} + +func (x *BillingProfileAddress) GetFormattedAddress() string { + if x != nil && x.FormattedAddress != nil { + return *x.FormattedAddress + } + return "" +} + var File_qdrant_cloud_billing_v1_billing_proto protoreflect.FileDescriptor const file_qdrant_cloud_billing_v1_billing_proto_rawDesc = "" + "\n" + - "%qdrant/cloud/billing/v1/billing.proto\x12\x17qdrant.cloud.billing.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a#qdrant/cloud/common/v1/common.proto\x1a,qdrant/cloud/facade/mcp/v1/mcp_options.proto\x1a+qdrant/cloud/facade/v1/facade_options.proto\">\n" + + "%qdrant/cloud/billing/v1/billing.proto\x12\x17qdrant.cloud.billing.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a#qdrant/cloud/common/v1/common.proto\x1a\"qdrant/cloud/event/v1/events.proto\x1a,qdrant/cloud/facade/mcp/v1/mcp_options.proto\x1a+qdrant/cloud/facade/v1/facade_options.proto\">\n" + "\x13ListInvoicesRequest\x12'\n" + "\n" + "account_id\x18\x01 \x01(\tB\b\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"N\n" + @@ -1466,14 +1871,54 @@ const file_qdrant_cloud_billing_v1_billing_proto_rawDesc = "" + "account_id\x18\x01 \x01(\tB\b\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"_\n" + "\"ListBillingAccountChildrenResponse\x129\n" + "\x11child_account_ids\x18\x01 \x03(\tB\r\xbaH\n" + - "\x92\x01\a\"\x05r\x03\xb0\x01\x01R\x0fchildAccountIds*\xb6\x01\n" + + "\x92\x01\a\"\x05r\x03\xb0\x01\x01R\x0fchildAccountIds\"C\n" + + "\x18GetBillingProfileRequest\x12'\n" + + "\n" + + "account_id\x18\x01 \x01(\tB\b\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"u\n" + + "\x19GetBillingProfileResponse\x12X\n" + + "\x0fbilling_profile\x18\x01 \x01(\v2'.qdrant.cloud.billing.v1.BillingProfileB\x06\xbaH\x03\xc8\x01\x01R\x0ebillingProfile\"\xb4\x01\n" + + "\x1bUpdateBillingProfileRequest\x12X\n" + + "\x0fbilling_profile\x18\x01 \x01(\v2'.qdrant.cloud.billing.v1.BillingProfileB\x06\xbaH\x03\xc8\x01\x01R\x0ebillingProfile\x12;\n" + + "\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" + + "updateMask\"x\n" + + "\x1cUpdateBillingProfileResponse\x12X\n" + + "\x0fbilling_profile\x18\x01 \x01(\v2'.qdrant.cloud.billing.v1.BillingProfileB\x06\xbaH\x03\xc8\x01\x01R\x0ebillingProfile\"\xe4\x01\n" + + "\x0eBillingProfile\x12'\n" + + "\n" + + "account_id\x18\x01 \x01(\tB\b\xbaH\x05r\x03\xb0\x01\x01R\taccountId\x12\x1e\n" + + "\x04name\x18\x02 \x01(\tB\n" + + "\xbaH\ar\x05\x10\x01\x18\x80\x02R\x04name\x12\x1f\n" + + "\x05email\x18\x03 \x01(\tB\t\xbaH\x06r\x04\x10\x01`\x01R\x05email\x12H\n" + + "\aaddress\x18\x04 \x01(\v2..qdrant.cloud.billing.v1.BillingProfileAddressR\aaddress\x12\x1e\n" + + "\x06tax_id\x18\x05 \x01(\tB\a\xbaH\x04r\x02\x18@R\x05taxId\"\xe5\x03\n" + + "\x15BillingProfileAddress\x12 \n" + + "\x05line1\x18\x01 \x01(\tB\n" + + "\xbaH\ar\x05\x10\x01\x18\x80\x02R\x05line1\x12%\n" + + "\x05line2\x18\x02 \x01(\tB\n" + + "\xbaH\ar\x05\x10\x01\x18\x80\x02H\x00R\x05line2\x88\x01\x01\x12#\n" + + "\x04city\x18\x03 \x01(\tB\n" + + "\xbaH\ar\x05\x10\x01\x18\x80\x01H\x01R\x04city\x88\x01\x01\x12%\n" + + "\x05state\x18\x04 \x01(\tB\n" + + "\xbaH\ar\x05\x10\x01\x18\x80\x01H\x02R\x05state\x88\x01\x01\x12/\n" + + "\vpostal_code\x18\x05 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 H\x03R\n" + + "postalCode\x88\x01\x01\x12+\n" + + "\acountry\x18\x06 \x01(\tB\x11\xbaH\x0er\f2\n" + + "^[A-Z]{2}$R\acountry\x12=\n" + + "\x15tax_supported_country\x18\a \x01(\bB\x04\xe2A\x01\x03H\x04R\x13taxSupportedCountry\x88\x01\x01\x12=\n" + + "\x11formatted_address\x18\b \x01(\tB\v\xe2A\x01\x03\xbaH\x04r\x02\x10\x01H\x05R\x10formattedAddress\x88\x01\x01B\b\n" + + "\x06_line2B\a\n" + + "\x05_cityB\b\n" + + "\x06_stateB\x0e\n" + + "\f_postal_codeB\x18\n" + + "\x16_tax_supported_countryB\x14\n" + + "\x12_formatted_address*\xb6\x01\n" + "\rInvoiceStatus\x12\x1e\n" + "\x1aINVOICE_STATUS_UNSPECIFIED\x10\x00\x12\x18\n" + "\x14INVOICE_STATUS_DRAFT\x10\x01\x12\x17\n" + "\x13INVOICE_STATUS_OPEN\x10\x02\x12\x17\n" + "\x13INVOICE_STATUS_VOID\x10\x03\x12\x17\n" + "\x13INVOICE_STATUS_PAID\x10\x04\x12 \n" + - "\x1cINVOICE_STATUS_UNCOLLECTIBLE\x10\x052\xcc\x11\n" + + "\x1cINVOICE_STATUS_UNCOLLECTIBLE\x10\x052\xb7\x1d\n" + "\x0eBillingService\x12\xa6\x02\n" + "\fListInvoices\x12,.qdrant.cloud.billing.v1.ListInvoicesRequest\x1a-.qdrant.cloud.billing.v1.ListInvoicesResponse\"\xb8\x01\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19O\n" + ">Lists all invoices for the account identified by the given ID.\x12\rList invoices\xaa\xb8\x19\x0f\n" + @@ -1492,7 +1937,22 @@ const file_qdrant_cloud_billing_v1_billing_proto_rawDesc = "" + "\x1aget_billing_account_parent\x82\xd3\xe4\x93\x02.\x12,/api/billing/v1/accounts/{account_id}/parent\x12\xbd\x03\n" + "\x1aListBillingAccountChildren\x12:.qdrant.cloud.billing.v1.ListBillingAccountChildrenRequest\x1a;.qdrant.cloud.billing.v1.ListBillingAccountChildrenResponse\"\xa5\x02\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19\xab\x01\n" + "\x89\x01Lists all child accounts for the billing parent account identified by the given ID. Returns an empty list if the account has no children.\x12\x1dList billing account children\xaa\xb8\x19\x1f\n" + - "\x1dlist_billing_account_children\x82\xd3\xe4\x93\x020\x12./api/billing/v1/accounts/{account_id}/children\x1a\x06µ\x18\x02\b\x01B\xfe\x01\n" + + "\x1dlist_billing_account_children\x82\xd3\xe4\x93\x020\x12./api/billing/v1/accounts/{account_id}/children\x12\xb9\x03\n" + + "\x11GetBillingProfile\x121.qdrant.cloud.billing.v1.GetBillingProfileRequest\x1a2.qdrant.cloud.billing.v1.GetBillingProfileResponse\"\xbc\x02\x8a\xb5\x18\x18read:payment_information\xba\xb5\x18\x18\n" + + "\n" + + "account_id\x12\n" + + "account_id\x8a\xb2\x19\xb1\x01\n" + + "\x99\x01Returns the billing profile (name, email, address and tax ID) of the billing account identified by the given account ID. Child accounts are not accepted.\x12\x13Get billing profile\xaa\xb8\x19\x15\n" + + "\x13get_billing_profile\x82\xd3\xe4\x93\x02/\x12-/api/billing/v1/accounts/{account_id}/profile\x12\xac\b\n" + + "\x14UpdateBillingProfile\x124.qdrant.cloud.billing.v1.UpdateBillingProfileRequest\x1a5.qdrant.cloud.billing.v1.UpdateBillingProfileResponse\"\xa6\a\x8a\xb5\x18\x19write:payment_information\x92\xb5\x18\x1abilling_profile.account_id\xba\xb5\x18(\n" + + "\n" + + "account_id\x12\x1abilling_profile.account_idʵ\x18\x87\x01\n" + + "9/qdrant.cloud.billing.v1.BillingService/GetBillingProfile\x12(\n" + + "\n" + + "account_id\x12\x1abilling_profile.account_id\x1a\x0fbilling_profile\"\x0fbilling_profile\xca\xf3\x18o\b\x02\x12\x0fbilling-profile\"\x1ereq.billing_profile.account_id*:/accounts/{req.billing_profile.account_id}/billing-profile\x8a\xb2\x19\xb6\x01\n" + + "\x99\x01Updates the billing profile (name, email, address and tax ID) of the billing account identified by the given account ID. Child accounts are not accepted.\x12\x16Update billing profile8\x01\xaa\xb8\x19\xb8\x02\n" + + "\x16update_billing_profile\x1a\x9d\x02\n" + + "\x16Update billing profile\x12\x82\x02An AI agent wants to update the billing profile of account {req.billing_profile.account_id}. The name, email, address and tax ID are used on future invoices and for tax. Without an update mask, or with tax_id in it, sending no tax ID removes the current one.\x82\xd3\xe4\x93\x02B:\x01*\x1a=/api/billing/v1/accounts/{billing_profile.account_id}/profile\x1a\x06µ\x18\x02\b\x01B\xfe\x01\n" + "\x1bcom.qdrant.cloud.billing.v1B\fBillingProtoP\x01ZRgithub.com/qdrant/qdrant-cloud-public-api/gen/go/qdrant/cloud/billing/v1;billingv1\xa2\x02\x03QCB\xaa\x02\x17Qdrant.Cloud.Billing.V1\xca\x02\x17Qdrant\\Cloud\\Billing\\V1\xe2\x02#Qdrant\\Cloud\\Billing\\V1\\GPBMetadata\xea\x02\x1aQdrant::Cloud::Billing::V1b\x06proto3" var ( @@ -1508,7 +1968,7 @@ func file_qdrant_cloud_billing_v1_billing_proto_rawDescGZIP() []byte { } var file_qdrant_cloud_billing_v1_billing_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_qdrant_cloud_billing_v1_billing_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_qdrant_cloud_billing_v1_billing_proto_msgTypes = make([]protoimpl.MessageInfo, 25) var file_qdrant_cloud_billing_v1_billing_proto_goTypes = []any{ (InvoiceStatus)(0), // 0: qdrant.cloud.billing.v1.InvoiceStatus (*ListInvoicesRequest)(nil), // 1: qdrant.cloud.billing.v1.ListInvoicesRequest @@ -1530,44 +1990,60 @@ var file_qdrant_cloud_billing_v1_billing_proto_goTypes = []any{ (*GetBillingAccountParentResponse)(nil), // 17: qdrant.cloud.billing.v1.GetBillingAccountParentResponse (*ListBillingAccountChildrenRequest)(nil), // 18: qdrant.cloud.billing.v1.ListBillingAccountChildrenRequest (*ListBillingAccountChildrenResponse)(nil), // 19: qdrant.cloud.billing.v1.ListBillingAccountChildrenResponse - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp + (*GetBillingProfileRequest)(nil), // 20: qdrant.cloud.billing.v1.GetBillingProfileRequest + (*GetBillingProfileResponse)(nil), // 21: qdrant.cloud.billing.v1.GetBillingProfileResponse + (*UpdateBillingProfileRequest)(nil), // 22: qdrant.cloud.billing.v1.UpdateBillingProfileRequest + (*UpdateBillingProfileResponse)(nil), // 23: qdrant.cloud.billing.v1.UpdateBillingProfileResponse + (*BillingProfile)(nil), // 24: qdrant.cloud.billing.v1.BillingProfile + (*BillingProfileAddress)(nil), // 25: qdrant.cloud.billing.v1.BillingProfileAddress + (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*fieldmaskpb.FieldMask)(nil), // 27: google.protobuf.FieldMask } var file_qdrant_cloud_billing_v1_billing_proto_depIdxs = []int32{ 5, // 0: qdrant.cloud.billing.v1.ListInvoicesResponse.items:type_name -> qdrant.cloud.billing.v1.Invoice 6, // 1: qdrant.cloud.billing.v1.ListDiscountsResponse.items:type_name -> qdrant.cloud.billing.v1.Discount - 20, // 2: qdrant.cloud.billing.v1.Invoice.created_at:type_name -> google.protobuf.Timestamp + 26, // 2: qdrant.cloud.billing.v1.Invoice.created_at:type_name -> google.protobuf.Timestamp 0, // 3: qdrant.cloud.billing.v1.Invoice.status:type_name -> qdrant.cloud.billing.v1.InvoiceStatus - 20, // 4: qdrant.cloud.billing.v1.Invoice.paid_at:type_name -> google.protobuf.Timestamp - 20, // 5: qdrant.cloud.billing.v1.Invoice.payment_failed_at:type_name -> google.protobuf.Timestamp + 26, // 4: qdrant.cloud.billing.v1.Invoice.paid_at:type_name -> google.protobuf.Timestamp + 26, // 5: qdrant.cloud.billing.v1.Invoice.payment_failed_at:type_name -> google.protobuf.Timestamp 7, // 6: qdrant.cloud.billing.v1.Discount.percentage:type_name -> qdrant.cloud.billing.v1.DiscountPercentage 8, // 7: qdrant.cloud.billing.v1.Discount.fixed:type_name -> qdrant.cloud.billing.v1.DiscountFixed - 20, // 8: qdrant.cloud.billing.v1.Discount.valid_from:type_name -> google.protobuf.Timestamp - 20, // 9: qdrant.cloud.billing.v1.Discount.valid_until:type_name -> google.protobuf.Timestamp + 26, // 8: qdrant.cloud.billing.v1.Discount.valid_from:type_name -> google.protobuf.Timestamp + 26, // 9: qdrant.cloud.billing.v1.Discount.valid_until:type_name -> google.protobuf.Timestamp 12, // 10: qdrant.cloud.billing.v1.ListCreditContractsResponse.items:type_name -> qdrant.cloud.billing.v1.CreditContract 11, // 11: qdrant.cloud.billing.v1.ListCreditContractsResponse.consumption_history:type_name -> qdrant.cloud.billing.v1.MonthlyCreditConsumption - 20, // 12: qdrant.cloud.billing.v1.CreditContract.active_from:type_name -> google.protobuf.Timestamp - 20, // 13: qdrant.cloud.billing.v1.CreditContract.active_to:type_name -> google.protobuf.Timestamp - 20, // 14: qdrant.cloud.billing.v1.CreditContract.exhausted_at:type_name -> google.protobuf.Timestamp + 26, // 12: qdrant.cloud.billing.v1.CreditContract.active_from:type_name -> google.protobuf.Timestamp + 26, // 13: qdrant.cloud.billing.v1.CreditContract.active_to:type_name -> google.protobuf.Timestamp + 26, // 14: qdrant.cloud.billing.v1.CreditContract.exhausted_at:type_name -> google.protobuf.Timestamp 15, // 15: qdrant.cloud.billing.v1.ListCommitmentsResponse.items:type_name -> qdrant.cloud.billing.v1.Commitment - 20, // 16: qdrant.cloud.billing.v1.Commitment.active_from:type_name -> google.protobuf.Timestamp - 20, // 17: qdrant.cloud.billing.v1.Commitment.active_to:type_name -> google.protobuf.Timestamp - 1, // 18: qdrant.cloud.billing.v1.BillingService.ListInvoices:input_type -> qdrant.cloud.billing.v1.ListInvoicesRequest - 3, // 19: qdrant.cloud.billing.v1.BillingService.ListDiscounts:input_type -> qdrant.cloud.billing.v1.ListDiscountsRequest - 9, // 20: qdrant.cloud.billing.v1.BillingService.ListCreditContracts:input_type -> qdrant.cloud.billing.v1.ListCreditContractsRequest - 13, // 21: qdrant.cloud.billing.v1.BillingService.ListCommitments:input_type -> qdrant.cloud.billing.v1.ListCommitmentsRequest - 16, // 22: qdrant.cloud.billing.v1.BillingService.GetBillingAccountParent:input_type -> qdrant.cloud.billing.v1.GetBillingAccountParentRequest - 18, // 23: qdrant.cloud.billing.v1.BillingService.ListBillingAccountChildren:input_type -> qdrant.cloud.billing.v1.ListBillingAccountChildrenRequest - 2, // 24: qdrant.cloud.billing.v1.BillingService.ListInvoices:output_type -> qdrant.cloud.billing.v1.ListInvoicesResponse - 4, // 25: qdrant.cloud.billing.v1.BillingService.ListDiscounts:output_type -> qdrant.cloud.billing.v1.ListDiscountsResponse - 10, // 26: qdrant.cloud.billing.v1.BillingService.ListCreditContracts:output_type -> qdrant.cloud.billing.v1.ListCreditContractsResponse - 14, // 27: qdrant.cloud.billing.v1.BillingService.ListCommitments:output_type -> qdrant.cloud.billing.v1.ListCommitmentsResponse - 17, // 28: qdrant.cloud.billing.v1.BillingService.GetBillingAccountParent:output_type -> qdrant.cloud.billing.v1.GetBillingAccountParentResponse - 19, // 29: qdrant.cloud.billing.v1.BillingService.ListBillingAccountChildren:output_type -> qdrant.cloud.billing.v1.ListBillingAccountChildrenResponse - 24, // [24:30] is the sub-list for method output_type - 18, // [18:24] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 26, // 16: qdrant.cloud.billing.v1.Commitment.active_from:type_name -> google.protobuf.Timestamp + 26, // 17: qdrant.cloud.billing.v1.Commitment.active_to:type_name -> google.protobuf.Timestamp + 24, // 18: qdrant.cloud.billing.v1.GetBillingProfileResponse.billing_profile:type_name -> qdrant.cloud.billing.v1.BillingProfile + 24, // 19: qdrant.cloud.billing.v1.UpdateBillingProfileRequest.billing_profile:type_name -> qdrant.cloud.billing.v1.BillingProfile + 27, // 20: qdrant.cloud.billing.v1.UpdateBillingProfileRequest.update_mask:type_name -> google.protobuf.FieldMask + 24, // 21: qdrant.cloud.billing.v1.UpdateBillingProfileResponse.billing_profile:type_name -> qdrant.cloud.billing.v1.BillingProfile + 25, // 22: qdrant.cloud.billing.v1.BillingProfile.address:type_name -> qdrant.cloud.billing.v1.BillingProfileAddress + 1, // 23: qdrant.cloud.billing.v1.BillingService.ListInvoices:input_type -> qdrant.cloud.billing.v1.ListInvoicesRequest + 3, // 24: qdrant.cloud.billing.v1.BillingService.ListDiscounts:input_type -> qdrant.cloud.billing.v1.ListDiscountsRequest + 9, // 25: qdrant.cloud.billing.v1.BillingService.ListCreditContracts:input_type -> qdrant.cloud.billing.v1.ListCreditContractsRequest + 13, // 26: qdrant.cloud.billing.v1.BillingService.ListCommitments:input_type -> qdrant.cloud.billing.v1.ListCommitmentsRequest + 16, // 27: qdrant.cloud.billing.v1.BillingService.GetBillingAccountParent:input_type -> qdrant.cloud.billing.v1.GetBillingAccountParentRequest + 18, // 28: qdrant.cloud.billing.v1.BillingService.ListBillingAccountChildren:input_type -> qdrant.cloud.billing.v1.ListBillingAccountChildrenRequest + 20, // 29: qdrant.cloud.billing.v1.BillingService.GetBillingProfile:input_type -> qdrant.cloud.billing.v1.GetBillingProfileRequest + 22, // 30: qdrant.cloud.billing.v1.BillingService.UpdateBillingProfile:input_type -> qdrant.cloud.billing.v1.UpdateBillingProfileRequest + 2, // 31: qdrant.cloud.billing.v1.BillingService.ListInvoices:output_type -> qdrant.cloud.billing.v1.ListInvoicesResponse + 4, // 32: qdrant.cloud.billing.v1.BillingService.ListDiscounts:output_type -> qdrant.cloud.billing.v1.ListDiscountsResponse + 10, // 33: qdrant.cloud.billing.v1.BillingService.ListCreditContracts:output_type -> qdrant.cloud.billing.v1.ListCreditContractsResponse + 14, // 34: qdrant.cloud.billing.v1.BillingService.ListCommitments:output_type -> qdrant.cloud.billing.v1.ListCommitmentsResponse + 17, // 35: qdrant.cloud.billing.v1.BillingService.GetBillingAccountParent:output_type -> qdrant.cloud.billing.v1.GetBillingAccountParentResponse + 19, // 36: qdrant.cloud.billing.v1.BillingService.ListBillingAccountChildren:output_type -> qdrant.cloud.billing.v1.ListBillingAccountChildrenResponse + 21, // 37: qdrant.cloud.billing.v1.BillingService.GetBillingProfile:output_type -> qdrant.cloud.billing.v1.GetBillingProfileResponse + 23, // 38: qdrant.cloud.billing.v1.BillingService.UpdateBillingProfile:output_type -> qdrant.cloud.billing.v1.UpdateBillingProfileResponse + 31, // [31:39] is the sub-list for method output_type + 23, // [23:31] is the sub-list for method input_type + 23, // [23:23] is the sub-list for extension type_name + 23, // [23:23] is the sub-list for extension extendee + 0, // [0:23] is the sub-list for field type_name } func init() { file_qdrant_cloud_billing_v1_billing_proto_init() } @@ -1581,13 +2057,14 @@ func file_qdrant_cloud_billing_v1_billing_proto_init() { (*Discount_Fixed)(nil), } file_qdrant_cloud_billing_v1_billing_proto_msgTypes[11].OneofWrappers = []any{} + file_qdrant_cloud_billing_v1_billing_proto_msgTypes[24].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_qdrant_cloud_billing_v1_billing_proto_rawDesc), len(file_qdrant_cloud_billing_v1_billing_proto_rawDesc)), NumEnums: 1, - NumMessages: 19, + NumMessages: 25, NumExtensions: 0, NumServices: 1, }, diff --git a/gen/go/qdrant/cloud/billing/v1/billing_grpc.pb.go b/gen/go/qdrant/cloud/billing/v1/billing_grpc.pb.go index 856181e2..5388b5c6 100644 --- a/gen/go/qdrant/cloud/billing/v1/billing_grpc.pb.go +++ b/gen/go/qdrant/cloud/billing/v1/billing_grpc.pb.go @@ -25,6 +25,8 @@ const ( BillingService_ListCommitments_FullMethodName = "/qdrant.cloud.billing.v1.BillingService/ListCommitments" BillingService_GetBillingAccountParent_FullMethodName = "/qdrant.cloud.billing.v1.BillingService/GetBillingAccountParent" BillingService_ListBillingAccountChildren_FullMethodName = "/qdrant.cloud.billing.v1.BillingService/ListBillingAccountChildren" + BillingService_GetBillingProfile_FullMethodName = "/qdrant.cloud.billing.v1.BillingService/GetBillingProfile" + BillingService_UpdateBillingProfile_FullMethodName = "/qdrant.cloud.billing.v1.BillingService/UpdateBillingProfile" ) // BillingServiceClient is the client API for BillingService service. @@ -60,6 +62,15 @@ type BillingServiceClient interface { // Required permissions: // - read:payment_information ListBillingAccountChildren(ctx context.Context, in *ListBillingAccountChildrenRequest, opts ...grpc.CallOption) (*ListBillingAccountChildrenResponse, error) + // Returns the billing profile of the billing account identified by the given account ID. Child accounts are not accepted. + // Required permissions: + // - read:payment_information + GetBillingProfile(ctx context.Context, in *GetBillingProfileRequest, opts ...grpc.CallOption) (*GetBillingProfileResponse, error) + // Updates the billing profile of the billing account identified by the given ID. With an update mask, only the masked + // fields change; the address is masked as a whole with the path `address`. Child accounts are not accepted. + // Required permissions: + // - write:payment_information + UpdateBillingProfile(ctx context.Context, in *UpdateBillingProfileRequest, opts ...grpc.CallOption) (*UpdateBillingProfileResponse, error) } type billingServiceClient struct { @@ -130,6 +141,26 @@ func (c *billingServiceClient) ListBillingAccountChildren(ctx context.Context, i return out, nil } +func (c *billingServiceClient) GetBillingProfile(ctx context.Context, in *GetBillingProfileRequest, opts ...grpc.CallOption) (*GetBillingProfileResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetBillingProfileResponse) + err := c.cc.Invoke(ctx, BillingService_GetBillingProfile_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *billingServiceClient) UpdateBillingProfile(ctx context.Context, in *UpdateBillingProfileRequest, opts ...grpc.CallOption) (*UpdateBillingProfileResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateBillingProfileResponse) + err := c.cc.Invoke(ctx, BillingService_UpdateBillingProfile_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + // BillingServiceServer is the server API for BillingService service. // All implementations must embed UnimplementedBillingServiceServer // for forward compatibility. @@ -163,6 +194,15 @@ type BillingServiceServer interface { // Required permissions: // - read:payment_information ListBillingAccountChildren(context.Context, *ListBillingAccountChildrenRequest) (*ListBillingAccountChildrenResponse, error) + // Returns the billing profile of the billing account identified by the given account ID. Child accounts are not accepted. + // Required permissions: + // - read:payment_information + GetBillingProfile(context.Context, *GetBillingProfileRequest) (*GetBillingProfileResponse, error) + // Updates the billing profile of the billing account identified by the given ID. With an update mask, only the masked + // fields change; the address is masked as a whole with the path `address`. Child accounts are not accepted. + // Required permissions: + // - write:payment_information + UpdateBillingProfile(context.Context, *UpdateBillingProfileRequest) (*UpdateBillingProfileResponse, error) mustEmbedUnimplementedBillingServiceServer() } @@ -191,6 +231,12 @@ func (UnimplementedBillingServiceServer) GetBillingAccountParent(context.Context func (UnimplementedBillingServiceServer) ListBillingAccountChildren(context.Context, *ListBillingAccountChildrenRequest) (*ListBillingAccountChildrenResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListBillingAccountChildren not implemented") } +func (UnimplementedBillingServiceServer) GetBillingProfile(context.Context, *GetBillingProfileRequest) (*GetBillingProfileResponse, error) { + return nil, status.Error(codes.Unimplemented, "method GetBillingProfile not implemented") +} +func (UnimplementedBillingServiceServer) UpdateBillingProfile(context.Context, *UpdateBillingProfileRequest) (*UpdateBillingProfileResponse, error) { + return nil, status.Error(codes.Unimplemented, "method UpdateBillingProfile not implemented") +} func (UnimplementedBillingServiceServer) mustEmbedUnimplementedBillingServiceServer() {} func (UnimplementedBillingServiceServer) testEmbeddedByValue() {} @@ -320,6 +366,42 @@ func _BillingService_ListBillingAccountChildren_Handler(srv interface{}, ctx con return interceptor(ctx, in, info, handler) } +func _BillingService_GetBillingProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBillingProfileRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BillingServiceServer).GetBillingProfile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: BillingService_GetBillingProfile_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BillingServiceServer).GetBillingProfile(ctx, req.(*GetBillingProfileRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BillingService_UpdateBillingProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateBillingProfileRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BillingServiceServer).UpdateBillingProfile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: BillingService_UpdateBillingProfile_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BillingServiceServer).UpdateBillingProfile(ctx, req.(*UpdateBillingProfileRequest)) + } + return interceptor(ctx, in, info, handler) +} + // BillingService_ServiceDesc is the grpc.ServiceDesc for BillingService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -351,6 +433,14 @@ var BillingService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ListBillingAccountChildren", Handler: _BillingService_ListBillingAccountChildren_Handler, }, + { + MethodName: "GetBillingProfile", + Handler: _BillingService_GetBillingProfile_Handler, + }, + { + MethodName: "UpdateBillingProfile", + Handler: _BillingService_UpdateBillingProfile_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "qdrant/cloud/billing/v1/billing.proto", diff --git a/gen/openapiv2/qdrant/cloud/billing/v1/billing.swagger.json b/gen/openapiv2/qdrant/cloud/billing/v1/billing.swagger.json index 5c2c3085..88f27d06 100644 --- a/gen/openapiv2/qdrant/cloud/billing/v1/billing.swagger.json +++ b/gen/openapiv2/qdrant/cloud/billing/v1/billing.swagger.json @@ -207,9 +207,113 @@ "BillingService" ] } + }, + "/api/billing/v1/accounts/{accountId}/profile": { + "get": { + "summary": "Returns the billing profile of the billing account identified by the given account ID. Child accounts are not accepted.\nRequired permissions:\n- read:payment_information", + "operationId": "BillingService_GetBillingProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetBillingProfileResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "accountId", + "description": "The identifier of the billing account (in GUID format).\nThis is a required field.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "BillingService" + ] + } + }, + "/api/billing/v1/accounts/{billingProfile.accountId}/profile": { + "put": { + "summary": "Updates the billing profile of the billing account identified by the given ID. With an update mask, only the masked\nfields change; the address is masked as a whole with the path `address`. Child accounts are not accepted.\nRequired permissions:\n- write:payment_information", + "operationId": "BillingService_UpdateBillingProfile", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1UpdateBillingProfileResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "billingProfile.accountId", + "description": "The identifier of the billing account (in GUID format).", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BillingServiceUpdateBillingProfileBody" + } + } + ], + "tags": [ + "BillingService" + ] + } } }, "definitions": { + "BillingServiceUpdateBillingProfileBody": { + "type": "object", + "properties": { + "billingProfile": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The legal name printed on invoices." + }, + "email": { + "type": "string", + "description": "The billing email." + }, + "address": { + "$ref": "#/definitions/v1BillingProfileAddress", + "description": "The billing address. Written as a whole.\nUnset when the profile has no address." + }, + "taxId": { + "type": "string", + "description": "The Tax ID. Needs an address country with a known tax type." + } + }, + "description": "The billing profile to write.\nThis is a required field." + }, + "updateMask": { + "type": "string", + "description": "Optional mask of fields to update. When set, only the fields listed in\nthe mask are updated; all other fields keep their current values on the\nserver. The address is masked as a whole, with the path `address`.\nField paths reference the resource (BillingProfile) message, not the\nrequest envelope.\nWhen unset or empty, the request is treated as a full-resource\nreplacement." + } + }, + "description": "UpdateBillingProfileRequest is the request for the UpdateBillingProfile RPC." + }, "protobufAny": { "type": "object", "properties": { @@ -238,6 +342,72 @@ } } }, + "v1BillingProfile": { + "type": "object", + "properties": { + "accountId": { + "type": "string", + "description": "The identifier of the billing account (in GUID format)." + }, + "name": { + "type": "string", + "description": "The legal name printed on invoices." + }, + "email": { + "type": "string", + "description": "The billing email." + }, + "address": { + "$ref": "#/definitions/v1BillingProfileAddress", + "description": "The billing address. Written as a whole.\nUnset when the profile has no address." + }, + "taxId": { + "type": "string", + "description": "The Tax ID. Needs an address country with a known tax type." + } + }, + "description": "BillingProfile is who a billing account is billed as." + }, + "v1BillingProfileAddress": { + "type": "object", + "properties": { + "line1": { + "type": "string", + "description": "The first line of the billing address.\nThis is a required field." + }, + "line2": { + "type": "string", + "description": "The second line of the billing address.\nThis is an optional field." + }, + "city": { + "type": "string", + "description": "The city of the billing address.\nThis is an optional field." + }, + "state": { + "type": "string", + "description": "The state or province of the billing address.\nThis is an optional field." + }, + "postalCode": { + "type": "string", + "description": "The postal code of the billing address.\nThis is an optional field." + }, + "country": { + "type": "string", + "description": "The country of the billing address.\nThe format should be a two-letter country code ISO 3166-1 alpha-2\nsee https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2." + }, + "taxSupportedCountry": { + "type": "boolean", + "description": "Indicates if the country supports tax.\nThis is an read-only field, and filled out by the system.", + "readOnly": true + }, + "formattedAddress": { + "type": "string", + "description": "The address formatted for display on a single line, in the order and\nformat of its country, ending with the country name.\nThis is an read-only field, and filled out by the system.", + "readOnly": true + } + }, + "description": "BillingProfileAddress is the postal address of a billing profile." + }, "v1Commitment": { "type": "object", "properties": { @@ -406,6 +576,16 @@ }, "description": "GetBillingAccountParentResponse contains the parent account for the requested account." }, + "v1GetBillingProfileResponse": { + "type": "object", + "properties": { + "billingProfile": { + "$ref": "#/definitions/v1BillingProfile", + "description": "The billing profile." + } + }, + "description": "GetBillingProfileResponse is the response from the GetBillingProfile RPC." + }, "v1Invoice": { "type": "object", "properties": { @@ -576,6 +756,16 @@ } }, "description": "MonthlyCreditConsumption represents a month's consumed credits." + }, + "v1UpdateBillingProfileResponse": { + "type": "object", + "properties": { + "billingProfile": { + "$ref": "#/definitions/v1BillingProfile", + "description": "The billing profile as written." + } + }, + "description": "UpdateBillingProfileResponse is the response from the UpdateBillingProfile RPC." } } } diff --git a/gen/python/qdrant/cloud/billing/v1/billing_pb2.py b/gen/python/qdrant/cloud/billing/v1/billing_pb2.py index 3f520e4b..0ba609d2 100644 --- a/gen/python/qdrant/cloud/billing/v1/billing_pb2.py +++ b/gen/python/qdrant/cloud/billing/v1/billing_pb2.py @@ -24,13 +24,16 @@ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from qdrant.cloud.common.v1 import common_pb2 as qdrant_dot_cloud_dot_common_dot_v1_dot_common__pb2 +from qdrant.cloud.event.v1 import events_pb2 as qdrant_dot_cloud_dot_event_dot_v1_dot_events__pb2 from qdrant.cloud.facade.mcp.v1 import mcp_options_pb2 as qdrant_dot_cloud_dot_facade_dot_mcp_dot_v1_dot_mcp__options__pb2 from qdrant.cloud.facade.v1 import facade_options_pb2 as qdrant_dot_cloud_dot_facade_dot_v1_dot_facade__options__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%qdrant/cloud/billing/v1/billing.proto\x12\x17qdrant.cloud.billing.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a#qdrant/cloud/common/v1/common.proto\x1a,qdrant/cloud/facade/mcp/v1/mcp_options.proto\x1a+qdrant/cloud/facade/v1/facade_options.proto\">\n\x13ListInvoicesRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"N\n\x14ListInvoicesResponse\x12\x36\n\x05items\x18\x01 \x03(\x0b\x32 .qdrant.cloud.billing.v1.InvoiceR\x05items\"?\n\x14ListDiscountsRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"P\n\x15ListDiscountsResponse\x12\x37\n\x05items\x18\x01 \x03(\x0b\x32!.qdrant.cloud.billing.v1.DiscountR\x05items\"\xc6\x05\n\x07Invoice\x12\x17\n\x02id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x02id\x12$\n\x06number\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01H\x00R\x06number\x88\x01\x01\x12*\n\x0ctotal_amount\x18\x03 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00R\x0btotalAmount\x12\x41\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\tcreatedAt\x12J\n\x06status\x18\x05 \x01(\x0e\x32&.qdrant.cloud.billing.v1.InvoiceStatusB\n\xbaH\x07\x82\x01\x04\x10\x01 \x00R\x06status\x12&\n\x07pdf_url\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\x88\x01\x01H\x01R\x06pdfUrl\x88\x01\x01\x12\x35\n\x0fsubtotal_amount\x18\x07 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00H\x02R\x0esubtotalAmount\x88\x01\x01\x12+\n\namount_due\x18\x08 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00H\x03R\tamountDue\x88\x01\x01\x12;\n\x12hosted_invoice_url\x18\t \x01(\tB\x08\xbaH\x05r\x03\x88\x01\x01H\x04R\x10hostedInvoiceUrl\x88\x01\x01\x12\x38\n\x07paid_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x05R\x06paidAt\x88\x01\x01\x12K\n\x11payment_failed_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x06R\x0fpaymentFailedAt\x88\x01\x01\x42\t\n\x07_numberB\n\n\x08_pdf_urlB\x12\n\x10_subtotal_amountB\r\n\x0b_amount_dueB\x15\n\x13_hosted_invoice_urlB\n\n\x08_paid_atB\x14\n\x12_payment_failed_at\"\xba\x03\n\x08\x44iscount\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x04name\x12M\n\npercentage\x18\x02 \x01(\x0b\x32+.qdrant.cloud.billing.v1.DiscountPercentageH\x00R\npercentage\x12>\n\x05\x66ixed\x18\x03 \x01(\x0b\x32&.qdrant.cloud.billing.v1.DiscountFixedH\x00R\x05\x66ixed\x12\x41\n\nvalid_from\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\tvalidFrom\x12H\n\x0bvalid_until\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02@\x00\xc8\x01\x01R\nvalidUntil:f\xbaHc\x1a\x61\n\x15\x64iscount.valid_period\x12$valid_until must be after valid_from\x1a\"this.valid_until > this.valid_fromB\r\n\x04type\x12\x05\xbaH\x02\x08\x01\"C\n\x12\x44iscountPercentage\x12-\n\x05value\x18\x01 \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00Y@)\x00\x00\x00\x00\x00\x00\x00\x00R\x05value\"d\n\rDiscountFixed\x12$\n\x05value\x18\x01 \x01(\x01\x42\x0e\xbaH\x0b\x12\t!\x00\x00\x00\x00\x00\x00\x00\x00R\x05value\x12-\n\x08\x63urrency\x18\x02 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{3}$R\x08\x63urrency\"E\n\x1aListCreditContractsRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"\xc0\x01\n\x1bListCreditContractsResponse\x12=\n\x05items\x18\x01 \x03(\x0b\x32\'.qdrant.cloud.billing.v1.CreditContractR\x05items\x12\x62\n\x13\x63onsumption_history\x18\x02 \x03(\x0b\x32\x31.qdrant.cloud.billing.v1.MonthlyCreditConsumptionR\x12\x63onsumptionHistory\"\xb3\x01\n\x18MonthlyCreditConsumption\x12\x1f\n\x04year\x18\x01 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\xb8\x17(\xd0\x0fR\x04year\x12\x1f\n\x05month\x18\x02 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x0c(\x01R\x05month\x12&\n\x06\x61mount\x18\x03 \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x06\x61mount\x12-\n\x08\x63urrency\x18\x04 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{3}$R\x08\x63urrency\"\xf0\x04\n\x0e\x43reditContract\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\'\n\naccount_id\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\x12\x31\n\x0ctotal_amount\x18\x03 \x01(\x01\x42\x0e\xbaH\x0b\x12\t!\x00\x00\x00\x00\x00\x00\x00\x00R\x0btotalAmount\x12-\n\x08\x63urrency\x18\x04 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{3}$R\x08\x63urrency\x12\x43\n\x0b\x61\x63tive_from\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\nactiveFrom\x12?\n\tactive_to\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\x08\x61\x63tiveTo\x12\"\n\x05notes\x18\x08 \x01(\tB\x07\xbaH\x04r\x02\x10\x01H\x00R\x05notes\x88\x01\x01\x12/\n\x0bused_amount\x18\t \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\nusedAmount\x12\x39\n\x10remaining_amount\x18\n \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x0fremainingAmount\x12=\n\x0c\x65xhausted_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0b\x65xhaustedAt\x12\x33\n\rvoided_amount\x18\x0c \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x0cvoidedAmount\x12%\n\x0eoverage_exempt\x18\r \x01(\x08R\roverageExemptB\x08\n\x06_notes\"A\n\x16ListCommitmentsRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"T\n\x17ListCommitmentsResponse\x12\x39\n\x05items\x18\x01 \x03(\x0b\x32#.qdrant.cloud.billing.v1.CommitmentR\x05items\"\xa2\x03\n\nCommitment\x12\x17\n\x02id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x02id\x12\'\n\naccount_id\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\x12\x31\n\x0ctotal_amount\x18\x03 \x01(\x01\x42\x0e\xbaH\x0b\x12\t!\x00\x00\x00\x00\x00\x00\x00\x00R\x0btotalAmount\x12-\n\x08\x63urrency\x18\x04 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{3}$R\x08\x63urrency\x12\x43\n\x0b\x61\x63tive_from\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\nactiveFrom\x12?\n\tactive_to\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\x08\x61\x63tiveTo\x12/\n\x0bused_amount\x18\x07 \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\nusedAmount\x12\x39\n\x10remaining_amount\x18\x08 \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x0fremainingAmount\"I\n\x1eGetBillingAccountParentRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"W\n\x1fGetBillingAccountParentResponse\x12\x34\n\x11parent_account_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x0fparentAccountId\"L\n!ListBillingAccountChildrenRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"_\n\"ListBillingAccountChildrenResponse\x12\x39\n\x11\x63hild_account_ids\x18\x01 \x03(\tB\r\xbaH\n\x92\x01\x07\"\x05r\x03\xb0\x01\x01R\x0f\x63hildAccountIds*\xb6\x01\n\rInvoiceStatus\x12\x1e\n\x1aINVOICE_STATUS_UNSPECIFIED\x10\x00\x12\x18\n\x14INVOICE_STATUS_DRAFT\x10\x01\x12\x17\n\x13INVOICE_STATUS_OPEN\x10\x02\x12\x17\n\x13INVOICE_STATUS_VOID\x10\x03\x12\x17\n\x13INVOICE_STATUS_PAID\x10\x04\x12 \n\x1cINVOICE_STATUS_UNCOLLECTIBLE\x10\x05\x32\xcc\x11\n\x0e\x42illingService\x12\xa6\x02\n\x0cListInvoices\x12,.qdrant.cloud.billing.v1.ListInvoicesRequest\x1a-.qdrant.cloud.billing.v1.ListInvoicesResponse\"\xb8\x01\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19O\n>Lists all invoices for the account identified by the given ID.\x12\rList invoices\xaa\xb8\x19\x0f\n\rlist_invoices\x82\xd3\xe4\x93\x02\x30\x12./api/billing/v1/accounts/{account_id}/invoices\x12\xad\x02\n\rListDiscounts\x12-.qdrant.cloud.billing.v1.ListDiscountsRequest\x1a..qdrant.cloud.billing.v1.ListDiscountsResponse\"\xbc\x01\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19Q\n?Lists all discounts for the account identified by the given ID.\x12\x0eList discounts\xaa\xb8\x19\x10\n\x0elist_discounts\x82\xd3\xe4\x93\x02\x31\x12//api/billing/v1/accounts/{account_id}/discounts\x12\xdb\x02\n\x13ListCreditContracts\x12\x33.qdrant.cloud.billing.v1.ListCreditContractsRequest\x1a\x34.qdrant.cloud.billing.v1.ListCreditContractsResponse\"\xd8\x01\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19_\nFLists all credit contracts for the account identified by the given ID.\x12\x15List credit contracts\xaa\xb8\x19\x17\n\x15list_credit_contracts\x82\xd3\xe4\x93\x02\x38\x12\x36/api/billing/v1/accounts/{account_id}/credit-contracts\x12\x97\x03\n\x0fListCommitments\x12/.qdrant.cloud.billing.v1.ListCommitmentsRequest\x1a\x30.qdrant.cloud.billing.v1.ListCommitmentsResponse\"\xa0\x02\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19\xb0\x01\n\x9b\x01Lists the postpaid commitments active today (started and not yet ended) for the parent account identified by the given ID. Child accounts are not accepted.\x12\x10List commitments\xaa\xb8\x19\x12\n\x10list_commitments\x82\xd3\xe4\x93\x02\x33\x12\x31/api/billing/v1/accounts/{account_id}/commitments\x12\xa0\x03\n\x17GetBillingAccountParent\x12\x37.qdrant.cloud.billing.v1.GetBillingAccountParentRequest\x1a\x38.qdrant.cloud.billing.v1.GetBillingAccountParentResponse\"\x91\x02\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19\x9c\x01\n~Returns the parent billing account for the account identified by the given ID. Returns NOT_FOUND if the account has no parent.\x12\x1aGet billing account parent\xaa\xb8\x19\x1c\n\x1aget_billing_account_parent\x82\xd3\xe4\x93\x02.\x12,/api/billing/v1/accounts/{account_id}/parent\x12\xbd\x03\n\x1aListBillingAccountChildren\x12:.qdrant.cloud.billing.v1.ListBillingAccountChildrenRequest\x1a;.qdrant.cloud.billing.v1.ListBillingAccountChildrenResponse\"\xa5\x02\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19\xab\x01\n\x89\x01Lists all child accounts for the billing parent account identified by the given ID. Returns an empty list if the account has no children.\x12\x1dList billing account children\xaa\xb8\x19\x1f\n\x1dlist_billing_account_children\x82\xd3\xe4\x93\x02\x30\x12./api/billing/v1/accounts/{account_id}/children\x1a\x06\xc2\xb5\x18\x02\x08\x01\x42\xfe\x01\n\x1b\x63om.qdrant.cloud.billing.v1B\x0c\x42illingProtoP\x01ZRgithub.com/qdrant/qdrant-cloud-public-api/gen/go/qdrant/cloud/billing/v1;billingv1\xa2\x02\x03QCB\xaa\x02\x17Qdrant.Cloud.Billing.V1\xca\x02\x17Qdrant\\Cloud\\Billing\\V1\xe2\x02#Qdrant\\Cloud\\Billing\\V1\\GPBMetadata\xea\x02\x1aQdrant::Cloud::Billing::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%qdrant/cloud/billing/v1/billing.proto\x12\x17qdrant.cloud.billing.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a#qdrant/cloud/common/v1/common.proto\x1a\"qdrant/cloud/event/v1/events.proto\x1a,qdrant/cloud/facade/mcp/v1/mcp_options.proto\x1a+qdrant/cloud/facade/v1/facade_options.proto\">\n\x13ListInvoicesRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"N\n\x14ListInvoicesResponse\x12\x36\n\x05items\x18\x01 \x03(\x0b\x32 .qdrant.cloud.billing.v1.InvoiceR\x05items\"?\n\x14ListDiscountsRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"P\n\x15ListDiscountsResponse\x12\x37\n\x05items\x18\x01 \x03(\x0b\x32!.qdrant.cloud.billing.v1.DiscountR\x05items\"\xc6\x05\n\x07Invoice\x12\x17\n\x02id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x02id\x12$\n\x06number\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01H\x00R\x06number\x88\x01\x01\x12*\n\x0ctotal_amount\x18\x03 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00R\x0btotalAmount\x12\x41\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\tcreatedAt\x12J\n\x06status\x18\x05 \x01(\x0e\x32&.qdrant.cloud.billing.v1.InvoiceStatusB\n\xbaH\x07\x82\x01\x04\x10\x01 \x00R\x06status\x12&\n\x07pdf_url\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\x88\x01\x01H\x01R\x06pdfUrl\x88\x01\x01\x12\x35\n\x0fsubtotal_amount\x18\x07 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00H\x02R\x0esubtotalAmount\x88\x01\x01\x12+\n\namount_due\x18\x08 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00H\x03R\tamountDue\x88\x01\x01\x12;\n\x12hosted_invoice_url\x18\t \x01(\tB\x08\xbaH\x05r\x03\x88\x01\x01H\x04R\x10hostedInvoiceUrl\x88\x01\x01\x12\x38\n\x07paid_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x05R\x06paidAt\x88\x01\x01\x12K\n\x11payment_failed_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x06R\x0fpaymentFailedAt\x88\x01\x01\x42\t\n\x07_numberB\n\n\x08_pdf_urlB\x12\n\x10_subtotal_amountB\r\n\x0b_amount_dueB\x15\n\x13_hosted_invoice_urlB\n\n\x08_paid_atB\x14\n\x12_payment_failed_at\"\xba\x03\n\x08\x44iscount\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x04name\x12M\n\npercentage\x18\x02 \x01(\x0b\x32+.qdrant.cloud.billing.v1.DiscountPercentageH\x00R\npercentage\x12>\n\x05\x66ixed\x18\x03 \x01(\x0b\x32&.qdrant.cloud.billing.v1.DiscountFixedH\x00R\x05\x66ixed\x12\x41\n\nvalid_from\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\tvalidFrom\x12H\n\x0bvalid_until\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0b\xbaH\x08\xb2\x01\x02@\x00\xc8\x01\x01R\nvalidUntil:f\xbaHc\x1a\x61\n\x15\x64iscount.valid_period\x12$valid_until must be after valid_from\x1a\"this.valid_until > this.valid_fromB\r\n\x04type\x12\x05\xbaH\x02\x08\x01\"C\n\x12\x44iscountPercentage\x12-\n\x05value\x18\x01 \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00Y@)\x00\x00\x00\x00\x00\x00\x00\x00R\x05value\"d\n\rDiscountFixed\x12$\n\x05value\x18\x01 \x01(\x01\x42\x0e\xbaH\x0b\x12\t!\x00\x00\x00\x00\x00\x00\x00\x00R\x05value\x12-\n\x08\x63urrency\x18\x02 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{3}$R\x08\x63urrency\"E\n\x1aListCreditContractsRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"\xc0\x01\n\x1bListCreditContractsResponse\x12=\n\x05items\x18\x01 \x03(\x0b\x32\'.qdrant.cloud.billing.v1.CreditContractR\x05items\x12\x62\n\x13\x63onsumption_history\x18\x02 \x03(\x0b\x32\x31.qdrant.cloud.billing.v1.MonthlyCreditConsumptionR\x12\x63onsumptionHistory\"\xb3\x01\n\x18MonthlyCreditConsumption\x12\x1f\n\x04year\x18\x01 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\xb8\x17(\xd0\x0fR\x04year\x12\x1f\n\x05month\x18\x02 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x0c(\x01R\x05month\x12&\n\x06\x61mount\x18\x03 \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x06\x61mount\x12-\n\x08\x63urrency\x18\x04 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{3}$R\x08\x63urrency\"\xf0\x04\n\x0e\x43reditContract\x12\x18\n\x02id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x02id\x12\'\n\naccount_id\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\x12\x31\n\x0ctotal_amount\x18\x03 \x01(\x01\x42\x0e\xbaH\x0b\x12\t!\x00\x00\x00\x00\x00\x00\x00\x00R\x0btotalAmount\x12-\n\x08\x63urrency\x18\x04 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{3}$R\x08\x63urrency\x12\x43\n\x0b\x61\x63tive_from\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\nactiveFrom\x12?\n\tactive_to\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\x08\x61\x63tiveTo\x12\"\n\x05notes\x18\x08 \x01(\tB\x07\xbaH\x04r\x02\x10\x01H\x00R\x05notes\x88\x01\x01\x12/\n\x0bused_amount\x18\t \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\nusedAmount\x12\x39\n\x10remaining_amount\x18\n \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x0fremainingAmount\x12=\n\x0c\x65xhausted_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0b\x65xhaustedAt\x12\x33\n\rvoided_amount\x18\x0c \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x0cvoidedAmount\x12%\n\x0eoverage_exempt\x18\r \x01(\x08R\roverageExemptB\x08\n\x06_notes\"A\n\x16ListCommitmentsRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"T\n\x17ListCommitmentsResponse\x12\x39\n\x05items\x18\x01 \x03(\x0b\x32#.qdrant.cloud.billing.v1.CommitmentR\x05items\"\xa2\x03\n\nCommitment\x12\x17\n\x02id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x02id\x12\'\n\naccount_id\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\x12\x31\n\x0ctotal_amount\x18\x03 \x01(\x01\x42\x0e\xbaH\x0b\x12\t!\x00\x00\x00\x00\x00\x00\x00\x00R\x0btotalAmount\x12-\n\x08\x63urrency\x18\x04 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{3}$R\x08\x63urrency\x12\x43\n\x0b\x61\x63tive_from\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\nactiveFrom\x12?\n\tactive_to\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\x08\x61\x63tiveTo\x12/\n\x0bused_amount\x18\x07 \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\nusedAmount\x12\x39\n\x10remaining_amount\x18\x08 \x01(\x01\x42\x0e\xbaH\x0b\x12\t)\x00\x00\x00\x00\x00\x00\x00\x00R\x0fremainingAmount\"I\n\x1eGetBillingAccountParentRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"W\n\x1fGetBillingAccountParentResponse\x12\x34\n\x11parent_account_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x0fparentAccountId\"L\n!ListBillingAccountChildrenRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"_\n\"ListBillingAccountChildrenResponse\x12\x39\n\x11\x63hild_account_ids\x18\x01 \x03(\tB\r\xbaH\n\x92\x01\x07\"\x05r\x03\xb0\x01\x01R\x0f\x63hildAccountIds\"C\n\x18GetBillingProfileRequest\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\"u\n\x19GetBillingProfileResponse\x12X\n\x0f\x62illing_profile\x18\x01 \x01(\x0b\x32\'.qdrant.cloud.billing.v1.BillingProfileB\x06\xbaH\x03\xc8\x01\x01R\x0e\x62illingProfile\"\xb4\x01\n\x1bUpdateBillingProfileRequest\x12X\n\x0f\x62illing_profile\x18\x01 \x01(\x0b\x32\'.qdrant.cloud.billing.v1.BillingProfileB\x06\xbaH\x03\xc8\x01\x01R\x0e\x62illingProfile\x12;\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\nupdateMask\"x\n\x1cUpdateBillingProfileResponse\x12X\n\x0f\x62illing_profile\x18\x01 \x01(\x0b\x32\'.qdrant.cloud.billing.v1.BillingProfileB\x06\xbaH\x03\xc8\x01\x01R\x0e\x62illingProfile\"\xe4\x01\n\x0e\x42illingProfile\x12\'\n\naccount_id\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\taccountId\x12\x1e\n\x04name\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\x80\x02R\x04name\x12\x1f\n\x05\x65mail\x18\x03 \x01(\tB\t\xbaH\x06r\x04\x10\x01`\x01R\x05\x65mail\x12H\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32..qdrant.cloud.billing.v1.BillingProfileAddressR\x07\x61\x64\x64ress\x12\x1e\n\x06tax_id\x18\x05 \x01(\tB\x07\xbaH\x04r\x02\x18@R\x05taxId\"\xe5\x03\n\x15\x42illingProfileAddress\x12 \n\x05line1\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\x80\x02R\x05line1\x12%\n\x05line2\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\x80\x02H\x00R\x05line2\x88\x01\x01\x12#\n\x04\x63ity\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\x80\x01H\x01R\x04\x63ity\x88\x01\x01\x12%\n\x05state\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\x80\x01H\x02R\x05state\x88\x01\x01\x12/\n\x0bpostal_code\x18\x05 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 H\x03R\npostalCode\x88\x01\x01\x12+\n\x07\x63ountry\x18\x06 \x01(\tB\x11\xbaH\x0er\x0c\x32\n^[A-Z]{2}$R\x07\x63ountry\x12=\n\x15tax_supported_country\x18\x07 \x01(\x08\x42\x04\xe2\x41\x01\x03H\x04R\x13taxSupportedCountry\x88\x01\x01\x12=\n\x11\x66ormatted_address\x18\x08 \x01(\tB\x0b\xe2\x41\x01\x03\xbaH\x04r\x02\x10\x01H\x05R\x10\x66ormattedAddress\x88\x01\x01\x42\x08\n\x06_line2B\x07\n\x05_cityB\x08\n\x06_stateB\x0e\n\x0c_postal_codeB\x18\n\x16_tax_supported_countryB\x14\n\x12_formatted_address*\xb6\x01\n\rInvoiceStatus\x12\x1e\n\x1aINVOICE_STATUS_UNSPECIFIED\x10\x00\x12\x18\n\x14INVOICE_STATUS_DRAFT\x10\x01\x12\x17\n\x13INVOICE_STATUS_OPEN\x10\x02\x12\x17\n\x13INVOICE_STATUS_VOID\x10\x03\x12\x17\n\x13INVOICE_STATUS_PAID\x10\x04\x12 \n\x1cINVOICE_STATUS_UNCOLLECTIBLE\x10\x05\x32\xb7\x1d\n\x0e\x42illingService\x12\xa6\x02\n\x0cListInvoices\x12,.qdrant.cloud.billing.v1.ListInvoicesRequest\x1a-.qdrant.cloud.billing.v1.ListInvoicesResponse\"\xb8\x01\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19O\n>Lists all invoices for the account identified by the given ID.\x12\rList invoices\xaa\xb8\x19\x0f\n\rlist_invoices\x82\xd3\xe4\x93\x02\x30\x12./api/billing/v1/accounts/{account_id}/invoices\x12\xad\x02\n\rListDiscounts\x12-.qdrant.cloud.billing.v1.ListDiscountsRequest\x1a..qdrant.cloud.billing.v1.ListDiscountsResponse\"\xbc\x01\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19Q\n?Lists all discounts for the account identified by the given ID.\x12\x0eList discounts\xaa\xb8\x19\x10\n\x0elist_discounts\x82\xd3\xe4\x93\x02\x31\x12//api/billing/v1/accounts/{account_id}/discounts\x12\xdb\x02\n\x13ListCreditContracts\x12\x33.qdrant.cloud.billing.v1.ListCreditContractsRequest\x1a\x34.qdrant.cloud.billing.v1.ListCreditContractsResponse\"\xd8\x01\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19_\nFLists all credit contracts for the account identified by the given ID.\x12\x15List credit contracts\xaa\xb8\x19\x17\n\x15list_credit_contracts\x82\xd3\xe4\x93\x02\x38\x12\x36/api/billing/v1/accounts/{account_id}/credit-contracts\x12\x97\x03\n\x0fListCommitments\x12/.qdrant.cloud.billing.v1.ListCommitmentsRequest\x1a\x30.qdrant.cloud.billing.v1.ListCommitmentsResponse\"\xa0\x02\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19\xb0\x01\n\x9b\x01Lists the postpaid commitments active today (started and not yet ended) for the parent account identified by the given ID. Child accounts are not accepted.\x12\x10List commitments\xaa\xb8\x19\x12\n\x10list_commitments\x82\xd3\xe4\x93\x02\x33\x12\x31/api/billing/v1/accounts/{account_id}/commitments\x12\xa0\x03\n\x17GetBillingAccountParent\x12\x37.qdrant.cloud.billing.v1.GetBillingAccountParentRequest\x1a\x38.qdrant.cloud.billing.v1.GetBillingAccountParentResponse\"\x91\x02\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19\x9c\x01\n~Returns the parent billing account for the account identified by the given ID. Returns NOT_FOUND if the account has no parent.\x12\x1aGet billing account parent\xaa\xb8\x19\x1c\n\x1aget_billing_account_parent\x82\xd3\xe4\x93\x02.\x12,/api/billing/v1/accounts/{account_id}/parent\x12\xbd\x03\n\x1aListBillingAccountChildren\x12:.qdrant.cloud.billing.v1.ListBillingAccountChildrenRequest\x1a;.qdrant.cloud.billing.v1.ListBillingAccountChildrenResponse\"\xa5\x02\x8a\xb5\x18\x18read:payment_information\x8a\xb2\x19\xab\x01\n\x89\x01Lists all child accounts for the billing parent account identified by the given ID. Returns an empty list if the account has no children.\x12\x1dList billing account children\xaa\xb8\x19\x1f\n\x1dlist_billing_account_children\x82\xd3\xe4\x93\x02\x30\x12./api/billing/v1/accounts/{account_id}/children\x12\xb9\x03\n\x11GetBillingProfile\x12\x31.qdrant.cloud.billing.v1.GetBillingProfileRequest\x1a\x32.qdrant.cloud.billing.v1.GetBillingProfileResponse\"\xbc\x02\x8a\xb5\x18\x18read:payment_information\xba\xb5\x18\x18\n\naccount_id\x12\naccount_id\x8a\xb2\x19\xb1\x01\n\x99\x01Returns the billing profile (name, email, address and tax ID) of the billing account identified by the given account ID. Child accounts are not accepted.\x12\x13Get billing profile\xaa\xb8\x19\x15\n\x13get_billing_profile\x82\xd3\xe4\x93\x02/\x12-/api/billing/v1/accounts/{account_id}/profile\x12\xac\x08\n\x14UpdateBillingProfile\x12\x34.qdrant.cloud.billing.v1.UpdateBillingProfileRequest\x1a\x35.qdrant.cloud.billing.v1.UpdateBillingProfileResponse\"\xa6\x07\x8a\xb5\x18\x19write:payment_information\x92\xb5\x18\x1a\x62illing_profile.account_id\xba\xb5\x18(\n\naccount_id\x12\x1a\x62illing_profile.account_id\xca\xb5\x18\x87\x01\n9/qdrant.cloud.billing.v1.BillingService/GetBillingProfile\x12(\n\naccount_id\x12\x1a\x62illing_profile.account_id\x1a\x0f\x62illing_profile\"\x0f\x62illing_profile\xca\xf3\x18o\x08\x02\x12\x0f\x62illing-profile\"\x1ereq.billing_profile.account_id*:/accounts/{req.billing_profile.account_id}/billing-profile\x8a\xb2\x19\xb6\x01\n\x99\x01Updates the billing profile (name, email, address and tax ID) of the billing account identified by the given account ID. Child accounts are not accepted.\x12\x16Update billing profile8\x01\xaa\xb8\x19\xb8\x02\n\x16update_billing_profile\x1a\x9d\x02\n\x16Update billing profile\x12\x82\x02\x41n AI agent wants to update the billing profile of account {req.billing_profile.account_id}. The name, email, address and tax ID are used on future invoices and for tax. Without an update mask, or with tax_id in it, sending no tax ID removes the current one.\x82\xd3\xe4\x93\x02\x42\x1a=/api/billing/v1/accounts/{billing_profile.account_id}/profile:\x01*\x1a\x06\xc2\xb5\x18\x02\x08\x01\x42\xfe\x01\n\x1b\x63om.qdrant.cloud.billing.v1B\x0c\x42illingProtoP\x01ZRgithub.com/qdrant/qdrant-cloud-public-api/gen/go/qdrant/cloud/billing/v1;billingv1\xa2\x02\x03QCB\xaa\x02\x17Qdrant.Cloud.Billing.V1\xca\x02\x17Qdrant\\Cloud\\Billing\\V1\xe2\x02#Qdrant\\Cloud\\Billing\\V1\\GPBMetadata\xea\x02\x1aQdrant::Cloud::Billing::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -132,6 +135,38 @@ _globals['_LISTBILLINGACCOUNTCHILDRENREQUEST'].fields_by_name['account_id']._serialized_options = b'\272H\005r\003\260\001\001' _globals['_LISTBILLINGACCOUNTCHILDRENRESPONSE'].fields_by_name['child_account_ids']._loaded_options = None _globals['_LISTBILLINGACCOUNTCHILDRENRESPONSE'].fields_by_name['child_account_ids']._serialized_options = b'\272H\n\222\001\007\"\005r\003\260\001\001' + _globals['_GETBILLINGPROFILEREQUEST'].fields_by_name['account_id']._loaded_options = None + _globals['_GETBILLINGPROFILEREQUEST'].fields_by_name['account_id']._serialized_options = b'\272H\005r\003\260\001\001' + _globals['_GETBILLINGPROFILERESPONSE'].fields_by_name['billing_profile']._loaded_options = None + _globals['_GETBILLINGPROFILERESPONSE'].fields_by_name['billing_profile']._serialized_options = b'\272H\003\310\001\001' + _globals['_UPDATEBILLINGPROFILEREQUEST'].fields_by_name['billing_profile']._loaded_options = None + _globals['_UPDATEBILLINGPROFILEREQUEST'].fields_by_name['billing_profile']._serialized_options = b'\272H\003\310\001\001' + _globals['_UPDATEBILLINGPROFILERESPONSE'].fields_by_name['billing_profile']._loaded_options = None + _globals['_UPDATEBILLINGPROFILERESPONSE'].fields_by_name['billing_profile']._serialized_options = b'\272H\003\310\001\001' + _globals['_BILLINGPROFILE'].fields_by_name['account_id']._loaded_options = None + _globals['_BILLINGPROFILE'].fields_by_name['account_id']._serialized_options = b'\272H\005r\003\260\001\001' + _globals['_BILLINGPROFILE'].fields_by_name['name']._loaded_options = None + _globals['_BILLINGPROFILE'].fields_by_name['name']._serialized_options = b'\272H\007r\005\020\001\030\200\002' + _globals['_BILLINGPROFILE'].fields_by_name['email']._loaded_options = None + _globals['_BILLINGPROFILE'].fields_by_name['email']._serialized_options = b'\272H\006r\004\020\001`\001' + _globals['_BILLINGPROFILE'].fields_by_name['tax_id']._loaded_options = None + _globals['_BILLINGPROFILE'].fields_by_name['tax_id']._serialized_options = b'\272H\004r\002\030@' + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['line1']._loaded_options = None + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['line1']._serialized_options = b'\272H\007r\005\020\001\030\200\002' + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['line2']._loaded_options = None + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['line2']._serialized_options = b'\272H\007r\005\020\001\030\200\002' + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['city']._loaded_options = None + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['city']._serialized_options = b'\272H\007r\005\020\001\030\200\001' + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['state']._loaded_options = None + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['state']._serialized_options = b'\272H\007r\005\020\001\030\200\001' + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['postal_code']._loaded_options = None + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['postal_code']._serialized_options = b'\272H\006r\004\020\001\030 ' + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['country']._loaded_options = None + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['country']._serialized_options = b'\272H\016r\0142\n^[A-Z]{2}$' + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['tax_supported_country']._loaded_options = None + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['tax_supported_country']._serialized_options = b'\342A\001\003' + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['formatted_address']._loaded_options = None + _globals['_BILLINGPROFILEADDRESS'].fields_by_name['formatted_address']._serialized_options = b'\342A\001\003\272H\004r\002\020\001' _globals['_BILLINGSERVICE']._loaded_options = None _globals['_BILLINGSERVICE']._serialized_options = b'\302\265\030\002\010\001' _globals['_BILLINGSERVICE'].methods_by_name['ListInvoices']._loaded_options = None @@ -146,46 +181,62 @@ _globals['_BILLINGSERVICE'].methods_by_name['GetBillingAccountParent']._serialized_options = b'\212\265\030\030read:payment_information\212\262\031\234\001\n~Returns the parent billing account for the account identified by the given ID. Returns NOT_FOUND if the account has no parent.\022\032Get billing account parent\252\270\031\034\n\032get_billing_account_parent\202\323\344\223\002.\022,/api/billing/v1/accounts/{account_id}/parent' _globals['_BILLINGSERVICE'].methods_by_name['ListBillingAccountChildren']._loaded_options = None _globals['_BILLINGSERVICE'].methods_by_name['ListBillingAccountChildren']._serialized_options = b'\212\265\030\030read:payment_information\212\262\031\253\001\n\211\001Lists all child accounts for the billing parent account identified by the given ID. Returns an empty list if the account has no children.\022\035List billing account children\252\270\031\037\n\035list_billing_account_children\202\323\344\223\0020\022./api/billing/v1/accounts/{account_id}/children' - _globals['_INVOICESTATUS']._serialized_start=3895 - _globals['_INVOICESTATUS']._serialized_end=4077 - _globals['_LISTINVOICESREQUEST']._serialized_start=286 - _globals['_LISTINVOICESREQUEST']._serialized_end=348 - _globals['_LISTINVOICESRESPONSE']._serialized_start=350 - _globals['_LISTINVOICESRESPONSE']._serialized_end=428 - _globals['_LISTDISCOUNTSREQUEST']._serialized_start=430 - _globals['_LISTDISCOUNTSREQUEST']._serialized_end=493 - _globals['_LISTDISCOUNTSRESPONSE']._serialized_start=495 - _globals['_LISTDISCOUNTSRESPONSE']._serialized_end=575 - _globals['_INVOICE']._serialized_start=578 - _globals['_INVOICE']._serialized_end=1288 - _globals['_DISCOUNT']._serialized_start=1291 - _globals['_DISCOUNT']._serialized_end=1733 - _globals['_DISCOUNTPERCENTAGE']._serialized_start=1735 - _globals['_DISCOUNTPERCENTAGE']._serialized_end=1802 - _globals['_DISCOUNTFIXED']._serialized_start=1804 - _globals['_DISCOUNTFIXED']._serialized_end=1904 - _globals['_LISTCREDITCONTRACTSREQUEST']._serialized_start=1906 - _globals['_LISTCREDITCONTRACTSREQUEST']._serialized_end=1975 - _globals['_LISTCREDITCONTRACTSRESPONSE']._serialized_start=1978 - _globals['_LISTCREDITCONTRACTSRESPONSE']._serialized_end=2170 - _globals['_MONTHLYCREDITCONSUMPTION']._serialized_start=2173 - _globals['_MONTHLYCREDITCONSUMPTION']._serialized_end=2352 - _globals['_CREDITCONTRACT']._serialized_start=2355 - _globals['_CREDITCONTRACT']._serialized_end=2979 - _globals['_LISTCOMMITMENTSREQUEST']._serialized_start=2981 - _globals['_LISTCOMMITMENTSREQUEST']._serialized_end=3046 - _globals['_LISTCOMMITMENTSRESPONSE']._serialized_start=3048 - _globals['_LISTCOMMITMENTSRESPONSE']._serialized_end=3132 - _globals['_COMMITMENT']._serialized_start=3135 - _globals['_COMMITMENT']._serialized_end=3553 - _globals['_GETBILLINGACCOUNTPARENTREQUEST']._serialized_start=3555 - _globals['_GETBILLINGACCOUNTPARENTREQUEST']._serialized_end=3628 - _globals['_GETBILLINGACCOUNTPARENTRESPONSE']._serialized_start=3630 - _globals['_GETBILLINGACCOUNTPARENTRESPONSE']._serialized_end=3717 - _globals['_LISTBILLINGACCOUNTCHILDRENREQUEST']._serialized_start=3719 - _globals['_LISTBILLINGACCOUNTCHILDRENREQUEST']._serialized_end=3795 - _globals['_LISTBILLINGACCOUNTCHILDRENRESPONSE']._serialized_start=3797 - _globals['_LISTBILLINGACCOUNTCHILDRENRESPONSE']._serialized_end=3892 - _globals['_BILLINGSERVICE']._serialized_start=4080 - _globals['_BILLINGSERVICE']._serialized_end=6332 + _globals['_BILLINGSERVICE'].methods_by_name['GetBillingProfile']._loaded_options = None + _globals['_BILLINGSERVICE'].methods_by_name['GetBillingProfile']._serialized_options = b'\212\265\030\030read:payment_information\272\265\030\030\n\naccount_id\022\naccount_id\212\262\031\261\001\n\231\001Returns the billing profile (name, email, address and tax ID) of the billing account identified by the given account ID. Child accounts are not accepted.\022\023Get billing profile\252\270\031\025\n\023get_billing_profile\202\323\344\223\002/\022-/api/billing/v1/accounts/{account_id}/profile' + _globals['_BILLINGSERVICE'].methods_by_name['UpdateBillingProfile']._loaded_options = None + _globals['_BILLINGSERVICE'].methods_by_name['UpdateBillingProfile']._serialized_options = b'\212\265\030\031write:payment_information\222\265\030\032billing_profile.account_id\272\265\030(\n\naccount_id\022\032billing_profile.account_id\312\265\030\207\001\n9/qdrant.cloud.billing.v1.BillingService/GetBillingProfile\022(\n\naccount_id\022\032billing_profile.account_id\032\017billing_profile\"\017billing_profile\312\363\030o\010\002\022\017billing-profile\"\036req.billing_profile.account_id*:/accounts/{req.billing_profile.account_id}/billing-profile\212\262\031\266\001\n\231\001Updates the billing profile (name, email, address and tax ID) of the billing account identified by the given account ID. Child accounts are not accepted.\022\026Update billing profile8\001\252\270\031\270\002\n\026update_billing_profile\032\235\002\n\026Update billing profile\022\202\002An AI agent wants to update the billing profile of account {req.billing_profile.account_id}. The name, email, address and tax ID are used on future invoices and for tax. Without an update mask, or with tax_id in it, sending no tax ID removes the current one.\202\323\344\223\002B\032=/api/billing/v1/accounts/{billing_profile.account_id}/profile:\001*' + _globals['_INVOICESTATUS']._serialized_start=5210 + _globals['_INVOICESTATUS']._serialized_end=5392 + _globals['_LISTINVOICESREQUEST']._serialized_start=389 + _globals['_LISTINVOICESREQUEST']._serialized_end=451 + _globals['_LISTINVOICESRESPONSE']._serialized_start=453 + _globals['_LISTINVOICESRESPONSE']._serialized_end=531 + _globals['_LISTDISCOUNTSREQUEST']._serialized_start=533 + _globals['_LISTDISCOUNTSREQUEST']._serialized_end=596 + _globals['_LISTDISCOUNTSRESPONSE']._serialized_start=598 + _globals['_LISTDISCOUNTSRESPONSE']._serialized_end=678 + _globals['_INVOICE']._serialized_start=681 + _globals['_INVOICE']._serialized_end=1391 + _globals['_DISCOUNT']._serialized_start=1394 + _globals['_DISCOUNT']._serialized_end=1836 + _globals['_DISCOUNTPERCENTAGE']._serialized_start=1838 + _globals['_DISCOUNTPERCENTAGE']._serialized_end=1905 + _globals['_DISCOUNTFIXED']._serialized_start=1907 + _globals['_DISCOUNTFIXED']._serialized_end=2007 + _globals['_LISTCREDITCONTRACTSREQUEST']._serialized_start=2009 + _globals['_LISTCREDITCONTRACTSREQUEST']._serialized_end=2078 + _globals['_LISTCREDITCONTRACTSRESPONSE']._serialized_start=2081 + _globals['_LISTCREDITCONTRACTSRESPONSE']._serialized_end=2273 + _globals['_MONTHLYCREDITCONSUMPTION']._serialized_start=2276 + _globals['_MONTHLYCREDITCONSUMPTION']._serialized_end=2455 + _globals['_CREDITCONTRACT']._serialized_start=2458 + _globals['_CREDITCONTRACT']._serialized_end=3082 + _globals['_LISTCOMMITMENTSREQUEST']._serialized_start=3084 + _globals['_LISTCOMMITMENTSREQUEST']._serialized_end=3149 + _globals['_LISTCOMMITMENTSRESPONSE']._serialized_start=3151 + _globals['_LISTCOMMITMENTSRESPONSE']._serialized_end=3235 + _globals['_COMMITMENT']._serialized_start=3238 + _globals['_COMMITMENT']._serialized_end=3656 + _globals['_GETBILLINGACCOUNTPARENTREQUEST']._serialized_start=3658 + _globals['_GETBILLINGACCOUNTPARENTREQUEST']._serialized_end=3731 + _globals['_GETBILLINGACCOUNTPARENTRESPONSE']._serialized_start=3733 + _globals['_GETBILLINGACCOUNTPARENTRESPONSE']._serialized_end=3820 + _globals['_LISTBILLINGACCOUNTCHILDRENREQUEST']._serialized_start=3822 + _globals['_LISTBILLINGACCOUNTCHILDRENREQUEST']._serialized_end=3898 + _globals['_LISTBILLINGACCOUNTCHILDRENRESPONSE']._serialized_start=3900 + _globals['_LISTBILLINGACCOUNTCHILDRENRESPONSE']._serialized_end=3995 + _globals['_GETBILLINGPROFILEREQUEST']._serialized_start=3997 + _globals['_GETBILLINGPROFILEREQUEST']._serialized_end=4064 + _globals['_GETBILLINGPROFILERESPONSE']._serialized_start=4066 + _globals['_GETBILLINGPROFILERESPONSE']._serialized_end=4183 + _globals['_UPDATEBILLINGPROFILEREQUEST']._serialized_start=4186 + _globals['_UPDATEBILLINGPROFILEREQUEST']._serialized_end=4366 + _globals['_UPDATEBILLINGPROFILERESPONSE']._serialized_start=4368 + _globals['_UPDATEBILLINGPROFILERESPONSE']._serialized_end=4488 + _globals['_BILLINGPROFILE']._serialized_start=4491 + _globals['_BILLINGPROFILE']._serialized_end=4719 + _globals['_BILLINGPROFILEADDRESS']._serialized_start=4722 + _globals['_BILLINGPROFILEADDRESS']._serialized_end=5207 + _globals['_BILLINGSERVICE']._serialized_start=5395 + _globals['_BILLINGSERVICE']._serialized_end=9162 # @@protoc_insertion_point(module_scope) diff --git a/gen/python/qdrant/cloud/billing/v1/billing_pb2.pyi b/gen/python/qdrant/cloud/billing/v1/billing_pb2.pyi index 83081d63..d2980f76 100644 --- a/gen/python/qdrant/cloud/billing/v1/billing_pb2.pyi +++ b/gen/python/qdrant/cloud/billing/v1/billing_pb2.pyi @@ -2,8 +2,11 @@ import datetime from buf.validate import validate_pb2 as _validate_pb2 from google.api import annotations_pb2 as _annotations_pb2 +from google.api import field_behavior_pb2 as _field_behavior_pb2 +from google.protobuf import field_mask_pb2 as _field_mask_pb2 from google.protobuf import timestamp_pb2 as _timestamp_pb2 from qdrant.cloud.common.v1 import common_pb2 as _common_pb2 +from qdrant.cloud.event.v1 import events_pb2 as _events_pb2 from qdrant.cloud.facade.mcp.v1 import mcp_options_pb2 as _mcp_options_pb2 from qdrant.cloud.facade.v1 import facade_options_pb2 as _facade_options_pb2 from google.protobuf.internal import containers as _containers @@ -217,3 +220,63 @@ class ListBillingAccountChildrenResponse(_message.Message): CHILD_ACCOUNT_IDS_FIELD_NUMBER: _ClassVar[int] child_account_ids: _containers.RepeatedScalarFieldContainer[str] def __init__(self, child_account_ids: _Optional[_Iterable[str]] = ...) -> None: ... + +class GetBillingProfileRequest(_message.Message): + __slots__ = ("account_id",) + ACCOUNT_ID_FIELD_NUMBER: _ClassVar[int] + account_id: str + def __init__(self, account_id: _Optional[str] = ...) -> None: ... + +class GetBillingProfileResponse(_message.Message): + __slots__ = ("billing_profile",) + BILLING_PROFILE_FIELD_NUMBER: _ClassVar[int] + billing_profile: BillingProfile + def __init__(self, billing_profile: _Optional[_Union[BillingProfile, _Mapping]] = ...) -> None: ... + +class UpdateBillingProfileRequest(_message.Message): + __slots__ = ("billing_profile", "update_mask") + BILLING_PROFILE_FIELD_NUMBER: _ClassVar[int] + UPDATE_MASK_FIELD_NUMBER: _ClassVar[int] + billing_profile: BillingProfile + update_mask: _field_mask_pb2.FieldMask + def __init__(self, billing_profile: _Optional[_Union[BillingProfile, _Mapping]] = ..., update_mask: _Optional[_Union[_field_mask_pb2.FieldMask, _Mapping]] = ...) -> None: ... + +class UpdateBillingProfileResponse(_message.Message): + __slots__ = ("billing_profile",) + BILLING_PROFILE_FIELD_NUMBER: _ClassVar[int] + billing_profile: BillingProfile + def __init__(self, billing_profile: _Optional[_Union[BillingProfile, _Mapping]] = ...) -> None: ... + +class BillingProfile(_message.Message): + __slots__ = ("account_id", "name", "email", "address", "tax_id") + ACCOUNT_ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + EMAIL_FIELD_NUMBER: _ClassVar[int] + ADDRESS_FIELD_NUMBER: _ClassVar[int] + TAX_ID_FIELD_NUMBER: _ClassVar[int] + account_id: str + name: str + email: str + address: BillingProfileAddress + tax_id: str + def __init__(self, account_id: _Optional[str] = ..., name: _Optional[str] = ..., email: _Optional[str] = ..., address: _Optional[_Union[BillingProfileAddress, _Mapping]] = ..., tax_id: _Optional[str] = ...) -> None: ... + +class BillingProfileAddress(_message.Message): + __slots__ = ("line1", "line2", "city", "state", "postal_code", "country", "tax_supported_country", "formatted_address") + LINE1_FIELD_NUMBER: _ClassVar[int] + LINE2_FIELD_NUMBER: _ClassVar[int] + CITY_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + POSTAL_CODE_FIELD_NUMBER: _ClassVar[int] + COUNTRY_FIELD_NUMBER: _ClassVar[int] + TAX_SUPPORTED_COUNTRY_FIELD_NUMBER: _ClassVar[int] + FORMATTED_ADDRESS_FIELD_NUMBER: _ClassVar[int] + line1: str + line2: str + city: str + state: str + postal_code: str + country: str + tax_supported_country: bool + formatted_address: str + def __init__(self, line1: _Optional[str] = ..., line2: _Optional[str] = ..., city: _Optional[str] = ..., state: _Optional[str] = ..., postal_code: _Optional[str] = ..., country: _Optional[str] = ..., tax_supported_country: _Optional[bool] = ..., formatted_address: _Optional[str] = ...) -> None: ... diff --git a/gen/python/qdrant/cloud/billing/v1/billing_pb2_grpc.py b/gen/python/qdrant/cloud/billing/v1/billing_pb2_grpc.py index a40455c4..c67f17fd 100644 --- a/gen/python/qdrant/cloud/billing/v1/billing_pb2_grpc.py +++ b/gen/python/qdrant/cloud/billing/v1/billing_pb2_grpc.py @@ -45,6 +45,16 @@ def __init__(self, channel): request_serializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.ListBillingAccountChildrenRequest.SerializeToString, response_deserializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.ListBillingAccountChildrenResponse.FromString, _registered_method=True) + self.GetBillingProfile = channel.unary_unary( + '/qdrant.cloud.billing.v1.BillingService/GetBillingProfile', + request_serializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.GetBillingProfileRequest.SerializeToString, + response_deserializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.GetBillingProfileResponse.FromString, + _registered_method=True) + self.UpdateBillingProfile = channel.unary_unary( + '/qdrant.cloud.billing.v1.BillingService/UpdateBillingProfile', + request_serializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.UpdateBillingProfileRequest.SerializeToString, + response_deserializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.UpdateBillingProfileResponse.FromString, + _registered_method=True) class BillingServiceServicer(object): @@ -108,6 +118,25 @@ def ListBillingAccountChildren(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def GetBillingProfile(self, request, context): + """Returns the billing profile of the billing account identified by the given account ID. Child accounts are not accepted. + Required permissions: + - read:payment_information + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateBillingProfile(self, request, context): + """Updates the billing profile of the billing account identified by the given ID. With an update mask, only the masked + fields change; the address is masked as a whole with the path `address`. Child accounts are not accepted. + Required permissions: + - write:payment_information + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_BillingServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -141,6 +170,16 @@ def add_BillingServiceServicer_to_server(servicer, server): request_deserializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.ListBillingAccountChildrenRequest.FromString, response_serializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.ListBillingAccountChildrenResponse.SerializeToString, ), + 'GetBillingProfile': grpc.unary_unary_rpc_method_handler( + servicer.GetBillingProfile, + request_deserializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.GetBillingProfileRequest.FromString, + response_serializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.GetBillingProfileResponse.SerializeToString, + ), + 'UpdateBillingProfile': grpc.unary_unary_rpc_method_handler( + servicer.UpdateBillingProfile, + request_deserializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.UpdateBillingProfileRequest.FromString, + response_serializer=qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.UpdateBillingProfileResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'qdrant.cloud.billing.v1.BillingService', rpc_method_handlers) @@ -314,3 +353,57 @@ def ListBillingAccountChildren(request, timeout, metadata, _registered_method=True) + + @staticmethod + def GetBillingProfile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/qdrant.cloud.billing.v1.BillingService/GetBillingProfile', + qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.GetBillingProfileRequest.SerializeToString, + qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.GetBillingProfileResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def UpdateBillingProfile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/qdrant.cloud.billing.v1.BillingService/UpdateBillingProfile', + qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.UpdateBillingProfileRequest.SerializeToString, + qdrant_dot_cloud_dot_billing_dot_v1_dot_billing__pb2.UpdateBillingProfileResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/gen/typescript/qdrant/cloud/billing/v1/billing-BillingService_connectquery.d.ts b/gen/typescript/qdrant/cloud/billing/v1/billing-BillingService_connectquery.d.ts index 32424089..d1bd0634 100644 --- a/gen/typescript/qdrant/cloud/billing/v1/billing-BillingService_connectquery.d.ts +++ b/gen/typescript/qdrant/cloud/billing/v1/billing-BillingService_connectquery.d.ts @@ -55,3 +55,20 @@ export const getBillingAccountParent: typeof BillingService["method"]["getBillin * @generated from rpc qdrant.cloud.billing.v1.BillingService.ListBillingAccountChildren */ export const listBillingAccountChildren: typeof BillingService["method"]["listBillingAccountChildren"]; +/** + * Returns the billing profile of the billing account identified by the given account ID. Child accounts are not accepted. + * Required permissions: + * - read:payment_information + * + * @generated from rpc qdrant.cloud.billing.v1.BillingService.GetBillingProfile + */ +export const getBillingProfile: typeof BillingService["method"]["getBillingProfile"]; +/** + * Updates the billing profile of the billing account identified by the given ID. With an update mask, only the masked + * fields change; the address is masked as a whole with the path `address`. Child accounts are not accepted. + * Required permissions: + * - write:payment_information + * + * @generated from rpc qdrant.cloud.billing.v1.BillingService.UpdateBillingProfile + */ +export const updateBillingProfile: typeof BillingService["method"]["updateBillingProfile"]; diff --git a/gen/typescript/qdrant/cloud/billing/v1/billing-BillingService_connectquery.js b/gen/typescript/qdrant/cloud/billing/v1/billing-BillingService_connectquery.js index 5db34576..79f9a567 100644 --- a/gen/typescript/qdrant/cloud/billing/v1/billing-BillingService_connectquery.js +++ b/gen/typescript/qdrant/cloud/billing/v1/billing-BillingService_connectquery.js @@ -60,3 +60,22 @@ export const getBillingAccountParent = BillingService.method.getBillingAccountPa * @generated from rpc qdrant.cloud.billing.v1.BillingService.ListBillingAccountChildren */ export const listBillingAccountChildren = BillingService.method.listBillingAccountChildren; + +/** + * Returns the billing profile of the billing account identified by the given account ID. Child accounts are not accepted. + * Required permissions: + * - read:payment_information + * + * @generated from rpc qdrant.cloud.billing.v1.BillingService.GetBillingProfile + */ +export const getBillingProfile = BillingService.method.getBillingProfile; + +/** + * Updates the billing profile of the billing account identified by the given ID. With an update mask, only the masked + * fields change; the address is masked as a whole with the path `address`. Child accounts are not accepted. + * Required permissions: + * - write:payment_information + * + * @generated from rpc qdrant.cloud.billing.v1.BillingService.UpdateBillingProfile + */ +export const updateBillingProfile = BillingService.method.updateBillingProfile; diff --git a/gen/typescript/qdrant/cloud/billing/v1/billing_pb.d.ts b/gen/typescript/qdrant/cloud/billing/v1/billing_pb.d.ts index 7020c3da..1e7da38f 100644 --- a/gen/typescript/qdrant/cloud/billing/v1/billing_pb.d.ts +++ b/gen/typescript/qdrant/cloud/billing/v1/billing_pb.d.ts @@ -4,7 +4,7 @@ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; -import type { Timestamp } from "@bufbuild/protobuf/wkt"; +import type { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt"; /** * Describes the file qdrant/cloud/billing/v1/billing.proto. @@ -1059,6 +1059,291 @@ export declare type ListBillingAccountChildrenResponseValid = ListBillingAccount */ export declare const ListBillingAccountChildrenResponseSchema: GenMessage; +/** + * GetBillingProfileRequest is the request for the GetBillingProfile RPC. + * + * @generated from message qdrant.cloud.billing.v1.GetBillingProfileRequest + */ +export declare type GetBillingProfileRequest = Message<"qdrant.cloud.billing.v1.GetBillingProfileRequest"> & { + /** + * The identifier of the billing account (in GUID format). + * This is a required field. + * + * @generated from field: string account_id = 1; + */ + accountId: string; +}; + +export declare type GetBillingProfileRequestValid = GetBillingProfileRequest; + +/** + * Describes the message qdrant.cloud.billing.v1.GetBillingProfileRequest. + * Use `create(GetBillingProfileRequestSchema)` to create a new message. + */ +export declare const GetBillingProfileRequestSchema: GenMessage; + +/** + * GetBillingProfileResponse is the response from the GetBillingProfile RPC. + * + * @generated from message qdrant.cloud.billing.v1.GetBillingProfileResponse + */ +export declare type GetBillingProfileResponse = Message<"qdrant.cloud.billing.v1.GetBillingProfileResponse"> & { + /** + * The billing profile. + * + * @generated from field: qdrant.cloud.billing.v1.BillingProfile billing_profile = 1; + */ + billingProfile?: BillingProfile | undefined; +}; + +/** + * GetBillingProfileResponse is the response from the GetBillingProfile RPC. + * + * @generated from message qdrant.cloud.billing.v1.GetBillingProfileResponse + */ +export declare type GetBillingProfileResponseValid = Message<"qdrant.cloud.billing.v1.GetBillingProfileResponse"> & { + /** + * The billing profile. + * + * @generated from field: qdrant.cloud.billing.v1.BillingProfile billing_profile = 1; + */ + billingProfile: BillingProfileValid; +}; + +/** + * Describes the message qdrant.cloud.billing.v1.GetBillingProfileResponse. + * Use `create(GetBillingProfileResponseSchema)` to create a new message. + */ +export declare const GetBillingProfileResponseSchema: GenMessage; + +/** + * UpdateBillingProfileRequest is the request for the UpdateBillingProfile RPC. + * + * @generated from message qdrant.cloud.billing.v1.UpdateBillingProfileRequest + */ +export declare type UpdateBillingProfileRequest = Message<"qdrant.cloud.billing.v1.UpdateBillingProfileRequest"> & { + /** + * The billing profile to write. + * This is a required field. + * + * @generated from field: qdrant.cloud.billing.v1.BillingProfile billing_profile = 1; + */ + billingProfile?: BillingProfile | undefined; + + /** + * Optional mask of fields to update. When set, only the fields listed in + * the mask are updated; all other fields keep their current values on the + * server. The address is masked as a whole, with the path `address`. + * Field paths reference the resource (BillingProfile) message, not the + * request envelope. + * When unset or empty, the request is treated as a full-resource + * replacement. + * + * @generated from field: google.protobuf.FieldMask update_mask = 2; + */ + updateMask?: FieldMask | undefined; +}; + +/** + * UpdateBillingProfileRequest is the request for the UpdateBillingProfile RPC. + * + * @generated from message qdrant.cloud.billing.v1.UpdateBillingProfileRequest + */ +export declare type UpdateBillingProfileRequestValid = Message<"qdrant.cloud.billing.v1.UpdateBillingProfileRequest"> & { + /** + * The billing profile to write. + * This is a required field. + * + * @generated from field: qdrant.cloud.billing.v1.BillingProfile billing_profile = 1; + */ + billingProfile: BillingProfileValid; + + /** + * Optional mask of fields to update. When set, only the fields listed in + * the mask are updated; all other fields keep their current values on the + * server. The address is masked as a whole, with the path `address`. + * Field paths reference the resource (BillingProfile) message, not the + * request envelope. + * When unset or empty, the request is treated as a full-resource + * replacement. + * + * @generated from field: google.protobuf.FieldMask update_mask = 2; + */ + updateMask?: FieldMask | undefined; +}; + +/** + * Describes the message qdrant.cloud.billing.v1.UpdateBillingProfileRequest. + * Use `create(UpdateBillingProfileRequestSchema)` to create a new message. + */ +export declare const UpdateBillingProfileRequestSchema: GenMessage; + +/** + * UpdateBillingProfileResponse is the response from the UpdateBillingProfile RPC. + * + * @generated from message qdrant.cloud.billing.v1.UpdateBillingProfileResponse + */ +export declare type UpdateBillingProfileResponse = Message<"qdrant.cloud.billing.v1.UpdateBillingProfileResponse"> & { + /** + * The billing profile as written. + * + * @generated from field: qdrant.cloud.billing.v1.BillingProfile billing_profile = 1; + */ + billingProfile?: BillingProfile | undefined; +}; + +/** + * UpdateBillingProfileResponse is the response from the UpdateBillingProfile RPC. + * + * @generated from message qdrant.cloud.billing.v1.UpdateBillingProfileResponse + */ +export declare type UpdateBillingProfileResponseValid = Message<"qdrant.cloud.billing.v1.UpdateBillingProfileResponse"> & { + /** + * The billing profile as written. + * + * @generated from field: qdrant.cloud.billing.v1.BillingProfile billing_profile = 1; + */ + billingProfile: BillingProfileValid; +}; + +/** + * Describes the message qdrant.cloud.billing.v1.UpdateBillingProfileResponse. + * Use `create(UpdateBillingProfileResponseSchema)` to create a new message. + */ +export declare const UpdateBillingProfileResponseSchema: GenMessage; + +/** + * BillingProfile is who a billing account is billed as. + * + * @generated from message qdrant.cloud.billing.v1.BillingProfile + */ +export declare type BillingProfile = Message<"qdrant.cloud.billing.v1.BillingProfile"> & { + /** + * The identifier of the billing account (in GUID format). + * + * @generated from field: string account_id = 1; + */ + accountId: string; + + /** + * The legal name printed on invoices. + * + * @generated from field: string name = 2; + */ + name: string; + + /** + * The billing email. + * + * @generated from field: string email = 3; + */ + email: string; + + /** + * The billing address. Written as a whole. + * Unset when the profile has no address. + * + * @generated from field: qdrant.cloud.billing.v1.BillingProfileAddress address = 4; + */ + address?: BillingProfileAddress | undefined; + + /** + * The Tax ID. Needs an address country with a known tax type. + * + * @generated from field: string tax_id = 5; + */ + taxId: string; +}; + +export declare type BillingProfileValid = BillingProfile; + +/** + * Describes the message qdrant.cloud.billing.v1.BillingProfile. + * Use `create(BillingProfileSchema)` to create a new message. + */ +export declare const BillingProfileSchema: GenMessage; + +/** + * BillingProfileAddress is the postal address of a billing profile. + * + * @generated from message qdrant.cloud.billing.v1.BillingProfileAddress + */ +export declare type BillingProfileAddress = Message<"qdrant.cloud.billing.v1.BillingProfileAddress"> & { + /** + * The first line of the billing address. + * This is a required field. + * + * @generated from field: string line1 = 1; + */ + line1: string; + + /** + * The second line of the billing address. + * This is an optional field. + * + * @generated from field: optional string line2 = 2; + */ + line2?: string | undefined; + + /** + * The city of the billing address. + * This is an optional field. + * + * @generated from field: optional string city = 3; + */ + city?: string | undefined; + + /** + * The state or province of the billing address. + * This is an optional field. + * + * @generated from field: optional string state = 4; + */ + state?: string | undefined; + + /** + * The postal code of the billing address. + * This is an optional field. + * + * @generated from field: optional string postal_code = 5; + */ + postalCode?: string | undefined; + + /** + * The country of the billing address. + * The format should be a two-letter country code ISO 3166-1 alpha-2 + * see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. + * + * @generated from field: string country = 6; + */ + country: string; + + /** + * Indicates if the country supports tax. + * This is an read-only field, and filled out by the system. + * + * @generated from field: optional bool tax_supported_country = 7; + */ + taxSupportedCountry?: boolean | undefined; + + /** + * The address formatted for display on a single line, in the order and + * format of its country, ending with the country name. + * This is an read-only field, and filled out by the system. + * + * @generated from field: optional string formatted_address = 8; + */ + formattedAddress?: string | undefined; +}; + +export declare type BillingProfileAddressValid = BillingProfileAddress; + +/** + * Describes the message qdrant.cloud.billing.v1.BillingProfileAddress. + * Use `create(BillingProfileAddressSchema)` to create a new message. + */ +export declare const BillingProfileAddressSchema: GenMessage; + /** * The possible status of an invoice. * @@ -1194,5 +1479,30 @@ export declare const BillingService: GenService<{ input: typeof ListBillingAccountChildrenRequestSchema; output: typeof ListBillingAccountChildrenResponseSchema; }, + /** + * Returns the billing profile of the billing account identified by the given account ID. Child accounts are not accepted. + * Required permissions: + * - read:payment_information + * + * @generated from rpc qdrant.cloud.billing.v1.BillingService.GetBillingProfile + */ + getBillingProfile: { + methodKind: "unary"; + input: typeof GetBillingProfileRequestSchema; + output: typeof GetBillingProfileResponseSchema; + }, + /** + * Updates the billing profile of the billing account identified by the given ID. With an update mask, only the masked + * fields change; the address is masked as a whole with the path `address`. Child accounts are not accepted. + * Required permissions: + * - write:payment_information + * + * @generated from rpc qdrant.cloud.billing.v1.BillingService.UpdateBillingProfile + */ + updateBillingProfile: { + methodKind: "unary"; + input: typeof UpdateBillingProfileRequestSchema; + output: typeof UpdateBillingProfileResponseSchema; + }, }>; diff --git a/gen/typescript/qdrant/cloud/billing/v1/billing_pb.js b/gen/typescript/qdrant/cloud/billing/v1/billing_pb.js index f9383870..7489364e 100644 --- a/gen/typescript/qdrant/cloud/billing/v1/billing_pb.js +++ b/gen/typescript/qdrant/cloud/billing/v1/billing_pb.js @@ -5,8 +5,10 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2"; import { file_buf_validate_validate } from "../../../../buf/validate/validate_pb.js"; import { file_google_api_annotations } from "../../../../google/api/annotations_pb.js"; -import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; +import { file_google_api_field_behavior } from "../../../../google/api/field_behavior_pb.js"; +import { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; import { file_qdrant_cloud_common_v1_common } from "../../common/v1/common_pb.js"; +import { file_qdrant_cloud_event_v1_events } from "../../event/v1/events_pb.js"; import { file_qdrant_cloud_facade_mcp_v1_mcp_options } from "../../facade/mcp/v1/mcp_options_pb.js"; import { file_qdrant_cloud_facade_v1_facade_options } from "../../facade/v1/facade_options_pb.js"; @@ -14,7 +16,7 @@ import { file_qdrant_cloud_facade_v1_facade_options } from "../../facade/v1/faca * Describes the file qdrant/cloud/billing/v1/billing.proto. */ export const file_qdrant_cloud_billing_v1_billing = /*@__PURE__*/ - fileDesc("CiVxZHJhbnQvY2xvdWQvYmlsbGluZy92MS9iaWxsaW5nLnByb3RvEhdxZHJhbnQuY2xvdWQuYmlsbGluZy52MSIzChNMaXN0SW52b2ljZXNSZXF1ZXN0EhwKCmFjY291bnRfaWQYASABKAlCCLpIBXIDsAEBIkcKFExpc3RJbnZvaWNlc1Jlc3BvbnNlEi8KBWl0ZW1zGAEgAygLMiAucWRyYW50LmNsb3VkLmJpbGxpbmcudjEuSW52b2ljZSI0ChRMaXN0RGlzY291bnRzUmVxdWVzdBIcCgphY2NvdW50X2lkGAEgASgJQgi6SAVyA7ABASJJChVMaXN0RGlzY291bnRzUmVzcG9uc2USMAoFaXRlbXMYASADKAsyIS5xZHJhbnQuY2xvdWQuYmlsbGluZy52MS5EaXNjb3VudCLMBAoHSW52b2ljZRITCgJpZBgBIAEoCUIHukgEcgIQARIcCgZudW1iZXIYAiABKAlCB7pIBHICEAFIAIgBARIdCgx0b3RhbF9hbW91bnQYAyABKANCB7pIBCICKAASNgoKY3JlYXRlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCBrpIA8gBARJCCgZzdGF0dXMYBSABKA4yJi5xZHJhbnQuY2xvdWQuYmlsbGluZy52MS5JbnZvaWNlU3RhdHVzQgq6SAeCAQQQASAAEh4KB3BkZl91cmwYBiABKAlCCLpIBXIDiAEBSAGIAQESJQoPc3VidG90YWxfYW1vdW50GAcgASgDQge6SAQiAigASAKIAQESIAoKYW1vdW50X2R1ZRgIIAEoA0IHukgEIgIoAEgDiAEBEikKEmhvc3RlZF9pbnZvaWNlX3VybBgJIAEoCUIIukgFcgOIAQFIBIgBARIwCgdwYWlkX2F0GAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgFiAEBEjoKEXBheW1lbnRfZmFpbGVkX2F0GA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FDQqoCF1FkcmFudC5DbG91ZC5CaWxsaW5nLlYxygIXUWRyYW50XENsb3VkXEJpbGxpbmdcVjHiAiNRZHJhbnRcQ2xvdWRcQmlsbGluZ1xWMVxHUEJNZXRhZGF0YeoCGlFkcmFudDo6Q2xvdWQ6OkJpbGxpbmc6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_annotations, file_google_protobuf_timestamp, file_qdrant_cloud_common_v1_common, file_qdrant_cloud_facade_mcp_v1_mcp_options, file_qdrant_cloud_facade_v1_facade_options]); + fileDesc("CiVxZHJhbnQvY2xvdWQvYmlsbGluZy92MS9iaWxsaW5nLnByb3RvEhdxZHJhbnQuY2xvdWQuYmlsbGluZy52MSIzChNMaXN0SW52b2ljZXNSZXF1ZXN0EhwKCmFjY291bnRfaWQYASABKAlCCLpIBXIDsAEBIkcKFExpc3RJbnZvaWNlc1Jlc3BvbnNlEi8KBWl0ZW1zGAEgAygLMiAucWRyYW50LmNsb3VkLmJpbGxpbmcudjEuSW52b2ljZSI0ChRMaXN0RGlzY291bnRzUmVxdWVzdBIcCgphY2NvdW50X2lkGAEgASgJQgi6SAVyA7ABASJJChVMaXN0RGlzY291bnRzUmVzcG9uc2USMAoFaXRlbXMYASADKAsyIS5xZHJhbnQuY2xvdWQuYmlsbGluZy52MS5EaXNjb3VudCLMBAoHSW52b2ljZRITCgJpZBgBIAEoCUIHukgEcgIQARIcCgZudW1iZXIYAiABKAlCB7pIBHICEAFIAIgBARIdCgx0b3RhbF9hbW91bnQYAyABKANCB7pIBCICKAASNgoKY3JlYXRlZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCBrpIA8gBARJCCgZzdGF0dXMYBSABKA4yJi5xZHJhbnQuY2xvdWQuYmlsbGluZy52MS5JbnZvaWNlU3RhdHVzQgq6SAeCAQQQASAAEh4KB3BkZl91cmwYBiABKAlCCLpIBXIDiAEBSAGIAQESJQoPc3VidG90YWxfYW1vdW50GAcgASgDQge6S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dGggdGF4X2lkIGluIGl0LCBzZW5kaW5nIG5vIHRheCBJRCByZW1vdmVzIHRoZSBjdXJyZW50IG9uZS6C0+STAkI6ASoaPS9hcGkvYmlsbGluZy92MS9hY2NvdW50cy97YmlsbGluZ19wcm9maWxlLmFjY291bnRfaWR9L3Byb2ZpbGUaBsK1GAIIAUL+AQobY29tLnFkcmFudC5jbG91ZC5iaWxsaW5nLnYxQgxCaWxsaW5nUHJvdG9QAVpSZ2l0aHViLmNvbS9xZHJhbnQvcWRyYW50LWNsb3VkLXB1YmxpYy1hcGkvZ2VuL2dvL3FkcmFudC9jbG91ZC9iaWxsaW5nL3YxO2JpbGxpbmd2MaICA1FDQqoCF1FkcmFudC5DbG91ZC5CaWxsaW5nLlYxygIXUWRyYW50XENsb3VkXEJpbGxpbmdcVjHiAiNRZHJhbnRcQ2xvdWRcQmlsbGluZ1xWMVxHUEJNZXRhZGF0YeoCGlFkcmFudDo6Q2xvdWQ6OkJpbGxpbmc6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_annotations, file_google_api_field_behavior, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_qdrant_cloud_common_v1_common, file_qdrant_cloud_event_v1_events, file_qdrant_cloud_facade_mcp_v1_mcp_options, file_qdrant_cloud_facade_v1_facade_options]); /** * Describes the message qdrant.cloud.billing.v1.ListInvoicesRequest. @@ -149,6 +151,48 @@ export const ListBillingAccountChildrenRequestSchema = /*@__PURE__*/ export const ListBillingAccountChildrenResponseSchema = /*@__PURE__*/ messageDesc(file_qdrant_cloud_billing_v1_billing, 18); +/** + * Describes the message qdrant.cloud.billing.v1.GetBillingProfileRequest. + * Use `create(GetBillingProfileRequestSchema)` to create a new message. + */ +export const GetBillingProfileRequestSchema = /*@__PURE__*/ + messageDesc(file_qdrant_cloud_billing_v1_billing, 19); + +/** + * Describes the message qdrant.cloud.billing.v1.GetBillingProfileResponse. + * Use `create(GetBillingProfileResponseSchema)` to create a new message. + */ +export const GetBillingProfileResponseSchema = /*@__PURE__*/ + messageDesc(file_qdrant_cloud_billing_v1_billing, 20); + +/** + * Describes the message qdrant.cloud.billing.v1.UpdateBillingProfileRequest. + * Use `create(UpdateBillingProfileRequestSchema)` to create a new message. + */ +export const UpdateBillingProfileRequestSchema = /*@__PURE__*/ + messageDesc(file_qdrant_cloud_billing_v1_billing, 21); + +/** + * Describes the message qdrant.cloud.billing.v1.UpdateBillingProfileResponse. + * Use `create(UpdateBillingProfileResponseSchema)` to create a new message. + */ +export const UpdateBillingProfileResponseSchema = /*@__PURE__*/ + messageDesc(file_qdrant_cloud_billing_v1_billing, 22); + +/** + * Describes the message qdrant.cloud.billing.v1.BillingProfile. + * Use `create(BillingProfileSchema)` to create a new message. + */ +export const BillingProfileSchema = /*@__PURE__*/ + messageDesc(file_qdrant_cloud_billing_v1_billing, 23); + +/** + * Describes the message qdrant.cloud.billing.v1.BillingProfileAddress. + * Use `create(BillingProfileAddressSchema)` to create a new message. + */ +export const BillingProfileAddressSchema = /*@__PURE__*/ + messageDesc(file_qdrant_cloud_billing_v1_billing, 24); + /** * Describes the enum qdrant.cloud.billing.v1.InvoiceStatus. */ diff --git a/proto/qdrant/cloud/billing/v1/billing.proto b/proto/qdrant/cloud/billing/v1/billing.proto index 0a52de2e..e458b303 100644 --- a/proto/qdrant/cloud/billing/v1/billing.proto +++ b/proto/qdrant/cloud/billing/v1/billing.proto @@ -4,8 +4,11 @@ package qdrant.cloud.billing.v1; import "buf/validate/validate.proto"; import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "qdrant/cloud/common/v1/common.proto"; +import "qdrant/cloud/event/v1/events.proto"; import "qdrant/cloud/facade/mcp/v1/mcp_options.proto"; import "qdrant/cloud/facade/v1/facade_options.proto"; // BillingService is the API used to retrieve billing information, such as invoices. @@ -103,6 +106,77 @@ service BillingService { }; option (qdrant.cloud.facade.mcp.v1.mcp_tool) = {name: "list_billing_account_children"}; } + // Returns the billing profile of the billing account identified by the given account ID. Child accounts are not accepted. + // Required permissions: + // - read:payment_information + rpc GetBillingProfile(GetBillingProfileRequest) returns (GetBillingProfileResponse) { + // permissions + option (common.v1.permissions) = "read:payment_information"; + // gRPC Gateway REST call + option (google.api.http) = {get: "/api/billing/v1/accounts/{account_id}/profile"}; + // log fields + option (common.v1.log_fields) = { + name: "account_id" + field_expression: "account_id" + }; + option (qdrant.cloud.facade.v1.facade) = { + description: "Returns the billing profile (name, email, address and tax ID) of the billing account identified by the given account ID. Child accounts are not accepted." + title: "Get billing profile" + }; + option (qdrant.cloud.facade.mcp.v1.mcp_tool) = {name: "get_billing_profile"}; + } + // Updates the billing profile of the billing account identified by the given ID. With an update mask, only the masked + // fields change; the address is masked as a whole with the path `address`. Child accounts are not accepted. + // Required permissions: + // - write:payment_information + rpc UpdateBillingProfile(UpdateBillingProfileRequest) returns (UpdateBillingProfileResponse) { + // permissions + option (common.v1.permissions) = "write:payment_information"; + // custom account-id expression + option (qdrant.cloud.common.v1.account_id_expression) = "billing_profile.account_id"; + // gRPC Gateway REST call + option (google.api.http) = { + put: "/api/billing/v1/accounts/{billing_profile.account_id}/profile" + body: "*" + }; + // events (identified by the account only: no field holding the name, email, address or tax ID) + option (qdrant.cloud.event.v1.event_options) = { + event_type: EVENT_TYPE_UPDATED + resource_type: "billing-profile" + resource_id_field: "req.billing_profile.account_id" + resource_url_template: "/accounts/{req.billing_profile.account_id}/billing-profile" + }; + // log fields + option (common.v1.log_fields) = { + name: "account_id" + field_expression: "billing_profile.account_id" + }; + option (qdrant.cloud.facade.v1.facade) = { + description: "Updates the billing profile (name, email, address and tax ID) of the billing account identified by the given account ID. Child accounts are not accepted." + title: "Update billing profile" + allow_mutation: true + }; + option (qdrant.cloud.facade.mcp.v1.mcp_tool) = { + name: "update_billing_profile" + confirmation: { + title: "Update billing profile" + message: "An AI agent wants to update the billing profile of account {req.billing_profile.account_id}. The name, email, address and tax ID are used on future invoices and for tax. Without an update mask, or with tax_id in it, sending no tax ID removes the current one." + } + }; + // FieldMask-based partial updates. When the request has a non-empty + // update_mask the API gateway transparently rewrites the partial update + // into a full-resource replacement by fetching the current billing + // profile via GetBillingProfile and merging the masked fields on top. + option (qdrant.cloud.common.v1.patch_source) = { + get_method: "/qdrant.cloud.billing.v1.BillingService/GetBillingProfile" + field_mapping: { + key: "account_id" + value: "billing_profile.account_id" + } + response_resource_field: "billing_profile" + request_resource_field: "billing_profile" + }; + } } // ListInvoicesRequest is the request for the ListInvoices function @@ -340,6 +414,110 @@ message ListBillingAccountChildrenResponse { repeated string child_account_ids = 1 [(buf.validate.field).repeated.items.string = {uuid: true}]; } +// GetBillingProfileRequest is the request for the GetBillingProfile RPC. +message GetBillingProfileRequest { + // The identifier of the billing account (in GUID format). + // This is a required field. + string account_id = 1 [(buf.validate.field).string = {uuid: true}]; +} + +// GetBillingProfileResponse is the response from the GetBillingProfile RPC. +message GetBillingProfileResponse { + // The billing profile. + BillingProfile billing_profile = 1 [(buf.validate.field).required = true]; +} + +// UpdateBillingProfileRequest is the request for the UpdateBillingProfile RPC. +message UpdateBillingProfileRequest { + // The billing profile to write. + // This is a required field. + BillingProfile billing_profile = 1 [(buf.validate.field).required = true]; + // Optional mask of fields to update. When set, only the fields listed in + // the mask are updated; all other fields keep their current values on the + // server. The address is masked as a whole, with the path `address`. + // Field paths reference the resource (BillingProfile) message, not the + // request envelope. + // When unset or empty, the request is treated as a full-resource + // replacement. + google.protobuf.FieldMask update_mask = 2; +} + +// UpdateBillingProfileResponse is the response from the UpdateBillingProfile RPC. +message UpdateBillingProfileResponse { + // The billing profile as written. + BillingProfile billing_profile = 1 [(buf.validate.field).required = true]; +} + +// buf:lint:ignore QDRANT_CLOUD_REQUIRED_ENTITY_FIELDS +// BillingProfile is who a billing account is billed as. +message BillingProfile { + // The identifier of the billing account (in GUID format). + string account_id = 1 [(buf.validate.field).string = {uuid: true}]; + // The legal name printed on invoices. + string name = 2 [(buf.validate.field).string = { + min_len: 1 + max_len: 256 + }]; + // The billing email. + string email = 3 [(buf.validate.field).string = { + min_len: 1 + email: true + }]; + // The billing address. Written as a whole. + // Unset when the profile has no address. + BillingProfileAddress address = 4; + // The Tax ID. Needs an address country with a known tax type. + string tax_id = 5 [(buf.validate.field).string.max_len = 64]; +} + +// BillingProfileAddress is the postal address of a billing profile. +message BillingProfileAddress { + // The first line of the billing address. + // This is a required field. + string line1 = 1 [(buf.validate.field).string = { + min_len: 1 + max_len: 256 + }]; + // The second line of the billing address. + // This is an optional field. + optional string line2 = 2 [(buf.validate.field).string = { + min_len: 1 + max_len: 256 + }]; + // The city of the billing address. + // This is an optional field. + optional string city = 3 [(buf.validate.field).string = { + min_len: 1 + max_len: 128 + }]; + // The state or province of the billing address. + // This is an optional field. + optional string state = 4 [(buf.validate.field).string = { + min_len: 1 + max_len: 128 + }]; + // The postal code of the billing address. + // This is an optional field. + optional string postal_code = 5 [(buf.validate.field).string = { + min_len: 1 + max_len: 32 + }]; + // The country of the billing address. + // The format should be a two-letter country code ISO 3166-1 alpha-2 + // see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. + string country = 6 [(buf.validate.field).string.pattern = "^[A-Z]{2}$"]; + // Indicates if the country supports tax. + // This is an read-only field, and filled out by the system. + optional bool tax_supported_country = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The address formatted for display on a single line, in the order and + // format of its country, ending with the country name. + // This is an read-only field, and filled out by the system. + optional string formatted_address = 8 [ + (buf.validate.field).string = {min_len: 1}, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + // The possible status of an invoice. enum InvoiceStatus { // Unspecified