stigg 0.1.0.pre.alpha.2 → 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 (132) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/internal/type/base_model.rb +2 -2
  5. data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +24 -24
  6. data/lib/stigg/models/v1/customer_import_params.rb +75 -0
  7. data/lib/stigg/models/v1/customer_import_response.rb +35 -0
  8. data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +16 -16
  9. data/lib/stigg/models/v1/customer_response.rb +1 -1
  10. data/lib/stigg/models/v1/customers/promotional_entitlement_grant_params.rb +296 -0
  11. data/lib/stigg/models/v1/customers/promotional_entitlement_grant_response.rb +341 -0
  12. data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +24 -0
  13. data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb +342 -0
  14. data/lib/stigg/models/v1/event_report_params.rb +91 -0
  15. data/lib/stigg/models/v1/event_report_response.rb +25 -0
  16. data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +30 -29
  17. data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
  18. data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
  19. data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
  20. data/lib/stigg/models/v1/{subscription_create_params.rb → subscription_provision_params.rb} +118 -118
  21. data/lib/stigg/models/v1/{subscription_create_response.rb → subscription_provision_response.rb} +76 -75
  22. data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
  23. data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +7 -5
  24. data/lib/stigg/models/v1/usage_history_params.rb +54 -0
  25. data/lib/stigg/models/v1/usage_history_response.rb +155 -0
  26. data/lib/stigg/models/v1/usage_report_params.rb +114 -0
  27. data/lib/stigg/models/v1/usage_report_response.rb +120 -0
  28. data/lib/stigg/models.rb +0 -4
  29. data/lib/stigg/resources/v1/coupons.rb +4 -4
  30. data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +69 -0
  31. data/lib/stigg/resources/v1/customers.rb +59 -37
  32. data/lib/stigg/resources/v1/events.rb +38 -0
  33. data/lib/stigg/resources/v1/subscriptions/future_update.rb +4 -4
  34. data/lib/stigg/resources/v1/subscriptions.rb +166 -64
  35. data/lib/stigg/resources/v1/usage.rb +79 -0
  36. data/lib/stigg/resources/v1.rb +6 -42
  37. data/lib/stigg/version.rb +1 -1
  38. data/lib/stigg.rb +25 -16
  39. data/rbi/stigg/models/v1/{coupon_create_response.rbi → coupon.rbi} +156 -252
  40. data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
  41. data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
  42. data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +35 -35
  43. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_params.rbi +640 -0
  44. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
  45. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +42 -0
  46. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
  47. data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
  48. data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
  49. data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +66 -117
  50. data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
  51. data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
  52. data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
  53. data/rbi/stigg/models/v1/{subscription_create_params.rbi → subscription_provision_params.rbi} +794 -773
  54. data/rbi/stigg/models/v1/{subscription_create_response.rbi → subscription_provision_response.rbi} +481 -481
  55. data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
  56. data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +9 -16
  57. data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
  58. data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
  59. data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
  60. data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
  61. data/rbi/stigg/models.rbi +0 -4
  62. data/rbi/stigg/resources/v1/coupons.rbi +2 -2
  63. data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +57 -0
  64. data/rbi/stigg/resources/v1/customers.rbi +53 -36
  65. data/rbi/stigg/resources/v1/events.rbi +28 -0
  66. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +2 -6
  67. data/rbi/stigg/resources/v1/subscriptions.rbi +179 -74
  68. data/rbi/stigg/resources/v1/usage.rbi +57 -0
  69. data/rbi/stigg/resources/v1.rbi +4 -26
  70. data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
  71. data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
  72. data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
  73. data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
  74. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_params.rbs +234 -0
  75. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
  76. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +27 -0
  77. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
  78. data/sig/stigg/models/v1/event_report_params.rbs +82 -0
  79. data/sig/stigg/models/v1/event_report_response.rbs +15 -0
  80. data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +36 -41
  81. data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
  82. data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
  83. data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
  84. data/sig/stigg/models/v1/{subscription_create_params.rbs → subscription_provision_params.rbs} +200 -200
  85. data/sig/stigg/models/v1/{subscription_create_response.rbs → subscription_provision_response.rbs} +106 -106
  86. data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
  87. data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
  88. data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
  89. data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
  90. data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
  91. data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
  92. data/sig/stigg/models.rbs +0 -4
  93. data/sig/stigg/resources/v1/coupons.rbs +2 -2
  94. data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +23 -0
  95. data/sig/stigg/resources/v1/customers.rbs +17 -12
  96. data/sig/stigg/resources/v1/events.rbs +14 -0
  97. data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
  98. data/sig/stigg/resources/v1/subscriptions.rbs +65 -32
  99. data/sig/stigg/resources/v1/usage.rbs +24 -0
  100. data/sig/stigg/resources/v1.rbs +2 -8
  101. metadata +77 -50
  102. data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -322
  103. data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -314
  104. data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -314
  105. data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -314
  106. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -34
  107. data/lib/stigg/models/v1_create_event_params.rb +0 -89
  108. data/lib/stigg/models/v1_create_event_response.rb +0 -23
  109. data/lib/stigg/models/v1_create_usage_params.rb +0 -112
  110. data/lib/stigg/models/v1_create_usage_response.rb +0 -118
  111. data/lib/stigg/resources/v1/customers/usage.rb +0 -18
  112. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -987
  113. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -618
  114. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -618
  115. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -618
  116. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -80
  117. data/rbi/stigg/models/v1_create_event_params.rbi +0 -161
  118. data/rbi/stigg/models/v1_create_event_response.rbi +0 -30
  119. data/rbi/stigg/models/v1_create_usage_params.rbi +0 -217
  120. data/rbi/stigg/models/v1_create_usage_response.rbi +0 -157
  121. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -16
  122. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
  123. data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -255
  124. data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -255
  125. data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -255
  126. data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
  127. data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
  128. data/sig/stigg/models/v1_create_event_params.rbs +0 -80
  129. data/sig/stigg/models/v1_create_event_response.rbs +0 -13
  130. data/sig/stigg/models/v1_create_usage_params.rbs +0 -100
  131. data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
  132. data/sig/stigg/resources/v1/customers/usage.rbs +0 -11
@@ -1,255 +0,0 @@
1
- module Stigg
2
- module Models
3
- module V1
4
- type subscription_migrate_response =
5
- { data: Stigg::Models::V1::SubscriptionMigrateResponse::Data }
6
-
7
- class SubscriptionMigrateResponse < Stigg::Internal::Type::BaseModel
8
- attr_accessor data: Stigg::Models::V1::SubscriptionMigrateResponse::Data
9
-
10
- def initialize: (
11
- data: Stigg::Models::V1::SubscriptionMigrateResponse::Data
12
- ) -> void
13
-
14
- def to_hash: -> {
15
- data: Stigg::Models::V1::SubscriptionMigrateResponse::Data
16
- }
17
-
18
- type data =
19
- {
20
- id: String,
21
- billing_id: String?,
22
- created_at: Time,
23
- customer_id: String,
24
- payment_collection: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection,
25
- plan_id: String,
26
- pricing_type: Stigg::Models::V1::SubscriptionMigrateResponse::Data::pricing_type,
27
- start_date: Time,
28
- status: Stigg::Models::V1::SubscriptionMigrateResponse::Data::status,
29
- cancellation_date: Time?,
30
- cancel_reason: Stigg::Models::V1::SubscriptionMigrateResponse::Data::cancel_reason?,
31
- current_billing_period_end: Time?,
32
- current_billing_period_start: Time?,
33
- effective_end_date: Time?,
34
- end_date: Time?,
35
- metadata: ::Hash[Symbol, String],
36
- paying_customer_id: String?,
37
- payment_collection_method: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method?,
38
- prices: ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price],
39
- resource_id: String?,
40
- trial_end_date: Time?
41
- }
42
-
43
- class Data < Stigg::Internal::Type::BaseModel
44
- attr_accessor id: String
45
-
46
- attr_accessor billing_id: String?
47
-
48
- attr_accessor created_at: Time
49
-
50
- attr_accessor customer_id: String
51
-
52
- attr_accessor payment_collection: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection
53
-
54
- attr_accessor plan_id: String
55
-
56
- attr_accessor pricing_type: Stigg::Models::V1::SubscriptionMigrateResponse::Data::pricing_type
57
-
58
- attr_accessor start_date: Time
59
-
60
- attr_accessor status: Stigg::Models::V1::SubscriptionMigrateResponse::Data::status
61
-
62
- attr_accessor cancellation_date: Time?
63
-
64
- attr_accessor cancel_reason: Stigg::Models::V1::SubscriptionMigrateResponse::Data::cancel_reason?
65
-
66
- attr_accessor current_billing_period_end: Time?
67
-
68
- attr_accessor current_billing_period_start: Time?
69
-
70
- attr_accessor effective_end_date: Time?
71
-
72
- attr_accessor end_date: Time?
73
-
74
- attr_reader metadata: ::Hash[Symbol, String]?
75
-
76
- def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
77
-
78
- attr_accessor paying_customer_id: String?
79
-
80
- attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method?
81
-
82
- attr_reader prices: ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price]?
83
-
84
- def prices=: (
85
- ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price]
86
- ) -> ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price]
87
-
88
- attr_accessor resource_id: String?
89
-
90
- attr_accessor trial_end_date: Time?
91
-
92
- def initialize: (
93
- id: String,
94
- billing_id: String?,
95
- created_at: Time,
96
- customer_id: String,
97
- payment_collection: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection,
98
- plan_id: String,
99
- pricing_type: Stigg::Models::V1::SubscriptionMigrateResponse::Data::pricing_type,
100
- start_date: Time,
101
- status: Stigg::Models::V1::SubscriptionMigrateResponse::Data::status,
102
- ?cancellation_date: Time?,
103
- ?cancel_reason: Stigg::Models::V1::SubscriptionMigrateResponse::Data::cancel_reason?,
104
- ?current_billing_period_end: Time?,
105
- ?current_billing_period_start: Time?,
106
- ?effective_end_date: Time?,
107
- ?end_date: Time?,
108
- ?metadata: ::Hash[Symbol, String],
109
- ?paying_customer_id: String?,
110
- ?payment_collection_method: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method?,
111
- ?prices: ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price],
112
- ?resource_id: String?,
113
- ?trial_end_date: Time?
114
- ) -> void
115
-
116
- def to_hash: -> {
117
- id: String,
118
- billing_id: String?,
119
- created_at: Time,
120
- customer_id: String,
121
- payment_collection: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection,
122
- plan_id: String,
123
- pricing_type: Stigg::Models::V1::SubscriptionMigrateResponse::Data::pricing_type,
124
- start_date: Time,
125
- status: Stigg::Models::V1::SubscriptionMigrateResponse::Data::status,
126
- cancellation_date: Time?,
127
- cancel_reason: Stigg::Models::V1::SubscriptionMigrateResponse::Data::cancel_reason?,
128
- current_billing_period_end: Time?,
129
- current_billing_period_start: Time?,
130
- effective_end_date: Time?,
131
- end_date: Time?,
132
- metadata: ::Hash[Symbol, String],
133
- paying_customer_id: String?,
134
- payment_collection_method: Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method?,
135
- prices: ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::Price],
136
- resource_id: String?,
137
- trial_end_date: Time?
138
- }
139
-
140
- type payment_collection =
141
- :NOT_REQUIRED | :PROCESSING | :FAILED | :ACTION_REQUIRED
142
-
143
- module PaymentCollection
144
- extend Stigg::Internal::Type::Enum
145
-
146
- NOT_REQUIRED: :NOT_REQUIRED
147
- PROCESSING: :PROCESSING
148
- FAILED: :FAILED
149
- ACTION_REQUIRED: :ACTION_REQUIRED
150
-
151
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection]
152
- end
153
-
154
- type pricing_type = :FREE | :PAID | :CUSTOM
155
-
156
- module PricingType
157
- extend Stigg::Internal::Type::Enum
158
-
159
- FREE: :FREE
160
- PAID: :PAID
161
- CUSTOM: :CUSTOM
162
-
163
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::pricing_type]
164
- end
165
-
166
- type status =
167
- :PAYMENT_PENDING
168
- | :ACTIVE
169
- | :EXPIRED
170
- | :IN_TRIAL
171
- | :CANCELED
172
- | :NOT_STARTED
173
-
174
- module Status
175
- extend Stigg::Internal::Type::Enum
176
-
177
- PAYMENT_PENDING: :PAYMENT_PENDING
178
- ACTIVE: :ACTIVE
179
- EXPIRED: :EXPIRED
180
- IN_TRIAL: :IN_TRIAL
181
- CANCELED: :CANCELED
182
- NOT_STARTED: :NOT_STARTED
183
-
184
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::status]
185
- end
186
-
187
- type cancel_reason =
188
- :UPGRADE_OR_DOWNGRADE
189
- | :CANCELLED_BY_BILLING
190
- | :EXPIRED
191
- | :DETACH_BILLING
192
- | :TRIAL_ENDED
193
- | :Immediate
194
- | :TRIAL_CONVERTED
195
- | :PENDING_PAYMENT_EXPIRED
196
- | :ScheduledCancellation
197
- | :CustomerArchived
198
- | :AutoCancellationRule
199
-
200
- module CancelReason
201
- extend Stigg::Internal::Type::Enum
202
-
203
- UPGRADE_OR_DOWNGRADE: :UPGRADE_OR_DOWNGRADE
204
- CANCELLED_BY_BILLING: :CANCELLED_BY_BILLING
205
- EXPIRED: :EXPIRED
206
- DETACH_BILLING: :DETACH_BILLING
207
- TRIAL_ENDED: :TRIAL_ENDED
208
- IMMEDIATE: :Immediate
209
- TRIAL_CONVERTED: :TRIAL_CONVERTED
210
- PENDING_PAYMENT_EXPIRED: :PENDING_PAYMENT_EXPIRED
211
- SCHEDULED_CANCELLATION: :ScheduledCancellation
212
- CUSTOMER_ARCHIVED: :CustomerArchived
213
- AUTO_CANCELLATION_RULE: :AutoCancellationRule
214
-
215
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::cancel_reason]
216
- end
217
-
218
- type payment_collection_method = :CHARGE | :INVOICE | :NONE
219
-
220
- module PaymentCollectionMethod
221
- extend Stigg::Internal::Type::Enum
222
-
223
- CHARGE: :CHARGE
224
- INVOICE: :INVOICE
225
- NONE: :NONE
226
-
227
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionMigrateResponse::Data::payment_collection_method]
228
- end
229
-
230
- type price = { id: String, created_at: String, updated_at: String }
231
-
232
- class Price < Stigg::Internal::Type::BaseModel
233
- attr_accessor id: String
234
-
235
- attr_accessor created_at: String
236
-
237
- attr_accessor updated_at: String
238
-
239
- def initialize: (
240
- id: String,
241
- created_at: String,
242
- updated_at: String
243
- ) -> void
244
-
245
- def to_hash: -> {
246
- id: String,
247
- created_at: String,
248
- updated_at: String
249
- }
250
- end
251
- end
252
- end
253
- end
254
- end
255
- end
@@ -1,255 +0,0 @@
1
- module Stigg
2
- module Models
3
- module V1
4
- type subscription_transfer_response =
5
- { data: Stigg::Models::V1::SubscriptionTransferResponse::Data }
6
-
7
- class SubscriptionTransferResponse < Stigg::Internal::Type::BaseModel
8
- attr_accessor data: Stigg::Models::V1::SubscriptionTransferResponse::Data
9
-
10
- def initialize: (
11
- data: Stigg::Models::V1::SubscriptionTransferResponse::Data
12
- ) -> void
13
-
14
- def to_hash: -> {
15
- data: Stigg::Models::V1::SubscriptionTransferResponse::Data
16
- }
17
-
18
- type data =
19
- {
20
- id: String,
21
- billing_id: String?,
22
- created_at: Time,
23
- customer_id: String,
24
- payment_collection: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection,
25
- plan_id: String,
26
- pricing_type: Stigg::Models::V1::SubscriptionTransferResponse::Data::pricing_type,
27
- start_date: Time,
28
- status: Stigg::Models::V1::SubscriptionTransferResponse::Data::status,
29
- cancellation_date: Time?,
30
- cancel_reason: Stigg::Models::V1::SubscriptionTransferResponse::Data::cancel_reason?,
31
- current_billing_period_end: Time?,
32
- current_billing_period_start: Time?,
33
- effective_end_date: Time?,
34
- end_date: Time?,
35
- metadata: ::Hash[Symbol, String],
36
- paying_customer_id: String?,
37
- payment_collection_method: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method?,
38
- prices: ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price],
39
- resource_id: String?,
40
- trial_end_date: Time?
41
- }
42
-
43
- class Data < Stigg::Internal::Type::BaseModel
44
- attr_accessor id: String
45
-
46
- attr_accessor billing_id: String?
47
-
48
- attr_accessor created_at: Time
49
-
50
- attr_accessor customer_id: String
51
-
52
- attr_accessor payment_collection: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection
53
-
54
- attr_accessor plan_id: String
55
-
56
- attr_accessor pricing_type: Stigg::Models::V1::SubscriptionTransferResponse::Data::pricing_type
57
-
58
- attr_accessor start_date: Time
59
-
60
- attr_accessor status: Stigg::Models::V1::SubscriptionTransferResponse::Data::status
61
-
62
- attr_accessor cancellation_date: Time?
63
-
64
- attr_accessor cancel_reason: Stigg::Models::V1::SubscriptionTransferResponse::Data::cancel_reason?
65
-
66
- attr_accessor current_billing_period_end: Time?
67
-
68
- attr_accessor current_billing_period_start: Time?
69
-
70
- attr_accessor effective_end_date: Time?
71
-
72
- attr_accessor end_date: Time?
73
-
74
- attr_reader metadata: ::Hash[Symbol, String]?
75
-
76
- def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
77
-
78
- attr_accessor paying_customer_id: String?
79
-
80
- attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method?
81
-
82
- attr_reader prices: ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price]?
83
-
84
- def prices=: (
85
- ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price]
86
- ) -> ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price]
87
-
88
- attr_accessor resource_id: String?
89
-
90
- attr_accessor trial_end_date: Time?
91
-
92
- def initialize: (
93
- id: String,
94
- billing_id: String?,
95
- created_at: Time,
96
- customer_id: String,
97
- payment_collection: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection,
98
- plan_id: String,
99
- pricing_type: Stigg::Models::V1::SubscriptionTransferResponse::Data::pricing_type,
100
- start_date: Time,
101
- status: Stigg::Models::V1::SubscriptionTransferResponse::Data::status,
102
- ?cancellation_date: Time?,
103
- ?cancel_reason: Stigg::Models::V1::SubscriptionTransferResponse::Data::cancel_reason?,
104
- ?current_billing_period_end: Time?,
105
- ?current_billing_period_start: Time?,
106
- ?effective_end_date: Time?,
107
- ?end_date: Time?,
108
- ?metadata: ::Hash[Symbol, String],
109
- ?paying_customer_id: String?,
110
- ?payment_collection_method: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method?,
111
- ?prices: ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price],
112
- ?resource_id: String?,
113
- ?trial_end_date: Time?
114
- ) -> void
115
-
116
- def to_hash: -> {
117
- id: String,
118
- billing_id: String?,
119
- created_at: Time,
120
- customer_id: String,
121
- payment_collection: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection,
122
- plan_id: String,
123
- pricing_type: Stigg::Models::V1::SubscriptionTransferResponse::Data::pricing_type,
124
- start_date: Time,
125
- status: Stigg::Models::V1::SubscriptionTransferResponse::Data::status,
126
- cancellation_date: Time?,
127
- cancel_reason: Stigg::Models::V1::SubscriptionTransferResponse::Data::cancel_reason?,
128
- current_billing_period_end: Time?,
129
- current_billing_period_start: Time?,
130
- effective_end_date: Time?,
131
- end_date: Time?,
132
- metadata: ::Hash[Symbol, String],
133
- paying_customer_id: String?,
134
- payment_collection_method: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method?,
135
- prices: ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price],
136
- resource_id: String?,
137
- trial_end_date: Time?
138
- }
139
-
140
- type payment_collection =
141
- :NOT_REQUIRED | :PROCESSING | :FAILED | :ACTION_REQUIRED
142
-
143
- module PaymentCollection
144
- extend Stigg::Internal::Type::Enum
145
-
146
- NOT_REQUIRED: :NOT_REQUIRED
147
- PROCESSING: :PROCESSING
148
- FAILED: :FAILED
149
- ACTION_REQUIRED: :ACTION_REQUIRED
150
-
151
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection]
152
- end
153
-
154
- type pricing_type = :FREE | :PAID | :CUSTOM
155
-
156
- module PricingType
157
- extend Stigg::Internal::Type::Enum
158
-
159
- FREE: :FREE
160
- PAID: :PAID
161
- CUSTOM: :CUSTOM
162
-
163
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::pricing_type]
164
- end
165
-
166
- type status =
167
- :PAYMENT_PENDING
168
- | :ACTIVE
169
- | :EXPIRED
170
- | :IN_TRIAL
171
- | :CANCELED
172
- | :NOT_STARTED
173
-
174
- module Status
175
- extend Stigg::Internal::Type::Enum
176
-
177
- PAYMENT_PENDING: :PAYMENT_PENDING
178
- ACTIVE: :ACTIVE
179
- EXPIRED: :EXPIRED
180
- IN_TRIAL: :IN_TRIAL
181
- CANCELED: :CANCELED
182
- NOT_STARTED: :NOT_STARTED
183
-
184
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::status]
185
- end
186
-
187
- type cancel_reason =
188
- :UPGRADE_OR_DOWNGRADE
189
- | :CANCELLED_BY_BILLING
190
- | :EXPIRED
191
- | :DETACH_BILLING
192
- | :TRIAL_ENDED
193
- | :Immediate
194
- | :TRIAL_CONVERTED
195
- | :PENDING_PAYMENT_EXPIRED
196
- | :ScheduledCancellation
197
- | :CustomerArchived
198
- | :AutoCancellationRule
199
-
200
- module CancelReason
201
- extend Stigg::Internal::Type::Enum
202
-
203
- UPGRADE_OR_DOWNGRADE: :UPGRADE_OR_DOWNGRADE
204
- CANCELLED_BY_BILLING: :CANCELLED_BY_BILLING
205
- EXPIRED: :EXPIRED
206
- DETACH_BILLING: :DETACH_BILLING
207
- TRIAL_ENDED: :TRIAL_ENDED
208
- IMMEDIATE: :Immediate
209
- TRIAL_CONVERTED: :TRIAL_CONVERTED
210
- PENDING_PAYMENT_EXPIRED: :PENDING_PAYMENT_EXPIRED
211
- SCHEDULED_CANCELLATION: :ScheduledCancellation
212
- CUSTOMER_ARCHIVED: :CustomerArchived
213
- AUTO_CANCELLATION_RULE: :AutoCancellationRule
214
-
215
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::cancel_reason]
216
- end
217
-
218
- type payment_collection_method = :CHARGE | :INVOICE | :NONE
219
-
220
- module PaymentCollectionMethod
221
- extend Stigg::Internal::Type::Enum
222
-
223
- CHARGE: :CHARGE
224
- INVOICE: :INVOICE
225
- NONE: :NONE
226
-
227
- def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method]
228
- end
229
-
230
- type price = { id: String, created_at: String, updated_at: String }
231
-
232
- class Price < Stigg::Internal::Type::BaseModel
233
- attr_accessor id: String
234
-
235
- attr_accessor created_at: String
236
-
237
- attr_accessor updated_at: String
238
-
239
- def initialize: (
240
- id: String,
241
- created_at: String,
242
- updated_at: String
243
- ) -> void
244
-
245
- def to_hash: -> {
246
- id: String,
247
- created_at: String,
248
- updated_at: String
249
- }
250
- end
251
- end
252
- end
253
- end
254
- end
255
- end
@@ -1,34 +0,0 @@
1
- module Stigg
2
- module Models
3
- module V1
4
- module Subscriptions
5
- type future_update_cancel_pending_payment_response =
6
- {
7
- data: Stigg::Models::V1::Subscriptions::FutureUpdateCancelPendingPaymentResponse::Data
8
- }
9
-
10
- class FutureUpdateCancelPendingPaymentResponse < Stigg::Internal::Type::BaseModel
11
- attr_accessor data: Stigg::Models::V1::Subscriptions::FutureUpdateCancelPendingPaymentResponse::Data
12
-
13
- def initialize: (
14
- data: Stigg::Models::V1::Subscriptions::FutureUpdateCancelPendingPaymentResponse::Data
15
- ) -> void
16
-
17
- def to_hash: -> {
18
- data: Stigg::Models::V1::Subscriptions::FutureUpdateCancelPendingPaymentResponse::Data
19
- }
20
-
21
- type data = { id: String }
22
-
23
- class Data < Stigg::Internal::Type::BaseModel
24
- attr_accessor id: String
25
-
26
- def initialize: (id: String) -> void
27
-
28
- def to_hash: -> { id: String }
29
- end
30
- end
31
- end
32
- end
33
- end
34
- end
@@ -1,34 +0,0 @@
1
- module Stigg
2
- module Models
3
- module V1
4
- module Subscriptions
5
- type future_update_cancel_schedule_response =
6
- {
7
- data: Stigg::Models::V1::Subscriptions::FutureUpdateCancelScheduleResponse::Data
8
- }
9
-
10
- class FutureUpdateCancelScheduleResponse < Stigg::Internal::Type::BaseModel
11
- attr_accessor data: Stigg::Models::V1::Subscriptions::FutureUpdateCancelScheduleResponse::Data
12
-
13
- def initialize: (
14
- data: Stigg::Models::V1::Subscriptions::FutureUpdateCancelScheduleResponse::Data
15
- ) -> void
16
-
17
- def to_hash: -> {
18
- data: Stigg::Models::V1::Subscriptions::FutureUpdateCancelScheduleResponse::Data
19
- }
20
-
21
- type data = { id: String }
22
-
23
- class Data < Stigg::Internal::Type::BaseModel
24
- attr_accessor id: String
25
-
26
- def initialize: (id: String) -> void
27
-
28
- def to_hash: -> { id: String }
29
- end
30
- end
31
- end
32
- end
33
- end
34
- end
@@ -1,80 +0,0 @@
1
- module Stigg
2
- module Models
3
- type v1_create_event_params =
4
- { events: ::Array[Stigg::V1CreateEventParams::Event] }
5
- & Stigg::Internal::Type::request_parameters
6
-
7
- class V1CreateEventParams < Stigg::Internal::Type::BaseModel
8
- extend Stigg::Internal::Type::RequestParameters::Converter
9
- include Stigg::Internal::Type::RequestParameters
10
-
11
- attr_accessor events: ::Array[Stigg::V1CreateEventParams::Event]
12
-
13
- def initialize: (
14
- events: ::Array[Stigg::V1CreateEventParams::Event],
15
- ?request_options: Stigg::request_opts
16
- ) -> void
17
-
18
- def to_hash: -> {
19
- events: ::Array[Stigg::V1CreateEventParams::Event],
20
- request_options: Stigg::RequestOptions
21
- }
22
-
23
- type event =
24
- {
25
- customer_id: String,
26
- event_name: String,
27
- idempotency_key: String,
28
- dimensions: ::Hash[Symbol, Stigg::Models::V1CreateEventParams::Event::dimension],
29
- resource_id: String?,
30
- timestamp: Time
31
- }
32
-
33
- class Event < Stigg::Internal::Type::BaseModel
34
- attr_accessor customer_id: String
35
-
36
- attr_accessor event_name: String
37
-
38
- attr_accessor idempotency_key: String
39
-
40
- attr_reader dimensions: ::Hash[Symbol, Stigg::Models::V1CreateEventParams::Event::dimension]?
41
-
42
- def dimensions=: (
43
- ::Hash[Symbol, Stigg::Models::V1CreateEventParams::Event::dimension]
44
- ) -> ::Hash[Symbol, Stigg::Models::V1CreateEventParams::Event::dimension]
45
-
46
- attr_accessor resource_id: String?
47
-
48
- attr_reader timestamp: Time?
49
-
50
- def timestamp=: (Time) -> Time
51
-
52
- def initialize: (
53
- customer_id: String,
54
- event_name: String,
55
- idempotency_key: String,
56
- ?dimensions: ::Hash[Symbol, Stigg::Models::V1CreateEventParams::Event::dimension],
57
- ?resource_id: String?,
58
- ?timestamp: Time
59
- ) -> void
60
-
61
- def to_hash: -> {
62
- customer_id: String,
63
- event_name: String,
64
- idempotency_key: String,
65
- dimensions: ::Hash[Symbol, Stigg::Models::V1CreateEventParams::Event::dimension],
66
- resource_id: String?,
67
- timestamp: Time
68
- }
69
-
70
- type dimension = String | Float | bool
71
-
72
- module Dimension
73
- extend Stigg::Internal::Type::Union
74
-
75
- def self?.variants: -> ::Array[Stigg::Models::V1CreateEventParams::Event::dimension]
76
- end
77
- end
78
- end
79
- end
80
- end
@@ -1,13 +0,0 @@
1
- module Stigg
2
- module Models
3
- type v1_create_event_response = { data: top }
4
-
5
- class V1CreateEventResponse < Stigg::Internal::Type::BaseModel
6
- attr_accessor data: top
7
-
8
- def initialize: (data: top) -> void
9
-
10
- def to_hash: -> { data: top }
11
- end
12
- end
13
- end