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
|
@@ -0,0 +1,1114 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see Stigg::Resources::V1::Subscriptions#update
|
|
7
|
+
class SubscriptionUpdateParams < Stigg::Internal::Type::BaseModel
|
|
8
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Stigg::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute addons
|
|
12
|
+
#
|
|
13
|
+
# @return [Array<Stigg::Models::V1::SubscriptionUpdateParams::Addon>, nil]
|
|
14
|
+
optional :addons, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionUpdateParams::Addon] }
|
|
15
|
+
|
|
16
|
+
# @!attribute applied_coupon
|
|
17
|
+
#
|
|
18
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon, nil]
|
|
19
|
+
optional :applied_coupon,
|
|
20
|
+
-> { Stigg::V1::SubscriptionUpdateParams::AppliedCoupon },
|
|
21
|
+
api_name: :appliedCoupon
|
|
22
|
+
|
|
23
|
+
# @!attribute await_payment_confirmation
|
|
24
|
+
#
|
|
25
|
+
# @return [Boolean, nil]
|
|
26
|
+
optional :await_payment_confirmation,
|
|
27
|
+
Stigg::Internal::Type::Boolean,
|
|
28
|
+
api_name: :awaitPaymentConfirmation
|
|
29
|
+
|
|
30
|
+
# @!attribute billing_information
|
|
31
|
+
#
|
|
32
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation, nil]
|
|
33
|
+
optional :billing_information,
|
|
34
|
+
-> { Stigg::V1::SubscriptionUpdateParams::BillingInformation },
|
|
35
|
+
api_name: :billingInformation
|
|
36
|
+
|
|
37
|
+
# @!attribute billing_period
|
|
38
|
+
#
|
|
39
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::BillingPeriod, nil]
|
|
40
|
+
optional :billing_period,
|
|
41
|
+
enum: -> { Stigg::V1::SubscriptionUpdateParams::BillingPeriod },
|
|
42
|
+
api_name: :billingPeriod
|
|
43
|
+
|
|
44
|
+
# @!attribute budget
|
|
45
|
+
#
|
|
46
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::Budget, nil]
|
|
47
|
+
optional :budget, -> { Stigg::V1::SubscriptionUpdateParams::Budget }, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!attribute charges
|
|
50
|
+
#
|
|
51
|
+
# @return [Array<Stigg::Models::V1::SubscriptionUpdateParams::Charge>, nil]
|
|
52
|
+
optional :charges, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionUpdateParams::Charge] }
|
|
53
|
+
|
|
54
|
+
# @!attribute metadata
|
|
55
|
+
# Additional metadata for the subscription
|
|
56
|
+
#
|
|
57
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
58
|
+
optional :metadata, Stigg::Internal::Type::HashOf[String]
|
|
59
|
+
|
|
60
|
+
# @!attribute minimum_spend
|
|
61
|
+
#
|
|
62
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend, nil]
|
|
63
|
+
optional :minimum_spend,
|
|
64
|
+
-> { Stigg::V1::SubscriptionUpdateParams::MinimumSpend },
|
|
65
|
+
api_name: :minimumSpend,
|
|
66
|
+
nil?: true
|
|
67
|
+
|
|
68
|
+
# @!attribute price_overrides
|
|
69
|
+
#
|
|
70
|
+
# @return [Array<Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride>, nil]
|
|
71
|
+
optional :price_overrides,
|
|
72
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionUpdateParams::PriceOverride] },
|
|
73
|
+
api_name: :priceOverrides
|
|
74
|
+
|
|
75
|
+
# @!attribute promotion_code
|
|
76
|
+
#
|
|
77
|
+
# @return [String, nil]
|
|
78
|
+
optional :promotion_code, String, api_name: :promotionCode
|
|
79
|
+
|
|
80
|
+
# @!attribute schedule_strategy
|
|
81
|
+
#
|
|
82
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::ScheduleStrategy, nil]
|
|
83
|
+
optional :schedule_strategy,
|
|
84
|
+
enum: -> { Stigg::V1::SubscriptionUpdateParams::ScheduleStrategy },
|
|
85
|
+
api_name: :scheduleStrategy
|
|
86
|
+
|
|
87
|
+
# @!attribute subscription_entitlements
|
|
88
|
+
#
|
|
89
|
+
# @return [Array<Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement>, nil]
|
|
90
|
+
optional :subscription_entitlements,
|
|
91
|
+
-> {
|
|
92
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement]
|
|
93
|
+
},
|
|
94
|
+
api_name: :subscriptionEntitlements
|
|
95
|
+
|
|
96
|
+
# @!attribute trial_end_date
|
|
97
|
+
# Subscription trial end date
|
|
98
|
+
#
|
|
99
|
+
# @return [Time, nil]
|
|
100
|
+
optional :trial_end_date, Time, api_name: :trialEndDate
|
|
101
|
+
|
|
102
|
+
# @!method initialize(addons: nil, applied_coupon: nil, await_payment_confirmation: nil, billing_information: nil, billing_period: nil, budget: nil, charges: nil, metadata: nil, minimum_spend: nil, price_overrides: nil, promotion_code: nil, schedule_strategy: nil, subscription_entitlements: nil, trial_end_date: nil, request_options: {})
|
|
103
|
+
# @param addons [Array<Stigg::Models::V1::SubscriptionUpdateParams::Addon>]
|
|
104
|
+
#
|
|
105
|
+
# @param applied_coupon [Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon]
|
|
106
|
+
#
|
|
107
|
+
# @param await_payment_confirmation [Boolean]
|
|
108
|
+
#
|
|
109
|
+
# @param billing_information [Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation]
|
|
110
|
+
#
|
|
111
|
+
# @param billing_period [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::BillingPeriod]
|
|
112
|
+
#
|
|
113
|
+
# @param budget [Stigg::Models::V1::SubscriptionUpdateParams::Budget, nil]
|
|
114
|
+
#
|
|
115
|
+
# @param charges [Array<Stigg::Models::V1::SubscriptionUpdateParams::Charge>]
|
|
116
|
+
#
|
|
117
|
+
# @param metadata [Hash{Symbol=>String}] Additional metadata for the subscription
|
|
118
|
+
#
|
|
119
|
+
# @param minimum_spend [Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend, nil]
|
|
120
|
+
#
|
|
121
|
+
# @param price_overrides [Array<Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride>]
|
|
122
|
+
#
|
|
123
|
+
# @param promotion_code [String]
|
|
124
|
+
#
|
|
125
|
+
# @param schedule_strategy [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::ScheduleStrategy]
|
|
126
|
+
#
|
|
127
|
+
# @param subscription_entitlements [Array<Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement>]
|
|
128
|
+
#
|
|
129
|
+
# @param trial_end_date [Time] Subscription trial end date
|
|
130
|
+
#
|
|
131
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
132
|
+
|
|
133
|
+
class Addon < Stigg::Internal::Type::BaseModel
|
|
134
|
+
# @!attribute addon_id
|
|
135
|
+
# Addon ID
|
|
136
|
+
#
|
|
137
|
+
# @return [String]
|
|
138
|
+
required :addon_id, String, api_name: :addonId
|
|
139
|
+
|
|
140
|
+
# @!attribute quantity
|
|
141
|
+
#
|
|
142
|
+
# @return [Float]
|
|
143
|
+
required :quantity, Float
|
|
144
|
+
|
|
145
|
+
# @!method initialize(addon_id:, quantity:)
|
|
146
|
+
# @param addon_id [String] Addon ID
|
|
147
|
+
#
|
|
148
|
+
# @param quantity [Float]
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
class AppliedCoupon < Stigg::Internal::Type::BaseModel
|
|
152
|
+
# @!attribute billing_coupon_id
|
|
153
|
+
#
|
|
154
|
+
# @return [String, nil]
|
|
155
|
+
optional :billing_coupon_id, String, api_name: :billingCouponId
|
|
156
|
+
|
|
157
|
+
# @!attribute configuration
|
|
158
|
+
#
|
|
159
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration, nil]
|
|
160
|
+
optional :configuration, -> { Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration }
|
|
161
|
+
|
|
162
|
+
# @!attribute coupon_id
|
|
163
|
+
#
|
|
164
|
+
# @return [String, nil]
|
|
165
|
+
optional :coupon_id, String, api_name: :couponId
|
|
166
|
+
|
|
167
|
+
# @!attribute discount
|
|
168
|
+
#
|
|
169
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount, nil]
|
|
170
|
+
optional :discount, -> { Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount }
|
|
171
|
+
|
|
172
|
+
# @!attribute promotion_code
|
|
173
|
+
#
|
|
174
|
+
# @return [String, nil]
|
|
175
|
+
optional :promotion_code, String, api_name: :promotionCode, nil?: true
|
|
176
|
+
|
|
177
|
+
# @!method initialize(billing_coupon_id: nil, configuration: nil, coupon_id: nil, discount: nil, promotion_code: nil)
|
|
178
|
+
# @param billing_coupon_id [String]
|
|
179
|
+
# @param configuration [Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Configuration]
|
|
180
|
+
# @param coupon_id [String]
|
|
181
|
+
# @param discount [Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount]
|
|
182
|
+
# @param promotion_code [String, nil]
|
|
183
|
+
|
|
184
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon#configuration
|
|
185
|
+
class Configuration < Stigg::Internal::Type::BaseModel
|
|
186
|
+
# @!attribute start_date
|
|
187
|
+
# Coupon start date
|
|
188
|
+
#
|
|
189
|
+
# @return [Time, nil]
|
|
190
|
+
optional :start_date, Time, api_name: :startDate
|
|
191
|
+
|
|
192
|
+
# @!method initialize(start_date: nil)
|
|
193
|
+
# @param start_date [Time] Coupon start date
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon#discount
|
|
197
|
+
class Discount < Stigg::Internal::Type::BaseModel
|
|
198
|
+
# @!attribute amounts_off
|
|
199
|
+
#
|
|
200
|
+
# @return [Array<Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff>, nil]
|
|
201
|
+
optional :amounts_off,
|
|
202
|
+
-> {
|
|
203
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff]
|
|
204
|
+
},
|
|
205
|
+
api_name: :amountsOff,
|
|
206
|
+
nil?: true
|
|
207
|
+
|
|
208
|
+
# @!attribute description
|
|
209
|
+
#
|
|
210
|
+
# @return [String, nil]
|
|
211
|
+
optional :description, String
|
|
212
|
+
|
|
213
|
+
# @!attribute duration_in_months
|
|
214
|
+
#
|
|
215
|
+
# @return [Float, nil]
|
|
216
|
+
optional :duration_in_months, Float, api_name: :durationInMonths
|
|
217
|
+
|
|
218
|
+
# @!attribute name
|
|
219
|
+
#
|
|
220
|
+
# @return [String, nil]
|
|
221
|
+
optional :name, String
|
|
222
|
+
|
|
223
|
+
# @!attribute percent_off
|
|
224
|
+
#
|
|
225
|
+
# @return [Float, nil]
|
|
226
|
+
optional :percent_off, Float, api_name: :percentOff
|
|
227
|
+
|
|
228
|
+
# @!method initialize(amounts_off: nil, description: nil, duration_in_months: nil, name: nil, percent_off: nil)
|
|
229
|
+
# @param amounts_off [Array<Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff>, nil]
|
|
230
|
+
# @param description [String]
|
|
231
|
+
# @param duration_in_months [Float]
|
|
232
|
+
# @param name [String]
|
|
233
|
+
# @param percent_off [Float]
|
|
234
|
+
|
|
235
|
+
class AmountsOff < Stigg::Internal::Type::BaseModel
|
|
236
|
+
# @!attribute amount
|
|
237
|
+
#
|
|
238
|
+
# @return [Float]
|
|
239
|
+
required :amount, Float
|
|
240
|
+
|
|
241
|
+
# @!attribute currency
|
|
242
|
+
#
|
|
243
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency, nil]
|
|
244
|
+
optional :currency,
|
|
245
|
+
enum: -> { Stigg::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency }
|
|
246
|
+
|
|
247
|
+
# @!method initialize(amount:, currency: nil)
|
|
248
|
+
# @param amount [Float]
|
|
249
|
+
# @param currency [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff::Currency]
|
|
250
|
+
|
|
251
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::AppliedCoupon::Discount::AmountsOff#currency
|
|
252
|
+
module Currency
|
|
253
|
+
extend Stigg::Internal::Type::Enum
|
|
254
|
+
|
|
255
|
+
USD = :usd
|
|
256
|
+
AED = :aed
|
|
257
|
+
ALL = :all
|
|
258
|
+
AMD = :amd
|
|
259
|
+
ANG = :ang
|
|
260
|
+
AUD = :aud
|
|
261
|
+
AWG = :awg
|
|
262
|
+
AZN = :azn
|
|
263
|
+
BAM = :bam
|
|
264
|
+
BBD = :bbd
|
|
265
|
+
BDT = :bdt
|
|
266
|
+
BGN = :bgn
|
|
267
|
+
BIF = :bif
|
|
268
|
+
BMD = :bmd
|
|
269
|
+
BND = :bnd
|
|
270
|
+
BSD = :bsd
|
|
271
|
+
BWP = :bwp
|
|
272
|
+
BYN = :byn
|
|
273
|
+
BZD = :bzd
|
|
274
|
+
BRL = :brl
|
|
275
|
+
CAD = :cad
|
|
276
|
+
CDF = :cdf
|
|
277
|
+
CHF = :chf
|
|
278
|
+
CNY = :cny
|
|
279
|
+
CZK = :czk
|
|
280
|
+
DKK = :dkk
|
|
281
|
+
DOP = :dop
|
|
282
|
+
DZD = :dzd
|
|
283
|
+
EGP = :egp
|
|
284
|
+
ETB = :etb
|
|
285
|
+
EUR = :eur
|
|
286
|
+
FJD = :fjd
|
|
287
|
+
GBP = :gbp
|
|
288
|
+
GEL = :gel
|
|
289
|
+
GIP = :gip
|
|
290
|
+
GMD = :gmd
|
|
291
|
+
GYD = :gyd
|
|
292
|
+
HKD = :hkd
|
|
293
|
+
HRK = :hrk
|
|
294
|
+
HTG = :htg
|
|
295
|
+
IDR = :idr
|
|
296
|
+
ILS = :ils
|
|
297
|
+
INR = :inr
|
|
298
|
+
ISK = :isk
|
|
299
|
+
JMD = :jmd
|
|
300
|
+
JPY = :jpy
|
|
301
|
+
KES = :kes
|
|
302
|
+
KGS = :kgs
|
|
303
|
+
KHR = :khr
|
|
304
|
+
KMF = :kmf
|
|
305
|
+
KRW = :krw
|
|
306
|
+
KYD = :kyd
|
|
307
|
+
KZT = :kzt
|
|
308
|
+
LBP = :lbp
|
|
309
|
+
LKR = :lkr
|
|
310
|
+
LRD = :lrd
|
|
311
|
+
LSL = :lsl
|
|
312
|
+
MAD = :mad
|
|
313
|
+
MDL = :mdl
|
|
314
|
+
MGA = :mga
|
|
315
|
+
MKD = :mkd
|
|
316
|
+
MMK = :mmk
|
|
317
|
+
MNT = :mnt
|
|
318
|
+
MOP = :mop
|
|
319
|
+
MRO = :mro
|
|
320
|
+
MVR = :mvr
|
|
321
|
+
MWK = :mwk
|
|
322
|
+
MXN = :mxn
|
|
323
|
+
MYR = :myr
|
|
324
|
+
MZN = :mzn
|
|
325
|
+
NAD = :nad
|
|
326
|
+
NGN = :ngn
|
|
327
|
+
NOK = :nok
|
|
328
|
+
NPR = :npr
|
|
329
|
+
NZD = :nzd
|
|
330
|
+
PGK = :pgk
|
|
331
|
+
PHP = :php
|
|
332
|
+
PKR = :pkr
|
|
333
|
+
PLN = :pln
|
|
334
|
+
QAR = :qar
|
|
335
|
+
RON = :ron
|
|
336
|
+
RSD = :rsd
|
|
337
|
+
RUB = :rub
|
|
338
|
+
RWF = :rwf
|
|
339
|
+
SAR = :sar
|
|
340
|
+
SBD = :sbd
|
|
341
|
+
SCR = :scr
|
|
342
|
+
SEK = :sek
|
|
343
|
+
SGD = :sgd
|
|
344
|
+
SLE = :sle
|
|
345
|
+
SLL = :sll
|
|
346
|
+
SOS = :sos
|
|
347
|
+
SZL = :szl
|
|
348
|
+
THB = :thb
|
|
349
|
+
TJS = :tjs
|
|
350
|
+
TOP = :top
|
|
351
|
+
TRY = :try
|
|
352
|
+
TTD = :ttd
|
|
353
|
+
TZS = :tzs
|
|
354
|
+
UAH = :uah
|
|
355
|
+
UZS = :uzs
|
|
356
|
+
VND = :vnd
|
|
357
|
+
VUV = :vuv
|
|
358
|
+
WST = :wst
|
|
359
|
+
XAF = :xaf
|
|
360
|
+
XCD = :xcd
|
|
361
|
+
YER = :yer
|
|
362
|
+
ZAR = :zar
|
|
363
|
+
ZMW = :zmw
|
|
364
|
+
CLP = :clp
|
|
365
|
+
DJF = :djf
|
|
366
|
+
GNF = :gnf
|
|
367
|
+
UGX = :ugx
|
|
368
|
+
PYG = :pyg
|
|
369
|
+
XOF = :xof
|
|
370
|
+
XPF = :xpf
|
|
371
|
+
|
|
372
|
+
# @!method self.values
|
|
373
|
+
# @return [Array<Symbol>]
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
class BillingInformation < Stigg::Internal::Type::BaseModel
|
|
380
|
+
# @!attribute billing_address
|
|
381
|
+
# Physical address
|
|
382
|
+
#
|
|
383
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress, nil]
|
|
384
|
+
optional :billing_address,
|
|
385
|
+
-> { Stigg::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress },
|
|
386
|
+
api_name: :billingAddress
|
|
387
|
+
|
|
388
|
+
# @!attribute charge_on_behalf_of_account
|
|
389
|
+
#
|
|
390
|
+
# @return [String, nil]
|
|
391
|
+
optional :charge_on_behalf_of_account, String, api_name: :chargeOnBehalfOfAccount
|
|
392
|
+
|
|
393
|
+
# @!attribute coupon_id
|
|
394
|
+
#
|
|
395
|
+
# @return [String, nil]
|
|
396
|
+
optional :coupon_id, String, api_name: :couponId
|
|
397
|
+
|
|
398
|
+
# @!attribute integration_id
|
|
399
|
+
#
|
|
400
|
+
# @return [String, nil]
|
|
401
|
+
optional :integration_id, String, api_name: :integrationId
|
|
402
|
+
|
|
403
|
+
# @!attribute invoice_days_until_due
|
|
404
|
+
#
|
|
405
|
+
# @return [Float, nil]
|
|
406
|
+
optional :invoice_days_until_due, Float, api_name: :invoiceDaysUntilDue
|
|
407
|
+
|
|
408
|
+
# @!attribute is_backdated
|
|
409
|
+
#
|
|
410
|
+
# @return [Boolean, nil]
|
|
411
|
+
optional :is_backdated, Stigg::Internal::Type::Boolean, api_name: :isBackdated
|
|
412
|
+
|
|
413
|
+
# @!attribute is_invoice_paid
|
|
414
|
+
#
|
|
415
|
+
# @return [Boolean, nil]
|
|
416
|
+
optional :is_invoice_paid, Stigg::Internal::Type::Boolean, api_name: :isInvoicePaid
|
|
417
|
+
|
|
418
|
+
# @!attribute metadata
|
|
419
|
+
# Additional metadata for the subscription
|
|
420
|
+
#
|
|
421
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
422
|
+
optional :metadata, Stigg::Internal::Type::HashOf[Stigg::Internal::Type::Unknown]
|
|
423
|
+
|
|
424
|
+
# @!attribute proration_behavior
|
|
425
|
+
#
|
|
426
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior, nil]
|
|
427
|
+
optional :proration_behavior,
|
|
428
|
+
enum: -> { Stigg::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior },
|
|
429
|
+
api_name: :prorationBehavior
|
|
430
|
+
|
|
431
|
+
# @!attribute tax_ids
|
|
432
|
+
#
|
|
433
|
+
# @return [Array<Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::TaxID>, nil]
|
|
434
|
+
optional :tax_ids,
|
|
435
|
+
-> {
|
|
436
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::SubscriptionUpdateParams::BillingInformation::TaxID]
|
|
437
|
+
},
|
|
438
|
+
api_name: :taxIds
|
|
439
|
+
|
|
440
|
+
# @!attribute tax_percentage
|
|
441
|
+
#
|
|
442
|
+
# @return [Float, nil]
|
|
443
|
+
optional :tax_percentage, Float, api_name: :taxPercentage
|
|
444
|
+
|
|
445
|
+
# @!attribute tax_rate_ids
|
|
446
|
+
#
|
|
447
|
+
# @return [Array<String>, nil]
|
|
448
|
+
optional :tax_rate_ids, Stigg::Internal::Type::ArrayOf[String], api_name: :taxRateIds
|
|
449
|
+
|
|
450
|
+
# @!method initialize(billing_address: nil, charge_on_behalf_of_account: nil, coupon_id: nil, integration_id: nil, invoice_days_until_due: nil, is_backdated: nil, is_invoice_paid: nil, metadata: nil, proration_behavior: nil, tax_ids: nil, tax_percentage: nil, tax_rate_ids: nil)
|
|
451
|
+
# @param billing_address [Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::BillingAddress] Physical address
|
|
452
|
+
#
|
|
453
|
+
# @param charge_on_behalf_of_account [String]
|
|
454
|
+
#
|
|
455
|
+
# @param coupon_id [String]
|
|
456
|
+
#
|
|
457
|
+
# @param integration_id [String]
|
|
458
|
+
#
|
|
459
|
+
# @param invoice_days_until_due [Float]
|
|
460
|
+
#
|
|
461
|
+
# @param is_backdated [Boolean]
|
|
462
|
+
#
|
|
463
|
+
# @param is_invoice_paid [Boolean]
|
|
464
|
+
#
|
|
465
|
+
# @param metadata [Hash{Symbol=>Object}] Additional metadata for the subscription
|
|
466
|
+
#
|
|
467
|
+
# @param proration_behavior [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::ProrationBehavior]
|
|
468
|
+
#
|
|
469
|
+
# @param tax_ids [Array<Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation::TaxID>]
|
|
470
|
+
#
|
|
471
|
+
# @param tax_percentage [Float]
|
|
472
|
+
#
|
|
473
|
+
# @param tax_rate_ids [Array<String>]
|
|
474
|
+
|
|
475
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation#billing_address
|
|
476
|
+
class BillingAddress < Stigg::Internal::Type::BaseModel
|
|
477
|
+
# @!attribute city
|
|
478
|
+
# City name
|
|
479
|
+
#
|
|
480
|
+
# @return [String, nil]
|
|
481
|
+
optional :city, String
|
|
482
|
+
|
|
483
|
+
# @!attribute country
|
|
484
|
+
# Country code or name
|
|
485
|
+
#
|
|
486
|
+
# @return [String, nil]
|
|
487
|
+
optional :country, String
|
|
488
|
+
|
|
489
|
+
# @!attribute line1
|
|
490
|
+
# Street address line 1
|
|
491
|
+
#
|
|
492
|
+
# @return [String, nil]
|
|
493
|
+
optional :line1, String
|
|
494
|
+
|
|
495
|
+
# @!attribute line2
|
|
496
|
+
# Street address line 2
|
|
497
|
+
#
|
|
498
|
+
# @return [String, nil]
|
|
499
|
+
optional :line2, String
|
|
500
|
+
|
|
501
|
+
# @!attribute postal_code
|
|
502
|
+
# Postal or ZIP code
|
|
503
|
+
#
|
|
504
|
+
# @return [String, nil]
|
|
505
|
+
optional :postal_code, String, api_name: :postalCode
|
|
506
|
+
|
|
507
|
+
# @!attribute state
|
|
508
|
+
# State or province
|
|
509
|
+
#
|
|
510
|
+
# @return [String, nil]
|
|
511
|
+
optional :state, String
|
|
512
|
+
|
|
513
|
+
# @!method initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
|
|
514
|
+
# Physical address
|
|
515
|
+
#
|
|
516
|
+
# @param city [String] City name
|
|
517
|
+
#
|
|
518
|
+
# @param country [String] Country code or name
|
|
519
|
+
#
|
|
520
|
+
# @param line1 [String] Street address line 1
|
|
521
|
+
#
|
|
522
|
+
# @param line2 [String] Street address line 2
|
|
523
|
+
#
|
|
524
|
+
# @param postal_code [String] Postal or ZIP code
|
|
525
|
+
#
|
|
526
|
+
# @param state [String] State or province
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::BillingInformation#proration_behavior
|
|
530
|
+
module ProrationBehavior
|
|
531
|
+
extend Stigg::Internal::Type::Enum
|
|
532
|
+
|
|
533
|
+
INVOICE_IMMEDIATELY = :INVOICE_IMMEDIATELY
|
|
534
|
+
CREATE_PRORATIONS = :CREATE_PRORATIONS
|
|
535
|
+
NONE = :NONE
|
|
536
|
+
|
|
537
|
+
# @!method self.values
|
|
538
|
+
# @return [Array<Symbol>]
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
class TaxID < Stigg::Internal::Type::BaseModel
|
|
542
|
+
# @!attribute type
|
|
543
|
+
#
|
|
544
|
+
# @return [String]
|
|
545
|
+
required :type, String
|
|
546
|
+
|
|
547
|
+
# @!attribute value
|
|
548
|
+
#
|
|
549
|
+
# @return [String]
|
|
550
|
+
required :value, String
|
|
551
|
+
|
|
552
|
+
# @!method initialize(type:, value:)
|
|
553
|
+
# @param type [String]
|
|
554
|
+
# @param value [String]
|
|
555
|
+
end
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
module BillingPeriod
|
|
559
|
+
extend Stigg::Internal::Type::Enum
|
|
560
|
+
|
|
561
|
+
MONTHLY = :MONTHLY
|
|
562
|
+
ANNUALLY = :ANNUALLY
|
|
563
|
+
|
|
564
|
+
# @!method self.values
|
|
565
|
+
# @return [Array<Symbol>]
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
class Budget < Stigg::Internal::Type::BaseModel
|
|
569
|
+
# @!attribute has_soft_limit
|
|
570
|
+
#
|
|
571
|
+
# @return [Boolean]
|
|
572
|
+
required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit
|
|
573
|
+
|
|
574
|
+
# @!attribute limit
|
|
575
|
+
#
|
|
576
|
+
# @return [Float]
|
|
577
|
+
required :limit, Float
|
|
578
|
+
|
|
579
|
+
# @!method initialize(has_soft_limit:, limit:)
|
|
580
|
+
# @param has_soft_limit [Boolean]
|
|
581
|
+
# @param limit [Float]
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
class Charge < Stigg::Internal::Type::BaseModel
|
|
585
|
+
# @!attribute id
|
|
586
|
+
# Charge ID
|
|
587
|
+
#
|
|
588
|
+
# @return [String]
|
|
589
|
+
required :id, String
|
|
590
|
+
|
|
591
|
+
# @!attribute quantity
|
|
592
|
+
#
|
|
593
|
+
# @return [Float]
|
|
594
|
+
required :quantity, Float
|
|
595
|
+
|
|
596
|
+
# @!attribute type
|
|
597
|
+
#
|
|
598
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::Charge::Type]
|
|
599
|
+
required :type, enum: -> { Stigg::V1::SubscriptionUpdateParams::Charge::Type }
|
|
600
|
+
|
|
601
|
+
# @!method initialize(id:, quantity:, type:)
|
|
602
|
+
# @param id [String] Charge ID
|
|
603
|
+
#
|
|
604
|
+
# @param quantity [Float]
|
|
605
|
+
#
|
|
606
|
+
# @param type [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::Charge::Type]
|
|
607
|
+
|
|
608
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::Charge#type
|
|
609
|
+
module Type
|
|
610
|
+
extend Stigg::Internal::Type::Enum
|
|
611
|
+
|
|
612
|
+
FEATURE = :FEATURE
|
|
613
|
+
CREDIT = :CREDIT
|
|
614
|
+
|
|
615
|
+
# @!method self.values
|
|
616
|
+
# @return [Array<Symbol>]
|
|
617
|
+
end
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
class MinimumSpend < Stigg::Internal::Type::BaseModel
|
|
621
|
+
# @!attribute minimum
|
|
622
|
+
#
|
|
623
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum, nil]
|
|
624
|
+
optional :minimum, -> { Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum }, nil?: true
|
|
625
|
+
|
|
626
|
+
# @!method initialize(minimum: nil)
|
|
627
|
+
# @param minimum [Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum, nil]
|
|
628
|
+
|
|
629
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend#minimum
|
|
630
|
+
class Minimum < Stigg::Internal::Type::BaseModel
|
|
631
|
+
# @!attribute amount
|
|
632
|
+
#
|
|
633
|
+
# @return [Float]
|
|
634
|
+
required :amount, Float
|
|
635
|
+
|
|
636
|
+
# @!attribute currency
|
|
637
|
+
#
|
|
638
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency, nil]
|
|
639
|
+
optional :currency, enum: -> { Stigg::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency }
|
|
640
|
+
|
|
641
|
+
# @!method initialize(amount:, currency: nil)
|
|
642
|
+
# @param amount [Float]
|
|
643
|
+
# @param currency [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum::Currency]
|
|
644
|
+
|
|
645
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::MinimumSpend::Minimum#currency
|
|
646
|
+
module Currency
|
|
647
|
+
extend Stigg::Internal::Type::Enum
|
|
648
|
+
|
|
649
|
+
USD = :usd
|
|
650
|
+
AED = :aed
|
|
651
|
+
ALL = :all
|
|
652
|
+
AMD = :amd
|
|
653
|
+
ANG = :ang
|
|
654
|
+
AUD = :aud
|
|
655
|
+
AWG = :awg
|
|
656
|
+
AZN = :azn
|
|
657
|
+
BAM = :bam
|
|
658
|
+
BBD = :bbd
|
|
659
|
+
BDT = :bdt
|
|
660
|
+
BGN = :bgn
|
|
661
|
+
BIF = :bif
|
|
662
|
+
BMD = :bmd
|
|
663
|
+
BND = :bnd
|
|
664
|
+
BSD = :bsd
|
|
665
|
+
BWP = :bwp
|
|
666
|
+
BYN = :byn
|
|
667
|
+
BZD = :bzd
|
|
668
|
+
BRL = :brl
|
|
669
|
+
CAD = :cad
|
|
670
|
+
CDF = :cdf
|
|
671
|
+
CHF = :chf
|
|
672
|
+
CNY = :cny
|
|
673
|
+
CZK = :czk
|
|
674
|
+
DKK = :dkk
|
|
675
|
+
DOP = :dop
|
|
676
|
+
DZD = :dzd
|
|
677
|
+
EGP = :egp
|
|
678
|
+
ETB = :etb
|
|
679
|
+
EUR = :eur
|
|
680
|
+
FJD = :fjd
|
|
681
|
+
GBP = :gbp
|
|
682
|
+
GEL = :gel
|
|
683
|
+
GIP = :gip
|
|
684
|
+
GMD = :gmd
|
|
685
|
+
GYD = :gyd
|
|
686
|
+
HKD = :hkd
|
|
687
|
+
HRK = :hrk
|
|
688
|
+
HTG = :htg
|
|
689
|
+
IDR = :idr
|
|
690
|
+
ILS = :ils
|
|
691
|
+
INR = :inr
|
|
692
|
+
ISK = :isk
|
|
693
|
+
JMD = :jmd
|
|
694
|
+
JPY = :jpy
|
|
695
|
+
KES = :kes
|
|
696
|
+
KGS = :kgs
|
|
697
|
+
KHR = :khr
|
|
698
|
+
KMF = :kmf
|
|
699
|
+
KRW = :krw
|
|
700
|
+
KYD = :kyd
|
|
701
|
+
KZT = :kzt
|
|
702
|
+
LBP = :lbp
|
|
703
|
+
LKR = :lkr
|
|
704
|
+
LRD = :lrd
|
|
705
|
+
LSL = :lsl
|
|
706
|
+
MAD = :mad
|
|
707
|
+
MDL = :mdl
|
|
708
|
+
MGA = :mga
|
|
709
|
+
MKD = :mkd
|
|
710
|
+
MMK = :mmk
|
|
711
|
+
MNT = :mnt
|
|
712
|
+
MOP = :mop
|
|
713
|
+
MRO = :mro
|
|
714
|
+
MVR = :mvr
|
|
715
|
+
MWK = :mwk
|
|
716
|
+
MXN = :mxn
|
|
717
|
+
MYR = :myr
|
|
718
|
+
MZN = :mzn
|
|
719
|
+
NAD = :nad
|
|
720
|
+
NGN = :ngn
|
|
721
|
+
NOK = :nok
|
|
722
|
+
NPR = :npr
|
|
723
|
+
NZD = :nzd
|
|
724
|
+
PGK = :pgk
|
|
725
|
+
PHP = :php
|
|
726
|
+
PKR = :pkr
|
|
727
|
+
PLN = :pln
|
|
728
|
+
QAR = :qar
|
|
729
|
+
RON = :ron
|
|
730
|
+
RSD = :rsd
|
|
731
|
+
RUB = :rub
|
|
732
|
+
RWF = :rwf
|
|
733
|
+
SAR = :sar
|
|
734
|
+
SBD = :sbd
|
|
735
|
+
SCR = :scr
|
|
736
|
+
SEK = :sek
|
|
737
|
+
SGD = :sgd
|
|
738
|
+
SLE = :sle
|
|
739
|
+
SLL = :sll
|
|
740
|
+
SOS = :sos
|
|
741
|
+
SZL = :szl
|
|
742
|
+
THB = :thb
|
|
743
|
+
TJS = :tjs
|
|
744
|
+
TOP = :top
|
|
745
|
+
TRY = :try
|
|
746
|
+
TTD = :ttd
|
|
747
|
+
TZS = :tzs
|
|
748
|
+
UAH = :uah
|
|
749
|
+
UZS = :uzs
|
|
750
|
+
VND = :vnd
|
|
751
|
+
VUV = :vuv
|
|
752
|
+
WST = :wst
|
|
753
|
+
XAF = :xaf
|
|
754
|
+
XCD = :xcd
|
|
755
|
+
YER = :yer
|
|
756
|
+
ZAR = :zar
|
|
757
|
+
ZMW = :zmw
|
|
758
|
+
CLP = :clp
|
|
759
|
+
DJF = :djf
|
|
760
|
+
GNF = :gnf
|
|
761
|
+
UGX = :ugx
|
|
762
|
+
PYG = :pyg
|
|
763
|
+
XOF = :xof
|
|
764
|
+
XPF = :xpf
|
|
765
|
+
|
|
766
|
+
# @!method self.values
|
|
767
|
+
# @return [Array<Symbol>]
|
|
768
|
+
end
|
|
769
|
+
end
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
class PriceOverride < Stigg::Internal::Type::BaseModel
|
|
773
|
+
# @!attribute feature_id
|
|
774
|
+
# Feature ID
|
|
775
|
+
#
|
|
776
|
+
# @return [String]
|
|
777
|
+
required :feature_id, String, api_name: :featureId
|
|
778
|
+
|
|
779
|
+
# @!attribute price
|
|
780
|
+
#
|
|
781
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price, nil]
|
|
782
|
+
optional :price, -> { Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price }
|
|
783
|
+
|
|
784
|
+
# @!method initialize(feature_id:, price: nil)
|
|
785
|
+
# @param feature_id [String] Feature ID
|
|
786
|
+
#
|
|
787
|
+
# @param price [Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price]
|
|
788
|
+
|
|
789
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride#price
|
|
790
|
+
class Price < Stigg::Internal::Type::BaseModel
|
|
791
|
+
# @!attribute amount
|
|
792
|
+
#
|
|
793
|
+
# @return [Float]
|
|
794
|
+
required :amount, Float
|
|
795
|
+
|
|
796
|
+
# @!attribute currency
|
|
797
|
+
#
|
|
798
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency, nil]
|
|
799
|
+
optional :currency, enum: -> { Stigg::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency }
|
|
800
|
+
|
|
801
|
+
# @!method initialize(amount:, currency: nil)
|
|
802
|
+
# @param amount [Float]
|
|
803
|
+
# @param currency [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price::Currency]
|
|
804
|
+
|
|
805
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::PriceOverride::Price#currency
|
|
806
|
+
module Currency
|
|
807
|
+
extend Stigg::Internal::Type::Enum
|
|
808
|
+
|
|
809
|
+
USD = :usd
|
|
810
|
+
AED = :aed
|
|
811
|
+
ALL = :all
|
|
812
|
+
AMD = :amd
|
|
813
|
+
ANG = :ang
|
|
814
|
+
AUD = :aud
|
|
815
|
+
AWG = :awg
|
|
816
|
+
AZN = :azn
|
|
817
|
+
BAM = :bam
|
|
818
|
+
BBD = :bbd
|
|
819
|
+
BDT = :bdt
|
|
820
|
+
BGN = :bgn
|
|
821
|
+
BIF = :bif
|
|
822
|
+
BMD = :bmd
|
|
823
|
+
BND = :bnd
|
|
824
|
+
BSD = :bsd
|
|
825
|
+
BWP = :bwp
|
|
826
|
+
BYN = :byn
|
|
827
|
+
BZD = :bzd
|
|
828
|
+
BRL = :brl
|
|
829
|
+
CAD = :cad
|
|
830
|
+
CDF = :cdf
|
|
831
|
+
CHF = :chf
|
|
832
|
+
CNY = :cny
|
|
833
|
+
CZK = :czk
|
|
834
|
+
DKK = :dkk
|
|
835
|
+
DOP = :dop
|
|
836
|
+
DZD = :dzd
|
|
837
|
+
EGP = :egp
|
|
838
|
+
ETB = :etb
|
|
839
|
+
EUR = :eur
|
|
840
|
+
FJD = :fjd
|
|
841
|
+
GBP = :gbp
|
|
842
|
+
GEL = :gel
|
|
843
|
+
GIP = :gip
|
|
844
|
+
GMD = :gmd
|
|
845
|
+
GYD = :gyd
|
|
846
|
+
HKD = :hkd
|
|
847
|
+
HRK = :hrk
|
|
848
|
+
HTG = :htg
|
|
849
|
+
IDR = :idr
|
|
850
|
+
ILS = :ils
|
|
851
|
+
INR = :inr
|
|
852
|
+
ISK = :isk
|
|
853
|
+
JMD = :jmd
|
|
854
|
+
JPY = :jpy
|
|
855
|
+
KES = :kes
|
|
856
|
+
KGS = :kgs
|
|
857
|
+
KHR = :khr
|
|
858
|
+
KMF = :kmf
|
|
859
|
+
KRW = :krw
|
|
860
|
+
KYD = :kyd
|
|
861
|
+
KZT = :kzt
|
|
862
|
+
LBP = :lbp
|
|
863
|
+
LKR = :lkr
|
|
864
|
+
LRD = :lrd
|
|
865
|
+
LSL = :lsl
|
|
866
|
+
MAD = :mad
|
|
867
|
+
MDL = :mdl
|
|
868
|
+
MGA = :mga
|
|
869
|
+
MKD = :mkd
|
|
870
|
+
MMK = :mmk
|
|
871
|
+
MNT = :mnt
|
|
872
|
+
MOP = :mop
|
|
873
|
+
MRO = :mro
|
|
874
|
+
MVR = :mvr
|
|
875
|
+
MWK = :mwk
|
|
876
|
+
MXN = :mxn
|
|
877
|
+
MYR = :myr
|
|
878
|
+
MZN = :mzn
|
|
879
|
+
NAD = :nad
|
|
880
|
+
NGN = :ngn
|
|
881
|
+
NOK = :nok
|
|
882
|
+
NPR = :npr
|
|
883
|
+
NZD = :nzd
|
|
884
|
+
PGK = :pgk
|
|
885
|
+
PHP = :php
|
|
886
|
+
PKR = :pkr
|
|
887
|
+
PLN = :pln
|
|
888
|
+
QAR = :qar
|
|
889
|
+
RON = :ron
|
|
890
|
+
RSD = :rsd
|
|
891
|
+
RUB = :rub
|
|
892
|
+
RWF = :rwf
|
|
893
|
+
SAR = :sar
|
|
894
|
+
SBD = :sbd
|
|
895
|
+
SCR = :scr
|
|
896
|
+
SEK = :sek
|
|
897
|
+
SGD = :sgd
|
|
898
|
+
SLE = :sle
|
|
899
|
+
SLL = :sll
|
|
900
|
+
SOS = :sos
|
|
901
|
+
SZL = :szl
|
|
902
|
+
THB = :thb
|
|
903
|
+
TJS = :tjs
|
|
904
|
+
TOP = :top
|
|
905
|
+
TRY = :try
|
|
906
|
+
TTD = :ttd
|
|
907
|
+
TZS = :tzs
|
|
908
|
+
UAH = :uah
|
|
909
|
+
UZS = :uzs
|
|
910
|
+
VND = :vnd
|
|
911
|
+
VUV = :vuv
|
|
912
|
+
WST = :wst
|
|
913
|
+
XAF = :xaf
|
|
914
|
+
XCD = :xcd
|
|
915
|
+
YER = :yer
|
|
916
|
+
ZAR = :zar
|
|
917
|
+
ZMW = :zmw
|
|
918
|
+
CLP = :clp
|
|
919
|
+
DJF = :djf
|
|
920
|
+
GNF = :gnf
|
|
921
|
+
UGX = :ugx
|
|
922
|
+
PYG = :pyg
|
|
923
|
+
XOF = :xof
|
|
924
|
+
XPF = :xpf
|
|
925
|
+
|
|
926
|
+
# @!method self.values
|
|
927
|
+
# @return [Array<Symbol>]
|
|
928
|
+
end
|
|
929
|
+
end
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
module ScheduleStrategy
|
|
933
|
+
extend Stigg::Internal::Type::Enum
|
|
934
|
+
|
|
935
|
+
END_OF_BILLING_PERIOD = :END_OF_BILLING_PERIOD
|
|
936
|
+
END_OF_BILLING_MONTH = :END_OF_BILLING_MONTH
|
|
937
|
+
IMMEDIATE = :IMMEDIATE
|
|
938
|
+
|
|
939
|
+
# @!method self.values
|
|
940
|
+
# @return [Array<Symbol>]
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
class SubscriptionEntitlement < Stigg::Internal::Type::BaseModel
|
|
944
|
+
# @!attribute id
|
|
945
|
+
#
|
|
946
|
+
# @return [String, nil]
|
|
947
|
+
optional :id, String
|
|
948
|
+
|
|
949
|
+
# @!attribute feature_id
|
|
950
|
+
#
|
|
951
|
+
# @return [String, nil]
|
|
952
|
+
optional :feature_id, String, api_name: :featureId
|
|
953
|
+
|
|
954
|
+
# @!attribute has_soft_limit
|
|
955
|
+
#
|
|
956
|
+
# @return [Boolean, nil]
|
|
957
|
+
optional :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit
|
|
958
|
+
|
|
959
|
+
# @!attribute has_unlimited_usage
|
|
960
|
+
#
|
|
961
|
+
# @return [Boolean, nil]
|
|
962
|
+
optional :has_unlimited_usage, Stigg::Internal::Type::Boolean, api_name: :hasUnlimitedUsage
|
|
963
|
+
|
|
964
|
+
# @!attribute monthly_reset_period_configuration
|
|
965
|
+
#
|
|
966
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration, nil]
|
|
967
|
+
optional :monthly_reset_period_configuration,
|
|
968
|
+
-> {
|
|
969
|
+
Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration
|
|
970
|
+
},
|
|
971
|
+
api_name: :monthlyResetPeriodConfiguration
|
|
972
|
+
|
|
973
|
+
# @!attribute reset_period
|
|
974
|
+
#
|
|
975
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod, nil]
|
|
976
|
+
optional :reset_period,
|
|
977
|
+
enum: -> { Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod },
|
|
978
|
+
api_name: :resetPeriod
|
|
979
|
+
|
|
980
|
+
# @!attribute usage_limit
|
|
981
|
+
#
|
|
982
|
+
# @return [Float, nil]
|
|
983
|
+
optional :usage_limit, Float, api_name: :usageLimit
|
|
984
|
+
|
|
985
|
+
# @!attribute weekly_reset_period_configuration
|
|
986
|
+
#
|
|
987
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration, nil]
|
|
988
|
+
optional :weekly_reset_period_configuration,
|
|
989
|
+
-> {
|
|
990
|
+
Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration
|
|
991
|
+
},
|
|
992
|
+
api_name: :weeklyResetPeriodConfiguration
|
|
993
|
+
|
|
994
|
+
# @!attribute yearly_reset_period_configuration
|
|
995
|
+
#
|
|
996
|
+
# @return [Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration, nil]
|
|
997
|
+
optional :yearly_reset_period_configuration,
|
|
998
|
+
-> {
|
|
999
|
+
Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration
|
|
1000
|
+
},
|
|
1001
|
+
api_name: :yearlyResetPeriodConfiguration
|
|
1002
|
+
|
|
1003
|
+
# @!method initialize(id: nil, feature_id: nil, has_soft_limit: nil, has_unlimited_usage: nil, monthly_reset_period_configuration: nil, reset_period: nil, usage_limit: nil, weekly_reset_period_configuration: nil, yearly_reset_period_configuration: nil)
|
|
1004
|
+
# @param id [String]
|
|
1005
|
+
# @param feature_id [String]
|
|
1006
|
+
# @param has_soft_limit [Boolean]
|
|
1007
|
+
# @param has_unlimited_usage [Boolean]
|
|
1008
|
+
# @param monthly_reset_period_configuration [Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration]
|
|
1009
|
+
# @param reset_period [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::ResetPeriod]
|
|
1010
|
+
# @param usage_limit [Float]
|
|
1011
|
+
# @param weekly_reset_period_configuration [Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration]
|
|
1012
|
+
# @param yearly_reset_period_configuration [Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration]
|
|
1013
|
+
|
|
1014
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement#monthly_reset_period_configuration
|
|
1015
|
+
class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
1016
|
+
# @!attribute according_to
|
|
1017
|
+
#
|
|
1018
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
|
|
1019
|
+
required :according_to,
|
|
1020
|
+
enum: -> {
|
|
1021
|
+
Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
|
|
1022
|
+
},
|
|
1023
|
+
api_name: :accordingTo
|
|
1024
|
+
|
|
1025
|
+
# @!method initialize(according_to:)
|
|
1026
|
+
# @param according_to [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
|
|
1027
|
+
|
|
1028
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::MonthlyResetPeriodConfiguration#according_to
|
|
1029
|
+
module AccordingTo
|
|
1030
|
+
extend Stigg::Internal::Type::Enum
|
|
1031
|
+
|
|
1032
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
1033
|
+
START_OF_THE_MONTH = :StartOfTheMonth
|
|
1034
|
+
|
|
1035
|
+
# @!method self.values
|
|
1036
|
+
# @return [Array<Symbol>]
|
|
1037
|
+
end
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement#reset_period
|
|
1041
|
+
module ResetPeriod
|
|
1042
|
+
extend Stigg::Internal::Type::Enum
|
|
1043
|
+
|
|
1044
|
+
YEAR = :YEAR
|
|
1045
|
+
MONTH = :MONTH
|
|
1046
|
+
WEEK = :WEEK
|
|
1047
|
+
DAY = :DAY
|
|
1048
|
+
HOUR = :HOUR
|
|
1049
|
+
|
|
1050
|
+
# @!method self.values
|
|
1051
|
+
# @return [Array<Symbol>]
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement#weekly_reset_period_configuration
|
|
1055
|
+
class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
1056
|
+
# @!attribute according_to
|
|
1057
|
+
#
|
|
1058
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
|
|
1059
|
+
required :according_to,
|
|
1060
|
+
enum: -> {
|
|
1061
|
+
Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
|
|
1062
|
+
},
|
|
1063
|
+
api_name: :accordingTo
|
|
1064
|
+
|
|
1065
|
+
# @!method initialize(according_to:)
|
|
1066
|
+
# @param according_to [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
|
|
1067
|
+
|
|
1068
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::WeeklyResetPeriodConfiguration#according_to
|
|
1069
|
+
module AccordingTo
|
|
1070
|
+
extend Stigg::Internal::Type::Enum
|
|
1071
|
+
|
|
1072
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
1073
|
+
EVERY_SUNDAY = :EverySunday
|
|
1074
|
+
EVERY_MONDAY = :EveryMonday
|
|
1075
|
+
EVERY_TUESDAY = :EveryTuesday
|
|
1076
|
+
EVERY_WEDNESDAY = :EveryWednesday
|
|
1077
|
+
EVERY_THURSDAY = :EveryThursday
|
|
1078
|
+
EVERY_FRIDAY = :EveryFriday
|
|
1079
|
+
EVERY_SATURDAY = :EverySaturday
|
|
1080
|
+
|
|
1081
|
+
# @!method self.values
|
|
1082
|
+
# @return [Array<Symbol>]
|
|
1083
|
+
end
|
|
1084
|
+
end
|
|
1085
|
+
|
|
1086
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement#yearly_reset_period_configuration
|
|
1087
|
+
class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
|
|
1088
|
+
# @!attribute according_to
|
|
1089
|
+
#
|
|
1090
|
+
# @return [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
|
|
1091
|
+
required :according_to,
|
|
1092
|
+
enum: -> {
|
|
1093
|
+
Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo
|
|
1094
|
+
},
|
|
1095
|
+
api_name: :accordingTo
|
|
1096
|
+
|
|
1097
|
+
# @!method initialize(according_to:)
|
|
1098
|
+
# @param according_to [Symbol, Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
|
|
1099
|
+
|
|
1100
|
+
# @see Stigg::Models::V1::SubscriptionUpdateParams::SubscriptionEntitlement::YearlyResetPeriodConfiguration#according_to
|
|
1101
|
+
module AccordingTo
|
|
1102
|
+
extend Stigg::Internal::Type::Enum
|
|
1103
|
+
|
|
1104
|
+
SUBSCRIPTION_START = :SubscriptionStart
|
|
1105
|
+
|
|
1106
|
+
# @!method self.values
|
|
1107
|
+
# @return [Array<Symbol>]
|
|
1108
|
+
end
|
|
1109
|
+
end
|
|
1110
|
+
end
|
|
1111
|
+
end
|
|
1112
|
+
end
|
|
1113
|
+
end
|
|
1114
|
+
end
|