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