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
@@ -7,15 +7,9 @@ module Stigg
7
7
 
8
8
  attr_reader coupons: Stigg::Resources::V1::Coupons
9
9
 
10
- def create_event: (
11
- events: ::Array[Stigg::V1CreateEventParams::Event],
12
- ?request_options: Stigg::request_opts
13
- ) -> Stigg::Models::V1CreateEventResponse
10
+ attr_reader events: Stigg::Resources::V1::Events
14
11
 
15
- def create_usage: (
16
- usages: ::Array[Stigg::V1CreateUsageParams::Usage],
17
- ?request_options: Stigg::request_opts
18
- ) -> Stigg::Models::V1CreateUsageResponse
12
+ attr_reader usage: Stigg::Resources::V1::Usage
19
13
 
20
14
  def initialize: (client: Stigg::Client) -> void
21
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.2
4
+ version: 0.1.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-28 00:00:00.000000000 Z
11
+ date: 2026-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -70,52 +70,61 @@ files:
70
70
  - lib/stigg/internal/type/unknown.rb
71
71
  - lib/stigg/internal/util.rb
72
72
  - lib/stigg/models.rb
73
+ - lib/stigg/models/v1/coupon.rb
73
74
  - lib/stigg/models/v1/coupon_create_params.rb
74
- - lib/stigg/models/v1/coupon_create_response.rb
75
75
  - lib/stigg/models/v1/coupon_list_params.rb
76
76
  - lib/stigg/models/v1/coupon_list_response.rb
77
77
  - lib/stigg/models/v1/coupon_retrieve_params.rb
78
- - lib/stigg/models/v1/coupon_retrieve_response.rb
79
78
  - lib/stigg/models/v1/customer_archive_params.rb
80
- - lib/stigg/models/v1/customer_create_params.rb
79
+ - lib/stigg/models/v1/customer_import_params.rb
80
+ - lib/stigg/models/v1/customer_import_response.rb
81
81
  - lib/stigg/models/v1/customer_list_params.rb
82
82
  - lib/stigg/models/v1/customer_list_response.rb
83
+ - lib/stigg/models/v1/customer_provision_params.rb
83
84
  - lib/stigg/models/v1/customer_response.rb
84
85
  - lib/stigg/models/v1/customer_retrieve_params.rb
85
86
  - lib/stigg/models/v1/customer_unarchive_params.rb
86
87
  - lib/stigg/models/v1/customer_update_params.rb
87
88
  - lib/stigg/models/v1/customers/payment_method_attach_params.rb
88
89
  - lib/stigg/models/v1/customers/payment_method_detach_params.rb
89
- - lib/stigg/models/v1/subscription_create_params.rb
90
- - lib/stigg/models/v1/subscription_create_response.rb
90
+ - lib/stigg/models/v1/customers/promotional_entitlement_grant_params.rb
91
+ - lib/stigg/models/v1/customers/promotional_entitlement_grant_response.rb
92
+ - lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb
93
+ - lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb
94
+ - lib/stigg/models/v1/event_report_params.rb
95
+ - lib/stigg/models/v1/event_report_response.rb
96
+ - lib/stigg/models/v1/subscription.rb
97
+ - lib/stigg/models/v1/subscription_cancel_params.rb
91
98
  - lib/stigg/models/v1/subscription_delegate_params.rb
92
- - lib/stigg/models/v1/subscription_delegate_response.rb
99
+ - lib/stigg/models/v1/subscription_import_params.rb
100
+ - lib/stigg/models/v1/subscription_import_response.rb
93
101
  - lib/stigg/models/v1/subscription_list_params.rb
94
102
  - lib/stigg/models/v1/subscription_list_response.rb
95
103
  - lib/stigg/models/v1/subscription_migrate_params.rb
96
- - lib/stigg/models/v1/subscription_migrate_response.rb
97
104
  - lib/stigg/models/v1/subscription_preview_params.rb
98
105
  - lib/stigg/models/v1/subscription_preview_response.rb
106
+ - lib/stigg/models/v1/subscription_provision_params.rb
107
+ - lib/stigg/models/v1/subscription_provision_response.rb
99
108
  - lib/stigg/models/v1/subscription_retrieve_params.rb
100
- - lib/stigg/models/v1/subscription_retrieve_response.rb
101
109
  - lib/stigg/models/v1/subscription_transfer_params.rb
102
- - lib/stigg/models/v1/subscription_transfer_response.rb
110
+ - lib/stigg/models/v1/subscription_update_params.rb
111
+ - lib/stigg/models/v1/subscriptions/cancel_subscription.rb
103
112
  - lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rb
104
- - lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb
105
113
  - lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rb
106
- - lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb
107
- - lib/stigg/models/v1_create_event_params.rb
108
- - lib/stigg/models/v1_create_event_response.rb
109
- - lib/stigg/models/v1_create_usage_params.rb
110
- - lib/stigg/models/v1_create_usage_response.rb
114
+ - lib/stigg/models/v1/usage_history_params.rb
115
+ - lib/stigg/models/v1/usage_history_response.rb
116
+ - lib/stigg/models/v1/usage_report_params.rb
117
+ - lib/stigg/models/v1/usage_report_response.rb
111
118
  - lib/stigg/request_options.rb
112
119
  - lib/stigg/resources/v1.rb
113
120
  - lib/stigg/resources/v1/coupons.rb
114
121
  - lib/stigg/resources/v1/customers.rb
115
122
  - lib/stigg/resources/v1/customers/payment_method.rb
116
- - lib/stigg/resources/v1/customers/usage.rb
123
+ - lib/stigg/resources/v1/customers/promotional_entitlements.rb
124
+ - lib/stigg/resources/v1/events.rb
117
125
  - lib/stigg/resources/v1/subscriptions.rb
118
126
  - lib/stigg/resources/v1/subscriptions/future_update.rb
127
+ - lib/stigg/resources/v1/usage.rb
119
128
  - lib/stigg/version.rb
120
129
  - manifest.yaml
121
130
  - rbi/stigg/client.rbi
@@ -138,52 +147,61 @@ files:
138
147
  - rbi/stigg/internal/type/unknown.rbi
139
148
  - rbi/stigg/internal/util.rbi
140
149
  - rbi/stigg/models.rbi
150
+ - rbi/stigg/models/v1/coupon.rbi
141
151
  - rbi/stigg/models/v1/coupon_create_params.rbi
142
- - rbi/stigg/models/v1/coupon_create_response.rbi
143
152
  - rbi/stigg/models/v1/coupon_list_params.rbi
144
153
  - rbi/stigg/models/v1/coupon_list_response.rbi
145
154
  - rbi/stigg/models/v1/coupon_retrieve_params.rbi
146
- - rbi/stigg/models/v1/coupon_retrieve_response.rbi
147
155
  - rbi/stigg/models/v1/customer_archive_params.rbi
148
- - rbi/stigg/models/v1/customer_create_params.rbi
156
+ - rbi/stigg/models/v1/customer_import_params.rbi
157
+ - rbi/stigg/models/v1/customer_import_response.rbi
149
158
  - rbi/stigg/models/v1/customer_list_params.rbi
150
159
  - rbi/stigg/models/v1/customer_list_response.rbi
160
+ - rbi/stigg/models/v1/customer_provision_params.rbi
151
161
  - rbi/stigg/models/v1/customer_response.rbi
152
162
  - rbi/stigg/models/v1/customer_retrieve_params.rbi
153
163
  - rbi/stigg/models/v1/customer_unarchive_params.rbi
154
164
  - rbi/stigg/models/v1/customer_update_params.rbi
155
165
  - rbi/stigg/models/v1/customers/payment_method_attach_params.rbi
156
166
  - rbi/stigg/models/v1/customers/payment_method_detach_params.rbi
157
- - rbi/stigg/models/v1/subscription_create_params.rbi
158
- - rbi/stigg/models/v1/subscription_create_response.rbi
167
+ - rbi/stigg/models/v1/customers/promotional_entitlement_grant_params.rbi
168
+ - rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi
169
+ - rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi
170
+ - rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi
171
+ - rbi/stigg/models/v1/event_report_params.rbi
172
+ - rbi/stigg/models/v1/event_report_response.rbi
173
+ - rbi/stigg/models/v1/subscription.rbi
174
+ - rbi/stigg/models/v1/subscription_cancel_params.rbi
159
175
  - rbi/stigg/models/v1/subscription_delegate_params.rbi
160
- - rbi/stigg/models/v1/subscription_delegate_response.rbi
176
+ - rbi/stigg/models/v1/subscription_import_params.rbi
177
+ - rbi/stigg/models/v1/subscription_import_response.rbi
161
178
  - rbi/stigg/models/v1/subscription_list_params.rbi
162
179
  - rbi/stigg/models/v1/subscription_list_response.rbi
163
180
  - rbi/stigg/models/v1/subscription_migrate_params.rbi
164
- - rbi/stigg/models/v1/subscription_migrate_response.rbi
165
181
  - rbi/stigg/models/v1/subscription_preview_params.rbi
166
182
  - rbi/stigg/models/v1/subscription_preview_response.rbi
183
+ - rbi/stigg/models/v1/subscription_provision_params.rbi
184
+ - rbi/stigg/models/v1/subscription_provision_response.rbi
167
185
  - rbi/stigg/models/v1/subscription_retrieve_params.rbi
168
- - rbi/stigg/models/v1/subscription_retrieve_response.rbi
169
186
  - rbi/stigg/models/v1/subscription_transfer_params.rbi
170
- - rbi/stigg/models/v1/subscription_transfer_response.rbi
187
+ - rbi/stigg/models/v1/subscription_update_params.rbi
188
+ - rbi/stigg/models/v1/subscriptions/cancel_subscription.rbi
171
189
  - rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rbi
172
- - rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi
173
190
  - rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rbi
174
- - rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi
175
- - rbi/stigg/models/v1_create_event_params.rbi
176
- - rbi/stigg/models/v1_create_event_response.rbi
177
- - rbi/stigg/models/v1_create_usage_params.rbi
178
- - rbi/stigg/models/v1_create_usage_response.rbi
191
+ - rbi/stigg/models/v1/usage_history_params.rbi
192
+ - rbi/stigg/models/v1/usage_history_response.rbi
193
+ - rbi/stigg/models/v1/usage_report_params.rbi
194
+ - rbi/stigg/models/v1/usage_report_response.rbi
179
195
  - rbi/stigg/request_options.rbi
180
196
  - rbi/stigg/resources/v1.rbi
181
197
  - rbi/stigg/resources/v1/coupons.rbi
182
198
  - rbi/stigg/resources/v1/customers.rbi
183
199
  - rbi/stigg/resources/v1/customers/payment_method.rbi
184
- - rbi/stigg/resources/v1/customers/usage.rbi
200
+ - rbi/stigg/resources/v1/customers/promotional_entitlements.rbi
201
+ - rbi/stigg/resources/v1/events.rbi
185
202
  - rbi/stigg/resources/v1/subscriptions.rbi
186
203
  - rbi/stigg/resources/v1/subscriptions/future_update.rbi
204
+ - rbi/stigg/resources/v1/usage.rbi
187
205
  - rbi/stigg/version.rbi
188
206
  - sig/stigg/client.rbs
189
207
  - sig/stigg/errors.rbs
@@ -205,52 +223,61 @@ files:
205
223
  - sig/stigg/internal/type/unknown.rbs
206
224
  - sig/stigg/internal/util.rbs
207
225
  - sig/stigg/models.rbs
226
+ - sig/stigg/models/v1/coupon.rbs
208
227
  - sig/stigg/models/v1/coupon_create_params.rbs
209
- - sig/stigg/models/v1/coupon_create_response.rbs
210
228
  - sig/stigg/models/v1/coupon_list_params.rbs
211
229
  - sig/stigg/models/v1/coupon_list_response.rbs
212
230
  - sig/stigg/models/v1/coupon_retrieve_params.rbs
213
- - sig/stigg/models/v1/coupon_retrieve_response.rbs
214
231
  - sig/stigg/models/v1/customer_archive_params.rbs
215
- - sig/stigg/models/v1/customer_create_params.rbs
232
+ - sig/stigg/models/v1/customer_import_params.rbs
233
+ - sig/stigg/models/v1/customer_import_response.rbs
216
234
  - sig/stigg/models/v1/customer_list_params.rbs
217
235
  - sig/stigg/models/v1/customer_list_response.rbs
236
+ - sig/stigg/models/v1/customer_provision_params.rbs
218
237
  - sig/stigg/models/v1/customer_response.rbs
219
238
  - sig/stigg/models/v1/customer_retrieve_params.rbs
220
239
  - sig/stigg/models/v1/customer_unarchive_params.rbs
221
240
  - sig/stigg/models/v1/customer_update_params.rbs
222
241
  - sig/stigg/models/v1/customers/payment_method_attach_params.rbs
223
242
  - sig/stigg/models/v1/customers/payment_method_detach_params.rbs
224
- - sig/stigg/models/v1/subscription_create_params.rbs
225
- - sig/stigg/models/v1/subscription_create_response.rbs
243
+ - sig/stigg/models/v1/customers/promotional_entitlement_grant_params.rbs
244
+ - sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs
245
+ - sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs
246
+ - sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs
247
+ - sig/stigg/models/v1/event_report_params.rbs
248
+ - sig/stigg/models/v1/event_report_response.rbs
249
+ - sig/stigg/models/v1/subscription.rbs
250
+ - sig/stigg/models/v1/subscription_cancel_params.rbs
226
251
  - sig/stigg/models/v1/subscription_delegate_params.rbs
227
- - sig/stigg/models/v1/subscription_delegate_response.rbs
252
+ - sig/stigg/models/v1/subscription_import_params.rbs
253
+ - sig/stigg/models/v1/subscription_import_response.rbs
228
254
  - sig/stigg/models/v1/subscription_list_params.rbs
229
255
  - sig/stigg/models/v1/subscription_list_response.rbs
230
256
  - sig/stigg/models/v1/subscription_migrate_params.rbs
231
- - sig/stigg/models/v1/subscription_migrate_response.rbs
232
257
  - sig/stigg/models/v1/subscription_preview_params.rbs
233
258
  - sig/stigg/models/v1/subscription_preview_response.rbs
259
+ - sig/stigg/models/v1/subscription_provision_params.rbs
260
+ - sig/stigg/models/v1/subscription_provision_response.rbs
234
261
  - sig/stigg/models/v1/subscription_retrieve_params.rbs
235
- - sig/stigg/models/v1/subscription_retrieve_response.rbs
236
262
  - sig/stigg/models/v1/subscription_transfer_params.rbs
237
- - sig/stigg/models/v1/subscription_transfer_response.rbs
263
+ - sig/stigg/models/v1/subscription_update_params.rbs
264
+ - sig/stigg/models/v1/subscriptions/cancel_subscription.rbs
238
265
  - sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_params.rbs
239
- - sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs
240
266
  - sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_params.rbs
241
- - sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs
242
- - sig/stigg/models/v1_create_event_params.rbs
243
- - sig/stigg/models/v1_create_event_response.rbs
244
- - sig/stigg/models/v1_create_usage_params.rbs
245
- - sig/stigg/models/v1_create_usage_response.rbs
267
+ - sig/stigg/models/v1/usage_history_params.rbs
268
+ - sig/stigg/models/v1/usage_history_response.rbs
269
+ - sig/stigg/models/v1/usage_report_params.rbs
270
+ - sig/stigg/models/v1/usage_report_response.rbs
246
271
  - sig/stigg/request_options.rbs
247
272
  - sig/stigg/resources/v1.rbs
248
273
  - sig/stigg/resources/v1/coupons.rbs
249
274
  - sig/stigg/resources/v1/customers.rbs
250
275
  - sig/stigg/resources/v1/customers/payment_method.rbs
251
- - sig/stigg/resources/v1/customers/usage.rbs
276
+ - sig/stigg/resources/v1/customers/promotional_entitlements.rbs
277
+ - sig/stigg/resources/v1/events.rbs
252
278
  - sig/stigg/resources/v1/subscriptions.rbs
253
279
  - sig/stigg/resources/v1/subscriptions/future_update.rbs
280
+ - sig/stigg/resources/v1/usage.rbs
254
281
  - sig/stigg/version.rbs
255
282
  homepage: https://gemdocs.org/gems/stigg
256
283
  licenses: []
@@ -1,322 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Stigg
4
- module Models
5
- module V1
6
- # @see Stigg::Resources::V1::Coupons#retrieve
7
- class CouponRetrieveResponse < Stigg::Internal::Type::BaseModel
8
- # @!attribute data
9
- # Discount instrument with percentage or fixed amount
10
- #
11
- # @return [Stigg::Models::V1::CouponRetrieveResponse::Data]
12
- required :data, -> { Stigg::Models::V1::CouponRetrieveResponse::Data }
13
-
14
- # @!method initialize(data:)
15
- # Response object
16
- #
17
- # @param data [Stigg::Models::V1::CouponRetrieveResponse::Data] Discount instrument with percentage or fixed amount
18
-
19
- # @see Stigg::Models::V1::CouponRetrieveResponse#data
20
- class Data < Stigg::Internal::Type::BaseModel
21
- # @!attribute id
22
- # The unique identifier for the entity
23
- #
24
- # @return [String]
25
- required :id, String
26
-
27
- # @!attribute amounts_off
28
- # Fixed amount discounts in different currencies
29
- #
30
- # @return [Array<Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff>, nil]
31
- required :amounts_off,
32
- -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff] },
33
- api_name: :amountsOff,
34
- nil?: true
35
-
36
- # @!attribute billing_id
37
- # The unique identifier for the entity in the billing provider
38
- #
39
- # @return [String, nil]
40
- required :billing_id, String, api_name: :billingId, nil?: true
41
-
42
- # @!attribute billing_link_url
43
- # The URL to the entity in the billing provider
44
- #
45
- # @return [String, nil]
46
- required :billing_link_url, String, api_name: :billingLinkUrl, nil?: true
47
-
48
- # @!attribute created_at
49
- # Timestamp of when the record was created
50
- #
51
- # @return [Time]
52
- required :created_at, Time, api_name: :createdAt
53
-
54
- # @!attribute description
55
- # Description of the coupon
56
- #
57
- # @return [String, nil]
58
- required :description, String, nil?: true
59
-
60
- # @!attribute duration_in_months
61
- # Duration of the coupon validity in months
62
- #
63
- # @return [Float, nil]
64
- required :duration_in_months, Float, api_name: :durationInMonths, nil?: true
65
-
66
- # @!attribute name
67
- # Name of the coupon
68
- #
69
- # @return [String]
70
- required :name, String
71
-
72
- # @!attribute percent_off
73
- # Percentage discount off the original price
74
- #
75
- # @return [Float, nil]
76
- required :percent_off, Float, api_name: :percentOff, nil?: true
77
-
78
- # @!attribute source
79
- # The source of the coupon
80
- #
81
- # @return [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Source, nil]
82
- required :source, enum: -> { Stigg::Models::V1::CouponRetrieveResponse::Data::Source }, nil?: true
83
-
84
- # @!attribute status
85
- # Current status of the coupon
86
- #
87
- # @return [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Status]
88
- required :status, enum: -> { Stigg::Models::V1::CouponRetrieveResponse::Data::Status }
89
-
90
- # @!attribute type
91
- # Type of the coupon (percentage or fixed amount)
92
- #
93
- # @return [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Type]
94
- required :type, enum: -> { Stigg::Models::V1::CouponRetrieveResponse::Data::Type }
95
-
96
- # @!attribute updated_at
97
- # Timestamp of when the record was last updated
98
- #
99
- # @return [Time]
100
- required :updated_at, Time, api_name: :updatedAt
101
-
102
- # @!method initialize(id:, amounts_off:, billing_id:, billing_link_url:, created_at:, description:, duration_in_months:, name:, percent_off:, source:, status:, type:, updated_at:)
103
- # Discount instrument with percentage or fixed amount
104
- #
105
- # @param id [String] The unique identifier for the entity
106
- #
107
- # @param amounts_off [Array<Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff>, nil] Fixed amount discounts in different currencies
108
- #
109
- # @param billing_id [String, nil] The unique identifier for the entity in the billing provider
110
- #
111
- # @param billing_link_url [String, nil] The URL to the entity in the billing provider
112
- #
113
- # @param created_at [Time] Timestamp of when the record was created
114
- #
115
- # @param description [String, nil] Description of the coupon
116
- #
117
- # @param duration_in_months [Float, nil] Duration of the coupon validity in months
118
- #
119
- # @param name [String] Name of the coupon
120
- #
121
- # @param percent_off [Float, nil] Percentage discount off the original price
122
- #
123
- # @param source [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Source, nil] The source of the coupon
124
- #
125
- # @param status [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Status] Current status of the coupon
126
- #
127
- # @param type [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::Type] Type of the coupon (percentage or fixed amount)
128
- #
129
- # @param updated_at [Time] Timestamp of when the record was last updated
130
-
131
- class AmountsOff < Stigg::Internal::Type::BaseModel
132
- # @!attribute amount
133
- # The price amount
134
- #
135
- # @return [Float]
136
- required :amount, Float
137
-
138
- # @!attribute currency
139
- # The price currency
140
- #
141
- # @return [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff::Currency]
142
- required :currency, enum: -> { Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff::Currency }
143
-
144
- # @!method initialize(amount:, currency:)
145
- # Monetary amount with currency
146
- #
147
- # @param amount [Float] The price amount
148
- #
149
- # @param currency [Symbol, Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff::Currency] The price currency
150
-
151
- # The price currency
152
- #
153
- # @see Stigg::Models::V1::CouponRetrieveResponse::Data::AmountsOff#currency
154
- module Currency
155
- extend Stigg::Internal::Type::Enum
156
-
157
- USD = :usd
158
- AED = :aed
159
- ALL = :all
160
- AMD = :amd
161
- ANG = :ang
162
- AUD = :aud
163
- AWG = :awg
164
- AZN = :azn
165
- BAM = :bam
166
- BBD = :bbd
167
- BDT = :bdt
168
- BGN = :bgn
169
- BIF = :bif
170
- BMD = :bmd
171
- BND = :bnd
172
- BSD = :bsd
173
- BWP = :bwp
174
- BYN = :byn
175
- BZD = :bzd
176
- BRL = :brl
177
- CAD = :cad
178
- CDF = :cdf
179
- CHF = :chf
180
- CNY = :cny
181
- CZK = :czk
182
- DKK = :dkk
183
- DOP = :dop
184
- DZD = :dzd
185
- EGP = :egp
186
- ETB = :etb
187
- EUR = :eur
188
- FJD = :fjd
189
- GBP = :gbp
190
- GEL = :gel
191
- GIP = :gip
192
- GMD = :gmd
193
- GYD = :gyd
194
- HKD = :hkd
195
- HRK = :hrk
196
- HTG = :htg
197
- IDR = :idr
198
- ILS = :ils
199
- INR = :inr
200
- ISK = :isk
201
- JMD = :jmd
202
- JPY = :jpy
203
- KES = :kes
204
- KGS = :kgs
205
- KHR = :khr
206
- KMF = :kmf
207
- KRW = :krw
208
- KYD = :kyd
209
- KZT = :kzt
210
- LBP = :lbp
211
- LKR = :lkr
212
- LRD = :lrd
213
- LSL = :lsl
214
- MAD = :mad
215
- MDL = :mdl
216
- MGA = :mga
217
- MKD = :mkd
218
- MMK = :mmk
219
- MNT = :mnt
220
- MOP = :mop
221
- MRO = :mro
222
- MVR = :mvr
223
- MWK = :mwk
224
- MXN = :mxn
225
- MYR = :myr
226
- MZN = :mzn
227
- NAD = :nad
228
- NGN = :ngn
229
- NOK = :nok
230
- NPR = :npr
231
- NZD = :nzd
232
- PGK = :pgk
233
- PHP = :php
234
- PKR = :pkr
235
- PLN = :pln
236
- QAR = :qar
237
- RON = :ron
238
- RSD = :rsd
239
- RUB = :rub
240
- RWF = :rwf
241
- SAR = :sar
242
- SBD = :sbd
243
- SCR = :scr
244
- SEK = :sek
245
- SGD = :sgd
246
- SLE = :sle
247
- SLL = :sll
248
- SOS = :sos
249
- SZL = :szl
250
- THB = :thb
251
- TJS = :tjs
252
- TOP = :top
253
- TRY = :try
254
- TTD = :ttd
255
- TZS = :tzs
256
- UAH = :uah
257
- UZS = :uzs
258
- VND = :vnd
259
- VUV = :vuv
260
- WST = :wst
261
- XAF = :xaf
262
- XCD = :xcd
263
- YER = :yer
264
- ZAR = :zar
265
- ZMW = :zmw
266
- CLP = :clp
267
- DJF = :djf
268
- GNF = :gnf
269
- UGX = :ugx
270
- PYG = :pyg
271
- XOF = :xof
272
- XPF = :xpf
273
-
274
- # @!method self.values
275
- # @return [Array<Symbol>]
276
- end
277
- end
278
-
279
- # The source of the coupon
280
- #
281
- # @see Stigg::Models::V1::CouponRetrieveResponse::Data#source
282
- module Source
283
- extend Stigg::Internal::Type::Enum
284
-
285
- STIGG = :STIGG
286
- STIGG_ADHOC = :STIGG_ADHOC
287
- STRIPE = :STRIPE
288
-
289
- # @!method self.values
290
- # @return [Array<Symbol>]
291
- end
292
-
293
- # Current status of the coupon
294
- #
295
- # @see Stigg::Models::V1::CouponRetrieveResponse::Data#status
296
- module Status
297
- extend Stigg::Internal::Type::Enum
298
-
299
- ACTIVE = :ACTIVE
300
- ARCHIVED = :ARCHIVED
301
-
302
- # @!method self.values
303
- # @return [Array<Symbol>]
304
- end
305
-
306
- # Type of the coupon (percentage or fixed amount)
307
- #
308
- # @see Stigg::Models::V1::CouponRetrieveResponse::Data#type
309
- module Type
310
- extend Stigg::Internal::Type::Enum
311
-
312
- FIXED = :FIXED
313
- PERCENTAGE = :PERCENTAGE
314
-
315
- # @!method self.values
316
- # @return [Array<Symbol>]
317
- end
318
- end
319
- end
320
- end
321
- end
322
- end