stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +29 -1
- data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
- data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
- data/lib/stigg/models/v1/coupon_create_response.rb +11 -6
- data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
- data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +11 -6
- data/lib/stigg/models/v1/customer_create_params.rb +2 -0
- data/lib/stigg/models/v1/customer_list_params.rb +14 -14
- data/lib/stigg/models/v1/customer_list_response.rb +160 -174
- data/lib/stigg/models/v1/customer_response.rb +8 -1
- data/lib/stigg/models/v1/customer_update_params.rb +2 -0
- data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
- data/lib/stigg/models/v1/subscription_create_params.rb +1485 -6
- data/lib/stigg/models/v1/subscription_create_response.rb +703 -4
- data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
- data/lib/stigg/models/v1/subscription_delegate_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
- data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
- data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
- data/lib/stigg/models/v1/subscription_migrate_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
- data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
- data/lib/stigg/models/v1/subscription_retrieve_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
- data/lib/stigg/models/v1/subscription_transfer_response.rb +42 -2
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb +2 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +2 -0
- data/lib/stigg/models/v1_create_event_params.rb +2 -0
- data/lib/stigg/models/v1_create_event_response.rb +8 -1
- data/lib/stigg/models/v1_create_usage_params.rb +19 -3
- data/lib/stigg/models/v1_create_usage_response.rb +7 -1
- data/lib/stigg/resources/v1/coupons.rb +12 -10
- data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
- data/lib/stigg/resources/v1/customers/usage.rb +0 -41
- data/lib/stigg/resources/v1/customers.rb +20 -20
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +6 -4
- data/lib/stigg/resources/v1/subscriptions.rb +74 -49
- data/lib/stigg/resources/v1.rb +2 -2
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +0 -7
- data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
- data/rbi/stigg/models/v1/coupon_create_response.rbi +11 -10
- data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
- data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +11 -10
- data/rbi/stigg/models/v1/customer_create_params.rbi +1 -0
- data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
- data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
- data/rbi/stigg/models/v1/customer_response.rbi +8 -1
- data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
- data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
- data/rbi/stigg/models/v1/subscription_create_params.rbi +4975 -84
- data/rbi/stigg/models/v1/subscription_create_response.rbi +2508 -1
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
- data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
- data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
- data/rbi/stigg/models/v1/subscription_migrate_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
- data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +1 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi +1 -0
- data/rbi/stigg/models/v1_create_event_params.rbi +1 -0
- data/rbi/stigg/models/v1_create_event_response.rbi +8 -1
- data/rbi/stigg/models/v1_create_usage_params.rbi +44 -4
- data/rbi/stigg/models/v1_create_usage_response.rbi +8 -1
- data/rbi/stigg/resources/v1/coupons.rbi +20 -12
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -29
- data/rbi/stigg/resources/v1/customers.rbi +34 -20
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +12 -4
- data/rbi/stigg/resources/v1/subscriptions.rbi +102 -23
- data/rbi/stigg/resources/v1.rbi +2 -2
- data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
- data/sig/stigg/models/v1/coupon_create_response.rbs +4 -4
- data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
- data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +4 -4
- data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
- data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
- data/sig/stigg/models/v1/subscription_create_params.rbs +2029 -5
- data/sig/stigg/models/v1/subscription_create_response.rbs +1022 -0
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
- data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
- data/sig/stigg/models/v1/subscription_retrieve_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +31 -0
- data/sig/stigg/models/v1_create_usage_params.rbs +15 -5
- data/sig/stigg/resources/v1/coupons.rbs +3 -3
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -10
- data/sig/stigg/resources/v1/customers.rbs +3 -5
- data/sig/stigg/resources/v1/subscriptions.rbs +19 -4
- metadata +2 -23
- data/lib/stigg/models/v1/customers/promotional_create_params.rb +0 -294
- data/lib/stigg/models/v1/customers/promotional_create_response.rb +0 -268
- data/lib/stigg/models/v1/customers/promotional_revoke_params.rb +0 -24
- data/lib/stigg/models/v1/customers/promotional_revoke_response.rb +0 -268
- data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
- data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
- data/lib/stigg/resources/v1/customers/promotional.rb +0 -69
- data/rbi/stigg/models/v1/customers/promotional_create_params.rbi +0 -639
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
- data/rbi/stigg/models/v1/customers/promotional_revoke_params.rbi +0 -42
- data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
- data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
- data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
- data/rbi/stigg/resources/v1/customers/promotional.rbi +0 -53
- data/sig/stigg/models/v1/customers/promotional_create_params.rbs +0 -234
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/promotional_revoke_params.rbs +0 -27
- data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
- data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
- data/sig/stigg/resources/v1/customers/promotional.rbs +0 -23
|
@@ -2,396 +2,376 @@ module Stigg
|
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
4
|
type coupon_list_response =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff]?,
|
|
8
|
+
billing_id: String?,
|
|
9
|
+
billing_link_url: String?,
|
|
10
|
+
created_at: Time,
|
|
11
|
+
description: String?,
|
|
12
|
+
duration_in_months: Float?,
|
|
13
|
+
name: String,
|
|
14
|
+
percent_off: Float?,
|
|
15
|
+
source: Stigg::Models::V1::CouponListResponse::source?,
|
|
16
|
+
status: Stigg::Models::V1::CouponListResponse::status,
|
|
17
|
+
type: Stigg::Models::V1::CouponListResponse::type_,
|
|
18
|
+
updated_at: Time
|
|
19
|
+
}
|
|
6
20
|
|
|
7
21
|
class CouponListResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor
|
|
22
|
+
attr_accessor id: String
|
|
9
23
|
|
|
10
|
-
|
|
11
|
-
data: ::Array[Stigg::Models::V1::CouponListResponse::Data]
|
|
12
|
-
) -> void
|
|
24
|
+
attr_accessor amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff]?
|
|
13
25
|
|
|
14
|
-
|
|
15
|
-
data: ::Array[Stigg::Models::V1::CouponListResponse::Data]
|
|
16
|
-
}
|
|
26
|
+
attr_accessor billing_id: String?
|
|
17
27
|
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
id: String,
|
|
21
|
-
amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::Data::AmountsOff]?,
|
|
22
|
-
billing_id: String?,
|
|
23
|
-
billing_link_url: String?,
|
|
24
|
-
created_at: Time,
|
|
25
|
-
cursor_id: String,
|
|
26
|
-
description: String?,
|
|
27
|
-
duration_in_months: Float?,
|
|
28
|
-
name: String,
|
|
29
|
-
percent_off: Float?,
|
|
30
|
-
source: Stigg::Models::V1::CouponListResponse::Data::source?,
|
|
31
|
-
status: Stigg::Models::V1::CouponListResponse::Data::status,
|
|
32
|
-
type: Stigg::Models::V1::CouponListResponse::Data::type_,
|
|
33
|
-
updated_at: Time
|
|
34
|
-
}
|
|
28
|
+
attr_accessor billing_link_url: String?
|
|
35
29
|
|
|
36
|
-
|
|
37
|
-
attr_accessor id: String
|
|
30
|
+
attr_accessor created_at: Time
|
|
38
31
|
|
|
39
|
-
|
|
32
|
+
attr_accessor description: String?
|
|
40
33
|
|
|
41
|
-
|
|
34
|
+
attr_accessor duration_in_months: Float?
|
|
42
35
|
|
|
43
|
-
|
|
36
|
+
attr_accessor name: String
|
|
44
37
|
|
|
45
|
-
|
|
38
|
+
attr_accessor percent_off: Float?
|
|
46
39
|
|
|
47
|
-
|
|
40
|
+
attr_accessor source: Stigg::Models::V1::CouponListResponse::source?
|
|
48
41
|
|
|
49
|
-
|
|
42
|
+
attr_accessor status: Stigg::Models::V1::CouponListResponse::status
|
|
50
43
|
|
|
51
|
-
|
|
44
|
+
attr_accessor type: Stigg::Models::V1::CouponListResponse::type_
|
|
52
45
|
|
|
53
|
-
|
|
46
|
+
attr_accessor updated_at: Time
|
|
54
47
|
|
|
55
|
-
|
|
48
|
+
def initialize: (
|
|
49
|
+
id: String,
|
|
50
|
+
amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff]?,
|
|
51
|
+
billing_id: String?,
|
|
52
|
+
billing_link_url: String?,
|
|
53
|
+
created_at: Time,
|
|
54
|
+
description: String?,
|
|
55
|
+
duration_in_months: Float?,
|
|
56
|
+
name: String,
|
|
57
|
+
percent_off: Float?,
|
|
58
|
+
source: Stigg::Models::V1::CouponListResponse::source?,
|
|
59
|
+
status: Stigg::Models::V1::CouponListResponse::status,
|
|
60
|
+
type: Stigg::Models::V1::CouponListResponse::type_,
|
|
61
|
+
updated_at: Time
|
|
62
|
+
) -> void
|
|
56
63
|
|
|
57
|
-
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
id: String,
|
|
66
|
+
amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff]?,
|
|
67
|
+
billing_id: String?,
|
|
68
|
+
billing_link_url: String?,
|
|
69
|
+
created_at: Time,
|
|
70
|
+
description: String?,
|
|
71
|
+
duration_in_months: Float?,
|
|
72
|
+
name: String,
|
|
73
|
+
percent_off: Float?,
|
|
74
|
+
source: Stigg::Models::V1::CouponListResponse::source?,
|
|
75
|
+
status: Stigg::Models::V1::CouponListResponse::status,
|
|
76
|
+
type: Stigg::Models::V1::CouponListResponse::type_,
|
|
77
|
+
updated_at: Time
|
|
78
|
+
}
|
|
58
79
|
|
|
59
|
-
|
|
80
|
+
type amounts_off =
|
|
81
|
+
{
|
|
82
|
+
amount: Float,
|
|
83
|
+
currency: Stigg::Models::V1::CouponListResponse::AmountsOff::currency
|
|
84
|
+
}
|
|
60
85
|
|
|
61
|
-
|
|
86
|
+
class AmountsOff < Stigg::Internal::Type::BaseModel
|
|
87
|
+
attr_accessor amount: Float
|
|
62
88
|
|
|
63
|
-
attr_accessor
|
|
89
|
+
attr_accessor currency: Stigg::Models::V1::CouponListResponse::AmountsOff::currency
|
|
64
90
|
|
|
65
91
|
def initialize: (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
billing_id: String?,
|
|
69
|
-
billing_link_url: String?,
|
|
70
|
-
created_at: Time,
|
|
71
|
-
cursor_id: String,
|
|
72
|
-
description: String?,
|
|
73
|
-
duration_in_months: Float?,
|
|
74
|
-
name: String,
|
|
75
|
-
percent_off: Float?,
|
|
76
|
-
source: Stigg::Models::V1::CouponListResponse::Data::source?,
|
|
77
|
-
status: Stigg::Models::V1::CouponListResponse::Data::status,
|
|
78
|
-
type: Stigg::Models::V1::CouponListResponse::Data::type_,
|
|
79
|
-
updated_at: Time
|
|
92
|
+
amount: Float,
|
|
93
|
+
currency: Stigg::Models::V1::CouponListResponse::AmountsOff::currency
|
|
80
94
|
) -> void
|
|
81
95
|
|
|
82
96
|
def to_hash: -> {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
billing_id: String?,
|
|
86
|
-
billing_link_url: String?,
|
|
87
|
-
created_at: Time,
|
|
88
|
-
cursor_id: String,
|
|
89
|
-
description: String?,
|
|
90
|
-
duration_in_months: Float?,
|
|
91
|
-
name: String,
|
|
92
|
-
percent_off: Float?,
|
|
93
|
-
source: Stigg::Models::V1::CouponListResponse::Data::source?,
|
|
94
|
-
status: Stigg::Models::V1::CouponListResponse::Data::status,
|
|
95
|
-
type: Stigg::Models::V1::CouponListResponse::Data::type_,
|
|
96
|
-
updated_at: Time
|
|
97
|
+
amount: Float,
|
|
98
|
+
currency: Stigg::Models::V1::CouponListResponse::AmountsOff::currency
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
type
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
TTD: :ttd
|
|
339
|
-
TZS: :tzs
|
|
340
|
-
UAH: :uah
|
|
341
|
-
UZS: :uzs
|
|
342
|
-
VND: :vnd
|
|
343
|
-
VUV: :vuv
|
|
344
|
-
WST: :wst
|
|
345
|
-
XAF: :xaf
|
|
346
|
-
XCD: :xcd
|
|
347
|
-
YER: :yer
|
|
348
|
-
ZAR: :zar
|
|
349
|
-
ZMW: :zmw
|
|
350
|
-
CLP: :clp
|
|
351
|
-
DJF: :djf
|
|
352
|
-
GNF: :gnf
|
|
353
|
-
UGX: :ugx
|
|
354
|
-
PYG: :pyg
|
|
355
|
-
XOF: :xof
|
|
356
|
-
XPF: :xpf
|
|
357
|
-
|
|
358
|
-
def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::Data::AmountsOff::currency]
|
|
359
|
-
end
|
|
101
|
+
type currency =
|
|
102
|
+
:usd
|
|
103
|
+
| :aed
|
|
104
|
+
| :all
|
|
105
|
+
| :amd
|
|
106
|
+
| :ang
|
|
107
|
+
| :aud
|
|
108
|
+
| :awg
|
|
109
|
+
| :azn
|
|
110
|
+
| :bam
|
|
111
|
+
| :bbd
|
|
112
|
+
| :bdt
|
|
113
|
+
| :bgn
|
|
114
|
+
| :bif
|
|
115
|
+
| :bmd
|
|
116
|
+
| :bnd
|
|
117
|
+
| :bsd
|
|
118
|
+
| :bwp
|
|
119
|
+
| :byn
|
|
120
|
+
| :bzd
|
|
121
|
+
| :brl
|
|
122
|
+
| :cad
|
|
123
|
+
| :cdf
|
|
124
|
+
| :chf
|
|
125
|
+
| :cny
|
|
126
|
+
| :czk
|
|
127
|
+
| :dkk
|
|
128
|
+
| :dop
|
|
129
|
+
| :dzd
|
|
130
|
+
| :egp
|
|
131
|
+
| :etb
|
|
132
|
+
| :eur
|
|
133
|
+
| :fjd
|
|
134
|
+
| :gbp
|
|
135
|
+
| :gel
|
|
136
|
+
| :gip
|
|
137
|
+
| :gmd
|
|
138
|
+
| :gyd
|
|
139
|
+
| :hkd
|
|
140
|
+
| :hrk
|
|
141
|
+
| :htg
|
|
142
|
+
| :idr
|
|
143
|
+
| :ils
|
|
144
|
+
| :inr
|
|
145
|
+
| :isk
|
|
146
|
+
| :jmd
|
|
147
|
+
| :jpy
|
|
148
|
+
| :kes
|
|
149
|
+
| :kgs
|
|
150
|
+
| :khr
|
|
151
|
+
| :kmf
|
|
152
|
+
| :krw
|
|
153
|
+
| :kyd
|
|
154
|
+
| :kzt
|
|
155
|
+
| :lbp
|
|
156
|
+
| :lkr
|
|
157
|
+
| :lrd
|
|
158
|
+
| :lsl
|
|
159
|
+
| :mad
|
|
160
|
+
| :mdl
|
|
161
|
+
| :mga
|
|
162
|
+
| :mkd
|
|
163
|
+
| :mmk
|
|
164
|
+
| :mnt
|
|
165
|
+
| :mop
|
|
166
|
+
| :mro
|
|
167
|
+
| :mvr
|
|
168
|
+
| :mwk
|
|
169
|
+
| :mxn
|
|
170
|
+
| :myr
|
|
171
|
+
| :mzn
|
|
172
|
+
| :nad
|
|
173
|
+
| :ngn
|
|
174
|
+
| :nok
|
|
175
|
+
| :npr
|
|
176
|
+
| :nzd
|
|
177
|
+
| :pgk
|
|
178
|
+
| :php
|
|
179
|
+
| :pkr
|
|
180
|
+
| :pln
|
|
181
|
+
| :qar
|
|
182
|
+
| :ron
|
|
183
|
+
| :rsd
|
|
184
|
+
| :rub
|
|
185
|
+
| :rwf
|
|
186
|
+
| :sar
|
|
187
|
+
| :sbd
|
|
188
|
+
| :scr
|
|
189
|
+
| :sek
|
|
190
|
+
| :sgd
|
|
191
|
+
| :sle
|
|
192
|
+
| :sll
|
|
193
|
+
| :sos
|
|
194
|
+
| :szl
|
|
195
|
+
| :thb
|
|
196
|
+
| :tjs
|
|
197
|
+
| :top
|
|
198
|
+
| :try
|
|
199
|
+
| :ttd
|
|
200
|
+
| :tzs
|
|
201
|
+
| :uah
|
|
202
|
+
| :uzs
|
|
203
|
+
| :vnd
|
|
204
|
+
| :vuv
|
|
205
|
+
| :wst
|
|
206
|
+
| :xaf
|
|
207
|
+
| :xcd
|
|
208
|
+
| :yer
|
|
209
|
+
| :zar
|
|
210
|
+
| :zmw
|
|
211
|
+
| :clp
|
|
212
|
+
| :djf
|
|
213
|
+
| :gnf
|
|
214
|
+
| :ugx
|
|
215
|
+
| :pyg
|
|
216
|
+
| :xof
|
|
217
|
+
| :xpf
|
|
218
|
+
|
|
219
|
+
module Currency
|
|
220
|
+
extend Stigg::Internal::Type::Enum
|
|
221
|
+
|
|
222
|
+
USD: :usd
|
|
223
|
+
AED: :aed
|
|
224
|
+
ALL: :all
|
|
225
|
+
AMD: :amd
|
|
226
|
+
ANG: :ang
|
|
227
|
+
AUD: :aud
|
|
228
|
+
AWG: :awg
|
|
229
|
+
AZN: :azn
|
|
230
|
+
BAM: :bam
|
|
231
|
+
BBD: :bbd
|
|
232
|
+
BDT: :bdt
|
|
233
|
+
BGN: :bgn
|
|
234
|
+
BIF: :bif
|
|
235
|
+
BMD: :bmd
|
|
236
|
+
BND: :bnd
|
|
237
|
+
BSD: :bsd
|
|
238
|
+
BWP: :bwp
|
|
239
|
+
BYN: :byn
|
|
240
|
+
BZD: :bzd
|
|
241
|
+
BRL: :brl
|
|
242
|
+
CAD: :cad
|
|
243
|
+
CDF: :cdf
|
|
244
|
+
CHF: :chf
|
|
245
|
+
CNY: :cny
|
|
246
|
+
CZK: :czk
|
|
247
|
+
DKK: :dkk
|
|
248
|
+
DOP: :dop
|
|
249
|
+
DZD: :dzd
|
|
250
|
+
EGP: :egp
|
|
251
|
+
ETB: :etb
|
|
252
|
+
EUR: :eur
|
|
253
|
+
FJD: :fjd
|
|
254
|
+
GBP: :gbp
|
|
255
|
+
GEL: :gel
|
|
256
|
+
GIP: :gip
|
|
257
|
+
GMD: :gmd
|
|
258
|
+
GYD: :gyd
|
|
259
|
+
HKD: :hkd
|
|
260
|
+
HRK: :hrk
|
|
261
|
+
HTG: :htg
|
|
262
|
+
IDR: :idr
|
|
263
|
+
ILS: :ils
|
|
264
|
+
INR: :inr
|
|
265
|
+
ISK: :isk
|
|
266
|
+
JMD: :jmd
|
|
267
|
+
JPY: :jpy
|
|
268
|
+
KES: :kes
|
|
269
|
+
KGS: :kgs
|
|
270
|
+
KHR: :khr
|
|
271
|
+
KMF: :kmf
|
|
272
|
+
KRW: :krw
|
|
273
|
+
KYD: :kyd
|
|
274
|
+
KZT: :kzt
|
|
275
|
+
LBP: :lbp
|
|
276
|
+
LKR: :lkr
|
|
277
|
+
LRD: :lrd
|
|
278
|
+
LSL: :lsl
|
|
279
|
+
MAD: :mad
|
|
280
|
+
MDL: :mdl
|
|
281
|
+
MGA: :mga
|
|
282
|
+
MKD: :mkd
|
|
283
|
+
MMK: :mmk
|
|
284
|
+
MNT: :mnt
|
|
285
|
+
MOP: :mop
|
|
286
|
+
MRO: :mro
|
|
287
|
+
MVR: :mvr
|
|
288
|
+
MWK: :mwk
|
|
289
|
+
MXN: :mxn
|
|
290
|
+
MYR: :myr
|
|
291
|
+
MZN: :mzn
|
|
292
|
+
NAD: :nad
|
|
293
|
+
NGN: :ngn
|
|
294
|
+
NOK: :nok
|
|
295
|
+
NPR: :npr
|
|
296
|
+
NZD: :nzd
|
|
297
|
+
PGK: :pgk
|
|
298
|
+
PHP: :php
|
|
299
|
+
PKR: :pkr
|
|
300
|
+
PLN: :pln
|
|
301
|
+
QAR: :qar
|
|
302
|
+
RON: :ron
|
|
303
|
+
RSD: :rsd
|
|
304
|
+
RUB: :rub
|
|
305
|
+
RWF: :rwf
|
|
306
|
+
SAR: :sar
|
|
307
|
+
SBD: :sbd
|
|
308
|
+
SCR: :scr
|
|
309
|
+
SEK: :sek
|
|
310
|
+
SGD: :sgd
|
|
311
|
+
SLE: :sle
|
|
312
|
+
SLL: :sll
|
|
313
|
+
SOS: :sos
|
|
314
|
+
SZL: :szl
|
|
315
|
+
THB: :thb
|
|
316
|
+
TJS: :tjs
|
|
317
|
+
TOP: :top
|
|
318
|
+
TRY: :try
|
|
319
|
+
TTD: :ttd
|
|
320
|
+
TZS: :tzs
|
|
321
|
+
UAH: :uah
|
|
322
|
+
UZS: :uzs
|
|
323
|
+
VND: :vnd
|
|
324
|
+
VUV: :vuv
|
|
325
|
+
WST: :wst
|
|
326
|
+
XAF: :xaf
|
|
327
|
+
XCD: :xcd
|
|
328
|
+
YER: :yer
|
|
329
|
+
ZAR: :zar
|
|
330
|
+
ZMW: :zmw
|
|
331
|
+
CLP: :clp
|
|
332
|
+
DJF: :djf
|
|
333
|
+
GNF: :gnf
|
|
334
|
+
UGX: :ugx
|
|
335
|
+
PYG: :pyg
|
|
336
|
+
XOF: :xof
|
|
337
|
+
XPF: :xpf
|
|
338
|
+
|
|
339
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff::currency]
|
|
360
340
|
end
|
|
341
|
+
end
|
|
361
342
|
|
|
362
|
-
|
|
343
|
+
type source = :STIGG | :STIGG_ADHOC | :STRIPE
|
|
363
344
|
|
|
364
|
-
|
|
365
|
-
|
|
345
|
+
module Source
|
|
346
|
+
extend Stigg::Internal::Type::Enum
|
|
366
347
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
348
|
+
STIGG: :STIGG
|
|
349
|
+
STIGG_ADHOC: :STIGG_ADHOC
|
|
350
|
+
STRIPE: :STRIPE
|
|
370
351
|
|
|
371
|
-
|
|
372
|
-
|
|
352
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::source]
|
|
353
|
+
end
|
|
373
354
|
|
|
374
|
-
|
|
355
|
+
type status = :ACTIVE | :ARCHIVED
|
|
375
356
|
|
|
376
|
-
|
|
377
|
-
|
|
357
|
+
module Status
|
|
358
|
+
extend Stigg::Internal::Type::Enum
|
|
378
359
|
|
|
379
|
-
|
|
380
|
-
|
|
360
|
+
ACTIVE: :ACTIVE
|
|
361
|
+
ARCHIVED: :ARCHIVED
|
|
381
362
|
|
|
382
|
-
|
|
383
|
-
|
|
363
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::status]
|
|
364
|
+
end
|
|
384
365
|
|
|
385
|
-
|
|
366
|
+
type type_ = :FIXED | :PERCENTAGE
|
|
386
367
|
|
|
387
|
-
|
|
388
|
-
|
|
368
|
+
module Type
|
|
369
|
+
extend Stigg::Internal::Type::Enum
|
|
389
370
|
|
|
390
|
-
|
|
391
|
-
|
|
371
|
+
FIXED: :FIXED
|
|
372
|
+
PERCENTAGE: :PERCENTAGE
|
|
392
373
|
|
|
393
|
-
|
|
394
|
-
end
|
|
374
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::type_]
|
|
395
375
|
end
|
|
396
376
|
end
|
|
397
377
|
end
|