orb-billing 0.10.0 → 0.12.0
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 +32 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/union.rb +3 -8
- data/lib/orb/internal/util.rb +8 -9
- data/lib/orb/models/amount_discount.rb +65 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +1437 -15
- data/lib/orb/models/beta_create_plan_version_params.rb +1435 -15
- data/lib/orb/models/percentage_discount.rb +65 -1
- data/lib/orb/models/subscription_create_params.rb +1435 -15
- data/lib/orb/models/subscription_price_intervals_params.rb +715 -5
- data/lib/orb/models/subscription_redeem_coupon_params.rb +17 -9
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +1435 -15
- data/lib/orb/models/trial_discount.rb +65 -1
- data/lib/orb/models/usage_discount.rb +65 -1
- data/lib/orb/resources/subscriptions.rb +6 -4
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/internal/util.rbi +2 -0
- data/rbi/orb/models/amount_discount.rbi +117 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +6145 -3045
- data/rbi/orb/models/beta_create_plan_version_params.rbi +6096 -2996
- data/rbi/orb/models/percentage_discount.rbi +131 -0
- data/rbi/orb/models/subscription_create_params.rbi +6037 -2937
- data/rbi/orb/models/subscription_price_intervals_params.rbi +1633 -83
- data/rbi/orb/models/subscription_redeem_coupon_params.rbi +16 -8
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +6948 -3848
- data/rbi/orb/models/trial_discount.rbi +109 -0
- data/rbi/orb/models/usage_discount.rbi +109 -0
- data/rbi/orb/resources/subscriptions.rbi +7 -4
- data/sig/orb/models/amount_discount.rbs +58 -0
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +1130 -20
- data/sig/orb/models/beta_create_plan_version_params.rbs +1130 -20
- data/sig/orb/models/percentage_discount.rbs +58 -0
- data/sig/orb/models/subscription_create_params.rbs +1130 -20
- data/sig/orb/models/subscription_price_intervals_params.rbs +565 -10
- data/sig/orb/models/subscription_redeem_coupon_params.rbs +11 -6
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1130 -20
- data/sig/orb/models/trial_discount.rbs +58 -0
- data/sig/orb/models/usage_discount.rbs +58 -0
- data/sig/orb/resources/subscriptions.rbs +2 -1
- metadata +2 -2
@@ -93,8 +93,13 @@ module Orb
|
|
93
93
|
{
|
94
94
|
adjustment_type: :percentage_discount,
|
95
95
|
percentage_discount: Float,
|
96
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
97
|
+
applies_to_item_ids: ::Array[String]?,
|
96
98
|
applies_to_price_ids: ::Array[String]?,
|
97
|
-
|
99
|
+
currency: String?,
|
100
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
101
|
+
is_invoice_level: bool,
|
102
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
|
98
103
|
}
|
99
104
|
|
100
105
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
@@ -102,33 +107,144 @@ module Orb
|
|
102
107
|
|
103
108
|
attr_accessor percentage_discount: Float
|
104
109
|
|
110
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?
|
111
|
+
|
112
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
113
|
+
|
105
114
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
106
115
|
|
116
|
+
attr_accessor currency: String?
|
117
|
+
|
118
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?
|
119
|
+
|
107
120
|
attr_reader is_invoice_level: bool?
|
108
121
|
|
109
122
|
def is_invoice_level=: (bool) -> bool
|
110
123
|
|
124
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
|
125
|
+
|
111
126
|
def initialize: (
|
112
127
|
percentage_discount: Float,
|
128
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
129
|
+
?applies_to_item_ids: ::Array[String]?,
|
113
130
|
?applies_to_price_ids: ::Array[String]?,
|
131
|
+
?currency: String?,
|
132
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
114
133
|
?is_invoice_level: bool,
|
134
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?,
|
115
135
|
?adjustment_type: :percentage_discount
|
116
136
|
) -> void
|
117
137
|
|
118
138
|
def to_hash: -> {
|
119
139
|
adjustment_type: :percentage_discount,
|
120
140
|
percentage_discount: Float,
|
141
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
142
|
+
applies_to_item_ids: ::Array[String]?,
|
121
143
|
applies_to_price_ids: ::Array[String]?,
|
122
|
-
|
144
|
+
currency: String?,
|
145
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
146
|
+
is_invoice_level: bool,
|
147
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type?
|
123
148
|
}
|
149
|
+
|
150
|
+
type applies_to_all = true
|
151
|
+
|
152
|
+
module AppliesToAll
|
153
|
+
extend Orb::Internal::Type::Enum
|
154
|
+
|
155
|
+
TRUE: true
|
156
|
+
|
157
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::applies_to_all]
|
158
|
+
end
|
159
|
+
|
160
|
+
type filter =
|
161
|
+
{
|
162
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
163
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
164
|
+
values: ::Array[String]
|
165
|
+
}
|
166
|
+
|
167
|
+
class Filter < Orb::Internal::Type::BaseModel
|
168
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field
|
169
|
+
|
170
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator
|
171
|
+
|
172
|
+
attr_accessor values: ::Array[String]
|
173
|
+
|
174
|
+
def initialize: (
|
175
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
176
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
177
|
+
values: ::Array[String]
|
178
|
+
) -> void
|
179
|
+
|
180
|
+
def to_hash: -> {
|
181
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
182
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
183
|
+
values: ::Array[String]
|
184
|
+
}
|
185
|
+
|
186
|
+
type field =
|
187
|
+
:price_id
|
188
|
+
| :item_id
|
189
|
+
| :price_type
|
190
|
+
| :currency
|
191
|
+
| :pricing_unit_id
|
192
|
+
|
193
|
+
module Field
|
194
|
+
extend Orb::Internal::Type::Enum
|
195
|
+
|
196
|
+
PRICE_ID: :price_id
|
197
|
+
ITEM_ID: :item_id
|
198
|
+
PRICE_TYPE: :price_type
|
199
|
+
CURRENCY: :currency
|
200
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
201
|
+
|
202
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::field]
|
203
|
+
end
|
204
|
+
|
205
|
+
type operator = :includes | :excludes
|
206
|
+
|
207
|
+
module Operator
|
208
|
+
extend Orb::Internal::Type::Enum
|
209
|
+
|
210
|
+
INCLUDES: :includes
|
211
|
+
EXCLUDES: :excludes
|
212
|
+
|
213
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::Filter::operator]
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
type price_type =
|
218
|
+
:usage
|
219
|
+
| :fixed_in_advance
|
220
|
+
| :fixed_in_arrears
|
221
|
+
| :fixed
|
222
|
+
| :in_arrears
|
223
|
+
|
224
|
+
module PriceType
|
225
|
+
extend Orb::Internal::Type::Enum
|
226
|
+
|
227
|
+
USAGE: :usage
|
228
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
229
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
230
|
+
FIXED: :fixed
|
231
|
+
IN_ARREARS: :in_arrears
|
232
|
+
|
233
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::PercentageDiscount::price_type]
|
234
|
+
end
|
124
235
|
end
|
125
236
|
|
126
237
|
type usage_discount =
|
127
238
|
{
|
128
239
|
adjustment_type: :usage_discount,
|
129
240
|
usage_discount: Float,
|
241
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
242
|
+
applies_to_item_ids: ::Array[String]?,
|
130
243
|
applies_to_price_ids: ::Array[String]?,
|
131
|
-
|
244
|
+
currency: String?,
|
245
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
|
246
|
+
is_invoice_level: bool,
|
247
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
|
132
248
|
}
|
133
249
|
|
134
250
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
@@ -136,33 +252,144 @@ module Orb
|
|
136
252
|
|
137
253
|
attr_accessor usage_discount: Float
|
138
254
|
|
255
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?
|
256
|
+
|
257
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
258
|
+
|
139
259
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
140
260
|
|
261
|
+
attr_accessor currency: String?
|
262
|
+
|
263
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?
|
264
|
+
|
141
265
|
attr_reader is_invoice_level: bool?
|
142
266
|
|
143
267
|
def is_invoice_level=: (bool) -> bool
|
144
268
|
|
269
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
|
270
|
+
|
145
271
|
def initialize: (
|
146
272
|
usage_discount: Float,
|
273
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
274
|
+
?applies_to_item_ids: ::Array[String]?,
|
147
275
|
?applies_to_price_ids: ::Array[String]?,
|
276
|
+
?currency: String?,
|
277
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
|
148
278
|
?is_invoice_level: bool,
|
279
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type?,
|
149
280
|
?adjustment_type: :usage_discount
|
150
281
|
) -> void
|
151
282
|
|
152
283
|
def to_hash: -> {
|
153
284
|
adjustment_type: :usage_discount,
|
154
285
|
usage_discount: Float,
|
286
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
287
|
+
applies_to_item_ids: ::Array[String]?,
|
155
288
|
applies_to_price_ids: ::Array[String]?,
|
156
|
-
|
289
|
+
currency: String?,
|
290
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter]?,
|
291
|
+
is_invoice_level: bool,
|
292
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type?
|
157
293
|
}
|
294
|
+
|
295
|
+
type applies_to_all = true
|
296
|
+
|
297
|
+
module AppliesToAll
|
298
|
+
extend Orb::Internal::Type::Enum
|
299
|
+
|
300
|
+
TRUE: true
|
301
|
+
|
302
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::applies_to_all]
|
303
|
+
end
|
304
|
+
|
305
|
+
type filter =
|
306
|
+
{
|
307
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
|
308
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
309
|
+
values: ::Array[String]
|
310
|
+
}
|
311
|
+
|
312
|
+
class Filter < Orb::Internal::Type::BaseModel
|
313
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field
|
314
|
+
|
315
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator
|
316
|
+
|
317
|
+
attr_accessor values: ::Array[String]
|
318
|
+
|
319
|
+
def initialize: (
|
320
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
|
321
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
322
|
+
values: ::Array[String]
|
323
|
+
) -> void
|
324
|
+
|
325
|
+
def to_hash: -> {
|
326
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field,
|
327
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
328
|
+
values: ::Array[String]
|
329
|
+
}
|
330
|
+
|
331
|
+
type field =
|
332
|
+
:price_id
|
333
|
+
| :item_id
|
334
|
+
| :price_type
|
335
|
+
| :currency
|
336
|
+
| :pricing_unit_id
|
337
|
+
|
338
|
+
module Field
|
339
|
+
extend Orb::Internal::Type::Enum
|
340
|
+
|
341
|
+
PRICE_ID: :price_id
|
342
|
+
ITEM_ID: :item_id
|
343
|
+
PRICE_TYPE: :price_type
|
344
|
+
CURRENCY: :currency
|
345
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
346
|
+
|
347
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::field]
|
348
|
+
end
|
349
|
+
|
350
|
+
type operator = :includes | :excludes
|
351
|
+
|
352
|
+
module Operator
|
353
|
+
extend Orb::Internal::Type::Enum
|
354
|
+
|
355
|
+
INCLUDES: :includes
|
356
|
+
EXCLUDES: :excludes
|
357
|
+
|
358
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::Filter::operator]
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
type price_type =
|
363
|
+
:usage
|
364
|
+
| :fixed_in_advance
|
365
|
+
| :fixed_in_arrears
|
366
|
+
| :fixed
|
367
|
+
| :in_arrears
|
368
|
+
|
369
|
+
module PriceType
|
370
|
+
extend Orb::Internal::Type::Enum
|
371
|
+
|
372
|
+
USAGE: :usage
|
373
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
374
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
375
|
+
FIXED: :fixed
|
376
|
+
IN_ARREARS: :in_arrears
|
377
|
+
|
378
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::UsageDiscount::price_type]
|
379
|
+
end
|
158
380
|
end
|
159
381
|
|
160
382
|
type amount_discount =
|
161
383
|
{
|
162
384
|
adjustment_type: :amount_discount,
|
163
385
|
amount_discount: String,
|
386
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
387
|
+
applies_to_item_ids: ::Array[String]?,
|
164
388
|
applies_to_price_ids: ::Array[String]?,
|
165
|
-
|
389
|
+
currency: String?,
|
390
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
|
391
|
+
is_invoice_level: bool,
|
392
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
|
166
393
|
}
|
167
394
|
|
168
395
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
@@ -170,25 +397,131 @@ module Orb
|
|
170
397
|
|
171
398
|
attr_accessor amount_discount: String
|
172
399
|
|
400
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?
|
401
|
+
|
402
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
403
|
+
|
173
404
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
174
405
|
|
406
|
+
attr_accessor currency: String?
|
407
|
+
|
408
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?
|
409
|
+
|
175
410
|
attr_reader is_invoice_level: bool?
|
176
411
|
|
177
412
|
def is_invoice_level=: (bool) -> bool
|
178
413
|
|
414
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
|
415
|
+
|
179
416
|
def initialize: (
|
180
417
|
amount_discount: String,
|
418
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
419
|
+
?applies_to_item_ids: ::Array[String]?,
|
181
420
|
?applies_to_price_ids: ::Array[String]?,
|
421
|
+
?currency: String?,
|
422
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
|
182
423
|
?is_invoice_level: bool,
|
424
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type?,
|
183
425
|
?adjustment_type: :amount_discount
|
184
426
|
) -> void
|
185
427
|
|
186
428
|
def to_hash: -> {
|
187
429
|
adjustment_type: :amount_discount,
|
188
430
|
amount_discount: String,
|
431
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
432
|
+
applies_to_item_ids: ::Array[String]?,
|
189
433
|
applies_to_price_ids: ::Array[String]?,
|
190
|
-
|
434
|
+
currency: String?,
|
435
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter]?,
|
436
|
+
is_invoice_level: bool,
|
437
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type?
|
191
438
|
}
|
439
|
+
|
440
|
+
type applies_to_all = true
|
441
|
+
|
442
|
+
module AppliesToAll
|
443
|
+
extend Orb::Internal::Type::Enum
|
444
|
+
|
445
|
+
TRUE: true
|
446
|
+
|
447
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::applies_to_all]
|
448
|
+
end
|
449
|
+
|
450
|
+
type filter =
|
451
|
+
{
|
452
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
|
453
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
454
|
+
values: ::Array[String]
|
455
|
+
}
|
456
|
+
|
457
|
+
class Filter < Orb::Internal::Type::BaseModel
|
458
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field
|
459
|
+
|
460
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator
|
461
|
+
|
462
|
+
attr_accessor values: ::Array[String]
|
463
|
+
|
464
|
+
def initialize: (
|
465
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
|
466
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
467
|
+
values: ::Array[String]
|
468
|
+
) -> void
|
469
|
+
|
470
|
+
def to_hash: -> {
|
471
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field,
|
472
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
473
|
+
values: ::Array[String]
|
474
|
+
}
|
475
|
+
|
476
|
+
type field =
|
477
|
+
:price_id
|
478
|
+
| :item_id
|
479
|
+
| :price_type
|
480
|
+
| :currency
|
481
|
+
| :pricing_unit_id
|
482
|
+
|
483
|
+
module Field
|
484
|
+
extend Orb::Internal::Type::Enum
|
485
|
+
|
486
|
+
PRICE_ID: :price_id
|
487
|
+
ITEM_ID: :item_id
|
488
|
+
PRICE_TYPE: :price_type
|
489
|
+
CURRENCY: :currency
|
490
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
491
|
+
|
492
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::field]
|
493
|
+
end
|
494
|
+
|
495
|
+
type operator = :includes | :excludes
|
496
|
+
|
497
|
+
module Operator
|
498
|
+
extend Orb::Internal::Type::Enum
|
499
|
+
|
500
|
+
INCLUDES: :includes
|
501
|
+
EXCLUDES: :excludes
|
502
|
+
|
503
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::Filter::operator]
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
507
|
+
type price_type =
|
508
|
+
:usage
|
509
|
+
| :fixed_in_advance
|
510
|
+
| :fixed_in_arrears
|
511
|
+
| :fixed
|
512
|
+
| :in_arrears
|
513
|
+
|
514
|
+
module PriceType
|
515
|
+
extend Orb::Internal::Type::Enum
|
516
|
+
|
517
|
+
USAGE: :usage
|
518
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
519
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
520
|
+
FIXED: :fixed
|
521
|
+
IN_ARREARS: :in_arrears
|
522
|
+
|
523
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::AmountDiscount::price_type]
|
524
|
+
end
|
192
525
|
end
|
193
526
|
|
194
527
|
type minimum =
|
@@ -196,8 +529,13 @@ module Orb
|
|
196
529
|
adjustment_type: :minimum,
|
197
530
|
item_id: String,
|
198
531
|
minimum_amount: String,
|
532
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
|
533
|
+
applies_to_item_ids: ::Array[String]?,
|
199
534
|
applies_to_price_ids: ::Array[String]?,
|
200
|
-
|
535
|
+
currency: String?,
|
536
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter]?,
|
537
|
+
is_invoice_level: bool,
|
538
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type?
|
201
539
|
}
|
202
540
|
|
203
541
|
class Minimum < Orb::Internal::Type::BaseModel
|
@@ -207,17 +545,32 @@ module Orb
|
|
207
545
|
|
208
546
|
attr_accessor minimum_amount: String
|
209
547
|
|
548
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all?
|
549
|
+
|
550
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
551
|
+
|
210
552
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
211
553
|
|
554
|
+
attr_accessor currency: String?
|
555
|
+
|
556
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter]?
|
557
|
+
|
212
558
|
attr_reader is_invoice_level: bool?
|
213
559
|
|
214
560
|
def is_invoice_level=: (bool) -> bool
|
215
561
|
|
562
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type?
|
563
|
+
|
216
564
|
def initialize: (
|
217
565
|
item_id: String,
|
218
566
|
minimum_amount: String,
|
567
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
|
568
|
+
?applies_to_item_ids: ::Array[String]?,
|
219
569
|
?applies_to_price_ids: ::Array[String]?,
|
570
|
+
?currency: String?,
|
571
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter]?,
|
220
572
|
?is_invoice_level: bool,
|
573
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type?,
|
221
574
|
?adjustment_type: :minimum
|
222
575
|
) -> void
|
223
576
|
|
@@ -225,17 +578,113 @@ module Orb
|
|
225
578
|
adjustment_type: :minimum,
|
226
579
|
item_id: String,
|
227
580
|
minimum_amount: String,
|
581
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all?,
|
582
|
+
applies_to_item_ids: ::Array[String]?,
|
228
583
|
applies_to_price_ids: ::Array[String]?,
|
229
|
-
|
584
|
+
currency: String?,
|
585
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter]?,
|
586
|
+
is_invoice_level: bool,
|
587
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type?
|
230
588
|
}
|
589
|
+
|
590
|
+
type applies_to_all = true
|
591
|
+
|
592
|
+
module AppliesToAll
|
593
|
+
extend Orb::Internal::Type::Enum
|
594
|
+
|
595
|
+
TRUE: true
|
596
|
+
|
597
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::applies_to_all]
|
598
|
+
end
|
599
|
+
|
600
|
+
type filter =
|
601
|
+
{
|
602
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field,
|
603
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
|
604
|
+
values: ::Array[String]
|
605
|
+
}
|
606
|
+
|
607
|
+
class Filter < Orb::Internal::Type::BaseModel
|
608
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field
|
609
|
+
|
610
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator
|
611
|
+
|
612
|
+
attr_accessor values: ::Array[String]
|
613
|
+
|
614
|
+
def initialize: (
|
615
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field,
|
616
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
|
617
|
+
values: ::Array[String]
|
618
|
+
) -> void
|
619
|
+
|
620
|
+
def to_hash: -> {
|
621
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field,
|
622
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator,
|
623
|
+
values: ::Array[String]
|
624
|
+
}
|
625
|
+
|
626
|
+
type field =
|
627
|
+
:price_id
|
628
|
+
| :item_id
|
629
|
+
| :price_type
|
630
|
+
| :currency
|
631
|
+
| :pricing_unit_id
|
632
|
+
|
633
|
+
module Field
|
634
|
+
extend Orb::Internal::Type::Enum
|
635
|
+
|
636
|
+
PRICE_ID: :price_id
|
637
|
+
ITEM_ID: :item_id
|
638
|
+
PRICE_TYPE: :price_type
|
639
|
+
CURRENCY: :currency
|
640
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
641
|
+
|
642
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::field]
|
643
|
+
end
|
644
|
+
|
645
|
+
type operator = :includes | :excludes
|
646
|
+
|
647
|
+
module Operator
|
648
|
+
extend Orb::Internal::Type::Enum
|
649
|
+
|
650
|
+
INCLUDES: :includes
|
651
|
+
EXCLUDES: :excludes
|
652
|
+
|
653
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::Filter::operator]
|
654
|
+
end
|
655
|
+
end
|
656
|
+
|
657
|
+
type price_type =
|
658
|
+
:usage
|
659
|
+
| :fixed_in_advance
|
660
|
+
| :fixed_in_arrears
|
661
|
+
| :fixed
|
662
|
+
| :in_arrears
|
663
|
+
|
664
|
+
module PriceType
|
665
|
+
extend Orb::Internal::Type::Enum
|
666
|
+
|
667
|
+
USAGE: :usage
|
668
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
669
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
670
|
+
FIXED: :fixed
|
671
|
+
IN_ARREARS: :in_arrears
|
672
|
+
|
673
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Minimum::price_type]
|
674
|
+
end
|
231
675
|
end
|
232
676
|
|
233
677
|
type maximum =
|
234
678
|
{
|
235
679
|
adjustment_type: :maximum,
|
236
680
|
maximum_amount: String,
|
681
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
|
682
|
+
applies_to_item_ids: ::Array[String]?,
|
237
683
|
applies_to_price_ids: ::Array[String]?,
|
238
|
-
|
684
|
+
currency: String?,
|
685
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter]?,
|
686
|
+
is_invoice_level: bool,
|
687
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type?
|
239
688
|
}
|
240
689
|
|
241
690
|
class Maximum < Orb::Internal::Type::BaseModel
|
@@ -243,25 +692,131 @@ module Orb
|
|
243
692
|
|
244
693
|
attr_accessor maximum_amount: String
|
245
694
|
|
695
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all?
|
696
|
+
|
697
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
698
|
+
|
246
699
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
247
700
|
|
701
|
+
attr_accessor currency: String?
|
702
|
+
|
703
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter]?
|
704
|
+
|
248
705
|
attr_reader is_invoice_level: bool?
|
249
706
|
|
250
707
|
def is_invoice_level=: (bool) -> bool
|
251
708
|
|
709
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type?
|
710
|
+
|
252
711
|
def initialize: (
|
253
712
|
maximum_amount: String,
|
713
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
|
714
|
+
?applies_to_item_ids: ::Array[String]?,
|
254
715
|
?applies_to_price_ids: ::Array[String]?,
|
716
|
+
?currency: String?,
|
717
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter]?,
|
255
718
|
?is_invoice_level: bool,
|
719
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type?,
|
256
720
|
?adjustment_type: :maximum
|
257
721
|
) -> void
|
258
722
|
|
259
723
|
def to_hash: -> {
|
260
724
|
adjustment_type: :maximum,
|
261
725
|
maximum_amount: String,
|
726
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all?,
|
727
|
+
applies_to_item_ids: ::Array[String]?,
|
262
728
|
applies_to_price_ids: ::Array[String]?,
|
263
|
-
|
729
|
+
currency: String?,
|
730
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter]?,
|
731
|
+
is_invoice_level: bool,
|
732
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type?
|
264
733
|
}
|
734
|
+
|
735
|
+
type applies_to_all = true
|
736
|
+
|
737
|
+
module AppliesToAll
|
738
|
+
extend Orb::Internal::Type::Enum
|
739
|
+
|
740
|
+
TRUE: true
|
741
|
+
|
742
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::applies_to_all]
|
743
|
+
end
|
744
|
+
|
745
|
+
type filter =
|
746
|
+
{
|
747
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field,
|
748
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
|
749
|
+
values: ::Array[String]
|
750
|
+
}
|
751
|
+
|
752
|
+
class Filter < Orb::Internal::Type::BaseModel
|
753
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field
|
754
|
+
|
755
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator
|
756
|
+
|
757
|
+
attr_accessor values: ::Array[String]
|
758
|
+
|
759
|
+
def initialize: (
|
760
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field,
|
761
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
|
762
|
+
values: ::Array[String]
|
763
|
+
) -> void
|
764
|
+
|
765
|
+
def to_hash: -> {
|
766
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field,
|
767
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator,
|
768
|
+
values: ::Array[String]
|
769
|
+
}
|
770
|
+
|
771
|
+
type field =
|
772
|
+
:price_id
|
773
|
+
| :item_id
|
774
|
+
| :price_type
|
775
|
+
| :currency
|
776
|
+
| :pricing_unit_id
|
777
|
+
|
778
|
+
module Field
|
779
|
+
extend Orb::Internal::Type::Enum
|
780
|
+
|
781
|
+
PRICE_ID: :price_id
|
782
|
+
ITEM_ID: :item_id
|
783
|
+
PRICE_TYPE: :price_type
|
784
|
+
CURRENCY: :currency
|
785
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
786
|
+
|
787
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::field]
|
788
|
+
end
|
789
|
+
|
790
|
+
type operator = :includes | :excludes
|
791
|
+
|
792
|
+
module Operator
|
793
|
+
extend Orb::Internal::Type::Enum
|
794
|
+
|
795
|
+
INCLUDES: :includes
|
796
|
+
EXCLUDES: :excludes
|
797
|
+
|
798
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::Filter::operator]
|
799
|
+
end
|
800
|
+
end
|
801
|
+
|
802
|
+
type price_type =
|
803
|
+
:usage
|
804
|
+
| :fixed_in_advance
|
805
|
+
| :fixed_in_arrears
|
806
|
+
| :fixed
|
807
|
+
| :in_arrears
|
808
|
+
|
809
|
+
module PriceType
|
810
|
+
extend Orb::Internal::Type::Enum
|
811
|
+
|
812
|
+
USAGE: :usage
|
813
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
814
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
815
|
+
FIXED: :fixed
|
816
|
+
IN_ARREARS: :in_arrears
|
817
|
+
|
818
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::Maximum::price_type]
|
819
|
+
end
|
265
820
|
end
|
266
821
|
|
267
822
|
def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::adjustment]
|
@@ -6564,8 +7119,13 @@ module Orb
|
|
6564
7119
|
{
|
6565
7120
|
adjustment_type: :percentage_discount,
|
6566
7121
|
percentage_discount: Float,
|
7122
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
7123
|
+
applies_to_item_ids: ::Array[String]?,
|
6567
7124
|
applies_to_price_ids: ::Array[String]?,
|
6568
|
-
|
7125
|
+
currency: String?,
|
7126
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
7127
|
+
is_invoice_level: bool,
|
7128
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
|
6569
7129
|
}
|
6570
7130
|
|
6571
7131
|
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
@@ -6573,33 +7133,144 @@ module Orb
|
|
6573
7133
|
|
6574
7134
|
attr_accessor percentage_discount: Float
|
6575
7135
|
|
7136
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?
|
7137
|
+
|
7138
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7139
|
+
|
6576
7140
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
6577
7141
|
|
7142
|
+
attr_accessor currency: String?
|
7143
|
+
|
7144
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?
|
7145
|
+
|
6578
7146
|
attr_reader is_invoice_level: bool?
|
6579
7147
|
|
6580
7148
|
def is_invoice_level=: (bool) -> bool
|
6581
7149
|
|
7150
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
|
7151
|
+
|
6582
7152
|
def initialize: (
|
6583
7153
|
percentage_discount: Float,
|
7154
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
7155
|
+
?applies_to_item_ids: ::Array[String]?,
|
6584
7156
|
?applies_to_price_ids: ::Array[String]?,
|
7157
|
+
?currency: String?,
|
7158
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
6585
7159
|
?is_invoice_level: bool,
|
7160
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?,
|
6586
7161
|
?adjustment_type: :percentage_discount
|
6587
7162
|
) -> void
|
6588
7163
|
|
6589
7164
|
def to_hash: -> {
|
6590
7165
|
adjustment_type: :percentage_discount,
|
6591
7166
|
percentage_discount: Float,
|
7167
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all?,
|
7168
|
+
applies_to_item_ids: ::Array[String]?,
|
6592
7169
|
applies_to_price_ids: ::Array[String]?,
|
6593
|
-
|
7170
|
+
currency: String?,
|
7171
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter]?,
|
7172
|
+
is_invoice_level: bool,
|
7173
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type?
|
6594
7174
|
}
|
7175
|
+
|
7176
|
+
type applies_to_all = true
|
7177
|
+
|
7178
|
+
module AppliesToAll
|
7179
|
+
extend Orb::Internal::Type::Enum
|
7180
|
+
|
7181
|
+
TRUE: true
|
7182
|
+
|
7183
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::applies_to_all]
|
7184
|
+
end
|
7185
|
+
|
7186
|
+
type filter =
|
7187
|
+
{
|
7188
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
7189
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
7190
|
+
values: ::Array[String]
|
7191
|
+
}
|
7192
|
+
|
7193
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7194
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field
|
7195
|
+
|
7196
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator
|
7197
|
+
|
7198
|
+
attr_accessor values: ::Array[String]
|
7199
|
+
|
7200
|
+
def initialize: (
|
7201
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
7202
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
7203
|
+
values: ::Array[String]
|
7204
|
+
) -> void
|
7205
|
+
|
7206
|
+
def to_hash: -> {
|
7207
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field,
|
7208
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator,
|
7209
|
+
values: ::Array[String]
|
7210
|
+
}
|
7211
|
+
|
7212
|
+
type field =
|
7213
|
+
:price_id
|
7214
|
+
| :item_id
|
7215
|
+
| :price_type
|
7216
|
+
| :currency
|
7217
|
+
| :pricing_unit_id
|
7218
|
+
|
7219
|
+
module Field
|
7220
|
+
extend Orb::Internal::Type::Enum
|
7221
|
+
|
7222
|
+
PRICE_ID: :price_id
|
7223
|
+
ITEM_ID: :item_id
|
7224
|
+
PRICE_TYPE: :price_type
|
7225
|
+
CURRENCY: :currency
|
7226
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
7227
|
+
|
7228
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::field]
|
7229
|
+
end
|
7230
|
+
|
7231
|
+
type operator = :includes | :excludes
|
7232
|
+
|
7233
|
+
module Operator
|
7234
|
+
extend Orb::Internal::Type::Enum
|
7235
|
+
|
7236
|
+
INCLUDES: :includes
|
7237
|
+
EXCLUDES: :excludes
|
7238
|
+
|
7239
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::Filter::operator]
|
7240
|
+
end
|
7241
|
+
end
|
7242
|
+
|
7243
|
+
type price_type =
|
7244
|
+
:usage
|
7245
|
+
| :fixed_in_advance
|
7246
|
+
| :fixed_in_arrears
|
7247
|
+
| :fixed
|
7248
|
+
| :in_arrears
|
7249
|
+
|
7250
|
+
module PriceType
|
7251
|
+
extend Orb::Internal::Type::Enum
|
7252
|
+
|
7253
|
+
USAGE: :usage
|
7254
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
7255
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
7256
|
+
FIXED: :fixed
|
7257
|
+
IN_ARREARS: :in_arrears
|
7258
|
+
|
7259
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::PercentageDiscount::price_type]
|
7260
|
+
end
|
6595
7261
|
end
|
6596
7262
|
|
6597
7263
|
type usage_discount =
|
6598
7264
|
{
|
6599
7265
|
adjustment_type: :usage_discount,
|
6600
7266
|
usage_discount: Float,
|
7267
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
7268
|
+
applies_to_item_ids: ::Array[String]?,
|
6601
7269
|
applies_to_price_ids: ::Array[String]?,
|
6602
|
-
|
7270
|
+
currency: String?,
|
7271
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
|
7272
|
+
is_invoice_level: bool,
|
7273
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
|
6603
7274
|
}
|
6604
7275
|
|
6605
7276
|
class UsageDiscount < Orb::Internal::Type::BaseModel
|
@@ -6607,33 +7278,144 @@ module Orb
|
|
6607
7278
|
|
6608
7279
|
attr_accessor usage_discount: Float
|
6609
7280
|
|
7281
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?
|
7282
|
+
|
7283
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7284
|
+
|
6610
7285
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
6611
7286
|
|
7287
|
+
attr_accessor currency: String?
|
7288
|
+
|
7289
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?
|
7290
|
+
|
6612
7291
|
attr_reader is_invoice_level: bool?
|
6613
7292
|
|
6614
7293
|
def is_invoice_level=: (bool) -> bool
|
6615
7294
|
|
7295
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
|
7296
|
+
|
6616
7297
|
def initialize: (
|
6617
7298
|
usage_discount: Float,
|
7299
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
7300
|
+
?applies_to_item_ids: ::Array[String]?,
|
6618
7301
|
?applies_to_price_ids: ::Array[String]?,
|
7302
|
+
?currency: String?,
|
7303
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
|
6619
7304
|
?is_invoice_level: bool,
|
7305
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?,
|
6620
7306
|
?adjustment_type: :usage_discount
|
6621
7307
|
) -> void
|
6622
7308
|
|
6623
7309
|
def to_hash: -> {
|
6624
7310
|
adjustment_type: :usage_discount,
|
6625
7311
|
usage_discount: Float,
|
7312
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all?,
|
7313
|
+
applies_to_item_ids: ::Array[String]?,
|
6626
7314
|
applies_to_price_ids: ::Array[String]?,
|
6627
|
-
|
7315
|
+
currency: String?,
|
7316
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter]?,
|
7317
|
+
is_invoice_level: bool,
|
7318
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type?
|
6628
7319
|
}
|
7320
|
+
|
7321
|
+
type applies_to_all = true
|
7322
|
+
|
7323
|
+
module AppliesToAll
|
7324
|
+
extend Orb::Internal::Type::Enum
|
7325
|
+
|
7326
|
+
TRUE: true
|
7327
|
+
|
7328
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::applies_to_all]
|
7329
|
+
end
|
7330
|
+
|
7331
|
+
type filter =
|
7332
|
+
{
|
7333
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
|
7334
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
7335
|
+
values: ::Array[String]
|
7336
|
+
}
|
7337
|
+
|
7338
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7339
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field
|
7340
|
+
|
7341
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator
|
7342
|
+
|
7343
|
+
attr_accessor values: ::Array[String]
|
7344
|
+
|
7345
|
+
def initialize: (
|
7346
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
|
7347
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
7348
|
+
values: ::Array[String]
|
7349
|
+
) -> void
|
7350
|
+
|
7351
|
+
def to_hash: -> {
|
7352
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field,
|
7353
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator,
|
7354
|
+
values: ::Array[String]
|
7355
|
+
}
|
7356
|
+
|
7357
|
+
type field =
|
7358
|
+
:price_id
|
7359
|
+
| :item_id
|
7360
|
+
| :price_type
|
7361
|
+
| :currency
|
7362
|
+
| :pricing_unit_id
|
7363
|
+
|
7364
|
+
module Field
|
7365
|
+
extend Orb::Internal::Type::Enum
|
7366
|
+
|
7367
|
+
PRICE_ID: :price_id
|
7368
|
+
ITEM_ID: :item_id
|
7369
|
+
PRICE_TYPE: :price_type
|
7370
|
+
CURRENCY: :currency
|
7371
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
7372
|
+
|
7373
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::field]
|
7374
|
+
end
|
7375
|
+
|
7376
|
+
type operator = :includes | :excludes
|
7377
|
+
|
7378
|
+
module Operator
|
7379
|
+
extend Orb::Internal::Type::Enum
|
7380
|
+
|
7381
|
+
INCLUDES: :includes
|
7382
|
+
EXCLUDES: :excludes
|
7383
|
+
|
7384
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::Filter::operator]
|
7385
|
+
end
|
7386
|
+
end
|
7387
|
+
|
7388
|
+
type price_type =
|
7389
|
+
:usage
|
7390
|
+
| :fixed_in_advance
|
7391
|
+
| :fixed_in_arrears
|
7392
|
+
| :fixed
|
7393
|
+
| :in_arrears
|
7394
|
+
|
7395
|
+
module PriceType
|
7396
|
+
extend Orb::Internal::Type::Enum
|
7397
|
+
|
7398
|
+
USAGE: :usage
|
7399
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
7400
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
7401
|
+
FIXED: :fixed
|
7402
|
+
IN_ARREARS: :in_arrears
|
7403
|
+
|
7404
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::UsageDiscount::price_type]
|
7405
|
+
end
|
6629
7406
|
end
|
6630
7407
|
|
6631
7408
|
type amount_discount =
|
6632
7409
|
{
|
6633
7410
|
adjustment_type: :amount_discount,
|
6634
7411
|
amount_discount: String,
|
7412
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
7413
|
+
applies_to_item_ids: ::Array[String]?,
|
6635
7414
|
applies_to_price_ids: ::Array[String]?,
|
6636
|
-
|
7415
|
+
currency: String?,
|
7416
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
|
7417
|
+
is_invoice_level: bool,
|
7418
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
|
6637
7419
|
}
|
6638
7420
|
|
6639
7421
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
@@ -6641,25 +7423,131 @@ module Orb
|
|
6641
7423
|
|
6642
7424
|
attr_accessor amount_discount: String
|
6643
7425
|
|
7426
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?
|
7427
|
+
|
7428
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7429
|
+
|
6644
7430
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
6645
7431
|
|
7432
|
+
attr_accessor currency: String?
|
7433
|
+
|
7434
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?
|
7435
|
+
|
6646
7436
|
attr_reader is_invoice_level: bool?
|
6647
7437
|
|
6648
7438
|
def is_invoice_level=: (bool) -> bool
|
6649
7439
|
|
7440
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
|
7441
|
+
|
6650
7442
|
def initialize: (
|
6651
7443
|
amount_discount: String,
|
7444
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
7445
|
+
?applies_to_item_ids: ::Array[String]?,
|
6652
7446
|
?applies_to_price_ids: ::Array[String]?,
|
7447
|
+
?currency: String?,
|
7448
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
|
6653
7449
|
?is_invoice_level: bool,
|
7450
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?,
|
6654
7451
|
?adjustment_type: :amount_discount
|
6655
7452
|
) -> void
|
6656
7453
|
|
6657
7454
|
def to_hash: -> {
|
6658
7455
|
adjustment_type: :amount_discount,
|
6659
7456
|
amount_discount: String,
|
7457
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all?,
|
7458
|
+
applies_to_item_ids: ::Array[String]?,
|
6660
7459
|
applies_to_price_ids: ::Array[String]?,
|
6661
|
-
|
7460
|
+
currency: String?,
|
7461
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter]?,
|
7462
|
+
is_invoice_level: bool,
|
7463
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type?
|
6662
7464
|
}
|
7465
|
+
|
7466
|
+
type applies_to_all = true
|
7467
|
+
|
7468
|
+
module AppliesToAll
|
7469
|
+
extend Orb::Internal::Type::Enum
|
7470
|
+
|
7471
|
+
TRUE: true
|
7472
|
+
|
7473
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::applies_to_all]
|
7474
|
+
end
|
7475
|
+
|
7476
|
+
type filter =
|
7477
|
+
{
|
7478
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
|
7479
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
7480
|
+
values: ::Array[String]
|
7481
|
+
}
|
7482
|
+
|
7483
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7484
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field
|
7485
|
+
|
7486
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator
|
7487
|
+
|
7488
|
+
attr_accessor values: ::Array[String]
|
7489
|
+
|
7490
|
+
def initialize: (
|
7491
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
|
7492
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
7493
|
+
values: ::Array[String]
|
7494
|
+
) -> void
|
7495
|
+
|
7496
|
+
def to_hash: -> {
|
7497
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field,
|
7498
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator,
|
7499
|
+
values: ::Array[String]
|
7500
|
+
}
|
7501
|
+
|
7502
|
+
type field =
|
7503
|
+
:price_id
|
7504
|
+
| :item_id
|
7505
|
+
| :price_type
|
7506
|
+
| :currency
|
7507
|
+
| :pricing_unit_id
|
7508
|
+
|
7509
|
+
module Field
|
7510
|
+
extend Orb::Internal::Type::Enum
|
7511
|
+
|
7512
|
+
PRICE_ID: :price_id
|
7513
|
+
ITEM_ID: :item_id
|
7514
|
+
PRICE_TYPE: :price_type
|
7515
|
+
CURRENCY: :currency
|
7516
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
7517
|
+
|
7518
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::field]
|
7519
|
+
end
|
7520
|
+
|
7521
|
+
type operator = :includes | :excludes
|
7522
|
+
|
7523
|
+
module Operator
|
7524
|
+
extend Orb::Internal::Type::Enum
|
7525
|
+
|
7526
|
+
INCLUDES: :includes
|
7527
|
+
EXCLUDES: :excludes
|
7528
|
+
|
7529
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::Filter::operator]
|
7530
|
+
end
|
7531
|
+
end
|
7532
|
+
|
7533
|
+
type price_type =
|
7534
|
+
:usage
|
7535
|
+
| :fixed_in_advance
|
7536
|
+
| :fixed_in_arrears
|
7537
|
+
| :fixed
|
7538
|
+
| :in_arrears
|
7539
|
+
|
7540
|
+
module PriceType
|
7541
|
+
extend Orb::Internal::Type::Enum
|
7542
|
+
|
7543
|
+
USAGE: :usage
|
7544
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
7545
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
7546
|
+
FIXED: :fixed
|
7547
|
+
IN_ARREARS: :in_arrears
|
7548
|
+
|
7549
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::AmountDiscount::price_type]
|
7550
|
+
end
|
6663
7551
|
end
|
6664
7552
|
|
6665
7553
|
type minimum =
|
@@ -6667,8 +7555,13 @@ module Orb
|
|
6667
7555
|
adjustment_type: :minimum,
|
6668
7556
|
item_id: String,
|
6669
7557
|
minimum_amount: String,
|
7558
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
|
7559
|
+
applies_to_item_ids: ::Array[String]?,
|
6670
7560
|
applies_to_price_ids: ::Array[String]?,
|
6671
|
-
|
7561
|
+
currency: String?,
|
7562
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
|
7563
|
+
is_invoice_level: bool,
|
7564
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
|
6672
7565
|
}
|
6673
7566
|
|
6674
7567
|
class Minimum < Orb::Internal::Type::BaseModel
|
@@ -6678,17 +7571,32 @@ module Orb
|
|
6678
7571
|
|
6679
7572
|
attr_accessor minimum_amount: String
|
6680
7573
|
|
7574
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?
|
7575
|
+
|
7576
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7577
|
+
|
6681
7578
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
6682
7579
|
|
7580
|
+
attr_accessor currency: String?
|
7581
|
+
|
7582
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?
|
7583
|
+
|
6683
7584
|
attr_reader is_invoice_level: bool?
|
6684
7585
|
|
6685
7586
|
def is_invoice_level=: (bool) -> bool
|
6686
7587
|
|
7588
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
|
7589
|
+
|
6687
7590
|
def initialize: (
|
6688
7591
|
item_id: String,
|
6689
7592
|
minimum_amount: String,
|
7593
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
|
7594
|
+
?applies_to_item_ids: ::Array[String]?,
|
6690
7595
|
?applies_to_price_ids: ::Array[String]?,
|
7596
|
+
?currency: String?,
|
7597
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
|
6691
7598
|
?is_invoice_level: bool,
|
7599
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type?,
|
6692
7600
|
?adjustment_type: :minimum
|
6693
7601
|
) -> void
|
6694
7602
|
|
@@ -6696,17 +7604,113 @@ module Orb
|
|
6696
7604
|
adjustment_type: :minimum,
|
6697
7605
|
item_id: String,
|
6698
7606
|
minimum_amount: String,
|
7607
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all?,
|
7608
|
+
applies_to_item_ids: ::Array[String]?,
|
6699
7609
|
applies_to_price_ids: ::Array[String]?,
|
6700
|
-
|
7610
|
+
currency: String?,
|
7611
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter]?,
|
7612
|
+
is_invoice_level: bool,
|
7613
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type?
|
6701
7614
|
}
|
7615
|
+
|
7616
|
+
type applies_to_all = true
|
7617
|
+
|
7618
|
+
module AppliesToAll
|
7619
|
+
extend Orb::Internal::Type::Enum
|
7620
|
+
|
7621
|
+
TRUE: true
|
7622
|
+
|
7623
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::applies_to_all]
|
7624
|
+
end
|
7625
|
+
|
7626
|
+
type filter =
|
7627
|
+
{
|
7628
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
|
7629
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
|
7630
|
+
values: ::Array[String]
|
7631
|
+
}
|
7632
|
+
|
7633
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7634
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field
|
7635
|
+
|
7636
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator
|
7637
|
+
|
7638
|
+
attr_accessor values: ::Array[String]
|
7639
|
+
|
7640
|
+
def initialize: (
|
7641
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
|
7642
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
|
7643
|
+
values: ::Array[String]
|
7644
|
+
) -> void
|
7645
|
+
|
7646
|
+
def to_hash: -> {
|
7647
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field,
|
7648
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator,
|
7649
|
+
values: ::Array[String]
|
7650
|
+
}
|
7651
|
+
|
7652
|
+
type field =
|
7653
|
+
:price_id
|
7654
|
+
| :item_id
|
7655
|
+
| :price_type
|
7656
|
+
| :currency
|
7657
|
+
| :pricing_unit_id
|
7658
|
+
|
7659
|
+
module Field
|
7660
|
+
extend Orb::Internal::Type::Enum
|
7661
|
+
|
7662
|
+
PRICE_ID: :price_id
|
7663
|
+
ITEM_ID: :item_id
|
7664
|
+
PRICE_TYPE: :price_type
|
7665
|
+
CURRENCY: :currency
|
7666
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
7667
|
+
|
7668
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::field]
|
7669
|
+
end
|
7670
|
+
|
7671
|
+
type operator = :includes | :excludes
|
7672
|
+
|
7673
|
+
module Operator
|
7674
|
+
extend Orb::Internal::Type::Enum
|
7675
|
+
|
7676
|
+
INCLUDES: :includes
|
7677
|
+
EXCLUDES: :excludes
|
7678
|
+
|
7679
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::Filter::operator]
|
7680
|
+
end
|
7681
|
+
end
|
7682
|
+
|
7683
|
+
type price_type =
|
7684
|
+
:usage
|
7685
|
+
| :fixed_in_advance
|
7686
|
+
| :fixed_in_arrears
|
7687
|
+
| :fixed
|
7688
|
+
| :in_arrears
|
7689
|
+
|
7690
|
+
module PriceType
|
7691
|
+
extend Orb::Internal::Type::Enum
|
7692
|
+
|
7693
|
+
USAGE: :usage
|
7694
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
7695
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
7696
|
+
FIXED: :fixed
|
7697
|
+
IN_ARREARS: :in_arrears
|
7698
|
+
|
7699
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Minimum::price_type]
|
7700
|
+
end
|
6702
7701
|
end
|
6703
7702
|
|
6704
7703
|
type maximum =
|
6705
7704
|
{
|
6706
7705
|
adjustment_type: :maximum,
|
6707
7706
|
maximum_amount: String,
|
7707
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
|
7708
|
+
applies_to_item_ids: ::Array[String]?,
|
6708
7709
|
applies_to_price_ids: ::Array[String]?,
|
6709
|
-
|
7710
|
+
currency: String?,
|
7711
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
|
7712
|
+
is_invoice_level: bool,
|
7713
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
|
6710
7714
|
}
|
6711
7715
|
|
6712
7716
|
class Maximum < Orb::Internal::Type::BaseModel
|
@@ -6714,25 +7718,131 @@ module Orb
|
|
6714
7718
|
|
6715
7719
|
attr_accessor maximum_amount: String
|
6716
7720
|
|
7721
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?
|
7722
|
+
|
7723
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
7724
|
+
|
6717
7725
|
attr_accessor applies_to_price_ids: ::Array[String]?
|
6718
7726
|
|
7727
|
+
attr_accessor currency: String?
|
7728
|
+
|
7729
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?
|
7730
|
+
|
6719
7731
|
attr_reader is_invoice_level: bool?
|
6720
7732
|
|
6721
7733
|
def is_invoice_level=: (bool) -> bool
|
6722
7734
|
|
7735
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
|
7736
|
+
|
6723
7737
|
def initialize: (
|
6724
7738
|
maximum_amount: String,
|
7739
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
|
7740
|
+
?applies_to_item_ids: ::Array[String]?,
|
6725
7741
|
?applies_to_price_ids: ::Array[String]?,
|
7742
|
+
?currency: String?,
|
7743
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
|
6726
7744
|
?is_invoice_level: bool,
|
7745
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type?,
|
6727
7746
|
?adjustment_type: :maximum
|
6728
7747
|
) -> void
|
6729
7748
|
|
6730
7749
|
def to_hash: -> {
|
6731
7750
|
adjustment_type: :maximum,
|
6732
7751
|
maximum_amount: String,
|
7752
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all?,
|
7753
|
+
applies_to_item_ids: ::Array[String]?,
|
6733
7754
|
applies_to_price_ids: ::Array[String]?,
|
6734
|
-
|
7755
|
+
currency: String?,
|
7756
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter]?,
|
7757
|
+
is_invoice_level: bool,
|
7758
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type?
|
6735
7759
|
}
|
7760
|
+
|
7761
|
+
type applies_to_all = true
|
7762
|
+
|
7763
|
+
module AppliesToAll
|
7764
|
+
extend Orb::Internal::Type::Enum
|
7765
|
+
|
7766
|
+
TRUE: true
|
7767
|
+
|
7768
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::applies_to_all]
|
7769
|
+
end
|
7770
|
+
|
7771
|
+
type filter =
|
7772
|
+
{
|
7773
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
|
7774
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
|
7775
|
+
values: ::Array[String]
|
7776
|
+
}
|
7777
|
+
|
7778
|
+
class Filter < Orb::Internal::Type::BaseModel
|
7779
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field
|
7780
|
+
|
7781
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator
|
7782
|
+
|
7783
|
+
attr_accessor values: ::Array[String]
|
7784
|
+
|
7785
|
+
def initialize: (
|
7786
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
|
7787
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
|
7788
|
+
values: ::Array[String]
|
7789
|
+
) -> void
|
7790
|
+
|
7791
|
+
def to_hash: -> {
|
7792
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field,
|
7793
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator,
|
7794
|
+
values: ::Array[String]
|
7795
|
+
}
|
7796
|
+
|
7797
|
+
type field =
|
7798
|
+
:price_id
|
7799
|
+
| :item_id
|
7800
|
+
| :price_type
|
7801
|
+
| :currency
|
7802
|
+
| :pricing_unit_id
|
7803
|
+
|
7804
|
+
module Field
|
7805
|
+
extend Orb::Internal::Type::Enum
|
7806
|
+
|
7807
|
+
PRICE_ID: :price_id
|
7808
|
+
ITEM_ID: :item_id
|
7809
|
+
PRICE_TYPE: :price_type
|
7810
|
+
CURRENCY: :currency
|
7811
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
7812
|
+
|
7813
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::field]
|
7814
|
+
end
|
7815
|
+
|
7816
|
+
type operator = :includes | :excludes
|
7817
|
+
|
7818
|
+
module Operator
|
7819
|
+
extend Orb::Internal::Type::Enum
|
7820
|
+
|
7821
|
+
INCLUDES: :includes
|
7822
|
+
EXCLUDES: :excludes
|
7823
|
+
|
7824
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::Filter::operator]
|
7825
|
+
end
|
7826
|
+
end
|
7827
|
+
|
7828
|
+
type price_type =
|
7829
|
+
:usage
|
7830
|
+
| :fixed_in_advance
|
7831
|
+
| :fixed_in_arrears
|
7832
|
+
| :fixed
|
7833
|
+
| :in_arrears
|
7834
|
+
|
7835
|
+
module PriceType
|
7836
|
+
extend Orb::Internal::Type::Enum
|
7837
|
+
|
7838
|
+
USAGE: :usage
|
7839
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
7840
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
7841
|
+
FIXED: :fixed
|
7842
|
+
IN_ARREARS: :in_arrears
|
7843
|
+
|
7844
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Maximum::price_type]
|
7845
|
+
end
|
6736
7846
|
end
|
6737
7847
|
|
6738
7848
|
def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment]
|