orb-billing 0.1.0.pre.alpha.33
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 +7 -0
- data/README.md +169 -0
- data/lib/orb/client.rb +129 -0
- data/lib/orb/errors.rb +317 -0
- data/lib/orb/models/alert.rb +225 -0
- data/lib/orb/models/alert_create_for_customer_params.rb +77 -0
- data/lib/orb/models/alert_create_for_external_customer_params.rb +77 -0
- data/lib/orb/models/alert_create_for_subscription_params.rb +74 -0
- data/lib/orb/models/alert_disable_params.rb +26 -0
- data/lib/orb/models/alert_enable_params.rb +26 -0
- data/lib/orb/models/alert_list_params.rb +97 -0
- data/lib/orb/models/alert_retrieve_params.rb +19 -0
- data/lib/orb/models/alert_update_params.rb +46 -0
- data/lib/orb/models/amount_discount.rb +53 -0
- data/lib/orb/models/billable_metric.rb +76 -0
- data/lib/orb/models/billing_cycle_relative_date.rb +18 -0
- data/lib/orb/models/coupon.rb +86 -0
- data/lib/orb/models/coupon_archive_params.rb +19 -0
- data/lib/orb/models/coupon_create_params.rb +102 -0
- data/lib/orb/models/coupon_fetch_params.rb +19 -0
- data/lib/orb/models/coupon_list_params.rb +53 -0
- data/lib/orb/models/coupons/subscription_list_params.rb +40 -0
- data/lib/orb/models/credit_note.rb +522 -0
- data/lib/orb/models/credit_note_create_params.rb +77 -0
- data/lib/orb/models/credit_note_fetch_params.rb +19 -0
- data/lib/orb/models/credit_note_list_params.rb +73 -0
- data/lib/orb/models/customer.rb +872 -0
- data/lib/orb/models/customer_create_params.rb +843 -0
- data/lib/orb/models/customer_delete_params.rb +19 -0
- data/lib/orb/models/customer_fetch_by_external_id_params.rb +19 -0
- data/lib/orb/models/customer_fetch_params.rb +19 -0
- data/lib/orb/models/customer_list_params.rb +73 -0
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +19 -0
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +19 -0
- data/lib/orb/models/customer_update_by_external_id_params.rb +848 -0
- data/lib/orb/models/customer_update_params.rb +838 -0
- data/lib/orb/models/customers/balance_transaction_create_params.rb +53 -0
- data/lib/orb/models/customers/balance_transaction_create_response.rb +167 -0
- data/lib/orb/models/customers/balance_transaction_list_params.rb +75 -0
- data/lib/orb/models/customers/balance_transaction_list_response.rb +167 -0
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +69 -0
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +106 -0
- data/lib/orb/models/customers/cost_list_params.rb +69 -0
- data/lib/orb/models/customers/cost_list_response.rb +106 -0
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +59 -0
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +72 -0
- data/lib/orb/models/customers/credit_list_params.rb +59 -0
- data/lib/orb/models/customers/credit_list_response.rb +72 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +215 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +1311 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +214 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +1310 -0
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +141 -0
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +1310 -0
- data/lib/orb/models/customers/credits/ledger_list_params.rb +141 -0
- data/lib/orb/models/customers/credits/ledger_list_response.rb +1306 -0
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +159 -0
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +154 -0
- data/lib/orb/models/customers/credits/top_up_create_params.rb +158 -0
- data/lib/orb/models/customers/credits/top_up_create_response.rb +153 -0
- data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +29 -0
- data/lib/orb/models/customers/credits/top_up_delete_params.rb +29 -0
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +42 -0
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +154 -0
- data/lib/orb/models/customers/credits/top_up_list_params.rb +42 -0
- data/lib/orb/models/customers/credits/top_up_list_response.rb +153 -0
- data/lib/orb/models/dimensional_price_group.rb +64 -0
- data/lib/orb/models/dimensional_price_group_create_params.rb +63 -0
- data/lib/orb/models/dimensional_price_group_list_params.rb +38 -0
- data/lib/orb/models/dimensional_price_group_retrieve_params.rb +19 -0
- data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +21 -0
- data/lib/orb/models/dimensional_price_groups.rb +25 -0
- data/lib/orb/models/discount.rb +23 -0
- data/lib/orb/models/evaluate_price_group.rb +48 -0
- data/lib/orb/models/event_deprecate_params.rb +19 -0
- data/lib/orb/models/event_deprecate_response.rb +21 -0
- data/lib/orb/models/event_ingest_params.rb +100 -0
- data/lib/orb/models/event_ingest_response.rb +77 -0
- data/lib/orb/models/event_search_params.rb +45 -0
- data/lib/orb/models/event_search_response.rb +87 -0
- data/lib/orb/models/event_update_params.rb +58 -0
- data/lib/orb/models/event_update_response.rb +21 -0
- data/lib/orb/models/events/backfill_close_params.rb +21 -0
- data/lib/orb/models/events/backfill_close_response.rb +131 -0
- data/lib/orb/models/events/backfill_create_params.rb +97 -0
- data/lib/orb/models/events/backfill_create_response.rb +131 -0
- data/lib/orb/models/events/backfill_fetch_params.rb +21 -0
- data/lib/orb/models/events/backfill_fetch_response.rb +131 -0
- data/lib/orb/models/events/backfill_list_params.rb +40 -0
- data/lib/orb/models/events/backfill_list_response.rb +131 -0
- data/lib/orb/models/events/backfill_revert_params.rb +21 -0
- data/lib/orb/models/events/backfill_revert_response.rb +131 -0
- data/lib/orb/models/events/event_volumes.rb +54 -0
- data/lib/orb/models/events/volume_list_params.rb +64 -0
- data/lib/orb/models/invoice.rb +2218 -0
- data/lib/orb/models/invoice_create_params.rb +200 -0
- data/lib/orb/models/invoice_fetch_params.rb +19 -0
- data/lib/orb/models/invoice_fetch_upcoming_params.rb +25 -0
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +2226 -0
- data/lib/orb/models/invoice_issue_params.rb +34 -0
- data/lib/orb/models/invoice_level_discount.rb +21 -0
- data/lib/orb/models/invoice_line_item_create_params.rb +62 -0
- data/lib/orb/models/invoice_line_item_create_response.rb +929 -0
- data/lib/orb/models/invoice_list_params.rb +197 -0
- data/lib/orb/models/invoice_mark_paid_params.rb +40 -0
- data/lib/orb/models/invoice_pay_params.rb +19 -0
- data/lib/orb/models/invoice_update_params.rb +28 -0
- data/lib/orb/models/invoice_void_params.rb +19 -0
- data/lib/orb/models/item.rb +82 -0
- data/lib/orb/models/item_create_params.rb +26 -0
- data/lib/orb/models/item_fetch_params.rb +19 -0
- data/lib/orb/models/item_list_params.rb +38 -0
- data/lib/orb/models/item_update_params.rb +73 -0
- data/lib/orb/models/metric_create_params.rb +56 -0
- data/lib/orb/models/metric_fetch_params.rb +19 -0
- data/lib/orb/models/metric_list_params.rb +73 -0
- data/lib/orb/models/metric_update_params.rb +28 -0
- data/lib/orb/models/pagination_metadata.rb +25 -0
- data/lib/orb/models/percentage_discount.rb +54 -0
- data/lib/orb/models/plan.rb +894 -0
- data/lib/orb/models/plan_create_params.rb +6702 -0
- data/lib/orb/models/plan_fetch_params.rb +19 -0
- data/lib/orb/models/plan_list_params.rb +100 -0
- data/lib/orb/models/plan_update_params.rb +37 -0
- data/lib/orb/models/plans/external_plan_id_fetch_params.rb +21 -0
- data/lib/orb/models/plans/external_plan_id_update_params.rb +39 -0
- data/lib/orb/models/price.rb +12229 -0
- data/lib/orb/models/price_create_params.rb +808 -0
- data/lib/orb/models/price_evaluate_params.rb +80 -0
- data/lib/orb/models/price_evaluate_response.rb +20 -0
- data/lib/orb/models/price_fetch_params.rb +19 -0
- data/lib/orb/models/price_list_params.rb +38 -0
- data/lib/orb/models/price_update_params.rb +28 -0
- data/lib/orb/models/prices/external_price_id_fetch_params.rb +21 -0
- data/lib/orb/models/prices/external_price_id_update_params.rb +30 -0
- data/lib/orb/models/subscription.rb +1233 -0
- data/lib/orb/models/subscription_cancel_params.rb +58 -0
- data/lib/orb/models/subscription_cancel_response.rb +1217 -0
- data/lib/orb/models/subscription_create_params.rb +15065 -0
- data/lib/orb/models/subscription_create_response.rb +1217 -0
- data/lib/orb/models/subscription_fetch_costs_params.rb +67 -0
- data/lib/orb/models/subscription_fetch_costs_response.rb +104 -0
- data/lib/orb/models/subscription_fetch_params.rb +19 -0
- data/lib/orb/models/subscription_fetch_schedule_params.rb +73 -0
- data/lib/orb/models/subscription_fetch_schedule_response.rb +68 -0
- data/lib/orb/models/subscription_fetch_usage_params.rb +135 -0
- data/lib/orb/models/subscription_list_params.rb +108 -0
- data/lib/orb/models/subscription_price_intervals_params.rb +8358 -0
- data/lib/orb/models/subscription_price_intervals_response.rb +1224 -0
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +15088 -0
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +1224 -0
- data/lib/orb/models/subscription_trigger_phase_params.rb +36 -0
- data/lib/orb/models/subscription_trigger_phase_response.rb +1224 -0
- data/lib/orb/models/subscription_unschedule_cancellation_params.rb +19 -0
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +1224 -0
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +26 -0
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +1228 -0
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +19 -0
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +1224 -0
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +90 -0
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +1224 -0
- data/lib/orb/models/subscription_update_params.rb +74 -0
- data/lib/orb/models/subscription_update_trial_params.rb +59 -0
- data/lib/orb/models/subscription_update_trial_response.rb +1222 -0
- data/lib/orb/models/subscription_usage.rb +258 -0
- data/lib/orb/models/subscriptions.rb +25 -0
- data/lib/orb/models/top_level_ping_params.rb +19 -0
- data/lib/orb/models/top_level_ping_response.rb +20 -0
- data/lib/orb/models/trial_discount.rb +69 -0
- data/lib/orb/models/usage_discount.rb +54 -0
- data/lib/orb/page.rb +114 -0
- data/lib/orb/request_options.rb +75 -0
- data/lib/orb/resources/alerts.rb +239 -0
- data/lib/orb/resources/coupons/subscriptions.rb +43 -0
- data/lib/orb/resources/coupons.rb +115 -0
- data/lib/orb/resources/credit_notes.rb +87 -0
- data/lib/orb/resources/customers/balance_transactions.rb +96 -0
- data/lib/orb/resources/customers/costs.rb +298 -0
- data/lib/orb/resources/customers/credits/ledger.rb +527 -0
- data/lib/orb/resources/customers/credits/top_ups.rb +192 -0
- data/lib/orb/resources/customers/credits.rb +88 -0
- data/lib/orb/resources/customers.rb +321 -0
- data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +38 -0
- data/lib/orb/resources/dimensional_price_groups.rb +93 -0
- data/lib/orb/resources/events/backfills.rb +174 -0
- data/lib/orb/resources/events/volume.rb +52 -0
- data/lib/orb/resources/events.rb +415 -0
- data/lib/orb/resources/invoice_line_items.rb +41 -0
- data/lib/orb/resources/invoices.rb +266 -0
- data/lib/orb/resources/items.rb +95 -0
- data/lib/orb/resources/metrics.rb +114 -0
- data/lib/orb/resources/plans/external_plan_id.rb +76 -0
- data/lib/orb/resources/plans.rb +133 -0
- data/lib/orb/resources/prices/external_price_id.rb +61 -0
- data/lib/orb/resources/prices.rb +197 -0
- data/lib/orb/resources/subscriptions.rb +1278 -0
- data/lib/orb/resources/top_level.rb +37 -0
- data/lib/orb/transport/base_client.rb +459 -0
- data/lib/orb/transport/pooled_net_requester.rb +182 -0
- data/lib/orb/type/array_of.rb +112 -0
- data/lib/orb/type/base_model.rb +367 -0
- data/lib/orb/type/base_page.rb +61 -0
- data/lib/orb/type/boolean_model.rb +52 -0
- data/lib/orb/type/converter.rb +217 -0
- data/lib/orb/type/enum.rb +101 -0
- data/lib/orb/type/hash_of.rb +132 -0
- data/lib/orb/type/request_parameters.rb +38 -0
- data/lib/orb/type/union.rb +225 -0
- data/lib/orb/type/unknown.rb +56 -0
- data/lib/orb/type.rb +23 -0
- data/lib/orb/util.rb +722 -0
- data/lib/orb/version.rb +5 -0
- data/lib/orb.rb +247 -0
- data/manifest.yaml +15 -0
- data/rbi/lib/orb/client.rbi +90 -0
- data/rbi/lib/orb/errors.rbi +246 -0
- data/rbi/lib/orb/models/alert.rbi +239 -0
- data/rbi/lib/orb/models/alert_create_for_customer_params.rbi +86 -0
- data/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +88 -0
- data/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +83 -0
- data/rbi/lib/orb/models/alert_disable_params.rbi +28 -0
- data/rbi/lib/orb/models/alert_enable_params.rbi +28 -0
- data/rbi/lib/orb/models/alert_list_params.rbi +95 -0
- data/rbi/lib/orb/models/alert_retrieve_params.rbi +20 -0
- data/rbi/lib/orb/models/alert_update_params.rbi +51 -0
- data/rbi/lib/orb/models/amount_discount.rbi +62 -0
- data/rbi/lib/orb/models/billable_metric.rbi +83 -0
- data/rbi/lib/orb/models/billing_cycle_relative_date.rbi +19 -0
- data/rbi/lib/orb/models/coupon.rbi +90 -0
- data/rbi/lib/orb/models/coupon_archive_params.rbi +20 -0
- data/rbi/lib/orb/models/coupon_create_params.rbi +120 -0
- data/rbi/lib/orb/models/coupon_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/coupon_list_params.rbi +59 -0
- data/rbi/lib/orb/models/coupons/subscription_list_params.rbi +41 -0
- data/rbi/lib/orb/models/credit_note.rbi +546 -0
- data/rbi/lib/orb/models/credit_note_create_params.rbi +84 -0
- data/rbi/lib/orb/models/credit_note_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/credit_note_list_params.rbi +74 -0
- data/rbi/lib/orb/models/customer.rbi +941 -0
- data/rbi/lib/orb/models/customer_create_params.rbi +923 -0
- data/rbi/lib/orb/models/customer_delete_params.rbi +20 -0
- data/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi +20 -0
- data/rbi/lib/orb/models/customer_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/customer_list_params.rbi +74 -0
- data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +20 -0
- data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +20 -0
- data/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +945 -0
- data/rbi/lib/orb/models/customer_update_params.rbi +919 -0
- data/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +64 -0
- data/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +199 -0
- data/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +76 -0
- data/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +191 -0
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +86 -0
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +214 -0
- data/rbi/lib/orb/models/customers/cost_list_params.rbi +84 -0
- data/rbi/lib/orb/models/customers/cost_list_response.rbi +212 -0
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +64 -0
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +87 -0
- data/rbi/lib/orb/models/customers/credit_list_params.rbi +64 -0
- data/rbi/lib/orb/models/customers/credit_list_response.rbi +86 -0
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +270 -0
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +1670 -0
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +238 -0
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +1626 -0
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +181 -0
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +1654 -0
- data/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +144 -0
- data/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +1588 -0
- data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +196 -0
- data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +198 -0
- data/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +176 -0
- data/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +175 -0
- data/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +31 -0
- data/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi +28 -0
- data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +49 -0
- data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +188 -0
- data/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +49 -0
- data/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +168 -0
- data/rbi/lib/orb/models/dimensional_price_group.rbi +75 -0
- data/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +66 -0
- data/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +39 -0
- data/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +20 -0
- data/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +22 -0
- data/rbi/lib/orb/models/dimensional_price_groups.rbi +35 -0
- data/rbi/lib/orb/models/discount.rbi +18 -0
- data/rbi/lib/orb/models/evaluate_price_group.rbi +45 -0
- data/rbi/lib/orb/models/event_deprecate_params.rbi +20 -0
- data/rbi/lib/orb/models/event_deprecate_response.rbi +19 -0
- data/rbi/lib/orb/models/event_ingest_params.rbi +120 -0
- data/rbi/lib/orb/models/event_ingest_response.rbi +79 -0
- data/rbi/lib/orb/models/event_search_params.rbi +53 -0
- data/rbi/lib/orb/models/event_search_response.rbi +100 -0
- data/rbi/lib/orb/models/event_update_params.rbi +71 -0
- data/rbi/lib/orb/models/event_update_response.rbi +19 -0
- data/rbi/lib/orb/models/events/backfill_close_params.rbi +22 -0
- data/rbi/lib/orb/models/events/backfill_close_response.rbi +127 -0
- data/rbi/lib/orb/models/events/backfill_create_params.rbi +97 -0
- data/rbi/lib/orb/models/events/backfill_create_response.rbi +128 -0
- data/rbi/lib/orb/models/events/backfill_fetch_params.rbi +22 -0
- data/rbi/lib/orb/models/events/backfill_fetch_response.rbi +127 -0
- data/rbi/lib/orb/models/events/backfill_list_params.rbi +41 -0
- data/rbi/lib/orb/models/events/backfill_list_response.rbi +127 -0
- data/rbi/lib/orb/models/events/backfill_revert_params.rbi +22 -0
- data/rbi/lib/orb/models/events/backfill_revert_response.rbi +128 -0
- data/rbi/lib/orb/models/events/event_volumes.rbi +47 -0
- data/rbi/lib/orb/models/events/volume_list_params.rbi +69 -0
- data/rbi/lib/orb/models/invoice.rbi +2466 -0
- data/rbi/lib/orb/models/invoice_create_params.rbi +230 -0
- data/rbi/lib/orb/models/invoice_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +24 -0
- data/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +2646 -0
- data/rbi/lib/orb/models/invoice_issue_params.rbi +32 -0
- data/rbi/lib/orb/models/invoice_level_discount.rbi +16 -0
- data/rbi/lib/orb/models/invoice_line_item_create_params.rbi +67 -0
- data/rbi/lib/orb/models/invoice_line_item_create_response.rbi +1164 -0
- data/rbi/lib/orb/models/invoice_list_params.rbi +187 -0
- data/rbi/lib/orb/models/invoice_mark_paid_params.rbi +48 -0
- data/rbi/lib/orb/models/invoice_pay_params.rbi +20 -0
- data/rbi/lib/orb/models/invoice_update_params.rbi +36 -0
- data/rbi/lib/orb/models/invoice_void_params.rbi +20 -0
- data/rbi/lib/orb/models/item.rbi +101 -0
- data/rbi/lib/orb/models/item_create_params.rbi +25 -0
- data/rbi/lib/orb/models/item_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/item_list_params.rbi +39 -0
- data/rbi/lib/orb/models/item_update_params.rbi +113 -0
- data/rbi/lib/orb/models/metric_create_params.rbi +62 -0
- data/rbi/lib/orb/models/metric_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/metric_list_params.rbi +74 -0
- data/rbi/lib/orb/models/metric_update_params.rbi +36 -0
- data/rbi/lib/orb/models/pagination_metadata.rbi +21 -0
- data/rbi/lib/orb/models/percentage_discount.rbi +63 -0
- data/rbi/lib/orb/models/plan.rbi +1071 -0
- data/rbi/lib/orb/models/plan_create_params.rbi +10069 -0
- data/rbi/lib/orb/models/plan_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/plan_list_params.rbi +100 -0
- data/rbi/lib/orb/models/plan_update_params.rbi +46 -0
- data/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi +22 -0
- data/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +48 -0
- data/rbi/lib/orb/models/price.rbi +15341 -0
- data/rbi/lib/orb/models/price_create_params.rbi +885 -0
- data/rbi/lib/orb/models/price_evaluate_params.rbi +81 -0
- data/rbi/lib/orb/models/price_evaluate_response.rbi +21 -0
- data/rbi/lib/orb/models/price_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/price_list_params.rbi +39 -0
- data/rbi/lib/orb/models/price_update_params.rbi +36 -0
- data/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi +22 -0
- data/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +38 -0
- data/rbi/lib/orb/models/subscription.rbi +1381 -0
- data/rbi/lib/orb/models/subscription_cancel_params.rbi +75 -0
- data/rbi/lib/orb/models/subscription_cancel_response.rbi +1374 -0
- data/rbi/lib/orb/models/subscription_create_params.rbi +23422 -0
- data/rbi/lib/orb/models/subscription_create_response.rbi +1374 -0
- data/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +82 -0
- data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +210 -0
- data/rbi/lib/orb/models/subscription_fetch_params.rbi +20 -0
- data/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +74 -0
- data/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +81 -0
- data/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +137 -0
- data/rbi/lib/orb/models/subscription_list_params.rbi +108 -0
- data/rbi/lib/orb/models/subscription_price_intervals_params.rbi +12991 -0
- data/rbi/lib/orb/models/subscription_price_intervals_response.rbi +1387 -0
- data/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +23589 -0
- data/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +1390 -0
- data/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +45 -0
- data/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +1381 -0
- data/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +20 -0
- data/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +1400 -0
- data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +25 -0
- data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +1451 -0
- data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +20 -0
- data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +1410 -0
- data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +104 -0
- data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +1400 -0
- data/rbi/lib/orb/models/subscription_update_params.rbi +77 -0
- data/rbi/lib/orb/models/subscription_update_trial_params.rbi +63 -0
- data/rbi/lib/orb/models/subscription_update_trial_response.rbi +1378 -0
- data/rbi/lib/orb/models/subscription_usage.rbi +323 -0
- data/rbi/lib/orb/models/subscriptions.rbi +33 -0
- data/rbi/lib/orb/models/top_level_ping_params.rbi +20 -0
- data/rbi/lib/orb/models/top_level_ping_response.rbi +18 -0
- data/rbi/lib/orb/models/trial_discount.rbi +73 -0
- data/rbi/lib/orb/models/usage_discount.rbi +62 -0
- data/rbi/lib/orb/page.rbi +35 -0
- data/rbi/lib/orb/request_options.rbi +48 -0
- data/rbi/lib/orb/resources/alerts.rbi +216 -0
- data/rbi/lib/orb/resources/coupons/subscriptions.rbi +38 -0
- data/rbi/lib/orb/resources/coupons.rbi +96 -0
- data/rbi/lib/orb/resources/credit_notes.rbi +74 -0
- data/rbi/lib/orb/resources/customers/balance_transactions.rbi +92 -0
- data/rbi/lib/orb/resources/customers/costs.rbi +304 -0
- data/rbi/lib/orb/resources/customers/credits/ledger.rbi +645 -0
- data/rbi/lib/orb/resources/customers/credits/top_ups.rbi +180 -0
- data/rbi/lib/orb/resources/customers/credits.rbi +88 -0
- data/rbi/lib/orb/resources/customers.rbi +714 -0
- data/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +25 -0
- data/rbi/lib/orb/resources/dimensional_price_groups.rbi +78 -0
- data/rbi/lib/orb/resources/events/backfills.rbi +161 -0
- data/rbi/lib/orb/resources/events/volume.rbi +57 -0
- data/rbi/lib/orb/resources/events.rbi +408 -0
- data/rbi/lib/orb/resources/invoice_line_items.rbi +44 -0
- data/rbi/lib/orb/resources/invoices.rbi +262 -0
- data/rbi/lib/orb/resources/items.rbi +65 -0
- data/rbi/lib/orb/resources/metrics.rbi +102 -0
- data/rbi/lib/orb/resources/plans/external_plan_id.rbi +67 -0
- data/rbi/lib/orb/resources/plans.rbi +170 -0
- data/rbi/lib/orb/resources/prices/external_price_id.rbi +110 -0
- data/rbi/lib/orb/resources/prices.rbi +371 -0
- data/rbi/lib/orb/resources/subscriptions.rbi +1469 -0
- data/rbi/lib/orb/resources/top_level.rbi +25 -0
- data/rbi/lib/orb/transport/base_client.rbi +205 -0
- data/rbi/lib/orb/transport/pooled_net_requester.rbi +64 -0
- data/rbi/lib/orb/type/array_of.rbi +82 -0
- data/rbi/lib/orb/type/base_model.rbi +197 -0
- data/rbi/lib/orb/type/base_page.rbi +38 -0
- data/rbi/lib/orb/type/boolean_model.rbi +41 -0
- data/rbi/lib/orb/type/converter.rbi +95 -0
- data/rbi/lib/orb/type/enum.rbi +58 -0
- data/rbi/lib/orb/type/hash_of.rbi +86 -0
- data/rbi/lib/orb/type/request_parameters.rbi +20 -0
- data/rbi/lib/orb/type/union.rbi +66 -0
- data/rbi/lib/orb/type/unknown.rbi +37 -0
- data/rbi/lib/orb/type.rbi +23 -0
- data/rbi/lib/orb/util.rbi +278 -0
- data/rbi/lib/orb/version.rbi +5 -0
- data/sig/orb/client.rbs +53 -0
- data/sig/orb/errors.rbs +201 -0
- data/sig/orb/models/alert.rbs +142 -0
- data/sig/orb/models/alert_create_for_customer_params.rbs +56 -0
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +56 -0
- data/sig/orb/models/alert_create_for_subscription_params.rbs +52 -0
- data/sig/orb/models/alert_disable_params.rbs +20 -0
- data/sig/orb/models/alert_enable_params.rbs +20 -0
- data/sig/orb/models/alert_list_params.rbs +57 -0
- data/sig/orb/models/alert_retrieve_params.rbs +14 -0
- data/sig/orb/models/alert_update_params.rbs +31 -0
- data/sig/orb/models/amount_discount.rbs +40 -0
- data/sig/orb/models/billable_metric.rbs +50 -0
- data/sig/orb/models/billing_cycle_relative_date.rbs +14 -0
- data/sig/orb/models/coupon.rbs +51 -0
- data/sig/orb/models/coupon_archive_params.rbs +14 -0
- data/sig/orb/models/coupon_create_params.rbs +77 -0
- data/sig/orb/models/coupon_fetch_params.rbs +14 -0
- data/sig/orb/models/coupon_list_params.rbs +37 -0
- data/sig/orb/models/coupons/subscription_list_params.rbs +27 -0
- data/sig/orb/models/credit_note.rbs +345 -0
- data/sig/orb/models/credit_note_create_params.rbs +57 -0
- data/sig/orb/models/credit_note_fetch_params.rbs +14 -0
- data/sig/orb/models/credit_note_list_params.rbs +45 -0
- data/sig/orb/models/customer.rbs +628 -0
- data/sig/orb/models/customer_create_params.rbs +624 -0
- data/sig/orb/models/customer_delete_params.rbs +14 -0
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +14 -0
- data/sig/orb/models/customer_fetch_params.rbs +14 -0
- data/sig/orb/models/customer_list_params.rbs +45 -0
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +15 -0
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +15 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +620 -0
- data/sig/orb/models/customer_update_params.rbs +620 -0
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +44 -0
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +114 -0
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +47 -0
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +114 -0
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +48 -0
- data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +82 -0
- data/sig/orb/models/customers/cost_list_params.rbs +48 -0
- data/sig/orb/models/customers/cost_list_response.rbs +80 -0
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +41 -0
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +55 -0
- data/sig/orb/models/customers/credit_list_params.rbs +41 -0
- data/sig/orb/models/customers/credit_list_response.rbs +55 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +120 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +814 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +120 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +814 -0
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +99 -0
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +814 -0
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +99 -0
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +814 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +95 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +90 -0
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +95 -0
- data/sig/orb/models/customers/credits/top_up_create_response.rbs +90 -0
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +24 -0
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +24 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +29 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +90 -0
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +29 -0
- data/sig/orb/models/customers/credits/top_up_list_response.rbs +90 -0
- data/sig/orb/models/dimensional_price_group.rbs +38 -0
- data/sig/orb/models/dimensional_price_group_create_params.rbs +39 -0
- data/sig/orb/models/dimensional_price_group_list_params.rbs +25 -0
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +15 -0
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +17 -0
- data/sig/orb/models/dimensional_price_groups.rbs +22 -0
- data/sig/orb/models/discount.rbs +15 -0
- data/sig/orb/models/evaluate_price_group.rbs +34 -0
- data/sig/orb/models/event_deprecate_params.rbs +14 -0
- data/sig/orb/models/event_deprecate_response.rbs +13 -0
- data/sig/orb/models/event_ingest_params.rbs +68 -0
- data/sig/orb/models/event_ingest_response.rbs +53 -0
- data/sig/orb/models/event_search_params.rbs +31 -0
- data/sig/orb/models/event_search_response.rbs +55 -0
- data/sig/orb/models/event_update_params.rbs +39 -0
- data/sig/orb/models/event_update_response.rbs +13 -0
- data/sig/orb/models/events/backfill_close_params.rbs +16 -0
- data/sig/orb/models/events/backfill_close_response.rbs +73 -0
- data/sig/orb/models/events/backfill_create_params.rbs +51 -0
- data/sig/orb/models/events/backfill_create_response.rbs +73 -0
- data/sig/orb/models/events/backfill_fetch_params.rbs +16 -0
- data/sig/orb/models/events/backfill_fetch_response.rbs +73 -0
- data/sig/orb/models/events/backfill_list_params.rbs +27 -0
- data/sig/orb/models/events/backfill_list_response.rbs +73 -0
- data/sig/orb/models/events/backfill_revert_params.rbs +16 -0
- data/sig/orb/models/events/backfill_revert_response.rbs +73 -0
- data/sig/orb/models/events/event_volumes.rbs +39 -0
- data/sig/orb/models/events/volume_list_params.rbs +41 -0
- data/sig/orb/models/invoice.rbs +1430 -0
- data/sig/orb/models/invoice_create_params.rbs +120 -0
- data/sig/orb/models/invoice_fetch_params.rbs +14 -0
- data/sig/orb/models/invoice_fetch_upcoming_params.rbs +20 -0
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +1430 -0
- data/sig/orb/models/invoice_issue_params.rbs +21 -0
- data/sig/orb/models/invoice_level_discount.rbs +14 -0
- data/sig/orb/models/invoice_line_item_create_params.rbs +43 -0
- data/sig/orb/models/invoice_line_item_create_response.rbs +546 -0
- data/sig/orb/models/invoice_list_params.rbs +122 -0
- data/sig/orb/models/invoice_mark_paid_params.rbs +27 -0
- data/sig/orb/models/invoice_pay_params.rbs +14 -0
- data/sig/orb/models/invoice_update_params.rbs +20 -0
- data/sig/orb/models/invoice_void_params.rbs +14 -0
- data/sig/orb/models/item.rbs +72 -0
- data/sig/orb/models/item_create_params.rbs +19 -0
- data/sig/orb/models/item_fetch_params.rbs +14 -0
- data/sig/orb/models/item_list_params.rbs +25 -0
- data/sig/orb/models/item_update_params.rbs +69 -0
- data/sig/orb/models/metric_create_params.rbs +39 -0
- data/sig/orb/models/metric_fetch_params.rbs +14 -0
- data/sig/orb/models/metric_list_params.rbs +45 -0
- data/sig/orb/models/metric_update_params.rbs +20 -0
- data/sig/orb/models/pagination_metadata.rbs +15 -0
- data/sig/orb/models/percentage_discount.rbs +40 -0
- data/sig/orb/models/plan.rbs +529 -0
- data/sig/orb/models/plan_create_params.rbs +3991 -0
- data/sig/orb/models/plan_fetch_params.rbs +14 -0
- data/sig/orb/models/plan_list_params.rbs +65 -0
- data/sig/orb/models/plan_update_params.rbs +24 -0
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +16 -0
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +26 -0
- data/sig/orb/models/price.rbs +8108 -0
- data/sig/orb/models/price_create_params.rbs +520 -0
- data/sig/orb/models/price_evaluate_params.rbs +45 -0
- data/sig/orb/models/price_evaluate_response.rbs +14 -0
- data/sig/orb/models/price_fetch_params.rbs +14 -0
- data/sig/orb/models/price_list_params.rbs +25 -0
- data/sig/orb/models/price_update_params.rbs +20 -0
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +16 -0
- data/sig/orb/models/prices/external_price_id_update_params.rbs +22 -0
- data/sig/orb/models/subscription.rbs +687 -0
- data/sig/orb/models/subscription_cancel_params.rbs +44 -0
- data/sig/orb/models/subscription_cancel_response.rbs +687 -0
- data/sig/orb/models/subscription_create_params.rbs +9141 -0
- data/sig/orb/models/subscription_create_response.rbs +687 -0
- data/sig/orb/models/subscription_fetch_costs_params.rbs +46 -0
- data/sig/orb/models/subscription_fetch_costs_response.rbs +78 -0
- data/sig/orb/models/subscription_fetch_params.rbs +14 -0
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +45 -0
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +48 -0
- data/sig/orb/models/subscription_fetch_usage_params.rbs +80 -0
- data/sig/orb/models/subscription_list_params.rbs +69 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +5117 -0
- data/sig/orb/models/subscription_price_intervals_response.rbs +687 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +9133 -0
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +687 -0
- data/sig/orb/models/subscription_trigger_phase_params.rbs +24 -0
- data/sig/orb/models/subscription_trigger_phase_response.rbs +687 -0
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +15 -0
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +687 -0
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +20 -0
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +687 -0
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +15 -0
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +687 -0
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +55 -0
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +687 -0
- data/sig/orb/models/subscription_update_params.rbs +39 -0
- data/sig/orb/models/subscription_update_trial_params.rbs +39 -0
- data/sig/orb/models/subscription_update_trial_response.rbs +687 -0
- data/sig/orb/models/subscription_usage.rbs +196 -0
- data/sig/orb/models/subscriptions.rbs +22 -0
- data/sig/orb/models/top_level_ping_params.rbs +14 -0
- data/sig/orb/models/top_level_ping_response.rbs +13 -0
- data/sig/orb/models/trial_discount.rbs +44 -0
- data/sig/orb/models/usage_discount.rbs +40 -0
- data/sig/orb/page.rbs +22 -0
- data/sig/orb/request_options.rbs +32 -0
- data/sig/orb/resources/alerts.rbs +67 -0
- data/sig/orb/resources/coupons/subscriptions.rbs +16 -0
- data/sig/orb/resources/coupons.rbs +35 -0
- data/sig/orb/resources/credit_notes.rbs +29 -0
- data/sig/orb/resources/customers/balance_transactions.rbs +28 -0
- data/sig/orb/resources/customers/costs.rbs +27 -0
- data/sig/orb/resources/customers/credits/ledger.rbs +75 -0
- data/sig/orb/resources/customers/credits/top_ups.rbs +63 -0
- data/sig/orb/resources/customers/credits.rbs +31 -0
- data/sig/orb/resources/customers.rbs +114 -0
- data/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +14 -0
- data/sig/orb/resources/dimensional_price_groups.rbs +29 -0
- data/sig/orb/resources/events/backfills.rbs +41 -0
- data/sig/orb/resources/events/volume.rbs +17 -0
- data/sig/orb/resources/events.rbs +40 -0
- data/sig/orb/resources/invoice_line_items.rbs +17 -0
- data/sig/orb/resources/invoices.rbs +84 -0
- data/sig/orb/resources/items.rbs +30 -0
- data/sig/orb/resources/metrics.rbs +37 -0
- data/sig/orb/resources/plans/external_plan_id.rbs +21 -0
- data/sig/orb/resources/plans.rbs +44 -0
- data/sig/orb/resources/prices/external_price_id.rbs +20 -0
- data/sig/orb/resources/prices.rbs +83 -0
- data/sig/orb/resources/subscriptions.rbs +194 -0
- data/sig/orb/resources/top_level.rbs +11 -0
- data/sig/orb/transport/base_client.rbs +110 -0
- data/sig/orb/transport/pooled_net_requester.rbs +39 -0
- data/sig/orb/type/array_of.rbs +36 -0
- data/sig/orb/type/base_model.rbs +77 -0
- data/sig/orb/type/base_page.rbs +22 -0
- data/sig/orb/type/boolean_model.rbs +18 -0
- data/sig/orb/type/converter.rbs +36 -0
- data/sig/orb/type/enum.rbs +22 -0
- data/sig/orb/type/hash_of.rbs +36 -0
- data/sig/orb/type/request_parameters.rbs +13 -0
- data/sig/orb/type/union.rbs +37 -0
- data/sig/orb/type/unknown.rbs +15 -0
- data/sig/orb/type.rbs +22 -0
- data/sig/orb/util.rbs +132 -0
- data/sig/orb/version.rbs +3 -0
- metadata +692 -0
@@ -0,0 +1,3991 @@
|
|
1
|
+
module Orb
|
2
|
+
module Models
|
3
|
+
type plan_create_params =
|
4
|
+
{
|
5
|
+
currency: String,
|
6
|
+
name: String,
|
7
|
+
prices: ::Array[Orb::Models::PlanCreateParams::price],
|
8
|
+
default_invoice_memo: String?,
|
9
|
+
external_plan_id: String?,
|
10
|
+
metadata: ::Hash[Symbol, String?]?,
|
11
|
+
net_terms: Integer?,
|
12
|
+
status: Orb::Models::PlanCreateParams::status
|
13
|
+
}
|
14
|
+
& Orb::request_parameters
|
15
|
+
|
16
|
+
class PlanCreateParams < Orb::BaseModel
|
17
|
+
extend Orb::Type::RequestParameters::Converter
|
18
|
+
include Orb::RequestParameters
|
19
|
+
|
20
|
+
attr_accessor currency: String
|
21
|
+
|
22
|
+
attr_accessor name: String
|
23
|
+
|
24
|
+
attr_accessor prices: ::Array[Orb::Models::PlanCreateParams::price]
|
25
|
+
|
26
|
+
attr_accessor default_invoice_memo: String?
|
27
|
+
|
28
|
+
attr_accessor external_plan_id: String?
|
29
|
+
|
30
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
31
|
+
|
32
|
+
attr_accessor net_terms: Integer?
|
33
|
+
|
34
|
+
attr_reader status: Orb::Models::PlanCreateParams::status?
|
35
|
+
|
36
|
+
def status=: (
|
37
|
+
Orb::Models::PlanCreateParams::status
|
38
|
+
) -> Orb::Models::PlanCreateParams::status
|
39
|
+
|
40
|
+
def initialize: (
|
41
|
+
currency: String,
|
42
|
+
name: String,
|
43
|
+
prices: ::Array[Orb::Models::PlanCreateParams::price],
|
44
|
+
?default_invoice_memo: String?,
|
45
|
+
?external_plan_id: String?,
|
46
|
+
?metadata: ::Hash[Symbol, String?]?,
|
47
|
+
?net_terms: Integer?,
|
48
|
+
?status: Orb::Models::PlanCreateParams::status,
|
49
|
+
?request_options: Orb::request_opts
|
50
|
+
) -> void
|
51
|
+
|
52
|
+
def to_hash: -> Orb::Models::plan_create_params
|
53
|
+
|
54
|
+
type price =
|
55
|
+
Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice
|
56
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice
|
57
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice
|
58
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice
|
59
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice
|
60
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice
|
61
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice
|
62
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice
|
63
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice
|
64
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice
|
65
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice
|
66
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice
|
67
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice
|
68
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice
|
69
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice
|
70
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice
|
71
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice
|
72
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice
|
73
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice
|
74
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice
|
75
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice
|
76
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice
|
77
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice
|
78
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice
|
79
|
+
| Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice
|
80
|
+
|
81
|
+
module Price
|
82
|
+
extend Orb::Union
|
83
|
+
|
84
|
+
type new_plan_unit_price =
|
85
|
+
{
|
86
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence,
|
87
|
+
item_id: String,
|
88
|
+
model_type: :unit,
|
89
|
+
name: String,
|
90
|
+
unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig,
|
91
|
+
billable_metric_id: String?,
|
92
|
+
billed_in_advance: bool?,
|
93
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration?,
|
94
|
+
conversion_rate: Float?,
|
95
|
+
currency: String?,
|
96
|
+
external_price_id: String?,
|
97
|
+
fixed_price_quantity: Float?,
|
98
|
+
invoice_grouping_key: String?,
|
99
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration?,
|
100
|
+
metadata: ::Hash[Symbol, String?]?
|
101
|
+
}
|
102
|
+
|
103
|
+
class NewPlanUnitPrice < Orb::BaseModel
|
104
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence
|
105
|
+
|
106
|
+
attr_accessor item_id: String
|
107
|
+
|
108
|
+
attr_accessor model_type: :unit
|
109
|
+
|
110
|
+
attr_accessor name: String
|
111
|
+
|
112
|
+
attr_accessor unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig
|
113
|
+
|
114
|
+
attr_accessor billable_metric_id: String?
|
115
|
+
|
116
|
+
attr_accessor billed_in_advance: bool?
|
117
|
+
|
118
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration?
|
119
|
+
|
120
|
+
attr_accessor conversion_rate: Float?
|
121
|
+
|
122
|
+
attr_accessor currency: String?
|
123
|
+
|
124
|
+
attr_accessor external_price_id: String?
|
125
|
+
|
126
|
+
attr_accessor fixed_price_quantity: Float?
|
127
|
+
|
128
|
+
attr_accessor invoice_grouping_key: String?
|
129
|
+
|
130
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration?
|
131
|
+
|
132
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
133
|
+
|
134
|
+
def initialize: (
|
135
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence,
|
136
|
+
item_id: String,
|
137
|
+
name: String,
|
138
|
+
unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig,
|
139
|
+
?billable_metric_id: String?,
|
140
|
+
?billed_in_advance: bool?,
|
141
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration?,
|
142
|
+
?conversion_rate: Float?,
|
143
|
+
?currency: String?,
|
144
|
+
?external_price_id: String?,
|
145
|
+
?fixed_price_quantity: Float?,
|
146
|
+
?invoice_grouping_key: String?,
|
147
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration?,
|
148
|
+
?metadata: ::Hash[Symbol, String?]?,
|
149
|
+
?model_type: :unit
|
150
|
+
) -> void
|
151
|
+
|
152
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_price
|
153
|
+
|
154
|
+
type cadence =
|
155
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
156
|
+
|
157
|
+
module Cadence
|
158
|
+
extend Orb::Enum
|
159
|
+
|
160
|
+
ANNUAL: :annual
|
161
|
+
SEMI_ANNUAL: :semi_annual
|
162
|
+
MONTHLY: :monthly
|
163
|
+
QUARTERLY: :quarterly
|
164
|
+
ONE_TIME: :one_time
|
165
|
+
CUSTOM: :custom
|
166
|
+
|
167
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence]
|
168
|
+
end
|
169
|
+
|
170
|
+
type unit_config = { unit_amount: String }
|
171
|
+
|
172
|
+
class UnitConfig < Orb::BaseModel
|
173
|
+
attr_accessor unit_amount: String
|
174
|
+
|
175
|
+
def initialize: (unit_amount: String) -> void
|
176
|
+
|
177
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::unit_config
|
178
|
+
end
|
179
|
+
|
180
|
+
type billing_cycle_configuration =
|
181
|
+
{
|
182
|
+
duration: Integer,
|
183
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit
|
184
|
+
}
|
185
|
+
|
186
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
187
|
+
attr_accessor duration: Integer
|
188
|
+
|
189
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit
|
190
|
+
|
191
|
+
def initialize: (
|
192
|
+
duration: Integer,
|
193
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit
|
194
|
+
) -> void
|
195
|
+
|
196
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::billing_cycle_configuration
|
197
|
+
|
198
|
+
type duration_unit = :day | :month
|
199
|
+
|
200
|
+
module DurationUnit
|
201
|
+
extend Orb::Enum
|
202
|
+
|
203
|
+
DAY: :day
|
204
|
+
MONTH: :month
|
205
|
+
|
206
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit]
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
type invoicing_cycle_configuration =
|
211
|
+
{
|
212
|
+
duration: Integer,
|
213
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit
|
214
|
+
}
|
215
|
+
|
216
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
217
|
+
attr_accessor duration: Integer
|
218
|
+
|
219
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit
|
220
|
+
|
221
|
+
def initialize: (
|
222
|
+
duration: Integer,
|
223
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit
|
224
|
+
) -> void
|
225
|
+
|
226
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::invoicing_cycle_configuration
|
227
|
+
|
228
|
+
type duration_unit = :day | :month
|
229
|
+
|
230
|
+
module DurationUnit
|
231
|
+
extend Orb::Enum
|
232
|
+
|
233
|
+
DAY: :day
|
234
|
+
MONTH: :month
|
235
|
+
|
236
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit]
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
type new_plan_package_price =
|
242
|
+
{
|
243
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence,
|
244
|
+
item_id: String,
|
245
|
+
model_type: :package,
|
246
|
+
name: String,
|
247
|
+
package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig,
|
248
|
+
billable_metric_id: String?,
|
249
|
+
billed_in_advance: bool?,
|
250
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration?,
|
251
|
+
conversion_rate: Float?,
|
252
|
+
currency: String?,
|
253
|
+
external_price_id: String?,
|
254
|
+
fixed_price_quantity: Float?,
|
255
|
+
invoice_grouping_key: String?,
|
256
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration?,
|
257
|
+
metadata: ::Hash[Symbol, String?]?
|
258
|
+
}
|
259
|
+
|
260
|
+
class NewPlanPackagePrice < Orb::BaseModel
|
261
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence
|
262
|
+
|
263
|
+
attr_accessor item_id: String
|
264
|
+
|
265
|
+
attr_accessor model_type: :package
|
266
|
+
|
267
|
+
attr_accessor name: String
|
268
|
+
|
269
|
+
attr_accessor package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig
|
270
|
+
|
271
|
+
attr_accessor billable_metric_id: String?
|
272
|
+
|
273
|
+
attr_accessor billed_in_advance: bool?
|
274
|
+
|
275
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration?
|
276
|
+
|
277
|
+
attr_accessor conversion_rate: Float?
|
278
|
+
|
279
|
+
attr_accessor currency: String?
|
280
|
+
|
281
|
+
attr_accessor external_price_id: String?
|
282
|
+
|
283
|
+
attr_accessor fixed_price_quantity: Float?
|
284
|
+
|
285
|
+
attr_accessor invoice_grouping_key: String?
|
286
|
+
|
287
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration?
|
288
|
+
|
289
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
290
|
+
|
291
|
+
def initialize: (
|
292
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence,
|
293
|
+
item_id: String,
|
294
|
+
name: String,
|
295
|
+
package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig,
|
296
|
+
?billable_metric_id: String?,
|
297
|
+
?billed_in_advance: bool?,
|
298
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration?,
|
299
|
+
?conversion_rate: Float?,
|
300
|
+
?currency: String?,
|
301
|
+
?external_price_id: String?,
|
302
|
+
?fixed_price_quantity: Float?,
|
303
|
+
?invoice_grouping_key: String?,
|
304
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration?,
|
305
|
+
?metadata: ::Hash[Symbol, String?]?,
|
306
|
+
?model_type: :package
|
307
|
+
) -> void
|
308
|
+
|
309
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_package_price
|
310
|
+
|
311
|
+
type cadence =
|
312
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
313
|
+
|
314
|
+
module Cadence
|
315
|
+
extend Orb::Enum
|
316
|
+
|
317
|
+
ANNUAL: :annual
|
318
|
+
SEMI_ANNUAL: :semi_annual
|
319
|
+
MONTHLY: :monthly
|
320
|
+
QUARTERLY: :quarterly
|
321
|
+
ONE_TIME: :one_time
|
322
|
+
CUSTOM: :custom
|
323
|
+
|
324
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence]
|
325
|
+
end
|
326
|
+
|
327
|
+
type package_config =
|
328
|
+
{ package_amount: String, package_size: Integer }
|
329
|
+
|
330
|
+
class PackageConfig < Orb::BaseModel
|
331
|
+
attr_accessor package_amount: String
|
332
|
+
|
333
|
+
attr_accessor package_size: Integer
|
334
|
+
|
335
|
+
def initialize: (
|
336
|
+
package_amount: String,
|
337
|
+
package_size: Integer
|
338
|
+
) -> void
|
339
|
+
|
340
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::package_config
|
341
|
+
end
|
342
|
+
|
343
|
+
type billing_cycle_configuration =
|
344
|
+
{
|
345
|
+
duration: Integer,
|
346
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit
|
347
|
+
}
|
348
|
+
|
349
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
350
|
+
attr_accessor duration: Integer
|
351
|
+
|
352
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit
|
353
|
+
|
354
|
+
def initialize: (
|
355
|
+
duration: Integer,
|
356
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit
|
357
|
+
) -> void
|
358
|
+
|
359
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::billing_cycle_configuration
|
360
|
+
|
361
|
+
type duration_unit = :day | :month
|
362
|
+
|
363
|
+
module DurationUnit
|
364
|
+
extend Orb::Enum
|
365
|
+
|
366
|
+
DAY: :day
|
367
|
+
MONTH: :month
|
368
|
+
|
369
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit]
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
type invoicing_cycle_configuration =
|
374
|
+
{
|
375
|
+
duration: Integer,
|
376
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit
|
377
|
+
}
|
378
|
+
|
379
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
380
|
+
attr_accessor duration: Integer
|
381
|
+
|
382
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit
|
383
|
+
|
384
|
+
def initialize: (
|
385
|
+
duration: Integer,
|
386
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit
|
387
|
+
) -> void
|
388
|
+
|
389
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::invoicing_cycle_configuration
|
390
|
+
|
391
|
+
type duration_unit = :day | :month
|
392
|
+
|
393
|
+
module DurationUnit
|
394
|
+
extend Orb::Enum
|
395
|
+
|
396
|
+
DAY: :day
|
397
|
+
MONTH: :month
|
398
|
+
|
399
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit]
|
400
|
+
end
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
404
|
+
type new_plan_matrix_price =
|
405
|
+
{
|
406
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence,
|
407
|
+
item_id: String,
|
408
|
+
matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig,
|
409
|
+
model_type: :matrix,
|
410
|
+
name: String,
|
411
|
+
billable_metric_id: String?,
|
412
|
+
billed_in_advance: bool?,
|
413
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration?,
|
414
|
+
conversion_rate: Float?,
|
415
|
+
currency: String?,
|
416
|
+
external_price_id: String?,
|
417
|
+
fixed_price_quantity: Float?,
|
418
|
+
invoice_grouping_key: String?,
|
419
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration?,
|
420
|
+
metadata: ::Hash[Symbol, String?]?
|
421
|
+
}
|
422
|
+
|
423
|
+
class NewPlanMatrixPrice < Orb::BaseModel
|
424
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence
|
425
|
+
|
426
|
+
attr_accessor item_id: String
|
427
|
+
|
428
|
+
attr_accessor matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig
|
429
|
+
|
430
|
+
attr_accessor model_type: :matrix
|
431
|
+
|
432
|
+
attr_accessor name: String
|
433
|
+
|
434
|
+
attr_accessor billable_metric_id: String?
|
435
|
+
|
436
|
+
attr_accessor billed_in_advance: bool?
|
437
|
+
|
438
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration?
|
439
|
+
|
440
|
+
attr_accessor conversion_rate: Float?
|
441
|
+
|
442
|
+
attr_accessor currency: String?
|
443
|
+
|
444
|
+
attr_accessor external_price_id: String?
|
445
|
+
|
446
|
+
attr_accessor fixed_price_quantity: Float?
|
447
|
+
|
448
|
+
attr_accessor invoice_grouping_key: String?
|
449
|
+
|
450
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration?
|
451
|
+
|
452
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
453
|
+
|
454
|
+
def initialize: (
|
455
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence,
|
456
|
+
item_id: String,
|
457
|
+
matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig,
|
458
|
+
name: String,
|
459
|
+
?billable_metric_id: String?,
|
460
|
+
?billed_in_advance: bool?,
|
461
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration?,
|
462
|
+
?conversion_rate: Float?,
|
463
|
+
?currency: String?,
|
464
|
+
?external_price_id: String?,
|
465
|
+
?fixed_price_quantity: Float?,
|
466
|
+
?invoice_grouping_key: String?,
|
467
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration?,
|
468
|
+
?metadata: ::Hash[Symbol, String?]?,
|
469
|
+
?model_type: :matrix
|
470
|
+
) -> void
|
471
|
+
|
472
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_price
|
473
|
+
|
474
|
+
type cadence =
|
475
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
476
|
+
|
477
|
+
module Cadence
|
478
|
+
extend Orb::Enum
|
479
|
+
|
480
|
+
ANNUAL: :annual
|
481
|
+
SEMI_ANNUAL: :semi_annual
|
482
|
+
MONTHLY: :monthly
|
483
|
+
QUARTERLY: :quarterly
|
484
|
+
ONE_TIME: :one_time
|
485
|
+
CUSTOM: :custom
|
486
|
+
|
487
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence]
|
488
|
+
end
|
489
|
+
|
490
|
+
type matrix_config =
|
491
|
+
{
|
492
|
+
default_unit_amount: String,
|
493
|
+
dimensions: ::Array[String?],
|
494
|
+
matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]
|
495
|
+
}
|
496
|
+
|
497
|
+
class MatrixConfig < Orb::BaseModel
|
498
|
+
attr_accessor default_unit_amount: String
|
499
|
+
|
500
|
+
attr_accessor dimensions: ::Array[String?]
|
501
|
+
|
502
|
+
attr_accessor matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]
|
503
|
+
|
504
|
+
def initialize: (
|
505
|
+
default_unit_amount: String,
|
506
|
+
dimensions: ::Array[String?],
|
507
|
+
matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue]
|
508
|
+
) -> void
|
509
|
+
|
510
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config
|
511
|
+
|
512
|
+
type matrix_value =
|
513
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
514
|
+
|
515
|
+
class MatrixValue < Orb::BaseModel
|
516
|
+
attr_accessor dimension_values: ::Array[String?]
|
517
|
+
|
518
|
+
attr_accessor unit_amount: String
|
519
|
+
|
520
|
+
def initialize: (
|
521
|
+
dimension_values: ::Array[String?],
|
522
|
+
unit_amount: String
|
523
|
+
) -> void
|
524
|
+
|
525
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::matrix_value
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
type billing_cycle_configuration =
|
530
|
+
{
|
531
|
+
duration: Integer,
|
532
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit
|
533
|
+
}
|
534
|
+
|
535
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
536
|
+
attr_accessor duration: Integer
|
537
|
+
|
538
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit
|
539
|
+
|
540
|
+
def initialize: (
|
541
|
+
duration: Integer,
|
542
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit
|
543
|
+
) -> void
|
544
|
+
|
545
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::billing_cycle_configuration
|
546
|
+
|
547
|
+
type duration_unit = :day | :month
|
548
|
+
|
549
|
+
module DurationUnit
|
550
|
+
extend Orb::Enum
|
551
|
+
|
552
|
+
DAY: :day
|
553
|
+
MONTH: :month
|
554
|
+
|
555
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit]
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
type invoicing_cycle_configuration =
|
560
|
+
{
|
561
|
+
duration: Integer,
|
562
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit
|
563
|
+
}
|
564
|
+
|
565
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
566
|
+
attr_accessor duration: Integer
|
567
|
+
|
568
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit
|
569
|
+
|
570
|
+
def initialize: (
|
571
|
+
duration: Integer,
|
572
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit
|
573
|
+
) -> void
|
574
|
+
|
575
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::invoicing_cycle_configuration
|
576
|
+
|
577
|
+
type duration_unit = :day | :month
|
578
|
+
|
579
|
+
module DurationUnit
|
580
|
+
extend Orb::Enum
|
581
|
+
|
582
|
+
DAY: :day
|
583
|
+
MONTH: :month
|
584
|
+
|
585
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit]
|
586
|
+
end
|
587
|
+
end
|
588
|
+
end
|
589
|
+
|
590
|
+
type new_plan_tiered_price =
|
591
|
+
{
|
592
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence,
|
593
|
+
item_id: String,
|
594
|
+
model_type: :tiered,
|
595
|
+
name: String,
|
596
|
+
tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig,
|
597
|
+
billable_metric_id: String?,
|
598
|
+
billed_in_advance: bool?,
|
599
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration?,
|
600
|
+
conversion_rate: Float?,
|
601
|
+
currency: String?,
|
602
|
+
external_price_id: String?,
|
603
|
+
fixed_price_quantity: Float?,
|
604
|
+
invoice_grouping_key: String?,
|
605
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration?,
|
606
|
+
metadata: ::Hash[Symbol, String?]?
|
607
|
+
}
|
608
|
+
|
609
|
+
class NewPlanTieredPrice < Orb::BaseModel
|
610
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence
|
611
|
+
|
612
|
+
attr_accessor item_id: String
|
613
|
+
|
614
|
+
attr_accessor model_type: :tiered
|
615
|
+
|
616
|
+
attr_accessor name: String
|
617
|
+
|
618
|
+
attr_accessor tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig
|
619
|
+
|
620
|
+
attr_accessor billable_metric_id: String?
|
621
|
+
|
622
|
+
attr_accessor billed_in_advance: bool?
|
623
|
+
|
624
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration?
|
625
|
+
|
626
|
+
attr_accessor conversion_rate: Float?
|
627
|
+
|
628
|
+
attr_accessor currency: String?
|
629
|
+
|
630
|
+
attr_accessor external_price_id: String?
|
631
|
+
|
632
|
+
attr_accessor fixed_price_quantity: Float?
|
633
|
+
|
634
|
+
attr_accessor invoice_grouping_key: String?
|
635
|
+
|
636
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration?
|
637
|
+
|
638
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
639
|
+
|
640
|
+
def initialize: (
|
641
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence,
|
642
|
+
item_id: String,
|
643
|
+
name: String,
|
644
|
+
tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig,
|
645
|
+
?billable_metric_id: String?,
|
646
|
+
?billed_in_advance: bool?,
|
647
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration?,
|
648
|
+
?conversion_rate: Float?,
|
649
|
+
?currency: String?,
|
650
|
+
?external_price_id: String?,
|
651
|
+
?fixed_price_quantity: Float?,
|
652
|
+
?invoice_grouping_key: String?,
|
653
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration?,
|
654
|
+
?metadata: ::Hash[Symbol, String?]?,
|
655
|
+
?model_type: :tiered
|
656
|
+
) -> void
|
657
|
+
|
658
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_price
|
659
|
+
|
660
|
+
type cadence =
|
661
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
662
|
+
|
663
|
+
module Cadence
|
664
|
+
extend Orb::Enum
|
665
|
+
|
666
|
+
ANNUAL: :annual
|
667
|
+
SEMI_ANNUAL: :semi_annual
|
668
|
+
MONTHLY: :monthly
|
669
|
+
QUARTERLY: :quarterly
|
670
|
+
ONE_TIME: :one_time
|
671
|
+
CUSTOM: :custom
|
672
|
+
|
673
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence]
|
674
|
+
end
|
675
|
+
|
676
|
+
type tiered_config =
|
677
|
+
{
|
678
|
+
tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]
|
679
|
+
}
|
680
|
+
|
681
|
+
class TieredConfig < Orb::BaseModel
|
682
|
+
attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]
|
683
|
+
|
684
|
+
def initialize: (
|
685
|
+
tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]
|
686
|
+
) -> void
|
687
|
+
|
688
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::tiered_config
|
689
|
+
|
690
|
+
type tier =
|
691
|
+
{ first_unit: Float, unit_amount: String, last_unit: Float? }
|
692
|
+
|
693
|
+
class Tier < Orb::BaseModel
|
694
|
+
attr_accessor first_unit: Float
|
695
|
+
|
696
|
+
attr_accessor unit_amount: String
|
697
|
+
|
698
|
+
attr_accessor last_unit: Float?
|
699
|
+
|
700
|
+
def initialize: (
|
701
|
+
first_unit: Float,
|
702
|
+
unit_amount: String,
|
703
|
+
?last_unit: Float?
|
704
|
+
) -> void
|
705
|
+
|
706
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::tier
|
707
|
+
end
|
708
|
+
end
|
709
|
+
|
710
|
+
type billing_cycle_configuration =
|
711
|
+
{
|
712
|
+
duration: Integer,
|
713
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit
|
714
|
+
}
|
715
|
+
|
716
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
717
|
+
attr_accessor duration: Integer
|
718
|
+
|
719
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit
|
720
|
+
|
721
|
+
def initialize: (
|
722
|
+
duration: Integer,
|
723
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit
|
724
|
+
) -> void
|
725
|
+
|
726
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::billing_cycle_configuration
|
727
|
+
|
728
|
+
type duration_unit = :day | :month
|
729
|
+
|
730
|
+
module DurationUnit
|
731
|
+
extend Orb::Enum
|
732
|
+
|
733
|
+
DAY: :day
|
734
|
+
MONTH: :month
|
735
|
+
|
736
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit]
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
type invoicing_cycle_configuration =
|
741
|
+
{
|
742
|
+
duration: Integer,
|
743
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit
|
744
|
+
}
|
745
|
+
|
746
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
747
|
+
attr_accessor duration: Integer
|
748
|
+
|
749
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit
|
750
|
+
|
751
|
+
def initialize: (
|
752
|
+
duration: Integer,
|
753
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit
|
754
|
+
) -> void
|
755
|
+
|
756
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::invoicing_cycle_configuration
|
757
|
+
|
758
|
+
type duration_unit = :day | :month
|
759
|
+
|
760
|
+
module DurationUnit
|
761
|
+
extend Orb::Enum
|
762
|
+
|
763
|
+
DAY: :day
|
764
|
+
MONTH: :month
|
765
|
+
|
766
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit]
|
767
|
+
end
|
768
|
+
end
|
769
|
+
end
|
770
|
+
|
771
|
+
type new_plan_tiered_bps_price =
|
772
|
+
{
|
773
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence,
|
774
|
+
item_id: String,
|
775
|
+
model_type: :tiered_bps,
|
776
|
+
name: String,
|
777
|
+
tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig,
|
778
|
+
billable_metric_id: String?,
|
779
|
+
billed_in_advance: bool?,
|
780
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration?,
|
781
|
+
conversion_rate: Float?,
|
782
|
+
currency: String?,
|
783
|
+
external_price_id: String?,
|
784
|
+
fixed_price_quantity: Float?,
|
785
|
+
invoice_grouping_key: String?,
|
786
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?,
|
787
|
+
metadata: ::Hash[Symbol, String?]?
|
788
|
+
}
|
789
|
+
|
790
|
+
class NewPlanTieredBpsPrice < Orb::BaseModel
|
791
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence
|
792
|
+
|
793
|
+
attr_accessor item_id: String
|
794
|
+
|
795
|
+
attr_accessor model_type: :tiered_bps
|
796
|
+
|
797
|
+
attr_accessor name: String
|
798
|
+
|
799
|
+
attr_accessor tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig
|
800
|
+
|
801
|
+
attr_accessor billable_metric_id: String?
|
802
|
+
|
803
|
+
attr_accessor billed_in_advance: bool?
|
804
|
+
|
805
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration?
|
806
|
+
|
807
|
+
attr_accessor conversion_rate: Float?
|
808
|
+
|
809
|
+
attr_accessor currency: String?
|
810
|
+
|
811
|
+
attr_accessor external_price_id: String?
|
812
|
+
|
813
|
+
attr_accessor fixed_price_quantity: Float?
|
814
|
+
|
815
|
+
attr_accessor invoice_grouping_key: String?
|
816
|
+
|
817
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?
|
818
|
+
|
819
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
820
|
+
|
821
|
+
def initialize: (
|
822
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence,
|
823
|
+
item_id: String,
|
824
|
+
name: String,
|
825
|
+
tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig,
|
826
|
+
?billable_metric_id: String?,
|
827
|
+
?billed_in_advance: bool?,
|
828
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration?,
|
829
|
+
?conversion_rate: Float?,
|
830
|
+
?currency: String?,
|
831
|
+
?external_price_id: String?,
|
832
|
+
?fixed_price_quantity: Float?,
|
833
|
+
?invoice_grouping_key: String?,
|
834
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?,
|
835
|
+
?metadata: ::Hash[Symbol, String?]?,
|
836
|
+
?model_type: :tiered_bps
|
837
|
+
) -> void
|
838
|
+
|
839
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_bps_price
|
840
|
+
|
841
|
+
type cadence =
|
842
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
843
|
+
|
844
|
+
module Cadence
|
845
|
+
extend Orb::Enum
|
846
|
+
|
847
|
+
ANNUAL: :annual
|
848
|
+
SEMI_ANNUAL: :semi_annual
|
849
|
+
MONTHLY: :monthly
|
850
|
+
QUARTERLY: :quarterly
|
851
|
+
ONE_TIME: :one_time
|
852
|
+
CUSTOM: :custom
|
853
|
+
|
854
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence]
|
855
|
+
end
|
856
|
+
|
857
|
+
type tiered_bps_config =
|
858
|
+
{
|
859
|
+
tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]
|
860
|
+
}
|
861
|
+
|
862
|
+
class TieredBpsConfig < Orb::BaseModel
|
863
|
+
attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]
|
864
|
+
|
865
|
+
def initialize: (
|
866
|
+
tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]
|
867
|
+
) -> void
|
868
|
+
|
869
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::tiered_bps_config
|
870
|
+
|
871
|
+
type tier =
|
872
|
+
{
|
873
|
+
bps: Float,
|
874
|
+
minimum_amount: String,
|
875
|
+
maximum_amount: String?,
|
876
|
+
per_unit_maximum: String?
|
877
|
+
}
|
878
|
+
|
879
|
+
class Tier < Orb::BaseModel
|
880
|
+
attr_accessor bps: Float
|
881
|
+
|
882
|
+
attr_accessor minimum_amount: String
|
883
|
+
|
884
|
+
attr_accessor maximum_amount: String?
|
885
|
+
|
886
|
+
attr_accessor per_unit_maximum: String?
|
887
|
+
|
888
|
+
def initialize: (
|
889
|
+
bps: Float,
|
890
|
+
minimum_amount: String,
|
891
|
+
?maximum_amount: String?,
|
892
|
+
?per_unit_maximum: String?
|
893
|
+
) -> void
|
894
|
+
|
895
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::tier
|
896
|
+
end
|
897
|
+
end
|
898
|
+
|
899
|
+
type billing_cycle_configuration =
|
900
|
+
{
|
901
|
+
duration: Integer,
|
902
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit
|
903
|
+
}
|
904
|
+
|
905
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
906
|
+
attr_accessor duration: Integer
|
907
|
+
|
908
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit
|
909
|
+
|
910
|
+
def initialize: (
|
911
|
+
duration: Integer,
|
912
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit
|
913
|
+
) -> void
|
914
|
+
|
915
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::billing_cycle_configuration
|
916
|
+
|
917
|
+
type duration_unit = :day | :month
|
918
|
+
|
919
|
+
module DurationUnit
|
920
|
+
extend Orb::Enum
|
921
|
+
|
922
|
+
DAY: :day
|
923
|
+
MONTH: :month
|
924
|
+
|
925
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit]
|
926
|
+
end
|
927
|
+
end
|
928
|
+
|
929
|
+
type invoicing_cycle_configuration =
|
930
|
+
{
|
931
|
+
duration: Integer,
|
932
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit
|
933
|
+
}
|
934
|
+
|
935
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
936
|
+
attr_accessor duration: Integer
|
937
|
+
|
938
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit
|
939
|
+
|
940
|
+
def initialize: (
|
941
|
+
duration: Integer,
|
942
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit
|
943
|
+
) -> void
|
944
|
+
|
945
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::invoicing_cycle_configuration
|
946
|
+
|
947
|
+
type duration_unit = :day | :month
|
948
|
+
|
949
|
+
module DurationUnit
|
950
|
+
extend Orb::Enum
|
951
|
+
|
952
|
+
DAY: :day
|
953
|
+
MONTH: :month
|
954
|
+
|
955
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit]
|
956
|
+
end
|
957
|
+
end
|
958
|
+
end
|
959
|
+
|
960
|
+
type new_plan_bps_price =
|
961
|
+
{
|
962
|
+
bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig,
|
963
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence,
|
964
|
+
item_id: String,
|
965
|
+
model_type: :bps,
|
966
|
+
name: String,
|
967
|
+
billable_metric_id: String?,
|
968
|
+
billed_in_advance: bool?,
|
969
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration?,
|
970
|
+
conversion_rate: Float?,
|
971
|
+
currency: String?,
|
972
|
+
external_price_id: String?,
|
973
|
+
fixed_price_quantity: Float?,
|
974
|
+
invoice_grouping_key: String?,
|
975
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration?,
|
976
|
+
metadata: ::Hash[Symbol, String?]?
|
977
|
+
}
|
978
|
+
|
979
|
+
class NewPlanBpsPrice < Orb::BaseModel
|
980
|
+
attr_accessor bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig
|
981
|
+
|
982
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence
|
983
|
+
|
984
|
+
attr_accessor item_id: String
|
985
|
+
|
986
|
+
attr_accessor model_type: :bps
|
987
|
+
|
988
|
+
attr_accessor name: String
|
989
|
+
|
990
|
+
attr_accessor billable_metric_id: String?
|
991
|
+
|
992
|
+
attr_accessor billed_in_advance: bool?
|
993
|
+
|
994
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration?
|
995
|
+
|
996
|
+
attr_accessor conversion_rate: Float?
|
997
|
+
|
998
|
+
attr_accessor currency: String?
|
999
|
+
|
1000
|
+
attr_accessor external_price_id: String?
|
1001
|
+
|
1002
|
+
attr_accessor fixed_price_quantity: Float?
|
1003
|
+
|
1004
|
+
attr_accessor invoice_grouping_key: String?
|
1005
|
+
|
1006
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration?
|
1007
|
+
|
1008
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1009
|
+
|
1010
|
+
def initialize: (
|
1011
|
+
bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig,
|
1012
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence,
|
1013
|
+
item_id: String,
|
1014
|
+
name: String,
|
1015
|
+
?billable_metric_id: String?,
|
1016
|
+
?billed_in_advance: bool?,
|
1017
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration?,
|
1018
|
+
?conversion_rate: Float?,
|
1019
|
+
?currency: String?,
|
1020
|
+
?external_price_id: String?,
|
1021
|
+
?fixed_price_quantity: Float?,
|
1022
|
+
?invoice_grouping_key: String?,
|
1023
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration?,
|
1024
|
+
?metadata: ::Hash[Symbol, String?]?,
|
1025
|
+
?model_type: :bps
|
1026
|
+
) -> void
|
1027
|
+
|
1028
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bps_price
|
1029
|
+
|
1030
|
+
type bps_config = { bps: Float, per_unit_maximum: String? }
|
1031
|
+
|
1032
|
+
class BpsConfig < Orb::BaseModel
|
1033
|
+
attr_accessor bps: Float
|
1034
|
+
|
1035
|
+
attr_accessor per_unit_maximum: String?
|
1036
|
+
|
1037
|
+
def initialize: (bps: Float, ?per_unit_maximum: String?) -> void
|
1038
|
+
|
1039
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::bps_config
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
type cadence =
|
1043
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1044
|
+
|
1045
|
+
module Cadence
|
1046
|
+
extend Orb::Enum
|
1047
|
+
|
1048
|
+
ANNUAL: :annual
|
1049
|
+
SEMI_ANNUAL: :semi_annual
|
1050
|
+
MONTHLY: :monthly
|
1051
|
+
QUARTERLY: :quarterly
|
1052
|
+
ONE_TIME: :one_time
|
1053
|
+
CUSTOM: :custom
|
1054
|
+
|
1055
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence]
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
type billing_cycle_configuration =
|
1059
|
+
{
|
1060
|
+
duration: Integer,
|
1061
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit
|
1062
|
+
}
|
1063
|
+
|
1064
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
1065
|
+
attr_accessor duration: Integer
|
1066
|
+
|
1067
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit
|
1068
|
+
|
1069
|
+
def initialize: (
|
1070
|
+
duration: Integer,
|
1071
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit
|
1072
|
+
) -> void
|
1073
|
+
|
1074
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::billing_cycle_configuration
|
1075
|
+
|
1076
|
+
type duration_unit = :day | :month
|
1077
|
+
|
1078
|
+
module DurationUnit
|
1079
|
+
extend Orb::Enum
|
1080
|
+
|
1081
|
+
DAY: :day
|
1082
|
+
MONTH: :month
|
1083
|
+
|
1084
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit]
|
1085
|
+
end
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
type invoicing_cycle_configuration =
|
1089
|
+
{
|
1090
|
+
duration: Integer,
|
1091
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit
|
1092
|
+
}
|
1093
|
+
|
1094
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
1095
|
+
attr_accessor duration: Integer
|
1096
|
+
|
1097
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit
|
1098
|
+
|
1099
|
+
def initialize: (
|
1100
|
+
duration: Integer,
|
1101
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit
|
1102
|
+
) -> void
|
1103
|
+
|
1104
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::invoicing_cycle_configuration
|
1105
|
+
|
1106
|
+
type duration_unit = :day | :month
|
1107
|
+
|
1108
|
+
module DurationUnit
|
1109
|
+
extend Orb::Enum
|
1110
|
+
|
1111
|
+
DAY: :day
|
1112
|
+
MONTH: :month
|
1113
|
+
|
1114
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit]
|
1115
|
+
end
|
1116
|
+
end
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
type new_plan_bulk_bps_price =
|
1120
|
+
{
|
1121
|
+
bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig,
|
1122
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence,
|
1123
|
+
item_id: String,
|
1124
|
+
model_type: :bulk_bps,
|
1125
|
+
name: String,
|
1126
|
+
billable_metric_id: String?,
|
1127
|
+
billed_in_advance: bool?,
|
1128
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration?,
|
1129
|
+
conversion_rate: Float?,
|
1130
|
+
currency: String?,
|
1131
|
+
external_price_id: String?,
|
1132
|
+
fixed_price_quantity: Float?,
|
1133
|
+
invoice_grouping_key: String?,
|
1134
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?,
|
1135
|
+
metadata: ::Hash[Symbol, String?]?
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
class NewPlanBulkBpsPrice < Orb::BaseModel
|
1139
|
+
attr_accessor bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig
|
1140
|
+
|
1141
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence
|
1142
|
+
|
1143
|
+
attr_accessor item_id: String
|
1144
|
+
|
1145
|
+
attr_accessor model_type: :bulk_bps
|
1146
|
+
|
1147
|
+
attr_accessor name: String
|
1148
|
+
|
1149
|
+
attr_accessor billable_metric_id: String?
|
1150
|
+
|
1151
|
+
attr_accessor billed_in_advance: bool?
|
1152
|
+
|
1153
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration?
|
1154
|
+
|
1155
|
+
attr_accessor conversion_rate: Float?
|
1156
|
+
|
1157
|
+
attr_accessor currency: String?
|
1158
|
+
|
1159
|
+
attr_accessor external_price_id: String?
|
1160
|
+
|
1161
|
+
attr_accessor fixed_price_quantity: Float?
|
1162
|
+
|
1163
|
+
attr_accessor invoice_grouping_key: String?
|
1164
|
+
|
1165
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?
|
1166
|
+
|
1167
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1168
|
+
|
1169
|
+
def initialize: (
|
1170
|
+
bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig,
|
1171
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence,
|
1172
|
+
item_id: String,
|
1173
|
+
name: String,
|
1174
|
+
?billable_metric_id: String?,
|
1175
|
+
?billed_in_advance: bool?,
|
1176
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::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::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?,
|
1183
|
+
?metadata: ::Hash[Symbol, String?]?,
|
1184
|
+
?model_type: :bulk_bps
|
1185
|
+
) -> void
|
1186
|
+
|
1187
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_bps_price
|
1188
|
+
|
1189
|
+
type bulk_bps_config =
|
1190
|
+
{
|
1191
|
+
tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]
|
1192
|
+
}
|
1193
|
+
|
1194
|
+
class BulkBpsConfig < Orb::BaseModel
|
1195
|
+
attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]
|
1196
|
+
|
1197
|
+
def initialize: (
|
1198
|
+
tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]
|
1199
|
+
) -> void
|
1200
|
+
|
1201
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::bulk_bps_config
|
1202
|
+
|
1203
|
+
type tier =
|
1204
|
+
{ bps: Float, maximum_amount: String?, per_unit_maximum: String? }
|
1205
|
+
|
1206
|
+
class Tier < Orb::BaseModel
|
1207
|
+
attr_accessor bps: Float
|
1208
|
+
|
1209
|
+
attr_accessor maximum_amount: String?
|
1210
|
+
|
1211
|
+
attr_accessor per_unit_maximum: String?
|
1212
|
+
|
1213
|
+
def initialize: (
|
1214
|
+
bps: Float,
|
1215
|
+
?maximum_amount: String?,
|
1216
|
+
?per_unit_maximum: String?
|
1217
|
+
) -> void
|
1218
|
+
|
1219
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::tier
|
1220
|
+
end
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
type cadence =
|
1224
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1225
|
+
|
1226
|
+
module Cadence
|
1227
|
+
extend Orb::Enum
|
1228
|
+
|
1229
|
+
ANNUAL: :annual
|
1230
|
+
SEMI_ANNUAL: :semi_annual
|
1231
|
+
MONTHLY: :monthly
|
1232
|
+
QUARTERLY: :quarterly
|
1233
|
+
ONE_TIME: :one_time
|
1234
|
+
CUSTOM: :custom
|
1235
|
+
|
1236
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence]
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
type billing_cycle_configuration =
|
1240
|
+
{
|
1241
|
+
duration: Integer,
|
1242
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit
|
1243
|
+
}
|
1244
|
+
|
1245
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
1246
|
+
attr_accessor duration: Integer
|
1247
|
+
|
1248
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit
|
1249
|
+
|
1250
|
+
def initialize: (
|
1251
|
+
duration: Integer,
|
1252
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit
|
1253
|
+
) -> void
|
1254
|
+
|
1255
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::billing_cycle_configuration
|
1256
|
+
|
1257
|
+
type duration_unit = :day | :month
|
1258
|
+
|
1259
|
+
module DurationUnit
|
1260
|
+
extend Orb::Enum
|
1261
|
+
|
1262
|
+
DAY: :day
|
1263
|
+
MONTH: :month
|
1264
|
+
|
1265
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit]
|
1266
|
+
end
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
type invoicing_cycle_configuration =
|
1270
|
+
{
|
1271
|
+
duration: Integer,
|
1272
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
1276
|
+
attr_accessor duration: Integer
|
1277
|
+
|
1278
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit
|
1279
|
+
|
1280
|
+
def initialize: (
|
1281
|
+
duration: Integer,
|
1282
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit
|
1283
|
+
) -> void
|
1284
|
+
|
1285
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::invoicing_cycle_configuration
|
1286
|
+
|
1287
|
+
type duration_unit = :day | :month
|
1288
|
+
|
1289
|
+
module DurationUnit
|
1290
|
+
extend Orb::Enum
|
1291
|
+
|
1292
|
+
DAY: :day
|
1293
|
+
MONTH: :month
|
1294
|
+
|
1295
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit]
|
1296
|
+
end
|
1297
|
+
end
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
type new_plan_bulk_price =
|
1301
|
+
{
|
1302
|
+
bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig,
|
1303
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence,
|
1304
|
+
item_id: String,
|
1305
|
+
model_type: :bulk,
|
1306
|
+
name: String,
|
1307
|
+
billable_metric_id: String?,
|
1308
|
+
billed_in_advance: bool?,
|
1309
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration?,
|
1310
|
+
conversion_rate: Float?,
|
1311
|
+
currency: String?,
|
1312
|
+
external_price_id: String?,
|
1313
|
+
fixed_price_quantity: Float?,
|
1314
|
+
invoice_grouping_key: String?,
|
1315
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration?,
|
1316
|
+
metadata: ::Hash[Symbol, String?]?
|
1317
|
+
}
|
1318
|
+
|
1319
|
+
class NewPlanBulkPrice < Orb::BaseModel
|
1320
|
+
attr_accessor bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig
|
1321
|
+
|
1322
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence
|
1323
|
+
|
1324
|
+
attr_accessor item_id: String
|
1325
|
+
|
1326
|
+
attr_accessor model_type: :bulk
|
1327
|
+
|
1328
|
+
attr_accessor name: String
|
1329
|
+
|
1330
|
+
attr_accessor billable_metric_id: String?
|
1331
|
+
|
1332
|
+
attr_accessor billed_in_advance: bool?
|
1333
|
+
|
1334
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration?
|
1335
|
+
|
1336
|
+
attr_accessor conversion_rate: Float?
|
1337
|
+
|
1338
|
+
attr_accessor currency: String?
|
1339
|
+
|
1340
|
+
attr_accessor external_price_id: String?
|
1341
|
+
|
1342
|
+
attr_accessor fixed_price_quantity: Float?
|
1343
|
+
|
1344
|
+
attr_accessor invoice_grouping_key: String?
|
1345
|
+
|
1346
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration?
|
1347
|
+
|
1348
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1349
|
+
|
1350
|
+
def initialize: (
|
1351
|
+
bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig,
|
1352
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence,
|
1353
|
+
item_id: String,
|
1354
|
+
name: String,
|
1355
|
+
?billable_metric_id: String?,
|
1356
|
+
?billed_in_advance: bool?,
|
1357
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::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::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration?,
|
1364
|
+
?metadata: ::Hash[Symbol, String?]?,
|
1365
|
+
?model_type: :bulk
|
1366
|
+
) -> void
|
1367
|
+
|
1368
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_price
|
1369
|
+
|
1370
|
+
type bulk_config =
|
1371
|
+
{
|
1372
|
+
tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]
|
1373
|
+
}
|
1374
|
+
|
1375
|
+
class BulkConfig < Orb::BaseModel
|
1376
|
+
attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]
|
1377
|
+
|
1378
|
+
def initialize: (
|
1379
|
+
tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]
|
1380
|
+
) -> void
|
1381
|
+
|
1382
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::bulk_config
|
1383
|
+
|
1384
|
+
type tier = { unit_amount: String, maximum_units: Float? }
|
1385
|
+
|
1386
|
+
class Tier < Orb::BaseModel
|
1387
|
+
attr_accessor unit_amount: String
|
1388
|
+
|
1389
|
+
attr_accessor maximum_units: Float?
|
1390
|
+
|
1391
|
+
def initialize: (
|
1392
|
+
unit_amount: String,
|
1393
|
+
?maximum_units: Float?
|
1394
|
+
) -> void
|
1395
|
+
|
1396
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::tier
|
1397
|
+
end
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
type cadence =
|
1401
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1402
|
+
|
1403
|
+
module Cadence
|
1404
|
+
extend Orb::Enum
|
1405
|
+
|
1406
|
+
ANNUAL: :annual
|
1407
|
+
SEMI_ANNUAL: :semi_annual
|
1408
|
+
MONTHLY: :monthly
|
1409
|
+
QUARTERLY: :quarterly
|
1410
|
+
ONE_TIME: :one_time
|
1411
|
+
CUSTOM: :custom
|
1412
|
+
|
1413
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence]
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
type billing_cycle_configuration =
|
1417
|
+
{
|
1418
|
+
duration: Integer,
|
1419
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit
|
1420
|
+
}
|
1421
|
+
|
1422
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
1423
|
+
attr_accessor duration: Integer
|
1424
|
+
|
1425
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit
|
1426
|
+
|
1427
|
+
def initialize: (
|
1428
|
+
duration: Integer,
|
1429
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit
|
1430
|
+
) -> void
|
1431
|
+
|
1432
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::billing_cycle_configuration
|
1433
|
+
|
1434
|
+
type duration_unit = :day | :month
|
1435
|
+
|
1436
|
+
module DurationUnit
|
1437
|
+
extend Orb::Enum
|
1438
|
+
|
1439
|
+
DAY: :day
|
1440
|
+
MONTH: :month
|
1441
|
+
|
1442
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit]
|
1443
|
+
end
|
1444
|
+
end
|
1445
|
+
|
1446
|
+
type invoicing_cycle_configuration =
|
1447
|
+
{
|
1448
|
+
duration: Integer,
|
1449
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit
|
1450
|
+
}
|
1451
|
+
|
1452
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
1453
|
+
attr_accessor duration: Integer
|
1454
|
+
|
1455
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit
|
1456
|
+
|
1457
|
+
def initialize: (
|
1458
|
+
duration: Integer,
|
1459
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit
|
1460
|
+
) -> void
|
1461
|
+
|
1462
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::invoicing_cycle_configuration
|
1463
|
+
|
1464
|
+
type duration_unit = :day | :month
|
1465
|
+
|
1466
|
+
module DurationUnit
|
1467
|
+
extend Orb::Enum
|
1468
|
+
|
1469
|
+
DAY: :day
|
1470
|
+
MONTH: :month
|
1471
|
+
|
1472
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit]
|
1473
|
+
end
|
1474
|
+
end
|
1475
|
+
end
|
1476
|
+
|
1477
|
+
type new_plan_threshold_total_amount_price =
|
1478
|
+
{
|
1479
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence,
|
1480
|
+
item_id: String,
|
1481
|
+
model_type: :threshold_total_amount,
|
1482
|
+
name: String,
|
1483
|
+
threshold_total_amount_config: ::Hash[Symbol, top],
|
1484
|
+
billable_metric_id: String?,
|
1485
|
+
billed_in_advance: bool?,
|
1486
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration?,
|
1487
|
+
conversion_rate: Float?,
|
1488
|
+
currency: String?,
|
1489
|
+
external_price_id: String?,
|
1490
|
+
fixed_price_quantity: Float?,
|
1491
|
+
invoice_grouping_key: String?,
|
1492
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?,
|
1493
|
+
metadata: ::Hash[Symbol, String?]?
|
1494
|
+
}
|
1495
|
+
|
1496
|
+
class NewPlanThresholdTotalAmountPrice < Orb::BaseModel
|
1497
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence
|
1498
|
+
|
1499
|
+
attr_accessor item_id: String
|
1500
|
+
|
1501
|
+
attr_accessor model_type: :threshold_total_amount
|
1502
|
+
|
1503
|
+
attr_accessor name: String
|
1504
|
+
|
1505
|
+
attr_accessor threshold_total_amount_config: ::Hash[Symbol, top]
|
1506
|
+
|
1507
|
+
attr_accessor billable_metric_id: String?
|
1508
|
+
|
1509
|
+
attr_accessor billed_in_advance: bool?
|
1510
|
+
|
1511
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration?
|
1512
|
+
|
1513
|
+
attr_accessor conversion_rate: Float?
|
1514
|
+
|
1515
|
+
attr_accessor currency: String?
|
1516
|
+
|
1517
|
+
attr_accessor external_price_id: String?
|
1518
|
+
|
1519
|
+
attr_accessor fixed_price_quantity: Float?
|
1520
|
+
|
1521
|
+
attr_accessor invoice_grouping_key: String?
|
1522
|
+
|
1523
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?
|
1524
|
+
|
1525
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1526
|
+
|
1527
|
+
def initialize: (
|
1528
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence,
|
1529
|
+
item_id: String,
|
1530
|
+
name: String,
|
1531
|
+
threshold_total_amount_config: ::Hash[Symbol, top],
|
1532
|
+
?billable_metric_id: String?,
|
1533
|
+
?billed_in_advance: bool?,
|
1534
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration?,
|
1535
|
+
?conversion_rate: Float?,
|
1536
|
+
?currency: String?,
|
1537
|
+
?external_price_id: String?,
|
1538
|
+
?fixed_price_quantity: Float?,
|
1539
|
+
?invoice_grouping_key: String?,
|
1540
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?,
|
1541
|
+
?metadata: ::Hash[Symbol, String?]?,
|
1542
|
+
?model_type: :threshold_total_amount
|
1543
|
+
) -> void
|
1544
|
+
|
1545
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_threshold_total_amount_price
|
1546
|
+
|
1547
|
+
type cadence =
|
1548
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1549
|
+
|
1550
|
+
module Cadence
|
1551
|
+
extend Orb::Enum
|
1552
|
+
|
1553
|
+
ANNUAL: :annual
|
1554
|
+
SEMI_ANNUAL: :semi_annual
|
1555
|
+
MONTHLY: :monthly
|
1556
|
+
QUARTERLY: :quarterly
|
1557
|
+
ONE_TIME: :one_time
|
1558
|
+
CUSTOM: :custom
|
1559
|
+
|
1560
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence]
|
1561
|
+
end
|
1562
|
+
|
1563
|
+
type billing_cycle_configuration =
|
1564
|
+
{
|
1565
|
+
duration: Integer,
|
1566
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit
|
1567
|
+
}
|
1568
|
+
|
1569
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
1570
|
+
attr_accessor duration: Integer
|
1571
|
+
|
1572
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit
|
1573
|
+
|
1574
|
+
def initialize: (
|
1575
|
+
duration: Integer,
|
1576
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit
|
1577
|
+
) -> void
|
1578
|
+
|
1579
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::billing_cycle_configuration
|
1580
|
+
|
1581
|
+
type duration_unit = :day | :month
|
1582
|
+
|
1583
|
+
module DurationUnit
|
1584
|
+
extend Orb::Enum
|
1585
|
+
|
1586
|
+
DAY: :day
|
1587
|
+
MONTH: :month
|
1588
|
+
|
1589
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit]
|
1590
|
+
end
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
type invoicing_cycle_configuration =
|
1594
|
+
{
|
1595
|
+
duration: Integer,
|
1596
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit
|
1597
|
+
}
|
1598
|
+
|
1599
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
1600
|
+
attr_accessor duration: Integer
|
1601
|
+
|
1602
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit
|
1603
|
+
|
1604
|
+
def initialize: (
|
1605
|
+
duration: Integer,
|
1606
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit
|
1607
|
+
) -> void
|
1608
|
+
|
1609
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::invoicing_cycle_configuration
|
1610
|
+
|
1611
|
+
type duration_unit = :day | :month
|
1612
|
+
|
1613
|
+
module DurationUnit
|
1614
|
+
extend Orb::Enum
|
1615
|
+
|
1616
|
+
DAY: :day
|
1617
|
+
MONTH: :month
|
1618
|
+
|
1619
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit]
|
1620
|
+
end
|
1621
|
+
end
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
type new_plan_tiered_package_price =
|
1625
|
+
{
|
1626
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence,
|
1627
|
+
item_id: String,
|
1628
|
+
model_type: :tiered_package,
|
1629
|
+
name: String,
|
1630
|
+
tiered_package_config: ::Hash[Symbol, top],
|
1631
|
+
billable_metric_id: String?,
|
1632
|
+
billed_in_advance: bool?,
|
1633
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration?,
|
1634
|
+
conversion_rate: Float?,
|
1635
|
+
currency: String?,
|
1636
|
+
external_price_id: String?,
|
1637
|
+
fixed_price_quantity: Float?,
|
1638
|
+
invoice_grouping_key: String?,
|
1639
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?,
|
1640
|
+
metadata: ::Hash[Symbol, String?]?
|
1641
|
+
}
|
1642
|
+
|
1643
|
+
class NewPlanTieredPackagePrice < Orb::BaseModel
|
1644
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence
|
1645
|
+
|
1646
|
+
attr_accessor item_id: String
|
1647
|
+
|
1648
|
+
attr_accessor model_type: :tiered_package
|
1649
|
+
|
1650
|
+
attr_accessor name: String
|
1651
|
+
|
1652
|
+
attr_accessor tiered_package_config: ::Hash[Symbol, top]
|
1653
|
+
|
1654
|
+
attr_accessor billable_metric_id: String?
|
1655
|
+
|
1656
|
+
attr_accessor billed_in_advance: bool?
|
1657
|
+
|
1658
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration?
|
1659
|
+
|
1660
|
+
attr_accessor conversion_rate: Float?
|
1661
|
+
|
1662
|
+
attr_accessor currency: String?
|
1663
|
+
|
1664
|
+
attr_accessor external_price_id: String?
|
1665
|
+
|
1666
|
+
attr_accessor fixed_price_quantity: Float?
|
1667
|
+
|
1668
|
+
attr_accessor invoice_grouping_key: String?
|
1669
|
+
|
1670
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?
|
1671
|
+
|
1672
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1673
|
+
|
1674
|
+
def initialize: (
|
1675
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence,
|
1676
|
+
item_id: String,
|
1677
|
+
name: String,
|
1678
|
+
tiered_package_config: ::Hash[Symbol, top],
|
1679
|
+
?billable_metric_id: String?,
|
1680
|
+
?billed_in_advance: bool?,
|
1681
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration?,
|
1682
|
+
?conversion_rate: Float?,
|
1683
|
+
?currency: String?,
|
1684
|
+
?external_price_id: String?,
|
1685
|
+
?fixed_price_quantity: Float?,
|
1686
|
+
?invoice_grouping_key: String?,
|
1687
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?,
|
1688
|
+
?metadata: ::Hash[Symbol, String?]?,
|
1689
|
+
?model_type: :tiered_package
|
1690
|
+
) -> void
|
1691
|
+
|
1692
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_package_price
|
1693
|
+
|
1694
|
+
type cadence =
|
1695
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1696
|
+
|
1697
|
+
module Cadence
|
1698
|
+
extend Orb::Enum
|
1699
|
+
|
1700
|
+
ANNUAL: :annual
|
1701
|
+
SEMI_ANNUAL: :semi_annual
|
1702
|
+
MONTHLY: :monthly
|
1703
|
+
QUARTERLY: :quarterly
|
1704
|
+
ONE_TIME: :one_time
|
1705
|
+
CUSTOM: :custom
|
1706
|
+
|
1707
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence]
|
1708
|
+
end
|
1709
|
+
|
1710
|
+
type billing_cycle_configuration =
|
1711
|
+
{
|
1712
|
+
duration: Integer,
|
1713
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
1714
|
+
}
|
1715
|
+
|
1716
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
1717
|
+
attr_accessor duration: Integer
|
1718
|
+
|
1719
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
1720
|
+
|
1721
|
+
def initialize: (
|
1722
|
+
duration: Integer,
|
1723
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
1724
|
+
) -> void
|
1725
|
+
|
1726
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::billing_cycle_configuration
|
1727
|
+
|
1728
|
+
type duration_unit = :day | :month
|
1729
|
+
|
1730
|
+
module DurationUnit
|
1731
|
+
extend Orb::Enum
|
1732
|
+
|
1733
|
+
DAY: :day
|
1734
|
+
MONTH: :month
|
1735
|
+
|
1736
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit]
|
1737
|
+
end
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
type invoicing_cycle_configuration =
|
1741
|
+
{
|
1742
|
+
duration: Integer,
|
1743
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
1744
|
+
}
|
1745
|
+
|
1746
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
1747
|
+
attr_accessor duration: Integer
|
1748
|
+
|
1749
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
1750
|
+
|
1751
|
+
def initialize: (
|
1752
|
+
duration: Integer,
|
1753
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
1754
|
+
) -> void
|
1755
|
+
|
1756
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::invoicing_cycle_configuration
|
1757
|
+
|
1758
|
+
type duration_unit = :day | :month
|
1759
|
+
|
1760
|
+
module DurationUnit
|
1761
|
+
extend Orb::Enum
|
1762
|
+
|
1763
|
+
DAY: :day
|
1764
|
+
MONTH: :month
|
1765
|
+
|
1766
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit]
|
1767
|
+
end
|
1768
|
+
end
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
type new_plan_tiered_with_minimum_price =
|
1772
|
+
{
|
1773
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence,
|
1774
|
+
item_id: String,
|
1775
|
+
model_type: :tiered_with_minimum,
|
1776
|
+
name: String,
|
1777
|
+
tiered_with_minimum_config: ::Hash[Symbol, top],
|
1778
|
+
billable_metric_id: String?,
|
1779
|
+
billed_in_advance: bool?,
|
1780
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration?,
|
1781
|
+
conversion_rate: Float?,
|
1782
|
+
currency: String?,
|
1783
|
+
external_price_id: String?,
|
1784
|
+
fixed_price_quantity: Float?,
|
1785
|
+
invoice_grouping_key: String?,
|
1786
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?,
|
1787
|
+
metadata: ::Hash[Symbol, String?]?
|
1788
|
+
}
|
1789
|
+
|
1790
|
+
class NewPlanTieredWithMinimumPrice < Orb::BaseModel
|
1791
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence
|
1792
|
+
|
1793
|
+
attr_accessor item_id: String
|
1794
|
+
|
1795
|
+
attr_accessor model_type: :tiered_with_minimum
|
1796
|
+
|
1797
|
+
attr_accessor name: String
|
1798
|
+
|
1799
|
+
attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top]
|
1800
|
+
|
1801
|
+
attr_accessor billable_metric_id: String?
|
1802
|
+
|
1803
|
+
attr_accessor billed_in_advance: bool?
|
1804
|
+
|
1805
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration?
|
1806
|
+
|
1807
|
+
attr_accessor conversion_rate: Float?
|
1808
|
+
|
1809
|
+
attr_accessor currency: String?
|
1810
|
+
|
1811
|
+
attr_accessor external_price_id: String?
|
1812
|
+
|
1813
|
+
attr_accessor fixed_price_quantity: Float?
|
1814
|
+
|
1815
|
+
attr_accessor invoice_grouping_key: String?
|
1816
|
+
|
1817
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?
|
1818
|
+
|
1819
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1820
|
+
|
1821
|
+
def initialize: (
|
1822
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence,
|
1823
|
+
item_id: String,
|
1824
|
+
name: String,
|
1825
|
+
tiered_with_minimum_config: ::Hash[Symbol, top],
|
1826
|
+
?billable_metric_id: String?,
|
1827
|
+
?billed_in_advance: bool?,
|
1828
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration?,
|
1829
|
+
?conversion_rate: Float?,
|
1830
|
+
?currency: String?,
|
1831
|
+
?external_price_id: String?,
|
1832
|
+
?fixed_price_quantity: Float?,
|
1833
|
+
?invoice_grouping_key: String?,
|
1834
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?,
|
1835
|
+
?metadata: ::Hash[Symbol, String?]?,
|
1836
|
+
?model_type: :tiered_with_minimum
|
1837
|
+
) -> void
|
1838
|
+
|
1839
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_with_minimum_price
|
1840
|
+
|
1841
|
+
type cadence =
|
1842
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1843
|
+
|
1844
|
+
module Cadence
|
1845
|
+
extend Orb::Enum
|
1846
|
+
|
1847
|
+
ANNUAL: :annual
|
1848
|
+
SEMI_ANNUAL: :semi_annual
|
1849
|
+
MONTHLY: :monthly
|
1850
|
+
QUARTERLY: :quarterly
|
1851
|
+
ONE_TIME: :one_time
|
1852
|
+
CUSTOM: :custom
|
1853
|
+
|
1854
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence]
|
1855
|
+
end
|
1856
|
+
|
1857
|
+
type billing_cycle_configuration =
|
1858
|
+
{
|
1859
|
+
duration: Integer,
|
1860
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit
|
1861
|
+
}
|
1862
|
+
|
1863
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
1864
|
+
attr_accessor duration: Integer
|
1865
|
+
|
1866
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit
|
1867
|
+
|
1868
|
+
def initialize: (
|
1869
|
+
duration: Integer,
|
1870
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit
|
1871
|
+
) -> void
|
1872
|
+
|
1873
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::billing_cycle_configuration
|
1874
|
+
|
1875
|
+
type duration_unit = :day | :month
|
1876
|
+
|
1877
|
+
module DurationUnit
|
1878
|
+
extend Orb::Enum
|
1879
|
+
|
1880
|
+
DAY: :day
|
1881
|
+
MONTH: :month
|
1882
|
+
|
1883
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit]
|
1884
|
+
end
|
1885
|
+
end
|
1886
|
+
|
1887
|
+
type invoicing_cycle_configuration =
|
1888
|
+
{
|
1889
|
+
duration: Integer,
|
1890
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
1891
|
+
}
|
1892
|
+
|
1893
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
1894
|
+
attr_accessor duration: Integer
|
1895
|
+
|
1896
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
1897
|
+
|
1898
|
+
def initialize: (
|
1899
|
+
duration: Integer,
|
1900
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
1901
|
+
) -> void
|
1902
|
+
|
1903
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::invoicing_cycle_configuration
|
1904
|
+
|
1905
|
+
type duration_unit = :day | :month
|
1906
|
+
|
1907
|
+
module DurationUnit
|
1908
|
+
extend Orb::Enum
|
1909
|
+
|
1910
|
+
DAY: :day
|
1911
|
+
MONTH: :month
|
1912
|
+
|
1913
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit]
|
1914
|
+
end
|
1915
|
+
end
|
1916
|
+
end
|
1917
|
+
|
1918
|
+
type new_plan_unit_with_percent_price =
|
1919
|
+
{
|
1920
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence,
|
1921
|
+
item_id: String,
|
1922
|
+
model_type: :unit_with_percent,
|
1923
|
+
name: String,
|
1924
|
+
unit_with_percent_config: ::Hash[Symbol, top],
|
1925
|
+
billable_metric_id: String?,
|
1926
|
+
billed_in_advance: bool?,
|
1927
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration?,
|
1928
|
+
conversion_rate: Float?,
|
1929
|
+
currency: String?,
|
1930
|
+
external_price_id: String?,
|
1931
|
+
fixed_price_quantity: Float?,
|
1932
|
+
invoice_grouping_key: String?,
|
1933
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?,
|
1934
|
+
metadata: ::Hash[Symbol, String?]?
|
1935
|
+
}
|
1936
|
+
|
1937
|
+
class NewPlanUnitWithPercentPrice < Orb::BaseModel
|
1938
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence
|
1939
|
+
|
1940
|
+
attr_accessor item_id: String
|
1941
|
+
|
1942
|
+
attr_accessor model_type: :unit_with_percent
|
1943
|
+
|
1944
|
+
attr_accessor name: String
|
1945
|
+
|
1946
|
+
attr_accessor unit_with_percent_config: ::Hash[Symbol, top]
|
1947
|
+
|
1948
|
+
attr_accessor billable_metric_id: String?
|
1949
|
+
|
1950
|
+
attr_accessor billed_in_advance: bool?
|
1951
|
+
|
1952
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration?
|
1953
|
+
|
1954
|
+
attr_accessor conversion_rate: Float?
|
1955
|
+
|
1956
|
+
attr_accessor currency: String?
|
1957
|
+
|
1958
|
+
attr_accessor external_price_id: String?
|
1959
|
+
|
1960
|
+
attr_accessor fixed_price_quantity: Float?
|
1961
|
+
|
1962
|
+
attr_accessor invoice_grouping_key: String?
|
1963
|
+
|
1964
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?
|
1965
|
+
|
1966
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
1967
|
+
|
1968
|
+
def initialize: (
|
1969
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence,
|
1970
|
+
item_id: String,
|
1971
|
+
name: String,
|
1972
|
+
unit_with_percent_config: ::Hash[Symbol, top],
|
1973
|
+
?billable_metric_id: String?,
|
1974
|
+
?billed_in_advance: bool?,
|
1975
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration?,
|
1976
|
+
?conversion_rate: Float?,
|
1977
|
+
?currency: String?,
|
1978
|
+
?external_price_id: String?,
|
1979
|
+
?fixed_price_quantity: Float?,
|
1980
|
+
?invoice_grouping_key: String?,
|
1981
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?,
|
1982
|
+
?metadata: ::Hash[Symbol, String?]?,
|
1983
|
+
?model_type: :unit_with_percent
|
1984
|
+
) -> void
|
1985
|
+
|
1986
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_percent_price
|
1987
|
+
|
1988
|
+
type cadence =
|
1989
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
1990
|
+
|
1991
|
+
module Cadence
|
1992
|
+
extend Orb::Enum
|
1993
|
+
|
1994
|
+
ANNUAL: :annual
|
1995
|
+
SEMI_ANNUAL: :semi_annual
|
1996
|
+
MONTHLY: :monthly
|
1997
|
+
QUARTERLY: :quarterly
|
1998
|
+
ONE_TIME: :one_time
|
1999
|
+
CUSTOM: :custom
|
2000
|
+
|
2001
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence]
|
2002
|
+
end
|
2003
|
+
|
2004
|
+
type billing_cycle_configuration =
|
2005
|
+
{
|
2006
|
+
duration: Integer,
|
2007
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit
|
2008
|
+
}
|
2009
|
+
|
2010
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
2011
|
+
attr_accessor duration: Integer
|
2012
|
+
|
2013
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit
|
2014
|
+
|
2015
|
+
def initialize: (
|
2016
|
+
duration: Integer,
|
2017
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit
|
2018
|
+
) -> void
|
2019
|
+
|
2020
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::billing_cycle_configuration
|
2021
|
+
|
2022
|
+
type duration_unit = :day | :month
|
2023
|
+
|
2024
|
+
module DurationUnit
|
2025
|
+
extend Orb::Enum
|
2026
|
+
|
2027
|
+
DAY: :day
|
2028
|
+
MONTH: :month
|
2029
|
+
|
2030
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit]
|
2031
|
+
end
|
2032
|
+
end
|
2033
|
+
|
2034
|
+
type invoicing_cycle_configuration =
|
2035
|
+
{
|
2036
|
+
duration: Integer,
|
2037
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit
|
2038
|
+
}
|
2039
|
+
|
2040
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
2041
|
+
attr_accessor duration: Integer
|
2042
|
+
|
2043
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit
|
2044
|
+
|
2045
|
+
def initialize: (
|
2046
|
+
duration: Integer,
|
2047
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit
|
2048
|
+
) -> void
|
2049
|
+
|
2050
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::invoicing_cycle_configuration
|
2051
|
+
|
2052
|
+
type duration_unit = :day | :month
|
2053
|
+
|
2054
|
+
module DurationUnit
|
2055
|
+
extend Orb::Enum
|
2056
|
+
|
2057
|
+
DAY: :day
|
2058
|
+
MONTH: :month
|
2059
|
+
|
2060
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit]
|
2061
|
+
end
|
2062
|
+
end
|
2063
|
+
end
|
2064
|
+
|
2065
|
+
type new_plan_package_with_allocation_price =
|
2066
|
+
{
|
2067
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence,
|
2068
|
+
item_id: String,
|
2069
|
+
model_type: :package_with_allocation,
|
2070
|
+
name: String,
|
2071
|
+
package_with_allocation_config: ::Hash[Symbol, top],
|
2072
|
+
billable_metric_id: String?,
|
2073
|
+
billed_in_advance: bool?,
|
2074
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration?,
|
2075
|
+
conversion_rate: Float?,
|
2076
|
+
currency: String?,
|
2077
|
+
external_price_id: String?,
|
2078
|
+
fixed_price_quantity: Float?,
|
2079
|
+
invoice_grouping_key: String?,
|
2080
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?,
|
2081
|
+
metadata: ::Hash[Symbol, String?]?
|
2082
|
+
}
|
2083
|
+
|
2084
|
+
class NewPlanPackageWithAllocationPrice < Orb::BaseModel
|
2085
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence
|
2086
|
+
|
2087
|
+
attr_accessor item_id: String
|
2088
|
+
|
2089
|
+
attr_accessor model_type: :package_with_allocation
|
2090
|
+
|
2091
|
+
attr_accessor name: String
|
2092
|
+
|
2093
|
+
attr_accessor package_with_allocation_config: ::Hash[Symbol, top]
|
2094
|
+
|
2095
|
+
attr_accessor billable_metric_id: String?
|
2096
|
+
|
2097
|
+
attr_accessor billed_in_advance: bool?
|
2098
|
+
|
2099
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration?
|
2100
|
+
|
2101
|
+
attr_accessor conversion_rate: Float?
|
2102
|
+
|
2103
|
+
attr_accessor currency: String?
|
2104
|
+
|
2105
|
+
attr_accessor external_price_id: String?
|
2106
|
+
|
2107
|
+
attr_accessor fixed_price_quantity: Float?
|
2108
|
+
|
2109
|
+
attr_accessor invoice_grouping_key: String?
|
2110
|
+
|
2111
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?
|
2112
|
+
|
2113
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2114
|
+
|
2115
|
+
def initialize: (
|
2116
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence,
|
2117
|
+
item_id: String,
|
2118
|
+
name: String,
|
2119
|
+
package_with_allocation_config: ::Hash[Symbol, top],
|
2120
|
+
?billable_metric_id: String?,
|
2121
|
+
?billed_in_advance: bool?,
|
2122
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration?,
|
2123
|
+
?conversion_rate: Float?,
|
2124
|
+
?currency: String?,
|
2125
|
+
?external_price_id: String?,
|
2126
|
+
?fixed_price_quantity: Float?,
|
2127
|
+
?invoice_grouping_key: String?,
|
2128
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?,
|
2129
|
+
?metadata: ::Hash[Symbol, String?]?,
|
2130
|
+
?model_type: :package_with_allocation
|
2131
|
+
) -> void
|
2132
|
+
|
2133
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_package_with_allocation_price
|
2134
|
+
|
2135
|
+
type cadence =
|
2136
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2137
|
+
|
2138
|
+
module Cadence
|
2139
|
+
extend Orb::Enum
|
2140
|
+
|
2141
|
+
ANNUAL: :annual
|
2142
|
+
SEMI_ANNUAL: :semi_annual
|
2143
|
+
MONTHLY: :monthly
|
2144
|
+
QUARTERLY: :quarterly
|
2145
|
+
ONE_TIME: :one_time
|
2146
|
+
CUSTOM: :custom
|
2147
|
+
|
2148
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence]
|
2149
|
+
end
|
2150
|
+
|
2151
|
+
type billing_cycle_configuration =
|
2152
|
+
{
|
2153
|
+
duration: Integer,
|
2154
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit
|
2155
|
+
}
|
2156
|
+
|
2157
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
2158
|
+
attr_accessor duration: Integer
|
2159
|
+
|
2160
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit
|
2161
|
+
|
2162
|
+
def initialize: (
|
2163
|
+
duration: Integer,
|
2164
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit
|
2165
|
+
) -> void
|
2166
|
+
|
2167
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::billing_cycle_configuration
|
2168
|
+
|
2169
|
+
type duration_unit = :day | :month
|
2170
|
+
|
2171
|
+
module DurationUnit
|
2172
|
+
extend Orb::Enum
|
2173
|
+
|
2174
|
+
DAY: :day
|
2175
|
+
MONTH: :month
|
2176
|
+
|
2177
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit]
|
2178
|
+
end
|
2179
|
+
end
|
2180
|
+
|
2181
|
+
type invoicing_cycle_configuration =
|
2182
|
+
{
|
2183
|
+
duration: Integer,
|
2184
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit
|
2185
|
+
}
|
2186
|
+
|
2187
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
2188
|
+
attr_accessor duration: Integer
|
2189
|
+
|
2190
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit
|
2191
|
+
|
2192
|
+
def initialize: (
|
2193
|
+
duration: Integer,
|
2194
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit
|
2195
|
+
) -> void
|
2196
|
+
|
2197
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::invoicing_cycle_configuration
|
2198
|
+
|
2199
|
+
type duration_unit = :day | :month
|
2200
|
+
|
2201
|
+
module DurationUnit
|
2202
|
+
extend Orb::Enum
|
2203
|
+
|
2204
|
+
DAY: :day
|
2205
|
+
MONTH: :month
|
2206
|
+
|
2207
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit]
|
2208
|
+
end
|
2209
|
+
end
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
type new_plan_tier_with_proration_price =
|
2213
|
+
{
|
2214
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence,
|
2215
|
+
item_id: String,
|
2216
|
+
model_type: :tiered_with_proration,
|
2217
|
+
name: String,
|
2218
|
+
tiered_with_proration_config: ::Hash[Symbol, top],
|
2219
|
+
billable_metric_id: String?,
|
2220
|
+
billed_in_advance: bool?,
|
2221
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration?,
|
2222
|
+
conversion_rate: Float?,
|
2223
|
+
currency: String?,
|
2224
|
+
external_price_id: String?,
|
2225
|
+
fixed_price_quantity: Float?,
|
2226
|
+
invoice_grouping_key: String?,
|
2227
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?,
|
2228
|
+
metadata: ::Hash[Symbol, String?]?
|
2229
|
+
}
|
2230
|
+
|
2231
|
+
class NewPlanTierWithProrationPrice < Orb::BaseModel
|
2232
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence
|
2233
|
+
|
2234
|
+
attr_accessor item_id: String
|
2235
|
+
|
2236
|
+
attr_accessor model_type: :tiered_with_proration
|
2237
|
+
|
2238
|
+
attr_accessor name: String
|
2239
|
+
|
2240
|
+
attr_accessor tiered_with_proration_config: ::Hash[Symbol, top]
|
2241
|
+
|
2242
|
+
attr_accessor billable_metric_id: String?
|
2243
|
+
|
2244
|
+
attr_accessor billed_in_advance: bool?
|
2245
|
+
|
2246
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration?
|
2247
|
+
|
2248
|
+
attr_accessor conversion_rate: Float?
|
2249
|
+
|
2250
|
+
attr_accessor currency: String?
|
2251
|
+
|
2252
|
+
attr_accessor external_price_id: String?
|
2253
|
+
|
2254
|
+
attr_accessor fixed_price_quantity: Float?
|
2255
|
+
|
2256
|
+
attr_accessor invoice_grouping_key: String?
|
2257
|
+
|
2258
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?
|
2259
|
+
|
2260
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2261
|
+
|
2262
|
+
def initialize: (
|
2263
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence,
|
2264
|
+
item_id: String,
|
2265
|
+
name: String,
|
2266
|
+
tiered_with_proration_config: ::Hash[Symbol, top],
|
2267
|
+
?billable_metric_id: String?,
|
2268
|
+
?billed_in_advance: bool?,
|
2269
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration?,
|
2270
|
+
?conversion_rate: Float?,
|
2271
|
+
?currency: String?,
|
2272
|
+
?external_price_id: String?,
|
2273
|
+
?fixed_price_quantity: Float?,
|
2274
|
+
?invoice_grouping_key: String?,
|
2275
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?,
|
2276
|
+
?metadata: ::Hash[Symbol, String?]?,
|
2277
|
+
?model_type: :tiered_with_proration
|
2278
|
+
) -> void
|
2279
|
+
|
2280
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tier_with_proration_price
|
2281
|
+
|
2282
|
+
type cadence =
|
2283
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2284
|
+
|
2285
|
+
module Cadence
|
2286
|
+
extend Orb::Enum
|
2287
|
+
|
2288
|
+
ANNUAL: :annual
|
2289
|
+
SEMI_ANNUAL: :semi_annual
|
2290
|
+
MONTHLY: :monthly
|
2291
|
+
QUARTERLY: :quarterly
|
2292
|
+
ONE_TIME: :one_time
|
2293
|
+
CUSTOM: :custom
|
2294
|
+
|
2295
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence]
|
2296
|
+
end
|
2297
|
+
|
2298
|
+
type billing_cycle_configuration =
|
2299
|
+
{
|
2300
|
+
duration: Integer,
|
2301
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit
|
2302
|
+
}
|
2303
|
+
|
2304
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
2305
|
+
attr_accessor duration: Integer
|
2306
|
+
|
2307
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit
|
2308
|
+
|
2309
|
+
def initialize: (
|
2310
|
+
duration: Integer,
|
2311
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit
|
2312
|
+
) -> void
|
2313
|
+
|
2314
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::billing_cycle_configuration
|
2315
|
+
|
2316
|
+
type duration_unit = :day | :month
|
2317
|
+
|
2318
|
+
module DurationUnit
|
2319
|
+
extend Orb::Enum
|
2320
|
+
|
2321
|
+
DAY: :day
|
2322
|
+
MONTH: :month
|
2323
|
+
|
2324
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit]
|
2325
|
+
end
|
2326
|
+
end
|
2327
|
+
|
2328
|
+
type invoicing_cycle_configuration =
|
2329
|
+
{
|
2330
|
+
duration: Integer,
|
2331
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
2332
|
+
}
|
2333
|
+
|
2334
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
2335
|
+
attr_accessor duration: Integer
|
2336
|
+
|
2337
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
2338
|
+
|
2339
|
+
def initialize: (
|
2340
|
+
duration: Integer,
|
2341
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
2342
|
+
) -> void
|
2343
|
+
|
2344
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::invoicing_cycle_configuration
|
2345
|
+
|
2346
|
+
type duration_unit = :day | :month
|
2347
|
+
|
2348
|
+
module DurationUnit
|
2349
|
+
extend Orb::Enum
|
2350
|
+
|
2351
|
+
DAY: :day
|
2352
|
+
MONTH: :month
|
2353
|
+
|
2354
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit]
|
2355
|
+
end
|
2356
|
+
end
|
2357
|
+
end
|
2358
|
+
|
2359
|
+
type new_plan_unit_with_proration_price =
|
2360
|
+
{
|
2361
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence,
|
2362
|
+
item_id: String,
|
2363
|
+
model_type: :unit_with_proration,
|
2364
|
+
name: String,
|
2365
|
+
unit_with_proration_config: ::Hash[Symbol, top],
|
2366
|
+
billable_metric_id: String?,
|
2367
|
+
billed_in_advance: bool?,
|
2368
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration?,
|
2369
|
+
conversion_rate: Float?,
|
2370
|
+
currency: String?,
|
2371
|
+
external_price_id: String?,
|
2372
|
+
fixed_price_quantity: Float?,
|
2373
|
+
invoice_grouping_key: String?,
|
2374
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?,
|
2375
|
+
metadata: ::Hash[Symbol, String?]?
|
2376
|
+
}
|
2377
|
+
|
2378
|
+
class NewPlanUnitWithProrationPrice < Orb::BaseModel
|
2379
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence
|
2380
|
+
|
2381
|
+
attr_accessor item_id: String
|
2382
|
+
|
2383
|
+
attr_accessor model_type: :unit_with_proration
|
2384
|
+
|
2385
|
+
attr_accessor name: String
|
2386
|
+
|
2387
|
+
attr_accessor unit_with_proration_config: ::Hash[Symbol, top]
|
2388
|
+
|
2389
|
+
attr_accessor billable_metric_id: String?
|
2390
|
+
|
2391
|
+
attr_accessor billed_in_advance: bool?
|
2392
|
+
|
2393
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration?
|
2394
|
+
|
2395
|
+
attr_accessor conversion_rate: Float?
|
2396
|
+
|
2397
|
+
attr_accessor currency: String?
|
2398
|
+
|
2399
|
+
attr_accessor external_price_id: String?
|
2400
|
+
|
2401
|
+
attr_accessor fixed_price_quantity: Float?
|
2402
|
+
|
2403
|
+
attr_accessor invoice_grouping_key: String?
|
2404
|
+
|
2405
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?
|
2406
|
+
|
2407
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2408
|
+
|
2409
|
+
def initialize: (
|
2410
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence,
|
2411
|
+
item_id: String,
|
2412
|
+
name: String,
|
2413
|
+
unit_with_proration_config: ::Hash[Symbol, top],
|
2414
|
+
?billable_metric_id: String?,
|
2415
|
+
?billed_in_advance: bool?,
|
2416
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration?,
|
2417
|
+
?conversion_rate: Float?,
|
2418
|
+
?currency: String?,
|
2419
|
+
?external_price_id: String?,
|
2420
|
+
?fixed_price_quantity: Float?,
|
2421
|
+
?invoice_grouping_key: String?,
|
2422
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?,
|
2423
|
+
?metadata: ::Hash[Symbol, String?]?,
|
2424
|
+
?model_type: :unit_with_proration
|
2425
|
+
) -> void
|
2426
|
+
|
2427
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_proration_price
|
2428
|
+
|
2429
|
+
type cadence =
|
2430
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2431
|
+
|
2432
|
+
module Cadence
|
2433
|
+
extend Orb::Enum
|
2434
|
+
|
2435
|
+
ANNUAL: :annual
|
2436
|
+
SEMI_ANNUAL: :semi_annual
|
2437
|
+
MONTHLY: :monthly
|
2438
|
+
QUARTERLY: :quarterly
|
2439
|
+
ONE_TIME: :one_time
|
2440
|
+
CUSTOM: :custom
|
2441
|
+
|
2442
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence]
|
2443
|
+
end
|
2444
|
+
|
2445
|
+
type billing_cycle_configuration =
|
2446
|
+
{
|
2447
|
+
duration: Integer,
|
2448
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit
|
2449
|
+
}
|
2450
|
+
|
2451
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
2452
|
+
attr_accessor duration: Integer
|
2453
|
+
|
2454
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit
|
2455
|
+
|
2456
|
+
def initialize: (
|
2457
|
+
duration: Integer,
|
2458
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit
|
2459
|
+
) -> void
|
2460
|
+
|
2461
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::billing_cycle_configuration
|
2462
|
+
|
2463
|
+
type duration_unit = :day | :month
|
2464
|
+
|
2465
|
+
module DurationUnit
|
2466
|
+
extend Orb::Enum
|
2467
|
+
|
2468
|
+
DAY: :day
|
2469
|
+
MONTH: :month
|
2470
|
+
|
2471
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit]
|
2472
|
+
end
|
2473
|
+
end
|
2474
|
+
|
2475
|
+
type invoicing_cycle_configuration =
|
2476
|
+
{
|
2477
|
+
duration: Integer,
|
2478
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
2479
|
+
}
|
2480
|
+
|
2481
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
2482
|
+
attr_accessor duration: Integer
|
2483
|
+
|
2484
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
2485
|
+
|
2486
|
+
def initialize: (
|
2487
|
+
duration: Integer,
|
2488
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
2489
|
+
) -> void
|
2490
|
+
|
2491
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::invoicing_cycle_configuration
|
2492
|
+
|
2493
|
+
type duration_unit = :day | :month
|
2494
|
+
|
2495
|
+
module DurationUnit
|
2496
|
+
extend Orb::Enum
|
2497
|
+
|
2498
|
+
DAY: :day
|
2499
|
+
MONTH: :month
|
2500
|
+
|
2501
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit]
|
2502
|
+
end
|
2503
|
+
end
|
2504
|
+
end
|
2505
|
+
|
2506
|
+
type new_plan_grouped_allocation_price =
|
2507
|
+
{
|
2508
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence,
|
2509
|
+
grouped_allocation_config: ::Hash[Symbol, top],
|
2510
|
+
item_id: String,
|
2511
|
+
model_type: :grouped_allocation,
|
2512
|
+
name: String,
|
2513
|
+
billable_metric_id: String?,
|
2514
|
+
billed_in_advance: bool?,
|
2515
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration?,
|
2516
|
+
conversion_rate: Float?,
|
2517
|
+
currency: String?,
|
2518
|
+
external_price_id: String?,
|
2519
|
+
fixed_price_quantity: Float?,
|
2520
|
+
invoice_grouping_key: String?,
|
2521
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?,
|
2522
|
+
metadata: ::Hash[Symbol, String?]?
|
2523
|
+
}
|
2524
|
+
|
2525
|
+
class NewPlanGroupedAllocationPrice < Orb::BaseModel
|
2526
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence
|
2527
|
+
|
2528
|
+
attr_accessor grouped_allocation_config: ::Hash[Symbol, top]
|
2529
|
+
|
2530
|
+
attr_accessor item_id: String
|
2531
|
+
|
2532
|
+
attr_accessor model_type: :grouped_allocation
|
2533
|
+
|
2534
|
+
attr_accessor name: String
|
2535
|
+
|
2536
|
+
attr_accessor billable_metric_id: String?
|
2537
|
+
|
2538
|
+
attr_accessor billed_in_advance: bool?
|
2539
|
+
|
2540
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration?
|
2541
|
+
|
2542
|
+
attr_accessor conversion_rate: Float?
|
2543
|
+
|
2544
|
+
attr_accessor currency: String?
|
2545
|
+
|
2546
|
+
attr_accessor external_price_id: String?
|
2547
|
+
|
2548
|
+
attr_accessor fixed_price_quantity: Float?
|
2549
|
+
|
2550
|
+
attr_accessor invoice_grouping_key: String?
|
2551
|
+
|
2552
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?
|
2553
|
+
|
2554
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2555
|
+
|
2556
|
+
def initialize: (
|
2557
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence,
|
2558
|
+
grouped_allocation_config: ::Hash[Symbol, top],
|
2559
|
+
item_id: String,
|
2560
|
+
name: String,
|
2561
|
+
?billable_metric_id: String?,
|
2562
|
+
?billed_in_advance: bool?,
|
2563
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration?,
|
2564
|
+
?conversion_rate: Float?,
|
2565
|
+
?currency: String?,
|
2566
|
+
?external_price_id: String?,
|
2567
|
+
?fixed_price_quantity: Float?,
|
2568
|
+
?invoice_grouping_key: String?,
|
2569
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?,
|
2570
|
+
?metadata: ::Hash[Symbol, String?]?,
|
2571
|
+
?model_type: :grouped_allocation
|
2572
|
+
) -> void
|
2573
|
+
|
2574
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_allocation_price
|
2575
|
+
|
2576
|
+
type cadence =
|
2577
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2578
|
+
|
2579
|
+
module Cadence
|
2580
|
+
extend Orb::Enum
|
2581
|
+
|
2582
|
+
ANNUAL: :annual
|
2583
|
+
SEMI_ANNUAL: :semi_annual
|
2584
|
+
MONTHLY: :monthly
|
2585
|
+
QUARTERLY: :quarterly
|
2586
|
+
ONE_TIME: :one_time
|
2587
|
+
CUSTOM: :custom
|
2588
|
+
|
2589
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence]
|
2590
|
+
end
|
2591
|
+
|
2592
|
+
type billing_cycle_configuration =
|
2593
|
+
{
|
2594
|
+
duration: Integer,
|
2595
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit
|
2596
|
+
}
|
2597
|
+
|
2598
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
2599
|
+
attr_accessor duration: Integer
|
2600
|
+
|
2601
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit
|
2602
|
+
|
2603
|
+
def initialize: (
|
2604
|
+
duration: Integer,
|
2605
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit
|
2606
|
+
) -> void
|
2607
|
+
|
2608
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::billing_cycle_configuration
|
2609
|
+
|
2610
|
+
type duration_unit = :day | :month
|
2611
|
+
|
2612
|
+
module DurationUnit
|
2613
|
+
extend Orb::Enum
|
2614
|
+
|
2615
|
+
DAY: :day
|
2616
|
+
MONTH: :month
|
2617
|
+
|
2618
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit]
|
2619
|
+
end
|
2620
|
+
end
|
2621
|
+
|
2622
|
+
type invoicing_cycle_configuration =
|
2623
|
+
{
|
2624
|
+
duration: Integer,
|
2625
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit
|
2626
|
+
}
|
2627
|
+
|
2628
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
2629
|
+
attr_accessor duration: Integer
|
2630
|
+
|
2631
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit
|
2632
|
+
|
2633
|
+
def initialize: (
|
2634
|
+
duration: Integer,
|
2635
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit
|
2636
|
+
) -> void
|
2637
|
+
|
2638
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::invoicing_cycle_configuration
|
2639
|
+
|
2640
|
+
type duration_unit = :day | :month
|
2641
|
+
|
2642
|
+
module DurationUnit
|
2643
|
+
extend Orb::Enum
|
2644
|
+
|
2645
|
+
DAY: :day
|
2646
|
+
MONTH: :month
|
2647
|
+
|
2648
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit]
|
2649
|
+
end
|
2650
|
+
end
|
2651
|
+
end
|
2652
|
+
|
2653
|
+
type new_plan_grouped_with_prorated_minimum_price =
|
2654
|
+
{
|
2655
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence,
|
2656
|
+
grouped_with_prorated_minimum_config: ::Hash[Symbol, top],
|
2657
|
+
item_id: String,
|
2658
|
+
model_type: :grouped_with_prorated_minimum,
|
2659
|
+
name: String,
|
2660
|
+
billable_metric_id: String?,
|
2661
|
+
billed_in_advance: bool?,
|
2662
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration?,
|
2663
|
+
conversion_rate: Float?,
|
2664
|
+
currency: String?,
|
2665
|
+
external_price_id: String?,
|
2666
|
+
fixed_price_quantity: Float?,
|
2667
|
+
invoice_grouping_key: String?,
|
2668
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?,
|
2669
|
+
metadata: ::Hash[Symbol, String?]?
|
2670
|
+
}
|
2671
|
+
|
2672
|
+
class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel
|
2673
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence
|
2674
|
+
|
2675
|
+
attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top]
|
2676
|
+
|
2677
|
+
attr_accessor item_id: String
|
2678
|
+
|
2679
|
+
attr_accessor model_type: :grouped_with_prorated_minimum
|
2680
|
+
|
2681
|
+
attr_accessor name: String
|
2682
|
+
|
2683
|
+
attr_accessor billable_metric_id: String?
|
2684
|
+
|
2685
|
+
attr_accessor billed_in_advance: bool?
|
2686
|
+
|
2687
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration?
|
2688
|
+
|
2689
|
+
attr_accessor conversion_rate: Float?
|
2690
|
+
|
2691
|
+
attr_accessor currency: String?
|
2692
|
+
|
2693
|
+
attr_accessor external_price_id: String?
|
2694
|
+
|
2695
|
+
attr_accessor fixed_price_quantity: Float?
|
2696
|
+
|
2697
|
+
attr_accessor invoice_grouping_key: String?
|
2698
|
+
|
2699
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?
|
2700
|
+
|
2701
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2702
|
+
|
2703
|
+
def initialize: (
|
2704
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence,
|
2705
|
+
grouped_with_prorated_minimum_config: ::Hash[Symbol, top],
|
2706
|
+
item_id: String,
|
2707
|
+
name: String,
|
2708
|
+
?billable_metric_id: String?,
|
2709
|
+
?billed_in_advance: bool?,
|
2710
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration?,
|
2711
|
+
?conversion_rate: Float?,
|
2712
|
+
?currency: String?,
|
2713
|
+
?external_price_id: String?,
|
2714
|
+
?fixed_price_quantity: Float?,
|
2715
|
+
?invoice_grouping_key: String?,
|
2716
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?,
|
2717
|
+
?metadata: ::Hash[Symbol, String?]?,
|
2718
|
+
?model_type: :grouped_with_prorated_minimum
|
2719
|
+
) -> void
|
2720
|
+
|
2721
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_prorated_minimum_price
|
2722
|
+
|
2723
|
+
type cadence =
|
2724
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2725
|
+
|
2726
|
+
module Cadence
|
2727
|
+
extend Orb::Enum
|
2728
|
+
|
2729
|
+
ANNUAL: :annual
|
2730
|
+
SEMI_ANNUAL: :semi_annual
|
2731
|
+
MONTHLY: :monthly
|
2732
|
+
QUARTERLY: :quarterly
|
2733
|
+
ONE_TIME: :one_time
|
2734
|
+
CUSTOM: :custom
|
2735
|
+
|
2736
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence]
|
2737
|
+
end
|
2738
|
+
|
2739
|
+
type billing_cycle_configuration =
|
2740
|
+
{
|
2741
|
+
duration: Integer,
|
2742
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit
|
2743
|
+
}
|
2744
|
+
|
2745
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
2746
|
+
attr_accessor duration: Integer
|
2747
|
+
|
2748
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit
|
2749
|
+
|
2750
|
+
def initialize: (
|
2751
|
+
duration: Integer,
|
2752
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit
|
2753
|
+
) -> void
|
2754
|
+
|
2755
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::billing_cycle_configuration
|
2756
|
+
|
2757
|
+
type duration_unit = :day | :month
|
2758
|
+
|
2759
|
+
module DurationUnit
|
2760
|
+
extend Orb::Enum
|
2761
|
+
|
2762
|
+
DAY: :day
|
2763
|
+
MONTH: :month
|
2764
|
+
|
2765
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit]
|
2766
|
+
end
|
2767
|
+
end
|
2768
|
+
|
2769
|
+
type invoicing_cycle_configuration =
|
2770
|
+
{
|
2771
|
+
duration: Integer,
|
2772
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
2773
|
+
}
|
2774
|
+
|
2775
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
2776
|
+
attr_accessor duration: Integer
|
2777
|
+
|
2778
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
2779
|
+
|
2780
|
+
def initialize: (
|
2781
|
+
duration: Integer,
|
2782
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
2783
|
+
) -> void
|
2784
|
+
|
2785
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::invoicing_cycle_configuration
|
2786
|
+
|
2787
|
+
type duration_unit = :day | :month
|
2788
|
+
|
2789
|
+
module DurationUnit
|
2790
|
+
extend Orb::Enum
|
2791
|
+
|
2792
|
+
DAY: :day
|
2793
|
+
MONTH: :month
|
2794
|
+
|
2795
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit]
|
2796
|
+
end
|
2797
|
+
end
|
2798
|
+
end
|
2799
|
+
|
2800
|
+
type new_plan_grouped_with_metered_minimum_price =
|
2801
|
+
{
|
2802
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence,
|
2803
|
+
grouped_with_metered_minimum_config: ::Hash[Symbol, top],
|
2804
|
+
item_id: String,
|
2805
|
+
model_type: :grouped_with_metered_minimum,
|
2806
|
+
name: String,
|
2807
|
+
billable_metric_id: String?,
|
2808
|
+
billed_in_advance: bool?,
|
2809
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?,
|
2810
|
+
conversion_rate: Float?,
|
2811
|
+
currency: String?,
|
2812
|
+
external_price_id: String?,
|
2813
|
+
fixed_price_quantity: Float?,
|
2814
|
+
invoice_grouping_key: String?,
|
2815
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?,
|
2816
|
+
metadata: ::Hash[Symbol, String?]?
|
2817
|
+
}
|
2818
|
+
|
2819
|
+
class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel
|
2820
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence
|
2821
|
+
|
2822
|
+
attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top]
|
2823
|
+
|
2824
|
+
attr_accessor item_id: String
|
2825
|
+
|
2826
|
+
attr_accessor model_type: :grouped_with_metered_minimum
|
2827
|
+
|
2828
|
+
attr_accessor name: String
|
2829
|
+
|
2830
|
+
attr_accessor billable_metric_id: String?
|
2831
|
+
|
2832
|
+
attr_accessor billed_in_advance: bool?
|
2833
|
+
|
2834
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?
|
2835
|
+
|
2836
|
+
attr_accessor conversion_rate: Float?
|
2837
|
+
|
2838
|
+
attr_accessor currency: String?
|
2839
|
+
|
2840
|
+
attr_accessor external_price_id: String?
|
2841
|
+
|
2842
|
+
attr_accessor fixed_price_quantity: Float?
|
2843
|
+
|
2844
|
+
attr_accessor invoice_grouping_key: String?
|
2845
|
+
|
2846
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?
|
2847
|
+
|
2848
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2849
|
+
|
2850
|
+
def initialize: (
|
2851
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence,
|
2852
|
+
grouped_with_metered_minimum_config: ::Hash[Symbol, top],
|
2853
|
+
item_id: String,
|
2854
|
+
name: String,
|
2855
|
+
?billable_metric_id: String?,
|
2856
|
+
?billed_in_advance: bool?,
|
2857
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?,
|
2858
|
+
?conversion_rate: Float?,
|
2859
|
+
?currency: String?,
|
2860
|
+
?external_price_id: String?,
|
2861
|
+
?fixed_price_quantity: Float?,
|
2862
|
+
?invoice_grouping_key: String?,
|
2863
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?,
|
2864
|
+
?metadata: ::Hash[Symbol, String?]?,
|
2865
|
+
?model_type: :grouped_with_metered_minimum
|
2866
|
+
) -> void
|
2867
|
+
|
2868
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_metered_minimum_price
|
2869
|
+
|
2870
|
+
type cadence =
|
2871
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
2872
|
+
|
2873
|
+
module Cadence
|
2874
|
+
extend Orb::Enum
|
2875
|
+
|
2876
|
+
ANNUAL: :annual
|
2877
|
+
SEMI_ANNUAL: :semi_annual
|
2878
|
+
MONTHLY: :monthly
|
2879
|
+
QUARTERLY: :quarterly
|
2880
|
+
ONE_TIME: :one_time
|
2881
|
+
CUSTOM: :custom
|
2882
|
+
|
2883
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence]
|
2884
|
+
end
|
2885
|
+
|
2886
|
+
type billing_cycle_configuration =
|
2887
|
+
{
|
2888
|
+
duration: Integer,
|
2889
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit
|
2890
|
+
}
|
2891
|
+
|
2892
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
2893
|
+
attr_accessor duration: Integer
|
2894
|
+
|
2895
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit
|
2896
|
+
|
2897
|
+
def initialize: (
|
2898
|
+
duration: Integer,
|
2899
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit
|
2900
|
+
) -> void
|
2901
|
+
|
2902
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::billing_cycle_configuration
|
2903
|
+
|
2904
|
+
type duration_unit = :day | :month
|
2905
|
+
|
2906
|
+
module DurationUnit
|
2907
|
+
extend Orb::Enum
|
2908
|
+
|
2909
|
+
DAY: :day
|
2910
|
+
MONTH: :month
|
2911
|
+
|
2912
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit]
|
2913
|
+
end
|
2914
|
+
end
|
2915
|
+
|
2916
|
+
type invoicing_cycle_configuration =
|
2917
|
+
{
|
2918
|
+
duration: Integer,
|
2919
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
2920
|
+
}
|
2921
|
+
|
2922
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
2923
|
+
attr_accessor duration: Integer
|
2924
|
+
|
2925
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
2926
|
+
|
2927
|
+
def initialize: (
|
2928
|
+
duration: Integer,
|
2929
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit
|
2930
|
+
) -> void
|
2931
|
+
|
2932
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration
|
2933
|
+
|
2934
|
+
type duration_unit = :day | :month
|
2935
|
+
|
2936
|
+
module DurationUnit
|
2937
|
+
extend Orb::Enum
|
2938
|
+
|
2939
|
+
DAY: :day
|
2940
|
+
MONTH: :month
|
2941
|
+
|
2942
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit]
|
2943
|
+
end
|
2944
|
+
end
|
2945
|
+
end
|
2946
|
+
|
2947
|
+
type new_plan_matrix_with_display_name_price =
|
2948
|
+
{
|
2949
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence,
|
2950
|
+
item_id: String,
|
2951
|
+
matrix_with_display_name_config: ::Hash[Symbol, top],
|
2952
|
+
model_type: :matrix_with_display_name,
|
2953
|
+
name: String,
|
2954
|
+
billable_metric_id: String?,
|
2955
|
+
billed_in_advance: bool?,
|
2956
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration?,
|
2957
|
+
conversion_rate: Float?,
|
2958
|
+
currency: String?,
|
2959
|
+
external_price_id: String?,
|
2960
|
+
fixed_price_quantity: Float?,
|
2961
|
+
invoice_grouping_key: String?,
|
2962
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?,
|
2963
|
+
metadata: ::Hash[Symbol, String?]?
|
2964
|
+
}
|
2965
|
+
|
2966
|
+
class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel
|
2967
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence
|
2968
|
+
|
2969
|
+
attr_accessor item_id: String
|
2970
|
+
|
2971
|
+
attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top]
|
2972
|
+
|
2973
|
+
attr_accessor model_type: :matrix_with_display_name
|
2974
|
+
|
2975
|
+
attr_accessor name: String
|
2976
|
+
|
2977
|
+
attr_accessor billable_metric_id: String?
|
2978
|
+
|
2979
|
+
attr_accessor billed_in_advance: bool?
|
2980
|
+
|
2981
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration?
|
2982
|
+
|
2983
|
+
attr_accessor conversion_rate: Float?
|
2984
|
+
|
2985
|
+
attr_accessor currency: String?
|
2986
|
+
|
2987
|
+
attr_accessor external_price_id: String?
|
2988
|
+
|
2989
|
+
attr_accessor fixed_price_quantity: Float?
|
2990
|
+
|
2991
|
+
attr_accessor invoice_grouping_key: String?
|
2992
|
+
|
2993
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?
|
2994
|
+
|
2995
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
2996
|
+
|
2997
|
+
def initialize: (
|
2998
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence,
|
2999
|
+
item_id: String,
|
3000
|
+
matrix_with_display_name_config: ::Hash[Symbol, top],
|
3001
|
+
name: String,
|
3002
|
+
?billable_metric_id: String?,
|
3003
|
+
?billed_in_advance: bool?,
|
3004
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration?,
|
3005
|
+
?conversion_rate: Float?,
|
3006
|
+
?currency: String?,
|
3007
|
+
?external_price_id: String?,
|
3008
|
+
?fixed_price_quantity: Float?,
|
3009
|
+
?invoice_grouping_key: String?,
|
3010
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?,
|
3011
|
+
?metadata: ::Hash[Symbol, String?]?,
|
3012
|
+
?model_type: :matrix_with_display_name
|
3013
|
+
) -> void
|
3014
|
+
|
3015
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_with_display_name_price
|
3016
|
+
|
3017
|
+
type cadence =
|
3018
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3019
|
+
|
3020
|
+
module Cadence
|
3021
|
+
extend Orb::Enum
|
3022
|
+
|
3023
|
+
ANNUAL: :annual
|
3024
|
+
SEMI_ANNUAL: :semi_annual
|
3025
|
+
MONTHLY: :monthly
|
3026
|
+
QUARTERLY: :quarterly
|
3027
|
+
ONE_TIME: :one_time
|
3028
|
+
CUSTOM: :custom
|
3029
|
+
|
3030
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence]
|
3031
|
+
end
|
3032
|
+
|
3033
|
+
type billing_cycle_configuration =
|
3034
|
+
{
|
3035
|
+
duration: Integer,
|
3036
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit
|
3037
|
+
}
|
3038
|
+
|
3039
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
3040
|
+
attr_accessor duration: Integer
|
3041
|
+
|
3042
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit
|
3043
|
+
|
3044
|
+
def initialize: (
|
3045
|
+
duration: Integer,
|
3046
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit
|
3047
|
+
) -> void
|
3048
|
+
|
3049
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::billing_cycle_configuration
|
3050
|
+
|
3051
|
+
type duration_unit = :day | :month
|
3052
|
+
|
3053
|
+
module DurationUnit
|
3054
|
+
extend Orb::Enum
|
3055
|
+
|
3056
|
+
DAY: :day
|
3057
|
+
MONTH: :month
|
3058
|
+
|
3059
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit]
|
3060
|
+
end
|
3061
|
+
end
|
3062
|
+
|
3063
|
+
type invoicing_cycle_configuration =
|
3064
|
+
{
|
3065
|
+
duration: Integer,
|
3066
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit
|
3067
|
+
}
|
3068
|
+
|
3069
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
3070
|
+
attr_accessor duration: Integer
|
3071
|
+
|
3072
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit
|
3073
|
+
|
3074
|
+
def initialize: (
|
3075
|
+
duration: Integer,
|
3076
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit
|
3077
|
+
) -> void
|
3078
|
+
|
3079
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::invoicing_cycle_configuration
|
3080
|
+
|
3081
|
+
type duration_unit = :day | :month
|
3082
|
+
|
3083
|
+
module DurationUnit
|
3084
|
+
extend Orb::Enum
|
3085
|
+
|
3086
|
+
DAY: :day
|
3087
|
+
MONTH: :month
|
3088
|
+
|
3089
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit]
|
3090
|
+
end
|
3091
|
+
end
|
3092
|
+
end
|
3093
|
+
|
3094
|
+
type new_plan_bulk_with_proration_price =
|
3095
|
+
{
|
3096
|
+
bulk_with_proration_config: ::Hash[Symbol, top],
|
3097
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence,
|
3098
|
+
item_id: String,
|
3099
|
+
model_type: :bulk_with_proration,
|
3100
|
+
name: String,
|
3101
|
+
billable_metric_id: String?,
|
3102
|
+
billed_in_advance: bool?,
|
3103
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration?,
|
3104
|
+
conversion_rate: Float?,
|
3105
|
+
currency: String?,
|
3106
|
+
external_price_id: String?,
|
3107
|
+
fixed_price_quantity: Float?,
|
3108
|
+
invoice_grouping_key: String?,
|
3109
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?,
|
3110
|
+
metadata: ::Hash[Symbol, String?]?
|
3111
|
+
}
|
3112
|
+
|
3113
|
+
class NewPlanBulkWithProrationPrice < Orb::BaseModel
|
3114
|
+
attr_accessor bulk_with_proration_config: ::Hash[Symbol, top]
|
3115
|
+
|
3116
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence
|
3117
|
+
|
3118
|
+
attr_accessor item_id: String
|
3119
|
+
|
3120
|
+
attr_accessor model_type: :bulk_with_proration
|
3121
|
+
|
3122
|
+
attr_accessor name: String
|
3123
|
+
|
3124
|
+
attr_accessor billable_metric_id: String?
|
3125
|
+
|
3126
|
+
attr_accessor billed_in_advance: bool?
|
3127
|
+
|
3128
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration?
|
3129
|
+
|
3130
|
+
attr_accessor conversion_rate: Float?
|
3131
|
+
|
3132
|
+
attr_accessor currency: String?
|
3133
|
+
|
3134
|
+
attr_accessor external_price_id: String?
|
3135
|
+
|
3136
|
+
attr_accessor fixed_price_quantity: Float?
|
3137
|
+
|
3138
|
+
attr_accessor invoice_grouping_key: String?
|
3139
|
+
|
3140
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?
|
3141
|
+
|
3142
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3143
|
+
|
3144
|
+
def initialize: (
|
3145
|
+
bulk_with_proration_config: ::Hash[Symbol, top],
|
3146
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence,
|
3147
|
+
item_id: String,
|
3148
|
+
name: String,
|
3149
|
+
?billable_metric_id: String?,
|
3150
|
+
?billed_in_advance: bool?,
|
3151
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration?,
|
3152
|
+
?conversion_rate: Float?,
|
3153
|
+
?currency: String?,
|
3154
|
+
?external_price_id: String?,
|
3155
|
+
?fixed_price_quantity: Float?,
|
3156
|
+
?invoice_grouping_key: String?,
|
3157
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?,
|
3158
|
+
?metadata: ::Hash[Symbol, String?]?,
|
3159
|
+
?model_type: :bulk_with_proration
|
3160
|
+
) -> void
|
3161
|
+
|
3162
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_with_proration_price
|
3163
|
+
|
3164
|
+
type cadence =
|
3165
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3166
|
+
|
3167
|
+
module Cadence
|
3168
|
+
extend Orb::Enum
|
3169
|
+
|
3170
|
+
ANNUAL: :annual
|
3171
|
+
SEMI_ANNUAL: :semi_annual
|
3172
|
+
MONTHLY: :monthly
|
3173
|
+
QUARTERLY: :quarterly
|
3174
|
+
ONE_TIME: :one_time
|
3175
|
+
CUSTOM: :custom
|
3176
|
+
|
3177
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence]
|
3178
|
+
end
|
3179
|
+
|
3180
|
+
type billing_cycle_configuration =
|
3181
|
+
{
|
3182
|
+
duration: Integer,
|
3183
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit
|
3184
|
+
}
|
3185
|
+
|
3186
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
3187
|
+
attr_accessor duration: Integer
|
3188
|
+
|
3189
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit
|
3190
|
+
|
3191
|
+
def initialize: (
|
3192
|
+
duration: Integer,
|
3193
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit
|
3194
|
+
) -> void
|
3195
|
+
|
3196
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::billing_cycle_configuration
|
3197
|
+
|
3198
|
+
type duration_unit = :day | :month
|
3199
|
+
|
3200
|
+
module DurationUnit
|
3201
|
+
extend Orb::Enum
|
3202
|
+
|
3203
|
+
DAY: :day
|
3204
|
+
MONTH: :month
|
3205
|
+
|
3206
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit]
|
3207
|
+
end
|
3208
|
+
end
|
3209
|
+
|
3210
|
+
type invoicing_cycle_configuration =
|
3211
|
+
{
|
3212
|
+
duration: Integer,
|
3213
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
3214
|
+
}
|
3215
|
+
|
3216
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
3217
|
+
attr_accessor duration: Integer
|
3218
|
+
|
3219
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
3220
|
+
|
3221
|
+
def initialize: (
|
3222
|
+
duration: Integer,
|
3223
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit
|
3224
|
+
) -> void
|
3225
|
+
|
3226
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::invoicing_cycle_configuration
|
3227
|
+
|
3228
|
+
type duration_unit = :day | :month
|
3229
|
+
|
3230
|
+
module DurationUnit
|
3231
|
+
extend Orb::Enum
|
3232
|
+
|
3233
|
+
DAY: :day
|
3234
|
+
MONTH: :month
|
3235
|
+
|
3236
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit]
|
3237
|
+
end
|
3238
|
+
end
|
3239
|
+
end
|
3240
|
+
|
3241
|
+
type new_plan_grouped_tiered_package_price =
|
3242
|
+
{
|
3243
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence,
|
3244
|
+
grouped_tiered_package_config: ::Hash[Symbol, top],
|
3245
|
+
item_id: String,
|
3246
|
+
model_type: :grouped_tiered_package,
|
3247
|
+
name: String,
|
3248
|
+
billable_metric_id: String?,
|
3249
|
+
billed_in_advance: bool?,
|
3250
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration?,
|
3251
|
+
conversion_rate: Float?,
|
3252
|
+
currency: String?,
|
3253
|
+
external_price_id: String?,
|
3254
|
+
fixed_price_quantity: Float?,
|
3255
|
+
invoice_grouping_key: String?,
|
3256
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?,
|
3257
|
+
metadata: ::Hash[Symbol, String?]?
|
3258
|
+
}
|
3259
|
+
|
3260
|
+
class NewPlanGroupedTieredPackagePrice < Orb::BaseModel
|
3261
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence
|
3262
|
+
|
3263
|
+
attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top]
|
3264
|
+
|
3265
|
+
attr_accessor item_id: String
|
3266
|
+
|
3267
|
+
attr_accessor model_type: :grouped_tiered_package
|
3268
|
+
|
3269
|
+
attr_accessor name: String
|
3270
|
+
|
3271
|
+
attr_accessor billable_metric_id: String?
|
3272
|
+
|
3273
|
+
attr_accessor billed_in_advance: bool?
|
3274
|
+
|
3275
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration?
|
3276
|
+
|
3277
|
+
attr_accessor conversion_rate: Float?
|
3278
|
+
|
3279
|
+
attr_accessor currency: String?
|
3280
|
+
|
3281
|
+
attr_accessor external_price_id: String?
|
3282
|
+
|
3283
|
+
attr_accessor fixed_price_quantity: Float?
|
3284
|
+
|
3285
|
+
attr_accessor invoice_grouping_key: String?
|
3286
|
+
|
3287
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?
|
3288
|
+
|
3289
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3290
|
+
|
3291
|
+
def initialize: (
|
3292
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence,
|
3293
|
+
grouped_tiered_package_config: ::Hash[Symbol, top],
|
3294
|
+
item_id: String,
|
3295
|
+
name: String,
|
3296
|
+
?billable_metric_id: String?,
|
3297
|
+
?billed_in_advance: bool?,
|
3298
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration?,
|
3299
|
+
?conversion_rate: Float?,
|
3300
|
+
?currency: String?,
|
3301
|
+
?external_price_id: String?,
|
3302
|
+
?fixed_price_quantity: Float?,
|
3303
|
+
?invoice_grouping_key: String?,
|
3304
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?,
|
3305
|
+
?metadata: ::Hash[Symbol, String?]?,
|
3306
|
+
?model_type: :grouped_tiered_package
|
3307
|
+
) -> void
|
3308
|
+
|
3309
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_tiered_package_price
|
3310
|
+
|
3311
|
+
type cadence =
|
3312
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3313
|
+
|
3314
|
+
module Cadence
|
3315
|
+
extend Orb::Enum
|
3316
|
+
|
3317
|
+
ANNUAL: :annual
|
3318
|
+
SEMI_ANNUAL: :semi_annual
|
3319
|
+
MONTHLY: :monthly
|
3320
|
+
QUARTERLY: :quarterly
|
3321
|
+
ONE_TIME: :one_time
|
3322
|
+
CUSTOM: :custom
|
3323
|
+
|
3324
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence]
|
3325
|
+
end
|
3326
|
+
|
3327
|
+
type billing_cycle_configuration =
|
3328
|
+
{
|
3329
|
+
duration: Integer,
|
3330
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
3331
|
+
}
|
3332
|
+
|
3333
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
3334
|
+
attr_accessor duration: Integer
|
3335
|
+
|
3336
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
3337
|
+
|
3338
|
+
def initialize: (
|
3339
|
+
duration: Integer,
|
3340
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
3341
|
+
) -> void
|
3342
|
+
|
3343
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::billing_cycle_configuration
|
3344
|
+
|
3345
|
+
type duration_unit = :day | :month
|
3346
|
+
|
3347
|
+
module DurationUnit
|
3348
|
+
extend Orb::Enum
|
3349
|
+
|
3350
|
+
DAY: :day
|
3351
|
+
MONTH: :month
|
3352
|
+
|
3353
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit]
|
3354
|
+
end
|
3355
|
+
end
|
3356
|
+
|
3357
|
+
type invoicing_cycle_configuration =
|
3358
|
+
{
|
3359
|
+
duration: Integer,
|
3360
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
3361
|
+
}
|
3362
|
+
|
3363
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
3364
|
+
attr_accessor duration: Integer
|
3365
|
+
|
3366
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
3367
|
+
|
3368
|
+
def initialize: (
|
3369
|
+
duration: Integer,
|
3370
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
3371
|
+
) -> void
|
3372
|
+
|
3373
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::invoicing_cycle_configuration
|
3374
|
+
|
3375
|
+
type duration_unit = :day | :month
|
3376
|
+
|
3377
|
+
module DurationUnit
|
3378
|
+
extend Orb::Enum
|
3379
|
+
|
3380
|
+
DAY: :day
|
3381
|
+
MONTH: :month
|
3382
|
+
|
3383
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit]
|
3384
|
+
end
|
3385
|
+
end
|
3386
|
+
end
|
3387
|
+
|
3388
|
+
type new_plan_max_group_tiered_package_price =
|
3389
|
+
{
|
3390
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence,
|
3391
|
+
item_id: String,
|
3392
|
+
max_group_tiered_package_config: ::Hash[Symbol, top],
|
3393
|
+
model_type: :max_group_tiered_package,
|
3394
|
+
name: String,
|
3395
|
+
billable_metric_id: String?,
|
3396
|
+
billed_in_advance: bool?,
|
3397
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration?,
|
3398
|
+
conversion_rate: Float?,
|
3399
|
+
currency: String?,
|
3400
|
+
external_price_id: String?,
|
3401
|
+
fixed_price_quantity: Float?,
|
3402
|
+
invoice_grouping_key: String?,
|
3403
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?,
|
3404
|
+
metadata: ::Hash[Symbol, String?]?
|
3405
|
+
}
|
3406
|
+
|
3407
|
+
class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel
|
3408
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence
|
3409
|
+
|
3410
|
+
attr_accessor item_id: String
|
3411
|
+
|
3412
|
+
attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top]
|
3413
|
+
|
3414
|
+
attr_accessor model_type: :max_group_tiered_package
|
3415
|
+
|
3416
|
+
attr_accessor name: String
|
3417
|
+
|
3418
|
+
attr_accessor billable_metric_id: String?
|
3419
|
+
|
3420
|
+
attr_accessor billed_in_advance: bool?
|
3421
|
+
|
3422
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration?
|
3423
|
+
|
3424
|
+
attr_accessor conversion_rate: Float?
|
3425
|
+
|
3426
|
+
attr_accessor currency: String?
|
3427
|
+
|
3428
|
+
attr_accessor external_price_id: String?
|
3429
|
+
|
3430
|
+
attr_accessor fixed_price_quantity: Float?
|
3431
|
+
|
3432
|
+
attr_accessor invoice_grouping_key: String?
|
3433
|
+
|
3434
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?
|
3435
|
+
|
3436
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3437
|
+
|
3438
|
+
def initialize: (
|
3439
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence,
|
3440
|
+
item_id: String,
|
3441
|
+
max_group_tiered_package_config: ::Hash[Symbol, top],
|
3442
|
+
name: String,
|
3443
|
+
?billable_metric_id: String?,
|
3444
|
+
?billed_in_advance: bool?,
|
3445
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration?,
|
3446
|
+
?conversion_rate: Float?,
|
3447
|
+
?currency: String?,
|
3448
|
+
?external_price_id: String?,
|
3449
|
+
?fixed_price_quantity: Float?,
|
3450
|
+
?invoice_grouping_key: String?,
|
3451
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?,
|
3452
|
+
?metadata: ::Hash[Symbol, String?]?,
|
3453
|
+
?model_type: :max_group_tiered_package
|
3454
|
+
) -> void
|
3455
|
+
|
3456
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_max_group_tiered_package_price
|
3457
|
+
|
3458
|
+
type cadence =
|
3459
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3460
|
+
|
3461
|
+
module Cadence
|
3462
|
+
extend Orb::Enum
|
3463
|
+
|
3464
|
+
ANNUAL: :annual
|
3465
|
+
SEMI_ANNUAL: :semi_annual
|
3466
|
+
MONTHLY: :monthly
|
3467
|
+
QUARTERLY: :quarterly
|
3468
|
+
ONE_TIME: :one_time
|
3469
|
+
CUSTOM: :custom
|
3470
|
+
|
3471
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence]
|
3472
|
+
end
|
3473
|
+
|
3474
|
+
type billing_cycle_configuration =
|
3475
|
+
{
|
3476
|
+
duration: Integer,
|
3477
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
3478
|
+
}
|
3479
|
+
|
3480
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
3481
|
+
attr_accessor duration: Integer
|
3482
|
+
|
3483
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
3484
|
+
|
3485
|
+
def initialize: (
|
3486
|
+
duration: Integer,
|
3487
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit
|
3488
|
+
) -> void
|
3489
|
+
|
3490
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::billing_cycle_configuration
|
3491
|
+
|
3492
|
+
type duration_unit = :day | :month
|
3493
|
+
|
3494
|
+
module DurationUnit
|
3495
|
+
extend Orb::Enum
|
3496
|
+
|
3497
|
+
DAY: :day
|
3498
|
+
MONTH: :month
|
3499
|
+
|
3500
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit]
|
3501
|
+
end
|
3502
|
+
end
|
3503
|
+
|
3504
|
+
type invoicing_cycle_configuration =
|
3505
|
+
{
|
3506
|
+
duration: Integer,
|
3507
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
3508
|
+
}
|
3509
|
+
|
3510
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
3511
|
+
attr_accessor duration: Integer
|
3512
|
+
|
3513
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
3514
|
+
|
3515
|
+
def initialize: (
|
3516
|
+
duration: Integer,
|
3517
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit
|
3518
|
+
) -> void
|
3519
|
+
|
3520
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::invoicing_cycle_configuration
|
3521
|
+
|
3522
|
+
type duration_unit = :day | :month
|
3523
|
+
|
3524
|
+
module DurationUnit
|
3525
|
+
extend Orb::Enum
|
3526
|
+
|
3527
|
+
DAY: :day
|
3528
|
+
MONTH: :month
|
3529
|
+
|
3530
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit]
|
3531
|
+
end
|
3532
|
+
end
|
3533
|
+
end
|
3534
|
+
|
3535
|
+
type new_plan_scalable_matrix_with_unit_pricing_price =
|
3536
|
+
{
|
3537
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence,
|
3538
|
+
item_id: String,
|
3539
|
+
model_type: :scalable_matrix_with_unit_pricing,
|
3540
|
+
name: String,
|
3541
|
+
scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top],
|
3542
|
+
billable_metric_id: String?,
|
3543
|
+
billed_in_advance: bool?,
|
3544
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?,
|
3545
|
+
conversion_rate: Float?,
|
3546
|
+
currency: String?,
|
3547
|
+
external_price_id: String?,
|
3548
|
+
fixed_price_quantity: Float?,
|
3549
|
+
invoice_grouping_key: String?,
|
3550
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?,
|
3551
|
+
metadata: ::Hash[Symbol, String?]?
|
3552
|
+
}
|
3553
|
+
|
3554
|
+
class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel
|
3555
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence
|
3556
|
+
|
3557
|
+
attr_accessor item_id: String
|
3558
|
+
|
3559
|
+
attr_accessor model_type: :scalable_matrix_with_unit_pricing
|
3560
|
+
|
3561
|
+
attr_accessor name: String
|
3562
|
+
|
3563
|
+
attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top]
|
3564
|
+
|
3565
|
+
attr_accessor billable_metric_id: String?
|
3566
|
+
|
3567
|
+
attr_accessor billed_in_advance: bool?
|
3568
|
+
|
3569
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?
|
3570
|
+
|
3571
|
+
attr_accessor conversion_rate: Float?
|
3572
|
+
|
3573
|
+
attr_accessor currency: String?
|
3574
|
+
|
3575
|
+
attr_accessor external_price_id: String?
|
3576
|
+
|
3577
|
+
attr_accessor fixed_price_quantity: Float?
|
3578
|
+
|
3579
|
+
attr_accessor invoice_grouping_key: String?
|
3580
|
+
|
3581
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?
|
3582
|
+
|
3583
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3584
|
+
|
3585
|
+
def initialize: (
|
3586
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence,
|
3587
|
+
item_id: String,
|
3588
|
+
name: String,
|
3589
|
+
scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top],
|
3590
|
+
?billable_metric_id: String?,
|
3591
|
+
?billed_in_advance: bool?,
|
3592
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?,
|
3593
|
+
?conversion_rate: Float?,
|
3594
|
+
?currency: String?,
|
3595
|
+
?external_price_id: String?,
|
3596
|
+
?fixed_price_quantity: Float?,
|
3597
|
+
?invoice_grouping_key: String?,
|
3598
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?,
|
3599
|
+
?metadata: ::Hash[Symbol, String?]?,
|
3600
|
+
?model_type: :scalable_matrix_with_unit_pricing
|
3601
|
+
) -> void
|
3602
|
+
|
3603
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_unit_pricing_price
|
3604
|
+
|
3605
|
+
type cadence =
|
3606
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3607
|
+
|
3608
|
+
module Cadence
|
3609
|
+
extend Orb::Enum
|
3610
|
+
|
3611
|
+
ANNUAL: :annual
|
3612
|
+
SEMI_ANNUAL: :semi_annual
|
3613
|
+
MONTHLY: :monthly
|
3614
|
+
QUARTERLY: :quarterly
|
3615
|
+
ONE_TIME: :one_time
|
3616
|
+
CUSTOM: :custom
|
3617
|
+
|
3618
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence]
|
3619
|
+
end
|
3620
|
+
|
3621
|
+
type billing_cycle_configuration =
|
3622
|
+
{
|
3623
|
+
duration: Integer,
|
3624
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit
|
3625
|
+
}
|
3626
|
+
|
3627
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
3628
|
+
attr_accessor duration: Integer
|
3629
|
+
|
3630
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit
|
3631
|
+
|
3632
|
+
def initialize: (
|
3633
|
+
duration: Integer,
|
3634
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit
|
3635
|
+
) -> void
|
3636
|
+
|
3637
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::billing_cycle_configuration
|
3638
|
+
|
3639
|
+
type duration_unit = :day | :month
|
3640
|
+
|
3641
|
+
module DurationUnit
|
3642
|
+
extend Orb::Enum
|
3643
|
+
|
3644
|
+
DAY: :day
|
3645
|
+
MONTH: :month
|
3646
|
+
|
3647
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit]
|
3648
|
+
end
|
3649
|
+
end
|
3650
|
+
|
3651
|
+
type invoicing_cycle_configuration =
|
3652
|
+
{
|
3653
|
+
duration: Integer,
|
3654
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit
|
3655
|
+
}
|
3656
|
+
|
3657
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
3658
|
+
attr_accessor duration: Integer
|
3659
|
+
|
3660
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit
|
3661
|
+
|
3662
|
+
def initialize: (
|
3663
|
+
duration: Integer,
|
3664
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit
|
3665
|
+
) -> void
|
3666
|
+
|
3667
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration
|
3668
|
+
|
3669
|
+
type duration_unit = :day | :month
|
3670
|
+
|
3671
|
+
module DurationUnit
|
3672
|
+
extend Orb::Enum
|
3673
|
+
|
3674
|
+
DAY: :day
|
3675
|
+
MONTH: :month
|
3676
|
+
|
3677
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit]
|
3678
|
+
end
|
3679
|
+
end
|
3680
|
+
end
|
3681
|
+
|
3682
|
+
type new_plan_scalable_matrix_with_tiered_pricing_price =
|
3683
|
+
{
|
3684
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence,
|
3685
|
+
item_id: String,
|
3686
|
+
model_type: :scalable_matrix_with_tiered_pricing,
|
3687
|
+
name: String,
|
3688
|
+
scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top],
|
3689
|
+
billable_metric_id: String?,
|
3690
|
+
billed_in_advance: bool?,
|
3691
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?,
|
3692
|
+
conversion_rate: Float?,
|
3693
|
+
currency: String?,
|
3694
|
+
external_price_id: String?,
|
3695
|
+
fixed_price_quantity: Float?,
|
3696
|
+
invoice_grouping_key: String?,
|
3697
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?,
|
3698
|
+
metadata: ::Hash[Symbol, String?]?
|
3699
|
+
}
|
3700
|
+
|
3701
|
+
class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel
|
3702
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence
|
3703
|
+
|
3704
|
+
attr_accessor item_id: String
|
3705
|
+
|
3706
|
+
attr_accessor model_type: :scalable_matrix_with_tiered_pricing
|
3707
|
+
|
3708
|
+
attr_accessor name: String
|
3709
|
+
|
3710
|
+
attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top]
|
3711
|
+
|
3712
|
+
attr_accessor billable_metric_id: String?
|
3713
|
+
|
3714
|
+
attr_accessor billed_in_advance: bool?
|
3715
|
+
|
3716
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?
|
3717
|
+
|
3718
|
+
attr_accessor conversion_rate: Float?
|
3719
|
+
|
3720
|
+
attr_accessor currency: String?
|
3721
|
+
|
3722
|
+
attr_accessor external_price_id: String?
|
3723
|
+
|
3724
|
+
attr_accessor fixed_price_quantity: Float?
|
3725
|
+
|
3726
|
+
attr_accessor invoice_grouping_key: String?
|
3727
|
+
|
3728
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?
|
3729
|
+
|
3730
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3731
|
+
|
3732
|
+
def initialize: (
|
3733
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence,
|
3734
|
+
item_id: String,
|
3735
|
+
name: String,
|
3736
|
+
scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top],
|
3737
|
+
?billable_metric_id: String?,
|
3738
|
+
?billed_in_advance: bool?,
|
3739
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?,
|
3740
|
+
?conversion_rate: Float?,
|
3741
|
+
?currency: String?,
|
3742
|
+
?external_price_id: String?,
|
3743
|
+
?fixed_price_quantity: Float?,
|
3744
|
+
?invoice_grouping_key: String?,
|
3745
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?,
|
3746
|
+
?metadata: ::Hash[Symbol, String?]?,
|
3747
|
+
?model_type: :scalable_matrix_with_tiered_pricing
|
3748
|
+
) -> void
|
3749
|
+
|
3750
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_tiered_pricing_price
|
3751
|
+
|
3752
|
+
type cadence =
|
3753
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3754
|
+
|
3755
|
+
module Cadence
|
3756
|
+
extend Orb::Enum
|
3757
|
+
|
3758
|
+
ANNUAL: :annual
|
3759
|
+
SEMI_ANNUAL: :semi_annual
|
3760
|
+
MONTHLY: :monthly
|
3761
|
+
QUARTERLY: :quarterly
|
3762
|
+
ONE_TIME: :one_time
|
3763
|
+
CUSTOM: :custom
|
3764
|
+
|
3765
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence]
|
3766
|
+
end
|
3767
|
+
|
3768
|
+
type billing_cycle_configuration =
|
3769
|
+
{
|
3770
|
+
duration: Integer,
|
3771
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit
|
3772
|
+
}
|
3773
|
+
|
3774
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
3775
|
+
attr_accessor duration: Integer
|
3776
|
+
|
3777
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit
|
3778
|
+
|
3779
|
+
def initialize: (
|
3780
|
+
duration: Integer,
|
3781
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit
|
3782
|
+
) -> void
|
3783
|
+
|
3784
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::billing_cycle_configuration
|
3785
|
+
|
3786
|
+
type duration_unit = :day | :month
|
3787
|
+
|
3788
|
+
module DurationUnit
|
3789
|
+
extend Orb::Enum
|
3790
|
+
|
3791
|
+
DAY: :day
|
3792
|
+
MONTH: :month
|
3793
|
+
|
3794
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit]
|
3795
|
+
end
|
3796
|
+
end
|
3797
|
+
|
3798
|
+
type invoicing_cycle_configuration =
|
3799
|
+
{
|
3800
|
+
duration: Integer,
|
3801
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit
|
3802
|
+
}
|
3803
|
+
|
3804
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
3805
|
+
attr_accessor duration: Integer
|
3806
|
+
|
3807
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit
|
3808
|
+
|
3809
|
+
def initialize: (
|
3810
|
+
duration: Integer,
|
3811
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit
|
3812
|
+
) -> void
|
3813
|
+
|
3814
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration
|
3815
|
+
|
3816
|
+
type duration_unit = :day | :month
|
3817
|
+
|
3818
|
+
module DurationUnit
|
3819
|
+
extend Orb::Enum
|
3820
|
+
|
3821
|
+
DAY: :day
|
3822
|
+
MONTH: :month
|
3823
|
+
|
3824
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit]
|
3825
|
+
end
|
3826
|
+
end
|
3827
|
+
end
|
3828
|
+
|
3829
|
+
type new_plan_cumulative_grouped_bulk_price =
|
3830
|
+
{
|
3831
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence,
|
3832
|
+
cumulative_grouped_bulk_config: ::Hash[Symbol, top],
|
3833
|
+
item_id: String,
|
3834
|
+
model_type: :cumulative_grouped_bulk,
|
3835
|
+
name: String,
|
3836
|
+
billable_metric_id: String?,
|
3837
|
+
billed_in_advance: bool?,
|
3838
|
+
billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration?,
|
3839
|
+
conversion_rate: Float?,
|
3840
|
+
currency: String?,
|
3841
|
+
external_price_id: String?,
|
3842
|
+
fixed_price_quantity: Float?,
|
3843
|
+
invoice_grouping_key: String?,
|
3844
|
+
invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?,
|
3845
|
+
metadata: ::Hash[Symbol, String?]?
|
3846
|
+
}
|
3847
|
+
|
3848
|
+
class NewPlanCumulativeGroupedBulkPrice < Orb::BaseModel
|
3849
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence
|
3850
|
+
|
3851
|
+
attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top]
|
3852
|
+
|
3853
|
+
attr_accessor item_id: String
|
3854
|
+
|
3855
|
+
attr_accessor model_type: :cumulative_grouped_bulk
|
3856
|
+
|
3857
|
+
attr_accessor name: String
|
3858
|
+
|
3859
|
+
attr_accessor billable_metric_id: String?
|
3860
|
+
|
3861
|
+
attr_accessor billed_in_advance: bool?
|
3862
|
+
|
3863
|
+
attr_accessor billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration?
|
3864
|
+
|
3865
|
+
attr_accessor conversion_rate: Float?
|
3866
|
+
|
3867
|
+
attr_accessor currency: String?
|
3868
|
+
|
3869
|
+
attr_accessor external_price_id: String?
|
3870
|
+
|
3871
|
+
attr_accessor fixed_price_quantity: Float?
|
3872
|
+
|
3873
|
+
attr_accessor invoice_grouping_key: String?
|
3874
|
+
|
3875
|
+
attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?
|
3876
|
+
|
3877
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
3878
|
+
|
3879
|
+
def initialize: (
|
3880
|
+
cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence,
|
3881
|
+
cumulative_grouped_bulk_config: ::Hash[Symbol, top],
|
3882
|
+
item_id: String,
|
3883
|
+
name: String,
|
3884
|
+
?billable_metric_id: String?,
|
3885
|
+
?billed_in_advance: bool?,
|
3886
|
+
?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration?,
|
3887
|
+
?conversion_rate: Float?,
|
3888
|
+
?currency: String?,
|
3889
|
+
?external_price_id: String?,
|
3890
|
+
?fixed_price_quantity: Float?,
|
3891
|
+
?invoice_grouping_key: String?,
|
3892
|
+
?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?,
|
3893
|
+
?metadata: ::Hash[Symbol, String?]?,
|
3894
|
+
?model_type: :cumulative_grouped_bulk
|
3895
|
+
) -> void
|
3896
|
+
|
3897
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_cumulative_grouped_bulk_price
|
3898
|
+
|
3899
|
+
type cadence =
|
3900
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
3901
|
+
|
3902
|
+
module Cadence
|
3903
|
+
extend Orb::Enum
|
3904
|
+
|
3905
|
+
ANNUAL: :annual
|
3906
|
+
SEMI_ANNUAL: :semi_annual
|
3907
|
+
MONTHLY: :monthly
|
3908
|
+
QUARTERLY: :quarterly
|
3909
|
+
ONE_TIME: :one_time
|
3910
|
+
CUSTOM: :custom
|
3911
|
+
|
3912
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence]
|
3913
|
+
end
|
3914
|
+
|
3915
|
+
type billing_cycle_configuration =
|
3916
|
+
{
|
3917
|
+
duration: Integer,
|
3918
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit
|
3919
|
+
}
|
3920
|
+
|
3921
|
+
class BillingCycleConfiguration < Orb::BaseModel
|
3922
|
+
attr_accessor duration: Integer
|
3923
|
+
|
3924
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit
|
3925
|
+
|
3926
|
+
def initialize: (
|
3927
|
+
duration: Integer,
|
3928
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit
|
3929
|
+
) -> void
|
3930
|
+
|
3931
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::billing_cycle_configuration
|
3932
|
+
|
3933
|
+
type duration_unit = :day | :month
|
3934
|
+
|
3935
|
+
module DurationUnit
|
3936
|
+
extend Orb::Enum
|
3937
|
+
|
3938
|
+
DAY: :day
|
3939
|
+
MONTH: :month
|
3940
|
+
|
3941
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit]
|
3942
|
+
end
|
3943
|
+
end
|
3944
|
+
|
3945
|
+
type invoicing_cycle_configuration =
|
3946
|
+
{
|
3947
|
+
duration: Integer,
|
3948
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit
|
3949
|
+
}
|
3950
|
+
|
3951
|
+
class InvoicingCycleConfiguration < Orb::BaseModel
|
3952
|
+
attr_accessor duration: Integer
|
3953
|
+
|
3954
|
+
attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit
|
3955
|
+
|
3956
|
+
def initialize: (
|
3957
|
+
duration: Integer,
|
3958
|
+
duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit
|
3959
|
+
) -> void
|
3960
|
+
|
3961
|
+
def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::invoicing_cycle_configuration
|
3962
|
+
|
3963
|
+
type duration_unit = :day | :month
|
3964
|
+
|
3965
|
+
module DurationUnit
|
3966
|
+
extend Orb::Enum
|
3967
|
+
|
3968
|
+
DAY: :day
|
3969
|
+
MONTH: :month
|
3970
|
+
|
3971
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit]
|
3972
|
+
end
|
3973
|
+
end
|
3974
|
+
end
|
3975
|
+
|
3976
|
+
def self?.variants: -> [Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice]
|
3977
|
+
end
|
3978
|
+
|
3979
|
+
type status = :active | :draft
|
3980
|
+
|
3981
|
+
module Status
|
3982
|
+
extend Orb::Enum
|
3983
|
+
|
3984
|
+
ACTIVE: :active
|
3985
|
+
DRAFT: :draft
|
3986
|
+
|
3987
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::status]
|
3988
|
+
end
|
3989
|
+
end
|
3990
|
+
end
|
3991
|
+
end
|