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
@@ -20,9 +20,10 @@ module Orb
|
|
20
20
|
maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval],
|
21
21
|
metadata: ::Hash[Symbol, String],
|
22
22
|
minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval],
|
23
|
+
name: String,
|
23
24
|
net_terms: Integer,
|
24
25
|
pending_subscription_change: Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange?,
|
25
|
-
plan: Orb::Plan
|
26
|
+
plan: Orb::Plan?,
|
26
27
|
price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval],
|
27
28
|
redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?,
|
28
29
|
start_date: Time,
|
@@ -68,11 +69,13 @@ module Orb
|
|
68
69
|
|
69
70
|
attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]
|
70
71
|
|
72
|
+
attr_accessor name: String
|
73
|
+
|
71
74
|
attr_accessor net_terms: Integer
|
72
75
|
|
73
76
|
attr_accessor pending_subscription_change: Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange?
|
74
77
|
|
75
|
-
attr_accessor plan: Orb::Plan
|
78
|
+
attr_accessor plan: Orb::Plan?
|
76
79
|
|
77
80
|
attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]
|
78
81
|
|
@@ -105,9 +108,10 @@ module Orb
|
|
105
108
|
maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval],
|
106
109
|
metadata: ::Hash[Symbol, String],
|
107
110
|
minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval],
|
111
|
+
name: String,
|
108
112
|
net_terms: Integer,
|
109
113
|
pending_subscription_change: Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange?,
|
110
|
-
plan: Orb::Plan
|
114
|
+
plan: Orb::Plan?,
|
111
115
|
price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval],
|
112
116
|
redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?,
|
113
117
|
start_date: Time,
|
@@ -135,9 +139,10 @@ module Orb
|
|
135
139
|
maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval],
|
136
140
|
metadata: ::Hash[Symbol, String],
|
137
141
|
minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval],
|
142
|
+
name: String,
|
138
143
|
net_terms: Integer,
|
139
144
|
pending_subscription_change: Orb::Models::SubscriptionCreateResponse::PendingSubscriptionChange?,
|
140
|
-
plan: Orb::Plan
|
145
|
+
plan: Orb::Plan?,
|
141
146
|
price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval],
|
142
147
|
redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?,
|
143
148
|
start_date: Time,
|
@@ -197,6 +202,7 @@ module Orb
|
|
197
202
|
id: String,
|
198
203
|
adjustment_type: :usage_discount,
|
199
204
|
applies_to_price_ids: ::Array[String],
|
205
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
|
200
206
|
is_invoice_level: bool,
|
201
207
|
plan_phase_order: Integer?,
|
202
208
|
reason: String?,
|
@@ -210,6 +216,8 @@ module Orb
|
|
210
216
|
|
211
217
|
attr_accessor applies_to_price_ids: ::Array[String]
|
212
218
|
|
219
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter]
|
220
|
+
|
213
221
|
attr_accessor is_invoice_level: bool
|
214
222
|
|
215
223
|
attr_accessor plan_phase_order: Integer?
|
@@ -221,6 +229,7 @@ module Orb
|
|
221
229
|
def initialize: (
|
222
230
|
id: String,
|
223
231
|
applies_to_price_ids: ::Array[String],
|
232
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
|
224
233
|
is_invoice_level: bool,
|
225
234
|
plan_phase_order: Integer?,
|
226
235
|
reason: String?,
|
@@ -232,11 +241,69 @@ module Orb
|
|
232
241
|
id: String,
|
233
242
|
adjustment_type: :usage_discount,
|
234
243
|
applies_to_price_ids: ::Array[String],
|
244
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter],
|
235
245
|
is_invoice_level: bool,
|
236
246
|
plan_phase_order: Integer?,
|
237
247
|
reason: String?,
|
238
248
|
usage_discount: Float
|
239
249
|
}
|
250
|
+
|
251
|
+
type filter =
|
252
|
+
{
|
253
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
|
254
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
|
255
|
+
values: ::Array[String]
|
256
|
+
}
|
257
|
+
|
258
|
+
class Filter < Orb::Internal::Type::BaseModel
|
259
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field
|
260
|
+
|
261
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator
|
262
|
+
|
263
|
+
attr_accessor values: ::Array[String]
|
264
|
+
|
265
|
+
def initialize: (
|
266
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
|
267
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
|
268
|
+
values: ::Array[String]
|
269
|
+
) -> void
|
270
|
+
|
271
|
+
def to_hash: -> {
|
272
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field,
|
273
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator,
|
274
|
+
values: ::Array[String]
|
275
|
+
}
|
276
|
+
|
277
|
+
type field =
|
278
|
+
:price_id
|
279
|
+
| :item_id
|
280
|
+
| :price_type
|
281
|
+
| :currency
|
282
|
+
| :pricing_unit_id
|
283
|
+
|
284
|
+
module Field
|
285
|
+
extend Orb::Internal::Type::Enum
|
286
|
+
|
287
|
+
PRICE_ID: :price_id
|
288
|
+
ITEM_ID: :item_id
|
289
|
+
PRICE_TYPE: :price_type
|
290
|
+
CURRENCY: :currency
|
291
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
292
|
+
|
293
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::field]
|
294
|
+
end
|
295
|
+
|
296
|
+
type operator = :includes | :excludes
|
297
|
+
|
298
|
+
module Operator
|
299
|
+
extend Orb::Internal::Type::Enum
|
300
|
+
|
301
|
+
INCLUDES: :includes
|
302
|
+
EXCLUDES: :excludes
|
303
|
+
|
304
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscount::Filter::operator]
|
305
|
+
end
|
306
|
+
end
|
240
307
|
end
|
241
308
|
|
242
309
|
type amount_discount =
|
@@ -245,6 +312,7 @@ module Orb
|
|
245
312
|
adjustment_type: :amount_discount,
|
246
313
|
amount_discount: String,
|
247
314
|
applies_to_price_ids: ::Array[String],
|
315
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
|
248
316
|
is_invoice_level: bool,
|
249
317
|
plan_phase_order: Integer?,
|
250
318
|
reason: String?
|
@@ -259,6 +327,8 @@ module Orb
|
|
259
327
|
|
260
328
|
attr_accessor applies_to_price_ids: ::Array[String]
|
261
329
|
|
330
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter]
|
331
|
+
|
262
332
|
attr_accessor is_invoice_level: bool
|
263
333
|
|
264
334
|
attr_accessor plan_phase_order: Integer?
|
@@ -269,6 +339,7 @@ module Orb
|
|
269
339
|
id: String,
|
270
340
|
amount_discount: String,
|
271
341
|
applies_to_price_ids: ::Array[String],
|
342
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
|
272
343
|
is_invoice_level: bool,
|
273
344
|
plan_phase_order: Integer?,
|
274
345
|
reason: String?,
|
@@ -280,10 +351,68 @@ module Orb
|
|
280
351
|
adjustment_type: :amount_discount,
|
281
352
|
amount_discount: String,
|
282
353
|
applies_to_price_ids: ::Array[String],
|
354
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter],
|
283
355
|
is_invoice_level: bool,
|
284
356
|
plan_phase_order: Integer?,
|
285
357
|
reason: String?
|
286
358
|
}
|
359
|
+
|
360
|
+
type filter =
|
361
|
+
{
|
362
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
|
363
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
|
364
|
+
values: ::Array[String]
|
365
|
+
}
|
366
|
+
|
367
|
+
class Filter < Orb::Internal::Type::BaseModel
|
368
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field
|
369
|
+
|
370
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator
|
371
|
+
|
372
|
+
attr_accessor values: ::Array[String]
|
373
|
+
|
374
|
+
def initialize: (
|
375
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
|
376
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
|
377
|
+
values: ::Array[String]
|
378
|
+
) -> void
|
379
|
+
|
380
|
+
def to_hash: -> {
|
381
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field,
|
382
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator,
|
383
|
+
values: ::Array[String]
|
384
|
+
}
|
385
|
+
|
386
|
+
type field =
|
387
|
+
:price_id
|
388
|
+
| :item_id
|
389
|
+
| :price_type
|
390
|
+
| :currency
|
391
|
+
| :pricing_unit_id
|
392
|
+
|
393
|
+
module Field
|
394
|
+
extend Orb::Internal::Type::Enum
|
395
|
+
|
396
|
+
PRICE_ID: :price_id
|
397
|
+
ITEM_ID: :item_id
|
398
|
+
PRICE_TYPE: :price_type
|
399
|
+
CURRENCY: :currency
|
400
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
401
|
+
|
402
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::field]
|
403
|
+
end
|
404
|
+
|
405
|
+
type operator = :includes | :excludes
|
406
|
+
|
407
|
+
module Operator
|
408
|
+
extend Orb::Internal::Type::Enum
|
409
|
+
|
410
|
+
INCLUDES: :includes
|
411
|
+
EXCLUDES: :excludes
|
412
|
+
|
413
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscount::Filter::operator]
|
414
|
+
end
|
415
|
+
end
|
287
416
|
end
|
288
417
|
|
289
418
|
type percentage_discount =
|
@@ -291,6 +420,7 @@ module Orb
|
|
291
420
|
id: String,
|
292
421
|
adjustment_type: :percentage_discount,
|
293
422
|
applies_to_price_ids: ::Array[String],
|
423
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
|
294
424
|
is_invoice_level: bool,
|
295
425
|
percentage_discount: Float,
|
296
426
|
plan_phase_order: Integer?,
|
@@ -304,6 +434,8 @@ module Orb
|
|
304
434
|
|
305
435
|
attr_accessor applies_to_price_ids: ::Array[String]
|
306
436
|
|
437
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter]
|
438
|
+
|
307
439
|
attr_accessor is_invoice_level: bool
|
308
440
|
|
309
441
|
attr_accessor percentage_discount: Float
|
@@ -315,6 +447,7 @@ module Orb
|
|
315
447
|
def initialize: (
|
316
448
|
id: String,
|
317
449
|
applies_to_price_ids: ::Array[String],
|
450
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
|
318
451
|
is_invoice_level: bool,
|
319
452
|
percentage_discount: Float,
|
320
453
|
plan_phase_order: Integer?,
|
@@ -326,11 +459,69 @@ module Orb
|
|
326
459
|
id: String,
|
327
460
|
adjustment_type: :percentage_discount,
|
328
461
|
applies_to_price_ids: ::Array[String],
|
462
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter],
|
329
463
|
is_invoice_level: bool,
|
330
464
|
percentage_discount: Float,
|
331
465
|
plan_phase_order: Integer?,
|
332
466
|
reason: String?
|
333
467
|
}
|
468
|
+
|
469
|
+
type filter =
|
470
|
+
{
|
471
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
|
472
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
|
473
|
+
values: ::Array[String]
|
474
|
+
}
|
475
|
+
|
476
|
+
class Filter < Orb::Internal::Type::BaseModel
|
477
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field
|
478
|
+
|
479
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator
|
480
|
+
|
481
|
+
attr_accessor values: ::Array[String]
|
482
|
+
|
483
|
+
def initialize: (
|
484
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
|
485
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
|
486
|
+
values: ::Array[String]
|
487
|
+
) -> void
|
488
|
+
|
489
|
+
def to_hash: -> {
|
490
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field,
|
491
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator,
|
492
|
+
values: ::Array[String]
|
493
|
+
}
|
494
|
+
|
495
|
+
type field =
|
496
|
+
:price_id
|
497
|
+
| :item_id
|
498
|
+
| :price_type
|
499
|
+
| :currency
|
500
|
+
| :pricing_unit_id
|
501
|
+
|
502
|
+
module Field
|
503
|
+
extend Orb::Internal::Type::Enum
|
504
|
+
|
505
|
+
PRICE_ID: :price_id
|
506
|
+
ITEM_ID: :item_id
|
507
|
+
PRICE_TYPE: :price_type
|
508
|
+
CURRENCY: :currency
|
509
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
510
|
+
|
511
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::field]
|
512
|
+
end
|
513
|
+
|
514
|
+
type operator = :includes | :excludes
|
515
|
+
|
516
|
+
module Operator
|
517
|
+
extend Orb::Internal::Type::Enum
|
518
|
+
|
519
|
+
INCLUDES: :includes
|
520
|
+
EXCLUDES: :excludes
|
521
|
+
|
522
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscount::Filter::operator]
|
523
|
+
end
|
524
|
+
end
|
334
525
|
end
|
335
526
|
|
336
527
|
type minimum =
|
@@ -338,6 +529,7 @@ module Orb
|
|
338
529
|
id: String,
|
339
530
|
adjustment_type: :minimum,
|
340
531
|
applies_to_price_ids: ::Array[String],
|
532
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter],
|
341
533
|
is_invoice_level: bool,
|
342
534
|
item_id: String,
|
343
535
|
minimum_amount: String,
|
@@ -352,6 +544,8 @@ module Orb
|
|
352
544
|
|
353
545
|
attr_accessor applies_to_price_ids: ::Array[String]
|
354
546
|
|
547
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter]
|
548
|
+
|
355
549
|
attr_accessor is_invoice_level: bool
|
356
550
|
|
357
551
|
attr_accessor item_id: String
|
@@ -365,6 +559,7 @@ module Orb
|
|
365
559
|
def initialize: (
|
366
560
|
id: String,
|
367
561
|
applies_to_price_ids: ::Array[String],
|
562
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter],
|
368
563
|
is_invoice_level: bool,
|
369
564
|
item_id: String,
|
370
565
|
minimum_amount: String,
|
@@ -377,12 +572,70 @@ module Orb
|
|
377
572
|
id: String,
|
378
573
|
adjustment_type: :minimum,
|
379
574
|
applies_to_price_ids: ::Array[String],
|
575
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter],
|
380
576
|
is_invoice_level: bool,
|
381
577
|
item_id: String,
|
382
578
|
minimum_amount: String,
|
383
579
|
plan_phase_order: Integer?,
|
384
580
|
reason: String?
|
385
581
|
}
|
582
|
+
|
583
|
+
type filter =
|
584
|
+
{
|
585
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::field,
|
586
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
|
587
|
+
values: ::Array[String]
|
588
|
+
}
|
589
|
+
|
590
|
+
class Filter < Orb::Internal::Type::BaseModel
|
591
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::field
|
592
|
+
|
593
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::operator
|
594
|
+
|
595
|
+
attr_accessor values: ::Array[String]
|
596
|
+
|
597
|
+
def initialize: (
|
598
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::field,
|
599
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
|
600
|
+
values: ::Array[String]
|
601
|
+
) -> void
|
602
|
+
|
603
|
+
def to_hash: -> {
|
604
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::field,
|
605
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::operator,
|
606
|
+
values: ::Array[String]
|
607
|
+
}
|
608
|
+
|
609
|
+
type field =
|
610
|
+
:price_id
|
611
|
+
| :item_id
|
612
|
+
| :price_type
|
613
|
+
| :currency
|
614
|
+
| :pricing_unit_id
|
615
|
+
|
616
|
+
module Field
|
617
|
+
extend Orb::Internal::Type::Enum
|
618
|
+
|
619
|
+
PRICE_ID: :price_id
|
620
|
+
ITEM_ID: :item_id
|
621
|
+
PRICE_TYPE: :price_type
|
622
|
+
CURRENCY: :currency
|
623
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
624
|
+
|
625
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::field]
|
626
|
+
end
|
627
|
+
|
628
|
+
type operator = :includes | :excludes
|
629
|
+
|
630
|
+
module Operator
|
631
|
+
extend Orb::Internal::Type::Enum
|
632
|
+
|
633
|
+
INCLUDES: :includes
|
634
|
+
EXCLUDES: :excludes
|
635
|
+
|
636
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Minimum::Filter::operator]
|
637
|
+
end
|
638
|
+
end
|
386
639
|
end
|
387
640
|
|
388
641
|
type maximum =
|
@@ -390,6 +643,7 @@ module Orb
|
|
390
643
|
id: String,
|
391
644
|
adjustment_type: :maximum,
|
392
645
|
applies_to_price_ids: ::Array[String],
|
646
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter],
|
393
647
|
is_invoice_level: bool,
|
394
648
|
maximum_amount: String,
|
395
649
|
plan_phase_order: Integer?,
|
@@ -403,6 +657,8 @@ module Orb
|
|
403
657
|
|
404
658
|
attr_accessor applies_to_price_ids: ::Array[String]
|
405
659
|
|
660
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter]
|
661
|
+
|
406
662
|
attr_accessor is_invoice_level: bool
|
407
663
|
|
408
664
|
attr_accessor maximum_amount: String
|
@@ -414,6 +670,7 @@ module Orb
|
|
414
670
|
def initialize: (
|
415
671
|
id: String,
|
416
672
|
applies_to_price_ids: ::Array[String],
|
673
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter],
|
417
674
|
is_invoice_level: bool,
|
418
675
|
maximum_amount: String,
|
419
676
|
plan_phase_order: Integer?,
|
@@ -425,11 +682,69 @@ module Orb
|
|
425
682
|
id: String,
|
426
683
|
adjustment_type: :maximum,
|
427
684
|
applies_to_price_ids: ::Array[String],
|
685
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter],
|
428
686
|
is_invoice_level: bool,
|
429
687
|
maximum_amount: String,
|
430
688
|
plan_phase_order: Integer?,
|
431
689
|
reason: String?
|
432
690
|
}
|
691
|
+
|
692
|
+
type filter =
|
693
|
+
{
|
694
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::field,
|
695
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::operator,
|
696
|
+
values: ::Array[String]
|
697
|
+
}
|
698
|
+
|
699
|
+
class Filter < Orb::Internal::Type::BaseModel
|
700
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::field
|
701
|
+
|
702
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::operator
|
703
|
+
|
704
|
+
attr_accessor values: ::Array[String]
|
705
|
+
|
706
|
+
def initialize: (
|
707
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::field,
|
708
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::operator,
|
709
|
+
values: ::Array[String]
|
710
|
+
) -> void
|
711
|
+
|
712
|
+
def to_hash: -> {
|
713
|
+
field: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::field,
|
714
|
+
operator: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::operator,
|
715
|
+
values: ::Array[String]
|
716
|
+
}
|
717
|
+
|
718
|
+
type field =
|
719
|
+
:price_id
|
720
|
+
| :item_id
|
721
|
+
| :price_type
|
722
|
+
| :currency
|
723
|
+
| :pricing_unit_id
|
724
|
+
|
725
|
+
module Field
|
726
|
+
extend Orb::Internal::Type::Enum
|
727
|
+
|
728
|
+
PRICE_ID: :price_id
|
729
|
+
ITEM_ID: :item_id
|
730
|
+
PRICE_TYPE: :price_type
|
731
|
+
CURRENCY: :currency
|
732
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
733
|
+
|
734
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::field]
|
735
|
+
end
|
736
|
+
|
737
|
+
type operator = :includes | :excludes
|
738
|
+
|
739
|
+
module Operator
|
740
|
+
extend Orb::Internal::Type::Enum
|
741
|
+
|
742
|
+
INCLUDES: :includes
|
743
|
+
EXCLUDES: :excludes
|
744
|
+
|
745
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Maximum::Filter::operator]
|
746
|
+
end
|
747
|
+
end
|
433
748
|
end
|
434
749
|
|
435
750
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment]
|
@@ -466,127 +781,286 @@ module Orb
|
|
466
781
|
type amount =
|
467
782
|
{
|
468
783
|
amount_discount: String,
|
469
|
-
applies_to_price_ids: ::Array[String],
|
470
784
|
applies_to_price_interval_ids: ::Array[String],
|
471
785
|
discount_type: :amount,
|
472
786
|
end_date: Time?,
|
787
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter],
|
473
788
|
start_date: Time
|
474
789
|
}
|
475
790
|
|
476
791
|
class Amount < Orb::Internal::Type::BaseModel
|
477
792
|
attr_accessor amount_discount: String
|
478
793
|
|
479
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
480
|
-
|
481
794
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
482
795
|
|
483
796
|
attr_accessor discount_type: :amount
|
484
797
|
|
485
798
|
attr_accessor end_date: Time?
|
486
799
|
|
800
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter]
|
801
|
+
|
487
802
|
attr_accessor start_date: Time
|
488
803
|
|
489
804
|
def initialize: (
|
490
805
|
amount_discount: String,
|
491
|
-
applies_to_price_ids: ::Array[String],
|
492
806
|
applies_to_price_interval_ids: ::Array[String],
|
493
807
|
end_date: Time?,
|
808
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter],
|
494
809
|
start_date: Time,
|
495
810
|
?discount_type: :amount
|
496
811
|
) -> void
|
497
812
|
|
498
813
|
def to_hash: -> {
|
499
814
|
amount_discount: String,
|
500
|
-
applies_to_price_ids: ::Array[String],
|
501
815
|
applies_to_price_interval_ids: ::Array[String],
|
502
816
|
discount_type: :amount,
|
503
817
|
end_date: Time?,
|
818
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter],
|
504
819
|
start_date: Time
|
505
820
|
}
|
821
|
+
|
822
|
+
type filter =
|
823
|
+
{
|
824
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::field,
|
825
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::operator,
|
826
|
+
values: ::Array[String]
|
827
|
+
}
|
828
|
+
|
829
|
+
class Filter < Orb::Internal::Type::BaseModel
|
830
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::field
|
831
|
+
|
832
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::operator
|
833
|
+
|
834
|
+
attr_accessor values: ::Array[String]
|
835
|
+
|
836
|
+
def initialize: (
|
837
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::field,
|
838
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::operator,
|
839
|
+
values: ::Array[String]
|
840
|
+
) -> void
|
841
|
+
|
842
|
+
def to_hash: -> {
|
843
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::field,
|
844
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::operator,
|
845
|
+
values: ::Array[String]
|
846
|
+
}
|
847
|
+
|
848
|
+
type field =
|
849
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
850
|
+
|
851
|
+
module Field
|
852
|
+
extend Orb::Internal::Type::Enum
|
853
|
+
|
854
|
+
PRICE_ID: :price_id
|
855
|
+
ITEM_ID: :item_id
|
856
|
+
PRICE_TYPE: :price_type
|
857
|
+
CURRENCY: :currency
|
858
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
859
|
+
|
860
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::field]
|
861
|
+
end
|
862
|
+
|
863
|
+
type operator = :includes | :excludes
|
864
|
+
|
865
|
+
module Operator
|
866
|
+
extend Orb::Internal::Type::Enum
|
867
|
+
|
868
|
+
INCLUDES: :includes
|
869
|
+
EXCLUDES: :excludes
|
870
|
+
|
871
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Amount::Filter::operator]
|
872
|
+
end
|
873
|
+
end
|
506
874
|
end
|
507
875
|
|
508
876
|
type percentage =
|
509
877
|
{
|
510
|
-
applies_to_price_ids: ::Array[String],
|
511
878
|
applies_to_price_interval_ids: ::Array[String],
|
512
879
|
discount_type: :percentage,
|
513
880
|
end_date: Time?,
|
881
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter],
|
514
882
|
percentage_discount: Float,
|
515
883
|
start_date: Time
|
516
884
|
}
|
517
885
|
|
518
886
|
class Percentage < Orb::Internal::Type::BaseModel
|
519
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
520
|
-
|
521
887
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
522
888
|
|
523
889
|
attr_accessor discount_type: :percentage
|
524
890
|
|
525
891
|
attr_accessor end_date: Time?
|
526
892
|
|
893
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter]
|
894
|
+
|
527
895
|
attr_accessor percentage_discount: Float
|
528
896
|
|
529
897
|
attr_accessor start_date: Time
|
530
898
|
|
531
899
|
def initialize: (
|
532
|
-
applies_to_price_ids: ::Array[String],
|
533
900
|
applies_to_price_interval_ids: ::Array[String],
|
534
901
|
end_date: Time?,
|
902
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter],
|
535
903
|
percentage_discount: Float,
|
536
904
|
start_date: Time,
|
537
905
|
?discount_type: :percentage
|
538
906
|
) -> void
|
539
907
|
|
540
908
|
def to_hash: -> {
|
541
|
-
applies_to_price_ids: ::Array[String],
|
542
909
|
applies_to_price_interval_ids: ::Array[String],
|
543
910
|
discount_type: :percentage,
|
544
911
|
end_date: Time?,
|
912
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter],
|
545
913
|
percentage_discount: Float,
|
546
914
|
start_date: Time
|
547
915
|
}
|
916
|
+
|
917
|
+
type filter =
|
918
|
+
{
|
919
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::field,
|
920
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::operator,
|
921
|
+
values: ::Array[String]
|
922
|
+
}
|
923
|
+
|
924
|
+
class Filter < Orb::Internal::Type::BaseModel
|
925
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::field
|
926
|
+
|
927
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::operator
|
928
|
+
|
929
|
+
attr_accessor values: ::Array[String]
|
930
|
+
|
931
|
+
def initialize: (
|
932
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::field,
|
933
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::operator,
|
934
|
+
values: ::Array[String]
|
935
|
+
) -> void
|
936
|
+
|
937
|
+
def to_hash: -> {
|
938
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::field,
|
939
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::operator,
|
940
|
+
values: ::Array[String]
|
941
|
+
}
|
942
|
+
|
943
|
+
type field =
|
944
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
945
|
+
|
946
|
+
module Field
|
947
|
+
extend Orb::Internal::Type::Enum
|
948
|
+
|
949
|
+
PRICE_ID: :price_id
|
950
|
+
ITEM_ID: :item_id
|
951
|
+
PRICE_TYPE: :price_type
|
952
|
+
CURRENCY: :currency
|
953
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
954
|
+
|
955
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::field]
|
956
|
+
end
|
957
|
+
|
958
|
+
type operator = :includes | :excludes
|
959
|
+
|
960
|
+
module Operator
|
961
|
+
extend Orb::Internal::Type::Enum
|
962
|
+
|
963
|
+
INCLUDES: :includes
|
964
|
+
EXCLUDES: :excludes
|
965
|
+
|
966
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Percentage::Filter::operator]
|
967
|
+
end
|
968
|
+
end
|
548
969
|
end
|
549
970
|
|
550
971
|
type usage =
|
551
972
|
{
|
552
|
-
applies_to_price_ids: ::Array[String],
|
553
973
|
applies_to_price_interval_ids: ::Array[String],
|
554
974
|
discount_type: :usage,
|
555
975
|
end_date: Time?,
|
976
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter],
|
556
977
|
start_date: Time,
|
557
978
|
usage_discount: Float
|
558
979
|
}
|
559
980
|
|
560
981
|
class Usage < Orb::Internal::Type::BaseModel
|
561
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
562
|
-
|
563
982
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
564
983
|
|
565
984
|
attr_accessor discount_type: :usage
|
566
985
|
|
567
986
|
attr_accessor end_date: Time?
|
568
987
|
|
988
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter]
|
989
|
+
|
569
990
|
attr_accessor start_date: Time
|
570
991
|
|
571
992
|
attr_accessor usage_discount: Float
|
572
993
|
|
573
994
|
def initialize: (
|
574
|
-
applies_to_price_ids: ::Array[String],
|
575
995
|
applies_to_price_interval_ids: ::Array[String],
|
576
996
|
end_date: Time?,
|
997
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter],
|
577
998
|
start_date: Time,
|
578
999
|
usage_discount: Float,
|
579
1000
|
?discount_type: :usage
|
580
1001
|
) -> void
|
581
1002
|
|
582
1003
|
def to_hash: -> {
|
583
|
-
applies_to_price_ids: ::Array[String],
|
584
1004
|
applies_to_price_interval_ids: ::Array[String],
|
585
1005
|
discount_type: :usage,
|
586
1006
|
end_date: Time?,
|
1007
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter],
|
587
1008
|
start_date: Time,
|
588
1009
|
usage_discount: Float
|
589
1010
|
}
|
1011
|
+
|
1012
|
+
type filter =
|
1013
|
+
{
|
1014
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::field,
|
1015
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::operator,
|
1016
|
+
values: ::Array[String]
|
1017
|
+
}
|
1018
|
+
|
1019
|
+
class Filter < Orb::Internal::Type::BaseModel
|
1020
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::field
|
1021
|
+
|
1022
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::operator
|
1023
|
+
|
1024
|
+
attr_accessor values: ::Array[String]
|
1025
|
+
|
1026
|
+
def initialize: (
|
1027
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::field,
|
1028
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::operator,
|
1029
|
+
values: ::Array[String]
|
1030
|
+
) -> void
|
1031
|
+
|
1032
|
+
def to_hash: -> {
|
1033
|
+
field: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::field,
|
1034
|
+
operator: Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::operator,
|
1035
|
+
values: ::Array[String]
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
type field =
|
1039
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
1040
|
+
|
1041
|
+
module Field
|
1042
|
+
extend Orb::Internal::Type::Enum
|
1043
|
+
|
1044
|
+
PRICE_ID: :price_id
|
1045
|
+
ITEM_ID: :item_id
|
1046
|
+
PRICE_TYPE: :price_type
|
1047
|
+
CURRENCY: :currency
|
1048
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
1049
|
+
|
1050
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::field]
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
type operator = :includes | :excludes
|
1054
|
+
|
1055
|
+
module Operator
|
1056
|
+
extend Orb::Internal::Type::Enum
|
1057
|
+
|
1058
|
+
INCLUDES: :includes
|
1059
|
+
EXCLUDES: :excludes
|
1060
|
+
|
1061
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Usage::Filter::operator]
|
1062
|
+
end
|
1063
|
+
end
|
590
1064
|
end
|
591
1065
|
|
592
1066
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval]
|
@@ -621,76 +1095,182 @@ module Orb
|
|
621
1095
|
|
622
1096
|
type maximum_interval =
|
623
1097
|
{
|
624
|
-
applies_to_price_ids: ::Array[String],
|
625
1098
|
applies_to_price_interval_ids: ::Array[String],
|
626
1099
|
end_date: Time?,
|
1100
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter],
|
627
1101
|
maximum_amount: String,
|
628
1102
|
start_date: Time
|
629
1103
|
}
|
630
1104
|
|
631
1105
|
class MaximumInterval < Orb::Internal::Type::BaseModel
|
632
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
633
|
-
|
634
1106
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
635
1107
|
|
636
1108
|
attr_accessor end_date: Time?
|
637
1109
|
|
1110
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter]
|
1111
|
+
|
638
1112
|
attr_accessor maximum_amount: String
|
639
1113
|
|
640
1114
|
attr_accessor start_date: Time
|
641
1115
|
|
642
1116
|
def initialize: (
|
643
|
-
applies_to_price_ids: ::Array[String],
|
644
1117
|
applies_to_price_interval_ids: ::Array[String],
|
645
1118
|
end_date: Time?,
|
1119
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter],
|
646
1120
|
maximum_amount: String,
|
647
1121
|
start_date: Time
|
648
1122
|
) -> void
|
649
1123
|
|
650
1124
|
def to_hash: -> {
|
651
|
-
applies_to_price_ids: ::Array[String],
|
652
1125
|
applies_to_price_interval_ids: ::Array[String],
|
653
1126
|
end_date: Time?,
|
1127
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter],
|
654
1128
|
maximum_amount: String,
|
655
1129
|
start_date: Time
|
656
1130
|
}
|
1131
|
+
|
1132
|
+
type filter =
|
1133
|
+
{
|
1134
|
+
field: Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::field,
|
1135
|
+
operator: Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::operator,
|
1136
|
+
values: ::Array[String]
|
1137
|
+
}
|
1138
|
+
|
1139
|
+
class Filter < Orb::Internal::Type::BaseModel
|
1140
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::field
|
1141
|
+
|
1142
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::operator
|
1143
|
+
|
1144
|
+
attr_accessor values: ::Array[String]
|
1145
|
+
|
1146
|
+
def initialize: (
|
1147
|
+
field: Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::field,
|
1148
|
+
operator: Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::operator,
|
1149
|
+
values: ::Array[String]
|
1150
|
+
) -> void
|
1151
|
+
|
1152
|
+
def to_hash: -> {
|
1153
|
+
field: Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::field,
|
1154
|
+
operator: Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::operator,
|
1155
|
+
values: ::Array[String]
|
1156
|
+
}
|
1157
|
+
|
1158
|
+
type field =
|
1159
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
1160
|
+
|
1161
|
+
module Field
|
1162
|
+
extend Orb::Internal::Type::Enum
|
1163
|
+
|
1164
|
+
PRICE_ID: :price_id
|
1165
|
+
ITEM_ID: :item_id
|
1166
|
+
PRICE_TYPE: :price_type
|
1167
|
+
CURRENCY: :currency
|
1168
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
1169
|
+
|
1170
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::field]
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
type operator = :includes | :excludes
|
1174
|
+
|
1175
|
+
module Operator
|
1176
|
+
extend Orb::Internal::Type::Enum
|
1177
|
+
|
1178
|
+
INCLUDES: :includes
|
1179
|
+
EXCLUDES: :excludes
|
1180
|
+
|
1181
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval::Filter::operator]
|
1182
|
+
end
|
1183
|
+
end
|
657
1184
|
end
|
658
1185
|
|
659
1186
|
type minimum_interval =
|
660
1187
|
{
|
661
|
-
applies_to_price_ids: ::Array[String],
|
662
1188
|
applies_to_price_interval_ids: ::Array[String],
|
663
1189
|
end_date: Time?,
|
1190
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter],
|
664
1191
|
minimum_amount: String,
|
665
1192
|
start_date: Time
|
666
1193
|
}
|
667
1194
|
|
668
1195
|
class MinimumInterval < Orb::Internal::Type::BaseModel
|
669
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
670
|
-
|
671
1196
|
attr_accessor applies_to_price_interval_ids: ::Array[String]
|
672
1197
|
|
673
1198
|
attr_accessor end_date: Time?
|
674
1199
|
|
1200
|
+
attr_accessor filters: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter]
|
1201
|
+
|
675
1202
|
attr_accessor minimum_amount: String
|
676
1203
|
|
677
1204
|
attr_accessor start_date: Time
|
678
1205
|
|
679
1206
|
def initialize: (
|
680
|
-
applies_to_price_ids: ::Array[String],
|
681
1207
|
applies_to_price_interval_ids: ::Array[String],
|
682
1208
|
end_date: Time?,
|
1209
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter],
|
683
1210
|
minimum_amount: String,
|
684
1211
|
start_date: Time
|
685
1212
|
) -> void
|
686
1213
|
|
687
1214
|
def to_hash: -> {
|
688
|
-
applies_to_price_ids: ::Array[String],
|
689
1215
|
applies_to_price_interval_ids: ::Array[String],
|
690
1216
|
end_date: Time?,
|
1217
|
+
filters: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter],
|
691
1218
|
minimum_amount: String,
|
692
1219
|
start_date: Time
|
693
1220
|
}
|
1221
|
+
|
1222
|
+
type filter =
|
1223
|
+
{
|
1224
|
+
field: Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::field,
|
1225
|
+
operator: Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::operator,
|
1226
|
+
values: ::Array[String]
|
1227
|
+
}
|
1228
|
+
|
1229
|
+
class Filter < Orb::Internal::Type::BaseModel
|
1230
|
+
attr_accessor field: Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::field
|
1231
|
+
|
1232
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::operator
|
1233
|
+
|
1234
|
+
attr_accessor values: ::Array[String]
|
1235
|
+
|
1236
|
+
def initialize: (
|
1237
|
+
field: Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::field,
|
1238
|
+
operator: Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::operator,
|
1239
|
+
values: ::Array[String]
|
1240
|
+
) -> void
|
1241
|
+
|
1242
|
+
def to_hash: -> {
|
1243
|
+
field: Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::field,
|
1244
|
+
operator: Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::operator,
|
1245
|
+
values: ::Array[String]
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
type field =
|
1249
|
+
:price_id | :item_id | :price_type | :currency | :pricing_unit_id
|
1250
|
+
|
1251
|
+
module Field
|
1252
|
+
extend Orb::Internal::Type::Enum
|
1253
|
+
|
1254
|
+
PRICE_ID: :price_id
|
1255
|
+
ITEM_ID: :item_id
|
1256
|
+
PRICE_TYPE: :price_type
|
1257
|
+
CURRENCY: :currency
|
1258
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
1259
|
+
|
1260
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::field]
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
type operator = :includes | :excludes
|
1264
|
+
|
1265
|
+
module Operator
|
1266
|
+
extend Orb::Internal::Type::Enum
|
1267
|
+
|
1268
|
+
INCLUDES: :includes
|
1269
|
+
EXCLUDES: :excludes
|
1270
|
+
|
1271
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval::Filter::operator]
|
1272
|
+
end
|
1273
|
+
end
|
694
1274
|
end
|
695
1275
|
|
696
1276
|
type pending_subscription_change = { id: String }
|