metalstack.cloud 0.15.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. buf/__init__.py +0 -0
  2. buf/validate/__init__.py +0 -0
  3. buf/validate/validate_pb2.py +450 -0
  4. buf/validate/validate_pb2.pyi +631 -0
  5. buf/validate/validate_pb2_grpc.py +4 -0
  6. metalstack_cloud-0.15.2.dist-info/METADATA +26 -0
  7. metalstack_cloud-0.15.2.dist-info/RECORD +111 -0
  8. metalstack_cloud-0.15.2.dist-info/WHEEL +5 -0
  9. metalstack_cloud-0.15.2.dist-info/top_level.txt +2 -0
  10. metalstackcloud/__init__.py +0 -0
  11. metalstackcloud/admin/__init__.py +0 -0
  12. metalstackcloud/admin/v1/__init__.py +0 -0
  13. metalstackcloud/admin/v1/cluster_connecpy.py +214 -0
  14. metalstackcloud/admin/v1/cluster_pb2.py +70 -0
  15. metalstackcloud/admin/v1/cluster_pb2.pyi +93 -0
  16. metalstackcloud/admin/v1/cluster_pb2_grpc.py +169 -0
  17. metalstackcloud/admin/v1/machine_pb2.py +42 -0
  18. metalstackcloud/admin/v1/machine_pb2.pyi +76 -0
  19. metalstackcloud/admin/v1/machine_pb2_grpc.py +4 -0
  20. metalstackcloud/admin/v1/payment_connecpy.py +158 -0
  21. metalstackcloud/admin/v1/payment_pb2.py +51 -0
  22. metalstackcloud/admin/v1/payment_pb2.pyi +33 -0
  23. metalstackcloud/admin/v1/payment_pb2_grpc.py +125 -0
  24. metalstackcloud/admin/v1/project_connecpy.py +102 -0
  25. metalstackcloud/admin/v1/project_pb2.py +49 -0
  26. metalstackcloud/admin/v1/project_pb2.pyi +34 -0
  27. metalstackcloud/admin/v1/project_pb2_grpc.py +81 -0
  28. metalstackcloud/admin/v1/storage_connecpy.py +214 -0
  29. metalstackcloud/admin/v1/storage_pb2.py +75 -0
  30. metalstackcloud/admin/v1/storage_pb2.pyi +149 -0
  31. metalstackcloud/admin/v1/storage_pb2_grpc.py +169 -0
  32. metalstackcloud/admin/v1/tenant_connecpy.py +270 -0
  33. metalstackcloud/admin/v1/tenant_pb2.py +66 -0
  34. metalstackcloud/admin/v1/tenant_pb2.pyi +72 -0
  35. metalstackcloud/admin/v1/tenant_pb2_grpc.py +213 -0
  36. metalstackcloud/admin/v1/token_connecpy.py +158 -0
  37. metalstackcloud/admin/v1/token_pb2.py +56 -0
  38. metalstackcloud/admin/v1/token_pb2.pyi +34 -0
  39. metalstackcloud/admin/v1/token_pb2_grpc.py +125 -0
  40. metalstackcloud/api/__init__.py +0 -0
  41. metalstackcloud/api/v1/__init__.py +0 -0
  42. metalstackcloud/api/v1/asset_connecpy.py +102 -0
  43. metalstackcloud/api/v1/asset_pb2.py +76 -0
  44. metalstackcloud/api/v1/asset_pb2.pyi +132 -0
  45. metalstackcloud/api/v1/asset_pb2_grpc.py +81 -0
  46. metalstackcloud/api/v1/audit_connecpy.py +158 -0
  47. metalstackcloud/api/v1/audit_pb2.py +84 -0
  48. metalstackcloud/api/v1/audit_pb2.pyi +95 -0
  49. metalstackcloud/api/v1/audit_pb2_grpc.py +125 -0
  50. metalstackcloud/api/v1/cluster_connecpy.py +494 -0
  51. metalstackcloud/api/v1/cluster_pb2.py +183 -0
  52. metalstackcloud/api/v1/cluster_pb2.pyi +311 -0
  53. metalstackcloud/api/v1/cluster_pb2_grpc.py +389 -0
  54. metalstackcloud/api/v1/common_pb2.py +52 -0
  55. metalstackcloud/api/v1/common_pb2.pyi +98 -0
  56. metalstackcloud/api/v1/common_pb2_grpc.py +4 -0
  57. metalstackcloud/api/v1/health_connecpy.py +102 -0
  58. metalstackcloud/api/v1/health_pb2.py +58 -0
  59. metalstackcloud/api/v1/health_pb2.pyi +74 -0
  60. metalstackcloud/api/v1/health_pb2_grpc.py +81 -0
  61. metalstackcloud/api/v1/ip_connecpy.py +326 -0
  62. metalstackcloud/api/v1/ip_pb2.py +110 -0
  63. metalstackcloud/api/v1/ip_pb2.pyi +122 -0
  64. metalstackcloud/api/v1/ip_pb2_grpc.py +257 -0
  65. metalstackcloud/api/v1/method_connecpy.py +158 -0
  66. metalstackcloud/api/v1/method_pb2.py +62 -0
  67. metalstackcloud/api/v1/method_pb2.pyi +50 -0
  68. metalstackcloud/api/v1/method_pb2_grpc.py +128 -0
  69. metalstackcloud/api/v1/payment_connecpy.py +550 -0
  70. metalstackcloud/api/v1/payment_pb2.py +134 -0
  71. metalstackcloud/api/v1/payment_pb2.pyi +291 -0
  72. metalstackcloud/api/v1/payment_pb2_grpc.py +433 -0
  73. metalstackcloud/api/v1/project_connecpy.py +718 -0
  74. metalstackcloud/api/v1/project_pb2.py +156 -0
  75. metalstackcloud/api/v1/project_pb2.pyi +234 -0
  76. metalstackcloud/api/v1/project_pb2_grpc.py +565 -0
  77. metalstackcloud/api/v1/snapshot_connecpy.py +214 -0
  78. metalstackcloud/api/v1/snapshot_pb2.py +75 -0
  79. metalstackcloud/api/v1/snapshot_pb2.pyi +109 -0
  80. metalstackcloud/api/v1/snapshot_pb2_grpc.py +169 -0
  81. metalstackcloud/api/v1/tenant_connecpy.py +774 -0
  82. metalstackcloud/api/v1/tenant_pb2.py +159 -0
  83. metalstackcloud/api/v1/tenant_pb2.pyi +305 -0
  84. metalstackcloud/api/v1/tenant_pb2_grpc.py +609 -0
  85. metalstackcloud/api/v1/token_connecpy.py +326 -0
  86. metalstackcloud/api/v1/token_pb2.py +131 -0
  87. metalstackcloud/api/v1/token_pb2.pyi +175 -0
  88. metalstackcloud/api/v1/token_pb2_grpc.py +257 -0
  89. metalstackcloud/api/v1/user_connecpy.py +102 -0
  90. metalstackcloud/api/v1/user_pb2.py +48 -0
  91. metalstackcloud/api/v1/user_pb2.pyi +42 -0
  92. metalstackcloud/api/v1/user_pb2_grpc.py +81 -0
  93. metalstackcloud/api/v1/version_connecpy.py +102 -0
  94. metalstackcloud/api/v1/version_pb2.py +46 -0
  95. metalstackcloud/api/v1/version_pb2.pyi +29 -0
  96. metalstackcloud/api/v1/version_pb2_grpc.py +81 -0
  97. metalstackcloud/api/v1/volume_connecpy.py +270 -0
  98. metalstackcloud/api/v1/volume_pb2.py +91 -0
  99. metalstackcloud/api/v1/volume_pb2.pyi +165 -0
  100. metalstackcloud/api/v1/volume_pb2_grpc.py +213 -0
  101. metalstackcloud/client.py +139 -0
  102. metalstackcloud/status/__init__.py +0 -0
  103. metalstackcloud/status/v1/__init__.py +0 -0
  104. metalstackcloud/status/v1/message_connecpy.py +102 -0
  105. metalstackcloud/status/v1/message_pb2.py +51 -0
  106. metalstackcloud/status/v1/message_pb2.pyi +65 -0
  107. metalstackcloud/status/v1/message_pb2_grpc.py +84 -0
  108. metalstackcloud/status/v1/status_connecpy.py +102 -0
  109. metalstackcloud/status/v1/status_pb2.py +45 -0
  110. metalstackcloud/status/v1/status_pb2.pyi +24 -0
  111. metalstackcloud/status/v1/status_pb2_grpc.py +84 -0
@@ -0,0 +1,134 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: api/v1/payment.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'api/v1/payment.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from metalstackcloud.api.v1 import common_pb2 as api_dot_v1_dot_common__pb2
26
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
27
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x61pi/v1/payment.proto\x12\x06\x61pi.v1\x1a\x13\x61pi/v1/common.proto\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x04\n\x0fPaymentCustomer\x12\x14\n\x05login\x18\x01 \x01(\tR\x05login\x12\x17\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12$\n\x0b\x63ustomer_id\x18\x03 \x01(\tH\x01R\ncustomerId\x88\x01\x01\x12/\n\x11payment_method_id\x18\x04 \x01(\tH\x02R\x0fpaymentMethodId\x88\x01\x01\x12\'\n\x0fsubscription_id\x18\x05 \x01(\tR\x0esubscriptionId\x12\"\n\x05\x65mail\x18\x06 \x01(\tB\x07\xbaH\x04r\x02`\x01H\x03R\x05\x65mail\x88\x01\x01\x12%\n\x04\x63\x61rd\x18\x07 \x01(\x0b\x32\x0c.api.v1.CardH\x04R\x04\x63\x61rd\x88\x01\x01\x12%\n\x06prices\x18\x08 \x03(\x0b\x32\r.api.v1.PriceR\x06prices\x12)\n\x07\x61\x64\x64ress\x18\t \x01(\x0b\x32\x0f.api.v1.AddressR\x07\x61\x64\x64ress\x12+\n\x06\x63oupon\x18\n \x01(\x0b\x32\x0e.api.v1.CouponH\x05R\x06\x63oupon\x88\x01\x01\x12\x15\n\x03vat\x18\x0b \x01(\tH\x06R\x03vat\x88\x01\x01\x12&\n\x0cphone_number\x18\x0c \x01(\tH\x07R\x0bphoneNumber\x88\x01\x01\x12\x1d\n\x07\x62\x61lance\x18\r \x01(\x03H\x08R\x07\x62\x61lance\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_customer_idB\x14\n\x12_payment_method_idB\x08\n\x06_emailB\x07\n\x05_cardB\t\n\x07_couponB\x06\n\x04_vatB\x0f\n\r_phone_numberB\n\n\x08_balance\"\x85\x01\n\x04\x43\x61rd\x12\x14\n\x05\x62rand\x18\x01 \x01(\tR\x05\x62rand\x12\x18\n\x07\x63ountry\x18\x02 \x01(\tR\x07\x63ountry\x12\x1b\n\texp_month\x18\x03 \x01(\x03R\x08\x65xpMonth\x12\x19\n\x08\x65xp_year\x18\x04 \x01(\x03R\x07\x65xpYear\x12\x15\n\x06last_4\x18\x05 \x01(\tR\x05last4\"\xb3\x02\n\x05Price\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x13unit_amount_decimal\x18\x02 \x01(\x01R\x11unitAmountDecimal\x12\x1a\n\x08\x63urrency\x18\x03 \x01(\tR\x08\x63urrency\x12\x1d\n\nunit_label\x18\x04 \x01(\tR\tunitLabel\x12\x36\n\x0cproduct_type\x18\x05 \x01(\x0e\x32\x13.api.v1.ProductTypeR\x0bproductType\x12\x31\n\x0b\x64\x65scription\x18\x06 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\xf4\x03H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\x30\n\nusage_type\x18\x07 \x01(\x0e\x32\x11.api.v1.UsageTypeR\tusageTypeB\x0e\n\x0c_description\"\x9a\x01\n\x07\x41\x64\x64ress\x12\x14\n\x05line1\x18\x01 \x01(\tR\x05line1\x12\x14\n\x05line2\x18\x02 \x01(\tR\x05line2\x12\x1f\n\x0bpostal_code\x18\x03 \x01(\tR\npostalCode\x12\x12\n\x04\x63ity\x18\x04 \x01(\tR\x04\x63ity\x12\x14\n\x05state\x18\x05 \x01(\tR\x05state\x12\x18\n\x07\x63ountry\x18\x06 \x01(\tR\x07\x63ountry\"\x9a\x02\n\x15SubscriptionUsageItem\x12\x30\n\x14subscription_item_id\x18\x01 \x01(\tR\x12subscriptionItemId\x12\x34\n\x16subscription_item_name\x18\x02 \x01(\tR\x14subscriptionItemName\x12\x1f\n\x0btotal_usage\x18\x03 \x01(\x03R\ntotalUsage\x12=\n\x0cperiod_start\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bperiodStart\x12\x39\n\nperiod_end\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tperiodEnd\"\xbd\x01\n\x07Invoice\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12(\n\x10pdf_download_url\x18\x02 \x01(\tR\x0epdfDownloadUrl\x12=\n\x0cperiod_start\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bperiodStart\x12\x39\n\nperiod_end\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tperiodEnd\"\xf8\x02\n\x06\x43oupon\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n\namount_off\x18\x03 \x01(\x03R\tamountOff\x12\x1a\n\x08\x63urrency\x18\x04 \x01(\tR\x08\x63urrency\x12*\n\x11\x64uration_in_month\x18\x05 \x01(\x03R\x0f\x64urationInMonth\x12\x39\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x37\n\tredeem_by\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08redeemBy\x12%\n\x0etimes_redeemed\x18\x08 \x01(\x03R\rtimesRedeemed\x12\'\n\x0fmax_redemptions\x18\t \x01(\x03R\x0emaxRedemptions\x12\x1f\n\x0b\x61mount_left\x18\n \x01(\x03R\namountLeft\"\xce\x03\n+PaymentServiceCreateOrUpdateCustomerRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\x12\x17\n\x04name\x18\x04 \x01(\tH\x00R\x04name\x88\x01\x01\x12/\n\x11payment_method_id\x18\x05 \x01(\tH\x01R\x0fpaymentMethodId\x88\x01\x01\x12\"\n\x05\x65mail\x18\x06 \x01(\tB\x07\xbaH\x04r\x02`\x01H\x02R\x05\x65mail\x88\x01\x01\x12%\n\x04\x63\x61rd\x18\x07 \x01(\x0b\x32\x0c.api.v1.CardH\x03R\x04\x63\x61rd\x88\x01\x01\x12)\n\x07\x61\x64\x64ress\x18\x08 \x01(\x0b\x32\x0f.api.v1.AddressR\x07\x61\x64\x64ress\x12\x15\n\x03vat\x18\t \x01(\tH\x04R\x03vat\x88\x01\x01\x12&\n\x0cphone_number\x18\n \x01(\tH\x05R\x0bphoneNumber\x88\x01\x01\x42\x07\n\x05_nameB\x14\n\x12_payment_method_idB\x08\n\x06_emailB\x07\n\x05_cardB\x06\n\x04_vatB\x0f\n\r_phone_numberJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04R\x08\x63ustomerR\x1d\x61\x63\x63\x65pted_terms_and_conditions\"c\n,PaymentServiceCreateOrUpdateCustomerResponse\x12\x33\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32\x17.api.v1.PaymentCustomerR\x08\x63ustomer\"e\n PaymentServiceGetCustomerRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\x12\x1f\n\x0b\x63ustomer_id\x18\x02 \x01(\tR\ncustomerId\"X\n!PaymentServiceGetCustomerResponse\x12\x33\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32\x17.api.v1.PaymentCustomerR\x08\x63ustomer\"N\n*PaymentServiceCheckIfCustomerExistsRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\"z\n+PaymentServiceCheckIfCustomerExistsResponse\x12\x33\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32\x17.api.v1.PaymentCustomerR\x08\x63ustomer\x12\x16\n\x06\x65xists\x18\x02 \x01(\x08R\x06\x65xists\"I\n%PaymentServiceHasPaymentMethodRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\"\x8c\x01\n&PaymentServiceHasPaymentMethodResponse\x12\x16\n\x06\x65xists\x18\x01 \x01(\x08R\x06\x65xists\x12\x1f\n\x0b\x63oupon_left\x18\x02 \x01(\x08R\ncouponLeft\x12)\n\x10positive_balance\x18\x03 \x01(\x08R\x0fpositiveBalance\"L\n(PaymentServiceDeletePaymentMethodRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\"+\n)PaymentServiceDeletePaymentMethodResponse\"M\n)PaymentServiceGetSubscriptionUsageRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\"\x85\x01\n*PaymentServiceGetSubscriptionUsageResponse\x12W\n\x18subscription_usage_items\x18\x01 \x03(\x0b\x32\x1d.api.v1.SubscriptionUsageItemR\x16subscriptionUsageItems\"o\n PaymentServiceGetInvoicesRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\x12)\n\x0b\x63ustomer_id\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x98\x01\x12R\ncustomerId\"P\n!PaymentServiceGetInvoicesResponse\x12+\n\x08invoices\x18\x01 \x03(\x0b\x32\x0f.api.v1.InvoiceR\x08invoices\"\'\n%PaymentServiceGetDefaultPricesRequest\"O\n&PaymentServiceGetDefaultPricesResponse\x12%\n\x06prices\x18\x01 \x03(\x0b\x32\r.api.v1.PriceR\x06prices\"C\n+PaymentServiceHasChargeableResourcesRequest\x12\x14\n\x05login\x18\x01 \x01(\tR\x05login\"S\n,PaymentServiceHasChargeableResourcesResponse\x12#\n\rhas_resources\x18\x01 \x01(\x08R\x0chasResources*\x96\x01\n\x0bProductType\x12\x1c\n\x18PRODUCT_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14PRODUCT_TYPE_STORAGE\x10\x01\x12\x18\n\x14PRODUCT_TYPE_COMPUTE\x10\x02\x12\x18\n\x14PRODUCT_TYPE_NETWORK\x10\x03\x12\x1b\n\x17PRODUCT_TYPE_KUBERNETES\x10\x05*X\n\tUsageType\x12\x1a\n\x16USAGE_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12USAGE_TYPE_METERED\x10\x01\x12\x17\n\x13USAGE_TYPE_LICENSED\x10\x02\x32\xaa\t\n\x0ePaymentService\x12\x8a\x01\n\x16\x43reateOrUpdateCustomer\x12\x33.api.v1.PaymentServiceCreateOrUpdateCustomerRequest\x1a\x34.api.v1.PaymentServiceCreateOrUpdateCustomerResponse\"\x05\xc2\xf3\x18\x01\x01\x12m\n\x0bGetCustomer\x12(.api.v1.PaymentServiceGetCustomerRequest\x1a).api.v1.PaymentServiceGetCustomerResponse\"\t\xc2\xf3\x18\x01\x01\xe8\xf3\x18\x02\x12\x8b\x01\n\x15\x43heckIfCustomerExists\x12\x32.api.v1.PaymentServiceCheckIfCustomerExistsRequest\x1a\x33.api.v1.PaymentServiceCheckIfCustomerExistsResponse\"\t\xc2\xf3\x18\x01\x01\xe8\xf3\x18\x02\x12\x7f\n\x10HasPaymentMethod\x12-.api.v1.PaymentServiceHasPaymentMethodRequest\x1a..api.v1.PaymentServiceHasPaymentMethodResponse\"\x0c\xc2\xf3\x18\x04\x01\x02\x03\x04\xe8\xf3\x18\x02\x12\x81\x01\n\x13\x44\x65letePaymentMethod\x12\x30.api.v1.PaymentServiceDeletePaymentMethodRequest\x1a\x31.api.v1.PaymentServiceDeletePaymentMethodResponse\"\x05\xc2\xf3\x18\x01\x01\x12\x88\x01\n\x14GetSubscriptionUsage\x12\x31.api.v1.PaymentServiceGetSubscriptionUsageRequest\x1a\x32.api.v1.PaymentServiceGetSubscriptionUsageResponse\"\t\xc2\xf3\x18\x01\x01\xe8\xf3\x18\x02\x12m\n\x0bGetInvoices\x12(.api.v1.PaymentServiceGetInvoicesRequest\x1a).api.v1.PaymentServiceGetInvoicesResponse\"\t\xc2\xf3\x18\x01\x01\xe8\xf3\x18\x02\x12{\n\x10GetDefaultPrices\x12-.api.v1.PaymentServiceGetDefaultPricesRequest\x1a..api.v1.PaymentServiceGetDefaultPricesResponse\"\x08\xd8\xf3\x18\x01\xe8\xf3\x18\x02\x12\x91\x01\n\x16HasChargeableResources\x12\x33.api.v1.PaymentServiceHasChargeableResourcesRequest\x1a\x34.api.v1.PaymentServiceHasChargeableResourcesResponse\"\x0c\xc2\xf3\x18\x04\x01\x02\x03\x04\xe8\xf3\x18\x02\x42\x85\x01\n\ncom.api.v1B\x0cPaymentProtoP\x01Z0github.com/metal-stack-cloud/api/go/api/v1;apiv1\xa2\x02\x03\x41XX\xaa\x02\x06\x41pi.V1\xca\x02\x06\x41pi\\V1\xe2\x02\x12\x41pi\\V1\\GPBMetadata\xea\x02\x07\x41pi::V1b\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'api.v1.payment_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ _globals['DESCRIPTOR']._loaded_options = None
37
+ _globals['DESCRIPTOR']._serialized_options = b'\n\ncom.api.v1B\014PaymentProtoP\001Z0github.com/metal-stack-cloud/api/go/api/v1;apiv1\242\002\003AXX\252\002\006Api.V1\312\002\006Api\\V1\342\002\022Api\\V1\\GPBMetadata\352\002\007Api::V1'
38
+ _globals['_PAYMENTCUSTOMER'].fields_by_name['email']._loaded_options = None
39
+ _globals['_PAYMENTCUSTOMER'].fields_by_name['email']._serialized_options = b'\272H\004r\002`\001'
40
+ _globals['_PRICE'].fields_by_name['description']._loaded_options = None
41
+ _globals['_PRICE'].fields_by_name['description']._serialized_options = b'\272H\007r\005\020\002\030\364\003'
42
+ _globals['_PAYMENTSERVICECREATEORUPDATECUSTOMERREQUEST'].fields_by_name['login']._loaded_options = None
43
+ _globals['_PAYMENTSERVICECREATEORUPDATECUSTOMERREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
44
+ _globals['_PAYMENTSERVICECREATEORUPDATECUSTOMERREQUEST'].fields_by_name['email']._loaded_options = None
45
+ _globals['_PAYMENTSERVICECREATEORUPDATECUSTOMERREQUEST'].fields_by_name['email']._serialized_options = b'\272H\004r\002`\001'
46
+ _globals['_PAYMENTSERVICEGETCUSTOMERREQUEST'].fields_by_name['login']._loaded_options = None
47
+ _globals['_PAYMENTSERVICEGETCUSTOMERREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
48
+ _globals['_PAYMENTSERVICECHECKIFCUSTOMEREXISTSREQUEST'].fields_by_name['login']._loaded_options = None
49
+ _globals['_PAYMENTSERVICECHECKIFCUSTOMEREXISTSREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
50
+ _globals['_PAYMENTSERVICEHASPAYMENTMETHODREQUEST'].fields_by_name['login']._loaded_options = None
51
+ _globals['_PAYMENTSERVICEHASPAYMENTMETHODREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
52
+ _globals['_PAYMENTSERVICEDELETEPAYMENTMETHODREQUEST'].fields_by_name['login']._loaded_options = None
53
+ _globals['_PAYMENTSERVICEDELETEPAYMENTMETHODREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
54
+ _globals['_PAYMENTSERVICEGETSUBSCRIPTIONUSAGEREQUEST'].fields_by_name['login']._loaded_options = None
55
+ _globals['_PAYMENTSERVICEGETSUBSCRIPTIONUSAGEREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
56
+ _globals['_PAYMENTSERVICEGETINVOICESREQUEST'].fields_by_name['login']._loaded_options = None
57
+ _globals['_PAYMENTSERVICEGETINVOICESREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
58
+ _globals['_PAYMENTSERVICEGETINVOICESREQUEST'].fields_by_name['customer_id']._loaded_options = None
59
+ _globals['_PAYMENTSERVICEGETINVOICESREQUEST'].fields_by_name['customer_id']._serialized_options = b'\272H\005r\003\230\001\022'
60
+ _globals['_PAYMENTSERVICE'].methods_by_name['CreateOrUpdateCustomer']._loaded_options = None
61
+ _globals['_PAYMENTSERVICE'].methods_by_name['CreateOrUpdateCustomer']._serialized_options = b'\302\363\030\001\001'
62
+ _globals['_PAYMENTSERVICE'].methods_by_name['GetCustomer']._loaded_options = None
63
+ _globals['_PAYMENTSERVICE'].methods_by_name['GetCustomer']._serialized_options = b'\302\363\030\001\001\350\363\030\002'
64
+ _globals['_PAYMENTSERVICE'].methods_by_name['CheckIfCustomerExists']._loaded_options = None
65
+ _globals['_PAYMENTSERVICE'].methods_by_name['CheckIfCustomerExists']._serialized_options = b'\302\363\030\001\001\350\363\030\002'
66
+ _globals['_PAYMENTSERVICE'].methods_by_name['HasPaymentMethod']._loaded_options = None
67
+ _globals['_PAYMENTSERVICE'].methods_by_name['HasPaymentMethod']._serialized_options = b'\302\363\030\004\001\002\003\004\350\363\030\002'
68
+ _globals['_PAYMENTSERVICE'].methods_by_name['DeletePaymentMethod']._loaded_options = None
69
+ _globals['_PAYMENTSERVICE'].methods_by_name['DeletePaymentMethod']._serialized_options = b'\302\363\030\001\001'
70
+ _globals['_PAYMENTSERVICE'].methods_by_name['GetSubscriptionUsage']._loaded_options = None
71
+ _globals['_PAYMENTSERVICE'].methods_by_name['GetSubscriptionUsage']._serialized_options = b'\302\363\030\001\001\350\363\030\002'
72
+ _globals['_PAYMENTSERVICE'].methods_by_name['GetInvoices']._loaded_options = None
73
+ _globals['_PAYMENTSERVICE'].methods_by_name['GetInvoices']._serialized_options = b'\302\363\030\001\001\350\363\030\002'
74
+ _globals['_PAYMENTSERVICE'].methods_by_name['GetDefaultPrices']._loaded_options = None
75
+ _globals['_PAYMENTSERVICE'].methods_by_name['GetDefaultPrices']._serialized_options = b'\330\363\030\001\350\363\030\002'
76
+ _globals['_PAYMENTSERVICE'].methods_by_name['HasChargeableResources']._loaded_options = None
77
+ _globals['_PAYMENTSERVICE'].methods_by_name['HasChargeableResources']._serialized_options = b'\302\363\030\004\001\002\003\004\350\363\030\002'
78
+ _globals['_PRODUCTTYPE']._serialized_start=4170
79
+ _globals['_PRODUCTTYPE']._serialized_end=4320
80
+ _globals['_USAGETYPE']._serialized_start=4322
81
+ _globals['_USAGETYPE']._serialized_end=4410
82
+ _globals['_PAYMENTCUSTOMER']._serialized_start=116
83
+ _globals['_PAYMENTCUSTOMER']._serialized_end=718
84
+ _globals['_CARD']._serialized_start=721
85
+ _globals['_CARD']._serialized_end=854
86
+ _globals['_PRICE']._serialized_start=857
87
+ _globals['_PRICE']._serialized_end=1164
88
+ _globals['_ADDRESS']._serialized_start=1167
89
+ _globals['_ADDRESS']._serialized_end=1321
90
+ _globals['_SUBSCRIPTIONUSAGEITEM']._serialized_start=1324
91
+ _globals['_SUBSCRIPTIONUSAGEITEM']._serialized_end=1606
92
+ _globals['_INVOICE']._serialized_start=1609
93
+ _globals['_INVOICE']._serialized_end=1798
94
+ _globals['_COUPON']._serialized_start=1801
95
+ _globals['_COUPON']._serialized_end=2177
96
+ _globals['_PAYMENTSERVICECREATEORUPDATECUSTOMERREQUEST']._serialized_start=2180
97
+ _globals['_PAYMENTSERVICECREATEORUPDATECUSTOMERREQUEST']._serialized_end=2642
98
+ _globals['_PAYMENTSERVICECREATEORUPDATECUSTOMERRESPONSE']._serialized_start=2644
99
+ _globals['_PAYMENTSERVICECREATEORUPDATECUSTOMERRESPONSE']._serialized_end=2743
100
+ _globals['_PAYMENTSERVICEGETCUSTOMERREQUEST']._serialized_start=2745
101
+ _globals['_PAYMENTSERVICEGETCUSTOMERREQUEST']._serialized_end=2846
102
+ _globals['_PAYMENTSERVICEGETCUSTOMERRESPONSE']._serialized_start=2848
103
+ _globals['_PAYMENTSERVICEGETCUSTOMERRESPONSE']._serialized_end=2936
104
+ _globals['_PAYMENTSERVICECHECKIFCUSTOMEREXISTSREQUEST']._serialized_start=2938
105
+ _globals['_PAYMENTSERVICECHECKIFCUSTOMEREXISTSREQUEST']._serialized_end=3016
106
+ _globals['_PAYMENTSERVICECHECKIFCUSTOMEREXISTSRESPONSE']._serialized_start=3018
107
+ _globals['_PAYMENTSERVICECHECKIFCUSTOMEREXISTSRESPONSE']._serialized_end=3140
108
+ _globals['_PAYMENTSERVICEHASPAYMENTMETHODREQUEST']._serialized_start=3142
109
+ _globals['_PAYMENTSERVICEHASPAYMENTMETHODREQUEST']._serialized_end=3215
110
+ _globals['_PAYMENTSERVICEHASPAYMENTMETHODRESPONSE']._serialized_start=3218
111
+ _globals['_PAYMENTSERVICEHASPAYMENTMETHODRESPONSE']._serialized_end=3358
112
+ _globals['_PAYMENTSERVICEDELETEPAYMENTMETHODREQUEST']._serialized_start=3360
113
+ _globals['_PAYMENTSERVICEDELETEPAYMENTMETHODREQUEST']._serialized_end=3436
114
+ _globals['_PAYMENTSERVICEDELETEPAYMENTMETHODRESPONSE']._serialized_start=3438
115
+ _globals['_PAYMENTSERVICEDELETEPAYMENTMETHODRESPONSE']._serialized_end=3481
116
+ _globals['_PAYMENTSERVICEGETSUBSCRIPTIONUSAGEREQUEST']._serialized_start=3483
117
+ _globals['_PAYMENTSERVICEGETSUBSCRIPTIONUSAGEREQUEST']._serialized_end=3560
118
+ _globals['_PAYMENTSERVICEGETSUBSCRIPTIONUSAGERESPONSE']._serialized_start=3563
119
+ _globals['_PAYMENTSERVICEGETSUBSCRIPTIONUSAGERESPONSE']._serialized_end=3696
120
+ _globals['_PAYMENTSERVICEGETINVOICESREQUEST']._serialized_start=3698
121
+ _globals['_PAYMENTSERVICEGETINVOICESREQUEST']._serialized_end=3809
122
+ _globals['_PAYMENTSERVICEGETINVOICESRESPONSE']._serialized_start=3811
123
+ _globals['_PAYMENTSERVICEGETINVOICESRESPONSE']._serialized_end=3891
124
+ _globals['_PAYMENTSERVICEGETDEFAULTPRICESREQUEST']._serialized_start=3893
125
+ _globals['_PAYMENTSERVICEGETDEFAULTPRICESREQUEST']._serialized_end=3932
126
+ _globals['_PAYMENTSERVICEGETDEFAULTPRICESRESPONSE']._serialized_start=3934
127
+ _globals['_PAYMENTSERVICEGETDEFAULTPRICESRESPONSE']._serialized_end=4013
128
+ _globals['_PAYMENTSERVICEHASCHARGEABLERESOURCESREQUEST']._serialized_start=4015
129
+ _globals['_PAYMENTSERVICEHASCHARGEABLERESOURCESREQUEST']._serialized_end=4082
130
+ _globals['_PAYMENTSERVICEHASCHARGEABLERESOURCESRESPONSE']._serialized_start=4084
131
+ _globals['_PAYMENTSERVICEHASCHARGEABLERESOURCESRESPONSE']._serialized_end=4167
132
+ _globals['_PAYMENTSERVICE']._serialized_start=4413
133
+ _globals['_PAYMENTSERVICE']._serialized_end=5607
134
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,291 @@
1
+ import datetime
2
+
3
+ from api.v1 import common_pb2 as _common_pb2
4
+ from buf.validate import validate_pb2 as _validate_pb2
5
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
6
+ from google.protobuf.internal import containers as _containers
7
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
8
+ from google.protobuf import descriptor as _descriptor
9
+ from google.protobuf import message as _message
10
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
11
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
12
+
13
+ DESCRIPTOR: _descriptor.FileDescriptor
14
+
15
+ class ProductType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
16
+ __slots__ = ()
17
+ PRODUCT_TYPE_UNSPECIFIED: _ClassVar[ProductType]
18
+ PRODUCT_TYPE_STORAGE: _ClassVar[ProductType]
19
+ PRODUCT_TYPE_COMPUTE: _ClassVar[ProductType]
20
+ PRODUCT_TYPE_NETWORK: _ClassVar[ProductType]
21
+ PRODUCT_TYPE_KUBERNETES: _ClassVar[ProductType]
22
+
23
+ class UsageType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
24
+ __slots__ = ()
25
+ USAGE_TYPE_UNSPECIFIED: _ClassVar[UsageType]
26
+ USAGE_TYPE_METERED: _ClassVar[UsageType]
27
+ USAGE_TYPE_LICENSED: _ClassVar[UsageType]
28
+ PRODUCT_TYPE_UNSPECIFIED: ProductType
29
+ PRODUCT_TYPE_STORAGE: ProductType
30
+ PRODUCT_TYPE_COMPUTE: ProductType
31
+ PRODUCT_TYPE_NETWORK: ProductType
32
+ PRODUCT_TYPE_KUBERNETES: ProductType
33
+ USAGE_TYPE_UNSPECIFIED: UsageType
34
+ USAGE_TYPE_METERED: UsageType
35
+ USAGE_TYPE_LICENSED: UsageType
36
+
37
+ class PaymentCustomer(_message.Message):
38
+ __slots__ = ("login", "name", "customer_id", "payment_method_id", "subscription_id", "email", "card", "prices", "address", "coupon", "vat", "phone_number", "balance")
39
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
40
+ NAME_FIELD_NUMBER: _ClassVar[int]
41
+ CUSTOMER_ID_FIELD_NUMBER: _ClassVar[int]
42
+ PAYMENT_METHOD_ID_FIELD_NUMBER: _ClassVar[int]
43
+ SUBSCRIPTION_ID_FIELD_NUMBER: _ClassVar[int]
44
+ EMAIL_FIELD_NUMBER: _ClassVar[int]
45
+ CARD_FIELD_NUMBER: _ClassVar[int]
46
+ PRICES_FIELD_NUMBER: _ClassVar[int]
47
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
48
+ COUPON_FIELD_NUMBER: _ClassVar[int]
49
+ VAT_FIELD_NUMBER: _ClassVar[int]
50
+ PHONE_NUMBER_FIELD_NUMBER: _ClassVar[int]
51
+ BALANCE_FIELD_NUMBER: _ClassVar[int]
52
+ login: str
53
+ name: str
54
+ customer_id: str
55
+ payment_method_id: str
56
+ subscription_id: str
57
+ email: str
58
+ card: Card
59
+ prices: _containers.RepeatedCompositeFieldContainer[Price]
60
+ address: Address
61
+ coupon: Coupon
62
+ vat: str
63
+ phone_number: str
64
+ balance: int
65
+ def __init__(self, login: _Optional[str] = ..., name: _Optional[str] = ..., customer_id: _Optional[str] = ..., payment_method_id: _Optional[str] = ..., subscription_id: _Optional[str] = ..., email: _Optional[str] = ..., card: _Optional[_Union[Card, _Mapping]] = ..., prices: _Optional[_Iterable[_Union[Price, _Mapping]]] = ..., address: _Optional[_Union[Address, _Mapping]] = ..., coupon: _Optional[_Union[Coupon, _Mapping]] = ..., vat: _Optional[str] = ..., phone_number: _Optional[str] = ..., balance: _Optional[int] = ...) -> None: ...
66
+
67
+ class Card(_message.Message):
68
+ __slots__ = ("brand", "country", "exp_month", "exp_year", "last_4")
69
+ BRAND_FIELD_NUMBER: _ClassVar[int]
70
+ COUNTRY_FIELD_NUMBER: _ClassVar[int]
71
+ EXP_MONTH_FIELD_NUMBER: _ClassVar[int]
72
+ EXP_YEAR_FIELD_NUMBER: _ClassVar[int]
73
+ LAST_4_FIELD_NUMBER: _ClassVar[int]
74
+ brand: str
75
+ country: str
76
+ exp_month: int
77
+ exp_year: int
78
+ last_4: str
79
+ def __init__(self, brand: _Optional[str] = ..., country: _Optional[str] = ..., exp_month: _Optional[int] = ..., exp_year: _Optional[int] = ..., last_4: _Optional[str] = ...) -> None: ...
80
+
81
+ class Price(_message.Message):
82
+ __slots__ = ("name", "unit_amount_decimal", "currency", "unit_label", "product_type", "description", "usage_type")
83
+ NAME_FIELD_NUMBER: _ClassVar[int]
84
+ UNIT_AMOUNT_DECIMAL_FIELD_NUMBER: _ClassVar[int]
85
+ CURRENCY_FIELD_NUMBER: _ClassVar[int]
86
+ UNIT_LABEL_FIELD_NUMBER: _ClassVar[int]
87
+ PRODUCT_TYPE_FIELD_NUMBER: _ClassVar[int]
88
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
89
+ USAGE_TYPE_FIELD_NUMBER: _ClassVar[int]
90
+ name: str
91
+ unit_amount_decimal: float
92
+ currency: str
93
+ unit_label: str
94
+ product_type: ProductType
95
+ description: str
96
+ usage_type: UsageType
97
+ def __init__(self, name: _Optional[str] = ..., unit_amount_decimal: _Optional[float] = ..., currency: _Optional[str] = ..., unit_label: _Optional[str] = ..., product_type: _Optional[_Union[ProductType, str]] = ..., description: _Optional[str] = ..., usage_type: _Optional[_Union[UsageType, str]] = ...) -> None: ...
98
+
99
+ class Address(_message.Message):
100
+ __slots__ = ("line1", "line2", "postal_code", "city", "state", "country")
101
+ LINE1_FIELD_NUMBER: _ClassVar[int]
102
+ LINE2_FIELD_NUMBER: _ClassVar[int]
103
+ POSTAL_CODE_FIELD_NUMBER: _ClassVar[int]
104
+ CITY_FIELD_NUMBER: _ClassVar[int]
105
+ STATE_FIELD_NUMBER: _ClassVar[int]
106
+ COUNTRY_FIELD_NUMBER: _ClassVar[int]
107
+ line1: str
108
+ line2: str
109
+ postal_code: str
110
+ city: str
111
+ state: str
112
+ country: str
113
+ def __init__(self, line1: _Optional[str] = ..., line2: _Optional[str] = ..., postal_code: _Optional[str] = ..., city: _Optional[str] = ..., state: _Optional[str] = ..., country: _Optional[str] = ...) -> None: ...
114
+
115
+ class SubscriptionUsageItem(_message.Message):
116
+ __slots__ = ("subscription_item_id", "subscription_item_name", "total_usage", "period_start", "period_end")
117
+ SUBSCRIPTION_ITEM_ID_FIELD_NUMBER: _ClassVar[int]
118
+ SUBSCRIPTION_ITEM_NAME_FIELD_NUMBER: _ClassVar[int]
119
+ TOTAL_USAGE_FIELD_NUMBER: _ClassVar[int]
120
+ PERIOD_START_FIELD_NUMBER: _ClassVar[int]
121
+ PERIOD_END_FIELD_NUMBER: _ClassVar[int]
122
+ subscription_item_id: str
123
+ subscription_item_name: str
124
+ total_usage: int
125
+ period_start: _timestamp_pb2.Timestamp
126
+ period_end: _timestamp_pb2.Timestamp
127
+ def __init__(self, subscription_item_id: _Optional[str] = ..., subscription_item_name: _Optional[str] = ..., total_usage: _Optional[int] = ..., period_start: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., period_end: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
128
+
129
+ class Invoice(_message.Message):
130
+ __slots__ = ("id", "pdf_download_url", "period_start", "period_end")
131
+ ID_FIELD_NUMBER: _ClassVar[int]
132
+ PDF_DOWNLOAD_URL_FIELD_NUMBER: _ClassVar[int]
133
+ PERIOD_START_FIELD_NUMBER: _ClassVar[int]
134
+ PERIOD_END_FIELD_NUMBER: _ClassVar[int]
135
+ id: str
136
+ pdf_download_url: str
137
+ period_start: _timestamp_pb2.Timestamp
138
+ period_end: _timestamp_pb2.Timestamp
139
+ def __init__(self, id: _Optional[str] = ..., pdf_download_url: _Optional[str] = ..., period_start: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., period_end: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
140
+
141
+ class Coupon(_message.Message):
142
+ __slots__ = ("id", "name", "amount_off", "currency", "duration_in_month", "created_at", "redeem_by", "times_redeemed", "max_redemptions", "amount_left")
143
+ ID_FIELD_NUMBER: _ClassVar[int]
144
+ NAME_FIELD_NUMBER: _ClassVar[int]
145
+ AMOUNT_OFF_FIELD_NUMBER: _ClassVar[int]
146
+ CURRENCY_FIELD_NUMBER: _ClassVar[int]
147
+ DURATION_IN_MONTH_FIELD_NUMBER: _ClassVar[int]
148
+ CREATED_AT_FIELD_NUMBER: _ClassVar[int]
149
+ REDEEM_BY_FIELD_NUMBER: _ClassVar[int]
150
+ TIMES_REDEEMED_FIELD_NUMBER: _ClassVar[int]
151
+ MAX_REDEMPTIONS_FIELD_NUMBER: _ClassVar[int]
152
+ AMOUNT_LEFT_FIELD_NUMBER: _ClassVar[int]
153
+ id: str
154
+ name: str
155
+ amount_off: int
156
+ currency: str
157
+ duration_in_month: int
158
+ created_at: _timestamp_pb2.Timestamp
159
+ redeem_by: _timestamp_pb2.Timestamp
160
+ times_redeemed: int
161
+ max_redemptions: int
162
+ amount_left: int
163
+ def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., amount_off: _Optional[int] = ..., currency: _Optional[str] = ..., duration_in_month: _Optional[int] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., redeem_by: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., times_redeemed: _Optional[int] = ..., max_redemptions: _Optional[int] = ..., amount_left: _Optional[int] = ...) -> None: ...
164
+
165
+ class PaymentServiceCreateOrUpdateCustomerRequest(_message.Message):
166
+ __slots__ = ("login", "name", "payment_method_id", "email", "card", "address", "vat", "phone_number")
167
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
168
+ NAME_FIELD_NUMBER: _ClassVar[int]
169
+ PAYMENT_METHOD_ID_FIELD_NUMBER: _ClassVar[int]
170
+ EMAIL_FIELD_NUMBER: _ClassVar[int]
171
+ CARD_FIELD_NUMBER: _ClassVar[int]
172
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
173
+ VAT_FIELD_NUMBER: _ClassVar[int]
174
+ PHONE_NUMBER_FIELD_NUMBER: _ClassVar[int]
175
+ login: str
176
+ name: str
177
+ payment_method_id: str
178
+ email: str
179
+ card: Card
180
+ address: Address
181
+ vat: str
182
+ phone_number: str
183
+ def __init__(self, login: _Optional[str] = ..., name: _Optional[str] = ..., payment_method_id: _Optional[str] = ..., email: _Optional[str] = ..., card: _Optional[_Union[Card, _Mapping]] = ..., address: _Optional[_Union[Address, _Mapping]] = ..., vat: _Optional[str] = ..., phone_number: _Optional[str] = ...) -> None: ...
184
+
185
+ class PaymentServiceCreateOrUpdateCustomerResponse(_message.Message):
186
+ __slots__ = ("customer",)
187
+ CUSTOMER_FIELD_NUMBER: _ClassVar[int]
188
+ customer: PaymentCustomer
189
+ def __init__(self, customer: _Optional[_Union[PaymentCustomer, _Mapping]] = ...) -> None: ...
190
+
191
+ class PaymentServiceGetCustomerRequest(_message.Message):
192
+ __slots__ = ("login", "customer_id")
193
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
194
+ CUSTOMER_ID_FIELD_NUMBER: _ClassVar[int]
195
+ login: str
196
+ customer_id: str
197
+ def __init__(self, login: _Optional[str] = ..., customer_id: _Optional[str] = ...) -> None: ...
198
+
199
+ class PaymentServiceGetCustomerResponse(_message.Message):
200
+ __slots__ = ("customer",)
201
+ CUSTOMER_FIELD_NUMBER: _ClassVar[int]
202
+ customer: PaymentCustomer
203
+ def __init__(self, customer: _Optional[_Union[PaymentCustomer, _Mapping]] = ...) -> None: ...
204
+
205
+ class PaymentServiceCheckIfCustomerExistsRequest(_message.Message):
206
+ __slots__ = ("login",)
207
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
208
+ login: str
209
+ def __init__(self, login: _Optional[str] = ...) -> None: ...
210
+
211
+ class PaymentServiceCheckIfCustomerExistsResponse(_message.Message):
212
+ __slots__ = ("customer", "exists")
213
+ CUSTOMER_FIELD_NUMBER: _ClassVar[int]
214
+ EXISTS_FIELD_NUMBER: _ClassVar[int]
215
+ customer: PaymentCustomer
216
+ exists: bool
217
+ def __init__(self, customer: _Optional[_Union[PaymentCustomer, _Mapping]] = ..., exists: bool = ...) -> None: ...
218
+
219
+ class PaymentServiceHasPaymentMethodRequest(_message.Message):
220
+ __slots__ = ("login",)
221
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
222
+ login: str
223
+ def __init__(self, login: _Optional[str] = ...) -> None: ...
224
+
225
+ class PaymentServiceHasPaymentMethodResponse(_message.Message):
226
+ __slots__ = ("exists", "coupon_left", "positive_balance")
227
+ EXISTS_FIELD_NUMBER: _ClassVar[int]
228
+ COUPON_LEFT_FIELD_NUMBER: _ClassVar[int]
229
+ POSITIVE_BALANCE_FIELD_NUMBER: _ClassVar[int]
230
+ exists: bool
231
+ coupon_left: bool
232
+ positive_balance: bool
233
+ def __init__(self, exists: bool = ..., coupon_left: bool = ..., positive_balance: bool = ...) -> None: ...
234
+
235
+ class PaymentServiceDeletePaymentMethodRequest(_message.Message):
236
+ __slots__ = ("login",)
237
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
238
+ login: str
239
+ def __init__(self, login: _Optional[str] = ...) -> None: ...
240
+
241
+ class PaymentServiceDeletePaymentMethodResponse(_message.Message):
242
+ __slots__ = ()
243
+ def __init__(self) -> None: ...
244
+
245
+ class PaymentServiceGetSubscriptionUsageRequest(_message.Message):
246
+ __slots__ = ("login",)
247
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
248
+ login: str
249
+ def __init__(self, login: _Optional[str] = ...) -> None: ...
250
+
251
+ class PaymentServiceGetSubscriptionUsageResponse(_message.Message):
252
+ __slots__ = ("subscription_usage_items",)
253
+ SUBSCRIPTION_USAGE_ITEMS_FIELD_NUMBER: _ClassVar[int]
254
+ subscription_usage_items: _containers.RepeatedCompositeFieldContainer[SubscriptionUsageItem]
255
+ def __init__(self, subscription_usage_items: _Optional[_Iterable[_Union[SubscriptionUsageItem, _Mapping]]] = ...) -> None: ...
256
+
257
+ class PaymentServiceGetInvoicesRequest(_message.Message):
258
+ __slots__ = ("login", "customer_id")
259
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
260
+ CUSTOMER_ID_FIELD_NUMBER: _ClassVar[int]
261
+ login: str
262
+ customer_id: str
263
+ def __init__(self, login: _Optional[str] = ..., customer_id: _Optional[str] = ...) -> None: ...
264
+
265
+ class PaymentServiceGetInvoicesResponse(_message.Message):
266
+ __slots__ = ("invoices",)
267
+ INVOICES_FIELD_NUMBER: _ClassVar[int]
268
+ invoices: _containers.RepeatedCompositeFieldContainer[Invoice]
269
+ def __init__(self, invoices: _Optional[_Iterable[_Union[Invoice, _Mapping]]] = ...) -> None: ...
270
+
271
+ class PaymentServiceGetDefaultPricesRequest(_message.Message):
272
+ __slots__ = ()
273
+ def __init__(self) -> None: ...
274
+
275
+ class PaymentServiceGetDefaultPricesResponse(_message.Message):
276
+ __slots__ = ("prices",)
277
+ PRICES_FIELD_NUMBER: _ClassVar[int]
278
+ prices: _containers.RepeatedCompositeFieldContainer[Price]
279
+ def __init__(self, prices: _Optional[_Iterable[_Union[Price, _Mapping]]] = ...) -> None: ...
280
+
281
+ class PaymentServiceHasChargeableResourcesRequest(_message.Message):
282
+ __slots__ = ("login",)
283
+ LOGIN_FIELD_NUMBER: _ClassVar[int]
284
+ login: str
285
+ def __init__(self, login: _Optional[str] = ...) -> None: ...
286
+
287
+ class PaymentServiceHasChargeableResourcesResponse(_message.Message):
288
+ __slots__ = ("has_resources",)
289
+ HAS_RESOURCES_FIELD_NUMBER: _ClassVar[int]
290
+ has_resources: bool
291
+ def __init__(self, has_resources: bool = ...) -> None: ...