diff --git a/src/viam/gen/app/v1/billing_grpc.py b/src/viam/gen/app/v1/billing_grpc.py index 3bf2411f2..b9a17810f 100644 --- a/src/viam/gen/app/v1/billing_grpc.py +++ b/src/viam/gen/app/v1/billing_grpc.py @@ -41,8 +41,12 @@ async def GetOrgBillingInformation(self, stream: 'grpclib.server.Stream[app.v1.b async def GetInvoicesSummary(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse]') -> None: pass + @abc.abstractmethod + async def GetInvoicePdf(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse]') -> None: + pass + def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]: - return {'/viam.app.v1.BillingService/GetCurrentMonthUsageSummary': grpclib.const.Handler(self.GetCurrentMonthUsageSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetCurrentMonthUsageSummaryRequest, app.v1.billing_pb2.GetCurrentMonthUsageSummaryResponse), '/viam.app.v1.BillingService/GetUnpaidBalance': grpclib.const.Handler(self.GetUnpaidBalance, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetUnpaidBalanceRequest, app.v1.billing_pb2.GetUnpaidBalanceResponse), '/viam.app.v1.BillingService/GetInvoiceHistory': grpclib.const.Handler(self.GetInvoiceHistory, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetInvoiceHistoryRequest, app.v1.billing_pb2.GetInvoiceHistoryResponse), '/viam.app.v1.BillingService/GetItemizedInvoice': grpclib.const.Handler(self.GetItemizedInvoice, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetItemizedInvoiceRequest, app.v1.billing_pb2.GetItemizedInvoiceResponse), '/viam.app.v1.BillingService/GetBillingSummary': grpclib.const.Handler(self.GetBillingSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetBillingSummaryRequest, app.v1.billing_pb2.GetBillingSummaryResponse), '/viam.app.v1.BillingService/GetCurrentMonthUsage': grpclib.const.Handler(self.GetCurrentMonthUsage, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse), '/viam.app.v1.BillingService/GetOrgBillingInformation': grpclib.const.Handler(self.GetOrgBillingInformation, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse), '/viam.app.v1.BillingService/GetInvoicesSummary': grpclib.const.Handler(self.GetInvoicesSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse)} + return {'/viam.app.v1.BillingService/GetCurrentMonthUsageSummary': grpclib.const.Handler(self.GetCurrentMonthUsageSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetCurrentMonthUsageSummaryRequest, app.v1.billing_pb2.GetCurrentMonthUsageSummaryResponse), '/viam.app.v1.BillingService/GetUnpaidBalance': grpclib.const.Handler(self.GetUnpaidBalance, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetUnpaidBalanceRequest, app.v1.billing_pb2.GetUnpaidBalanceResponse), '/viam.app.v1.BillingService/GetInvoiceHistory': grpclib.const.Handler(self.GetInvoiceHistory, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetInvoiceHistoryRequest, app.v1.billing_pb2.GetInvoiceHistoryResponse), '/viam.app.v1.BillingService/GetItemizedInvoice': grpclib.const.Handler(self.GetItemizedInvoice, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetItemizedInvoiceRequest, app.v1.billing_pb2.GetItemizedInvoiceResponse), '/viam.app.v1.BillingService/GetBillingSummary': grpclib.const.Handler(self.GetBillingSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetBillingSummaryRequest, app.v1.billing_pb2.GetBillingSummaryResponse), '/viam.app.v1.BillingService/GetCurrentMonthUsage': grpclib.const.Handler(self.GetCurrentMonthUsage, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse), '/viam.app.v1.BillingService/GetOrgBillingInformation': grpclib.const.Handler(self.GetOrgBillingInformation, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse), '/viam.app.v1.BillingService/GetInvoicesSummary': grpclib.const.Handler(self.GetInvoicesSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse), '/viam.app.v1.BillingService/GetInvoicePdf': grpclib.const.Handler(self.GetInvoicePdf, grpclib.const.Cardinality.UNARY_STREAM, app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse)} class BillingServiceStub: @@ -54,4 +58,5 @@ def __init__(self, channel: grpclib.client.Channel) -> None: self.GetBillingSummary = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetBillingSummary', app.v1.billing_pb2.GetBillingSummaryRequest, app.v1.billing_pb2.GetBillingSummaryResponse) self.GetCurrentMonthUsage = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetCurrentMonthUsage', app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse) self.GetOrgBillingInformation = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetOrgBillingInformation', app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse) - self.GetInvoicesSummary = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetInvoicesSummary', app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse) \ No newline at end of file + self.GetInvoicesSummary = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetInvoicesSummary', app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse) + self.GetInvoicePdf = grpclib.client.UnaryStreamMethod(channel, '/viam.app.v1.BillingService/GetInvoicePdf', app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse) \ No newline at end of file diff --git a/src/viam/gen/app/v1/billing_pb2.py b/src/viam/gen/app/v1/billing_pb2.py index 37509c2bb..d12388aec 100644 --- a/src/viam/gen/app/v1/billing_pb2.py +++ b/src/viam/gen/app/v1/billing_pb2.py @@ -5,14 +5,14 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14app/v1/billing.proto\x12\x0bviam.app.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x97\x05\n\x18CurrentMonthUsageSummary\x12.\n\x13cloud_storage_usage\x18\x01 \x01(\x01R\x11cloudStorageUsage\x127\n\x18cloud_storage_usage_cost\x18\x02 \x01(\x01R\x15cloudStorageUsageCost\x123\n\x16data_upload_usage_cost\x18\x03 \x01(\x01R\x13dataUploadUsageCost\x12;\n\x1adata_upload_usage_quantity\x18\x04 \x01(\x01R\x17dataUploadUsageQuantity\x121\n\x15data_egres_usage_cost\x18\x05 \x01(\x01R\x12dataEgresUsageCost\x129\n\x19data_egres_usage_quantity\x18\x06 \x01(\x01R\x16dataEgresUsageQuantity\x12=\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01R\x18standardComputeUsageCost\x12E\n\x1fstandard_compute_usage_quantity\x18\x08 \x01(\x01R\x1cstandardComputeUsageQuantity\x120\n\x14total_usage_quantity\x18\t \x01(\x01R\x12totalUsageQuantity\x129\n\x19total_usage_with_discount\x18\n \x01(\x01R\x16totalUsageWithDiscount\x12?\n\x1ctotal_usage_without_discount\x18\x0b \x01(\x01R\x19totalUsageWithoutDiscount"\x8e\x02\n\x0eInvoiceSummary\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x127\n\tpaid_date\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\x08paidDate"\x8b\x02\n\x15BillableResourceEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12%\n\x0eusage_quantity\x18\x03 \x01(\x01R\rusageQuantity\x12.\n\x13usage_quantity_unit\x18\x04 \x01(\tR\x11usageQuantityUnit\x12\x1d\n\nusage_cost\x18\x05 \x01(\tR\tusageCost\x12;\n\x0boccurred_at\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1b\n\tuser_name\x18\x07 \x01(\tR\x08userName"\xa7\x02\n\x07Invoice\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x128\n\x05items\x18\x06 \x03(\x0b2".viam.app.v1.BillableResourceEventR\x05items\x12\x1d\n\nemailed_to\x18\x07 \x01(\tR\temailedTo"S\n\x11PaymentMethodCard\x12\x14\n\x05brand\x18\x01 \x01(\tR\x05brand\x12(\n\x10last_four_digits\x18\x02 \x01(\tR\x0elastFourDigits";\n"GetCurrentMonthUsageSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xa2\x05\n#GetCurrentMonthUsageSummaryResponse\x12.\n\x13cloud_storage_usage\x18\x01 \x01(\x01R\x11cloudStorageUsage\x127\n\x18cloud_storage_usage_cost\x18\x02 \x01(\x01R\x15cloudStorageUsageCost\x123\n\x16data_upload_usage_cost\x18\x03 \x01(\x01R\x13dataUploadUsageCost\x12;\n\x1adata_upload_usage_quantity\x18\x04 \x01(\x01R\x17dataUploadUsageQuantity\x121\n\x15data_egres_usage_cost\x18\x05 \x01(\x01R\x12dataEgresUsageCost\x129\n\x19data_egres_usage_quantity\x18\x06 \x01(\x01R\x16dataEgresUsageQuantity\x12=\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01R\x18standardComputeUsageCost\x12E\n\x1fstandard_compute_usage_quantity\x18\x08 \x01(\x01R\x1cstandardComputeUsageQuantity\x120\n\x14total_usage_quantity\x18\t \x01(\x01R\x12totalUsageQuantity\x129\n\x19total_usage_with_discount\x18\n \x01(\x01R\x16totalUsageWithDiscount\x12?\n\x1ctotal_usage_without_discount\x18\x0b \x01(\x01R\x19totalUsageWithoutDiscount"4\n\x1bGetCurrentMonthUsageRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xd0\x04\n\x1cGetCurrentMonthUsageResponse\x129\n\nstart_date\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\tstartDate\x125\n\x08end_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endDate\x127\n\x18cloud_storage_usage_cost\x18\x03 \x01(\x01R\x15cloudStorageUsageCost\x123\n\x16data_upload_usage_cost\x18\x04 \x01(\x01R\x13dataUploadUsageCost\x121\n\x15data_egres_usage_cost\x18\x05 \x01(\x01R\x12dataEgresUsageCost\x129\n\x19remote_control_usage_cost\x18\x06 \x01(\x01R\x16remoteControlUsageCost\x12=\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01R\x18standardComputeUsageCost\x12\'\n\x0fdiscount_amount\x18\x08 \x01(\x01R\x0ediscountAmount\x129\n\x19total_usage_with_discount\x18\t \x01(\x01R\x16totalUsageWithDiscount\x12?\n\x1ctotal_usage_without_discount\x18\n \x01(\x01R\x19totalUsageWithoutDiscount"0\n\x17GetUnpaidBalanceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\x94\x01\n\x18GetUnpaidBalanceResponse\x12%\n\x0eunpaid_balance\x18\x01 \x01(\x01R\runpaidBalance\x12Q\n\x17unpaid_balance_due_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x14unpaidBalanceDueDate"1\n\x18GetInvoiceHistoryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"T\n\x19GetInvoiceHistoryResponse\x127\n\x08invoices\x18\x01 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices"+\n\x19GetItemizedInvoiceRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"L\n\x1aGetItemizedInvoiceResponse\x12.\n\x07invoice\x18\x01 \x01(\x0b2\x14.viam.app.v1.InvoiceR\x07invoice"8\n\x1fGetOrgBillingInformationRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xc3\x01\n GetOrgBillingInformationResponse\x122\n\x04type\x18\x01 \x01(\x0e2\x1e.viam.app.v1.PaymentMethodTypeR\x04type\x12#\n\rbilling_email\x18\x02 \x01(\tR\x0cbillingEmail\x12;\n\x06method\x18\x03 \x01(\x0b2\x1e.viam.app.v1.PaymentMethodCardH\x00R\x06method\x88\x01\x01B\t\n\x07_method"2\n\x19GetInvoicesSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\x86\x01\n\x1aGetInvoicesSummaryResponse\x12/\n\x13outstanding_balance\x18\x01 \x01(\x01R\x12outstandingBalance\x127\n\x08invoices\x18\x02 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices"1\n\x18GetBillingSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xe7\x03\n\x19GetBillingSummaryResponse\x12J\n\rusage_summary\x18\x01 \x01(\x0b2%.viam.app.v1.CurrentMonthUsageSummaryR\x0cusageSummary\x127\n\x08invoices\x18\x02 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices\x12+\n\x11statement_balance\x18\x03 \x01(\x01R\x10statementBalance\x12\'\n\x0fcurrent_balance\x18\x04 \x01(\x01R\x0ecurrentBalance\x122\n\x15current_month_balance\x18\x05 \x01(\x01R\x13currentMonthBalance\x12O\n\x16current_month_due_date\x18\x07 \x01(\x0b2\x1a.google.protobuf.TimestampR\x13currentMonthDueDate\x12#\n\rinvoice_email\x18\x08 \x01(\tR\x0cinvoiceEmail\x12E\n\x0epayment_method\x18\t \x01(\x0b2\x1e.viam.app.v1.PaymentMethodCardR\rpaymentMethod*V\n\x11PaymentMethodType\x12#\n\x1fPAYMENT_METHOD_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18PAYMENT_METHOD_TYPE_CARD\x10\x012\xf0\x06\n\x0eBillingService\x12\x80\x01\n\x1bGetCurrentMonthUsageSummary\x12/.viam.app.v1.GetCurrentMonthUsageSummaryRequest\x1a0.viam.app.v1.GetCurrentMonthUsageSummaryResponse\x12_\n\x10GetUnpaidBalance\x12$.viam.app.v1.GetUnpaidBalanceRequest\x1a%.viam.app.v1.GetUnpaidBalanceResponse\x12b\n\x11GetInvoiceHistory\x12%.viam.app.v1.GetInvoiceHistoryRequest\x1a&.viam.app.v1.GetInvoiceHistoryResponse\x12e\n\x12GetItemizedInvoice\x12&.viam.app.v1.GetItemizedInvoiceRequest\x1a\'.viam.app.v1.GetItemizedInvoiceResponse\x12b\n\x11GetBillingSummary\x12%.viam.app.v1.GetBillingSummaryRequest\x1a&.viam.app.v1.GetBillingSummaryResponse\x12k\n\x14GetCurrentMonthUsage\x12(.viam.app.v1.GetCurrentMonthUsageRequest\x1a).viam.app.v1.GetCurrentMonthUsageResponse\x12w\n\x18GetOrgBillingInformation\x12,.viam.app.v1.GetOrgBillingInformationRequest\x1a-.viam.app.v1.GetOrgBillingInformationResponse\x12e\n\x12GetInvoicesSummary\x12&.viam.app.v1.GetInvoicesSummaryRequest\x1a\'.viam.app.v1.GetInvoicesSummaryResponseB\x18Z\x16go.viam.com/api/app/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14app/v1/billing.proto\x12\x0bviam.app.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x97\x05\n\x18CurrentMonthUsageSummary\x12.\n\x13cloud_storage_usage\x18\x01 \x01(\x01R\x11cloudStorageUsage\x127\n\x18cloud_storage_usage_cost\x18\x02 \x01(\x01R\x15cloudStorageUsageCost\x123\n\x16data_upload_usage_cost\x18\x03 \x01(\x01R\x13dataUploadUsageCost\x12;\n\x1adata_upload_usage_quantity\x18\x04 \x01(\x01R\x17dataUploadUsageQuantity\x121\n\x15data_egres_usage_cost\x18\x05 \x01(\x01R\x12dataEgresUsageCost\x129\n\x19data_egres_usage_quantity\x18\x06 \x01(\x01R\x16dataEgresUsageQuantity\x12=\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01R\x18standardComputeUsageCost\x12E\n\x1fstandard_compute_usage_quantity\x18\x08 \x01(\x01R\x1cstandardComputeUsageQuantity\x120\n\x14total_usage_quantity\x18\t \x01(\x01R\x12totalUsageQuantity\x129\n\x19total_usage_with_discount\x18\n \x01(\x01R\x16totalUsageWithDiscount\x12?\n\x1ctotal_usage_without_discount\x18\x0b \x01(\x01R\x19totalUsageWithoutDiscount"\x8e\x02\n\x0eInvoiceSummary\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x127\n\tpaid_date\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\x08paidDate"\x8b\x02\n\x15BillableResourceEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12%\n\x0eusage_quantity\x18\x03 \x01(\x01R\rusageQuantity\x12.\n\x13usage_quantity_unit\x18\x04 \x01(\tR\x11usageQuantityUnit\x12\x1d\n\nusage_cost\x18\x05 \x01(\tR\tusageCost\x12;\n\x0boccurred_at\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1b\n\tuser_name\x18\x07 \x01(\tR\x08userName"\xa7\x02\n\x07Invoice\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x128\n\x05items\x18\x06 \x03(\x0b2".viam.app.v1.BillableResourceEventR\x05items\x12\x1d\n\nemailed_to\x18\x07 \x01(\tR\temailedTo"S\n\x11PaymentMethodCard\x12\x14\n\x05brand\x18\x01 \x01(\tR\x05brand\x12(\n\x10last_four_digits\x18\x02 \x01(\tR\x0elastFourDigits";\n"GetCurrentMonthUsageSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xa2\x05\n#GetCurrentMonthUsageSummaryResponse\x12.\n\x13cloud_storage_usage\x18\x01 \x01(\x01R\x11cloudStorageUsage\x127\n\x18cloud_storage_usage_cost\x18\x02 \x01(\x01R\x15cloudStorageUsageCost\x123\n\x16data_upload_usage_cost\x18\x03 \x01(\x01R\x13dataUploadUsageCost\x12;\n\x1adata_upload_usage_quantity\x18\x04 \x01(\x01R\x17dataUploadUsageQuantity\x121\n\x15data_egres_usage_cost\x18\x05 \x01(\x01R\x12dataEgresUsageCost\x129\n\x19data_egres_usage_quantity\x18\x06 \x01(\x01R\x16dataEgresUsageQuantity\x12=\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01R\x18standardComputeUsageCost\x12E\n\x1fstandard_compute_usage_quantity\x18\x08 \x01(\x01R\x1cstandardComputeUsageQuantity\x120\n\x14total_usage_quantity\x18\t \x01(\x01R\x12totalUsageQuantity\x129\n\x19total_usage_with_discount\x18\n \x01(\x01R\x16totalUsageWithDiscount\x12?\n\x1ctotal_usage_without_discount\x18\x0b \x01(\x01R\x19totalUsageWithoutDiscount"4\n\x1bGetCurrentMonthUsageRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xd0\x04\n\x1cGetCurrentMonthUsageResponse\x129\n\nstart_date\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\tstartDate\x125\n\x08end_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endDate\x127\n\x18cloud_storage_usage_cost\x18\x03 \x01(\x01R\x15cloudStorageUsageCost\x123\n\x16data_upload_usage_cost\x18\x04 \x01(\x01R\x13dataUploadUsageCost\x121\n\x15data_egres_usage_cost\x18\x05 \x01(\x01R\x12dataEgresUsageCost\x129\n\x19remote_control_usage_cost\x18\x06 \x01(\x01R\x16remoteControlUsageCost\x12=\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01R\x18standardComputeUsageCost\x12\'\n\x0fdiscount_amount\x18\x08 \x01(\x01R\x0ediscountAmount\x129\n\x19total_usage_with_discount\x18\t \x01(\x01R\x16totalUsageWithDiscount\x12?\n\x1ctotal_usage_without_discount\x18\n \x01(\x01R\x19totalUsageWithoutDiscount"0\n\x17GetUnpaidBalanceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\x94\x01\n\x18GetUnpaidBalanceResponse\x12%\n\x0eunpaid_balance\x18\x01 \x01(\x01R\runpaidBalance\x12Q\n\x17unpaid_balance_due_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x14unpaidBalanceDueDate"1\n\x18GetInvoiceHistoryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"T\n\x19GetInvoiceHistoryResponse\x127\n\x08invoices\x18\x01 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices"+\n\x19GetItemizedInvoiceRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"L\n\x1aGetItemizedInvoiceResponse\x12.\n\x07invoice\x18\x01 \x01(\x0b2\x14.viam.app.v1.InvoiceR\x07invoice"8\n\x1fGetOrgBillingInformationRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xc3\x01\n GetOrgBillingInformationResponse\x122\n\x04type\x18\x01 \x01(\x0e2\x1e.viam.app.v1.PaymentMethodTypeR\x04type\x12#\n\rbilling_email\x18\x02 \x01(\tR\x0cbillingEmail\x12;\n\x06method\x18\x03 \x01(\x0b2\x1e.viam.app.v1.PaymentMethodCardH\x00R\x06method\x88\x01\x01B\t\n\x07_method"2\n\x19GetInvoicesSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\x86\x01\n\x1aGetInvoicesSummaryResponse\x12/\n\x13outstanding_balance\x18\x01 \x01(\x01R\x12outstandingBalance\x127\n\x08invoices\x18\x02 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices"1\n\x18GetBillingSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xe7\x03\n\x19GetBillingSummaryResponse\x12J\n\rusage_summary\x18\x01 \x01(\x0b2%.viam.app.v1.CurrentMonthUsageSummaryR\x0cusageSummary\x127\n\x08invoices\x18\x02 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices\x12+\n\x11statement_balance\x18\x03 \x01(\x01R\x10statementBalance\x12\'\n\x0fcurrent_balance\x18\x04 \x01(\x01R\x0ecurrentBalance\x122\n\x15current_month_balance\x18\x05 \x01(\x01R\x13currentMonthBalance\x12O\n\x16current_month_due_date\x18\x07 \x01(\x0b2\x1a.google.protobuf.TimestampR\x13currentMonthDueDate\x12#\n\rinvoice_email\x18\x08 \x01(\tR\x0cinvoiceEmail\x12E\n\x0epayment_method\x18\t \x01(\x0b2\x1e.viam.app.v1.PaymentMethodCardR\rpaymentMethod"&\n\x14GetInvoicePdfRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"-\n\x15GetInvoicePdfResponse\x12\x14\n\x05chunk\x18\x01 \x01(\x0cR\x05chunk*V\n\x11PaymentMethodType\x12#\n\x1fPAYMENT_METHOD_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18PAYMENT_METHOD_TYPE_CARD\x10\x012\xca\x07\n\x0eBillingService\x12\x80\x01\n\x1bGetCurrentMonthUsageSummary\x12/.viam.app.v1.GetCurrentMonthUsageSummaryRequest\x1a0.viam.app.v1.GetCurrentMonthUsageSummaryResponse\x12_\n\x10GetUnpaidBalance\x12$.viam.app.v1.GetUnpaidBalanceRequest\x1a%.viam.app.v1.GetUnpaidBalanceResponse\x12b\n\x11GetInvoiceHistory\x12%.viam.app.v1.GetInvoiceHistoryRequest\x1a&.viam.app.v1.GetInvoiceHistoryResponse\x12e\n\x12GetItemizedInvoice\x12&.viam.app.v1.GetItemizedInvoiceRequest\x1a\'.viam.app.v1.GetItemizedInvoiceResponse\x12b\n\x11GetBillingSummary\x12%.viam.app.v1.GetBillingSummaryRequest\x1a&.viam.app.v1.GetBillingSummaryResponse\x12k\n\x14GetCurrentMonthUsage\x12(.viam.app.v1.GetCurrentMonthUsageRequest\x1a).viam.app.v1.GetCurrentMonthUsageResponse\x12w\n\x18GetOrgBillingInformation\x12,.viam.app.v1.GetOrgBillingInformationRequest\x1a-.viam.app.v1.GetOrgBillingInformationResponse\x12e\n\x12GetInvoicesSummary\x12&.viam.app.v1.GetInvoicesSummaryRequest\x1a\'.viam.app.v1.GetInvoicesSummaryResponse\x12X\n\rGetInvoicePdf\x12!.viam.app.v1.GetInvoicePdfRequest\x1a".viam.app.v1.GetInvoicePdfResponse0\x01B\x18Z\x16go.viam.com/api/app/v1b\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.v1.billing_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'Z\x16go.viam.com/api/app/v1' - _PAYMENTMETHODTYPE._serialized_start = 4496 - _PAYMENTMETHODTYPE._serialized_end = 4582 + _PAYMENTMETHODTYPE._serialized_start = 4583 + _PAYMENTMETHODTYPE._serialized_end = 4669 _CURRENTMONTHUSAGESUMMARY._serialized_start = 71 _CURRENTMONTHUSAGESUMMARY._serialized_end = 734 _INVOICESUMMARY._serialized_start = 737 @@ -55,5 +55,9 @@ _GETBILLINGSUMMARYREQUEST._serialized_end = 4004 _GETBILLINGSUMMARYRESPONSE._serialized_start = 4007 _GETBILLINGSUMMARYRESPONSE._serialized_end = 4494 - _BILLINGSERVICE._serialized_start = 4585 - _BILLINGSERVICE._serialized_end = 5465 \ No newline at end of file + _GETINVOICEPDFREQUEST._serialized_start = 4496 + _GETINVOICEPDFREQUEST._serialized_end = 4534 + _GETINVOICEPDFRESPONSE._serialized_start = 4536 + _GETINVOICEPDFRESPONSE._serialized_end = 4581 + _BILLINGSERVICE._serialized_start = 4672 + _BILLINGSERVICE._serialized_end = 5642 \ No newline at end of file diff --git a/src/viam/gen/app/v1/billing_pb2.pyi b/src/viam/gen/app/v1/billing_pb2.pyi index c93f2c1db..9896f3f27 100644 --- a/src/viam/gen/app/v1/billing_pb2.pyi +++ b/src/viam/gen/app/v1/billing_pb2.pyi @@ -519,4 +519,30 @@ class GetBillingSummaryResponse(google.protobuf.message.Message): def ClearField(self, field_name: typing_extensions.Literal['current_balance', b'current_balance', 'current_month_balance', b'current_month_balance', 'current_month_due_date', b'current_month_due_date', 'invoice_email', b'invoice_email', 'invoices', b'invoices', 'payment_method', b'payment_method', 'statement_balance', b'statement_balance', 'usage_summary', b'usage_summary']) -> None: ... -global___GetBillingSummaryResponse = GetBillingSummaryResponse \ No newline at end of file +global___GetBillingSummaryResponse = GetBillingSummaryResponse + +@typing_extensions.final +class GetInvoicePdfRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ID_FIELD_NUMBER: builtins.int + id: builtins.str + + def __init__(self, *, id: builtins.str=...) -> None: + ... + + def ClearField(self, field_name: typing_extensions.Literal['id', b'id']) -> None: + ... +global___GetInvoicePdfRequest = GetInvoicePdfRequest + +@typing_extensions.final +class GetInvoicePdfResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + CHUNK_FIELD_NUMBER: builtins.int + chunk: builtins.bytes + + def __init__(self, *, chunk: builtins.bytes=...) -> None: + ... + + def ClearField(self, field_name: typing_extensions.Literal['chunk', b'chunk']) -> None: + ... +global___GetInvoicePdfResponse = GetInvoicePdfResponse \ No newline at end of file diff --git a/src/viam/proto/app/billing.py b/src/viam/proto/app/billing.py index 50e5edf33..8c6864694 100644 --- a/src/viam/proto/app/billing.py +++ b/src/viam/proto/app/billing.py @@ -14,6 +14,8 @@ GetCurrentMonthUsageSummaryResponse, GetInvoiceHistoryRequest, GetInvoiceHistoryResponse, + GetInvoicePdfRequest, + GetInvoicePdfResponse, GetInvoicesSummaryRequest, GetInvoicesSummaryResponse, GetItemizedInvoiceRequest, @@ -41,6 +43,8 @@ "GetCurrentMonthUsageSummaryResponse", "GetInvoiceHistoryRequest", "GetInvoiceHistoryResponse", + "GetInvoicePdfRequest", + "GetInvoicePdfResponse", "GetInvoicesSummaryRequest", "GetInvoicesSummaryResponse", "GetItemizedInvoiceRequest",