stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.3

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 (190) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +29 -1
  4. data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
  5. data/lib/stigg/internal/type/base_model.rb +2 -2
  6. data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +31 -26
  7. data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
  8. data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
  9. data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
  10. data/lib/stigg/models/v1/customer_import_params.rb +75 -0
  11. data/lib/stigg/models/v1/customer_import_response.rb +35 -0
  12. data/lib/stigg/models/v1/customer_list_params.rb +14 -14
  13. data/lib/stigg/models/v1/customer_list_response.rb +160 -174
  14. data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +18 -16
  15. data/lib/stigg/models/v1/customer_response.rb +9 -2
  16. data/lib/stigg/models/v1/customer_update_params.rb +2 -0
  17. data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
  18. data/lib/stigg/models/v1/customers/{promotional_create_params.rb → promotional_entitlement_grant_params.rb} +46 -44
  19. data/lib/stigg/models/v1/customers/{promotional_create_response.rb → promotional_entitlement_grant_response.rb} +105 -32
  20. data/lib/stigg/models/v1/customers/{promotional_revoke_params.rb → promotional_entitlement_revoke_params.rb} +2 -2
  21. data/lib/stigg/models/v1/customers/{promotional_revoke_response.rb → promotional_entitlement_revoke_response.rb} +107 -33
  22. data/lib/stigg/models/v1/event_report_params.rb +91 -0
  23. data/lib/stigg/models/v1/event_report_response.rb +25 -0
  24. data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +67 -26
  25. data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
  26. data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
  27. data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
  28. data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
  29. data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
  30. data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
  31. data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
  32. data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
  33. data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
  34. data/lib/stigg/models/v1/subscription_provision_params.rb +1693 -0
  35. data/lib/stigg/models/v1/subscription_provision_response.rb +1038 -0
  36. data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
  37. data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
  38. data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +9 -5
  39. data/lib/stigg/models/v1/usage_history_params.rb +54 -0
  40. data/lib/stigg/models/v1/usage_history_response.rb +155 -0
  41. data/lib/stigg/models/v1/usage_report_params.rb +114 -0
  42. data/lib/stigg/models/v1/usage_report_response.rb +120 -0
  43. data/lib/stigg/models.rb +0 -4
  44. data/lib/stigg/resources/v1/coupons.rb +16 -14
  45. data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
  46. data/lib/stigg/resources/v1/customers/{promotional.rb → promotional_entitlements.rb} +17 -17
  47. data/lib/stigg/resources/v1/customers.rb +78 -56
  48. data/lib/stigg/resources/v1/events.rb +38 -0
  49. data/lib/stigg/resources/v1/subscriptions/future_update.rb +10 -8
  50. data/lib/stigg/resources/v1/subscriptions.rb +206 -79
  51. data/lib/stigg/resources/v1/usage.rb +79 -0
  52. data/lib/stigg/resources/v1.rb +6 -42
  53. data/lib/stigg/version.rb +1 -1
  54. data/lib/stigg.rb +25 -23
  55. data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
  56. data/rbi/stigg/models/v1/coupon.rbi +891 -0
  57. data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
  58. data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
  59. data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
  60. data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
  61. data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
  62. data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
  63. data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
  64. data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +36 -35
  65. data/rbi/stigg/models/v1/customer_response.rbi +8 -1
  66. data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
  67. data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
  68. data/rbi/stigg/models/v1/customers/{promotional_create_params.rbi → promotional_entitlement_grant_params.rbi} +78 -77
  69. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
  70. data/rbi/stigg/models/v1/customers/{promotional_revoke_params.rbi → promotional_entitlement_revoke_params.rbi} +2 -2
  71. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
  72. data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
  73. data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
  74. data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +130 -98
  75. data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
  76. data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
  77. data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
  78. data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
  79. data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
  80. data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
  81. data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
  82. data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
  83. data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
  84. data/rbi/stigg/models/v1/subscription_provision_params.rbi +5306 -0
  85. data/rbi/stigg/models/v1/subscription_provision_response.rbi +3175 -0
  86. data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
  87. data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
  88. data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +10 -16
  89. data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
  90. data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
  91. data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
  92. data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
  93. data/rbi/stigg/models.rbi +0 -4
  94. data/rbi/stigg/resources/v1/coupons.rbi +22 -14
  95. data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
  96. data/rbi/stigg/resources/v1/customers/{promotional.rbi → promotional_entitlements.rbi} +13 -9
  97. data/rbi/stigg/resources/v1/customers.rbi +84 -53
  98. data/rbi/stigg/resources/v1/events.rbi +28 -0
  99. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +14 -10
  100. data/rbi/stigg/resources/v1/subscriptions.rbi +242 -58
  101. data/rbi/stigg/resources/v1/usage.rbi +57 -0
  102. data/rbi/stigg/resources/v1.rbi +4 -26
  103. data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
  104. data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
  105. data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
  106. data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
  107. data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
  108. data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
  109. data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
  110. data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
  111. data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
  112. data/sig/stigg/models/v1/customers/{promotional_create_params.rbs → promotional_entitlement_grant_params.rbs} +43 -43
  113. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
  114. data/sig/stigg/models/v1/customers/{promotional_revoke_params.rbs → promotional_entitlement_revoke_params.rbs} +2 -2
  115. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
  116. data/sig/stigg/models/v1/event_report_params.rbs +82 -0
  117. data/sig/stigg/models/v1/event_report_response.rbs +15 -0
  118. data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +61 -35
  119. data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
  120. data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
  121. data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
  122. data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
  123. data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
  124. data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
  125. data/sig/stigg/models/v1/subscription_provision_params.rbs +2223 -0
  126. data/sig/stigg/models/v1/subscription_provision_response.rbs +1305 -0
  127. data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
  128. data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
  129. data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
  130. data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
  131. data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
  132. data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
  133. data/sig/stigg/models.rbs +0 -4
  134. data/sig/stigg/resources/v1/coupons.rbs +5 -5
  135. data/sig/stigg/resources/v1/customers/{promotional.rbs → promotional_entitlements.rbs} +5 -5
  136. data/sig/stigg/resources/v1/customers.rbs +20 -17
  137. data/sig/stigg/resources/v1/events.rbs +14 -0
  138. data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
  139. data/sig/stigg/resources/v1/subscriptions.rbs +68 -20
  140. data/sig/stigg/resources/v1/usage.rbs +24 -0
  141. data/sig/stigg/resources/v1.rbs +2 -8
  142. metadata +77 -71
  143. data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -317
  144. data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
  145. data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
  146. data/lib/stigg/models/v1/subscription_create_params.rb +0 -214
  147. data/lib/stigg/models/v1/subscription_create_response.rb +0 -338
  148. data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -274
  149. data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -274
  150. data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -274
  151. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -32
  152. data/lib/stigg/models/v1_create_event_params.rb +0 -87
  153. data/lib/stigg/models/v1_create_event_response.rb +0 -16
  154. data/lib/stigg/models/v1_create_usage_params.rb +0 -96
  155. data/lib/stigg/models/v1_create_usage_response.rb +0 -112
  156. data/lib/stigg/resources/v1/customers/usage.rb +0 -59
  157. data/rbi/stigg/models/v1/coupon_create_response.rbi +0 -986
  158. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -986
  159. data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
  160. data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
  161. data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
  162. data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
  163. data/rbi/stigg/models/v1/subscription_create_params.rbi +0 -394
  164. data/rbi/stigg/models/v1/subscription_create_response.rbi +0 -668
  165. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -535
  166. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -535
  167. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -535
  168. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -79
  169. data/rbi/stigg/models/v1_create_event_params.rbi +0 -160
  170. data/rbi/stigg/models/v1_create_event_response.rbi +0 -23
  171. data/rbi/stigg/models/v1_create_usage_params.rbi +0 -177
  172. data/rbi/stigg/models/v1_create_usage_response.rbi +0 -150
  173. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -45
  174. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
  175. data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
  176. data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
  177. data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
  178. data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
  179. data/sig/stigg/models/v1/subscription_create_params.rbs +0 -199
  180. data/sig/stigg/models/v1/subscription_create_response.rbs +0 -283
  181. data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -224
  182. data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -224
  183. data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -224
  184. data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
  185. data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
  186. data/sig/stigg/models/v1_create_event_params.rbs +0 -80
  187. data/sig/stigg/models/v1_create_event_response.rbs +0 -13
  188. data/sig/stigg/models/v1_create_usage_params.rbs +0 -90
  189. data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
  190. data/sig/stigg/resources/v1/customers/usage.rbs +0 -21
@@ -0,0 +1,74 @@
1
+ module Stigg
2
+ module Models
3
+ module V1
4
+ type customer_import_params =
5
+ { customers: ::Array[Stigg::V1::CustomerImportParams::Customer] }
6
+ & Stigg::Internal::Type::request_parameters
7
+
8
+ class CustomerImportParams < Stigg::Internal::Type::BaseModel
9
+ extend Stigg::Internal::Type::RequestParameters::Converter
10
+ include Stigg::Internal::Type::RequestParameters
11
+
12
+ attr_accessor customers: ::Array[Stigg::V1::CustomerImportParams::Customer]
13
+
14
+ def initialize: (
15
+ customers: ::Array[Stigg::V1::CustomerImportParams::Customer],
16
+ ?request_options: Stigg::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ customers: ::Array[Stigg::V1::CustomerImportParams::Customer],
21
+ request_options: Stigg::RequestOptions
22
+ }
23
+
24
+ type customer =
25
+ {
26
+ id: String,
27
+ email: String?,
28
+ name: String?,
29
+ metadata: ::Hash[Symbol, String],
30
+ payment_method_id: String,
31
+ updated_at: Time
32
+ }
33
+
34
+ class Customer < Stigg::Internal::Type::BaseModel
35
+ attr_accessor id: String
36
+
37
+ attr_accessor email: String?
38
+
39
+ attr_accessor name: String?
40
+
41
+ attr_reader metadata: ::Hash[Symbol, String]?
42
+
43
+ def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
44
+
45
+ attr_reader payment_method_id: String?
46
+
47
+ def payment_method_id=: (String) -> String
48
+
49
+ attr_reader updated_at: Time?
50
+
51
+ def updated_at=: (Time) -> Time
52
+
53
+ def initialize: (
54
+ id: String,
55
+ email: String?,
56
+ name: String?,
57
+ ?metadata: ::Hash[Symbol, String],
58
+ ?payment_method_id: String,
59
+ ?updated_at: Time
60
+ ) -> void
61
+
62
+ def to_hash: -> {
63
+ id: String,
64
+ email: String?,
65
+ name: String?,
66
+ metadata: ::Hash[Symbol, String],
67
+ payment_method_id: String,
68
+ updated_at: Time
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,30 @@
1
+ module Stigg
2
+ module Models
3
+ module V1
4
+ type customer_import_response =
5
+ { data: Stigg::Models::V1::CustomerImportResponse::Data }
6
+
7
+ class CustomerImportResponse < Stigg::Internal::Type::BaseModel
8
+ attr_accessor data: Stigg::Models::V1::CustomerImportResponse::Data
9
+
10
+ def initialize: (
11
+ data: Stigg::Models::V1::CustomerImportResponse::Data
12
+ ) -> void
13
+
14
+ def to_hash: -> {
15
+ data: Stigg::Models::V1::CustomerImportResponse::Data
16
+ }
17
+
18
+ type data = { new_customers: ::Array[String] }
19
+
20
+ class Data < Stigg::Internal::Type::BaseModel
21
+ attr_accessor new_customers: ::Array[String]
22
+
23
+ def initialize: (new_customers: ::Array[String]) -> void
24
+
25
+ def to_hash: -> { new_customers: ::Array[String] }
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -2,36 +2,36 @@ module Stigg
2
2
  module Models
3
3
  module V1
4
4
  type customer_list_params =
5
- { ending_before: String, limit: Integer, starting_after: String }
5
+ { after: String, before: String, limit: Integer }
6
6
  & Stigg::Internal::Type::request_parameters
7
7
 
8
8
  class CustomerListParams < Stigg::Internal::Type::BaseModel
9
9
  extend Stigg::Internal::Type::RequestParameters::Converter
10
10
  include Stigg::Internal::Type::RequestParameters
11
11
 
12
- attr_reader ending_before: String?
12
+ attr_reader after: String?
13
13
 
14
- def ending_before=: (String) -> String
14
+ def after=: (String) -> String
15
15
 
16
- attr_reader limit: Integer?
16
+ attr_reader before: String?
17
17
 
18
- def limit=: (Integer) -> Integer
18
+ def before=: (String) -> String
19
19
 
20
- attr_reader starting_after: String?
20
+ attr_reader limit: Integer?
21
21
 
22
- def starting_after=: (String) -> String
22
+ def limit=: (Integer) -> Integer
23
23
 
24
24
  def initialize: (
25
- ?ending_before: String,
25
+ ?after: String,
26
+ ?before: String,
26
27
  ?limit: Integer,
27
- ?starting_after: String,
28
28
  ?request_options: Stigg::request_opts
29
29
  ) -> void
30
30
 
31
31
  def to_hash: -> {
32
- ending_before: String,
32
+ after: String,
33
+ before: String,
33
34
  limit: Integer,
34
- starting_after: String,
35
35
  request_options: Stigg::RequestOptions
36
36
  }
37
37
  end
@@ -2,194 +2,174 @@ module Stigg
2
2
  module Models
3
3
  module V1
4
4
  type customer_list_response =
5
- { data: ::Array[Stigg::Models::V1::CustomerListResponse::Data] }
5
+ {
6
+ id: String,
7
+ archived_at: Time?,
8
+ created_at: Time,
9
+ updated_at: Time,
10
+ coupon_id: String?,
11
+ default_payment_method: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod?,
12
+ email: String?,
13
+ integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Integration],
14
+ metadata: ::Hash[Symbol, String],
15
+ name: String?
16
+ }
6
17
 
7
18
  class CustomerListResponse < Stigg::Internal::Type::BaseModel
8
- attr_accessor data: ::Array[Stigg::Models::V1::CustomerListResponse::Data]
19
+ attr_accessor id: String
9
20
 
10
- def initialize: (
11
- data: ::Array[Stigg::Models::V1::CustomerListResponse::Data]
12
- ) -> void
21
+ attr_accessor archived_at: Time?
13
22
 
14
- def to_hash: -> {
15
- data: ::Array[Stigg::Models::V1::CustomerListResponse::Data]
16
- }
23
+ attr_accessor created_at: Time
17
24
 
18
- type data =
19
- {
20
- id: String,
21
- archived_at: Time?,
22
- created_at: Time,
23
- cursor_id: String,
24
- updated_at: Time,
25
- coupon_id: String?,
26
- default_payment_method: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod?,
27
- email: String?,
28
- integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration],
29
- metadata: ::Hash[Symbol, String],
30
- name: String?
31
- }
25
+ attr_accessor updated_at: Time
32
26
 
33
- class Data < Stigg::Internal::Type::BaseModel
34
- attr_accessor id: String
27
+ attr_accessor coupon_id: String?
35
28
 
36
- attr_accessor archived_at: Time?
29
+ attr_accessor default_payment_method: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod?
37
30
 
38
- attr_accessor created_at: Time
31
+ attr_accessor email: String?
39
32
 
40
- attr_accessor cursor_id: String
33
+ attr_reader integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Integration]?
41
34
 
42
- attr_accessor updated_at: Time
35
+ def integrations=: (
36
+ ::Array[Stigg::Models::V1::CustomerListResponse::Integration]
37
+ ) -> ::Array[Stigg::Models::V1::CustomerListResponse::Integration]
43
38
 
44
- attr_accessor coupon_id: String?
39
+ attr_reader metadata: ::Hash[Symbol, String]?
45
40
 
46
- attr_accessor default_payment_method: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod?
41
+ def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
47
42
 
48
- attr_accessor email: String?
43
+ attr_accessor name: String?
44
+
45
+ def initialize: (
46
+ id: String,
47
+ archived_at: Time?,
48
+ created_at: Time,
49
+ updated_at: Time,
50
+ ?coupon_id: String?,
51
+ ?default_payment_method: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod?,
52
+ ?email: String?,
53
+ ?integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Integration],
54
+ ?metadata: ::Hash[Symbol, String],
55
+ ?name: String?
56
+ ) -> void
57
+
58
+ def to_hash: -> {
59
+ id: String,
60
+ archived_at: Time?,
61
+ created_at: Time,
62
+ updated_at: Time,
63
+ coupon_id: String?,
64
+ default_payment_method: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod?,
65
+ email: String?,
66
+ integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Integration],
67
+ metadata: ::Hash[Symbol, String],
68
+ name: String?
69
+ }
70
+
71
+ type default_payment_method =
72
+ {
73
+ billing_id: String?,
74
+ card_expiry_month: Float?,
75
+ card_expiry_year: Float?,
76
+ :card_last4_digits => String?,
77
+ type: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_
78
+ }
49
79
 
50
- attr_reader integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration]?
80
+ class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
81
+ attr_accessor billing_id: String?
51
82
 
52
- def integrations=: (
53
- ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration]
54
- ) -> ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration]
83
+ attr_accessor card_expiry_month: Float?
55
84
 
56
- attr_reader metadata: ::Hash[Symbol, String]?
85
+ attr_accessor card_expiry_year: Float?
57
86
 
58
- def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
87
+ attr_accessor card_last4_digits: String?
59
88
 
60
- attr_accessor name: String?
89
+ attr_accessor type: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_
61
90
 
62
91
  def initialize: (
63
- id: String,
64
- archived_at: Time?,
65
- created_at: Time,
66
- cursor_id: String,
67
- updated_at: Time,
68
- ?coupon_id: String?,
69
- ?default_payment_method: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod?,
70
- ?email: String?,
71
- ?integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration],
72
- ?metadata: ::Hash[Symbol, String],
73
- ?name: String?
92
+ billing_id: String?,
93
+ card_expiry_month: Float?,
94
+ card_expiry_year: Float?,
95
+ card_last4_digits: String?,
96
+ type: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_
74
97
  ) -> void
75
98
 
76
99
  def to_hash: -> {
77
- id: String,
78
- archived_at: Time?,
79
- created_at: Time,
80
- cursor_id: String,
81
- updated_at: Time,
82
- coupon_id: String?,
83
- default_payment_method: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod?,
84
- email: String?,
85
- integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration],
86
- metadata: ::Hash[Symbol, String],
87
- name: String?
100
+ billing_id: String?,
101
+ card_expiry_month: Float?,
102
+ card_expiry_year: Float?,
103
+ :card_last4_digits => String?,
104
+ type: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_
88
105
  }
89
106
 
90
- type default_payment_method =
91
- {
92
- billing_id: String?,
93
- card_expiry_month: Float?,
94
- card_expiry_year: Float?,
95
- :card_last4_digits => String?,
96
- type: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::type_
97
- }
98
-
99
- class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
100
- attr_accessor billing_id: String?
107
+ type type_ = :CARD | :BANK | :CASH_APP
101
108
 
102
- attr_accessor card_expiry_month: Float?
109
+ module Type
110
+ extend Stigg::Internal::Type::Enum
103
111
 
104
- attr_accessor card_expiry_year: Float?
112
+ CARD: :CARD
113
+ BANK: :BANK
114
+ CASH_APP: :CASH_APP
105
115
 
106
- attr_accessor card_last4_digits: String?
107
-
108
- attr_accessor type: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::type_
116
+ def self?.values: -> ::Array[Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_]
117
+ end
118
+ end
109
119
 
110
- def initialize: (
111
- billing_id: String?,
112
- card_expiry_month: Float?,
113
- card_expiry_year: Float?,
114
- card_last4_digits: String?,
115
- type: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::type_
116
- ) -> void
120
+ type integration =
121
+ {
122
+ id: String,
123
+ synced_entity_id: String?,
124
+ vendor_identifier: Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier
125
+ }
117
126
 
118
- def to_hash: -> {
119
- billing_id: String?,
120
- card_expiry_month: Float?,
121
- card_expiry_year: Float?,
122
- :card_last4_digits => String?,
123
- type: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::type_
124
- }
127
+ class Integration < Stigg::Internal::Type::BaseModel
128
+ attr_accessor id: String
125
129
 
126
- type type_ = :CARD | :BANK | :CASH_APP
130
+ attr_accessor synced_entity_id: String?
127
131
 
128
- module Type
129
- extend Stigg::Internal::Type::Enum
132
+ attr_accessor vendor_identifier: Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier
130
133
 
131
- CARD: :CARD
132
- BANK: :BANK
133
- CASH_APP: :CASH_APP
134
+ def initialize: (
135
+ id: String,
136
+ synced_entity_id: String?,
137
+ vendor_identifier: Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier
138
+ ) -> void
134
139
 
135
- def self?.values: -> ::Array[Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::type_]
136
- end
137
- end
140
+ def to_hash: -> {
141
+ id: String,
142
+ synced_entity_id: String?,
143
+ vendor_identifier: Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier
144
+ }
138
145
 
139
- type integration =
140
- {
141
- id: String,
142
- synced_entity_id: String?,
143
- vendor_identifier: Stigg::Models::V1::CustomerListResponse::Data::Integration::vendor_identifier
144
- }
145
-
146
- class Integration < Stigg::Internal::Type::BaseModel
147
- attr_accessor id: String
148
-
149
- attr_accessor synced_entity_id: String?
150
-
151
- attr_accessor vendor_identifier: Stigg::Models::V1::CustomerListResponse::Data::Integration::vendor_identifier
152
-
153
- def initialize: (
154
- id: String,
155
- synced_entity_id: String?,
156
- vendor_identifier: Stigg::Models::V1::CustomerListResponse::Data::Integration::vendor_identifier
157
- ) -> void
158
-
159
- def to_hash: -> {
160
- id: String,
161
- synced_entity_id: String?,
162
- vendor_identifier: Stigg::Models::V1::CustomerListResponse::Data::Integration::vendor_identifier
163
- }
164
-
165
- type vendor_identifier =
166
- :AUTH0
167
- | :ZUORA
168
- | :STRIPE
169
- | :HUBSPOT
170
- | :AWS_MARKETPLACE
171
- | :SNOWFLAKE
172
- | :SALESFORCE
173
- | :BIG_QUERY
174
- | :OPEN_FGA
175
- | :APP_STORE
176
-
177
- module VendorIdentifier
178
- extend Stigg::Internal::Type::Enum
179
-
180
- AUTH0: :AUTH0
181
- ZUORA: :ZUORA
182
- STRIPE: :STRIPE
183
- HUBSPOT: :HUBSPOT
184
- AWS_MARKETPLACE: :AWS_MARKETPLACE
185
- SNOWFLAKE: :SNOWFLAKE
186
- SALESFORCE: :SALESFORCE
187
- BIG_QUERY: :BIG_QUERY
188
- OPEN_FGA: :OPEN_FGA
189
- APP_STORE: :APP_STORE
190
-
191
- def self?.values: -> ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration::vendor_identifier]
192
- end
146
+ type vendor_identifier =
147
+ :AUTH0
148
+ | :ZUORA
149
+ | :STRIPE
150
+ | :HUBSPOT
151
+ | :AWS_MARKETPLACE
152
+ | :SNOWFLAKE
153
+ | :SALESFORCE
154
+ | :BIG_QUERY
155
+ | :OPEN_FGA
156
+ | :APP_STORE
157
+
158
+ module VendorIdentifier
159
+ extend Stigg::Internal::Type::Enum
160
+
161
+ AUTH0: :AUTH0
162
+ ZUORA: :ZUORA
163
+ STRIPE: :STRIPE
164
+ HUBSPOT: :HUBSPOT
165
+ AWS_MARKETPLACE: :AWS_MARKETPLACE
166
+ SNOWFLAKE: :SNOWFLAKE
167
+ SALESFORCE: :SALESFORCE
168
+ BIG_QUERY: :BIG_QUERY
169
+ OPEN_FGA: :OPEN_FGA
170
+ APP_STORE: :APP_STORE
171
+
172
+ def self?.values: -> ::Array[Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier]
193
173
  end
194
174
  end
195
175
  end
@@ -1,19 +1,19 @@
1
1
  module Stigg
2
2
  module Models
3
3
  module V1
4
- type customer_create_params =
4
+ type customer_provision_params =
5
5
  {
6
6
  id: String,
7
7
  coupon_id: String?,
8
- default_payment_method: Stigg::V1::CustomerCreateParams::DefaultPaymentMethod?,
8
+ default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
9
9
  email: String?,
10
- integrations: ::Array[Stigg::V1::CustomerCreateParams::Integration],
10
+ integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
11
11
  metadata: ::Hash[Symbol, String],
12
12
  name: String?
13
13
  }
14
14
  & Stigg::Internal::Type::request_parameters
15
15
 
16
- class CustomerCreateParams < Stigg::Internal::Type::BaseModel
16
+ class CustomerProvisionParams < Stigg::Internal::Type::BaseModel
17
17
  extend Stigg::Internal::Type::RequestParameters::Converter
18
18
  include Stigg::Internal::Type::RequestParameters
19
19
 
@@ -21,15 +21,15 @@ module Stigg
21
21
 
22
22
  attr_accessor coupon_id: String?
23
23
 
24
- attr_accessor default_payment_method: Stigg::V1::CustomerCreateParams::DefaultPaymentMethod?
24
+ attr_accessor default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?
25
25
 
26
26
  attr_accessor email: String?
27
27
 
28
- attr_reader integrations: ::Array[Stigg::V1::CustomerCreateParams::Integration]?
28
+ attr_reader integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration]?
29
29
 
30
30
  def integrations=: (
31
- ::Array[Stigg::V1::CustomerCreateParams::Integration]
32
- ) -> ::Array[Stigg::V1::CustomerCreateParams::Integration]
31
+ ::Array[Stigg::V1::CustomerProvisionParams::Integration]
32
+ ) -> ::Array[Stigg::V1::CustomerProvisionParams::Integration]
33
33
 
34
34
  attr_reader metadata: ::Hash[Symbol, String]?
35
35
 
@@ -40,9 +40,9 @@ module Stigg
40
40
  def initialize: (
41
41
  id: String,
42
42
  ?coupon_id: String?,
43
- ?default_payment_method: Stigg::V1::CustomerCreateParams::DefaultPaymentMethod?,
43
+ ?default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
44
44
  ?email: String?,
45
- ?integrations: ::Array[Stigg::V1::CustomerCreateParams::Integration],
45
+ ?integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
46
46
  ?metadata: ::Hash[Symbol, String],
47
47
  ?name: String?,
48
48
  ?request_options: Stigg::request_opts
@@ -51,9 +51,9 @@ module Stigg
51
51
  def to_hash: -> {
52
52
  id: String,
53
53
  coupon_id: String?,
54
- default_payment_method: Stigg::V1::CustomerCreateParams::DefaultPaymentMethod?,
54
+ default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
55
55
  email: String?,
56
- integrations: ::Array[Stigg::V1::CustomerCreateParams::Integration],
56
+ integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
57
57
  metadata: ::Hash[Symbol, String],
58
58
  name: String?,
59
59
  request_options: Stigg::RequestOptions
@@ -65,7 +65,7 @@ module Stigg
65
65
  card_expiry_month: Float?,
66
66
  card_expiry_year: Float?,
67
67
  :card_last4_digits => String?,
68
- type: Stigg::Models::V1::CustomerCreateParams::DefaultPaymentMethod::type_
68
+ type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
69
69
  }
70
70
 
71
71
  class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
@@ -77,14 +77,14 @@ module Stigg
77
77
 
78
78
  attr_accessor card_last4_digits: String?
79
79
 
80
- attr_accessor type: Stigg::Models::V1::CustomerCreateParams::DefaultPaymentMethod::type_
80
+ attr_accessor type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
81
81
 
82
82
  def initialize: (
83
83
  billing_id: String?,
84
84
  card_expiry_month: Float?,
85
85
  card_expiry_year: Float?,
86
86
  card_last4_digits: String?,
87
- type: Stigg::Models::V1::CustomerCreateParams::DefaultPaymentMethod::type_
87
+ type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
88
88
  ) -> void
89
89
 
90
90
  def to_hash: -> {
@@ -92,7 +92,7 @@ module Stigg
92
92
  card_expiry_month: Float?,
93
93
  card_expiry_year: Float?,
94
94
  :card_last4_digits => String?,
95
- type: Stigg::Models::V1::CustomerCreateParams::DefaultPaymentMethod::type_
95
+ type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
96
96
  }
97
97
 
98
98
  type type_ = :CARD | :BANK | :CASH_APP
@@ -104,7 +104,7 @@ module Stigg
104
104
  BANK: :BANK
105
105
  CASH_APP: :CASH_APP
106
106
 
107
- def self?.values: -> ::Array[Stigg::Models::V1::CustomerCreateParams::DefaultPaymentMethod::type_]
107
+ def self?.values: -> ::Array[Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_]
108
108
  end
109
109
  end
110
110
 
@@ -112,7 +112,7 @@ module Stigg
112
112
  {
113
113
  id: String,
114
114
  synced_entity_id: String?,
115
- vendor_identifier: Stigg::Models::V1::CustomerCreateParams::Integration::vendor_identifier
115
+ vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
116
116
  }
117
117
 
118
118
  class Integration < Stigg::Internal::Type::BaseModel
@@ -120,18 +120,18 @@ module Stigg
120
120
 
121
121
  attr_accessor synced_entity_id: String?
122
122
 
123
- attr_accessor vendor_identifier: Stigg::Models::V1::CustomerCreateParams::Integration::vendor_identifier
123
+ attr_accessor vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
124
124
 
125
125
  def initialize: (
126
126
  id: String,
127
127
  synced_entity_id: String?,
128
- vendor_identifier: Stigg::Models::V1::CustomerCreateParams::Integration::vendor_identifier
128
+ vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
129
129
  ) -> void
130
130
 
131
131
  def to_hash: -> {
132
132
  id: String,
133
133
  synced_entity_id: String?,
134
- vendor_identifier: Stigg::Models::V1::CustomerCreateParams::Integration::vendor_identifier
134
+ vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
135
135
  }
136
136
 
137
137
  type vendor_identifier =
@@ -160,7 +160,7 @@ module Stigg
160
160
  OPEN_FGA: :OPEN_FGA
161
161
  APP_STORE: :APP_STORE
162
162
 
163
- def self?.values: -> ::Array[Stigg::Models::V1::CustomerCreateParams::Integration::vendor_identifier]
163
+ def self?.values: -> ::Array[Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier]
164
164
  end
165
165
  end
166
166
  end