orb-billing 0.5.4 → 0.6.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 +26 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/base_model.rb +2 -2
- data/lib/orb/internal/type/union.rb +6 -6
- data/lib/orb/internal/util.rb +5 -1
- data/lib/orb/models/alert.rb +33 -1
- data/lib/orb/models/amount_discount.rb +10 -10
- data/lib/orb/models/credit_note_create_params.rb +9 -9
- data/lib/orb/models/customer_create_params.rb +21 -3
- data/lib/orb/models/customer_update_by_external_id_params.rb +21 -3
- data/lib/orb/models/customer_update_params.rb +21 -3
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_list_response.rb +9 -1
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +1 -1
- data/lib/orb/models/customers/credits/top_up_create_params.rb +1 -1
- data/lib/orb/models/invoice.rb +626 -9
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +624 -9
- data/lib/orb/models/invoice_line_item_create_response.rb +486 -7
- data/lib/orb/models/item.rb +18 -1
- data/lib/orb/models/item_archive_params.rb +14 -0
- data/lib/orb/models/item_create_params.rb +14 -1
- data/lib/orb/models/item_update_params.rb +16 -1
- data/lib/orb/models/percentage_discount.rb +10 -10
- data/lib/orb/models/plan.rb +618 -9
- data/lib/orb/models/plan_create_params.rb +2066 -30
- data/lib/orb/models/plan_set_default_version_params.rb +22 -0
- data/lib/orb/models/plans/external_plan_id/version_create_params.rb +17948 -0
- data/lib/orb/models/plans/external_plan_id/version_create_response.rb +819 -0
- data/lib/orb/models/plans/external_plan_id/version_retrieve_params.rb +24 -0
- data/lib/orb/models/plans/external_plan_id/version_retrieve_response.rb +819 -0
- data/lib/orb/models/plans/external_plan_id_set_default_version_params.rb +24 -0
- data/lib/orb/models/plans/version_create_params.rb +17794 -0
- data/lib/orb/models/plans/version_create_response.rb +814 -0
- data/lib/orb/models/plans/version_retrieve_params.rb +22 -0
- data/lib/orb/models/plans/version_retrieve_response.rb +814 -0
- data/lib/orb/models/price.rb +4124 -70
- data/lib/orb/models/price_create_params.rb +45 -1
- data/lib/orb/models/price_evaluate_params.rb +8529 -21
- data/lib/orb/models/price_evaluate_response.rb +38 -3
- data/lib/orb/models/subscription.rb +730 -54
- data/lib/orb/models/subscription_cancel_response.rb +706 -54
- data/lib/orb/models/subscription_change_apply_response.rb +728 -54
- data/lib/orb/models/subscription_change_cancel_response.rb +728 -54
- data/lib/orb/models/subscription_change_retrieve_response.rb +728 -54
- data/lib/orb/models/subscription_create_params.rb +5992 -1698
- data/lib/orb/models/subscription_create_response.rb +706 -54
- data/lib/orb/models/subscription_fetch_schedule_response.rb +3 -3
- data/lib/orb/models/subscription_price_intervals_params.rb +1392 -76
- data/lib/orb/models/subscription_price_intervals_response.rb +712 -54
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +6005 -1723
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +716 -54
- data/lib/orb/models/subscription_trigger_phase_response.rb +708 -54
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +720 -54
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +728 -54
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +728 -54
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +1 -1
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +720 -54
- data/lib/orb/models/subscription_update_trial_response.rb +706 -54
- data/lib/orb/models/trial_discount.rb +10 -10
- data/lib/orb/models/usage_discount.rb +10 -10
- data/lib/orb/models.rb +4 -0
- data/lib/orb/resources/credit_notes.rb +3 -3
- data/lib/orb/resources/customers/balance_transactions.rb +0 -7
- data/lib/orb/resources/customers.rb +4 -7
- data/lib/orb/resources/dimensional_price_groups.rb +1 -1
- data/lib/orb/resources/items.rb +34 -2
- data/lib/orb/resources/plans/external_plan_id/versions.rb +88 -0
- data/lib/orb/resources/plans/external_plan_id.rb +32 -1
- data/lib/orb/resources/plans/versions.rb +86 -0
- data/lib/orb/resources/plans.rb +33 -2
- data/lib/orb/resources/prices.rb +23 -17
- data/lib/orb/resources/subscriptions.rb +5 -1
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +16 -1
- data/rbi/orb/models/alert.rbi +50 -3
- data/rbi/orb/models/amount_discount.rbi +8 -8
- data/rbi/orb/models/credit_note_create_params.rbi +8 -8
- data/rbi/orb/models/customer_create_params.rbi +38 -4
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +38 -4
- data/rbi/orb/models/customer_update_params.rbi +38 -4
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +2 -2
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +2 -2
- data/rbi/orb/models/invoice.rbi +1451 -35
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1524 -4
- data/rbi/orb/models/invoice_line_item_create_response.rbi +1184 -2
- data/rbi/orb/models/item.rbi +20 -1
- data/rbi/orb/models/item_archive_params.rbi +25 -0
- data/rbi/orb/models/item_create_params.rbi +18 -1
- data/rbi/orb/models/item_update_params.rbi +17 -1
- data/rbi/orb/models/percentage_discount.rbi +10 -10
- data/rbi/orb/models/plan.rbi +1339 -4
- data/rbi/orb/models/plan_create_params.rbi +3833 -29
- data/rbi/orb/models/plan_set_default_version_params.rbi +40 -0
- data/rbi/orb/models/plans/external_plan_id/version_create_params.rbi +32668 -0
- data/rbi/orb/models/plans/external_plan_id/version_create_response.rbi +1562 -0
- data/rbi/orb/models/plans/external_plan_id/version_retrieve_params.rbi +42 -0
- data/rbi/orb/models/plans/external_plan_id/version_retrieve_response.rbi +1562 -0
- data/rbi/orb/models/plans/external_plan_id_set_default_version_params.rbi +45 -0
- data/rbi/orb/models/plans/version_create_params.rbi +32607 -0
- data/rbi/orb/models/plans/version_create_response.rbi +1556 -0
- data/rbi/orb/models/plans/version_retrieve_params.rbi +37 -0
- data/rbi/orb/models/plans/version_retrieve_response.rbi +1558 -0
- data/rbi/orb/models/price.rbi +9447 -441
- data/rbi/orb/models/price_create_params.rbi +80 -0
- data/rbi/orb/models/price_evaluate_params.rbi +15684 -25
- data/rbi/orb/models/price_evaluate_response.rbi +68 -5
- data/rbi/orb/models/subscription.rbi +1654 -44
- data/rbi/orb/models/subscription_cancel_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_apply_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_cancel_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +1692 -44
- data/rbi/orb/models/subscription_create_params.rbi +10400 -2710
- data/rbi/orb/models/subscription_create_response.rbi +1692 -44
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +13 -4
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2401 -49
- data/rbi/orb/models/subscription_price_intervals_response.rbi +1692 -44
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +10423 -2753
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +1692 -44
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +1692 -44
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +2 -2
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +1692 -44
- data/rbi/orb/models/subscription_update_trial_response.rbi +1692 -44
- data/rbi/orb/models/trial_discount.rbi +8 -8
- data/rbi/orb/models/usage_discount.rbi +10 -10
- data/rbi/orb/models.rbi +4 -0
- data/rbi/orb/resources/credit_notes.rbi +3 -3
- data/rbi/orb/resources/customers/balance_transactions.rbi +0 -7
- data/rbi/orb/resources/customers/credits/top_ups.rbi +2 -2
- data/rbi/orb/resources/customers.rbi +7 -7
- data/rbi/orb/resources/dimensional_price_groups.rbi +1 -1
- data/rbi/orb/resources/items.rbi +20 -0
- data/rbi/orb/resources/plans/external_plan_id/versions.rbi +103 -0
- data/rbi/orb/resources/plans/external_plan_id.rbi +23 -1
- data/rbi/orb/resources/plans/versions.rbi +91 -0
- data/rbi/orb/resources/plans.rbi +27 -2
- data/rbi/orb/resources/prices.rbi +27 -17
- data/rbi/orb/resources/subscriptions.rbi +9 -1
- data/sig/orb/models/alert.rbs +20 -3
- data/sig/orb/models/amount_discount.rbs +5 -5
- data/sig/orb/models/credit_note_create_params.rbs +6 -6
- data/sig/orb/models/customer_create_params.rbs +13 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +13 -0
- data/sig/orb/models/customer_update_params.rbs +13 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +7 -2
- data/sig/orb/models/invoice.rbs +558 -4
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +558 -4
- data/sig/orb/models/invoice_line_item_create_response.rbs +414 -2
- data/sig/orb/models/item.rbs +5 -0
- data/sig/orb/models/item_archive_params.rbs +14 -0
- data/sig/orb/models/item_create_params.rbs +10 -2
- data/sig/orb/models/item_update_params.rbs +5 -0
- data/sig/orb/models/percentage_discount.rbs +5 -5
- data/sig/orb/models/plan.rbs +538 -4
- data/sig/orb/models/plan_create_params.rbs +1460 -3
- data/sig/orb/models/plan_set_default_version_params.rbs +20 -0
- data/sig/orb/models/plans/external_plan_id/version_create_params.rbs +12923 -0
- data/sig/orb/models/plans/external_plan_id/version_create_response.rbs +664 -0
- data/sig/orb/models/plans/external_plan_id/version_retrieve_params.rbs +27 -0
- data/sig/orb/models/plans/external_plan_id/version_retrieve_response.rbs +664 -0
- data/sig/orb/models/plans/external_plan_id_set_default_version_params.rbs +25 -0
- data/sig/orb/models/plans/version_create_params.rbs +12898 -0
- data/sig/orb/models/plans/version_create_response.rbs +662 -0
- data/sig/orb/models/plans/version_retrieve_params.rbs +25 -0
- data/sig/orb/models/plans/version_retrieve_response.rbs +662 -0
- data/sig/orb/models/price.rbs +3512 -96
- data/sig/orb/models/price_create_params.rbs +32 -0
- data/sig/orb/models/price_evaluate_params.rbs +6187 -10
- data/sig/orb/models/price_evaluate_response.rbs +41 -4
- data/sig/orb/models/subscription.rbs +609 -29
- data/sig/orb/models/subscription_cancel_response.rbs +609 -29
- data/sig/orb/models/subscription_change_apply_response.rbs +621 -29
- data/sig/orb/models/subscription_change_cancel_response.rbs +621 -29
- data/sig/orb/models/subscription_change_retrieve_response.rbs +621 -29
- data/sig/orb/models/subscription_create_params.rbs +4450 -1466
- data/sig/orb/models/subscription_create_response.rbs +609 -29
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +4 -4
- data/sig/orb/models/subscription_price_intervals_params.rbs +920 -24
- data/sig/orb/models/subscription_price_intervals_response.rbs +609 -29
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +4440 -1466
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +609 -29
- data/sig/orb/models/subscription_trigger_phase_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +609 -29
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +609 -29
- data/sig/orb/models/subscription_update_trial_response.rbs +609 -29
- data/sig/orb/models/trial_discount.rbs +5 -5
- data/sig/orb/models/usage_discount.rbs +5 -5
- data/sig/orb/models.rbs +4 -0
- data/sig/orb/resources/credit_notes.rbs +1 -1
- data/sig/orb/resources/items.rbs +7 -0
- data/sig/orb/resources/plans/external_plan_id/versions.rbs +30 -0
- data/sig/orb/resources/plans/external_plan_id.rbs +8 -0
- data/sig/orb/resources/plans/versions.rbs +28 -0
- data/sig/orb/resources/plans.rbs +8 -0
- data/sig/orb/resources/prices.rbs +3 -3
- data/sig/orb/resources/subscriptions.rbs +2 -0
- metadata +41 -2
@@ -73,9 +73,10 @@ module Orb
|
|
73
73
|
maximum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval],
|
74
74
|
metadata: ::Hash[Symbol, String],
|
75
75
|
minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval],
|
76
|
+
name: String,
|
76
77
|
net_terms: Integer,
|
77
78
|
pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?,
|
78
|
-
plan: Orb::Plan
|
79
|
+
plan: Orb::Plan?,
|
79
80
|
price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval],
|
80
81
|
redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?,
|
81
82
|
start_date: Time,
|
@@ -121,11 +122,13 @@ module Orb
|
|
121
122
|
|
122
123
|
attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval]
|
123
124
|
|
125
|
+
attr_accessor name: String
|
126
|
+
|
124
127
|
attr_accessor net_terms: Integer
|
125
128
|
|
126
129
|
attr_accessor pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?
|
127
130
|
|
128
|
-
attr_accessor plan: Orb::Plan
|
131
|
+
attr_accessor plan: Orb::Plan?
|
129
132
|
|
130
133
|
attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval]
|
131
134
|
|
@@ -158,9 +161,10 @@ module Orb
|
|
158
161
|
maximum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval],
|
159
162
|
metadata: ::Hash[Symbol, String],
|
160
163
|
minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval],
|
164
|
+
name: String,
|
161
165
|
net_terms: Integer,
|
162
166
|
pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?,
|
163
|
-
plan: Orb::Plan
|
167
|
+
plan: Orb::Plan?,
|
164
168
|
price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval],
|
165
169
|
redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?,
|
166
170
|
start_date: Time,
|
@@ -188,9 +192,10 @@ module Orb
|
|
188
192
|
maximum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval],
|
189
193
|
metadata: ::Hash[Symbol, String],
|
190
194
|
minimum_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval],
|
195
|
+
name: String,
|
191
196
|
net_terms: Integer,
|
192
197
|
pending_subscription_change: Orb::Models::SubscriptionChangeApplyResponse::Subscription::PendingSubscriptionChange?,
|
193
|
-
plan: Orb::Plan
|
198
|
+
plan: Orb::Plan?,
|
194
199
|
price_intervals: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::PriceInterval],
|
195
200
|
redeemed_coupon: Orb::Models::SubscriptionChangeApplyResponse::Subscription::RedeemedCoupon?,
|
196
201
|
start_date: Time,
|
@@ -250,6 +255,7 @@ module Orb
|
|
250
255
|
id: String,
|
251
256
|
adjustment_type: :usage_discount,
|
252
257
|
applies_to_price_ids: ::Array[String],
|
258
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
|
253
259
|
is_invoice_level: bool,
|
254
260
|
plan_phase_order: Integer?,
|
255
261
|
reason: String?,
|
@@ -263,6 +269,8 @@ module Orb
|
|
263
269
|
|
264
270
|
attr_accessor applies_to_price_ids: ::Array[String]
|
265
271
|
|
272
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter]
|
273
|
+
|
266
274
|
attr_accessor is_invoice_level: bool
|
267
275
|
|
268
276
|
attr_accessor plan_phase_order: Integer?
|
@@ -274,6 +282,7 @@ module Orb
|
|
274
282
|
def initialize: (
|
275
283
|
id: String,
|
276
284
|
applies_to_price_ids: ::Array[String],
|
285
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
|
277
286
|
is_invoice_level: bool,
|
278
287
|
plan_phase_order: Integer?,
|
279
288
|
reason: String?,
|
@@ -285,11 +294,69 @@ module Orb
|
|
285
294
|
id: String,
|
286
295
|
adjustment_type: :usage_discount,
|
287
296
|
applies_to_price_ids: ::Array[String],
|
297
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
|
288
298
|
is_invoice_level: bool,
|
289
299
|
plan_phase_order: Integer?,
|
290
300
|
reason: String?,
|
291
301
|
usage_discount: Float
|
292
302
|
}
|
303
|
+
|
304
|
+
type filter =
|
305
|
+
{
|
306
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
|
307
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
|
308
|
+
values: ::Array[String]
|
309
|
+
}
|
310
|
+
|
311
|
+
class Filter < Orb::Internal::Type::BaseModel
|
312
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field
|
313
|
+
|
314
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator
|
315
|
+
|
316
|
+
attr_accessor values: ::Array[String]
|
317
|
+
|
318
|
+
def initialize: (
|
319
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
|
320
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
|
321
|
+
values: ::Array[String]
|
322
|
+
) -> void
|
323
|
+
|
324
|
+
def to_hash: -> {
|
325
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
|
326
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
|
327
|
+
values: ::Array[String]
|
328
|
+
}
|
329
|
+
|
330
|
+
type field =
|
331
|
+
:price_id
|
332
|
+
| :item_id
|
333
|
+
| :price_type
|
334
|
+
| :currency
|
335
|
+
| :pricing_unit_id
|
336
|
+
|
337
|
+
module Field
|
338
|
+
extend Orb::Internal::Type::Enum
|
339
|
+
|
340
|
+
PRICE_ID: :price_id
|
341
|
+
ITEM_ID: :item_id
|
342
|
+
PRICE_TYPE: :price_type
|
343
|
+
CURRENCY: :currency
|
344
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
345
|
+
|
346
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field]
|
347
|
+
end
|
348
|
+
|
349
|
+
type operator = :includes | :excludes
|
350
|
+
|
351
|
+
module Operator
|
352
|
+
extend Orb::Internal::Type::Enum
|
353
|
+
|
354
|
+
INCLUDES: :includes
|
355
|
+
EXCLUDES: :excludes
|
356
|
+
|
357
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator]
|
358
|
+
end
|
359
|
+
end
|
293
360
|
end
|
294
361
|
|
295
362
|
type amount_discount =
|
@@ -298,6 +365,7 @@ module Orb
|
|
298
365
|
adjustment_type: :amount_discount,
|
299
366
|
amount_discount: String,
|
300
367
|
applies_to_price_ids: ::Array[String],
|
368
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
|
301
369
|
is_invoice_level: bool,
|
302
370
|
plan_phase_order: Integer?,
|
303
371
|
reason: String?
|
@@ -312,6 +380,8 @@ module Orb
|
|
312
380
|
|
313
381
|
attr_accessor applies_to_price_ids: ::Array[String]
|
314
382
|
|
383
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter]
|
384
|
+
|
315
385
|
attr_accessor is_invoice_level: bool
|
316
386
|
|
317
387
|
attr_accessor plan_phase_order: Integer?
|
@@ -322,6 +392,7 @@ module Orb
|
|
322
392
|
id: String,
|
323
393
|
amount_discount: String,
|
324
394
|
applies_to_price_ids: ::Array[String],
|
395
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
|
325
396
|
is_invoice_level: bool,
|
326
397
|
plan_phase_order: Integer?,
|
327
398
|
reason: String?,
|
@@ -333,10 +404,68 @@ module Orb
|
|
333
404
|
adjustment_type: :amount_discount,
|
334
405
|
amount_discount: String,
|
335
406
|
applies_to_price_ids: ::Array[String],
|
407
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
|
336
408
|
is_invoice_level: bool,
|
337
409
|
plan_phase_order: Integer?,
|
338
410
|
reason: String?
|
339
411
|
}
|
412
|
+
|
413
|
+
type filter =
|
414
|
+
{
|
415
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
|
416
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
|
417
|
+
values: ::Array[String]
|
418
|
+
}
|
419
|
+
|
420
|
+
class Filter < Orb::Internal::Type::BaseModel
|
421
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field
|
422
|
+
|
423
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator
|
424
|
+
|
425
|
+
attr_accessor values: ::Array[String]
|
426
|
+
|
427
|
+
def initialize: (
|
428
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
|
429
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
|
430
|
+
values: ::Array[String]
|
431
|
+
) -> void
|
432
|
+
|
433
|
+
def to_hash: -> {
|
434
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
|
435
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
|
436
|
+
values: ::Array[String]
|
437
|
+
}
|
438
|
+
|
439
|
+
type field =
|
440
|
+
:price_id
|
441
|
+
| :item_id
|
442
|
+
| :price_type
|
443
|
+
| :currency
|
444
|
+
| :pricing_unit_id
|
445
|
+
|
446
|
+
module Field
|
447
|
+
extend Orb::Internal::Type::Enum
|
448
|
+
|
449
|
+
PRICE_ID: :price_id
|
450
|
+
ITEM_ID: :item_id
|
451
|
+
PRICE_TYPE: :price_type
|
452
|
+
CURRENCY: :currency
|
453
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
454
|
+
|
455
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field]
|
456
|
+
end
|
457
|
+
|
458
|
+
type operator = :includes | :excludes
|
459
|
+
|
460
|
+
module Operator
|
461
|
+
extend Orb::Internal::Type::Enum
|
462
|
+
|
463
|
+
INCLUDES: :includes
|
464
|
+
EXCLUDES: :excludes
|
465
|
+
|
466
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator]
|
467
|
+
end
|
468
|
+
end
|
340
469
|
end
|
341
470
|
|
342
471
|
type percentage_discount =
|
@@ -344,6 +473,7 @@ module Orb
|
|
344
473
|
id: String,
|
345
474
|
adjustment_type: :percentage_discount,
|
346
475
|
applies_to_price_ids: ::Array[String],
|
476
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
|
347
477
|
is_invoice_level: bool,
|
348
478
|
percentage_discount: Float,
|
349
479
|
plan_phase_order: Integer?,
|
@@ -357,6 +487,8 @@ module Orb
|
|
357
487
|
|
358
488
|
attr_accessor applies_to_price_ids: ::Array[String]
|
359
489
|
|
490
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter]
|
491
|
+
|
360
492
|
attr_accessor is_invoice_level: bool
|
361
493
|
|
362
494
|
attr_accessor percentage_discount: Float
|
@@ -368,6 +500,7 @@ module Orb
|
|
368
500
|
def initialize: (
|
369
501
|
id: String,
|
370
502
|
applies_to_price_ids: ::Array[String],
|
503
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
|
371
504
|
is_invoice_level: bool,
|
372
505
|
percentage_discount: Float,
|
373
506
|
plan_phase_order: Integer?,
|
@@ -379,11 +512,69 @@ module Orb
|
|
379
512
|
id: String,
|
380
513
|
adjustment_type: :percentage_discount,
|
381
514
|
applies_to_price_ids: ::Array[String],
|
515
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
|
382
516
|
is_invoice_level: bool,
|
383
517
|
percentage_discount: Float,
|
384
518
|
plan_phase_order: Integer?,
|
385
519
|
reason: String?
|
386
520
|
}
|
521
|
+
|
522
|
+
type filter =
|
523
|
+
{
|
524
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
|
525
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
|
526
|
+
values: ::Array[String]
|
527
|
+
}
|
528
|
+
|
529
|
+
class Filter < Orb::Internal::Type::BaseModel
|
530
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field
|
531
|
+
|
532
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator
|
533
|
+
|
534
|
+
attr_accessor values: ::Array[String]
|
535
|
+
|
536
|
+
def initialize: (
|
537
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
|
538
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
|
539
|
+
values: ::Array[String]
|
540
|
+
) -> void
|
541
|
+
|
542
|
+
def to_hash: -> {
|
543
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
|
544
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
|
545
|
+
values: ::Array[String]
|
546
|
+
}
|
547
|
+
|
548
|
+
type field =
|
549
|
+
:price_id
|
550
|
+
| :item_id
|
551
|
+
| :price_type
|
552
|
+
| :currency
|
553
|
+
| :pricing_unit_id
|
554
|
+
|
555
|
+
module Field
|
556
|
+
extend Orb::Internal::Type::Enum
|
557
|
+
|
558
|
+
PRICE_ID: :price_id
|
559
|
+
ITEM_ID: :item_id
|
560
|
+
PRICE_TYPE: :price_type
|
561
|
+
CURRENCY: :currency
|
562
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
563
|
+
|
564
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field]
|
565
|
+
end
|
566
|
+
|
567
|
+
type operator = :includes | :excludes
|
568
|
+
|
569
|
+
module Operator
|
570
|
+
extend Orb::Internal::Type::Enum
|
571
|
+
|
572
|
+
INCLUDES: :includes
|
573
|
+
EXCLUDES: :excludes
|
574
|
+
|
575
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator]
|
576
|
+
end
|
577
|
+
end
|
387
578
|
end
|
388
579
|
|
389
580
|
type minimum =
|
@@ -391,6 +582,7 @@ module Orb
|
|
391
582
|
id: String,
|
392
583
|
adjustment_type: :minimum,
|
393
584
|
applies_to_price_ids: ::Array[String],
|
585
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter],
|
394
586
|
is_invoice_level: bool,
|
395
587
|
item_id: String,
|
396
588
|
minimum_amount: String,
|
@@ -405,6 +597,8 @@ module Orb
|
|
405
597
|
|
406
598
|
attr_accessor applies_to_price_ids: ::Array[String]
|
407
599
|
|
600
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter]
|
601
|
+
|
408
602
|
attr_accessor is_invoice_level: bool
|
409
603
|
|
410
604
|
attr_accessor item_id: String
|
@@ -418,6 +612,7 @@ module Orb
|
|
418
612
|
def initialize: (
|
419
613
|
id: String,
|
420
614
|
applies_to_price_ids: ::Array[String],
|
615
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter],
|
421
616
|
is_invoice_level: bool,
|
422
617
|
item_id: String,
|
423
618
|
minimum_amount: String,
|
@@ -430,12 +625,70 @@ module Orb
|
|
430
625
|
id: String,
|
431
626
|
adjustment_type: :minimum,
|
432
627
|
applies_to_price_ids: ::Array[String],
|
628
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter],
|
433
629
|
is_invoice_level: bool,
|
434
630
|
item_id: String,
|
435
631
|
minimum_amount: String,
|
436
632
|
plan_phase_order: Integer?,
|
437
633
|
reason: String?
|
438
634
|
}
|
635
|
+
|
636
|
+
type filter =
|
637
|
+
{
|
638
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field,
|
639
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
|
640
|
+
values: ::Array[String]
|
641
|
+
}
|
642
|
+
|
643
|
+
class Filter < Orb::Internal::Type::BaseModel
|
644
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field
|
645
|
+
|
646
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator
|
647
|
+
|
648
|
+
attr_accessor values: ::Array[String]
|
649
|
+
|
650
|
+
def initialize: (
|
651
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field,
|
652
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
|
653
|
+
values: ::Array[String]
|
654
|
+
) -> void
|
655
|
+
|
656
|
+
def to_hash: -> {
|
657
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field,
|
658
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
|
659
|
+
values: ::Array[String]
|
660
|
+
}
|
661
|
+
|
662
|
+
type field =
|
663
|
+
:price_id
|
664
|
+
| :item_id
|
665
|
+
| :price_type
|
666
|
+
| :currency
|
667
|
+
| :pricing_unit_id
|
668
|
+
|
669
|
+
module Field
|
670
|
+
extend Orb::Internal::Type::Enum
|
671
|
+
|
672
|
+
PRICE_ID: :price_id
|
673
|
+
ITEM_ID: :item_id
|
674
|
+
PRICE_TYPE: :price_type
|
675
|
+
CURRENCY: :currency
|
676
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
677
|
+
|
678
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::field]
|
679
|
+
end
|
680
|
+
|
681
|
+
type operator = :includes | :excludes
|
682
|
+
|
683
|
+
module Operator
|
684
|
+
extend Orb::Internal::Type::Enum
|
685
|
+
|
686
|
+
INCLUDES: :includes
|
687
|
+
EXCLUDES: :excludes
|
688
|
+
|
689
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Minimum::Filter::operator]
|
690
|
+
end
|
691
|
+
end
|
439
692
|
end
|
440
693
|
|
441
694
|
type maximum =
|
@@ -443,6 +696,7 @@ module Orb
|
|
443
696
|
id: String,
|
444
697
|
adjustment_type: :maximum,
|
445
698
|
applies_to_price_ids: ::Array[String],
|
699
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter],
|
446
700
|
is_invoice_level: bool,
|
447
701
|
maximum_amount: String,
|
448
702
|
plan_phase_order: Integer?,
|
@@ -456,6 +710,8 @@ module Orb
|
|
456
710
|
|
457
711
|
attr_accessor applies_to_price_ids: ::Array[String]
|
458
712
|
|
713
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter]
|
714
|
+
|
459
715
|
attr_accessor is_invoice_level: bool
|
460
716
|
|
461
717
|
attr_accessor maximum_amount: String
|
@@ -467,6 +723,7 @@ module Orb
|
|
467
723
|
def initialize: (
|
468
724
|
id: String,
|
469
725
|
applies_to_price_ids: ::Array[String],
|
726
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter],
|
470
727
|
is_invoice_level: bool,
|
471
728
|
maximum_amount: String,
|
472
729
|
plan_phase_order: Integer?,
|
@@ -478,11 +735,69 @@ module Orb
|
|
478
735
|
id: String,
|
479
736
|
adjustment_type: :maximum,
|
480
737
|
applies_to_price_ids: ::Array[String],
|
738
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter],
|
481
739
|
is_invoice_level: bool,
|
482
740
|
maximum_amount: String,
|
483
741
|
plan_phase_order: Integer?,
|
484
742
|
reason: String?
|
485
743
|
}
|
744
|
+
|
745
|
+
type filter =
|
746
|
+
{
|
747
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field,
|
748
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator,
|
749
|
+
values: ::Array[String]
|
750
|
+
}
|
751
|
+
|
752
|
+
class Filter < Orb::Internal::Type::BaseModel
|
753
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field
|
754
|
+
|
755
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator
|
756
|
+
|
757
|
+
attr_accessor values: ::Array[String]
|
758
|
+
|
759
|
+
def initialize: (
|
760
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field,
|
761
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator,
|
762
|
+
values: ::Array[String]
|
763
|
+
) -> void
|
764
|
+
|
765
|
+
def to_hash: -> {
|
766
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::field,
|
767
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::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::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::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::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::Adjustment::Maximum::Filter::operator]
|
799
|
+
end
|
800
|
+
end
|
486
801
|
end
|
487
802
|
|
488
803
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::AdjustmentInterval::adjustment]
|
@@ -519,127 +834,298 @@ module Orb
|
|
519
834
|
type amount =
|
520
835
|
{
|
521
836
|
amount_discount: String,
|
522
|
-
applies_to_price_ids: ::Array[String],
|
523
837
|
applies_to_price_interval_ids: ::Array[String],
|
524
838
|
discount_type: :amount,
|
525
839
|
end_date: Time?,
|
840
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter],
|
526
841
|
start_date: Time
|
527
842
|
}
|
528
843
|
|
529
844
|
class Amount < Orb::Internal::Type::BaseModel
|
530
845
|
attr_accessor amount_discount: String
|
531
846
|
|
532
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
533
|
-
|
534
847
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
535
848
|
|
536
849
|
attr_accessor discount_type: :amount
|
537
850
|
|
538
851
|
attr_accessor end_date: Time?
|
539
852
|
|
853
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter]
|
854
|
+
|
540
855
|
attr_accessor start_date: Time
|
541
856
|
|
542
857
|
def initialize: (
|
543
858
|
amount_discount: String,
|
544
|
-
applies_to_price_ids: ::Array[String],
|
545
859
|
applies_to_price_interval_ids: ::Array[String],
|
546
860
|
end_date: Time?,
|
861
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter],
|
547
862
|
start_date: Time,
|
548
863
|
?discount_type: :amount
|
549
864
|
) -> void
|
550
865
|
|
551
866
|
def to_hash: -> {
|
552
867
|
amount_discount: String,
|
553
|
-
applies_to_price_ids: ::Array[String],
|
554
868
|
applies_to_price_interval_ids: ::Array[String],
|
555
869
|
discount_type: :amount,
|
556
870
|
end_date: Time?,
|
871
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter],
|
557
872
|
start_date: Time
|
558
873
|
}
|
874
|
+
|
875
|
+
type filter =
|
876
|
+
{
|
877
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field,
|
878
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator,
|
879
|
+
values: ::Array[String]
|
880
|
+
}
|
881
|
+
|
882
|
+
class Filter < Orb::Internal::Type::BaseModel
|
883
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field
|
884
|
+
|
885
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator
|
886
|
+
|
887
|
+
attr_accessor values: ::Array[String]
|
888
|
+
|
889
|
+
def initialize: (
|
890
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field,
|
891
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator,
|
892
|
+
values: ::Array[String]
|
893
|
+
) -> void
|
894
|
+
|
895
|
+
def to_hash: -> {
|
896
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field,
|
897
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator,
|
898
|
+
values: ::Array[String]
|
899
|
+
}
|
900
|
+
|
901
|
+
type field =
|
902
|
+
:price_id
|
903
|
+
| :item_id
|
904
|
+
| :price_type
|
905
|
+
| :currency
|
906
|
+
| :pricing_unit_id
|
907
|
+
|
908
|
+
module Field
|
909
|
+
extend Orb::Internal::Type::Enum
|
910
|
+
|
911
|
+
PRICE_ID: :price_id
|
912
|
+
ITEM_ID: :item_id
|
913
|
+
PRICE_TYPE: :price_type
|
914
|
+
CURRENCY: :currency
|
915
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
916
|
+
|
917
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::field]
|
918
|
+
end
|
919
|
+
|
920
|
+
type operator = :includes | :excludes
|
921
|
+
|
922
|
+
module Operator
|
923
|
+
extend Orb::Internal::Type::Enum
|
924
|
+
|
925
|
+
INCLUDES: :includes
|
926
|
+
EXCLUDES: :excludes
|
927
|
+
|
928
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Amount::Filter::operator]
|
929
|
+
end
|
930
|
+
end
|
559
931
|
end
|
560
932
|
|
561
933
|
type percentage =
|
562
934
|
{
|
563
|
-
applies_to_price_ids: ::Array[String],
|
564
935
|
applies_to_price_interval_ids: ::Array[String],
|
565
936
|
discount_type: :percentage,
|
566
937
|
end_date: Time?,
|
938
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter],
|
567
939
|
percentage_discount: Float,
|
568
940
|
start_date: Time
|
569
941
|
}
|
570
942
|
|
571
943
|
class Percentage < Orb::Internal::Type::BaseModel
|
572
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
573
|
-
|
574
944
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
575
945
|
|
576
946
|
attr_accessor discount_type: :percentage
|
577
947
|
|
578
948
|
attr_accessor end_date: Time?
|
579
949
|
|
950
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter]
|
951
|
+
|
580
952
|
attr_accessor percentage_discount: Float
|
581
953
|
|
582
954
|
attr_accessor start_date: Time
|
583
955
|
|
584
956
|
def initialize: (
|
585
|
-
applies_to_price_ids: ::Array[String],
|
586
957
|
applies_to_price_interval_ids: ::Array[String],
|
587
958
|
end_date: Time?,
|
959
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter],
|
588
960
|
percentage_discount: Float,
|
589
961
|
start_date: Time,
|
590
962
|
?discount_type: :percentage
|
591
963
|
) -> void
|
592
964
|
|
593
965
|
def to_hash: -> {
|
594
|
-
applies_to_price_ids: ::Array[String],
|
595
966
|
applies_to_price_interval_ids: ::Array[String],
|
596
967
|
discount_type: :percentage,
|
597
968
|
end_date: Time?,
|
969
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter],
|
598
970
|
percentage_discount: Float,
|
599
971
|
start_date: Time
|
600
972
|
}
|
973
|
+
|
974
|
+
type filter =
|
975
|
+
{
|
976
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field,
|
977
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator,
|
978
|
+
values: ::Array[String]
|
979
|
+
}
|
980
|
+
|
981
|
+
class Filter < Orb::Internal::Type::BaseModel
|
982
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field
|
983
|
+
|
984
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator
|
985
|
+
|
986
|
+
attr_accessor values: ::Array[String]
|
987
|
+
|
988
|
+
def initialize: (
|
989
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field,
|
990
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator,
|
991
|
+
values: ::Array[String]
|
992
|
+
) -> void
|
993
|
+
|
994
|
+
def to_hash: -> {
|
995
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field,
|
996
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator,
|
997
|
+
values: ::Array[String]
|
998
|
+
}
|
999
|
+
|
1000
|
+
type field =
|
1001
|
+
:price_id
|
1002
|
+
| :item_id
|
1003
|
+
| :price_type
|
1004
|
+
| :currency
|
1005
|
+
| :pricing_unit_id
|
1006
|
+
|
1007
|
+
module Field
|
1008
|
+
extend Orb::Internal::Type::Enum
|
1009
|
+
|
1010
|
+
PRICE_ID: :price_id
|
1011
|
+
ITEM_ID: :item_id
|
1012
|
+
PRICE_TYPE: :price_type
|
1013
|
+
CURRENCY: :currency
|
1014
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
1015
|
+
|
1016
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::field]
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
type operator = :includes | :excludes
|
1020
|
+
|
1021
|
+
module Operator
|
1022
|
+
extend Orb::Internal::Type::Enum
|
1023
|
+
|
1024
|
+
INCLUDES: :includes
|
1025
|
+
EXCLUDES: :excludes
|
1026
|
+
|
1027
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Percentage::Filter::operator]
|
1028
|
+
end
|
1029
|
+
end
|
601
1030
|
end
|
602
1031
|
|
603
1032
|
type usage =
|
604
1033
|
{
|
605
|
-
applies_to_price_ids: ::Array[String],
|
606
1034
|
applies_to_price_interval_ids: ::Array[String],
|
607
1035
|
discount_type: :usage,
|
608
1036
|
end_date: Time?,
|
1037
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter],
|
609
1038
|
start_date: Time,
|
610
1039
|
usage_discount: Float
|
611
1040
|
}
|
612
1041
|
|
613
1042
|
class Usage < Orb::Internal::Type::BaseModel
|
614
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
615
|
-
|
616
1043
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
617
1044
|
|
618
1045
|
attr_accessor discount_type: :usage
|
619
1046
|
|
620
1047
|
attr_accessor end_date: Time?
|
621
1048
|
|
1049
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter]
|
1050
|
+
|
622
1051
|
attr_accessor start_date: Time
|
623
1052
|
|
624
1053
|
attr_accessor usage_discount: Float
|
625
1054
|
|
626
1055
|
def initialize: (
|
627
|
-
applies_to_price_ids: ::Array[String],
|
628
1056
|
applies_to_price_interval_ids: ::Array[String],
|
629
1057
|
end_date: Time?,
|
1058
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter],
|
630
1059
|
start_date: Time,
|
631
1060
|
usage_discount: Float,
|
632
1061
|
?discount_type: :usage
|
633
1062
|
) -> void
|
634
1063
|
|
635
1064
|
def to_hash: -> {
|
636
|
-
applies_to_price_ids: ::Array[String],
|
637
1065
|
applies_to_price_interval_ids: ::Array[String],
|
638
1066
|
discount_type: :usage,
|
639
1067
|
end_date: Time?,
|
1068
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter],
|
640
1069
|
start_date: Time,
|
641
1070
|
usage_discount: Float
|
642
1071
|
}
|
1072
|
+
|
1073
|
+
type filter =
|
1074
|
+
{
|
1075
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field,
|
1076
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator,
|
1077
|
+
values: ::Array[String]
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
class Filter < Orb::Internal::Type::BaseModel
|
1081
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field
|
1082
|
+
|
1083
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator
|
1084
|
+
|
1085
|
+
attr_accessor values: ::Array[String]
|
1086
|
+
|
1087
|
+
def initialize: (
|
1088
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field,
|
1089
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator,
|
1090
|
+
values: ::Array[String]
|
1091
|
+
) -> void
|
1092
|
+
|
1093
|
+
def to_hash: -> {
|
1094
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field,
|
1095
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator,
|
1096
|
+
values: ::Array[String]
|
1097
|
+
}
|
1098
|
+
|
1099
|
+
type field =
|
1100
|
+
:price_id
|
1101
|
+
| :item_id
|
1102
|
+
| :price_type
|
1103
|
+
| :currency
|
1104
|
+
| :pricing_unit_id
|
1105
|
+
|
1106
|
+
module Field
|
1107
|
+
extend Orb::Internal::Type::Enum
|
1108
|
+
|
1109
|
+
PRICE_ID: :price_id
|
1110
|
+
ITEM_ID: :item_id
|
1111
|
+
PRICE_TYPE: :price_type
|
1112
|
+
CURRENCY: :currency
|
1113
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
1114
|
+
|
1115
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::field]
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
type operator = :includes | :excludes
|
1119
|
+
|
1120
|
+
module Operator
|
1121
|
+
extend Orb::Internal::Type::Enum
|
1122
|
+
|
1123
|
+
INCLUDES: :includes
|
1124
|
+
EXCLUDES: :excludes
|
1125
|
+
|
1126
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::DiscountInterval::Usage::Filter::operator]
|
1127
|
+
end
|
1128
|
+
end
|
643
1129
|
end
|
644
1130
|
|
645
1131
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::discount_interval]
|
@@ -679,76 +1165,182 @@ module Orb
|
|
679
1165
|
|
680
1166
|
type maximum_interval =
|
681
1167
|
{
|
682
|
-
applies_to_price_ids: ::Array[String],
|
683
1168
|
applies_to_price_interval_ids: ::Array[String],
|
684
1169
|
end_date: Time?,
|
1170
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter],
|
685
1171
|
maximum_amount: String,
|
686
1172
|
start_date: Time
|
687
1173
|
}
|
688
1174
|
|
689
1175
|
class MaximumInterval < Orb::Internal::Type::BaseModel
|
690
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
691
|
-
|
692
1176
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
693
1177
|
|
694
1178
|
attr_accessor end_date: Time?
|
695
1179
|
|
1180
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter]
|
1181
|
+
|
696
1182
|
attr_accessor maximum_amount: String
|
697
1183
|
|
698
1184
|
attr_accessor start_date: Time
|
699
1185
|
|
700
1186
|
def initialize: (
|
701
|
-
applies_to_price_ids: ::Array[String],
|
702
1187
|
applies_to_price_interval_ids: ::Array[String],
|
703
1188
|
end_date: Time?,
|
1189
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter],
|
704
1190
|
maximum_amount: String,
|
705
1191
|
start_date: Time
|
706
1192
|
) -> void
|
707
1193
|
|
708
1194
|
def to_hash: -> {
|
709
|
-
applies_to_price_ids: ::Array[String],
|
710
1195
|
applies_to_price_interval_ids: ::Array[String],
|
711
1196
|
end_date: Time?,
|
1197
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter],
|
712
1198
|
maximum_amount: String,
|
713
1199
|
start_date: Time
|
714
1200
|
}
|
1201
|
+
|
1202
|
+
type filter =
|
1203
|
+
{
|
1204
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field,
|
1205
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator,
|
1206
|
+
values: ::Array[String]
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
class Filter < Orb::Internal::Type::BaseModel
|
1210
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field
|
1211
|
+
|
1212
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator
|
1213
|
+
|
1214
|
+
attr_accessor values: ::Array[String]
|
1215
|
+
|
1216
|
+
def initialize: (
|
1217
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field,
|
1218
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator,
|
1219
|
+
values: ::Array[String]
|
1220
|
+
) -> void
|
1221
|
+
|
1222
|
+
def to_hash: -> {
|
1223
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field,
|
1224
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator,
|
1225
|
+
values: ::Array[String]
|
1226
|
+
}
|
1227
|
+
|
1228
|
+
type field =
|
1229
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
1230
|
+
|
1231
|
+
module Field
|
1232
|
+
extend Orb::Internal::Type::Enum
|
1233
|
+
|
1234
|
+
PRICE_ID: :price_id
|
1235
|
+
ITEM_ID: :item_id
|
1236
|
+
PRICE_TYPE: :price_type
|
1237
|
+
CURRENCY: :currency
|
1238
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
1239
|
+
|
1240
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::field]
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
type operator = :includes | :excludes
|
1244
|
+
|
1245
|
+
module Operator
|
1246
|
+
extend Orb::Internal::Type::Enum
|
1247
|
+
|
1248
|
+
INCLUDES: :includes
|
1249
|
+
EXCLUDES: :excludes
|
1250
|
+
|
1251
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MaximumInterval::Filter::operator]
|
1252
|
+
end
|
1253
|
+
end
|
715
1254
|
end
|
716
1255
|
|
717
1256
|
type minimum_interval =
|
718
1257
|
{
|
719
|
-
applies_to_price_ids: ::Array[String],
|
720
1258
|
applies_to_price_interval_ids: ::Array[String],
|
721
1259
|
end_date: Time?,
|
1260
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter],
|
722
1261
|
minimum_amount: String,
|
723
1262
|
start_date: Time
|
724
1263
|
}
|
725
1264
|
|
726
1265
|
class MinimumInterval < Orb::Internal::Type::BaseModel
|
727
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
728
|
-
|
729
1266
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
730
1267
|
|
731
1268
|
attr_accessor end_date: Time?
|
732
1269
|
|
1270
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter]
|
1271
|
+
|
733
1272
|
attr_accessor minimum_amount: String
|
734
1273
|
|
735
1274
|
attr_accessor start_date: Time
|
736
1275
|
|
737
1276
|
def initialize: (
|
738
|
-
applies_to_price_ids: ::Array[String],
|
739
1277
|
applies_to_price_interval_ids: ::Array[String],
|
740
1278
|
end_date: Time?,
|
1279
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter],
|
741
1280
|
minimum_amount: String,
|
742
1281
|
start_date: Time
|
743
1282
|
) -> void
|
744
1283
|
|
745
1284
|
def to_hash: -> {
|
746
|
-
applies_to_price_ids: ::Array[String],
|
747
1285
|
applies_to_price_interval_ids: ::Array[String],
|
748
1286
|
end_date: Time?,
|
1287
|
+
filters: ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter],
|
749
1288
|
minimum_amount: String,
|
750
1289
|
start_date: Time
|
751
1290
|
}
|
1291
|
+
|
1292
|
+
type filter =
|
1293
|
+
{
|
1294
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field,
|
1295
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator,
|
1296
|
+
values: ::Array[String]
|
1297
|
+
}
|
1298
|
+
|
1299
|
+
class Filter < Orb::Internal::Type::BaseModel
|
1300
|
+
attr_accessor field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field
|
1301
|
+
|
1302
|
+
attr_accessor operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator
|
1303
|
+
|
1304
|
+
attr_accessor values: ::Array[String]
|
1305
|
+
|
1306
|
+
def initialize: (
|
1307
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field,
|
1308
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator,
|
1309
|
+
values: ::Array[String]
|
1310
|
+
) -> void
|
1311
|
+
|
1312
|
+
def to_hash: -> {
|
1313
|
+
field: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field,
|
1314
|
+
operator: Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator,
|
1315
|
+
values: ::Array[String]
|
1316
|
+
}
|
1317
|
+
|
1318
|
+
type field =
|
1319
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
1320
|
+
|
1321
|
+
module Field
|
1322
|
+
extend Orb::Internal::Type::Enum
|
1323
|
+
|
1324
|
+
PRICE_ID: :price_id
|
1325
|
+
ITEM_ID: :item_id
|
1326
|
+
PRICE_TYPE: :price_type
|
1327
|
+
CURRENCY: :currency
|
1328
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
1329
|
+
|
1330
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::field]
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
type operator = :includes | :excludes
|
1334
|
+
|
1335
|
+
module Operator
|
1336
|
+
extend Orb::Internal::Type::Enum
|
1337
|
+
|
1338
|
+
INCLUDES: :includes
|
1339
|
+
EXCLUDES: :excludes
|
1340
|
+
|
1341
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionChangeApplyResponse::Subscription::MinimumInterval::Filter::operator]
|
1342
|
+
end
|
1343
|
+
end
|
752
1344
|
end
|
753
1345
|
|
754
1346
|
type pending_subscription_change = { id: String }
|