orb-billing 0.5.2 → 0.5.4
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 +25 -0
- data/README.md +4 -4
- data/SECURITY.md +2 -2
- data/lib/orb/internal/util.rb +3 -1
- data/lib/orb/internal.rb +3 -0
- data/lib/orb/models/alert.rb +23 -23
- data/lib/orb/models/alert_create_for_customer_params.rb +5 -5
- data/lib/orb/models/alert_create_for_external_customer_params.rb +5 -5
- data/lib/orb/models/alert_create_for_subscription_params.rb +5 -5
- data/lib/orb/models/alert_update_params.rb +3 -3
- data/lib/orb/models/amount_discount.rb +5 -5
- data/lib/orb/models/billable_metric.rb +7 -7
- data/lib/orb/models/coupon.rb +6 -6
- data/lib/orb/models/coupon_create_params.rb +3 -3
- data/lib/orb/models/credit_note.rb +33 -33
- data/lib/orb/models/credit_note_create_params.rb +4 -4
- data/lib/orb/models/customer.rb +39 -39
- data/lib/orb/models/customer_create_params.rb +26 -26
- data/lib/orb/models/customer_update_by_external_id_params.rb +26 -26
- data/lib/orb/models/customer_update_params.rb +26 -26
- data/lib/orb/models/customers/balance_transaction_create_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +2 -2
- data/lib/orb/models/customers/cost_list_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_response.rb +2 -2
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +7 -7
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +8 -8
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_list_params.rb +4 -4
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +6 -6
- data/lib/orb/models/customers/credits/top_up_create_params.rb +6 -5
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/dimensional_price_groups.rb +4 -4
- data/lib/orb/models/discount.rb +1 -1
- data/lib/orb/models/event_ingest_params.rb +3 -3
- data/lib/orb/models/events/event_volumes.rb +2 -2
- data/lib/orb/models/invoice.rb +114 -113
- data/lib/orb/models/invoice_create_params.rb +10 -10
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +6 -6
- data/lib/orb/models/invoice_level_discount.rb +1 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +4 -4
- data/lib/orb/models/invoice_list_params.rb +4 -4
- data/lib/orb/models/item.rb +5 -5
- data/lib/orb/models/item_update_params.rb +5 -5
- data/lib/orb/models/percentage_discount.rb +5 -5
- data/lib/orb/models/plan.rb +58 -58
- data/lib/orb/models/plan_create_params.rb +448 -444
- data/lib/orb/models/plan_list_params.rb +2 -2
- data/lib/orb/models/price.rb +1204 -1204
- data/lib/orb/models/price_create_params.rb +50 -50
- data/lib/orb/models/price_evaluate_response.rb +2 -2
- data/lib/orb/models/subscription.rb +58 -56
- data/lib/orb/models/subscription_cancel_params.rb +2 -2
- data/lib/orb/models/subscription_cancel_response.rb +14 -14
- data/lib/orb/models/subscription_change_apply_response.rb +14 -14
- data/lib/orb/models/subscription_change_cancel_response.rb +14 -14
- data/lib/orb/models/subscription_change_retrieve_response.rb +14 -14
- data/lib/orb/models/subscription_create_params.rb +1002 -987
- data/lib/orb/models/subscription_create_response.rb +14 -14
- data/lib/orb/models/subscription_fetch_costs_params.rb +2 -2
- data/lib/orb/models/subscription_fetch_costs_response.rb +2 -2
- data/lib/orb/models/subscription_fetch_usage_params.rb +4 -4
- data/lib/orb/models/subscription_list_params.rb +2 -2
- data/lib/orb/models/subscription_price_intervals_params.rb +596 -585
- data/lib/orb/models/subscription_price_intervals_response.rb +14 -14
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +973 -971
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +14 -14
- data/lib/orb/models/subscription_trigger_phase_response.rb +14 -14
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +14 -14
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +14 -14
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +14 -14
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +2 -2
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +14 -14
- data/lib/orb/models/subscription_update_trial_params.rb +3 -3
- data/lib/orb/models/subscription_update_trial_response.rb +14 -14
- data/lib/orb/models/subscription_usage.rb +26 -26
- data/lib/orb/models/subscriptions.rb +4 -4
- data/lib/orb/models/trial_discount.rb +5 -5
- data/lib/orb/models/usage_discount.rb +5 -5
- data/lib/orb/resources/alerts.rb +15 -15
- data/lib/orb/resources/coupons/subscriptions.rb +1 -1
- data/lib/orb/resources/coupons.rb +5 -5
- data/lib/orb/resources/credit_notes.rb +5 -5
- data/lib/orb/resources/customers/balance_transactions.rb +1 -1
- data/lib/orb/resources/customers/costs.rb +2 -2
- data/lib/orb/resources/customers/credits/ledger.rb +10 -10
- data/lib/orb/resources/customers/credits/top_ups.rb +4 -4
- data/lib/orb/resources/customers.rb +30 -30
- data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +1 -1
- data/lib/orb/resources/dimensional_price_groups.rb +3 -3
- data/lib/orb/resources/events/volume.rb +1 -1
- data/lib/orb/resources/events.rb +1 -1
- data/lib/orb/resources/invoices.rb +12 -12
- data/lib/orb/resources/items.rb +5 -5
- data/lib/orb/resources/metrics.rb +4 -4
- data/lib/orb/resources/plans/external_plan_id.rb +2 -2
- data/lib/orb/resources/plans.rb +7 -7
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +17 -17
- data/lib/orb/resources/subscriptions.rb +32 -32
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/internal.rbi +3 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +26 -72
- data/rbi/orb/models/subscription_update_trial_params.rbi +14 -3
- data/rbi/orb/resources/subscriptions.rbi +4 -1
- data/sig/orb/internal/page.rbs +2 -0
- data/sig/orb/internal.rbs +2 -0
- data/sig/orb/models/alert.rbs +32 -4
- data/sig/orb/models/alert_create_for_customer_params.rbs +9 -0
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +9 -0
- data/sig/orb/models/alert_create_for_subscription_params.rbs +9 -0
- data/sig/orb/models/alert_disable_params.rbs +5 -0
- data/sig/orb/models/alert_enable_params.rbs +5 -0
- data/sig/orb/models/alert_list_params.rbs +13 -0
- data/sig/orb/models/alert_retrieve_params.rbs +2 -0
- data/sig/orb/models/alert_update_params.rbs +7 -0
- data/sig/orb/models/amount_discount.rbs +11 -4
- data/sig/orb/models/billable_metric.rbs +13 -4
- data/sig/orb/models/coupon.rbs +14 -4
- data/sig/orb/models/coupon_archive_params.rbs +2 -0
- data/sig/orb/models/coupon_create_params.rbs +15 -0
- data/sig/orb/models/coupon_fetch_params.rbs +2 -0
- data/sig/orb/models/coupon_list_params.rbs +8 -0
- data/sig/orb/models/coupons/subscription_list_params.rbs +6 -0
- data/sig/orb/models/credit_note.rbs +88 -20
- data/sig/orb/models/credit_note_create_params.rbs +9 -0
- data/sig/orb/models/credit_note_fetch_params.rbs +2 -0
- data/sig/orb/models/credit_note_list_params.rbs +10 -0
- data/sig/orb/models/customer.rbs +86 -16
- data/sig/orb/models/customer_create_params.rbs +79 -8
- data/sig/orb/models/customer_delete_params.rbs +2 -0
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +2 -0
- data/sig/orb/models/customer_fetch_params.rbs +2 -0
- data/sig/orb/models/customer_list_params.rbs +10 -0
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +2 -0
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +2 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +78 -8
- data/sig/orb/models/customer_update_params.rbs +78 -8
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +7 -0
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +17 -0
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +10 -0
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +17 -0
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +8 -0
- data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +20 -0
- data/sig/orb/models/customers/cost_list_params.rbs +8 -0
- data/sig/orb/models/customers/cost_list_response.rbs +20 -0
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +8 -0
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +10 -0
- data/sig/orb/models/customers/credit_list_params.rbs +8 -0
- data/sig/orb/models/customers/credit_list_response.rbs +10 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +23 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +23 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +14 -0
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +14 -0
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +177 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +19 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +19 -0
- data/sig/orb/models/customers/credits/top_up_create_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +6 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +6 -0
- data/sig/orb/models/customers/credits/top_up_list_response.rbs +18 -0
- data/sig/orb/models/dimensional_price_group.rbs +9 -0
- data/sig/orb/models/dimensional_price_group_create_params.rbs +9 -0
- data/sig/orb/models/dimensional_price_group_list_params.rbs +6 -0
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +2 -0
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +2 -0
- data/sig/orb/models/dimensional_price_groups.rbs +5 -0
- data/sig/orb/models/evaluate_price_group.rbs +10 -4
- data/sig/orb/models/event_deprecate_params.rbs +2 -0
- data/sig/orb/models/event_deprecate_response.rbs +2 -0
- data/sig/orb/models/event_ingest_params.rbs +16 -0
- data/sig/orb/models/event_ingest_response.rbs +15 -0
- data/sig/orb/models/event_search_params.rbs +7 -0
- data/sig/orb/models/event_search_response.rbs +12 -0
- data/sig/orb/models/event_update_params.rbs +9 -0
- data/sig/orb/models/event_update_response.rbs +2 -0
- data/sig/orb/models/events/backfill_close_params.rbs +2 -0
- data/sig/orb/models/events/backfill_close_response.rbs +14 -0
- data/sig/orb/models/events/backfill_create_params.rbs +11 -0
- data/sig/orb/models/events/backfill_create_response.rbs +14 -0
- data/sig/orb/models/events/backfill_fetch_params.rbs +2 -0
- data/sig/orb/models/events/backfill_fetch_response.rbs +14 -0
- data/sig/orb/models/events/backfill_list_params.rbs +6 -0
- data/sig/orb/models/events/backfill_list_response.rbs +14 -0
- data/sig/orb/models/events/backfill_revert_params.rbs +2 -0
- data/sig/orb/models/events/backfill_revert_response.rbs +14 -0
- data/sig/orb/models/events/event_volumes.rbs +8 -0
- data/sig/orb/models/events/volume_list_params.rbs +8 -0
- data/sig/orb/models/invoice.rbs +293 -36
- data/sig/orb/models/invoice_create_params.rbs +30 -4
- data/sig/orb/models/invoice_fetch_params.rbs +2 -0
- data/sig/orb/models/invoice_fetch_upcoming_params.rbs +5 -0
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +257 -0
- data/sig/orb/models/invoice_issue_params.rbs +5 -0
- data/sig/orb/models/invoice_line_item_create_params.rbs +10 -0
- data/sig/orb/models/invoice_line_item_create_response.rbs +132 -0
- data/sig/orb/models/invoice_list_params.rbs +27 -4
- data/sig/orb/models/invoice_mark_paid_params.rbs +7 -0
- data/sig/orb/models/invoice_pay_params.rbs +2 -0
- data/sig/orb/models/invoice_update_params.rbs +5 -0
- data/sig/orb/models/invoice_void_params.rbs +2 -0
- data/sig/orb/models/item.rbs +16 -4
- data/sig/orb/models/item_create_params.rbs +2 -0
- data/sig/orb/models/item_fetch_params.rbs +2 -0
- data/sig/orb/models/item_list_params.rbs +6 -0
- data/sig/orb/models/item_update_params.rbs +15 -4
- data/sig/orb/models/metric_create_params.rbs +9 -0
- data/sig/orb/models/metric_fetch_params.rbs +2 -0
- data/sig/orb/models/metric_list_params.rbs +10 -0
- data/sig/orb/models/metric_update_params.rbs +5 -0
- data/sig/orb/models/pagination_metadata.rbs +2 -0
- data/sig/orb/models/percentage_discount.rbs +11 -4
- data/sig/orb/models/plan.rbs +141 -16
- data/sig/orb/models/plan_create_params.rbs +1070 -304
- data/sig/orb/models/plan_fetch_params.rbs +2 -0
- data/sig/orb/models/plan_list_params.rbs +11 -0
- data/sig/orb/models/plan_update_params.rbs +6 -0
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +2 -0
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +6 -0
- data/sig/orb/models/price.rbs +2148 -460
- data/sig/orb/models/price_create_params.rbs +130 -8
- data/sig/orb/models/price_evaluate_params.rbs +10 -0
- data/sig/orb/models/price_evaluate_response.rbs +2 -0
- data/sig/orb/models/price_fetch_params.rbs +2 -0
- data/sig/orb/models/price_list_params.rbs +6 -0
- data/sig/orb/models/price_update_params.rbs +5 -0
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +2 -0
- data/sig/orb/models/prices/external_price_id_update_params.rbs +5 -0
- data/sig/orb/models/subscription.rbs +177 -12
- data/sig/orb/models/subscription_cancel_params.rbs +7 -0
- data/sig/orb/models/subscription_cancel_response.rbs +173 -0
- data/sig/orb/models/subscription_change_apply_params.rbs +6 -0
- data/sig/orb/models/subscription_change_apply_response.rbs +186 -0
- data/sig/orb/models/subscription_change_cancel_params.rbs +2 -0
- data/sig/orb/models/subscription_change_cancel_response.rbs +186 -0
- data/sig/orb/models/subscription_change_retrieve_params.rbs +2 -0
- data/sig/orb/models/subscription_change_retrieve_response.rbs +186 -0
- data/sig/orb/models/subscription_create_params.rbs +2368 -632
- data/sig/orb/models/subscription_create_response.rbs +173 -0
- data/sig/orb/models/subscription_fetch_costs_params.rbs +8 -0
- data/sig/orb/models/subscription_fetch_costs_response.rbs +20 -0
- data/sig/orb/models/subscription_fetch_params.rbs +2 -0
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +10 -0
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +13 -0
- data/sig/orb/models/subscription_fetch_usage_params.rbs +14 -0
- data/sig/orb/models/subscription_list_params.rbs +13 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +1348 -396
- data/sig/orb/models/subscription_price_intervals_response.rbs +173 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2363 -632
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +173 -0
- data/sig/orb/models/subscription_trigger_phase_params.rbs +6 -0
- data/sig/orb/models/subscription_trigger_phase_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +173 -0
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +9 -0
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +173 -0
- data/sig/orb/models/subscription_update_params.rbs +9 -0
- data/sig/orb/models/subscription_update_trial_params.rbs +6 -0
- data/sig/orb/models/subscription_update_trial_response.rbs +173 -0
- data/sig/orb/models/subscription_usage.rbs +48 -8
- data/sig/orb/models/subscriptions.rbs +5 -0
- data/sig/orb/models/top_level_ping_params.rbs +2 -0
- data/sig/orb/models/top_level_ping_response.rbs +2 -0
- data/sig/orb/models/trial_discount.rbs +12 -4
- data/sig/orb/models/usage_discount.rbs +11 -4
- data/sig/orb/resources/invoices.rbs +1 -1
- data/sig/orb/resources/plans.rbs +1 -1
- metadata +2 -2
@@ -4,7 +4,7 @@ module Orb
|
|
4
4
|
{
|
5
5
|
currency: String,
|
6
6
|
name: String,
|
7
|
-
prices: ::Array[Orb::PlanCreateParams::price],
|
7
|
+
prices: ::Array[Orb::Models::PlanCreateParams::price],
|
8
8
|
default_invoice_memo: String?,
|
9
9
|
external_plan_id: String?,
|
10
10
|
metadata: ::Hash[Symbol, String?]?,
|
@@ -21,7 +21,7 @@ module Orb
|
|
21
21
|
|
22
22
|
attr_accessor name: String
|
23
23
|
|
24
|
-
attr_accessor prices: ::Array[Orb::PlanCreateParams::price]
|
24
|
+
attr_accessor prices: ::Array[Orb::Models::PlanCreateParams::price]
|
25
25
|
|
26
26
|
attr_accessor default_invoice_memo: String?
|
27
27
|
|
@@ -40,7 +40,7 @@ module Orb
|
|
40
40
|
def initialize: (
|
41
41
|
currency: String,
|
42
42
|
name: String,
|
43
|
-
prices: ::Array[Orb::PlanCreateParams::price],
|
43
|
+
prices: ::Array[Orb::Models::PlanCreateParams::price],
|
44
44
|
?default_invoice_memo: String?,
|
45
45
|
?external_plan_id: String?,
|
46
46
|
?metadata: ::Hash[Symbol, String?]?,
|
@@ -49,6 +49,18 @@ module Orb
|
|
49
49
|
?request_options: Orb::request_opts
|
50
50
|
) -> void
|
51
51
|
|
52
|
+
def to_hash: -> {
|
53
|
+
currency: String,
|
54
|
+
name: String,
|
55
|
+
prices: ::Array[Orb::Models::PlanCreateParams::price],
|
56
|
+
default_invoice_memo: String?,
|
57
|
+
external_plan_id: String?,
|
58
|
+
metadata: ::Hash[Symbol, String?]?,
|
59
|
+
net_terms: Integer?,
|
60
|
+
status: Orb::Models::PlanCreateParams::status,
|
61
|
+
request_options: Orb::RequestOptions
|
62
|
+
}
|
63
|
+
|
52
64
|
type price =
|
53
65
|
Orb::PlanCreateParams::Price::Unit
|
54
66
|
| Orb::PlanCreateParams::Price::Package
|
@@ -81,7 +93,7 @@ module Orb
|
|
81
93
|
|
82
94
|
type unit =
|
83
95
|
{
|
84
|
-
cadence: Orb::PlanCreateParams::Price::Unit::cadence,
|
96
|
+
cadence: Orb::Models::PlanCreateParams::Price::Unit::cadence,
|
85
97
|
item_id: String,
|
86
98
|
model_type: :unit,
|
87
99
|
name: String,
|
@@ -99,7 +111,7 @@ module Orb
|
|
99
111
|
}
|
100
112
|
|
101
113
|
class Unit < Orb::Internal::Type::BaseModel
|
102
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::Unit::cadence
|
114
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Unit::cadence
|
103
115
|
|
104
116
|
attr_accessor item_id: String
|
105
117
|
|
@@ -130,7 +142,7 @@ module Orb
|
|
130
142
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
131
143
|
|
132
144
|
def initialize: (
|
133
|
-
cadence: Orb::PlanCreateParams::Price::Unit::cadence,
|
145
|
+
cadence: Orb::Models::PlanCreateParams::Price::Unit::cadence,
|
134
146
|
item_id: String,
|
135
147
|
name: String,
|
136
148
|
unit_config: Orb::PlanCreateParams::Price::Unit::UnitConfig,
|
@@ -147,6 +159,24 @@ module Orb
|
|
147
159
|
?model_type: :unit
|
148
160
|
) -> void
|
149
161
|
|
162
|
+
def to_hash: -> {
|
163
|
+
cadence: Orb::Models::PlanCreateParams::Price::Unit::cadence,
|
164
|
+
item_id: String,
|
165
|
+
model_type: :unit,
|
166
|
+
name: String,
|
167
|
+
unit_config: Orb::PlanCreateParams::Price::Unit::UnitConfig,
|
168
|
+
billable_metric_id: String?,
|
169
|
+
billed_in_advance: bool?,
|
170
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration?,
|
171
|
+
conversion_rate: Float?,
|
172
|
+
currency: String?,
|
173
|
+
external_price_id: String?,
|
174
|
+
fixed_price_quantity: Float?,
|
175
|
+
invoice_grouping_key: String?,
|
176
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration?,
|
177
|
+
metadata: ::Hash[Symbol, String?]?
|
178
|
+
}
|
179
|
+
|
150
180
|
type cadence =
|
151
181
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
152
182
|
|
@@ -160,7 +190,7 @@ module Orb
|
|
160
190
|
ONE_TIME: :one_time
|
161
191
|
CUSTOM: :custom
|
162
192
|
|
163
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Unit::cadence]
|
193
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Unit::cadence]
|
164
194
|
end
|
165
195
|
|
166
196
|
type unit_config = { unit_amount: String }
|
@@ -169,24 +199,31 @@ module Orb
|
|
169
199
|
attr_accessor unit_amount: String
|
170
200
|
|
171
201
|
def initialize: (unit_amount: String) -> void
|
202
|
+
|
203
|
+
def to_hash: -> { unit_amount: String }
|
172
204
|
end
|
173
205
|
|
174
206
|
type billing_cycle_configuration =
|
175
207
|
{
|
176
208
|
duration: Integer,
|
177
|
-
duration_unit: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit
|
209
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit
|
178
210
|
}
|
179
211
|
|
180
212
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
181
213
|
attr_accessor duration: Integer
|
182
214
|
|
183
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit
|
215
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit
|
184
216
|
|
185
217
|
def initialize: (
|
186
218
|
duration: Integer,
|
187
|
-
duration_unit: Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit
|
219
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit
|
188
220
|
) -> void
|
189
221
|
|
222
|
+
def to_hash: -> {
|
223
|
+
duration: Integer,
|
224
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit
|
225
|
+
}
|
226
|
+
|
190
227
|
type duration_unit = :day | :month
|
191
228
|
|
192
229
|
module DurationUnit
|
@@ -195,26 +232,31 @@ module Orb
|
|
195
232
|
DAY: :day
|
196
233
|
MONTH: :month
|
197
234
|
|
198
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit]
|
235
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Unit::BillingCycleConfiguration::duration_unit]
|
199
236
|
end
|
200
237
|
end
|
201
238
|
|
202
239
|
type invoicing_cycle_configuration =
|
203
240
|
{
|
204
241
|
duration: Integer,
|
205
|
-
duration_unit: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit
|
242
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit
|
206
243
|
}
|
207
244
|
|
208
245
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
209
246
|
attr_accessor duration: Integer
|
210
247
|
|
211
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit
|
248
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit
|
212
249
|
|
213
250
|
def initialize: (
|
214
251
|
duration: Integer,
|
215
|
-
duration_unit: Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit
|
252
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit
|
216
253
|
) -> void
|
217
254
|
|
255
|
+
def to_hash: -> {
|
256
|
+
duration: Integer,
|
257
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit
|
258
|
+
}
|
259
|
+
|
218
260
|
type duration_unit = :day | :month
|
219
261
|
|
220
262
|
module DurationUnit
|
@@ -223,14 +265,14 @@ module Orb
|
|
223
265
|
DAY: :day
|
224
266
|
MONTH: :month
|
225
267
|
|
226
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit]
|
268
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Unit::InvoicingCycleConfiguration::duration_unit]
|
227
269
|
end
|
228
270
|
end
|
229
271
|
end
|
230
272
|
|
231
273
|
type package =
|
232
274
|
{
|
233
|
-
cadence: Orb::PlanCreateParams::Price::Package::cadence,
|
275
|
+
cadence: Orb::Models::PlanCreateParams::Price::Package::cadence,
|
234
276
|
item_id: String,
|
235
277
|
model_type: :package,
|
236
278
|
name: String,
|
@@ -248,7 +290,7 @@ module Orb
|
|
248
290
|
}
|
249
291
|
|
250
292
|
class Package < Orb::Internal::Type::BaseModel
|
251
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::Package::cadence
|
293
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Package::cadence
|
252
294
|
|
253
295
|
attr_accessor item_id: String
|
254
296
|
|
@@ -279,7 +321,7 @@ module Orb
|
|
279
321
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
280
322
|
|
281
323
|
def initialize: (
|
282
|
-
cadence: Orb::PlanCreateParams::Price::Package::cadence,
|
324
|
+
cadence: Orb::Models::PlanCreateParams::Price::Package::cadence,
|
283
325
|
item_id: String,
|
284
326
|
name: String,
|
285
327
|
package_config: Orb::PlanCreateParams::Price::Package::PackageConfig,
|
@@ -296,6 +338,24 @@ module Orb
|
|
296
338
|
?model_type: :package
|
297
339
|
) -> void
|
298
340
|
|
341
|
+
def to_hash: -> {
|
342
|
+
cadence: Orb::Models::PlanCreateParams::Price::Package::cadence,
|
343
|
+
item_id: String,
|
344
|
+
model_type: :package,
|
345
|
+
name: String,
|
346
|
+
package_config: Orb::PlanCreateParams::Price::Package::PackageConfig,
|
347
|
+
billable_metric_id: String?,
|
348
|
+
billed_in_advance: bool?,
|
349
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration?,
|
350
|
+
conversion_rate: Float?,
|
351
|
+
currency: String?,
|
352
|
+
external_price_id: String?,
|
353
|
+
fixed_price_quantity: Float?,
|
354
|
+
invoice_grouping_key: String?,
|
355
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration?,
|
356
|
+
metadata: ::Hash[Symbol, String?]?
|
357
|
+
}
|
358
|
+
|
299
359
|
type cadence =
|
300
360
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
301
361
|
|
@@ -309,7 +369,7 @@ module Orb
|
|
309
369
|
ONE_TIME: :one_time
|
310
370
|
CUSTOM: :custom
|
311
371
|
|
312
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Package::cadence]
|
372
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Package::cadence]
|
313
373
|
end
|
314
374
|
|
315
375
|
type package_config =
|
@@ -324,24 +384,31 @@ module Orb
|
|
324
384
|
package_amount: String,
|
325
385
|
package_size: Integer
|
326
386
|
) -> void
|
387
|
+
|
388
|
+
def to_hash: -> { package_amount: String, package_size: Integer }
|
327
389
|
end
|
328
390
|
|
329
391
|
type billing_cycle_configuration =
|
330
392
|
{
|
331
393
|
duration: Integer,
|
332
|
-
duration_unit: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit
|
394
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit
|
333
395
|
}
|
334
396
|
|
335
397
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
336
398
|
attr_accessor duration: Integer
|
337
399
|
|
338
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit
|
400
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit
|
339
401
|
|
340
402
|
def initialize: (
|
341
403
|
duration: Integer,
|
342
|
-
duration_unit: Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit
|
404
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit
|
343
405
|
) -> void
|
344
406
|
|
407
|
+
def to_hash: -> {
|
408
|
+
duration: Integer,
|
409
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit
|
410
|
+
}
|
411
|
+
|
345
412
|
type duration_unit = :day | :month
|
346
413
|
|
347
414
|
module DurationUnit
|
@@ -350,26 +417,31 @@ module Orb
|
|
350
417
|
DAY: :day
|
351
418
|
MONTH: :month
|
352
419
|
|
353
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit]
|
420
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Package::BillingCycleConfiguration::duration_unit]
|
354
421
|
end
|
355
422
|
end
|
356
423
|
|
357
424
|
type invoicing_cycle_configuration =
|
358
425
|
{
|
359
426
|
duration: Integer,
|
360
|
-
duration_unit: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit
|
427
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit
|
361
428
|
}
|
362
429
|
|
363
430
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
364
431
|
attr_accessor duration: Integer
|
365
432
|
|
366
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit
|
433
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit
|
367
434
|
|
368
435
|
def initialize: (
|
369
436
|
duration: Integer,
|
370
|
-
duration_unit: Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit
|
437
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit
|
371
438
|
) -> void
|
372
439
|
|
440
|
+
def to_hash: -> {
|
441
|
+
duration: Integer,
|
442
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit
|
443
|
+
}
|
444
|
+
|
373
445
|
type duration_unit = :day | :month
|
374
446
|
|
375
447
|
module DurationUnit
|
@@ -378,14 +450,14 @@ module Orb
|
|
378
450
|
DAY: :day
|
379
451
|
MONTH: :month
|
380
452
|
|
381
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit]
|
453
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Package::InvoicingCycleConfiguration::duration_unit]
|
382
454
|
end
|
383
455
|
end
|
384
456
|
end
|
385
457
|
|
386
458
|
type matrix =
|
387
459
|
{
|
388
|
-
cadence: Orb::PlanCreateParams::Price::Matrix::cadence,
|
460
|
+
cadence: Orb::Models::PlanCreateParams::Price::Matrix::cadence,
|
389
461
|
item_id: String,
|
390
462
|
matrix_config: Orb::PlanCreateParams::Price::Matrix::MatrixConfig,
|
391
463
|
model_type: :matrix,
|
@@ -403,7 +475,7 @@ module Orb
|
|
403
475
|
}
|
404
476
|
|
405
477
|
class Matrix < Orb::Internal::Type::BaseModel
|
406
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::Matrix::cadence
|
478
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Matrix::cadence
|
407
479
|
|
408
480
|
attr_accessor item_id: String
|
409
481
|
|
@@ -434,7 +506,7 @@ module Orb
|
|
434
506
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
435
507
|
|
436
508
|
def initialize: (
|
437
|
-
cadence: Orb::PlanCreateParams::Price::Matrix::cadence,
|
509
|
+
cadence: Orb::Models::PlanCreateParams::Price::Matrix::cadence,
|
438
510
|
item_id: String,
|
439
511
|
matrix_config: Orb::PlanCreateParams::Price::Matrix::MatrixConfig,
|
440
512
|
name: String,
|
@@ -451,6 +523,24 @@ module Orb
|
|
451
523
|
?model_type: :matrix
|
452
524
|
) -> void
|
453
525
|
|
526
|
+
def to_hash: -> {
|
527
|
+
cadence: Orb::Models::PlanCreateParams::Price::Matrix::cadence,
|
528
|
+
item_id: String,
|
529
|
+
matrix_config: Orb::PlanCreateParams::Price::Matrix::MatrixConfig,
|
530
|
+
model_type: :matrix,
|
531
|
+
name: String,
|
532
|
+
billable_metric_id: String?,
|
533
|
+
billed_in_advance: bool?,
|
534
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration?,
|
535
|
+
conversion_rate: Float?,
|
536
|
+
currency: String?,
|
537
|
+
external_price_id: String?,
|
538
|
+
fixed_price_quantity: Float?,
|
539
|
+
invoice_grouping_key: String?,
|
540
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration?,
|
541
|
+
metadata: ::Hash[Symbol, String?]?
|
542
|
+
}
|
543
|
+
|
454
544
|
type cadence =
|
455
545
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
456
546
|
|
@@ -464,7 +554,7 @@ module Orb
|
|
464
554
|
ONE_TIME: :one_time
|
465
555
|
CUSTOM: :custom
|
466
556
|
|
467
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Matrix::cadence]
|
557
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Matrix::cadence]
|
468
558
|
end
|
469
559
|
|
470
560
|
type matrix_config =
|
@@ -487,6 +577,12 @@ module Orb
|
|
487
577
|
matrix_values: ::Array[Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue]
|
488
578
|
) -> void
|
489
579
|
|
580
|
+
def to_hash: -> {
|
581
|
+
default_unit_amount: String,
|
582
|
+
dimensions: ::Array[String?],
|
583
|
+
matrix_values: ::Array[Orb::PlanCreateParams::Price::Matrix::MatrixConfig::MatrixValue]
|
584
|
+
}
|
585
|
+
|
490
586
|
type matrix_value =
|
491
587
|
{ dimension_values: ::Array[String?], unit_amount: String }
|
492
588
|
|
@@ -499,25 +595,35 @@ module Orb
|
|
499
595
|
dimension_values: ::Array[String?],
|
500
596
|
unit_amount: String
|
501
597
|
) -> void
|
598
|
+
|
599
|
+
def to_hash: -> {
|
600
|
+
dimension_values: ::Array[String?],
|
601
|
+
unit_amount: String
|
602
|
+
}
|
502
603
|
end
|
503
604
|
end
|
504
605
|
|
505
606
|
type billing_cycle_configuration =
|
506
607
|
{
|
507
608
|
duration: Integer,
|
508
|
-
duration_unit: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit
|
609
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit
|
509
610
|
}
|
510
611
|
|
511
612
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
512
613
|
attr_accessor duration: Integer
|
513
614
|
|
514
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit
|
615
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit
|
515
616
|
|
516
617
|
def initialize: (
|
517
618
|
duration: Integer,
|
518
|
-
duration_unit: Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit
|
619
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit
|
519
620
|
) -> void
|
520
621
|
|
622
|
+
def to_hash: -> {
|
623
|
+
duration: Integer,
|
624
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit
|
625
|
+
}
|
626
|
+
|
521
627
|
type duration_unit = :day | :month
|
522
628
|
|
523
629
|
module DurationUnit
|
@@ -526,26 +632,31 @@ module Orb
|
|
526
632
|
DAY: :day
|
527
633
|
MONTH: :month
|
528
634
|
|
529
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit]
|
635
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Matrix::BillingCycleConfiguration::duration_unit]
|
530
636
|
end
|
531
637
|
end
|
532
638
|
|
533
639
|
type invoicing_cycle_configuration =
|
534
640
|
{
|
535
641
|
duration: Integer,
|
536
|
-
duration_unit: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit
|
642
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit
|
537
643
|
}
|
538
644
|
|
539
645
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
540
646
|
attr_accessor duration: Integer
|
541
647
|
|
542
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit
|
648
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit
|
543
649
|
|
544
650
|
def initialize: (
|
545
651
|
duration: Integer,
|
546
|
-
duration_unit: Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit
|
652
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit
|
547
653
|
) -> void
|
548
654
|
|
655
|
+
def to_hash: -> {
|
656
|
+
duration: Integer,
|
657
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit
|
658
|
+
}
|
659
|
+
|
549
660
|
type duration_unit = :day | :month
|
550
661
|
|
551
662
|
module DurationUnit
|
@@ -554,14 +665,14 @@ module Orb
|
|
554
665
|
DAY: :day
|
555
666
|
MONTH: :month
|
556
667
|
|
557
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit]
|
668
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Matrix::InvoicingCycleConfiguration::duration_unit]
|
558
669
|
end
|
559
670
|
end
|
560
671
|
end
|
561
672
|
|
562
673
|
type tiered =
|
563
674
|
{
|
564
|
-
cadence: Orb::PlanCreateParams::Price::Tiered::cadence,
|
675
|
+
cadence: Orb::Models::PlanCreateParams::Price::Tiered::cadence,
|
565
676
|
item_id: String,
|
566
677
|
model_type: :tiered,
|
567
678
|
name: String,
|
@@ -579,7 +690,7 @@ module Orb
|
|
579
690
|
}
|
580
691
|
|
581
692
|
class Tiered < Orb::Internal::Type::BaseModel
|
582
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::Tiered::cadence
|
693
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Tiered::cadence
|
583
694
|
|
584
695
|
attr_accessor item_id: String
|
585
696
|
|
@@ -610,7 +721,7 @@ module Orb
|
|
610
721
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
611
722
|
|
612
723
|
def initialize: (
|
613
|
-
cadence: Orb::PlanCreateParams::Price::Tiered::cadence,
|
724
|
+
cadence: Orb::Models::PlanCreateParams::Price::Tiered::cadence,
|
614
725
|
item_id: String,
|
615
726
|
name: String,
|
616
727
|
tiered_config: Orb::PlanCreateParams::Price::Tiered::TieredConfig,
|
@@ -627,6 +738,24 @@ module Orb
|
|
627
738
|
?model_type: :tiered
|
628
739
|
) -> void
|
629
740
|
|
741
|
+
def to_hash: -> {
|
742
|
+
cadence: Orb::Models::PlanCreateParams::Price::Tiered::cadence,
|
743
|
+
item_id: String,
|
744
|
+
model_type: :tiered,
|
745
|
+
name: String,
|
746
|
+
tiered_config: Orb::PlanCreateParams::Price::Tiered::TieredConfig,
|
747
|
+
billable_metric_id: String?,
|
748
|
+
billed_in_advance: bool?,
|
749
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration?,
|
750
|
+
conversion_rate: Float?,
|
751
|
+
currency: String?,
|
752
|
+
external_price_id: String?,
|
753
|
+
fixed_price_quantity: Float?,
|
754
|
+
invoice_grouping_key: String?,
|
755
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration?,
|
756
|
+
metadata: ::Hash[Symbol, String?]?
|
757
|
+
}
|
758
|
+
|
630
759
|
type cadence =
|
631
760
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
632
761
|
|
@@ -640,7 +769,7 @@ module Orb
|
|
640
769
|
ONE_TIME: :one_time
|
641
770
|
CUSTOM: :custom
|
642
771
|
|
643
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Tiered::cadence]
|
772
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Tiered::cadence]
|
644
773
|
end
|
645
774
|
|
646
775
|
type tiered_config =
|
@@ -655,6 +784,10 @@ module Orb
|
|
655
784
|
tiers: ::Array[Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier]
|
656
785
|
) -> void
|
657
786
|
|
787
|
+
def to_hash: -> {
|
788
|
+
tiers: ::Array[Orb::PlanCreateParams::Price::Tiered::TieredConfig::Tier]
|
789
|
+
}
|
790
|
+
|
658
791
|
type tier =
|
659
792
|
{ first_unit: Float, unit_amount: String, last_unit: Float? }
|
660
793
|
|
@@ -670,25 +803,36 @@ module Orb
|
|
670
803
|
unit_amount: String,
|
671
804
|
?last_unit: Float?
|
672
805
|
) -> void
|
806
|
+
|
807
|
+
def to_hash: -> {
|
808
|
+
first_unit: Float,
|
809
|
+
unit_amount: String,
|
810
|
+
last_unit: Float?
|
811
|
+
}
|
673
812
|
end
|
674
813
|
end
|
675
814
|
|
676
815
|
type billing_cycle_configuration =
|
677
816
|
{
|
678
817
|
duration: Integer,
|
679
|
-
duration_unit: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit
|
818
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit
|
680
819
|
}
|
681
820
|
|
682
821
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
683
822
|
attr_accessor duration: Integer
|
684
823
|
|
685
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit
|
824
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit
|
686
825
|
|
687
826
|
def initialize: (
|
688
827
|
duration: Integer,
|
689
|
-
duration_unit: Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit
|
828
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit
|
690
829
|
) -> void
|
691
830
|
|
831
|
+
def to_hash: -> {
|
832
|
+
duration: Integer,
|
833
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit
|
834
|
+
}
|
835
|
+
|
692
836
|
type duration_unit = :day | :month
|
693
837
|
|
694
838
|
module DurationUnit
|
@@ -697,26 +841,31 @@ module Orb
|
|
697
841
|
DAY: :day
|
698
842
|
MONTH: :month
|
699
843
|
|
700
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit]
|
844
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Tiered::BillingCycleConfiguration::duration_unit]
|
701
845
|
end
|
702
846
|
end
|
703
847
|
|
704
848
|
type invoicing_cycle_configuration =
|
705
849
|
{
|
706
850
|
duration: Integer,
|
707
|
-
duration_unit: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit
|
851
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit
|
708
852
|
}
|
709
853
|
|
710
854
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
711
855
|
attr_accessor duration: Integer
|
712
856
|
|
713
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit
|
857
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit
|
714
858
|
|
715
859
|
def initialize: (
|
716
860
|
duration: Integer,
|
717
|
-
duration_unit: Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit
|
861
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit
|
718
862
|
) -> void
|
719
863
|
|
864
|
+
def to_hash: -> {
|
865
|
+
duration: Integer,
|
866
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit
|
867
|
+
}
|
868
|
+
|
720
869
|
type duration_unit = :day | :month
|
721
870
|
|
722
871
|
module DurationUnit
|
@@ -725,14 +874,14 @@ module Orb
|
|
725
874
|
DAY: :day
|
726
875
|
MONTH: :month
|
727
876
|
|
728
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit]
|
877
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Tiered::InvoicingCycleConfiguration::duration_unit]
|
729
878
|
end
|
730
879
|
end
|
731
880
|
end
|
732
881
|
|
733
882
|
type tiered_bps =
|
734
883
|
{
|
735
|
-
cadence: Orb::PlanCreateParams::Price::TieredBps::cadence,
|
884
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredBps::cadence,
|
736
885
|
item_id: String,
|
737
886
|
model_type: :tiered_bps,
|
738
887
|
name: String,
|
@@ -750,7 +899,7 @@ module Orb
|
|
750
899
|
}
|
751
900
|
|
752
901
|
class TieredBps < Orb::Internal::Type::BaseModel
|
753
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::TieredBps::cadence
|
902
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::TieredBps::cadence
|
754
903
|
|
755
904
|
attr_accessor item_id: String
|
756
905
|
|
@@ -781,7 +930,7 @@ module Orb
|
|
781
930
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
782
931
|
|
783
932
|
def initialize: (
|
784
|
-
cadence: Orb::PlanCreateParams::Price::TieredBps::cadence,
|
933
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredBps::cadence,
|
785
934
|
item_id: String,
|
786
935
|
name: String,
|
787
936
|
tiered_bps_config: Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig,
|
@@ -798,6 +947,24 @@ module Orb
|
|
798
947
|
?model_type: :tiered_bps
|
799
948
|
) -> void
|
800
949
|
|
950
|
+
def to_hash: -> {
|
951
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredBps::cadence,
|
952
|
+
item_id: String,
|
953
|
+
model_type: :tiered_bps,
|
954
|
+
name: String,
|
955
|
+
tiered_bps_config: Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig,
|
956
|
+
billable_metric_id: String?,
|
957
|
+
billed_in_advance: bool?,
|
958
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration?,
|
959
|
+
conversion_rate: Float?,
|
960
|
+
currency: String?,
|
961
|
+
external_price_id: String?,
|
962
|
+
fixed_price_quantity: Float?,
|
963
|
+
invoice_grouping_key: String?,
|
964
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration?,
|
965
|
+
metadata: ::Hash[Symbol, String?]?
|
966
|
+
}
|
967
|
+
|
801
968
|
type cadence =
|
802
969
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
803
970
|
|
@@ -811,7 +978,7 @@ module Orb
|
|
811
978
|
ONE_TIME: :one_time
|
812
979
|
CUSTOM: :custom
|
813
980
|
|
814
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredBps::cadence]
|
981
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::cadence]
|
815
982
|
end
|
816
983
|
|
817
984
|
type tiered_bps_config =
|
@@ -826,6 +993,10 @@ module Orb
|
|
826
993
|
tiers: ::Array[Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier]
|
827
994
|
) -> void
|
828
995
|
|
996
|
+
def to_hash: -> {
|
997
|
+
tiers: ::Array[Orb::PlanCreateParams::Price::TieredBps::TieredBpsConfig::Tier]
|
998
|
+
}
|
999
|
+
|
829
1000
|
type tier =
|
830
1001
|
{
|
831
1002
|
bps: Float,
|
@@ -849,25 +1020,37 @@ module Orb
|
|
849
1020
|
?maximum_amount: String?,
|
850
1021
|
?per_unit_maximum: String?
|
851
1022
|
) -> void
|
1023
|
+
|
1024
|
+
def to_hash: -> {
|
1025
|
+
bps: Float,
|
1026
|
+
minimum_amount: String,
|
1027
|
+
maximum_amount: String?,
|
1028
|
+
per_unit_maximum: String?
|
1029
|
+
}
|
852
1030
|
end
|
853
1031
|
end
|
854
1032
|
|
855
1033
|
type billing_cycle_configuration =
|
856
1034
|
{
|
857
1035
|
duration: Integer,
|
858
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit
|
1036
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit
|
859
1037
|
}
|
860
1038
|
|
861
1039
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
862
1040
|
attr_accessor duration: Integer
|
863
1041
|
|
864
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit
|
1042
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit
|
865
1043
|
|
866
1044
|
def initialize: (
|
867
1045
|
duration: Integer,
|
868
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit
|
1046
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit
|
869
1047
|
) -> void
|
870
1048
|
|
1049
|
+
def to_hash: -> {
|
1050
|
+
duration: Integer,
|
1051
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit
|
1052
|
+
}
|
1053
|
+
|
871
1054
|
type duration_unit = :day | :month
|
872
1055
|
|
873
1056
|
module DurationUnit
|
@@ -876,26 +1059,31 @@ module Orb
|
|
876
1059
|
DAY: :day
|
877
1060
|
MONTH: :month
|
878
1061
|
|
879
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit]
|
1062
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::BillingCycleConfiguration::duration_unit]
|
880
1063
|
end
|
881
1064
|
end
|
882
1065
|
|
883
1066
|
type invoicing_cycle_configuration =
|
884
1067
|
{
|
885
1068
|
duration: Integer,
|
886
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit
|
1069
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit
|
887
1070
|
}
|
888
1071
|
|
889
1072
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
890
1073
|
attr_accessor duration: Integer
|
891
1074
|
|
892
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit
|
1075
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit
|
893
1076
|
|
894
1077
|
def initialize: (
|
895
1078
|
duration: Integer,
|
896
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit
|
1079
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit
|
897
1080
|
) -> void
|
898
1081
|
|
1082
|
+
def to_hash: -> {
|
1083
|
+
duration: Integer,
|
1084
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit
|
1085
|
+
}
|
1086
|
+
|
899
1087
|
type duration_unit = :day | :month
|
900
1088
|
|
901
1089
|
module DurationUnit
|
@@ -904,7 +1092,7 @@ module Orb
|
|
904
1092
|
DAY: :day
|
905
1093
|
MONTH: :month
|
906
1094
|
|
907
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit]
|
1095
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredBps::InvoicingCycleConfiguration::duration_unit]
|
908
1096
|
end
|
909
1097
|
end
|
910
1098
|
end
|
@@ -912,7 +1100,7 @@ module Orb
|
|
912
1100
|
type bps =
|
913
1101
|
{
|
914
1102
|
bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig,
|
915
|
-
cadence: Orb::PlanCreateParams::Price::Bps::cadence,
|
1103
|
+
cadence: Orb::Models::PlanCreateParams::Price::Bps::cadence,
|
916
1104
|
item_id: String,
|
917
1105
|
model_type: :bps,
|
918
1106
|
name: String,
|
@@ -931,7 +1119,7 @@ module Orb
|
|
931
1119
|
class Bps < Orb::Internal::Type::BaseModel
|
932
1120
|
attr_accessor bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig
|
933
1121
|
|
934
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::Bps::cadence
|
1122
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Bps::cadence
|
935
1123
|
|
936
1124
|
attr_accessor item_id: String
|
937
1125
|
|
@@ -961,7 +1149,7 @@ module Orb
|
|
961
1149
|
|
962
1150
|
def initialize: (
|
963
1151
|
bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig,
|
964
|
-
cadence: Orb::PlanCreateParams::Price::Bps::cadence,
|
1152
|
+
cadence: Orb::Models::PlanCreateParams::Price::Bps::cadence,
|
965
1153
|
item_id: String,
|
966
1154
|
name: String,
|
967
1155
|
?billable_metric_id: String?,
|
@@ -977,6 +1165,24 @@ module Orb
|
|
977
1165
|
?model_type: :bps
|
978
1166
|
) -> void
|
979
1167
|
|
1168
|
+
def to_hash: -> {
|
1169
|
+
bps_config: Orb::PlanCreateParams::Price::Bps::BpsConfig,
|
1170
|
+
cadence: Orb::Models::PlanCreateParams::Price::Bps::cadence,
|
1171
|
+
item_id: String,
|
1172
|
+
model_type: :bps,
|
1173
|
+
name: String,
|
1174
|
+
billable_metric_id: String?,
|
1175
|
+
billed_in_advance: bool?,
|
1176
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration?,
|
1177
|
+
conversion_rate: Float?,
|
1178
|
+
currency: String?,
|
1179
|
+
external_price_id: String?,
|
1180
|
+
fixed_price_quantity: Float?,
|
1181
|
+
invoice_grouping_key: String?,
|
1182
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration?,
|
1183
|
+
metadata: ::Hash[Symbol, String?]?
|
1184
|
+
}
|
1185
|
+
|
980
1186
|
type bps_config = { bps: Float, per_unit_maximum: String? }
|
981
1187
|
|
982
1188
|
class BpsConfig < Orb::Internal::Type::BaseModel
|
@@ -985,6 +1191,8 @@ module Orb
|
|
985
1191
|
attr_accessor per_unit_maximum: String?
|
986
1192
|
|
987
1193
|
def initialize: (bps: Float, ?per_unit_maximum: String?) -> void
|
1194
|
+
|
1195
|
+
def to_hash: -> { bps: Float, per_unit_maximum: String? }
|
988
1196
|
end
|
989
1197
|
|
990
1198
|
type cadence =
|
@@ -1000,25 +1208,30 @@ module Orb
|
|
1000
1208
|
ONE_TIME: :one_time
|
1001
1209
|
CUSTOM: :custom
|
1002
1210
|
|
1003
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bps::cadence]
|
1211
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bps::cadence]
|
1004
1212
|
end
|
1005
1213
|
|
1006
1214
|
type billing_cycle_configuration =
|
1007
1215
|
{
|
1008
1216
|
duration: Integer,
|
1009
|
-
duration_unit: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit
|
1217
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit
|
1010
1218
|
}
|
1011
1219
|
|
1012
1220
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1013
1221
|
attr_accessor duration: Integer
|
1014
1222
|
|
1015
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit
|
1223
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit
|
1016
1224
|
|
1017
1225
|
def initialize: (
|
1018
1226
|
duration: Integer,
|
1019
|
-
duration_unit: Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit
|
1227
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit
|
1020
1228
|
) -> void
|
1021
1229
|
|
1230
|
+
def to_hash: -> {
|
1231
|
+
duration: Integer,
|
1232
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit
|
1233
|
+
}
|
1234
|
+
|
1022
1235
|
type duration_unit = :day | :month
|
1023
1236
|
|
1024
1237
|
module DurationUnit
|
@@ -1027,26 +1240,31 @@ module Orb
|
|
1027
1240
|
DAY: :day
|
1028
1241
|
MONTH: :month
|
1029
1242
|
|
1030
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit]
|
1243
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bps::BillingCycleConfiguration::duration_unit]
|
1031
1244
|
end
|
1032
1245
|
end
|
1033
1246
|
|
1034
1247
|
type invoicing_cycle_configuration =
|
1035
1248
|
{
|
1036
1249
|
duration: Integer,
|
1037
|
-
duration_unit: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit
|
1250
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit
|
1038
1251
|
}
|
1039
1252
|
|
1040
1253
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1041
1254
|
attr_accessor duration: Integer
|
1042
1255
|
|
1043
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit
|
1256
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit
|
1044
1257
|
|
1045
1258
|
def initialize: (
|
1046
1259
|
duration: Integer,
|
1047
|
-
duration_unit: Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit
|
1260
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit
|
1048
1261
|
) -> void
|
1049
1262
|
|
1263
|
+
def to_hash: -> {
|
1264
|
+
duration: Integer,
|
1265
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit
|
1266
|
+
}
|
1267
|
+
|
1050
1268
|
type duration_unit = :day | :month
|
1051
1269
|
|
1052
1270
|
module DurationUnit
|
@@ -1055,7 +1273,7 @@ module Orb
|
|
1055
1273
|
DAY: :day
|
1056
1274
|
MONTH: :month
|
1057
1275
|
|
1058
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit]
|
1276
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bps::InvoicingCycleConfiguration::duration_unit]
|
1059
1277
|
end
|
1060
1278
|
end
|
1061
1279
|
end
|
@@ -1063,7 +1281,7 @@ module Orb
|
|
1063
1281
|
type bulk_bps =
|
1064
1282
|
{
|
1065
1283
|
bulk_bps_config: Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig,
|
1066
|
-
cadence: Orb::PlanCreateParams::Price::BulkBps::cadence,
|
1284
|
+
cadence: Orb::Models::PlanCreateParams::Price::BulkBps::cadence,
|
1067
1285
|
item_id: String,
|
1068
1286
|
model_type: :bulk_bps,
|
1069
1287
|
name: String,
|
@@ -1082,7 +1300,7 @@ module Orb
|
|
1082
1300
|
class BulkBps < Orb::Internal::Type::BaseModel
|
1083
1301
|
attr_accessor bulk_bps_config: Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig
|
1084
1302
|
|
1085
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::BulkBps::cadence
|
1303
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::BulkBps::cadence
|
1086
1304
|
|
1087
1305
|
attr_accessor item_id: String
|
1088
1306
|
|
@@ -1112,7 +1330,7 @@ module Orb
|
|
1112
1330
|
|
1113
1331
|
def initialize: (
|
1114
1332
|
bulk_bps_config: Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig,
|
1115
|
-
cadence: Orb::PlanCreateParams::Price::BulkBps::cadence,
|
1333
|
+
cadence: Orb::Models::PlanCreateParams::Price::BulkBps::cadence,
|
1116
1334
|
item_id: String,
|
1117
1335
|
name: String,
|
1118
1336
|
?billable_metric_id: String?,
|
@@ -1128,6 +1346,24 @@ module Orb
|
|
1128
1346
|
?model_type: :bulk_bps
|
1129
1347
|
) -> void
|
1130
1348
|
|
1349
|
+
def to_hash: -> {
|
1350
|
+
bulk_bps_config: Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig,
|
1351
|
+
cadence: Orb::Models::PlanCreateParams::Price::BulkBps::cadence,
|
1352
|
+
item_id: String,
|
1353
|
+
model_type: :bulk_bps,
|
1354
|
+
name: String,
|
1355
|
+
billable_metric_id: String?,
|
1356
|
+
billed_in_advance: bool?,
|
1357
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration?,
|
1358
|
+
conversion_rate: Float?,
|
1359
|
+
currency: String?,
|
1360
|
+
external_price_id: String?,
|
1361
|
+
fixed_price_quantity: Float?,
|
1362
|
+
invoice_grouping_key: String?,
|
1363
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration?,
|
1364
|
+
metadata: ::Hash[Symbol, String?]?
|
1365
|
+
}
|
1366
|
+
|
1131
1367
|
type bulk_bps_config =
|
1132
1368
|
{
|
1133
1369
|
tiers: ::Array[Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier]
|
@@ -1140,6 +1376,10 @@ module Orb
|
|
1140
1376
|
tiers: ::Array[Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier]
|
1141
1377
|
) -> void
|
1142
1378
|
|
1379
|
+
def to_hash: -> {
|
1380
|
+
tiers: ::Array[Orb::PlanCreateParams::Price::BulkBps::BulkBpsConfig::Tier]
|
1381
|
+
}
|
1382
|
+
|
1143
1383
|
type tier =
|
1144
1384
|
{ bps: Float, maximum_amount: String?, per_unit_maximum: String? }
|
1145
1385
|
|
@@ -1155,6 +1395,12 @@ module Orb
|
|
1155
1395
|
?maximum_amount: String?,
|
1156
1396
|
?per_unit_maximum: String?
|
1157
1397
|
) -> void
|
1398
|
+
|
1399
|
+
def to_hash: -> {
|
1400
|
+
bps: Float,
|
1401
|
+
maximum_amount: String?,
|
1402
|
+
per_unit_maximum: String?
|
1403
|
+
}
|
1158
1404
|
end
|
1159
1405
|
end
|
1160
1406
|
|
@@ -1171,25 +1417,30 @@ module Orb
|
|
1171
1417
|
ONE_TIME: :one_time
|
1172
1418
|
CUSTOM: :custom
|
1173
1419
|
|
1174
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkBps::cadence]
|
1420
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::cadence]
|
1175
1421
|
end
|
1176
1422
|
|
1177
1423
|
type billing_cycle_configuration =
|
1178
1424
|
{
|
1179
1425
|
duration: Integer,
|
1180
|
-
duration_unit: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit
|
1426
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit
|
1181
1427
|
}
|
1182
1428
|
|
1183
1429
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1184
1430
|
attr_accessor duration: Integer
|
1185
1431
|
|
1186
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit
|
1432
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit
|
1187
1433
|
|
1188
1434
|
def initialize: (
|
1189
1435
|
duration: Integer,
|
1190
|
-
duration_unit: Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit
|
1436
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit
|
1191
1437
|
) -> void
|
1192
1438
|
|
1439
|
+
def to_hash: -> {
|
1440
|
+
duration: Integer,
|
1441
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit
|
1442
|
+
}
|
1443
|
+
|
1193
1444
|
type duration_unit = :day | :month
|
1194
1445
|
|
1195
1446
|
module DurationUnit
|
@@ -1198,26 +1449,31 @@ module Orb
|
|
1198
1449
|
DAY: :day
|
1199
1450
|
MONTH: :month
|
1200
1451
|
|
1201
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit]
|
1452
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::BillingCycleConfiguration::duration_unit]
|
1202
1453
|
end
|
1203
1454
|
end
|
1204
1455
|
|
1205
1456
|
type invoicing_cycle_configuration =
|
1206
1457
|
{
|
1207
1458
|
duration: Integer,
|
1208
|
-
duration_unit: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit
|
1459
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit
|
1209
1460
|
}
|
1210
1461
|
|
1211
1462
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1212
1463
|
attr_accessor duration: Integer
|
1213
1464
|
|
1214
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit
|
1465
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit
|
1215
1466
|
|
1216
1467
|
def initialize: (
|
1217
1468
|
duration: Integer,
|
1218
|
-
duration_unit: Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit
|
1469
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit
|
1219
1470
|
) -> void
|
1220
1471
|
|
1472
|
+
def to_hash: -> {
|
1473
|
+
duration: Integer,
|
1474
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit
|
1475
|
+
}
|
1476
|
+
|
1221
1477
|
type duration_unit = :day | :month
|
1222
1478
|
|
1223
1479
|
module DurationUnit
|
@@ -1226,7 +1482,7 @@ module Orb
|
|
1226
1482
|
DAY: :day
|
1227
1483
|
MONTH: :month
|
1228
1484
|
|
1229
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit]
|
1485
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkBps::InvoicingCycleConfiguration::duration_unit]
|
1230
1486
|
end
|
1231
1487
|
end
|
1232
1488
|
end
|
@@ -1234,7 +1490,7 @@ module Orb
|
|
1234
1490
|
type bulk =
|
1235
1491
|
{
|
1236
1492
|
bulk_config: Orb::PlanCreateParams::Price::Bulk::BulkConfig,
|
1237
|
-
cadence: Orb::PlanCreateParams::Price::Bulk::cadence,
|
1493
|
+
cadence: Orb::Models::PlanCreateParams::Price::Bulk::cadence,
|
1238
1494
|
item_id: String,
|
1239
1495
|
model_type: :bulk,
|
1240
1496
|
name: String,
|
@@ -1253,7 +1509,7 @@ module Orb
|
|
1253
1509
|
class Bulk < Orb::Internal::Type::BaseModel
|
1254
1510
|
attr_accessor bulk_config: Orb::PlanCreateParams::Price::Bulk::BulkConfig
|
1255
1511
|
|
1256
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::Bulk::cadence
|
1512
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Bulk::cadence
|
1257
1513
|
|
1258
1514
|
attr_accessor item_id: String
|
1259
1515
|
|
@@ -1283,7 +1539,7 @@ module Orb
|
|
1283
1539
|
|
1284
1540
|
def initialize: (
|
1285
1541
|
bulk_config: Orb::PlanCreateParams::Price::Bulk::BulkConfig,
|
1286
|
-
cadence: Orb::PlanCreateParams::Price::Bulk::cadence,
|
1542
|
+
cadence: Orb::Models::PlanCreateParams::Price::Bulk::cadence,
|
1287
1543
|
item_id: String,
|
1288
1544
|
name: String,
|
1289
1545
|
?billable_metric_id: String?,
|
@@ -1299,6 +1555,24 @@ module Orb
|
|
1299
1555
|
?model_type: :bulk
|
1300
1556
|
) -> void
|
1301
1557
|
|
1558
|
+
def to_hash: -> {
|
1559
|
+
bulk_config: Orb::PlanCreateParams::Price::Bulk::BulkConfig,
|
1560
|
+
cadence: Orb::Models::PlanCreateParams::Price::Bulk::cadence,
|
1561
|
+
item_id: String,
|
1562
|
+
model_type: :bulk,
|
1563
|
+
name: String,
|
1564
|
+
billable_metric_id: String?,
|
1565
|
+
billed_in_advance: bool?,
|
1566
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration?,
|
1567
|
+
conversion_rate: Float?,
|
1568
|
+
currency: String?,
|
1569
|
+
external_price_id: String?,
|
1570
|
+
fixed_price_quantity: Float?,
|
1571
|
+
invoice_grouping_key: String?,
|
1572
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration?,
|
1573
|
+
metadata: ::Hash[Symbol, String?]?
|
1574
|
+
}
|
1575
|
+
|
1302
1576
|
type bulk_config =
|
1303
1577
|
{
|
1304
1578
|
tiers: ::Array[Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier]
|
@@ -1311,6 +1585,10 @@ module Orb
|
|
1311
1585
|
tiers: ::Array[Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier]
|
1312
1586
|
) -> void
|
1313
1587
|
|
1588
|
+
def to_hash: -> {
|
1589
|
+
tiers: ::Array[Orb::PlanCreateParams::Price::Bulk::BulkConfig::Tier]
|
1590
|
+
}
|
1591
|
+
|
1314
1592
|
type tier = { unit_amount: String, maximum_units: Float? }
|
1315
1593
|
|
1316
1594
|
class Tier < Orb::Internal::Type::BaseModel
|
@@ -1322,6 +1600,8 @@ module Orb
|
|
1322
1600
|
unit_amount: String,
|
1323
1601
|
?maximum_units: Float?
|
1324
1602
|
) -> void
|
1603
|
+
|
1604
|
+
def to_hash: -> { unit_amount: String, maximum_units: Float? }
|
1325
1605
|
end
|
1326
1606
|
end
|
1327
1607
|
|
@@ -1338,25 +1618,30 @@ module Orb
|
|
1338
1618
|
ONE_TIME: :one_time
|
1339
1619
|
CUSTOM: :custom
|
1340
1620
|
|
1341
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bulk::cadence]
|
1621
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bulk::cadence]
|
1342
1622
|
end
|
1343
1623
|
|
1344
1624
|
type billing_cycle_configuration =
|
1345
1625
|
{
|
1346
1626
|
duration: Integer,
|
1347
|
-
duration_unit: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit
|
1627
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit
|
1348
1628
|
}
|
1349
1629
|
|
1350
1630
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1351
1631
|
attr_accessor duration: Integer
|
1352
1632
|
|
1353
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit
|
1633
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit
|
1354
1634
|
|
1355
1635
|
def initialize: (
|
1356
1636
|
duration: Integer,
|
1357
|
-
duration_unit: Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit
|
1637
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit
|
1358
1638
|
) -> void
|
1359
1639
|
|
1640
|
+
def to_hash: -> {
|
1641
|
+
duration: Integer,
|
1642
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit
|
1643
|
+
}
|
1644
|
+
|
1360
1645
|
type duration_unit = :day | :month
|
1361
1646
|
|
1362
1647
|
module DurationUnit
|
@@ -1365,26 +1650,31 @@ module Orb
|
|
1365
1650
|
DAY: :day
|
1366
1651
|
MONTH: :month
|
1367
1652
|
|
1368
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit]
|
1653
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bulk::BillingCycleConfiguration::duration_unit]
|
1369
1654
|
end
|
1370
1655
|
end
|
1371
1656
|
|
1372
1657
|
type invoicing_cycle_configuration =
|
1373
1658
|
{
|
1374
1659
|
duration: Integer,
|
1375
|
-
duration_unit: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit
|
1660
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit
|
1376
1661
|
}
|
1377
1662
|
|
1378
1663
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1379
1664
|
attr_accessor duration: Integer
|
1380
1665
|
|
1381
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit
|
1666
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit
|
1382
1667
|
|
1383
1668
|
def initialize: (
|
1384
1669
|
duration: Integer,
|
1385
|
-
duration_unit: Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit
|
1670
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit
|
1386
1671
|
) -> void
|
1387
1672
|
|
1673
|
+
def to_hash: -> {
|
1674
|
+
duration: Integer,
|
1675
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit
|
1676
|
+
}
|
1677
|
+
|
1388
1678
|
type duration_unit = :day | :month
|
1389
1679
|
|
1390
1680
|
module DurationUnit
|
@@ -1393,14 +1683,14 @@ module Orb
|
|
1393
1683
|
DAY: :day
|
1394
1684
|
MONTH: :month
|
1395
1685
|
|
1396
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit]
|
1686
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Bulk::InvoicingCycleConfiguration::duration_unit]
|
1397
1687
|
end
|
1398
1688
|
end
|
1399
1689
|
end
|
1400
1690
|
|
1401
1691
|
type threshold_total_amount =
|
1402
1692
|
{
|
1403
|
-
cadence: Orb::PlanCreateParams::Price::ThresholdTotalAmount::cadence,
|
1693
|
+
cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence,
|
1404
1694
|
item_id: String,
|
1405
1695
|
model_type: :threshold_total_amount,
|
1406
1696
|
name: String,
|
@@ -1418,7 +1708,7 @@ module Orb
|
|
1418
1708
|
}
|
1419
1709
|
|
1420
1710
|
class ThresholdTotalAmount < Orb::Internal::Type::BaseModel
|
1421
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::ThresholdTotalAmount::cadence
|
1711
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence
|
1422
1712
|
|
1423
1713
|
attr_accessor item_id: String
|
1424
1714
|
|
@@ -1449,7 +1739,7 @@ module Orb
|
|
1449
1739
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1450
1740
|
|
1451
1741
|
def initialize: (
|
1452
|
-
cadence: Orb::PlanCreateParams::Price::ThresholdTotalAmount::cadence,
|
1742
|
+
cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence,
|
1453
1743
|
item_id: String,
|
1454
1744
|
name: String,
|
1455
1745
|
threshold_total_amount_config: ::Hash[Symbol, top],
|
@@ -1466,6 +1756,24 @@ module Orb
|
|
1466
1756
|
?model_type: :threshold_total_amount
|
1467
1757
|
) -> void
|
1468
1758
|
|
1759
|
+
def to_hash: -> {
|
1760
|
+
cadence: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence,
|
1761
|
+
item_id: String,
|
1762
|
+
model_type: :threshold_total_amount,
|
1763
|
+
name: String,
|
1764
|
+
threshold_total_amount_config: ::Hash[Symbol, top],
|
1765
|
+
billable_metric_id: String?,
|
1766
|
+
billed_in_advance: bool?,
|
1767
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration?,
|
1768
|
+
conversion_rate: Float?,
|
1769
|
+
currency: String?,
|
1770
|
+
external_price_id: String?,
|
1771
|
+
fixed_price_quantity: Float?,
|
1772
|
+
invoice_grouping_key: String?,
|
1773
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration?,
|
1774
|
+
metadata: ::Hash[Symbol, String?]?
|
1775
|
+
}
|
1776
|
+
|
1469
1777
|
type cadence =
|
1470
1778
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1471
1779
|
|
@@ -1479,25 +1787,30 @@ module Orb
|
|
1479
1787
|
ONE_TIME: :one_time
|
1480
1788
|
CUSTOM: :custom
|
1481
1789
|
|
1482
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ThresholdTotalAmount::cadence]
|
1790
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::cadence]
|
1483
1791
|
end
|
1484
1792
|
|
1485
1793
|
type billing_cycle_configuration =
|
1486
1794
|
{
|
1487
1795
|
duration: Integer,
|
1488
|
-
duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit
|
1796
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit
|
1489
1797
|
}
|
1490
1798
|
|
1491
1799
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1492
1800
|
attr_accessor duration: Integer
|
1493
1801
|
|
1494
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit
|
1802
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit
|
1495
1803
|
|
1496
1804
|
def initialize: (
|
1497
1805
|
duration: Integer,
|
1498
|
-
duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit
|
1806
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit
|
1499
1807
|
) -> void
|
1500
1808
|
|
1809
|
+
def to_hash: -> {
|
1810
|
+
duration: Integer,
|
1811
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit
|
1812
|
+
}
|
1813
|
+
|
1501
1814
|
type duration_unit = :day | :month
|
1502
1815
|
|
1503
1816
|
module DurationUnit
|
@@ -1506,26 +1819,31 @@ module Orb
|
|
1506
1819
|
DAY: :day
|
1507
1820
|
MONTH: :month
|
1508
1821
|
|
1509
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit]
|
1822
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::BillingCycleConfiguration::duration_unit]
|
1510
1823
|
end
|
1511
1824
|
end
|
1512
1825
|
|
1513
1826
|
type invoicing_cycle_configuration =
|
1514
1827
|
{
|
1515
1828
|
duration: Integer,
|
1516
|
-
duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit
|
1829
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit
|
1517
1830
|
}
|
1518
1831
|
|
1519
1832
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1520
1833
|
attr_accessor duration: Integer
|
1521
1834
|
|
1522
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit
|
1835
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit
|
1523
1836
|
|
1524
1837
|
def initialize: (
|
1525
1838
|
duration: Integer,
|
1526
|
-
duration_unit: Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit
|
1839
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit
|
1527
1840
|
) -> void
|
1528
1841
|
|
1842
|
+
def to_hash: -> {
|
1843
|
+
duration: Integer,
|
1844
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit
|
1845
|
+
}
|
1846
|
+
|
1529
1847
|
type duration_unit = :day | :month
|
1530
1848
|
|
1531
1849
|
module DurationUnit
|
@@ -1534,14 +1852,14 @@ module Orb
|
|
1534
1852
|
DAY: :day
|
1535
1853
|
MONTH: :month
|
1536
1854
|
|
1537
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit]
|
1855
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ThresholdTotalAmount::InvoicingCycleConfiguration::duration_unit]
|
1538
1856
|
end
|
1539
1857
|
end
|
1540
1858
|
end
|
1541
1859
|
|
1542
1860
|
type tiered_package =
|
1543
1861
|
{
|
1544
|
-
cadence: Orb::PlanCreateParams::Price::TieredPackage::cadence,
|
1862
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::cadence,
|
1545
1863
|
item_id: String,
|
1546
1864
|
model_type: :tiered_package,
|
1547
1865
|
name: String,
|
@@ -1559,7 +1877,7 @@ module Orb
|
|
1559
1877
|
}
|
1560
1878
|
|
1561
1879
|
class TieredPackage < Orb::Internal::Type::BaseModel
|
1562
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::TieredPackage::cadence
|
1880
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::cadence
|
1563
1881
|
|
1564
1882
|
attr_accessor item_id: String
|
1565
1883
|
|
@@ -1590,7 +1908,7 @@ module Orb
|
|
1590
1908
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1591
1909
|
|
1592
1910
|
def initialize: (
|
1593
|
-
cadence: Orb::PlanCreateParams::Price::TieredPackage::cadence,
|
1911
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::cadence,
|
1594
1912
|
item_id: String,
|
1595
1913
|
name: String,
|
1596
1914
|
tiered_package_config: ::Hash[Symbol, top],
|
@@ -1607,6 +1925,24 @@ module Orb
|
|
1607
1925
|
?model_type: :tiered_package
|
1608
1926
|
) -> void
|
1609
1927
|
|
1928
|
+
def to_hash: -> {
|
1929
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredPackage::cadence,
|
1930
|
+
item_id: String,
|
1931
|
+
model_type: :tiered_package,
|
1932
|
+
name: String,
|
1933
|
+
tiered_package_config: ::Hash[Symbol, top],
|
1934
|
+
billable_metric_id: String?,
|
1935
|
+
billed_in_advance: bool?,
|
1936
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration?,
|
1937
|
+
conversion_rate: Float?,
|
1938
|
+
currency: String?,
|
1939
|
+
external_price_id: String?,
|
1940
|
+
fixed_price_quantity: Float?,
|
1941
|
+
invoice_grouping_key: String?,
|
1942
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration?,
|
1943
|
+
metadata: ::Hash[Symbol, String?]?
|
1944
|
+
}
|
1945
|
+
|
1610
1946
|
type cadence =
|
1611
1947
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1612
1948
|
|
@@ -1620,25 +1956,30 @@ module Orb
|
|
1620
1956
|
ONE_TIME: :one_time
|
1621
1957
|
CUSTOM: :custom
|
1622
1958
|
|
1623
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredPackage::cadence]
|
1959
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredPackage::cadence]
|
1624
1960
|
end
|
1625
1961
|
|
1626
1962
|
type billing_cycle_configuration =
|
1627
1963
|
{
|
1628
1964
|
duration: Integer,
|
1629
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit
|
1965
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit
|
1630
1966
|
}
|
1631
1967
|
|
1632
1968
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1633
1969
|
attr_accessor duration: Integer
|
1634
1970
|
|
1635
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit
|
1971
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit
|
1636
1972
|
|
1637
1973
|
def initialize: (
|
1638
1974
|
duration: Integer,
|
1639
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit
|
1975
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit
|
1640
1976
|
) -> void
|
1641
1977
|
|
1978
|
+
def to_hash: -> {
|
1979
|
+
duration: Integer,
|
1980
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit
|
1981
|
+
}
|
1982
|
+
|
1642
1983
|
type duration_unit = :day | :month
|
1643
1984
|
|
1644
1985
|
module DurationUnit
|
@@ -1647,26 +1988,31 @@ module Orb
|
|
1647
1988
|
DAY: :day
|
1648
1989
|
MONTH: :month
|
1649
1990
|
|
1650
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit]
|
1991
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredPackage::BillingCycleConfiguration::duration_unit]
|
1651
1992
|
end
|
1652
1993
|
end
|
1653
1994
|
|
1654
1995
|
type invoicing_cycle_configuration =
|
1655
1996
|
{
|
1656
1997
|
duration: Integer,
|
1657
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit
|
1998
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit
|
1658
1999
|
}
|
1659
2000
|
|
1660
2001
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1661
2002
|
attr_accessor duration: Integer
|
1662
2003
|
|
1663
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit
|
2004
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit
|
1664
2005
|
|
1665
2006
|
def initialize: (
|
1666
2007
|
duration: Integer,
|
1667
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit
|
2008
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit
|
1668
2009
|
) -> void
|
1669
2010
|
|
2011
|
+
def to_hash: -> {
|
2012
|
+
duration: Integer,
|
2013
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit
|
2014
|
+
}
|
2015
|
+
|
1670
2016
|
type duration_unit = :day | :month
|
1671
2017
|
|
1672
2018
|
module DurationUnit
|
@@ -1675,14 +2021,14 @@ module Orb
|
|
1675
2021
|
DAY: :day
|
1676
2022
|
MONTH: :month
|
1677
2023
|
|
1678
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit]
|
2024
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredPackage::InvoicingCycleConfiguration::duration_unit]
|
1679
2025
|
end
|
1680
2026
|
end
|
1681
2027
|
end
|
1682
2028
|
|
1683
2029
|
type tiered_with_minimum =
|
1684
2030
|
{
|
1685
|
-
cadence: Orb::PlanCreateParams::Price::TieredWithMinimum::cadence,
|
2031
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence,
|
1686
2032
|
item_id: String,
|
1687
2033
|
model_type: :tiered_with_minimum,
|
1688
2034
|
name: String,
|
@@ -1700,7 +2046,7 @@ module Orb
|
|
1700
2046
|
}
|
1701
2047
|
|
1702
2048
|
class TieredWithMinimum < Orb::Internal::Type::BaseModel
|
1703
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::TieredWithMinimum::cadence
|
2049
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence
|
1704
2050
|
|
1705
2051
|
attr_accessor item_id: String
|
1706
2052
|
|
@@ -1731,7 +2077,7 @@ module Orb
|
|
1731
2077
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1732
2078
|
|
1733
2079
|
def initialize: (
|
1734
|
-
cadence: Orb::PlanCreateParams::Price::TieredWithMinimum::cadence,
|
2080
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence,
|
1735
2081
|
item_id: String,
|
1736
2082
|
name: String,
|
1737
2083
|
tiered_with_minimum_config: ::Hash[Symbol, top],
|
@@ -1748,6 +2094,24 @@ module Orb
|
|
1748
2094
|
?model_type: :tiered_with_minimum
|
1749
2095
|
) -> void
|
1750
2096
|
|
2097
|
+
def to_hash: -> {
|
2098
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence,
|
2099
|
+
item_id: String,
|
2100
|
+
model_type: :tiered_with_minimum,
|
2101
|
+
name: String,
|
2102
|
+
tiered_with_minimum_config: ::Hash[Symbol, top],
|
2103
|
+
billable_metric_id: String?,
|
2104
|
+
billed_in_advance: bool?,
|
2105
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration?,
|
2106
|
+
conversion_rate: Float?,
|
2107
|
+
currency: String?,
|
2108
|
+
external_price_id: String?,
|
2109
|
+
fixed_price_quantity: Float?,
|
2110
|
+
invoice_grouping_key: String?,
|
2111
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration?,
|
2112
|
+
metadata: ::Hash[Symbol, String?]?
|
2113
|
+
}
|
2114
|
+
|
1751
2115
|
type cadence =
|
1752
2116
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1753
2117
|
|
@@ -1761,25 +2125,30 @@ module Orb
|
|
1761
2125
|
ONE_TIME: :one_time
|
1762
2126
|
CUSTOM: :custom
|
1763
2127
|
|
1764
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithMinimum::cadence]
|
2128
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithMinimum::cadence]
|
1765
2129
|
end
|
1766
2130
|
|
1767
2131
|
type billing_cycle_configuration =
|
1768
2132
|
{
|
1769
2133
|
duration: Integer,
|
1770
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit
|
2134
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit
|
1771
2135
|
}
|
1772
2136
|
|
1773
2137
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1774
2138
|
attr_accessor duration: Integer
|
1775
2139
|
|
1776
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit
|
2140
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit
|
1777
2141
|
|
1778
2142
|
def initialize: (
|
1779
2143
|
duration: Integer,
|
1780
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit
|
2144
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit
|
1781
2145
|
) -> void
|
1782
2146
|
|
2147
|
+
def to_hash: -> {
|
2148
|
+
duration: Integer,
|
2149
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit
|
2150
|
+
}
|
2151
|
+
|
1783
2152
|
type duration_unit = :day | :month
|
1784
2153
|
|
1785
2154
|
module DurationUnit
|
@@ -1788,26 +2157,31 @@ module Orb
|
|
1788
2157
|
DAY: :day
|
1789
2158
|
MONTH: :month
|
1790
2159
|
|
1791
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit]
|
2160
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithMinimum::BillingCycleConfiguration::duration_unit]
|
1792
2161
|
end
|
1793
2162
|
end
|
1794
2163
|
|
1795
2164
|
type invoicing_cycle_configuration =
|
1796
2165
|
{
|
1797
2166
|
duration: Integer,
|
1798
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit
|
2167
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit
|
1799
2168
|
}
|
1800
2169
|
|
1801
2170
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1802
2171
|
attr_accessor duration: Integer
|
1803
2172
|
|
1804
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit
|
2173
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit
|
1805
2174
|
|
1806
2175
|
def initialize: (
|
1807
2176
|
duration: Integer,
|
1808
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit
|
2177
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit
|
1809
2178
|
) -> void
|
1810
2179
|
|
2180
|
+
def to_hash: -> {
|
2181
|
+
duration: Integer,
|
2182
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit
|
2183
|
+
}
|
2184
|
+
|
1811
2185
|
type duration_unit = :day | :month
|
1812
2186
|
|
1813
2187
|
module DurationUnit
|
@@ -1816,14 +2190,14 @@ module Orb
|
|
1816
2190
|
DAY: :day
|
1817
2191
|
MONTH: :month
|
1818
2192
|
|
1819
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit]
|
2193
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithMinimum::InvoicingCycleConfiguration::duration_unit]
|
1820
2194
|
end
|
1821
2195
|
end
|
1822
2196
|
end
|
1823
2197
|
|
1824
2198
|
type unit_with_percent =
|
1825
2199
|
{
|
1826
|
-
cadence: Orb::PlanCreateParams::Price::UnitWithPercent::cadence,
|
2200
|
+
cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence,
|
1827
2201
|
item_id: String,
|
1828
2202
|
model_type: :unit_with_percent,
|
1829
2203
|
name: String,
|
@@ -1841,7 +2215,7 @@ module Orb
|
|
1841
2215
|
}
|
1842
2216
|
|
1843
2217
|
class UnitWithPercent < Orb::Internal::Type::BaseModel
|
1844
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::UnitWithPercent::cadence
|
2218
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence
|
1845
2219
|
|
1846
2220
|
attr_accessor item_id: String
|
1847
2221
|
|
@@ -1872,7 +2246,7 @@ module Orb
|
|
1872
2246
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1873
2247
|
|
1874
2248
|
def initialize: (
|
1875
|
-
cadence: Orb::PlanCreateParams::Price::UnitWithPercent::cadence,
|
2249
|
+
cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence,
|
1876
2250
|
item_id: String,
|
1877
2251
|
name: String,
|
1878
2252
|
unit_with_percent_config: ::Hash[Symbol, top],
|
@@ -1889,6 +2263,24 @@ module Orb
|
|
1889
2263
|
?model_type: :unit_with_percent
|
1890
2264
|
) -> void
|
1891
2265
|
|
2266
|
+
def to_hash: -> {
|
2267
|
+
cadence: Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence,
|
2268
|
+
item_id: String,
|
2269
|
+
model_type: :unit_with_percent,
|
2270
|
+
name: String,
|
2271
|
+
unit_with_percent_config: ::Hash[Symbol, top],
|
2272
|
+
billable_metric_id: String?,
|
2273
|
+
billed_in_advance: bool?,
|
2274
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration?,
|
2275
|
+
conversion_rate: Float?,
|
2276
|
+
currency: String?,
|
2277
|
+
external_price_id: String?,
|
2278
|
+
fixed_price_quantity: Float?,
|
2279
|
+
invoice_grouping_key: String?,
|
2280
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration?,
|
2281
|
+
metadata: ::Hash[Symbol, String?]?
|
2282
|
+
}
|
2283
|
+
|
1892
2284
|
type cadence =
|
1893
2285
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1894
2286
|
|
@@ -1902,25 +2294,30 @@ module Orb
|
|
1902
2294
|
ONE_TIME: :one_time
|
1903
2295
|
CUSTOM: :custom
|
1904
2296
|
|
1905
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithPercent::cadence]
|
2297
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithPercent::cadence]
|
1906
2298
|
end
|
1907
2299
|
|
1908
2300
|
type billing_cycle_configuration =
|
1909
2301
|
{
|
1910
2302
|
duration: Integer,
|
1911
|
-
duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit
|
2303
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit
|
1912
2304
|
}
|
1913
2305
|
|
1914
2306
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1915
2307
|
attr_accessor duration: Integer
|
1916
2308
|
|
1917
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit
|
2309
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit
|
1918
2310
|
|
1919
2311
|
def initialize: (
|
1920
2312
|
duration: Integer,
|
1921
|
-
duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit
|
2313
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit
|
1922
2314
|
) -> void
|
1923
2315
|
|
2316
|
+
def to_hash: -> {
|
2317
|
+
duration: Integer,
|
2318
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit
|
2319
|
+
}
|
2320
|
+
|
1924
2321
|
type duration_unit = :day | :month
|
1925
2322
|
|
1926
2323
|
module DurationUnit
|
@@ -1929,26 +2326,31 @@ module Orb
|
|
1929
2326
|
DAY: :day
|
1930
2327
|
MONTH: :month
|
1931
2328
|
|
1932
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit]
|
2329
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithPercent::BillingCycleConfiguration::duration_unit]
|
1933
2330
|
end
|
1934
2331
|
end
|
1935
2332
|
|
1936
2333
|
type invoicing_cycle_configuration =
|
1937
2334
|
{
|
1938
2335
|
duration: Integer,
|
1939
|
-
duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit
|
2336
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit
|
1940
2337
|
}
|
1941
2338
|
|
1942
2339
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
1943
2340
|
attr_accessor duration: Integer
|
1944
2341
|
|
1945
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit
|
2342
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit
|
1946
2343
|
|
1947
2344
|
def initialize: (
|
1948
2345
|
duration: Integer,
|
1949
|
-
duration_unit: Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit
|
2346
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit
|
1950
2347
|
) -> void
|
1951
2348
|
|
2349
|
+
def to_hash: -> {
|
2350
|
+
duration: Integer,
|
2351
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit
|
2352
|
+
}
|
2353
|
+
|
1952
2354
|
type duration_unit = :day | :month
|
1953
2355
|
|
1954
2356
|
module DurationUnit
|
@@ -1957,14 +2359,14 @@ module Orb
|
|
1957
2359
|
DAY: :day
|
1958
2360
|
MONTH: :month
|
1959
2361
|
|
1960
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit]
|
2362
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithPercent::InvoicingCycleConfiguration::duration_unit]
|
1961
2363
|
end
|
1962
2364
|
end
|
1963
2365
|
end
|
1964
2366
|
|
1965
2367
|
type package_with_allocation =
|
1966
2368
|
{
|
1967
|
-
cadence: Orb::PlanCreateParams::Price::PackageWithAllocation::cadence,
|
2369
|
+
cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence,
|
1968
2370
|
item_id: String,
|
1969
2371
|
model_type: :package_with_allocation,
|
1970
2372
|
name: String,
|
@@ -1982,7 +2384,7 @@ module Orb
|
|
1982
2384
|
}
|
1983
2385
|
|
1984
2386
|
class PackageWithAllocation < Orb::Internal::Type::BaseModel
|
1985
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::PackageWithAllocation::cadence
|
2387
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence
|
1986
2388
|
|
1987
2389
|
attr_accessor item_id: String
|
1988
2390
|
|
@@ -2013,7 +2415,7 @@ module Orb
|
|
2013
2415
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2014
2416
|
|
2015
2417
|
def initialize: (
|
2016
|
-
cadence: Orb::PlanCreateParams::Price::PackageWithAllocation::cadence,
|
2418
|
+
cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence,
|
2017
2419
|
item_id: String,
|
2018
2420
|
name: String,
|
2019
2421
|
package_with_allocation_config: ::Hash[Symbol, top],
|
@@ -2030,6 +2432,24 @@ module Orb
|
|
2030
2432
|
?model_type: :package_with_allocation
|
2031
2433
|
) -> void
|
2032
2434
|
|
2435
|
+
def to_hash: -> {
|
2436
|
+
cadence: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence,
|
2437
|
+
item_id: String,
|
2438
|
+
model_type: :package_with_allocation,
|
2439
|
+
name: String,
|
2440
|
+
package_with_allocation_config: ::Hash[Symbol, top],
|
2441
|
+
billable_metric_id: String?,
|
2442
|
+
billed_in_advance: bool?,
|
2443
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration?,
|
2444
|
+
conversion_rate: Float?,
|
2445
|
+
currency: String?,
|
2446
|
+
external_price_id: String?,
|
2447
|
+
fixed_price_quantity: Float?,
|
2448
|
+
invoice_grouping_key: String?,
|
2449
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration?,
|
2450
|
+
metadata: ::Hash[Symbol, String?]?
|
2451
|
+
}
|
2452
|
+
|
2033
2453
|
type cadence =
|
2034
2454
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2035
2455
|
|
@@ -2043,25 +2463,30 @@ module Orb
|
|
2043
2463
|
ONE_TIME: :one_time
|
2044
2464
|
CUSTOM: :custom
|
2045
2465
|
|
2046
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::PackageWithAllocation::cadence]
|
2466
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::PackageWithAllocation::cadence]
|
2047
2467
|
end
|
2048
2468
|
|
2049
2469
|
type billing_cycle_configuration =
|
2050
2470
|
{
|
2051
2471
|
duration: Integer,
|
2052
|
-
duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit
|
2472
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit
|
2053
2473
|
}
|
2054
2474
|
|
2055
2475
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2056
2476
|
attr_accessor duration: Integer
|
2057
2477
|
|
2058
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit
|
2478
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit
|
2059
2479
|
|
2060
2480
|
def initialize: (
|
2061
2481
|
duration: Integer,
|
2062
|
-
duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit
|
2482
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit
|
2063
2483
|
) -> void
|
2064
2484
|
|
2485
|
+
def to_hash: -> {
|
2486
|
+
duration: Integer,
|
2487
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit
|
2488
|
+
}
|
2489
|
+
|
2065
2490
|
type duration_unit = :day | :month
|
2066
2491
|
|
2067
2492
|
module DurationUnit
|
@@ -2070,26 +2495,31 @@ module Orb
|
|
2070
2495
|
DAY: :day
|
2071
2496
|
MONTH: :month
|
2072
2497
|
|
2073
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit]
|
2498
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::PackageWithAllocation::BillingCycleConfiguration::duration_unit]
|
2074
2499
|
end
|
2075
2500
|
end
|
2076
2501
|
|
2077
2502
|
type invoicing_cycle_configuration =
|
2078
2503
|
{
|
2079
2504
|
duration: Integer,
|
2080
|
-
duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit
|
2505
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit
|
2081
2506
|
}
|
2082
2507
|
|
2083
2508
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2084
2509
|
attr_accessor duration: Integer
|
2085
2510
|
|
2086
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit
|
2511
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit
|
2087
2512
|
|
2088
2513
|
def initialize: (
|
2089
2514
|
duration: Integer,
|
2090
|
-
duration_unit: Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit
|
2515
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit
|
2091
2516
|
) -> void
|
2092
2517
|
|
2518
|
+
def to_hash: -> {
|
2519
|
+
duration: Integer,
|
2520
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit
|
2521
|
+
}
|
2522
|
+
|
2093
2523
|
type duration_unit = :day | :month
|
2094
2524
|
|
2095
2525
|
module DurationUnit
|
@@ -2098,14 +2528,14 @@ module Orb
|
|
2098
2528
|
DAY: :day
|
2099
2529
|
MONTH: :month
|
2100
2530
|
|
2101
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit]
|
2531
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::PackageWithAllocation::InvoicingCycleConfiguration::duration_unit]
|
2102
2532
|
end
|
2103
2533
|
end
|
2104
2534
|
end
|
2105
2535
|
|
2106
2536
|
type tiered_with_proration =
|
2107
2537
|
{
|
2108
|
-
cadence: Orb::PlanCreateParams::Price::TieredWithProration::cadence,
|
2538
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence,
|
2109
2539
|
item_id: String,
|
2110
2540
|
model_type: :tiered_with_proration,
|
2111
2541
|
name: String,
|
@@ -2123,7 +2553,7 @@ module Orb
|
|
2123
2553
|
}
|
2124
2554
|
|
2125
2555
|
class TieredWithProration < Orb::Internal::Type::BaseModel
|
2126
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::TieredWithProration::cadence
|
2556
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence
|
2127
2557
|
|
2128
2558
|
attr_accessor item_id: String
|
2129
2559
|
|
@@ -2154,7 +2584,7 @@ module Orb
|
|
2154
2584
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2155
2585
|
|
2156
2586
|
def initialize: (
|
2157
|
-
cadence: Orb::PlanCreateParams::Price::TieredWithProration::cadence,
|
2587
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence,
|
2158
2588
|
item_id: String,
|
2159
2589
|
name: String,
|
2160
2590
|
tiered_with_proration_config: ::Hash[Symbol, top],
|
@@ -2171,6 +2601,24 @@ module Orb
|
|
2171
2601
|
?model_type: :tiered_with_proration
|
2172
2602
|
) -> void
|
2173
2603
|
|
2604
|
+
def to_hash: -> {
|
2605
|
+
cadence: Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence,
|
2606
|
+
item_id: String,
|
2607
|
+
model_type: :tiered_with_proration,
|
2608
|
+
name: String,
|
2609
|
+
tiered_with_proration_config: ::Hash[Symbol, top],
|
2610
|
+
billable_metric_id: String?,
|
2611
|
+
billed_in_advance: bool?,
|
2612
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration?,
|
2613
|
+
conversion_rate: Float?,
|
2614
|
+
currency: String?,
|
2615
|
+
external_price_id: String?,
|
2616
|
+
fixed_price_quantity: Float?,
|
2617
|
+
invoice_grouping_key: String?,
|
2618
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration?,
|
2619
|
+
metadata: ::Hash[Symbol, String?]?
|
2620
|
+
}
|
2621
|
+
|
2174
2622
|
type cadence =
|
2175
2623
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2176
2624
|
|
@@ -2184,25 +2632,30 @@ module Orb
|
|
2184
2632
|
ONE_TIME: :one_time
|
2185
2633
|
CUSTOM: :custom
|
2186
2634
|
|
2187
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithProration::cadence]
|
2635
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithProration::cadence]
|
2188
2636
|
end
|
2189
2637
|
|
2190
2638
|
type billing_cycle_configuration =
|
2191
2639
|
{
|
2192
2640
|
duration: Integer,
|
2193
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit
|
2641
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit
|
2194
2642
|
}
|
2195
2643
|
|
2196
2644
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2197
2645
|
attr_accessor duration: Integer
|
2198
2646
|
|
2199
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit
|
2647
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit
|
2200
2648
|
|
2201
2649
|
def initialize: (
|
2202
2650
|
duration: Integer,
|
2203
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit
|
2651
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit
|
2204
2652
|
) -> void
|
2205
2653
|
|
2654
|
+
def to_hash: -> {
|
2655
|
+
duration: Integer,
|
2656
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit
|
2657
|
+
}
|
2658
|
+
|
2206
2659
|
type duration_unit = :day | :month
|
2207
2660
|
|
2208
2661
|
module DurationUnit
|
@@ -2211,26 +2664,31 @@ module Orb
|
|
2211
2664
|
DAY: :day
|
2212
2665
|
MONTH: :month
|
2213
2666
|
|
2214
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit]
|
2667
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithProration::BillingCycleConfiguration::duration_unit]
|
2215
2668
|
end
|
2216
2669
|
end
|
2217
2670
|
|
2218
2671
|
type invoicing_cycle_configuration =
|
2219
2672
|
{
|
2220
2673
|
duration: Integer,
|
2221
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit
|
2674
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit
|
2222
2675
|
}
|
2223
2676
|
|
2224
2677
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2225
2678
|
attr_accessor duration: Integer
|
2226
2679
|
|
2227
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit
|
2680
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit
|
2228
2681
|
|
2229
2682
|
def initialize: (
|
2230
2683
|
duration: Integer,
|
2231
|
-
duration_unit: Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit
|
2684
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit
|
2232
2685
|
) -> void
|
2233
2686
|
|
2687
|
+
def to_hash: -> {
|
2688
|
+
duration: Integer,
|
2689
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit
|
2690
|
+
}
|
2691
|
+
|
2234
2692
|
type duration_unit = :day | :month
|
2235
2693
|
|
2236
2694
|
module DurationUnit
|
@@ -2239,14 +2697,14 @@ module Orb
|
|
2239
2697
|
DAY: :day
|
2240
2698
|
MONTH: :month
|
2241
2699
|
|
2242
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit]
|
2700
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::TieredWithProration::InvoicingCycleConfiguration::duration_unit]
|
2243
2701
|
end
|
2244
2702
|
end
|
2245
2703
|
end
|
2246
2704
|
|
2247
2705
|
type unit_with_proration =
|
2248
2706
|
{
|
2249
|
-
cadence: Orb::PlanCreateParams::Price::UnitWithProration::cadence,
|
2707
|
+
cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence,
|
2250
2708
|
item_id: String,
|
2251
2709
|
model_type: :unit_with_proration,
|
2252
2710
|
name: String,
|
@@ -2264,7 +2722,7 @@ module Orb
|
|
2264
2722
|
}
|
2265
2723
|
|
2266
2724
|
class UnitWithProration < Orb::Internal::Type::BaseModel
|
2267
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::UnitWithProration::cadence
|
2725
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence
|
2268
2726
|
|
2269
2727
|
attr_accessor item_id: String
|
2270
2728
|
|
@@ -2295,7 +2753,7 @@ module Orb
|
|
2295
2753
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2296
2754
|
|
2297
2755
|
def initialize: (
|
2298
|
-
cadence: Orb::PlanCreateParams::Price::UnitWithProration::cadence,
|
2756
|
+
cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence,
|
2299
2757
|
item_id: String,
|
2300
2758
|
name: String,
|
2301
2759
|
unit_with_proration_config: ::Hash[Symbol, top],
|
@@ -2312,6 +2770,24 @@ module Orb
|
|
2312
2770
|
?model_type: :unit_with_proration
|
2313
2771
|
) -> void
|
2314
2772
|
|
2773
|
+
def to_hash: -> {
|
2774
|
+
cadence: Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence,
|
2775
|
+
item_id: String,
|
2776
|
+
model_type: :unit_with_proration,
|
2777
|
+
name: String,
|
2778
|
+
unit_with_proration_config: ::Hash[Symbol, top],
|
2779
|
+
billable_metric_id: String?,
|
2780
|
+
billed_in_advance: bool?,
|
2781
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration?,
|
2782
|
+
conversion_rate: Float?,
|
2783
|
+
currency: String?,
|
2784
|
+
external_price_id: String?,
|
2785
|
+
fixed_price_quantity: Float?,
|
2786
|
+
invoice_grouping_key: String?,
|
2787
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration?,
|
2788
|
+
metadata: ::Hash[Symbol, String?]?
|
2789
|
+
}
|
2790
|
+
|
2315
2791
|
type cadence =
|
2316
2792
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2317
2793
|
|
@@ -2325,25 +2801,30 @@ module Orb
|
|
2325
2801
|
ONE_TIME: :one_time
|
2326
2802
|
CUSTOM: :custom
|
2327
2803
|
|
2328
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithProration::cadence]
|
2804
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithProration::cadence]
|
2329
2805
|
end
|
2330
2806
|
|
2331
2807
|
type billing_cycle_configuration =
|
2332
2808
|
{
|
2333
2809
|
duration: Integer,
|
2334
|
-
duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit
|
2810
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit
|
2335
2811
|
}
|
2336
2812
|
|
2337
2813
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2338
2814
|
attr_accessor duration: Integer
|
2339
2815
|
|
2340
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit
|
2816
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit
|
2341
2817
|
|
2342
2818
|
def initialize: (
|
2343
2819
|
duration: Integer,
|
2344
|
-
duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit
|
2820
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit
|
2345
2821
|
) -> void
|
2346
2822
|
|
2823
|
+
def to_hash: -> {
|
2824
|
+
duration: Integer,
|
2825
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit
|
2826
|
+
}
|
2827
|
+
|
2347
2828
|
type duration_unit = :day | :month
|
2348
2829
|
|
2349
2830
|
module DurationUnit
|
@@ -2352,26 +2833,31 @@ module Orb
|
|
2352
2833
|
DAY: :day
|
2353
2834
|
MONTH: :month
|
2354
2835
|
|
2355
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit]
|
2836
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithProration::BillingCycleConfiguration::duration_unit]
|
2356
2837
|
end
|
2357
2838
|
end
|
2358
2839
|
|
2359
2840
|
type invoicing_cycle_configuration =
|
2360
2841
|
{
|
2361
2842
|
duration: Integer,
|
2362
|
-
duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit
|
2843
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit
|
2363
2844
|
}
|
2364
2845
|
|
2365
2846
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2366
2847
|
attr_accessor duration: Integer
|
2367
2848
|
|
2368
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit
|
2849
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit
|
2369
2850
|
|
2370
2851
|
def initialize: (
|
2371
2852
|
duration: Integer,
|
2372
|
-
duration_unit: Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit
|
2853
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit
|
2373
2854
|
) -> void
|
2374
2855
|
|
2856
|
+
def to_hash: -> {
|
2857
|
+
duration: Integer,
|
2858
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit
|
2859
|
+
}
|
2860
|
+
|
2375
2861
|
type duration_unit = :day | :month
|
2376
2862
|
|
2377
2863
|
module DurationUnit
|
@@ -2380,14 +2866,14 @@ module Orb
|
|
2380
2866
|
DAY: :day
|
2381
2867
|
MONTH: :month
|
2382
2868
|
|
2383
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit]
|
2869
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::UnitWithProration::InvoicingCycleConfiguration::duration_unit]
|
2384
2870
|
end
|
2385
2871
|
end
|
2386
2872
|
end
|
2387
2873
|
|
2388
2874
|
type grouped_allocation =
|
2389
2875
|
{
|
2390
|
-
cadence: Orb::PlanCreateParams::Price::GroupedAllocation::cadence,
|
2876
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence,
|
2391
2877
|
grouped_allocation_config: ::Hash[Symbol, top],
|
2392
2878
|
item_id: String,
|
2393
2879
|
model_type: :grouped_allocation,
|
@@ -2405,7 +2891,7 @@ module Orb
|
|
2405
2891
|
}
|
2406
2892
|
|
2407
2893
|
class GroupedAllocation < Orb::Internal::Type::BaseModel
|
2408
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::GroupedAllocation::cadence
|
2894
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence
|
2409
2895
|
|
2410
2896
|
attr_accessor grouped_allocation_config: ::Hash[Symbol, top]
|
2411
2897
|
|
@@ -2436,7 +2922,7 @@ module Orb
|
|
2436
2922
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2437
2923
|
|
2438
2924
|
def initialize: (
|
2439
|
-
cadence: Orb::PlanCreateParams::Price::GroupedAllocation::cadence,
|
2925
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence,
|
2440
2926
|
grouped_allocation_config: ::Hash[Symbol, top],
|
2441
2927
|
item_id: String,
|
2442
2928
|
name: String,
|
@@ -2453,6 +2939,24 @@ module Orb
|
|
2453
2939
|
?model_type: :grouped_allocation
|
2454
2940
|
) -> void
|
2455
2941
|
|
2942
|
+
def to_hash: -> {
|
2943
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence,
|
2944
|
+
grouped_allocation_config: ::Hash[Symbol, top],
|
2945
|
+
item_id: String,
|
2946
|
+
model_type: :grouped_allocation,
|
2947
|
+
name: String,
|
2948
|
+
billable_metric_id: String?,
|
2949
|
+
billed_in_advance: bool?,
|
2950
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration?,
|
2951
|
+
conversion_rate: Float?,
|
2952
|
+
currency: String?,
|
2953
|
+
external_price_id: String?,
|
2954
|
+
fixed_price_quantity: Float?,
|
2955
|
+
invoice_grouping_key: String?,
|
2956
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration?,
|
2957
|
+
metadata: ::Hash[Symbol, String?]?
|
2958
|
+
}
|
2959
|
+
|
2456
2960
|
type cadence =
|
2457
2961
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2458
2962
|
|
@@ -2466,25 +2970,30 @@ module Orb
|
|
2466
2970
|
ONE_TIME: :one_time
|
2467
2971
|
CUSTOM: :custom
|
2468
2972
|
|
2469
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedAllocation::cadence]
|
2973
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedAllocation::cadence]
|
2470
2974
|
end
|
2471
2975
|
|
2472
2976
|
type billing_cycle_configuration =
|
2473
2977
|
{
|
2474
2978
|
duration: Integer,
|
2475
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit
|
2979
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit
|
2476
2980
|
}
|
2477
2981
|
|
2478
2982
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2479
2983
|
attr_accessor duration: Integer
|
2480
2984
|
|
2481
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit
|
2985
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit
|
2482
2986
|
|
2483
2987
|
def initialize: (
|
2484
2988
|
duration: Integer,
|
2485
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit
|
2989
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit
|
2486
2990
|
) -> void
|
2487
2991
|
|
2992
|
+
def to_hash: -> {
|
2993
|
+
duration: Integer,
|
2994
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit
|
2995
|
+
}
|
2996
|
+
|
2488
2997
|
type duration_unit = :day | :month
|
2489
2998
|
|
2490
2999
|
module DurationUnit
|
@@ -2493,26 +3002,31 @@ module Orb
|
|
2493
3002
|
DAY: :day
|
2494
3003
|
MONTH: :month
|
2495
3004
|
|
2496
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit]
|
3005
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedAllocation::BillingCycleConfiguration::duration_unit]
|
2497
3006
|
end
|
2498
3007
|
end
|
2499
3008
|
|
2500
3009
|
type invoicing_cycle_configuration =
|
2501
3010
|
{
|
2502
3011
|
duration: Integer,
|
2503
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit
|
3012
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit
|
2504
3013
|
}
|
2505
3014
|
|
2506
3015
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2507
3016
|
attr_accessor duration: Integer
|
2508
3017
|
|
2509
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit
|
3018
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit
|
2510
3019
|
|
2511
3020
|
def initialize: (
|
2512
3021
|
duration: Integer,
|
2513
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit
|
3022
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit
|
2514
3023
|
) -> void
|
2515
3024
|
|
3025
|
+
def to_hash: -> {
|
3026
|
+
duration: Integer,
|
3027
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit
|
3028
|
+
}
|
3029
|
+
|
2516
3030
|
type duration_unit = :day | :month
|
2517
3031
|
|
2518
3032
|
module DurationUnit
|
@@ -2521,14 +3035,14 @@ module Orb
|
|
2521
3035
|
DAY: :day
|
2522
3036
|
MONTH: :month
|
2523
3037
|
|
2524
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit]
|
3038
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedAllocation::InvoicingCycleConfiguration::duration_unit]
|
2525
3039
|
end
|
2526
3040
|
end
|
2527
3041
|
end
|
2528
3042
|
|
2529
3043
|
type grouped_with_prorated_minimum =
|
2530
3044
|
{
|
2531
|
-
cadence: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence,
|
3045
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence,
|
2532
3046
|
grouped_with_prorated_minimum_config: ::Hash[Symbol, top],
|
2533
3047
|
item_id: String,
|
2534
3048
|
model_type: :grouped_with_prorated_minimum,
|
@@ -2546,7 +3060,7 @@ module Orb
|
|
2546
3060
|
}
|
2547
3061
|
|
2548
3062
|
class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel
|
2549
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence
|
3063
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence
|
2550
3064
|
|
2551
3065
|
attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top]
|
2552
3066
|
|
@@ -2577,7 +3091,7 @@ module Orb
|
|
2577
3091
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2578
3092
|
|
2579
3093
|
def initialize: (
|
2580
|
-
cadence: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence,
|
3094
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence,
|
2581
3095
|
grouped_with_prorated_minimum_config: ::Hash[Symbol, top],
|
2582
3096
|
item_id: String,
|
2583
3097
|
name: String,
|
@@ -2594,6 +3108,24 @@ module Orb
|
|
2594
3108
|
?model_type: :grouped_with_prorated_minimum
|
2595
3109
|
) -> void
|
2596
3110
|
|
3111
|
+
def to_hash: -> {
|
3112
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence,
|
3113
|
+
grouped_with_prorated_minimum_config: ::Hash[Symbol, top],
|
3114
|
+
item_id: String,
|
3115
|
+
model_type: :grouped_with_prorated_minimum,
|
3116
|
+
name: String,
|
3117
|
+
billable_metric_id: String?,
|
3118
|
+
billed_in_advance: bool?,
|
3119
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration?,
|
3120
|
+
conversion_rate: Float?,
|
3121
|
+
currency: String?,
|
3122
|
+
external_price_id: String?,
|
3123
|
+
fixed_price_quantity: Float?,
|
3124
|
+
invoice_grouping_key: String?,
|
3125
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration?,
|
3126
|
+
metadata: ::Hash[Symbol, String?]?
|
3127
|
+
}
|
3128
|
+
|
2597
3129
|
type cadence =
|
2598
3130
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2599
3131
|
|
@@ -2607,25 +3139,30 @@ module Orb
|
|
2607
3139
|
ONE_TIME: :one_time
|
2608
3140
|
CUSTOM: :custom
|
2609
3141
|
|
2610
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence]
|
3142
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::cadence]
|
2611
3143
|
end
|
2612
3144
|
|
2613
3145
|
type billing_cycle_configuration =
|
2614
3146
|
{
|
2615
3147
|
duration: Integer,
|
2616
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit
|
3148
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit
|
2617
3149
|
}
|
2618
3150
|
|
2619
3151
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2620
3152
|
attr_accessor duration: Integer
|
2621
3153
|
|
2622
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit
|
3154
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit
|
2623
3155
|
|
2624
3156
|
def initialize: (
|
2625
3157
|
duration: Integer,
|
2626
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit
|
3158
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit
|
2627
3159
|
) -> void
|
2628
3160
|
|
3161
|
+
def to_hash: -> {
|
3162
|
+
duration: Integer,
|
3163
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit
|
3164
|
+
}
|
3165
|
+
|
2629
3166
|
type duration_unit = :day | :month
|
2630
3167
|
|
2631
3168
|
module DurationUnit
|
@@ -2634,26 +3171,31 @@ module Orb
|
|
2634
3171
|
DAY: :day
|
2635
3172
|
MONTH: :month
|
2636
3173
|
|
2637
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit]
|
3174
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::BillingCycleConfiguration::duration_unit]
|
2638
3175
|
end
|
2639
3176
|
end
|
2640
3177
|
|
2641
3178
|
type invoicing_cycle_configuration =
|
2642
3179
|
{
|
2643
3180
|
duration: Integer,
|
2644
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit
|
3181
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit
|
2645
3182
|
}
|
2646
3183
|
|
2647
3184
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2648
3185
|
attr_accessor duration: Integer
|
2649
3186
|
|
2650
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit
|
3187
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit
|
2651
3188
|
|
2652
3189
|
def initialize: (
|
2653
3190
|
duration: Integer,
|
2654
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit
|
3191
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit
|
2655
3192
|
) -> void
|
2656
3193
|
|
3194
|
+
def to_hash: -> {
|
3195
|
+
duration: Integer,
|
3196
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit
|
3197
|
+
}
|
3198
|
+
|
2657
3199
|
type duration_unit = :day | :month
|
2658
3200
|
|
2659
3201
|
module DurationUnit
|
@@ -2662,14 +3204,14 @@ module Orb
|
|
2662
3204
|
DAY: :day
|
2663
3205
|
MONTH: :month
|
2664
3206
|
|
2665
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit]
|
3207
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithProratedMinimum::InvoicingCycleConfiguration::duration_unit]
|
2666
3208
|
end
|
2667
3209
|
end
|
2668
3210
|
end
|
2669
3211
|
|
2670
3212
|
type grouped_with_metered_minimum =
|
2671
3213
|
{
|
2672
|
-
cadence: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence,
|
3214
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence,
|
2673
3215
|
grouped_with_metered_minimum_config: ::Hash[Symbol, top],
|
2674
3216
|
item_id: String,
|
2675
3217
|
model_type: :grouped_with_metered_minimum,
|
@@ -2687,7 +3229,7 @@ module Orb
|
|
2687
3229
|
}
|
2688
3230
|
|
2689
3231
|
class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel
|
2690
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence
|
3232
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence
|
2691
3233
|
|
2692
3234
|
attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top]
|
2693
3235
|
|
@@ -2718,7 +3260,7 @@ module Orb
|
|
2718
3260
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2719
3261
|
|
2720
3262
|
def initialize: (
|
2721
|
-
cadence: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence,
|
3263
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence,
|
2722
3264
|
grouped_with_metered_minimum_config: ::Hash[Symbol, top],
|
2723
3265
|
item_id: String,
|
2724
3266
|
name: String,
|
@@ -2735,6 +3277,24 @@ module Orb
|
|
2735
3277
|
?model_type: :grouped_with_metered_minimum
|
2736
3278
|
) -> void
|
2737
3279
|
|
3280
|
+
def to_hash: -> {
|
3281
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence,
|
3282
|
+
grouped_with_metered_minimum_config: ::Hash[Symbol, top],
|
3283
|
+
item_id: String,
|
3284
|
+
model_type: :grouped_with_metered_minimum,
|
3285
|
+
name: String,
|
3286
|
+
billable_metric_id: String?,
|
3287
|
+
billed_in_advance: bool?,
|
3288
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration?,
|
3289
|
+
conversion_rate: Float?,
|
3290
|
+
currency: String?,
|
3291
|
+
external_price_id: String?,
|
3292
|
+
fixed_price_quantity: Float?,
|
3293
|
+
invoice_grouping_key: String?,
|
3294
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration?,
|
3295
|
+
metadata: ::Hash[Symbol, String?]?
|
3296
|
+
}
|
3297
|
+
|
2738
3298
|
type cadence =
|
2739
3299
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2740
3300
|
|
@@ -2748,25 +3308,30 @@ module Orb
|
|
2748
3308
|
ONE_TIME: :one_time
|
2749
3309
|
CUSTOM: :custom
|
2750
3310
|
|
2751
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence]
|
3311
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::cadence]
|
2752
3312
|
end
|
2753
3313
|
|
2754
3314
|
type billing_cycle_configuration =
|
2755
3315
|
{
|
2756
3316
|
duration: Integer,
|
2757
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit
|
3317
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit
|
2758
3318
|
}
|
2759
3319
|
|
2760
3320
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2761
3321
|
attr_accessor duration: Integer
|
2762
3322
|
|
2763
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit
|
3323
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit
|
2764
3324
|
|
2765
3325
|
def initialize: (
|
2766
3326
|
duration: Integer,
|
2767
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit
|
3327
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit
|
2768
3328
|
) -> void
|
2769
3329
|
|
3330
|
+
def to_hash: -> {
|
3331
|
+
duration: Integer,
|
3332
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit
|
3333
|
+
}
|
3334
|
+
|
2770
3335
|
type duration_unit = :day | :month
|
2771
3336
|
|
2772
3337
|
module DurationUnit
|
@@ -2775,26 +3340,31 @@ module Orb
|
|
2775
3340
|
DAY: :day
|
2776
3341
|
MONTH: :month
|
2777
3342
|
|
2778
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit]
|
3343
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::BillingCycleConfiguration::duration_unit]
|
2779
3344
|
end
|
2780
3345
|
end
|
2781
3346
|
|
2782
3347
|
type invoicing_cycle_configuration =
|
2783
3348
|
{
|
2784
3349
|
duration: Integer,
|
2785
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit
|
3350
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit
|
2786
3351
|
}
|
2787
3352
|
|
2788
3353
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2789
3354
|
attr_accessor duration: Integer
|
2790
3355
|
|
2791
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit
|
3356
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit
|
2792
3357
|
|
2793
3358
|
def initialize: (
|
2794
3359
|
duration: Integer,
|
2795
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit
|
3360
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit
|
2796
3361
|
) -> void
|
2797
3362
|
|
3363
|
+
def to_hash: -> {
|
3364
|
+
duration: Integer,
|
3365
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit
|
3366
|
+
}
|
3367
|
+
|
2798
3368
|
type duration_unit = :day | :month
|
2799
3369
|
|
2800
3370
|
module DurationUnit
|
@@ -2803,14 +3373,14 @@ module Orb
|
|
2803
3373
|
DAY: :day
|
2804
3374
|
MONTH: :month
|
2805
3375
|
|
2806
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit]
|
3376
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedWithMeteredMinimum::InvoicingCycleConfiguration::duration_unit]
|
2807
3377
|
end
|
2808
3378
|
end
|
2809
3379
|
end
|
2810
3380
|
|
2811
3381
|
type matrix_with_display_name =
|
2812
3382
|
{
|
2813
|
-
cadence: Orb::PlanCreateParams::Price::MatrixWithDisplayName::cadence,
|
3383
|
+
cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence,
|
2814
3384
|
item_id: String,
|
2815
3385
|
matrix_with_display_name_config: ::Hash[Symbol, top],
|
2816
3386
|
model_type: :matrix_with_display_name,
|
@@ -2828,7 +3398,7 @@ module Orb
|
|
2828
3398
|
}
|
2829
3399
|
|
2830
3400
|
class MatrixWithDisplayName < Orb::Internal::Type::BaseModel
|
2831
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::MatrixWithDisplayName::cadence
|
3401
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence
|
2832
3402
|
|
2833
3403
|
attr_accessor item_id: String
|
2834
3404
|
|
@@ -2859,7 +3429,7 @@ module Orb
|
|
2859
3429
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2860
3430
|
|
2861
3431
|
def initialize: (
|
2862
|
-
cadence: Orb::PlanCreateParams::Price::MatrixWithDisplayName::cadence,
|
3432
|
+
cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence,
|
2863
3433
|
item_id: String,
|
2864
3434
|
matrix_with_display_name_config: ::Hash[Symbol, top],
|
2865
3435
|
name: String,
|
@@ -2876,6 +3446,24 @@ module Orb
|
|
2876
3446
|
?model_type: :matrix_with_display_name
|
2877
3447
|
) -> void
|
2878
3448
|
|
3449
|
+
def to_hash: -> {
|
3450
|
+
cadence: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence,
|
3451
|
+
item_id: String,
|
3452
|
+
matrix_with_display_name_config: ::Hash[Symbol, top],
|
3453
|
+
model_type: :matrix_with_display_name,
|
3454
|
+
name: String,
|
3455
|
+
billable_metric_id: String?,
|
3456
|
+
billed_in_advance: bool?,
|
3457
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration?,
|
3458
|
+
conversion_rate: Float?,
|
3459
|
+
currency: String?,
|
3460
|
+
external_price_id: String?,
|
3461
|
+
fixed_price_quantity: Float?,
|
3462
|
+
invoice_grouping_key: String?,
|
3463
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration?,
|
3464
|
+
metadata: ::Hash[Symbol, String?]?
|
3465
|
+
}
|
3466
|
+
|
2879
3467
|
type cadence =
|
2880
3468
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2881
3469
|
|
@@ -2889,25 +3477,30 @@ module Orb
|
|
2889
3477
|
ONE_TIME: :one_time
|
2890
3478
|
CUSTOM: :custom
|
2891
3479
|
|
2892
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MatrixWithDisplayName::cadence]
|
3480
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::cadence]
|
2893
3481
|
end
|
2894
3482
|
|
2895
3483
|
type billing_cycle_configuration =
|
2896
3484
|
{
|
2897
3485
|
duration: Integer,
|
2898
|
-
duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit
|
3486
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit
|
2899
3487
|
}
|
2900
3488
|
|
2901
3489
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2902
3490
|
attr_accessor duration: Integer
|
2903
3491
|
|
2904
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit
|
3492
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit
|
2905
3493
|
|
2906
3494
|
def initialize: (
|
2907
3495
|
duration: Integer,
|
2908
|
-
duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit
|
3496
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit
|
2909
3497
|
) -> void
|
2910
3498
|
|
3499
|
+
def to_hash: -> {
|
3500
|
+
duration: Integer,
|
3501
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit
|
3502
|
+
}
|
3503
|
+
|
2911
3504
|
type duration_unit = :day | :month
|
2912
3505
|
|
2913
3506
|
module DurationUnit
|
@@ -2916,26 +3509,31 @@ module Orb
|
|
2916
3509
|
DAY: :day
|
2917
3510
|
MONTH: :month
|
2918
3511
|
|
2919
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit]
|
3512
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::BillingCycleConfiguration::duration_unit]
|
2920
3513
|
end
|
2921
3514
|
end
|
2922
3515
|
|
2923
3516
|
type invoicing_cycle_configuration =
|
2924
3517
|
{
|
2925
3518
|
duration: Integer,
|
2926
|
-
duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit
|
3519
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit
|
2927
3520
|
}
|
2928
3521
|
|
2929
3522
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
2930
3523
|
attr_accessor duration: Integer
|
2931
3524
|
|
2932
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit
|
3525
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit
|
2933
3526
|
|
2934
3527
|
def initialize: (
|
2935
3528
|
duration: Integer,
|
2936
|
-
duration_unit: Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit
|
3529
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit
|
2937
3530
|
) -> void
|
2938
3531
|
|
3532
|
+
def to_hash: -> {
|
3533
|
+
duration: Integer,
|
3534
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit
|
3535
|
+
}
|
3536
|
+
|
2939
3537
|
type duration_unit = :day | :month
|
2940
3538
|
|
2941
3539
|
module DurationUnit
|
@@ -2944,7 +3542,7 @@ module Orb
|
|
2944
3542
|
DAY: :day
|
2945
3543
|
MONTH: :month
|
2946
3544
|
|
2947
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit]
|
3545
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MatrixWithDisplayName::InvoicingCycleConfiguration::duration_unit]
|
2948
3546
|
end
|
2949
3547
|
end
|
2950
3548
|
end
|
@@ -2952,7 +3550,7 @@ module Orb
|
|
2952
3550
|
type bulk_with_proration =
|
2953
3551
|
{
|
2954
3552
|
bulk_with_proration_config: ::Hash[Symbol, top],
|
2955
|
-
cadence: Orb::PlanCreateParams::Price::BulkWithProration::cadence,
|
3553
|
+
cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence,
|
2956
3554
|
item_id: String,
|
2957
3555
|
model_type: :bulk_with_proration,
|
2958
3556
|
name: String,
|
@@ -2971,7 +3569,7 @@ module Orb
|
|
2971
3569
|
class BulkWithProration < Orb::Internal::Type::BaseModel
|
2972
3570
|
attr_accessor bulk_with_proration_config: ::Hash[Symbol, top]
|
2973
3571
|
|
2974
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::BulkWithProration::cadence
|
3572
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence
|
2975
3573
|
|
2976
3574
|
attr_accessor item_id: String
|
2977
3575
|
|
@@ -3001,7 +3599,7 @@ module Orb
|
|
3001
3599
|
|
3002
3600
|
def initialize: (
|
3003
3601
|
bulk_with_proration_config: ::Hash[Symbol, top],
|
3004
|
-
cadence: Orb::PlanCreateParams::Price::BulkWithProration::cadence,
|
3602
|
+
cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence,
|
3005
3603
|
item_id: String,
|
3006
3604
|
name: String,
|
3007
3605
|
?billable_metric_id: String?,
|
@@ -3017,6 +3615,24 @@ module Orb
|
|
3017
3615
|
?model_type: :bulk_with_proration
|
3018
3616
|
) -> void
|
3019
3617
|
|
3618
|
+
def to_hash: -> {
|
3619
|
+
bulk_with_proration_config: ::Hash[Symbol, top],
|
3620
|
+
cadence: Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence,
|
3621
|
+
item_id: String,
|
3622
|
+
model_type: :bulk_with_proration,
|
3623
|
+
name: String,
|
3624
|
+
billable_metric_id: String?,
|
3625
|
+
billed_in_advance: bool?,
|
3626
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration?,
|
3627
|
+
conversion_rate: Float?,
|
3628
|
+
currency: String?,
|
3629
|
+
external_price_id: String?,
|
3630
|
+
fixed_price_quantity: Float?,
|
3631
|
+
invoice_grouping_key: String?,
|
3632
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration?,
|
3633
|
+
metadata: ::Hash[Symbol, String?]?
|
3634
|
+
}
|
3635
|
+
|
3020
3636
|
type cadence =
|
3021
3637
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3022
3638
|
|
@@ -3030,25 +3646,30 @@ module Orb
|
|
3030
3646
|
ONE_TIME: :one_time
|
3031
3647
|
CUSTOM: :custom
|
3032
3648
|
|
3033
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkWithProration::cadence]
|
3649
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkWithProration::cadence]
|
3034
3650
|
end
|
3035
3651
|
|
3036
3652
|
type billing_cycle_configuration =
|
3037
3653
|
{
|
3038
3654
|
duration: Integer,
|
3039
|
-
duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit
|
3655
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit
|
3040
3656
|
}
|
3041
3657
|
|
3042
3658
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3043
3659
|
attr_accessor duration: Integer
|
3044
3660
|
|
3045
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit
|
3661
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit
|
3046
3662
|
|
3047
3663
|
def initialize: (
|
3048
3664
|
duration: Integer,
|
3049
|
-
duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit
|
3665
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit
|
3050
3666
|
) -> void
|
3051
3667
|
|
3668
|
+
def to_hash: -> {
|
3669
|
+
duration: Integer,
|
3670
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit
|
3671
|
+
}
|
3672
|
+
|
3052
3673
|
type duration_unit = :day | :month
|
3053
3674
|
|
3054
3675
|
module DurationUnit
|
@@ -3057,26 +3678,31 @@ module Orb
|
|
3057
3678
|
DAY: :day
|
3058
3679
|
MONTH: :month
|
3059
3680
|
|
3060
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit]
|
3681
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkWithProration::BillingCycleConfiguration::duration_unit]
|
3061
3682
|
end
|
3062
3683
|
end
|
3063
3684
|
|
3064
3685
|
type invoicing_cycle_configuration =
|
3065
3686
|
{
|
3066
3687
|
duration: Integer,
|
3067
|
-
duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit
|
3688
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit
|
3068
3689
|
}
|
3069
3690
|
|
3070
3691
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3071
3692
|
attr_accessor duration: Integer
|
3072
3693
|
|
3073
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit
|
3694
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit
|
3074
3695
|
|
3075
3696
|
def initialize: (
|
3076
3697
|
duration: Integer,
|
3077
|
-
duration_unit: Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit
|
3698
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit
|
3078
3699
|
) -> void
|
3079
3700
|
|
3701
|
+
def to_hash: -> {
|
3702
|
+
duration: Integer,
|
3703
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit
|
3704
|
+
}
|
3705
|
+
|
3080
3706
|
type duration_unit = :day | :month
|
3081
3707
|
|
3082
3708
|
module DurationUnit
|
@@ -3085,14 +3711,14 @@ module Orb
|
|
3085
3711
|
DAY: :day
|
3086
3712
|
MONTH: :month
|
3087
3713
|
|
3088
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit]
|
3714
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::BulkWithProration::InvoicingCycleConfiguration::duration_unit]
|
3089
3715
|
end
|
3090
3716
|
end
|
3091
3717
|
end
|
3092
3718
|
|
3093
3719
|
type grouped_tiered_package =
|
3094
3720
|
{
|
3095
|
-
cadence: Orb::PlanCreateParams::Price::GroupedTieredPackage::cadence,
|
3721
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence,
|
3096
3722
|
grouped_tiered_package_config: ::Hash[Symbol, top],
|
3097
3723
|
item_id: String,
|
3098
3724
|
model_type: :grouped_tiered_package,
|
@@ -3110,7 +3736,7 @@ module Orb
|
|
3110
3736
|
}
|
3111
3737
|
|
3112
3738
|
class GroupedTieredPackage < Orb::Internal::Type::BaseModel
|
3113
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::GroupedTieredPackage::cadence
|
3739
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence
|
3114
3740
|
|
3115
3741
|
attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top]
|
3116
3742
|
|
@@ -3141,7 +3767,7 @@ module Orb
|
|
3141
3767
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3142
3768
|
|
3143
3769
|
def initialize: (
|
3144
|
-
cadence: Orb::PlanCreateParams::Price::GroupedTieredPackage::cadence,
|
3770
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence,
|
3145
3771
|
grouped_tiered_package_config: ::Hash[Symbol, top],
|
3146
3772
|
item_id: String,
|
3147
3773
|
name: String,
|
@@ -3158,6 +3784,24 @@ module Orb
|
|
3158
3784
|
?model_type: :grouped_tiered_package
|
3159
3785
|
) -> void
|
3160
3786
|
|
3787
|
+
def to_hash: -> {
|
3788
|
+
cadence: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence,
|
3789
|
+
grouped_tiered_package_config: ::Hash[Symbol, top],
|
3790
|
+
item_id: String,
|
3791
|
+
model_type: :grouped_tiered_package,
|
3792
|
+
name: String,
|
3793
|
+
billable_metric_id: String?,
|
3794
|
+
billed_in_advance: bool?,
|
3795
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration?,
|
3796
|
+
conversion_rate: Float?,
|
3797
|
+
currency: String?,
|
3798
|
+
external_price_id: String?,
|
3799
|
+
fixed_price_quantity: Float?,
|
3800
|
+
invoice_grouping_key: String?,
|
3801
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration?,
|
3802
|
+
metadata: ::Hash[Symbol, String?]?
|
3803
|
+
}
|
3804
|
+
|
3161
3805
|
type cadence =
|
3162
3806
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3163
3807
|
|
@@ -3171,25 +3815,30 @@ module Orb
|
|
3171
3815
|
ONE_TIME: :one_time
|
3172
3816
|
CUSTOM: :custom
|
3173
3817
|
|
3174
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedTieredPackage::cadence]
|
3818
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::cadence]
|
3175
3819
|
end
|
3176
3820
|
|
3177
3821
|
type billing_cycle_configuration =
|
3178
3822
|
{
|
3179
3823
|
duration: Integer,
|
3180
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit
|
3824
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit
|
3181
3825
|
}
|
3182
3826
|
|
3183
3827
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3184
3828
|
attr_accessor duration: Integer
|
3185
3829
|
|
3186
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit
|
3830
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit
|
3187
3831
|
|
3188
3832
|
def initialize: (
|
3189
3833
|
duration: Integer,
|
3190
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit
|
3834
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit
|
3191
3835
|
) -> void
|
3192
3836
|
|
3837
|
+
def to_hash: -> {
|
3838
|
+
duration: Integer,
|
3839
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit
|
3840
|
+
}
|
3841
|
+
|
3193
3842
|
type duration_unit = :day | :month
|
3194
3843
|
|
3195
3844
|
module DurationUnit
|
@@ -3198,26 +3847,31 @@ module Orb
|
|
3198
3847
|
DAY: :day
|
3199
3848
|
MONTH: :month
|
3200
3849
|
|
3201
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit]
|
3850
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::BillingCycleConfiguration::duration_unit]
|
3202
3851
|
end
|
3203
3852
|
end
|
3204
3853
|
|
3205
3854
|
type invoicing_cycle_configuration =
|
3206
3855
|
{
|
3207
3856
|
duration: Integer,
|
3208
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3857
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3209
3858
|
}
|
3210
3859
|
|
3211
3860
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3212
3861
|
attr_accessor duration: Integer
|
3213
3862
|
|
3214
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3863
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3215
3864
|
|
3216
3865
|
def initialize: (
|
3217
3866
|
duration: Integer,
|
3218
|
-
duration_unit: Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3867
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3219
3868
|
) -> void
|
3220
3869
|
|
3870
|
+
def to_hash: -> {
|
3871
|
+
duration: Integer,
|
3872
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3873
|
+
}
|
3874
|
+
|
3221
3875
|
type duration_unit = :day | :month
|
3222
3876
|
|
3223
3877
|
module DurationUnit
|
@@ -3226,14 +3880,14 @@ module Orb
|
|
3226
3880
|
DAY: :day
|
3227
3881
|
MONTH: :month
|
3228
3882
|
|
3229
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit]
|
3883
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::GroupedTieredPackage::InvoicingCycleConfiguration::duration_unit]
|
3230
3884
|
end
|
3231
3885
|
end
|
3232
3886
|
end
|
3233
3887
|
|
3234
3888
|
type max_group_tiered_package =
|
3235
3889
|
{
|
3236
|
-
cadence: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::cadence,
|
3890
|
+
cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence,
|
3237
3891
|
item_id: String,
|
3238
3892
|
max_group_tiered_package_config: ::Hash[Symbol, top],
|
3239
3893
|
model_type: :max_group_tiered_package,
|
@@ -3251,7 +3905,7 @@ module Orb
|
|
3251
3905
|
}
|
3252
3906
|
|
3253
3907
|
class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel
|
3254
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::cadence
|
3908
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence
|
3255
3909
|
|
3256
3910
|
attr_accessor item_id: String
|
3257
3911
|
|
@@ -3282,7 +3936,7 @@ module Orb
|
|
3282
3936
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3283
3937
|
|
3284
3938
|
def initialize: (
|
3285
|
-
cadence: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::cadence,
|
3939
|
+
cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence,
|
3286
3940
|
item_id: String,
|
3287
3941
|
max_group_tiered_package_config: ::Hash[Symbol, top],
|
3288
3942
|
name: String,
|
@@ -3299,6 +3953,24 @@ module Orb
|
|
3299
3953
|
?model_type: :max_group_tiered_package
|
3300
3954
|
) -> void
|
3301
3955
|
|
3956
|
+
def to_hash: -> {
|
3957
|
+
cadence: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence,
|
3958
|
+
item_id: String,
|
3959
|
+
max_group_tiered_package_config: ::Hash[Symbol, top],
|
3960
|
+
model_type: :max_group_tiered_package,
|
3961
|
+
name: String,
|
3962
|
+
billable_metric_id: String?,
|
3963
|
+
billed_in_advance: bool?,
|
3964
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration?,
|
3965
|
+
conversion_rate: Float?,
|
3966
|
+
currency: String?,
|
3967
|
+
external_price_id: String?,
|
3968
|
+
fixed_price_quantity: Float?,
|
3969
|
+
invoice_grouping_key: String?,
|
3970
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration?,
|
3971
|
+
metadata: ::Hash[Symbol, String?]?
|
3972
|
+
}
|
3973
|
+
|
3302
3974
|
type cadence =
|
3303
3975
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3304
3976
|
|
@@ -3312,25 +3984,30 @@ module Orb
|
|
3312
3984
|
ONE_TIME: :one_time
|
3313
3985
|
CUSTOM: :custom
|
3314
3986
|
|
3315
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MaxGroupTieredPackage::cadence]
|
3987
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::cadence]
|
3316
3988
|
end
|
3317
3989
|
|
3318
3990
|
type billing_cycle_configuration =
|
3319
3991
|
{
|
3320
3992
|
duration: Integer,
|
3321
|
-
duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit
|
3993
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit
|
3322
3994
|
}
|
3323
3995
|
|
3324
3996
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3325
3997
|
attr_accessor duration: Integer
|
3326
3998
|
|
3327
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit
|
3999
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit
|
3328
4000
|
|
3329
4001
|
def initialize: (
|
3330
4002
|
duration: Integer,
|
3331
|
-
duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit
|
4003
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit
|
3332
4004
|
) -> void
|
3333
4005
|
|
4006
|
+
def to_hash: -> {
|
4007
|
+
duration: Integer,
|
4008
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit
|
4009
|
+
}
|
4010
|
+
|
3334
4011
|
type duration_unit = :day | :month
|
3335
4012
|
|
3336
4013
|
module DurationUnit
|
@@ -3339,26 +4016,31 @@ module Orb
|
|
3339
4016
|
DAY: :day
|
3340
4017
|
MONTH: :month
|
3341
4018
|
|
3342
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit]
|
4019
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::BillingCycleConfiguration::duration_unit]
|
3343
4020
|
end
|
3344
4021
|
end
|
3345
4022
|
|
3346
4023
|
type invoicing_cycle_configuration =
|
3347
4024
|
{
|
3348
4025
|
duration: Integer,
|
3349
|
-
duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit
|
4026
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3350
4027
|
}
|
3351
4028
|
|
3352
4029
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3353
4030
|
attr_accessor duration: Integer
|
3354
4031
|
|
3355
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit
|
4032
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3356
4033
|
|
3357
4034
|
def initialize: (
|
3358
4035
|
duration: Integer,
|
3359
|
-
duration_unit: Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit
|
4036
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit
|
3360
4037
|
) -> void
|
3361
4038
|
|
4039
|
+
def to_hash: -> {
|
4040
|
+
duration: Integer,
|
4041
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit
|
4042
|
+
}
|
4043
|
+
|
3362
4044
|
type duration_unit = :day | :month
|
3363
4045
|
|
3364
4046
|
module DurationUnit
|
@@ -3367,14 +4049,14 @@ module Orb
|
|
3367
4049
|
DAY: :day
|
3368
4050
|
MONTH: :month
|
3369
4051
|
|
3370
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit]
|
4052
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::MaxGroupTieredPackage::InvoicingCycleConfiguration::duration_unit]
|
3371
4053
|
end
|
3372
4054
|
end
|
3373
4055
|
end
|
3374
4056
|
|
3375
4057
|
type scalable_matrix_with_unit_pricing =
|
3376
4058
|
{
|
3377
|
-
cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence,
|
4059
|
+
cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence,
|
3378
4060
|
item_id: String,
|
3379
4061
|
model_type: :scalable_matrix_with_unit_pricing,
|
3380
4062
|
name: String,
|
@@ -3392,7 +4074,7 @@ module Orb
|
|
3392
4074
|
}
|
3393
4075
|
|
3394
4076
|
class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel
|
3395
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence
|
4077
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence
|
3396
4078
|
|
3397
4079
|
attr_accessor item_id: String
|
3398
4080
|
|
@@ -3423,7 +4105,7 @@ module Orb
|
|
3423
4105
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3424
4106
|
|
3425
4107
|
def initialize: (
|
3426
|
-
cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence,
|
4108
|
+
cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence,
|
3427
4109
|
item_id: String,
|
3428
4110
|
name: String,
|
3429
4111
|
scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top],
|
@@ -3440,6 +4122,24 @@ module Orb
|
|
3440
4122
|
?model_type: :scalable_matrix_with_unit_pricing
|
3441
4123
|
) -> void
|
3442
4124
|
|
4125
|
+
def to_hash: -> {
|
4126
|
+
cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence,
|
4127
|
+
item_id: String,
|
4128
|
+
model_type: :scalable_matrix_with_unit_pricing,
|
4129
|
+
name: String,
|
4130
|
+
scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top],
|
4131
|
+
billable_metric_id: String?,
|
4132
|
+
billed_in_advance: bool?,
|
4133
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration?,
|
4134
|
+
conversion_rate: Float?,
|
4135
|
+
currency: String?,
|
4136
|
+
external_price_id: String?,
|
4137
|
+
fixed_price_quantity: Float?,
|
4138
|
+
invoice_grouping_key: String?,
|
4139
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration?,
|
4140
|
+
metadata: ::Hash[Symbol, String?]?
|
4141
|
+
}
|
4142
|
+
|
3443
4143
|
type cadence =
|
3444
4144
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3445
4145
|
|
@@ -3453,25 +4153,30 @@ module Orb
|
|
3453
4153
|
ONE_TIME: :one_time
|
3454
4154
|
CUSTOM: :custom
|
3455
4155
|
|
3456
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence]
|
4156
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::cadence]
|
3457
4157
|
end
|
3458
4158
|
|
3459
4159
|
type billing_cycle_configuration =
|
3460
4160
|
{
|
3461
4161
|
duration: Integer,
|
3462
|
-
duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit
|
4162
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit
|
3463
4163
|
}
|
3464
4164
|
|
3465
4165
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3466
4166
|
attr_accessor duration: Integer
|
3467
4167
|
|
3468
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit
|
4168
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit
|
3469
4169
|
|
3470
4170
|
def initialize: (
|
3471
4171
|
duration: Integer,
|
3472
|
-
duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit
|
4172
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit
|
3473
4173
|
) -> void
|
3474
4174
|
|
4175
|
+
def to_hash: -> {
|
4176
|
+
duration: Integer,
|
4177
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit
|
4178
|
+
}
|
4179
|
+
|
3475
4180
|
type duration_unit = :day | :month
|
3476
4181
|
|
3477
4182
|
module DurationUnit
|
@@ -3480,26 +4185,31 @@ module Orb
|
|
3480
4185
|
DAY: :day
|
3481
4186
|
MONTH: :month
|
3482
4187
|
|
3483
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit]
|
4188
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::BillingCycleConfiguration::duration_unit]
|
3484
4189
|
end
|
3485
4190
|
end
|
3486
4191
|
|
3487
4192
|
type invoicing_cycle_configuration =
|
3488
4193
|
{
|
3489
4194
|
duration: Integer,
|
3490
|
-
duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit
|
4195
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit
|
3491
4196
|
}
|
3492
4197
|
|
3493
4198
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3494
4199
|
attr_accessor duration: Integer
|
3495
4200
|
|
3496
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit
|
4201
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit
|
3497
4202
|
|
3498
4203
|
def initialize: (
|
3499
4204
|
duration: Integer,
|
3500
|
-
duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit
|
4205
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit
|
3501
4206
|
) -> void
|
3502
4207
|
|
4208
|
+
def to_hash: -> {
|
4209
|
+
duration: Integer,
|
4210
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit
|
4211
|
+
}
|
4212
|
+
|
3503
4213
|
type duration_unit = :day | :month
|
3504
4214
|
|
3505
4215
|
module DurationUnit
|
@@ -3508,14 +4218,14 @@ module Orb
|
|
3508
4218
|
DAY: :day
|
3509
4219
|
MONTH: :month
|
3510
4220
|
|
3511
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit]
|
4221
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithUnitPricing::InvoicingCycleConfiguration::duration_unit]
|
3512
4222
|
end
|
3513
4223
|
end
|
3514
4224
|
end
|
3515
4225
|
|
3516
4226
|
type scalable_matrix_with_tiered_pricing =
|
3517
4227
|
{
|
3518
|
-
cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence,
|
4228
|
+
cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence,
|
3519
4229
|
item_id: String,
|
3520
4230
|
model_type: :scalable_matrix_with_tiered_pricing,
|
3521
4231
|
name: String,
|
@@ -3533,7 +4243,7 @@ module Orb
|
|
3533
4243
|
}
|
3534
4244
|
|
3535
4245
|
class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel
|
3536
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence
|
4246
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence
|
3537
4247
|
|
3538
4248
|
attr_accessor item_id: String
|
3539
4249
|
|
@@ -3564,7 +4274,7 @@ module Orb
|
|
3564
4274
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3565
4275
|
|
3566
4276
|
def initialize: (
|
3567
|
-
cadence: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence,
|
4277
|
+
cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence,
|
3568
4278
|
item_id: String,
|
3569
4279
|
name: String,
|
3570
4280
|
scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top],
|
@@ -3581,6 +4291,24 @@ module Orb
|
|
3581
4291
|
?model_type: :scalable_matrix_with_tiered_pricing
|
3582
4292
|
) -> void
|
3583
4293
|
|
4294
|
+
def to_hash: -> {
|
4295
|
+
cadence: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence,
|
4296
|
+
item_id: String,
|
4297
|
+
model_type: :scalable_matrix_with_tiered_pricing,
|
4298
|
+
name: String,
|
4299
|
+
scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top],
|
4300
|
+
billable_metric_id: String?,
|
4301
|
+
billed_in_advance: bool?,
|
4302
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration?,
|
4303
|
+
conversion_rate: Float?,
|
4304
|
+
currency: String?,
|
4305
|
+
external_price_id: String?,
|
4306
|
+
fixed_price_quantity: Float?,
|
4307
|
+
invoice_grouping_key: String?,
|
4308
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration?,
|
4309
|
+
metadata: ::Hash[Symbol, String?]?
|
4310
|
+
}
|
4311
|
+
|
3584
4312
|
type cadence =
|
3585
4313
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3586
4314
|
|
@@ -3594,25 +4322,30 @@ module Orb
|
|
3594
4322
|
ONE_TIME: :one_time
|
3595
4323
|
CUSTOM: :custom
|
3596
4324
|
|
3597
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence]
|
4325
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::cadence]
|
3598
4326
|
end
|
3599
4327
|
|
3600
4328
|
type billing_cycle_configuration =
|
3601
4329
|
{
|
3602
4330
|
duration: Integer,
|
3603
|
-
duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit
|
4331
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit
|
3604
4332
|
}
|
3605
4333
|
|
3606
4334
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3607
4335
|
attr_accessor duration: Integer
|
3608
4336
|
|
3609
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit
|
4337
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit
|
3610
4338
|
|
3611
4339
|
def initialize: (
|
3612
4340
|
duration: Integer,
|
3613
|
-
duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit
|
4341
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit
|
3614
4342
|
) -> void
|
3615
4343
|
|
4344
|
+
def to_hash: -> {
|
4345
|
+
duration: Integer,
|
4346
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit
|
4347
|
+
}
|
4348
|
+
|
3616
4349
|
type duration_unit = :day | :month
|
3617
4350
|
|
3618
4351
|
module DurationUnit
|
@@ -3621,26 +4354,31 @@ module Orb
|
|
3621
4354
|
DAY: :day
|
3622
4355
|
MONTH: :month
|
3623
4356
|
|
3624
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit]
|
4357
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::BillingCycleConfiguration::duration_unit]
|
3625
4358
|
end
|
3626
4359
|
end
|
3627
4360
|
|
3628
4361
|
type invoicing_cycle_configuration =
|
3629
4362
|
{
|
3630
4363
|
duration: Integer,
|
3631
|
-
duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit
|
4364
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit
|
3632
4365
|
}
|
3633
4366
|
|
3634
4367
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3635
4368
|
attr_accessor duration: Integer
|
3636
4369
|
|
3637
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit
|
4370
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit
|
3638
4371
|
|
3639
4372
|
def initialize: (
|
3640
4373
|
duration: Integer,
|
3641
|
-
duration_unit: Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit
|
4374
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit
|
3642
4375
|
) -> void
|
3643
4376
|
|
4377
|
+
def to_hash: -> {
|
4378
|
+
duration: Integer,
|
4379
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit
|
4380
|
+
}
|
4381
|
+
|
3644
4382
|
type duration_unit = :day | :month
|
3645
4383
|
|
3646
4384
|
module DurationUnit
|
@@ -3649,14 +4387,14 @@ module Orb
|
|
3649
4387
|
DAY: :day
|
3650
4388
|
MONTH: :month
|
3651
4389
|
|
3652
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit]
|
4390
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::ScalableMatrixWithTieredPricing::InvoicingCycleConfiguration::duration_unit]
|
3653
4391
|
end
|
3654
4392
|
end
|
3655
4393
|
end
|
3656
4394
|
|
3657
4395
|
type cumulative_grouped_bulk =
|
3658
4396
|
{
|
3659
|
-
cadence: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::cadence,
|
4397
|
+
cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence,
|
3660
4398
|
cumulative_grouped_bulk_config: ::Hash[Symbol, top],
|
3661
4399
|
item_id: String,
|
3662
4400
|
model_type: :cumulative_grouped_bulk,
|
@@ -3674,7 +4412,7 @@ module Orb
|
|
3674
4412
|
}
|
3675
4413
|
|
3676
4414
|
class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel
|
3677
|
-
attr_accessor cadence: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::cadence
|
4415
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence
|
3678
4416
|
|
3679
4417
|
attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top]
|
3680
4418
|
|
@@ -3705,7 +4443,7 @@ module Orb
|
|
3705
4443
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3706
4444
|
|
3707
4445
|
def initialize: (
|
3708
|
-
cadence: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::cadence,
|
4446
|
+
cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence,
|
3709
4447
|
cumulative_grouped_bulk_config: ::Hash[Symbol, top],
|
3710
4448
|
item_id: String,
|
3711
4449
|
name: String,
|
@@ -3722,6 +4460,24 @@ module Orb
|
|
3722
4460
|
?model_type: :cumulative_grouped_bulk
|
3723
4461
|
) -> void
|
3724
4462
|
|
4463
|
+
def to_hash: -> {
|
4464
|
+
cadence: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence,
|
4465
|
+
cumulative_grouped_bulk_config: ::Hash[Symbol, top],
|
4466
|
+
item_id: String,
|
4467
|
+
model_type: :cumulative_grouped_bulk,
|
4468
|
+
name: String,
|
4469
|
+
billable_metric_id: String?,
|
4470
|
+
billed_in_advance: bool?,
|
4471
|
+
billing_cycle_configuration: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration?,
|
4472
|
+
conversion_rate: Float?,
|
4473
|
+
currency: String?,
|
4474
|
+
external_price_id: String?,
|
4475
|
+
fixed_price_quantity: Float?,
|
4476
|
+
invoice_grouping_key: String?,
|
4477
|
+
invoicing_cycle_configuration: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration?,
|
4478
|
+
metadata: ::Hash[Symbol, String?]?
|
4479
|
+
}
|
4480
|
+
|
3725
4481
|
type cadence =
|
3726
4482
|
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3727
4483
|
|
@@ -3735,25 +4491,30 @@ module Orb
|
|
3735
4491
|
ONE_TIME: :one_time
|
3736
4492
|
CUSTOM: :custom
|
3737
4493
|
|
3738
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::CumulativeGroupedBulk::cadence]
|
4494
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::cadence]
|
3739
4495
|
end
|
3740
4496
|
|
3741
4497
|
type billing_cycle_configuration =
|
3742
4498
|
{
|
3743
4499
|
duration: Integer,
|
3744
|
-
duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit
|
4500
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit
|
3745
4501
|
}
|
3746
4502
|
|
3747
4503
|
class BillingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3748
4504
|
attr_accessor duration: Integer
|
3749
4505
|
|
3750
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit
|
4506
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit
|
3751
4507
|
|
3752
4508
|
def initialize: (
|
3753
4509
|
duration: Integer,
|
3754
|
-
duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit
|
4510
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit
|
3755
4511
|
) -> void
|
3756
4512
|
|
4513
|
+
def to_hash: -> {
|
4514
|
+
duration: Integer,
|
4515
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit
|
4516
|
+
}
|
4517
|
+
|
3757
4518
|
type duration_unit = :day | :month
|
3758
4519
|
|
3759
4520
|
module DurationUnit
|
@@ -3762,26 +4523,31 @@ module Orb
|
|
3762
4523
|
DAY: :day
|
3763
4524
|
MONTH: :month
|
3764
4525
|
|
3765
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit]
|
4526
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::BillingCycleConfiguration::duration_unit]
|
3766
4527
|
end
|
3767
4528
|
end
|
3768
4529
|
|
3769
4530
|
type invoicing_cycle_configuration =
|
3770
4531
|
{
|
3771
4532
|
duration: Integer,
|
3772
|
-
duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit
|
4533
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit
|
3773
4534
|
}
|
3774
4535
|
|
3775
4536
|
class InvoicingCycleConfiguration < Orb::Internal::Type::BaseModel
|
3776
4537
|
attr_accessor duration: Integer
|
3777
4538
|
|
3778
|
-
attr_accessor duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit
|
4539
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit
|
3779
4540
|
|
3780
4541
|
def initialize: (
|
3781
4542
|
duration: Integer,
|
3782
|
-
duration_unit: Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit
|
4543
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit
|
3783
4544
|
) -> void
|
3784
4545
|
|
4546
|
+
def to_hash: -> {
|
4547
|
+
duration: Integer,
|
4548
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit
|
4549
|
+
}
|
4550
|
+
|
3785
4551
|
type duration_unit = :day | :month
|
3786
4552
|
|
3787
4553
|
module DurationUnit
|
@@ -3790,12 +4556,12 @@ module Orb
|
|
3790
4556
|
DAY: :day
|
3791
4557
|
MONTH: :month
|
3792
4558
|
|
3793
|
-
def self?.values: -> ::Array[Orb::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit]
|
4559
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::CumulativeGroupedBulk::InvoicingCycleConfiguration::duration_unit]
|
3794
4560
|
end
|
3795
4561
|
end
|
3796
4562
|
end
|
3797
4563
|
|
3798
|
-
def self?.variants: -> ::Array[Orb::PlanCreateParams::price]
|
4564
|
+
def self?.variants: -> ::Array[Orb::Models::PlanCreateParams::price]
|
3799
4565
|
end
|
3800
4566
|
|
3801
4567
|
type status = :active | :draft
|