orb-billing 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +55 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +21 -0
- data/lib/orb/internal/transport/base_client.rb +5 -0
- data/lib/orb/internal/type/union.rb +13 -27
- data/lib/orb/internal/util.rb +22 -7
- data/lib/orb/models/accounting_provider_config.rb +14 -3
- data/lib/orb/models/adjustment_interval.rb +185 -3
- data/lib/orb/models/alert.rb +114 -1
- data/lib/orb/models/alert_create_for_customer_params.rb +8 -1
- data/lib/orb/models/alert_create_for_external_customer_params.rb +8 -1
- data/lib/orb/models/alert_create_for_subscription_params.rb +142 -1
- data/lib/orb/models/alert_disable_params.rb +8 -1
- data/lib/orb/models/alert_enable_params.rb +8 -1
- data/lib/orb/models/alert_retrieve_params.rb +7 -1
- data/lib/orb/models/alert_update_params.rb +120 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +3296 -631
- data/lib/orb/models/beta/external_plan_id_fetch_plan_version_params.rb +7 -1
- data/lib/orb/models/beta/external_plan_id_set_default_plan_version_params.rb +8 -1
- data/lib/orb/models/beta_create_plan_version_params.rb +3263 -622
- data/lib/orb/models/beta_fetch_plan_version_params.rb +7 -1
- data/lib/orb/models/beta_set_default_plan_version_params.rb +8 -1
- data/lib/orb/models/changed_subscription_resources.rb +200 -10
- data/lib/orb/models/conversion_rate_config.rb +18 -0
- data/lib/orb/models/coupon_archive_params.rb +7 -1
- data/lib/orb/models/coupon_fetch_params.rb +7 -1
- data/lib/orb/models/coupons/subscription_list_params.rb +8 -1
- data/lib/orb/models/credit_block_delete_params.rb +7 -1
- data/lib/orb/models/credit_block_list_invoices_params.rb +7 -1
- data/lib/orb/models/credit_block_list_invoices_response.rb +155 -1
- data/lib/orb/models/credit_block_retrieve_params.rb +7 -1
- data/lib/orb/models/credit_block_retrieve_response.rb +150 -1
- data/lib/orb/models/credit_note_fetch_params.rb +7 -1
- data/lib/orb/models/customer.rb +122 -3
- data/lib/orb/models/customer_create_params.rb +17 -1
- data/lib/orb/models/customer_delete_params.rb +7 -1
- data/lib/orb/models/customer_fetch_by_external_id_params.rb +7 -1
- data/lib/orb/models/customer_fetch_params.rb +7 -1
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +7 -1
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +7 -1
- data/lib/orb/models/customer_tax_id.rb +15 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +39 -5
- data/lib/orb/models/customer_update_params.rb +39 -5
- data/lib/orb/models/customers/balance_transaction_create_params.rb +8 -1
- data/lib/orb/models/customers/balance_transaction_list_params.rb +8 -1
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/cost_list_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +155 -1
- data/lib/orb/models/customers/credit_list_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_response.rb +152 -1
- data/lib/orb/models/customers/credits/decrement_ledger_entry.rb +5 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +582 -315
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +580 -313
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_create_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +7 -1
- data/lib/orb/models/customers/credits/top_up_delete_params.rb +7 -1
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_list_params.rb +8 -1
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/dimensional_price_group_retrieve_params.rb +7 -1
- data/lib/orb/models/dimensional_price_group_update_params.rb +8 -1
- data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +7 -1
- data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rb +8 -1
- data/lib/orb/models/discount.rb +145 -1
- data/lib/orb/models/event_deprecate_params.rb +7 -1
- data/lib/orb/models/event_ingest_params.rb +5 -2
- data/lib/orb/models/event_update_params.rb +8 -1
- data/lib/orb/models/events/backfill_close_params.rb +7 -1
- data/lib/orb/models/events/backfill_fetch_params.rb +7 -1
- data/lib/orb/models/events/backfill_revert_params.rb +7 -1
- data/lib/orb/models/invoice.rb +198 -10
- data/lib/orb/models/invoice_create_params.rb +6 -5
- data/lib/orb/models/invoice_delete_line_item_params.rb +7 -1
- data/lib/orb/models/invoice_fetch_params.rb +7 -1
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +200 -10
- data/lib/orb/models/invoice_issue_params.rb +8 -1
- data/lib/orb/models/invoice_issue_summary_params.rb +8 -1
- data/lib/orb/models/invoice_issue_summary_response.rb +9 -3
- data/lib/orb/models/invoice_level_discount.rb +145 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +189 -5
- data/lib/orb/models/invoice_list_summary_response.rb +9 -3
- data/lib/orb/models/invoice_mark_paid_params.rb +8 -1
- data/lib/orb/models/invoice_pay_params.rb +16 -1
- data/lib/orb/models/invoice_update_params.rb +8 -1
- data/lib/orb/models/invoice_void_params.rb +7 -1
- data/lib/orb/models/item_archive_params.rb +7 -1
- data/lib/orb/models/item_fetch_params.rb +7 -1
- data/lib/orb/models/item_update_params.rb +8 -1
- data/lib/orb/models/license_deactivate_params.rb +8 -1
- data/lib/orb/models/license_retrieve_by_external_id_params.rb +8 -1
- data/lib/orb/models/license_retrieve_params.rb +7 -1
- data/lib/orb/models/license_type_retrieve_params.rb +7 -1
- data/lib/orb/models/licenses/external_license_get_usage_params.rb +11 -4
- data/lib/orb/models/licenses/usage_get_all_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_usage_params.rb +11 -4
- data/lib/orb/models/metric_fetch_params.rb +7 -1
- data/lib/orb/models/metric_update_params.rb +8 -1
- data/lib/orb/models/mutated_subscription.rb +169 -4
- data/lib/orb/models/new_allocation_price.rb +11 -1
- data/lib/orb/models/new_floating_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_floating_package_price.rb +1 -3
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_bulk_price.rb +1 -1
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_price.rb +1 -5
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_plan_package_price.rb +1 -5
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_price.rb +1 -5
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_price.rb +1 -1
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +189 -9
- data/lib/orb/models/plan_create_params.rb +1478 -158
- data/lib/orb/models/plan_fetch_params.rb +7 -1
- data/lib/orb/models/plan_update_params.rb +16 -1
- data/lib/orb/models/plan_version.rb +186 -5
- data/lib/orb/models/plans/external_plan_id_fetch_params.rb +7 -1
- data/lib/orb/models/plans/external_plan_id_update_params.rb +16 -1
- data/lib/orb/models/plans/migration_cancel_params.rb +7 -1
- data/lib/orb/models/plans/migration_cancel_response.rb +22 -4
- data/lib/orb/models/plans/migration_list_params.rb +8 -1
- data/lib/orb/models/plans/migration_list_response.rb +22 -4
- data/lib/orb/models/plans/migration_retrieve_params.rb +7 -1
- data/lib/orb/models/plans/migration_retrieve_response.rb +22 -4
- data/lib/orb/models/price.rb +2807 -1244
- data/lib/orb/models/price_create_params.rb +1800 -1355
- data/lib/orb/models/price_evaluate_multiple_params.rb +889 -54
- data/lib/orb/models/price_evaluate_params.rb +8 -1
- data/lib/orb/models/price_evaluate_preview_events_params.rb +881 -46
- data/lib/orb/models/price_fetch_params.rb +7 -1
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/price_update_params.rb +8 -1
- data/lib/orb/models/prices/external_price_id_fetch_params.rb +7 -1
- data/lib/orb/models/prices/external_price_id_update_params.rb +8 -1
- data/lib/orb/models/subscription.rb +168 -4
- data/lib/orb/models/subscription_cancel_params.rb +8 -1
- data/lib/orb/models/subscription_change_apply_params.rb +8 -1
- data/lib/orb/models/subscription_change_cancel_params.rb +7 -1
- data/lib/orb/models/subscription_change_retrieve_params.rb +7 -1
- data/lib/orb/models/subscription_create_params.rb +2818 -674
- data/lib/orb/models/subscription_fetch_costs_params.rb +8 -1
- data/lib/orb/models/subscription_fetch_params.rb +7 -1
- data/lib/orb/models/subscription_fetch_schedule_params.rb +8 -1
- data/lib/orb/models/subscription_fetch_usage_params.rb +8 -1
- data/lib/orb/models/subscription_price_intervals_params.rb +1103 -55
- data/lib/orb/models/subscription_redeem_coupon_params.rb +8 -1
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +2839 -685
- data/lib/orb/models/subscription_trigger_phase_params.rb +8 -1
- data/lib/orb/models/subscription_unschedule_cancellation_params.rb +7 -1
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +8 -1
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +7 -1
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +8 -1
- data/lib/orb/models/subscription_update_params.rb +19 -1
- data/lib/orb/models/subscription_update_trial_params.rb +8 -1
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/alerts.rb +20 -2
- data/lib/orb/resources/coupons.rb +1 -2
- data/lib/orb/resources/credit_blocks.rb +11 -8
- data/lib/orb/resources/customers/credits/ledger.rb +40 -81
- data/lib/orb/resources/customers.rb +12 -7
- data/lib/orb/resources/events/backfills.rb +3 -4
- data/lib/orb/resources/events.rb +7 -34
- data/lib/orb/resources/invoices.rb +18 -7
- data/lib/orb/resources/licenses/external_licenses.rb +1 -1
- data/lib/orb/resources/licenses/usage.rb +2 -2
- data/lib/orb/resources/metrics.rb +5 -5
- data/lib/orb/resources/plans/external_plan_id.rb +5 -3
- data/lib/orb/resources/plans.rb +9 -5
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +13 -104
- data/lib/orb/resources/subscriptions.rb +24 -7
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -0
- data/rbi/orb/client.rbi +6 -0
- data/rbi/orb/internal/util.rbi +8 -0
- data/rbi/orb/models/accounting_provider_config.rbi +38 -5
- data/rbi/orb/models/adjustment_interval.rbi +336 -0
- data/rbi/orb/models/alert.rbi +182 -3
- data/rbi/orb/models/alert_create_for_customer_params.rbi +6 -0
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +6 -0
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +285 -0
- data/rbi/orb/models/alert_disable_params.rbi +6 -0
- data/rbi/orb/models/alert_enable_params.rbi +6 -0
- data/rbi/orb/models/alert_retrieve_params.rbi +13 -5
- data/rbi/orb/models/alert_update_params.rbi +214 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +5873 -1161
- data/rbi/orb/models/beta/external_plan_id_fetch_plan_version_params.rbi +10 -2
- data/rbi/orb/models/beta/external_plan_id_set_default_plan_version_params.rbi +10 -1
- data/rbi/orb/models/beta_create_plan_version_params.rbi +5877 -1165
- data/rbi/orb/models/beta_fetch_plan_version_params.rbi +10 -2
- data/rbi/orb/models/beta_set_default_plan_version_params.rbi +10 -1
- data/rbi/orb/models/changed_subscription_resources.rbi +360 -5
- data/rbi/orb/models/conversion_rate_config.rbi +18 -0
- data/rbi/orb/models/coupon_archive_params.rbi +13 -5
- data/rbi/orb/models/coupon_fetch_params.rbi +13 -5
- data/rbi/orb/models/coupons/subscription_list_params.rbi +6 -0
- data/rbi/orb/models/credit_block_delete_params.rbi +13 -5
- data/rbi/orb/models/credit_block_list_invoices_params.rbi +13 -5
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +346 -3
- data/rbi/orb/models/credit_block_retrieve_params.rbi +13 -5
- data/rbi/orb/models/credit_block_retrieve_response.rbi +344 -3
- data/rbi/orb/models/credit_note_fetch_params.rbi +13 -5
- data/rbi/orb/models/customer.rbi +202 -0
- data/rbi/orb/models/customer_create_params.rbi +27 -0
- data/rbi/orb/models/customer_delete_params.rbi +13 -5
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +13 -5
- data/rbi/orb/models/customer_fetch_params.rbi +13 -5
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +13 -5
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +13 -5
- data/rbi/orb/models/customer_tax_id.rbi +15 -1
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +51 -4
- data/rbi/orb/models/customer_update_params.rbi +51 -4
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +6 -0
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +6 -0
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/cost_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +346 -3
- data/rbi/orb/models/customers/credit_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_response.rbi +347 -3
- data/rbi/orb/models/customers/credits/decrement_ledger_entry.rbi +4 -0
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +861 -478
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +861 -478
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +6 -1
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +10 -2
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +6 -0
- data/rbi/orb/models/dimensional_price_group.rbi +1 -1
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +16 -5
- data/rbi/orb/models/dimensional_price_group_update_params.rbi +6 -0
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +16 -5
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rbi +6 -0
- data/rbi/orb/models/discount.rbi +269 -1
- data/rbi/orb/models/event_deprecate_params.rbi +13 -5
- data/rbi/orb/models/event_ingest_params.rbi +4 -2
- data/rbi/orb/models/event_update_params.rbi +6 -0
- data/rbi/orb/models/events/backfill_close_params.rbi +13 -5
- data/rbi/orb/models/events/backfill_fetch_params.rbi +13 -5
- data/rbi/orb/models/events/backfill_revert_params.rbi +13 -5
- data/rbi/orb/models/invoice.rbi +360 -5
- data/rbi/orb/models/invoice_create_params.rbi +12 -7
- data/rbi/orb/models/invoice_delete_line_item_params.rbi +10 -2
- data/rbi/orb/models/invoice_fetch_params.rbi +13 -5
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +360 -5
- data/rbi/orb/models/invoice_issue_params.rbi +10 -1
- data/rbi/orb/models/invoice_issue_summary_params.rbi +10 -1
- data/rbi/orb/models/invoice_issue_summary_response.rbi +19 -4
- data/rbi/orb/models/invoice_level_discount.rbi +298 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +339 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +19 -4
- data/rbi/orb/models/invoice_mark_paid_params.rbi +6 -0
- data/rbi/orb/models/invoice_pay_params.rbi +27 -5
- data/rbi/orb/models/invoice_update_params.rbi +6 -0
- data/rbi/orb/models/invoice_void_params.rbi +13 -5
- data/rbi/orb/models/item_archive_params.rbi +13 -5
- data/rbi/orb/models/item_fetch_params.rbi +13 -5
- data/rbi/orb/models/item_update_params.rbi +6 -0
- data/rbi/orb/models/license_deactivate_params.rbi +10 -1
- data/rbi/orb/models/license_retrieve_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/license_retrieve_params.rbi +13 -5
- data/rbi/orb/models/license_type_retrieve_params.rbi +13 -5
- data/rbi/orb/models/licenses/external_license_get_usage_params.rbi +9 -3
- data/rbi/orb/models/licenses/usage_get_all_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_usage_params.rbi +9 -3
- data/rbi/orb/models/metric_fetch_params.rbi +13 -5
- data/rbi/orb/models/metric_update_params.rbi +6 -0
- data/rbi/orb/models/mutated_subscription.rbi +324 -2
- data/rbi/orb/models/new_allocation_price.rbi +12 -0
- data/rbi/orb/models/per_price_cost.rbi +3 -0
- data/rbi/orb/models/plan.rbi +339 -2
- data/rbi/orb/models/plan_create_params.rbi +2566 -209
- data/rbi/orb/models/plan_fetch_params.rbi +13 -5
- data/rbi/orb/models/plan_update_params.rbi +14 -0
- data/rbi/orb/models/plan_version.rbi +339 -0
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +13 -5
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +14 -0
- data/rbi/orb/models/plans/migration_cancel_params.rbi +10 -2
- data/rbi/orb/models/plans/migration_cancel_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_list_params.rbi +6 -0
- data/rbi/orb/models/plans/migration_list_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_retrieve_params.rbi +10 -2
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +22 -1
- data/rbi/orb/models/price.rbi +4733 -2280
- data/rbi/orb/models/price_create_params.rbi +3022 -2408
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_params.rbi +6 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +1540 -114
- data/rbi/orb/models/price_fetch_params.rbi +13 -5
- data/rbi/orb/models/price_interval.rbi +3 -0
- data/rbi/orb/models/price_update_params.rbi +6 -0
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +13 -5
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +6 -0
- data/rbi/orb/models/subscription.rbi +324 -2
- data/rbi/orb/models/subscription_cancel_params.rbi +6 -0
- data/rbi/orb/models/subscription_change_apply_params.rbi +6 -0
- data/rbi/orb/models/subscription_change_cancel_params.rbi +16 -5
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +16 -5
- data/rbi/orb/models/subscription_create_params.rbi +4998 -1186
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +6 -0
- data/rbi/orb/models/subscription_fetch_params.rbi +13 -5
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +6 -0
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +6 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2133 -264
- data/rbi/orb/models/subscription_redeem_coupon_params.rbi +6 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +5001 -1183
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +6 -0
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +13 -5
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +10 -1
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +13 -5
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +6 -0
- data/rbi/orb/models/subscription_update_params.rbi +20 -0
- data/rbi/orb/models/subscription_update_trial_params.rbi +6 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/alerts.rbi +43 -0
- data/rbi/orb/resources/coupons.rbi +1 -2
- data/rbi/orb/resources/credit_blocks.rbi +10 -7
- data/rbi/orb/resources/customers/credits/ledger.rbi +50 -146
- data/rbi/orb/resources/customers.rbi +35 -7
- data/rbi/orb/resources/events/backfills.rbi +3 -4
- data/rbi/orb/resources/events.rbi +8 -35
- data/rbi/orb/resources/invoices.rbi +20 -6
- data/rbi/orb/resources/licenses/external_licenses.rbi +1 -1
- data/rbi/orb/resources/licenses/usage.rbi +2 -2
- data/rbi/orb/resources/metrics.rbi +5 -5
- data/rbi/orb/resources/plans/external_plan_id.rbi +5 -2
- data/rbi/orb/resources/plans.rbi +9 -3
- data/rbi/orb/resources/prices.rbi +38 -184
- data/rbi/orb/resources/subscriptions.rbi +33 -4
- data/sig/orb/client.rbs +3 -0
- data/sig/orb/internal/util.rbs +4 -0
- data/sig/orb/models/accounting_provider_config.rbs +21 -4
- data/sig/orb/models/adjustment_interval.rbs +134 -0
- data/sig/orb/models/alert.rbs +90 -3
- data/sig/orb/models/alert_create_for_customer_params.rbs +5 -0
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +5 -0
- data/sig/orb/models/alert_create_for_subscription_params.rbs +98 -1
- data/sig/orb/models/alert_disable_params.rbs +6 -1
- data/sig/orb/models/alert_enable_params.rbs +6 -1
- data/sig/orb/models/alert_retrieve_params.rbs +9 -3
- data/sig/orb/models/alert_update_params.rbs +90 -1
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +2318 -397
- data/sig/orb/models/beta/external_plan_id_fetch_plan_version_params.rbs +6 -1
- data/sig/orb/models/beta/external_plan_id_set_default_plan_version_params.rbs +6 -1
- data/sig/orb/models/beta_create_plan_version_params.rbs +2300 -389
- data/sig/orb/models/beta_fetch_plan_version_params.rbs +10 -2
- data/sig/orb/models/beta_set_default_plan_version_params.rbs +10 -2
- data/sig/orb/models/changed_subscription_resources.rbs +140 -1
- data/sig/orb/models/conversion_rate_config.rbs +12 -0
- data/sig/orb/models/coupon_archive_params.rbs +12 -3
- data/sig/orb/models/coupon_fetch_params.rbs +12 -3
- data/sig/orb/models/coupons/subscription_list_params.rbs +5 -1
- data/sig/orb/models/credit_block_delete_params.rbs +8 -3
- data/sig/orb/models/credit_block_list_invoices_params.rbs +8 -3
- data/sig/orb/models/credit_block_list_invoices_response.rbs +124 -3
- data/sig/orb/models/credit_block_retrieve_params.rbs +8 -3
- data/sig/orb/models/credit_block_retrieve_response.rbs +124 -3
- data/sig/orb/models/credit_note_fetch_params.rbs +11 -3
- data/sig/orb/models/customer.rbs +79 -1
- data/sig/orb/models/customer_create_params.rbs +12 -1
- data/sig/orb/models/customer_delete_params.rbs +12 -3
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +11 -3
- data/sig/orb/models/customer_fetch_params.rbs +12 -3
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +11 -3
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +11 -3
- data/sig/orb/models/customer_tax_id.rbs +20 -2
- data/sig/orb/models/customer_update_by_external_id_params.rbs +22 -1
- data/sig/orb/models/customer_update_params.rbs +22 -1
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +5 -0
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +5 -0
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/cost_list_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +124 -3
- data/sig/orb/models/customers/credit_list_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_response.rbs +124 -3
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +345 -157
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +345 -157
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +5 -1
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +6 -1
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +5 -1
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +5 -1
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +12 -3
- data/sig/orb/models/dimensional_price_group_update_params.rbs +5 -0
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +12 -3
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rbs +5 -0
- data/sig/orb/models/discount.rbs +114 -0
- data/sig/orb/models/event_deprecate_params.rbs +9 -3
- data/sig/orb/models/event_update_params.rbs +5 -0
- data/sig/orb/models/events/backfill_close_params.rbs +11 -3
- data/sig/orb/models/events/backfill_fetch_params.rbs +11 -3
- data/sig/orb/models/events/backfill_revert_params.rbs +11 -3
- data/sig/orb/models/invoice.rbs +140 -1
- data/sig/orb/models/invoice_delete_line_item_params.rbs +6 -1
- data/sig/orb/models/invoice_fetch_params.rbs +12 -3
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +140 -1
- data/sig/orb/models/invoice_issue_params.rbs +6 -1
- data/sig/orb/models/invoice_issue_summary_params.rbs +6 -1
- data/sig/orb/models/invoice_issue_summary_response.rbs +2 -1
- data/sig/orb/models/invoice_level_discount.rbs +117 -1
- data/sig/orb/models/invoice_line_item_create_response.rbs +134 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +2 -1
- data/sig/orb/models/invoice_mark_paid_params.rbs +10 -1
- data/sig/orb/models/invoice_pay_params.rbs +17 -3
- data/sig/orb/models/invoice_update_params.rbs +5 -0
- data/sig/orb/models/invoice_void_params.rbs +12 -3
- data/sig/orb/models/item_archive_params.rbs +9 -3
- data/sig/orb/models/item_fetch_params.rbs +9 -3
- data/sig/orb/models/item_update_params.rbs +5 -0
- data/sig/orb/models/license_deactivate_params.rbs +10 -2
- data/sig/orb/models/license_retrieve_by_external_id_params.rbs +9 -1
- data/sig/orb/models/license_retrieve_params.rbs +11 -3
- data/sig/orb/models/license_type_retrieve_params.rbs +11 -3
- data/sig/orb/models/licenses/external_license_get_usage_params.rbs +9 -4
- data/sig/orb/models/licenses/usage_get_all_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_usage_params.rbs +9 -4
- data/sig/orb/models/metric_fetch_params.rbs +12 -3
- data/sig/orb/models/metric_update_params.rbs +5 -1
- data/sig/orb/models/mutated_subscription.rbs +124 -0
- data/sig/orb/models/new_allocation_price.rbs +5 -0
- data/sig/orb/models/new_floating_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/plan.rbs +134 -0
- data/sig/orb/models/plan_create_params.rbs +1030 -72
- data/sig/orb/models/plan_fetch_params.rbs +9 -3
- data/sig/orb/models/plan_update_params.rbs +14 -1
- data/sig/orb/models/plan_version.rbs +134 -0
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +11 -3
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +14 -1
- data/sig/orb/models/plans/migration_cancel_params.rbs +6 -1
- data/sig/orb/models/plans/migration_list_params.rbs +5 -1
- data/sig/orb/models/plans/migration_retrieve_params.rbs +6 -1
- data/sig/orb/models/price.rbs +2361 -1156
- data/sig/orb/models/price_create_params.rbs +1124 -931
- data/sig/orb/models/price_evaluate_multiple_params.rbs +626 -23
- data/sig/orb/models/price_evaluate_params.rbs +5 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +626 -23
- data/sig/orb/models/price_fetch_params.rbs +9 -3
- data/sig/orb/models/price_update_params.rbs +5 -1
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +11 -3
- data/sig/orb/models/prices/external_price_id_update_params.rbs +5 -1
- data/sig/orb/models/subscription.rbs +124 -0
- data/sig/orb/models/subscription_cancel_params.rbs +5 -0
- data/sig/orb/models/subscription_change_apply_params.rbs +5 -0
- data/sig/orb/models/subscription_change_cancel_params.rbs +12 -3
- data/sig/orb/models/subscription_change_retrieve_params.rbs +12 -3
- data/sig/orb/models/subscription_create_params.rbs +2009 -430
- data/sig/orb/models/subscription_fetch_costs_params.rbs +5 -0
- data/sig/orb/models/subscription_fetch_params.rbs +11 -3
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +5 -0
- data/sig/orb/models/subscription_fetch_usage_params.rbs +5 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +800 -23
- data/sig/orb/models/subscription_redeem_coupon_params.rbs +5 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2014 -430
- data/sig/orb/models/subscription_trigger_phase_params.rbs +9 -1
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +11 -3
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +10 -2
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +11 -3
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +5 -0
- data/sig/orb/models/subscription_update_params.rbs +10 -0
- data/sig/orb/models/subscription_update_trial_params.rbs +5 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/alerts.rbs +6 -0
- data/sig/orb/resources/customers/credits/ledger.rbs +2 -26
- data/sig/orb/resources/customers.rbs +2 -0
- data/sig/orb/resources/invoices.rbs +1 -0
- data/sig/orb/resources/licenses/external_licenses.rbs +1 -1
- data/sig/orb/resources/licenses/usage.rbs +2 -2
- data/sig/orb/resources/plans/external_plan_id.rbs +1 -0
- data/sig/orb/resources/plans.rbs +2 -0
- data/sig/orb/resources/prices.rbs +1 -48
- data/sig/orb/resources/subscriptions.rbs +3 -0
- metadata +6 -7
|
@@ -2,6 +2,7 @@ module Orb
|
|
|
2
2
|
module Models
|
|
3
3
|
type beta_create_plan_version_params =
|
|
4
4
|
{
|
|
5
|
+
plan_id: String,
|
|
5
6
|
version: Integer,
|
|
6
7
|
add_adjustments: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment]?,
|
|
7
8
|
add_prices: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice]?,
|
|
@@ -17,6 +18,8 @@ module Orb
|
|
|
17
18
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
18
19
|
include Orb::Internal::Type::RequestParameters
|
|
19
20
|
|
|
21
|
+
attr_accessor plan_id: String
|
|
22
|
+
|
|
20
23
|
attr_accessor version: Integer
|
|
21
24
|
|
|
22
25
|
attr_accessor add_adjustments: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment]?
|
|
@@ -34,6 +37,7 @@ module Orb
|
|
|
34
37
|
attr_accessor set_as_default: bool?
|
|
35
38
|
|
|
36
39
|
def initialize: (
|
|
40
|
+
plan_id: String,
|
|
37
41
|
version: Integer,
|
|
38
42
|
?add_adjustments: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment]?,
|
|
39
43
|
?add_prices: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice]?,
|
|
@@ -46,6 +50,7 @@ module Orb
|
|
|
46
50
|
) -> void
|
|
47
51
|
|
|
48
52
|
def to_hash: -> {
|
|
53
|
+
plan_id: String,
|
|
49
54
|
version: Integer,
|
|
50
55
|
add_adjustments: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment]?,
|
|
51
56
|
add_prices: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice]?,
|
|
@@ -84,10 +89,179 @@ module Orb
|
|
|
84
89
|
| Orb::NewAmountDiscount
|
|
85
90
|
| Orb::NewMinimum
|
|
86
91
|
| Orb::NewMaximum
|
|
92
|
+
| Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount
|
|
87
93
|
|
|
88
94
|
module Adjustment
|
|
89
95
|
extend Orb::Internal::Type::Union
|
|
90
96
|
|
|
97
|
+
type tiered_percentage_discount =
|
|
98
|
+
{
|
|
99
|
+
adjustment_type: :tiered_percentage_discount,
|
|
100
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
101
|
+
applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
102
|
+
applies_to_item_ids: ::Array[String]?,
|
|
103
|
+
applies_to_price_ids: ::Array[String]?,
|
|
104
|
+
currency: String?,
|
|
105
|
+
filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
106
|
+
is_invoice_level: bool,
|
|
107
|
+
price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
111
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
112
|
+
|
|
113
|
+
attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
114
|
+
|
|
115
|
+
attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
116
|
+
|
|
117
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
118
|
+
|
|
119
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
120
|
+
|
|
121
|
+
attr_accessor currency: String?
|
|
122
|
+
|
|
123
|
+
attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
124
|
+
|
|
125
|
+
attr_reader is_invoice_level: bool?
|
|
126
|
+
|
|
127
|
+
def is_invoice_level=: (bool) -> bool
|
|
128
|
+
|
|
129
|
+
attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
130
|
+
|
|
131
|
+
def initialize: (
|
|
132
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
133
|
+
?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
134
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
135
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
136
|
+
?currency: String?,
|
|
137
|
+
?filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
138
|
+
?is_invoice_level: bool,
|
|
139
|
+
?price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
140
|
+
?adjustment_type: :tiered_percentage_discount
|
|
141
|
+
) -> void
|
|
142
|
+
|
|
143
|
+
def to_hash: -> {
|
|
144
|
+
adjustment_type: :tiered_percentage_discount,
|
|
145
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
146
|
+
applies_to_all: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
147
|
+
applies_to_item_ids: ::Array[String]?,
|
|
148
|
+
applies_to_price_ids: ::Array[String]?,
|
|
149
|
+
currency: String?,
|
|
150
|
+
filters: ::Array[Orb::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
151
|
+
is_invoice_level: bool,
|
|
152
|
+
price_type: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
type tier =
|
|
156
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
157
|
+
|
|
158
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
159
|
+
attr_accessor lower_bound: Float
|
|
160
|
+
|
|
161
|
+
attr_accessor percentage: Float
|
|
162
|
+
|
|
163
|
+
attr_accessor upper_bound: Float?
|
|
164
|
+
|
|
165
|
+
def initialize: (
|
|
166
|
+
lower_bound: Float,
|
|
167
|
+
percentage: Float,
|
|
168
|
+
?upper_bound: Float?
|
|
169
|
+
) -> void
|
|
170
|
+
|
|
171
|
+
def to_hash: -> {
|
|
172
|
+
lower_bound: Float,
|
|
173
|
+
percentage: Float,
|
|
174
|
+
upper_bound: Float?
|
|
175
|
+
}
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
type applies_to_all = true
|
|
179
|
+
|
|
180
|
+
module AppliesToAll
|
|
181
|
+
extend Orb::Internal::Type::Enum
|
|
182
|
+
|
|
183
|
+
TRUE: true
|
|
184
|
+
|
|
185
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
type filter =
|
|
189
|
+
{
|
|
190
|
+
field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
191
|
+
operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
192
|
+
values: ::Array[String]
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
196
|
+
attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
197
|
+
|
|
198
|
+
attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
199
|
+
|
|
200
|
+
attr_accessor values: ::Array[String]
|
|
201
|
+
|
|
202
|
+
def initialize: (
|
|
203
|
+
field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
204
|
+
operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
205
|
+
values: ::Array[String]
|
|
206
|
+
) -> void
|
|
207
|
+
|
|
208
|
+
def to_hash: -> {
|
|
209
|
+
field: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
210
|
+
operator: Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
211
|
+
values: ::Array[String]
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
type field =
|
|
215
|
+
:price_id
|
|
216
|
+
| :item_id
|
|
217
|
+
| :price_type
|
|
218
|
+
| :currency
|
|
219
|
+
| :pricing_unit_id
|
|
220
|
+
|
|
221
|
+
module Field
|
|
222
|
+
extend Orb::Internal::Type::Enum
|
|
223
|
+
|
|
224
|
+
PRICE_ID: :price_id
|
|
225
|
+
ITEM_ID: :item_id
|
|
226
|
+
PRICE_TYPE: :price_type
|
|
227
|
+
CURRENCY: :currency
|
|
228
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
229
|
+
|
|
230
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
type operator = :includes | :excludes
|
|
234
|
+
|
|
235
|
+
module Operator
|
|
236
|
+
extend Orb::Internal::Type::Enum
|
|
237
|
+
|
|
238
|
+
INCLUDES: :includes
|
|
239
|
+
EXCLUDES: :excludes
|
|
240
|
+
|
|
241
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
type price_type =
|
|
246
|
+
:usage
|
|
247
|
+
| :fixed_in_advance
|
|
248
|
+
| :fixed_in_arrears
|
|
249
|
+
| :fixed
|
|
250
|
+
| :in_arrears
|
|
251
|
+
|
|
252
|
+
module PriceType
|
|
253
|
+
extend Orb::Internal::Type::Enum
|
|
254
|
+
|
|
255
|
+
USAGE: :usage
|
|
256
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
257
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
258
|
+
FIXED: :fixed
|
|
259
|
+
IN_ARREARS: :in_arrears
|
|
260
|
+
|
|
261
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
91
265
|
def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddAdjustment::adjustment]
|
|
92
266
|
end
|
|
93
267
|
end
|
|
@@ -95,6 +269,7 @@ module Orb
|
|
|
95
269
|
type add_price =
|
|
96
270
|
{
|
|
97
271
|
allocation_price: Orb::NewAllocationPrice?,
|
|
272
|
+
license_allocation_price: Orb::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?,
|
|
98
273
|
plan_phase_order: Integer?,
|
|
99
274
|
price: Orb::Models::BetaCreatePlanVersionParams::AddPrice::price?
|
|
100
275
|
}
|
|
@@ -102,22 +277,187 @@ module Orb
|
|
|
102
277
|
class AddPrice < Orb::Internal::Type::BaseModel
|
|
103
278
|
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
104
279
|
|
|
280
|
+
attr_accessor license_allocation_price: Orb::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?
|
|
281
|
+
|
|
105
282
|
attr_accessor plan_phase_order: Integer?
|
|
106
283
|
|
|
107
284
|
attr_accessor price: Orb::Models::BetaCreatePlanVersionParams::AddPrice::price?
|
|
108
285
|
|
|
109
286
|
def initialize: (
|
|
110
287
|
?allocation_price: Orb::NewAllocationPrice?,
|
|
288
|
+
?license_allocation_price: Orb::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?,
|
|
111
289
|
?plan_phase_order: Integer?,
|
|
112
290
|
?price: Orb::Models::BetaCreatePlanVersionParams::AddPrice::price?
|
|
113
291
|
) -> void
|
|
114
292
|
|
|
115
293
|
def to_hash: -> {
|
|
116
294
|
allocation_price: Orb::NewAllocationPrice?,
|
|
295
|
+
license_allocation_price: Orb::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?,
|
|
117
296
|
plan_phase_order: Integer?,
|
|
118
297
|
price: Orb::Models::BetaCreatePlanVersionParams::AddPrice::price?
|
|
119
298
|
}
|
|
120
299
|
|
|
300
|
+
type license_allocation_price =
|
|
301
|
+
{
|
|
302
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence,
|
|
303
|
+
item_id: String,
|
|
304
|
+
license_allocations: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation],
|
|
305
|
+
model_type: Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type,
|
|
306
|
+
name: String,
|
|
307
|
+
unit_config: Orb::UnitConfig,
|
|
308
|
+
billable_metric_id: String?,
|
|
309
|
+
billed_in_advance: bool?,
|
|
310
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
311
|
+
conversion_rate: Float?,
|
|
312
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
313
|
+
currency: String?,
|
|
314
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
315
|
+
external_price_id: String?,
|
|
316
|
+
fixed_price_quantity: Float?,
|
|
317
|
+
invoice_grouping_key: String?,
|
|
318
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
319
|
+
license_type_id: String?,
|
|
320
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
321
|
+
reference_id: String?
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
325
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence
|
|
326
|
+
|
|
327
|
+
attr_accessor item_id: String
|
|
328
|
+
|
|
329
|
+
attr_accessor license_allocations: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation]
|
|
330
|
+
|
|
331
|
+
attr_accessor model_type: Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type
|
|
332
|
+
|
|
333
|
+
attr_accessor name: String
|
|
334
|
+
|
|
335
|
+
attr_accessor unit_config: Orb::UnitConfig
|
|
336
|
+
|
|
337
|
+
attr_accessor billable_metric_id: String?
|
|
338
|
+
|
|
339
|
+
attr_accessor billed_in_advance: bool?
|
|
340
|
+
|
|
341
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
342
|
+
|
|
343
|
+
attr_accessor conversion_rate: Float?
|
|
344
|
+
|
|
345
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
346
|
+
|
|
347
|
+
attr_accessor currency: String?
|
|
348
|
+
|
|
349
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
350
|
+
|
|
351
|
+
attr_accessor external_price_id: String?
|
|
352
|
+
|
|
353
|
+
attr_accessor fixed_price_quantity: Float?
|
|
354
|
+
|
|
355
|
+
attr_accessor invoice_grouping_key: String?
|
|
356
|
+
|
|
357
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
358
|
+
|
|
359
|
+
attr_accessor license_type_id: String?
|
|
360
|
+
|
|
361
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
362
|
+
|
|
363
|
+
attr_accessor reference_id: String?
|
|
364
|
+
|
|
365
|
+
def initialize: (
|
|
366
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence,
|
|
367
|
+
item_id: String,
|
|
368
|
+
license_allocations: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation],
|
|
369
|
+
model_type: Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type,
|
|
370
|
+
name: String,
|
|
371
|
+
unit_config: Orb::UnitConfig,
|
|
372
|
+
?billable_metric_id: String?,
|
|
373
|
+
?billed_in_advance: bool?,
|
|
374
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
375
|
+
?conversion_rate: Float?,
|
|
376
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
377
|
+
?currency: String?,
|
|
378
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
379
|
+
?external_price_id: String?,
|
|
380
|
+
?fixed_price_quantity: Float?,
|
|
381
|
+
?invoice_grouping_key: String?,
|
|
382
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
383
|
+
?license_type_id: String?,
|
|
384
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
385
|
+
?reference_id: String?
|
|
386
|
+
) -> void
|
|
387
|
+
|
|
388
|
+
def to_hash: -> {
|
|
389
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence,
|
|
390
|
+
item_id: String,
|
|
391
|
+
license_allocations: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation],
|
|
392
|
+
model_type: Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type,
|
|
393
|
+
name: String,
|
|
394
|
+
unit_config: Orb::UnitConfig,
|
|
395
|
+
billable_metric_id: String?,
|
|
396
|
+
billed_in_advance: bool?,
|
|
397
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
398
|
+
conversion_rate: Float?,
|
|
399
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
400
|
+
currency: String?,
|
|
401
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
402
|
+
external_price_id: String?,
|
|
403
|
+
fixed_price_quantity: Float?,
|
|
404
|
+
invoice_grouping_key: String?,
|
|
405
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
406
|
+
license_type_id: String?,
|
|
407
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
408
|
+
reference_id: String?
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
type cadence =
|
|
412
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
413
|
+
|
|
414
|
+
module Cadence
|
|
415
|
+
extend Orb::Internal::Type::Enum
|
|
416
|
+
|
|
417
|
+
ANNUAL: :annual
|
|
418
|
+
SEMI_ANNUAL: :semi_annual
|
|
419
|
+
MONTHLY: :monthly
|
|
420
|
+
QUARTERLY: :quarterly
|
|
421
|
+
ONE_TIME: :one_time
|
|
422
|
+
CUSTOM: :custom
|
|
423
|
+
|
|
424
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence]
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
type license_allocation =
|
|
428
|
+
{ amount: String, currency: String, write_off_overage: bool? }
|
|
429
|
+
|
|
430
|
+
class LicenseAllocation < Orb::Internal::Type::BaseModel
|
|
431
|
+
attr_accessor amount: String
|
|
432
|
+
|
|
433
|
+
attr_accessor currency: String
|
|
434
|
+
|
|
435
|
+
attr_accessor write_off_overage: bool?
|
|
436
|
+
|
|
437
|
+
def initialize: (
|
|
438
|
+
amount: String,
|
|
439
|
+
currency: String,
|
|
440
|
+
?write_off_overage: bool?
|
|
441
|
+
) -> void
|
|
442
|
+
|
|
443
|
+
def to_hash: -> {
|
|
444
|
+
amount: String,
|
|
445
|
+
currency: String,
|
|
446
|
+
write_off_overage: bool?
|
|
447
|
+
}
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
type model_type = :unit
|
|
451
|
+
|
|
452
|
+
module ModelType
|
|
453
|
+
extend Orb::Internal::Type::Enum
|
|
454
|
+
|
|
455
|
+
UNIT: :unit
|
|
456
|
+
|
|
457
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type]
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
121
461
|
type price =
|
|
122
462
|
Orb::NewPlanUnitPrice
|
|
123
463
|
| Orb::NewPlanTieredPrice
|
|
@@ -133,6 +473,7 @@ module Orb
|
|
|
133
473
|
| Orb::NewPlanPackageWithAllocationPrice
|
|
134
474
|
| Orb::NewPlanUnitWithPercentPrice
|
|
135
475
|
| Orb::NewPlanMatrixWithAllocationPrice
|
|
476
|
+
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts
|
|
136
477
|
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration
|
|
137
478
|
| Orb::NewPlanUnitWithProrationPrice
|
|
138
479
|
| Orb::NewPlanGroupedAllocationPrice
|
|
@@ -147,6 +488,8 @@ module Orb
|
|
|
147
488
|
| Orb::NewPlanScalableMatrixWithTieredPricingPrice
|
|
148
489
|
| Orb::NewPlanCumulativeGroupedBulkPrice
|
|
149
490
|
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation
|
|
491
|
+
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance
|
|
492
|
+
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance
|
|
150
493
|
| Orb::NewPlanMinimumCompositePrice
|
|
151
494
|
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent
|
|
152
495
|
| Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput
|
|
@@ -165,7 +508,7 @@ module Orb
|
|
|
165
508
|
billed_in_advance: bool?,
|
|
166
509
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
167
510
|
conversion_rate: Float?,
|
|
168
|
-
conversion_rate_config: Orb::Models::
|
|
511
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
169
512
|
currency: String?,
|
|
170
513
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
171
514
|
external_price_id: String?,
|
|
@@ -196,7 +539,7 @@ module Orb
|
|
|
196
539
|
|
|
197
540
|
attr_accessor conversion_rate: Float?
|
|
198
541
|
|
|
199
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
542
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
200
543
|
|
|
201
544
|
attr_accessor currency: String?
|
|
202
545
|
|
|
@@ -225,7 +568,7 @@ module Orb
|
|
|
225
568
|
?billed_in_advance: bool?,
|
|
226
569
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
227
570
|
?conversion_rate: Float?,
|
|
228
|
-
?conversion_rate_config: Orb::Models::
|
|
571
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
229
572
|
?currency: String?,
|
|
230
573
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
231
574
|
?external_price_id: String?,
|
|
@@ -248,7 +591,7 @@ module Orb
|
|
|
248
591
|
billed_in_advance: bool?,
|
|
249
592
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
250
593
|
conversion_rate: Float?,
|
|
251
|
-
conversion_rate_config: Orb::Models::
|
|
594
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
252
595
|
currency: String?,
|
|
253
596
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
254
597
|
external_price_id: String?,
|
|
@@ -337,6 +680,239 @@ module Orb
|
|
|
337
680
|
end
|
|
338
681
|
end
|
|
339
682
|
|
|
683
|
+
type matrix_with_threshold_discounts =
|
|
684
|
+
{
|
|
685
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
686
|
+
item_id: String,
|
|
687
|
+
matrix_with_threshold_discounts_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
688
|
+
model_type: :matrix_with_threshold_discounts,
|
|
689
|
+
name: String,
|
|
690
|
+
billable_metric_id: String?,
|
|
691
|
+
billed_in_advance: bool?,
|
|
692
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
693
|
+
conversion_rate: Float?,
|
|
694
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
695
|
+
currency: String?,
|
|
696
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
697
|
+
external_price_id: String?,
|
|
698
|
+
fixed_price_quantity: Float?,
|
|
699
|
+
invoice_grouping_key: String?,
|
|
700
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
701
|
+
license_type_id: String?,
|
|
702
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
703
|
+
reference_id: String?
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
707
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence
|
|
708
|
+
|
|
709
|
+
attr_accessor item_id: String
|
|
710
|
+
|
|
711
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
712
|
+
|
|
713
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
714
|
+
|
|
715
|
+
attr_accessor name: String
|
|
716
|
+
|
|
717
|
+
attr_accessor billable_metric_id: String?
|
|
718
|
+
|
|
719
|
+
attr_accessor billed_in_advance: bool?
|
|
720
|
+
|
|
721
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
722
|
+
|
|
723
|
+
attr_accessor conversion_rate: Float?
|
|
724
|
+
|
|
725
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
726
|
+
|
|
727
|
+
attr_accessor currency: String?
|
|
728
|
+
|
|
729
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
730
|
+
|
|
731
|
+
attr_accessor external_price_id: String?
|
|
732
|
+
|
|
733
|
+
attr_accessor fixed_price_quantity: Float?
|
|
734
|
+
|
|
735
|
+
attr_accessor invoice_grouping_key: String?
|
|
736
|
+
|
|
737
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
738
|
+
|
|
739
|
+
attr_accessor license_type_id: String?
|
|
740
|
+
|
|
741
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
742
|
+
|
|
743
|
+
attr_accessor reference_id: String?
|
|
744
|
+
|
|
745
|
+
def initialize: (
|
|
746
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
747
|
+
item_id: String,
|
|
748
|
+
matrix_with_threshold_discounts_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
749
|
+
name: String,
|
|
750
|
+
?billable_metric_id: String?,
|
|
751
|
+
?billed_in_advance: bool?,
|
|
752
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
753
|
+
?conversion_rate: Float?,
|
|
754
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
755
|
+
?currency: String?,
|
|
756
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
757
|
+
?external_price_id: String?,
|
|
758
|
+
?fixed_price_quantity: Float?,
|
|
759
|
+
?invoice_grouping_key: String?,
|
|
760
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
761
|
+
?license_type_id: String?,
|
|
762
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
763
|
+
?reference_id: String?,
|
|
764
|
+
?model_type: :matrix_with_threshold_discounts
|
|
765
|
+
) -> void
|
|
766
|
+
|
|
767
|
+
def to_hash: -> {
|
|
768
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
769
|
+
item_id: String,
|
|
770
|
+
matrix_with_threshold_discounts_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
771
|
+
model_type: :matrix_with_threshold_discounts,
|
|
772
|
+
name: String,
|
|
773
|
+
billable_metric_id: String?,
|
|
774
|
+
billed_in_advance: bool?,
|
|
775
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
776
|
+
conversion_rate: Float?,
|
|
777
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
778
|
+
currency: String?,
|
|
779
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
780
|
+
external_price_id: String?,
|
|
781
|
+
fixed_price_quantity: Float?,
|
|
782
|
+
invoice_grouping_key: String?,
|
|
783
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
784
|
+
license_type_id: String?,
|
|
785
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
786
|
+
reference_id: String?
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
type cadence =
|
|
790
|
+
:annual
|
|
791
|
+
| :semi_annual
|
|
792
|
+
| :monthly
|
|
793
|
+
| :quarterly
|
|
794
|
+
| :one_time
|
|
795
|
+
| :custom
|
|
796
|
+
|
|
797
|
+
module Cadence
|
|
798
|
+
extend Orb::Internal::Type::Enum
|
|
799
|
+
|
|
800
|
+
ANNUAL: :annual
|
|
801
|
+
SEMI_ANNUAL: :semi_annual
|
|
802
|
+
MONTHLY: :monthly
|
|
803
|
+
QUARTERLY: :quarterly
|
|
804
|
+
ONE_TIME: :one_time
|
|
805
|
+
CUSTOM: :custom
|
|
806
|
+
|
|
807
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence]
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
type matrix_with_threshold_discounts_config =
|
|
811
|
+
{
|
|
812
|
+
default_unit_amount: String,
|
|
813
|
+
first_dimension: String,
|
|
814
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
815
|
+
second_dimension: String?,
|
|
816
|
+
threshold_discount_groups: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
820
|
+
attr_accessor default_unit_amount: String
|
|
821
|
+
|
|
822
|
+
attr_accessor first_dimension: String
|
|
823
|
+
|
|
824
|
+
attr_accessor matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
825
|
+
|
|
826
|
+
attr_accessor second_dimension: String?
|
|
827
|
+
|
|
828
|
+
attr_reader threshold_discount_groups: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
829
|
+
|
|
830
|
+
def threshold_discount_groups=: (
|
|
831
|
+
::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
832
|
+
) -> ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
833
|
+
|
|
834
|
+
def initialize: (
|
|
835
|
+
default_unit_amount: String,
|
|
836
|
+
first_dimension: String,
|
|
837
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
838
|
+
?second_dimension: String?,
|
|
839
|
+
?threshold_discount_groups: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
840
|
+
) -> void
|
|
841
|
+
|
|
842
|
+
def to_hash: -> {
|
|
843
|
+
default_unit_amount: String,
|
|
844
|
+
first_dimension: String,
|
|
845
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
846
|
+
second_dimension: String?,
|
|
847
|
+
threshold_discount_groups: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
type matrix_value =
|
|
851
|
+
{
|
|
852
|
+
first_dimension_value: String,
|
|
853
|
+
unit_amount: String,
|
|
854
|
+
second_dimension_value: String?
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
858
|
+
attr_accessor first_dimension_value: String
|
|
859
|
+
|
|
860
|
+
attr_accessor unit_amount: String
|
|
861
|
+
|
|
862
|
+
attr_accessor second_dimension_value: String?
|
|
863
|
+
|
|
864
|
+
def initialize: (
|
|
865
|
+
first_dimension_value: String,
|
|
866
|
+
unit_amount: String,
|
|
867
|
+
?second_dimension_value: String?
|
|
868
|
+
) -> void
|
|
869
|
+
|
|
870
|
+
def to_hash: -> {
|
|
871
|
+
first_dimension_value: String,
|
|
872
|
+
unit_amount: String,
|
|
873
|
+
second_dimension_value: String?
|
|
874
|
+
}
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
type threshold_discount_group =
|
|
878
|
+
{
|
|
879
|
+
above_threshold_discount_percentage: String,
|
|
880
|
+
below_threshold_discount_percentage: String,
|
|
881
|
+
cell_coordinates: String,
|
|
882
|
+
threshold_amount: String,
|
|
883
|
+
description: String?
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
887
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
888
|
+
|
|
889
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
890
|
+
|
|
891
|
+
attr_accessor cell_coordinates: String
|
|
892
|
+
|
|
893
|
+
attr_accessor threshold_amount: String
|
|
894
|
+
|
|
895
|
+
attr_accessor description: String?
|
|
896
|
+
|
|
897
|
+
def initialize: (
|
|
898
|
+
above_threshold_discount_percentage: String,
|
|
899
|
+
below_threshold_discount_percentage: String,
|
|
900
|
+
cell_coordinates: String,
|
|
901
|
+
threshold_amount: String,
|
|
902
|
+
?description: String?
|
|
903
|
+
) -> void
|
|
904
|
+
|
|
905
|
+
def to_hash: -> {
|
|
906
|
+
above_threshold_discount_percentage: String,
|
|
907
|
+
below_threshold_discount_percentage: String,
|
|
908
|
+
cell_coordinates: String,
|
|
909
|
+
threshold_amount: String,
|
|
910
|
+
description: String?
|
|
911
|
+
}
|
|
912
|
+
end
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
|
|
340
916
|
type tiered_with_proration =
|
|
341
917
|
{
|
|
342
918
|
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence,
|
|
@@ -348,7 +924,7 @@ module Orb
|
|
|
348
924
|
billed_in_advance: bool?,
|
|
349
925
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
350
926
|
conversion_rate: Float?,
|
|
351
|
-
conversion_rate_config: Orb::Models::
|
|
927
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
352
928
|
currency: String?,
|
|
353
929
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
354
930
|
external_price_id: String?,
|
|
@@ -379,7 +955,7 @@ module Orb
|
|
|
379
955
|
|
|
380
956
|
attr_accessor conversion_rate: Float?
|
|
381
957
|
|
|
382
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
958
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
383
959
|
|
|
384
960
|
attr_accessor currency: String?
|
|
385
961
|
|
|
@@ -408,7 +984,7 @@ module Orb
|
|
|
408
984
|
?billed_in_advance: bool?,
|
|
409
985
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
410
986
|
?conversion_rate: Float?,
|
|
411
|
-
?conversion_rate_config: Orb::Models::
|
|
987
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
412
988
|
?currency: String?,
|
|
413
989
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
414
990
|
?external_price_id: String?,
|
|
@@ -431,7 +1007,7 @@ module Orb
|
|
|
431
1007
|
billed_in_advance: bool?,
|
|
432
1008
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
433
1009
|
conversion_rate: Float?,
|
|
434
|
-
conversion_rate_config: Orb::Models::
|
|
1010
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
435
1011
|
currency: String?,
|
|
436
1012
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
437
1013
|
external_price_id: String?,
|
|
@@ -511,7 +1087,7 @@ module Orb
|
|
|
511
1087
|
billed_in_advance: bool?,
|
|
512
1088
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
513
1089
|
conversion_rate: Float?,
|
|
514
|
-
conversion_rate_config: Orb::Models::
|
|
1090
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
515
1091
|
currency: String?,
|
|
516
1092
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
517
1093
|
external_price_id: String?,
|
|
@@ -542,7 +1118,7 @@ module Orb
|
|
|
542
1118
|
|
|
543
1119
|
attr_accessor conversion_rate: Float?
|
|
544
1120
|
|
|
545
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1121
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
546
1122
|
|
|
547
1123
|
attr_accessor currency: String?
|
|
548
1124
|
|
|
@@ -571,7 +1147,7 @@ module Orb
|
|
|
571
1147
|
?billed_in_advance: bool?,
|
|
572
1148
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
573
1149
|
?conversion_rate: Float?,
|
|
574
|
-
?conversion_rate_config: Orb::Models::
|
|
1150
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
575
1151
|
?currency: String?,
|
|
576
1152
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
577
1153
|
?external_price_id: String?,
|
|
@@ -594,7 +1170,7 @@ module Orb
|
|
|
594
1170
|
billed_in_advance: bool?,
|
|
595
1171
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
596
1172
|
conversion_rate: Float?,
|
|
597
|
-
conversion_rate_config: Orb::Models::
|
|
1173
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
598
1174
|
currency: String?,
|
|
599
1175
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
600
1176
|
external_price_id: String?,
|
|
@@ -671,7 +1247,7 @@ module Orb
|
|
|
671
1247
|
billed_in_advance: bool?,
|
|
672
1248
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
673
1249
|
conversion_rate: Float?,
|
|
674
|
-
conversion_rate_config: Orb::Models::
|
|
1250
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
675
1251
|
currency: String?,
|
|
676
1252
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
677
1253
|
external_price_id: String?,
|
|
@@ -702,7 +1278,7 @@ module Orb
|
|
|
702
1278
|
|
|
703
1279
|
attr_accessor conversion_rate: Float?
|
|
704
1280
|
|
|
705
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1281
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
706
1282
|
|
|
707
1283
|
attr_accessor currency: String?
|
|
708
1284
|
|
|
@@ -731,7 +1307,7 @@ module Orb
|
|
|
731
1307
|
?billed_in_advance: bool?,
|
|
732
1308
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
733
1309
|
?conversion_rate: Float?,
|
|
734
|
-
?conversion_rate_config: Orb::Models::
|
|
1310
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
735
1311
|
?currency: String?,
|
|
736
1312
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
737
1313
|
?external_price_id: String?,
|
|
@@ -754,7 +1330,7 @@ module Orb
|
|
|
754
1330
|
billed_in_advance: bool?,
|
|
755
1331
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
756
1332
|
conversion_rate: Float?,
|
|
757
|
-
conversion_rate_config: Orb::Models::
|
|
1333
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
758
1334
|
currency: String?,
|
|
759
1335
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
760
1336
|
external_price_id: String?,
|
|
@@ -820,18 +1396,18 @@ module Orb
|
|
|
820
1396
|
end
|
|
821
1397
|
end
|
|
822
1398
|
|
|
823
|
-
type
|
|
1399
|
+
type daily_credit_allowance =
|
|
824
1400
|
{
|
|
825
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
1401
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1402
|
+
daily_credit_allowance_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
826
1403
|
item_id: String,
|
|
827
|
-
model_type: :
|
|
1404
|
+
model_type: :daily_credit_allowance,
|
|
828
1405
|
name: String,
|
|
829
|
-
percent_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
830
1406
|
billable_metric_id: String?,
|
|
831
1407
|
billed_in_advance: bool?,
|
|
832
1408
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
833
1409
|
conversion_rate: Float?,
|
|
834
|
-
conversion_rate_config: Orb::Models::
|
|
1410
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
835
1411
|
currency: String?,
|
|
836
1412
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
837
1413
|
external_price_id: String?,
|
|
@@ -843,17 +1419,17 @@ module Orb
|
|
|
843
1419
|
reference_id: String?
|
|
844
1420
|
}
|
|
845
1421
|
|
|
846
|
-
class
|
|
847
|
-
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
1422
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
1423
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence
|
|
1424
|
+
|
|
1425
|
+
attr_accessor daily_credit_allowance_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
848
1426
|
|
|
849
1427
|
attr_accessor item_id: String
|
|
850
1428
|
|
|
851
|
-
attr_accessor model_type: :
|
|
1429
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
852
1430
|
|
|
853
1431
|
attr_accessor name: String
|
|
854
1432
|
|
|
855
|
-
attr_accessor percent_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig
|
|
856
|
-
|
|
857
1433
|
attr_accessor billable_metric_id: String?
|
|
858
1434
|
|
|
859
1435
|
attr_accessor billed_in_advance: bool?
|
|
@@ -862,7 +1438,7 @@ module Orb
|
|
|
862
1438
|
|
|
863
1439
|
attr_accessor conversion_rate: Float?
|
|
864
1440
|
|
|
865
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1441
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
866
1442
|
|
|
867
1443
|
attr_accessor currency: String?
|
|
868
1444
|
|
|
@@ -883,15 +1459,15 @@ module Orb
|
|
|
883
1459
|
attr_accessor reference_id: String?
|
|
884
1460
|
|
|
885
1461
|
def initialize: (
|
|
886
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
1462
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1463
|
+
daily_credit_allowance_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
887
1464
|
item_id: String,
|
|
888
1465
|
name: String,
|
|
889
|
-
percent_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
890
1466
|
?billable_metric_id: String?,
|
|
891
1467
|
?billed_in_advance: bool?,
|
|
892
1468
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
893
1469
|
?conversion_rate: Float?,
|
|
894
|
-
?conversion_rate_config: Orb::Models::
|
|
1470
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
895
1471
|
?currency: String?,
|
|
896
1472
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
897
1473
|
?external_price_id: String?,
|
|
@@ -901,20 +1477,20 @@ module Orb
|
|
|
901
1477
|
?license_type_id: String?,
|
|
902
1478
|
?metadata: ::Hash[Symbol, String?]?,
|
|
903
1479
|
?reference_id: String?,
|
|
904
|
-
?model_type: :
|
|
1480
|
+
?model_type: :daily_credit_allowance
|
|
905
1481
|
) -> void
|
|
906
1482
|
|
|
907
1483
|
def to_hash: -> {
|
|
908
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
1484
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1485
|
+
daily_credit_allowance_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
909
1486
|
item_id: String,
|
|
910
|
-
model_type: :
|
|
1487
|
+
model_type: :daily_credit_allowance,
|
|
911
1488
|
name: String,
|
|
912
|
-
percent_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
913
1489
|
billable_metric_id: String?,
|
|
914
1490
|
billed_in_advance: bool?,
|
|
915
1491
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
916
1492
|
conversion_rate: Float?,
|
|
917
|
-
conversion_rate_config: Orb::Models::
|
|
1493
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
918
1494
|
currency: String?,
|
|
919
1495
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
920
1496
|
external_price_id: String?,
|
|
@@ -944,32 +1520,78 @@ module Orb
|
|
|
944
1520
|
ONE_TIME: :one_time
|
|
945
1521
|
CUSTOM: :custom
|
|
946
1522
|
|
|
947
|
-
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
1523
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence]
|
|
948
1524
|
end
|
|
949
1525
|
|
|
950
|
-
type
|
|
1526
|
+
type daily_credit_allowance_config =
|
|
1527
|
+
{
|
|
1528
|
+
daily_allowance: String,
|
|
1529
|
+
default_unit_amount: String,
|
|
1530
|
+
dimensions: ::Array[String?],
|
|
1531
|
+
event_day_property: String,
|
|
1532
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1533
|
+
}
|
|
951
1534
|
|
|
952
|
-
class
|
|
953
|
-
attr_accessor
|
|
1535
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1536
|
+
attr_accessor daily_allowance: String
|
|
1537
|
+
|
|
1538
|
+
attr_accessor default_unit_amount: String
|
|
1539
|
+
|
|
1540
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1541
|
+
|
|
1542
|
+
attr_accessor event_day_property: String
|
|
1543
|
+
|
|
1544
|
+
attr_accessor matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
954
1545
|
|
|
955
|
-
def initialize: (
|
|
1546
|
+
def initialize: (
|
|
1547
|
+
daily_allowance: String,
|
|
1548
|
+
default_unit_amount: String,
|
|
1549
|
+
dimensions: ::Array[String?],
|
|
1550
|
+
event_day_property: String,
|
|
1551
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1552
|
+
) -> void
|
|
1553
|
+
|
|
1554
|
+
def to_hash: -> {
|
|
1555
|
+
daily_allowance: String,
|
|
1556
|
+
default_unit_amount: String,
|
|
1557
|
+
dimensions: ::Array[String?],
|
|
1558
|
+
event_day_property: String,
|
|
1559
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
type matrix_value =
|
|
1563
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
1564
|
+
|
|
1565
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
1566
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
1567
|
+
|
|
1568
|
+
attr_accessor unit_amount: String
|
|
1569
|
+
|
|
1570
|
+
def initialize: (
|
|
1571
|
+
dimension_values: ::Array[String?],
|
|
1572
|
+
unit_amount: String
|
|
1573
|
+
) -> void
|
|
956
1574
|
|
|
957
|
-
|
|
1575
|
+
def to_hash: -> {
|
|
1576
|
+
dimension_values: ::Array[String?],
|
|
1577
|
+
unit_amount: String
|
|
1578
|
+
}
|
|
1579
|
+
end
|
|
958
1580
|
end
|
|
959
1581
|
end
|
|
960
1582
|
|
|
961
|
-
type
|
|
1583
|
+
type metered_allowance =
|
|
962
1584
|
{
|
|
963
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
964
|
-
event_output_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1585
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
965
1586
|
item_id: String,
|
|
966
|
-
|
|
1587
|
+
metered_allowance_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1588
|
+
model_type: :metered_allowance,
|
|
967
1589
|
name: String,
|
|
968
1590
|
billable_metric_id: String?,
|
|
969
1591
|
billed_in_advance: bool?,
|
|
970
1592
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
971
1593
|
conversion_rate: Float?,
|
|
972
|
-
conversion_rate_config: Orb::Models::
|
|
1594
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
973
1595
|
currency: String?,
|
|
974
1596
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
975
1597
|
external_price_id: String?,
|
|
@@ -981,14 +1603,14 @@ module Orb
|
|
|
981
1603
|
reference_id: String?
|
|
982
1604
|
}
|
|
983
1605
|
|
|
984
|
-
class
|
|
985
|
-
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
986
|
-
|
|
987
|
-
attr_accessor event_output_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig
|
|
1606
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
1607
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence
|
|
988
1608
|
|
|
989
1609
|
attr_accessor item_id: String
|
|
990
1610
|
|
|
991
|
-
attr_accessor
|
|
1611
|
+
attr_accessor metered_allowance_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
1612
|
+
|
|
1613
|
+
attr_accessor model_type: :metered_allowance
|
|
992
1614
|
|
|
993
1615
|
attr_accessor name: String
|
|
994
1616
|
|
|
@@ -1000,7 +1622,7 @@ module Orb
|
|
|
1000
1622
|
|
|
1001
1623
|
attr_accessor conversion_rate: Float?
|
|
1002
1624
|
|
|
1003
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1625
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1004
1626
|
|
|
1005
1627
|
attr_accessor currency: String?
|
|
1006
1628
|
|
|
@@ -1021,15 +1643,15 @@ module Orb
|
|
|
1021
1643
|
attr_accessor reference_id: String?
|
|
1022
1644
|
|
|
1023
1645
|
def initialize: (
|
|
1024
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
1025
|
-
event_output_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1646
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1026
1647
|
item_id: String,
|
|
1648
|
+
metered_allowance_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1027
1649
|
name: String,
|
|
1028
1650
|
?billable_metric_id: String?,
|
|
1029
1651
|
?billed_in_advance: bool?,
|
|
1030
1652
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1031
1653
|
?conversion_rate: Float?,
|
|
1032
|
-
?conversion_rate_config: Orb::Models::
|
|
1654
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1033
1655
|
?currency: String?,
|
|
1034
1656
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1035
1657
|
?external_price_id: String?,
|
|
@@ -1039,20 +1661,20 @@ module Orb
|
|
|
1039
1661
|
?license_type_id: String?,
|
|
1040
1662
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1041
1663
|
?reference_id: String?,
|
|
1042
|
-
?model_type: :
|
|
1664
|
+
?model_type: :metered_allowance
|
|
1043
1665
|
) -> void
|
|
1044
1666
|
|
|
1045
1667
|
def to_hash: -> {
|
|
1046
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
1047
|
-
event_output_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1668
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1048
1669
|
item_id: String,
|
|
1049
|
-
|
|
1670
|
+
metered_allowance_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1671
|
+
model_type: :metered_allowance,
|
|
1050
1672
|
name: String,
|
|
1051
1673
|
billable_metric_id: String?,
|
|
1052
1674
|
billed_in_advance: bool?,
|
|
1053
1675
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1054
1676
|
conversion_rate: Float?,
|
|
1055
|
-
conversion_rate_config: Orb::Models::
|
|
1677
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1056
1678
|
currency: String?,
|
|
1057
1679
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1058
1680
|
external_price_id: String?,
|
|
@@ -1082,188 +1704,68 @@ module Orb
|
|
|
1082
1704
|
ONE_TIME: :one_time
|
|
1083
1705
|
CUSTOM: :custom
|
|
1084
1706
|
|
|
1085
|
-
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::
|
|
1707
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence]
|
|
1086
1708
|
end
|
|
1087
1709
|
|
|
1088
|
-
type
|
|
1710
|
+
type metered_allowance_config =
|
|
1089
1711
|
{
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
grouping_key: String
|
|
1712
|
+
allowance_grouping_value: String,
|
|
1713
|
+
consumption_grouping_value: String,
|
|
1714
|
+
grouping_key: String,
|
|
1715
|
+
unit_amount: String,
|
|
1716
|
+
allowance_display_name: String,
|
|
1717
|
+
consumption_display_name: String
|
|
1093
1718
|
}
|
|
1094
1719
|
|
|
1095
|
-
class
|
|
1096
|
-
attr_accessor
|
|
1720
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1721
|
+
attr_accessor allowance_grouping_value: String
|
|
1097
1722
|
|
|
1098
|
-
attr_accessor
|
|
1723
|
+
attr_accessor consumption_grouping_value: String
|
|
1099
1724
|
|
|
1100
|
-
attr_accessor grouping_key: String
|
|
1725
|
+
attr_accessor grouping_key: String
|
|
1726
|
+
|
|
1727
|
+
attr_accessor unit_amount: String
|
|
1728
|
+
|
|
1729
|
+
attr_reader allowance_display_name: String?
|
|
1730
|
+
|
|
1731
|
+
def allowance_display_name=: (String) -> String
|
|
1732
|
+
|
|
1733
|
+
attr_reader consumption_display_name: String?
|
|
1734
|
+
|
|
1735
|
+
def consumption_display_name=: (String) -> String
|
|
1101
1736
|
|
|
1102
1737
|
def initialize: (
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1738
|
+
allowance_grouping_value: String,
|
|
1739
|
+
consumption_grouping_value: String,
|
|
1740
|
+
grouping_key: String,
|
|
1741
|
+
unit_amount: String,
|
|
1742
|
+
?allowance_display_name: String,
|
|
1743
|
+
?consumption_display_name: String
|
|
1106
1744
|
) -> void
|
|
1107
1745
|
|
|
1108
1746
|
def to_hash: -> {
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
grouping_key: String
|
|
1747
|
+
allowance_grouping_value: String,
|
|
1748
|
+
consumption_grouping_value: String,
|
|
1749
|
+
grouping_key: String,
|
|
1750
|
+
unit_amount: String,
|
|
1751
|
+
allowance_display_name: String,
|
|
1752
|
+
consumption_display_name: String
|
|
1112
1753
|
}
|
|
1113
1754
|
end
|
|
1114
1755
|
end
|
|
1115
1756
|
|
|
1116
|
-
|
|
1117
|
-
end
|
|
1118
|
-
end
|
|
1119
|
-
|
|
1120
|
-
type remove_adjustment =
|
|
1121
|
-
{ adjustment_id: String, plan_phase_order: Integer? }
|
|
1122
|
-
|
|
1123
|
-
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
1124
|
-
attr_accessor adjustment_id: String
|
|
1125
|
-
|
|
1126
|
-
attr_accessor plan_phase_order: Integer?
|
|
1127
|
-
|
|
1128
|
-
def initialize: (
|
|
1129
|
-
adjustment_id: String,
|
|
1130
|
-
?plan_phase_order: Integer?
|
|
1131
|
-
) -> void
|
|
1132
|
-
|
|
1133
|
-
def to_hash: -> { adjustment_id: String, plan_phase_order: Integer? }
|
|
1134
|
-
end
|
|
1135
|
-
|
|
1136
|
-
type remove_price = { price_id: String, plan_phase_order: Integer? }
|
|
1137
|
-
|
|
1138
|
-
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
1139
|
-
attr_accessor price_id: String
|
|
1140
|
-
|
|
1141
|
-
attr_accessor plan_phase_order: Integer?
|
|
1142
|
-
|
|
1143
|
-
def initialize: (price_id: String, ?plan_phase_order: Integer?) -> void
|
|
1144
|
-
|
|
1145
|
-
def to_hash: -> { price_id: String, plan_phase_order: Integer? }
|
|
1146
|
-
end
|
|
1147
|
-
|
|
1148
|
-
type replace_adjustment =
|
|
1149
|
-
{
|
|
1150
|
-
adjustment: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
1151
|
-
replaces_adjustment_id: String,
|
|
1152
|
-
plan_phase_order: Integer?
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
1156
|
-
attr_accessor adjustment: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment
|
|
1157
|
-
|
|
1158
|
-
attr_accessor replaces_adjustment_id: String
|
|
1159
|
-
|
|
1160
|
-
attr_accessor plan_phase_order: Integer?
|
|
1161
|
-
|
|
1162
|
-
def initialize: (
|
|
1163
|
-
adjustment: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
1164
|
-
replaces_adjustment_id: String,
|
|
1165
|
-
?plan_phase_order: Integer?
|
|
1166
|
-
) -> void
|
|
1167
|
-
|
|
1168
|
-
def to_hash: -> {
|
|
1169
|
-
adjustment: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
1170
|
-
replaces_adjustment_id: String,
|
|
1171
|
-
plan_phase_order: Integer?
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
type adjustment =
|
|
1175
|
-
Orb::NewPercentageDiscount
|
|
1176
|
-
| Orb::NewUsageDiscount
|
|
1177
|
-
| Orb::NewAmountDiscount
|
|
1178
|
-
| Orb::NewMinimum
|
|
1179
|
-
| Orb::NewMaximum
|
|
1180
|
-
|
|
1181
|
-
module Adjustment
|
|
1182
|
-
extend Orb::Internal::Type::Union
|
|
1183
|
-
|
|
1184
|
-
def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment]
|
|
1185
|
-
end
|
|
1186
|
-
end
|
|
1187
|
-
|
|
1188
|
-
type replace_price =
|
|
1189
|
-
{
|
|
1190
|
-
replaces_price_id: String,
|
|
1191
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1192
|
-
plan_phase_order: Integer?,
|
|
1193
|
-
price: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price?
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
1197
|
-
attr_accessor replaces_price_id: String
|
|
1198
|
-
|
|
1199
|
-
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
1200
|
-
|
|
1201
|
-
attr_accessor plan_phase_order: Integer?
|
|
1202
|
-
|
|
1203
|
-
attr_accessor price: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price?
|
|
1204
|
-
|
|
1205
|
-
def initialize: (
|
|
1206
|
-
replaces_price_id: String,
|
|
1207
|
-
?allocation_price: Orb::NewAllocationPrice?,
|
|
1208
|
-
?plan_phase_order: Integer?,
|
|
1209
|
-
?price: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price?
|
|
1210
|
-
) -> void
|
|
1211
|
-
|
|
1212
|
-
def to_hash: -> {
|
|
1213
|
-
replaces_price_id: String,
|
|
1214
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1215
|
-
plan_phase_order: Integer?,
|
|
1216
|
-
price: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price?
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
type price =
|
|
1220
|
-
Orb::NewPlanUnitPrice
|
|
1221
|
-
| Orb::NewPlanTieredPrice
|
|
1222
|
-
| Orb::NewPlanBulkPrice
|
|
1223
|
-
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters
|
|
1224
|
-
| Orb::NewPlanPackagePrice
|
|
1225
|
-
| Orb::NewPlanMatrixPrice
|
|
1226
|
-
| Orb::NewPlanThresholdTotalAmountPrice
|
|
1227
|
-
| Orb::NewPlanTieredPackagePrice
|
|
1228
|
-
| Orb::NewPlanTieredWithMinimumPrice
|
|
1229
|
-
| Orb::NewPlanGroupedTieredPrice
|
|
1230
|
-
| Orb::NewPlanTieredPackageWithMinimumPrice
|
|
1231
|
-
| Orb::NewPlanPackageWithAllocationPrice
|
|
1232
|
-
| Orb::NewPlanUnitWithPercentPrice
|
|
1233
|
-
| Orb::NewPlanMatrixWithAllocationPrice
|
|
1234
|
-
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration
|
|
1235
|
-
| Orb::NewPlanUnitWithProrationPrice
|
|
1236
|
-
| Orb::NewPlanGroupedAllocationPrice
|
|
1237
|
-
| Orb::NewPlanBulkWithProrationPrice
|
|
1238
|
-
| Orb::NewPlanGroupedWithProratedMinimumPrice
|
|
1239
|
-
| Orb::NewPlanGroupedWithMeteredMinimumPrice
|
|
1240
|
-
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
1241
|
-
| Orb::NewPlanMatrixWithDisplayNamePrice
|
|
1242
|
-
| Orb::NewPlanGroupedTieredPackagePrice
|
|
1243
|
-
| Orb::NewPlanMaxGroupTieredPackagePrice
|
|
1244
|
-
| Orb::NewPlanScalableMatrixWithUnitPricingPrice
|
|
1245
|
-
| Orb::NewPlanScalableMatrixWithTieredPricingPrice
|
|
1246
|
-
| Orb::NewPlanCumulativeGroupedBulkPrice
|
|
1247
|
-
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
1248
|
-
| Orb::NewPlanMinimumCompositePrice
|
|
1249
|
-
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Percent
|
|
1250
|
-
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::EventOutput
|
|
1251
|
-
|
|
1252
|
-
module Price
|
|
1253
|
-
extend Orb::Internal::Type::Union
|
|
1254
|
-
|
|
1255
|
-
type bulk_with_filters =
|
|
1757
|
+
type percent =
|
|
1256
1758
|
{
|
|
1257
|
-
|
|
1258
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1759
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Percent::cadence,
|
|
1259
1760
|
item_id: String,
|
|
1260
|
-
model_type: :
|
|
1761
|
+
model_type: :percent,
|
|
1261
1762
|
name: String,
|
|
1763
|
+
percent_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
1262
1764
|
billable_metric_id: String?,
|
|
1263
1765
|
billed_in_advance: bool?,
|
|
1264
1766
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1265
1767
|
conversion_rate: Float?,
|
|
1266
|
-
conversion_rate_config: Orb::Models::
|
|
1768
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1267
1769
|
currency: String?,
|
|
1268
1770
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1269
1771
|
external_price_id: String?,
|
|
@@ -1275,17 +1777,17 @@ module Orb
|
|
|
1275
1777
|
reference_id: String?
|
|
1276
1778
|
}
|
|
1277
1779
|
|
|
1278
|
-
class
|
|
1279
|
-
attr_accessor
|
|
1280
|
-
|
|
1281
|
-
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence
|
|
1780
|
+
class Percent < Orb::Internal::Type::BaseModel
|
|
1781
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Percent::cadence
|
|
1282
1782
|
|
|
1283
1783
|
attr_accessor item_id: String
|
|
1284
1784
|
|
|
1285
|
-
attr_accessor model_type: :
|
|
1785
|
+
attr_accessor model_type: :percent
|
|
1286
1786
|
|
|
1287
1787
|
attr_accessor name: String
|
|
1288
1788
|
|
|
1789
|
+
attr_accessor percent_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig
|
|
1790
|
+
|
|
1289
1791
|
attr_accessor billable_metric_id: String?
|
|
1290
1792
|
|
|
1291
1793
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1294,7 +1796,7 @@ module Orb
|
|
|
1294
1796
|
|
|
1295
1797
|
attr_accessor conversion_rate: Float?
|
|
1296
1798
|
|
|
1297
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1799
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1298
1800
|
|
|
1299
1801
|
attr_accessor currency: String?
|
|
1300
1802
|
|
|
@@ -1315,15 +1817,15 @@ module Orb
|
|
|
1315
1817
|
attr_accessor reference_id: String?
|
|
1316
1818
|
|
|
1317
1819
|
def initialize: (
|
|
1318
|
-
|
|
1319
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1820
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Percent::cadence,
|
|
1320
1821
|
item_id: String,
|
|
1321
1822
|
name: String,
|
|
1823
|
+
percent_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
1322
1824
|
?billable_metric_id: String?,
|
|
1323
1825
|
?billed_in_advance: bool?,
|
|
1324
1826
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1325
1827
|
?conversion_rate: Float?,
|
|
1326
|
-
?conversion_rate_config: Orb::Models::
|
|
1828
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1327
1829
|
?currency: String?,
|
|
1328
1830
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1329
1831
|
?external_price_id: String?,
|
|
@@ -1333,20 +1835,20 @@ module Orb
|
|
|
1333
1835
|
?license_type_id: String?,
|
|
1334
1836
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1335
1837
|
?reference_id: String?,
|
|
1336
|
-
?model_type: :
|
|
1838
|
+
?model_type: :percent
|
|
1337
1839
|
) -> void
|
|
1338
1840
|
|
|
1339
1841
|
def to_hash: -> {
|
|
1340
|
-
|
|
1341
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1842
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Percent::cadence,
|
|
1342
1843
|
item_id: String,
|
|
1343
|
-
model_type: :
|
|
1844
|
+
model_type: :percent,
|
|
1344
1845
|
name: String,
|
|
1846
|
+
percent_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
1345
1847
|
billable_metric_id: String?,
|
|
1346
1848
|
billed_in_advance: bool?,
|
|
1347
1849
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1348
1850
|
conversion_rate: Float?,
|
|
1349
|
-
conversion_rate_config: Orb::Models::
|
|
1851
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1350
1852
|
currency: String?,
|
|
1351
1853
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1352
1854
|
external_price_id: String?,
|
|
@@ -1358,60 +1860,1378 @@ module Orb
|
|
|
1358
1860
|
reference_id: String?
|
|
1359
1861
|
}
|
|
1360
1862
|
|
|
1361
|
-
type
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1863
|
+
type cadence =
|
|
1864
|
+
:annual
|
|
1865
|
+
| :semi_annual
|
|
1866
|
+
| :monthly
|
|
1867
|
+
| :quarterly
|
|
1868
|
+
| :one_time
|
|
1869
|
+
| :custom
|
|
1366
1870
|
|
|
1367
|
-
|
|
1871
|
+
module Cadence
|
|
1872
|
+
extend Orb::Internal::Type::Enum
|
|
1873
|
+
|
|
1874
|
+
ANNUAL: :annual
|
|
1875
|
+
SEMI_ANNUAL: :semi_annual
|
|
1876
|
+
MONTHLY: :monthly
|
|
1877
|
+
QUARTERLY: :quarterly
|
|
1878
|
+
ONE_TIME: :one_time
|
|
1879
|
+
CUSTOM: :custom
|
|
1880
|
+
|
|
1881
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Percent::cadence]
|
|
1882
|
+
end
|
|
1883
|
+
|
|
1884
|
+
type percent_config =
|
|
1885
|
+
{
|
|
1886
|
+
percent: Float,
|
|
1887
|
+
maximum_amount: String?,
|
|
1888
|
+
minimum_amount: String?,
|
|
1889
|
+
prorated: bool
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
1893
|
+
attr_accessor percent: Float
|
|
1894
|
+
|
|
1895
|
+
attr_accessor maximum_amount: String?
|
|
1896
|
+
|
|
1897
|
+
attr_accessor minimum_amount: String?
|
|
1898
|
+
|
|
1899
|
+
attr_reader prorated: bool?
|
|
1900
|
+
|
|
1901
|
+
def prorated=: (bool) -> bool
|
|
1902
|
+
|
|
1903
|
+
def initialize: (
|
|
1904
|
+
percent: Float,
|
|
1905
|
+
?maximum_amount: String?,
|
|
1906
|
+
?minimum_amount: String?,
|
|
1907
|
+
?prorated: bool
|
|
1908
|
+
) -> void
|
|
1909
|
+
|
|
1910
|
+
def to_hash: -> {
|
|
1911
|
+
percent: Float,
|
|
1912
|
+
maximum_amount: String?,
|
|
1913
|
+
minimum_amount: String?,
|
|
1914
|
+
prorated: bool
|
|
1915
|
+
}
|
|
1916
|
+
end
|
|
1917
|
+
end
|
|
1918
|
+
|
|
1919
|
+
type event_output =
|
|
1920
|
+
{
|
|
1921
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence,
|
|
1922
|
+
event_output_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1923
|
+
item_id: String,
|
|
1924
|
+
model_type: :event_output,
|
|
1925
|
+
name: String,
|
|
1926
|
+
billable_metric_id: String?,
|
|
1927
|
+
billed_in_advance: bool?,
|
|
1928
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1929
|
+
conversion_rate: Float?,
|
|
1930
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1931
|
+
currency: String?,
|
|
1932
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1933
|
+
external_price_id: String?,
|
|
1934
|
+
fixed_price_quantity: Float?,
|
|
1935
|
+
invoice_grouping_key: String?,
|
|
1936
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1937
|
+
license_type_id: String?,
|
|
1938
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1939
|
+
reference_id: String?
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
class EventOutput < Orb::Internal::Type::BaseModel
|
|
1943
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence
|
|
1944
|
+
|
|
1945
|
+
attr_accessor event_output_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig
|
|
1946
|
+
|
|
1947
|
+
attr_accessor item_id: String
|
|
1948
|
+
|
|
1949
|
+
attr_accessor model_type: :event_output
|
|
1950
|
+
|
|
1951
|
+
attr_accessor name: String
|
|
1952
|
+
|
|
1953
|
+
attr_accessor billable_metric_id: String?
|
|
1954
|
+
|
|
1955
|
+
attr_accessor billed_in_advance: bool?
|
|
1956
|
+
|
|
1957
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1958
|
+
|
|
1959
|
+
attr_accessor conversion_rate: Float?
|
|
1960
|
+
|
|
1961
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1962
|
+
|
|
1963
|
+
attr_accessor currency: String?
|
|
1964
|
+
|
|
1965
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1966
|
+
|
|
1967
|
+
attr_accessor external_price_id: String?
|
|
1968
|
+
|
|
1969
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1970
|
+
|
|
1971
|
+
attr_accessor invoice_grouping_key: String?
|
|
1972
|
+
|
|
1973
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1974
|
+
|
|
1975
|
+
attr_accessor license_type_id: String?
|
|
1976
|
+
|
|
1977
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1978
|
+
|
|
1979
|
+
attr_accessor reference_id: String?
|
|
1980
|
+
|
|
1981
|
+
def initialize: (
|
|
1982
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence,
|
|
1983
|
+
event_output_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1984
|
+
item_id: String,
|
|
1985
|
+
name: String,
|
|
1986
|
+
?billable_metric_id: String?,
|
|
1987
|
+
?billed_in_advance: bool?,
|
|
1988
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1989
|
+
?conversion_rate: Float?,
|
|
1990
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1991
|
+
?currency: String?,
|
|
1992
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1993
|
+
?external_price_id: String?,
|
|
1994
|
+
?fixed_price_quantity: Float?,
|
|
1995
|
+
?invoice_grouping_key: String?,
|
|
1996
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1997
|
+
?license_type_id: String?,
|
|
1998
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1999
|
+
?reference_id: String?,
|
|
2000
|
+
?model_type: :event_output
|
|
2001
|
+
) -> void
|
|
2002
|
+
|
|
2003
|
+
def to_hash: -> {
|
|
2004
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence,
|
|
2005
|
+
event_output_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
2006
|
+
item_id: String,
|
|
2007
|
+
model_type: :event_output,
|
|
2008
|
+
name: String,
|
|
2009
|
+
billable_metric_id: String?,
|
|
2010
|
+
billed_in_advance: bool?,
|
|
2011
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2012
|
+
conversion_rate: Float?,
|
|
2013
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2014
|
+
currency: String?,
|
|
2015
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2016
|
+
external_price_id: String?,
|
|
2017
|
+
fixed_price_quantity: Float?,
|
|
2018
|
+
invoice_grouping_key: String?,
|
|
2019
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2020
|
+
license_type_id: String?,
|
|
2021
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2022
|
+
reference_id: String?
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
type cadence =
|
|
2026
|
+
:annual
|
|
2027
|
+
| :semi_annual
|
|
2028
|
+
| :monthly
|
|
2029
|
+
| :quarterly
|
|
2030
|
+
| :one_time
|
|
2031
|
+
| :custom
|
|
2032
|
+
|
|
2033
|
+
module Cadence
|
|
2034
|
+
extend Orb::Internal::Type::Enum
|
|
2035
|
+
|
|
2036
|
+
ANNUAL: :annual
|
|
2037
|
+
SEMI_ANNUAL: :semi_annual
|
|
2038
|
+
MONTHLY: :monthly
|
|
2039
|
+
QUARTERLY: :quarterly
|
|
2040
|
+
ONE_TIME: :one_time
|
|
2041
|
+
CUSTOM: :custom
|
|
2042
|
+
|
|
2043
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence]
|
|
2044
|
+
end
|
|
2045
|
+
|
|
2046
|
+
type event_output_config =
|
|
2047
|
+
{
|
|
2048
|
+
unit_rating_key: String,
|
|
2049
|
+
default_unit_rate: String?,
|
|
2050
|
+
grouping_key: String?
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
2054
|
+
attr_accessor unit_rating_key: String
|
|
2055
|
+
|
|
2056
|
+
attr_accessor default_unit_rate: String?
|
|
2057
|
+
|
|
2058
|
+
attr_accessor grouping_key: String?
|
|
2059
|
+
|
|
2060
|
+
def initialize: (
|
|
2061
|
+
unit_rating_key: String,
|
|
2062
|
+
?default_unit_rate: String?,
|
|
2063
|
+
?grouping_key: String?
|
|
2064
|
+
) -> void
|
|
2065
|
+
|
|
2066
|
+
def to_hash: -> {
|
|
2067
|
+
unit_rating_key: String,
|
|
2068
|
+
default_unit_rate: String?,
|
|
2069
|
+
grouping_key: String?
|
|
2070
|
+
}
|
|
2071
|
+
end
|
|
2072
|
+
end
|
|
2073
|
+
|
|
2074
|
+
def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::price]
|
|
2075
|
+
end
|
|
2076
|
+
end
|
|
2077
|
+
|
|
2078
|
+
type remove_adjustment =
|
|
2079
|
+
{ adjustment_id: String, plan_phase_order: Integer? }
|
|
2080
|
+
|
|
2081
|
+
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
2082
|
+
attr_accessor adjustment_id: String
|
|
2083
|
+
|
|
2084
|
+
attr_accessor plan_phase_order: Integer?
|
|
2085
|
+
|
|
2086
|
+
def initialize: (
|
|
2087
|
+
adjustment_id: String,
|
|
2088
|
+
?plan_phase_order: Integer?
|
|
2089
|
+
) -> void
|
|
2090
|
+
|
|
2091
|
+
def to_hash: -> { adjustment_id: String, plan_phase_order: Integer? }
|
|
2092
|
+
end
|
|
2093
|
+
|
|
2094
|
+
type remove_price = { price_id: String, plan_phase_order: Integer? }
|
|
2095
|
+
|
|
2096
|
+
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
2097
|
+
attr_accessor price_id: String
|
|
2098
|
+
|
|
2099
|
+
attr_accessor plan_phase_order: Integer?
|
|
2100
|
+
|
|
2101
|
+
def initialize: (price_id: String, ?plan_phase_order: Integer?) -> void
|
|
2102
|
+
|
|
2103
|
+
def to_hash: -> { price_id: String, plan_phase_order: Integer? }
|
|
2104
|
+
end
|
|
2105
|
+
|
|
2106
|
+
type replace_adjustment =
|
|
2107
|
+
{
|
|
2108
|
+
adjustment: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
2109
|
+
replaces_adjustment_id: String,
|
|
2110
|
+
plan_phase_order: Integer?
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
2114
|
+
attr_accessor adjustment: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment
|
|
2115
|
+
|
|
2116
|
+
attr_accessor replaces_adjustment_id: String
|
|
2117
|
+
|
|
2118
|
+
attr_accessor plan_phase_order: Integer?
|
|
2119
|
+
|
|
2120
|
+
def initialize: (
|
|
2121
|
+
adjustment: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
2122
|
+
replaces_adjustment_id: String,
|
|
2123
|
+
?plan_phase_order: Integer?
|
|
2124
|
+
) -> void
|
|
2125
|
+
|
|
2126
|
+
def to_hash: -> {
|
|
2127
|
+
adjustment: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
2128
|
+
replaces_adjustment_id: String,
|
|
2129
|
+
plan_phase_order: Integer?
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
type adjustment =
|
|
2133
|
+
Orb::NewPercentageDiscount
|
|
2134
|
+
| Orb::NewUsageDiscount
|
|
2135
|
+
| Orb::NewAmountDiscount
|
|
2136
|
+
| Orb::NewMinimum
|
|
2137
|
+
| Orb::NewMaximum
|
|
2138
|
+
| Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount
|
|
2139
|
+
|
|
2140
|
+
module Adjustment
|
|
2141
|
+
extend Orb::Internal::Type::Union
|
|
2142
|
+
|
|
2143
|
+
type tiered_percentage_discount =
|
|
2144
|
+
{
|
|
2145
|
+
adjustment_type: :tiered_percentage_discount,
|
|
2146
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2147
|
+
applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2148
|
+
applies_to_item_ids: ::Array[String]?,
|
|
2149
|
+
applies_to_price_ids: ::Array[String]?,
|
|
2150
|
+
currency: String?,
|
|
2151
|
+
filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2152
|
+
is_invoice_level: bool,
|
|
2153
|
+
price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
2157
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
2158
|
+
|
|
2159
|
+
attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
2160
|
+
|
|
2161
|
+
attr_accessor applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
2162
|
+
|
|
2163
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
2164
|
+
|
|
2165
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
2166
|
+
|
|
2167
|
+
attr_accessor currency: String?
|
|
2168
|
+
|
|
2169
|
+
attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
2170
|
+
|
|
2171
|
+
attr_reader is_invoice_level: bool?
|
|
2172
|
+
|
|
2173
|
+
def is_invoice_level=: (bool) -> bool
|
|
2174
|
+
|
|
2175
|
+
attr_accessor price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2176
|
+
|
|
2177
|
+
def initialize: (
|
|
2178
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2179
|
+
?applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2180
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
2181
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
2182
|
+
?currency: String?,
|
|
2183
|
+
?filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2184
|
+
?is_invoice_level: bool,
|
|
2185
|
+
?price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
2186
|
+
?adjustment_type: :tiered_percentage_discount
|
|
2187
|
+
) -> void
|
|
2188
|
+
|
|
2189
|
+
def to_hash: -> {
|
|
2190
|
+
adjustment_type: :tiered_percentage_discount,
|
|
2191
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2192
|
+
applies_to_all: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2193
|
+
applies_to_item_ids: ::Array[String]?,
|
|
2194
|
+
applies_to_price_ids: ::Array[String]?,
|
|
2195
|
+
currency: String?,
|
|
2196
|
+
filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2197
|
+
is_invoice_level: bool,
|
|
2198
|
+
price_type: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
type tier =
|
|
2202
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
2203
|
+
|
|
2204
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2205
|
+
attr_accessor lower_bound: Float
|
|
2206
|
+
|
|
2207
|
+
attr_accessor percentage: Float
|
|
2208
|
+
|
|
2209
|
+
attr_accessor upper_bound: Float?
|
|
2210
|
+
|
|
2211
|
+
def initialize: (
|
|
2212
|
+
lower_bound: Float,
|
|
2213
|
+
percentage: Float,
|
|
2214
|
+
?upper_bound: Float?
|
|
2215
|
+
) -> void
|
|
2216
|
+
|
|
2217
|
+
def to_hash: -> {
|
|
2218
|
+
lower_bound: Float,
|
|
2219
|
+
percentage: Float,
|
|
2220
|
+
upper_bound: Float?
|
|
2221
|
+
}
|
|
2222
|
+
end
|
|
2223
|
+
|
|
2224
|
+
type applies_to_all = true
|
|
2225
|
+
|
|
2226
|
+
module AppliesToAll
|
|
2227
|
+
extend Orb::Internal::Type::Enum
|
|
2228
|
+
|
|
2229
|
+
TRUE: true
|
|
2230
|
+
|
|
2231
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
2232
|
+
end
|
|
2233
|
+
|
|
2234
|
+
type filter =
|
|
2235
|
+
{
|
|
2236
|
+
field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2237
|
+
operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2238
|
+
values: ::Array[String]
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2242
|
+
attr_accessor field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
2243
|
+
|
|
2244
|
+
attr_accessor operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
2245
|
+
|
|
2246
|
+
attr_accessor values: ::Array[String]
|
|
2247
|
+
|
|
2248
|
+
def initialize: (
|
|
2249
|
+
field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2250
|
+
operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2251
|
+
values: ::Array[String]
|
|
2252
|
+
) -> void
|
|
2253
|
+
|
|
2254
|
+
def to_hash: -> {
|
|
2255
|
+
field: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2256
|
+
operator: Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2257
|
+
values: ::Array[String]
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
type field =
|
|
2261
|
+
:price_id
|
|
2262
|
+
| :item_id
|
|
2263
|
+
| :price_type
|
|
2264
|
+
| :currency
|
|
2265
|
+
| :pricing_unit_id
|
|
2266
|
+
|
|
2267
|
+
module Field
|
|
2268
|
+
extend Orb::Internal::Type::Enum
|
|
2269
|
+
|
|
2270
|
+
PRICE_ID: :price_id
|
|
2271
|
+
ITEM_ID: :item_id
|
|
2272
|
+
PRICE_TYPE: :price_type
|
|
2273
|
+
CURRENCY: :currency
|
|
2274
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
2275
|
+
|
|
2276
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
2277
|
+
end
|
|
2278
|
+
|
|
2279
|
+
type operator = :includes | :excludes
|
|
2280
|
+
|
|
2281
|
+
module Operator
|
|
2282
|
+
extend Orb::Internal::Type::Enum
|
|
2283
|
+
|
|
2284
|
+
INCLUDES: :includes
|
|
2285
|
+
EXCLUDES: :excludes
|
|
2286
|
+
|
|
2287
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
2288
|
+
end
|
|
2289
|
+
end
|
|
2290
|
+
|
|
2291
|
+
type price_type =
|
|
2292
|
+
:usage
|
|
2293
|
+
| :fixed_in_advance
|
|
2294
|
+
| :fixed_in_arrears
|
|
2295
|
+
| :fixed
|
|
2296
|
+
| :in_arrears
|
|
2297
|
+
|
|
2298
|
+
module PriceType
|
|
2299
|
+
extend Orb::Internal::Type::Enum
|
|
2300
|
+
|
|
2301
|
+
USAGE: :usage
|
|
2302
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
2303
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
2304
|
+
FIXED: :fixed
|
|
2305
|
+
IN_ARREARS: :in_arrears
|
|
2306
|
+
|
|
2307
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
2308
|
+
end
|
|
2309
|
+
end
|
|
2310
|
+
|
|
2311
|
+
def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplaceAdjustment::adjustment]
|
|
2312
|
+
end
|
|
2313
|
+
end
|
|
2314
|
+
|
|
2315
|
+
type replace_price =
|
|
2316
|
+
{
|
|
2317
|
+
replaces_price_id: String,
|
|
2318
|
+
allocation_price: Orb::NewAllocationPrice?,
|
|
2319
|
+
license_allocation_price: Orb::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice?,
|
|
2320
|
+
plan_phase_order: Integer?,
|
|
2321
|
+
price: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price?
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
2325
|
+
attr_accessor replaces_price_id: String
|
|
2326
|
+
|
|
2327
|
+
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
2328
|
+
|
|
2329
|
+
attr_accessor license_allocation_price: Orb::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice?
|
|
2330
|
+
|
|
2331
|
+
attr_accessor plan_phase_order: Integer?
|
|
2332
|
+
|
|
2333
|
+
attr_accessor price: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price?
|
|
2334
|
+
|
|
2335
|
+
def initialize: (
|
|
2336
|
+
replaces_price_id: String,
|
|
2337
|
+
?allocation_price: Orb::NewAllocationPrice?,
|
|
2338
|
+
?license_allocation_price: Orb::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice?,
|
|
2339
|
+
?plan_phase_order: Integer?,
|
|
2340
|
+
?price: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price?
|
|
2341
|
+
) -> void
|
|
2342
|
+
|
|
2343
|
+
def to_hash: -> {
|
|
2344
|
+
replaces_price_id: String,
|
|
2345
|
+
allocation_price: Orb::NewAllocationPrice?,
|
|
2346
|
+
license_allocation_price: Orb::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice?,
|
|
2347
|
+
plan_phase_order: Integer?,
|
|
2348
|
+
price: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price?
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
type license_allocation_price =
|
|
2352
|
+
{
|
|
2353
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence,
|
|
2354
|
+
item_id: String,
|
|
2355
|
+
license_allocations: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation],
|
|
2356
|
+
model_type: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type,
|
|
2357
|
+
name: String,
|
|
2358
|
+
unit_config: Orb::UnitConfig,
|
|
2359
|
+
billable_metric_id: String?,
|
|
2360
|
+
billed_in_advance: bool?,
|
|
2361
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2362
|
+
conversion_rate: Float?,
|
|
2363
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2364
|
+
currency: String?,
|
|
2365
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2366
|
+
external_price_id: String?,
|
|
2367
|
+
fixed_price_quantity: Float?,
|
|
2368
|
+
invoice_grouping_key: String?,
|
|
2369
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2370
|
+
license_type_id: String?,
|
|
2371
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2372
|
+
reference_id: String?
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
2376
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence
|
|
2377
|
+
|
|
2378
|
+
attr_accessor item_id: String
|
|
2379
|
+
|
|
2380
|
+
attr_accessor license_allocations: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation]
|
|
2381
|
+
|
|
2382
|
+
attr_accessor model_type: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type
|
|
2383
|
+
|
|
2384
|
+
attr_accessor name: String
|
|
2385
|
+
|
|
2386
|
+
attr_accessor unit_config: Orb::UnitConfig
|
|
2387
|
+
|
|
2388
|
+
attr_accessor billable_metric_id: String?
|
|
2389
|
+
|
|
2390
|
+
attr_accessor billed_in_advance: bool?
|
|
2391
|
+
|
|
2392
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2393
|
+
|
|
2394
|
+
attr_accessor conversion_rate: Float?
|
|
2395
|
+
|
|
2396
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2397
|
+
|
|
2398
|
+
attr_accessor currency: String?
|
|
2399
|
+
|
|
2400
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2401
|
+
|
|
2402
|
+
attr_accessor external_price_id: String?
|
|
2403
|
+
|
|
2404
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2405
|
+
|
|
2406
|
+
attr_accessor invoice_grouping_key: String?
|
|
2407
|
+
|
|
2408
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2409
|
+
|
|
2410
|
+
attr_accessor license_type_id: String?
|
|
2411
|
+
|
|
2412
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2413
|
+
|
|
2414
|
+
attr_accessor reference_id: String?
|
|
2415
|
+
|
|
2416
|
+
def initialize: (
|
|
2417
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence,
|
|
2418
|
+
item_id: String,
|
|
2419
|
+
license_allocations: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation],
|
|
2420
|
+
model_type: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type,
|
|
2421
|
+
name: String,
|
|
2422
|
+
unit_config: Orb::UnitConfig,
|
|
2423
|
+
?billable_metric_id: String?,
|
|
2424
|
+
?billed_in_advance: bool?,
|
|
2425
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2426
|
+
?conversion_rate: Float?,
|
|
2427
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2428
|
+
?currency: String?,
|
|
2429
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2430
|
+
?external_price_id: String?,
|
|
2431
|
+
?fixed_price_quantity: Float?,
|
|
2432
|
+
?invoice_grouping_key: String?,
|
|
2433
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2434
|
+
?license_type_id: String?,
|
|
2435
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2436
|
+
?reference_id: String?
|
|
2437
|
+
) -> void
|
|
2438
|
+
|
|
2439
|
+
def to_hash: -> {
|
|
2440
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence,
|
|
2441
|
+
item_id: String,
|
|
2442
|
+
license_allocations: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation],
|
|
2443
|
+
model_type: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type,
|
|
2444
|
+
name: String,
|
|
2445
|
+
unit_config: Orb::UnitConfig,
|
|
2446
|
+
billable_metric_id: String?,
|
|
2447
|
+
billed_in_advance: bool?,
|
|
2448
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2449
|
+
conversion_rate: Float?,
|
|
2450
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2451
|
+
currency: String?,
|
|
2452
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2453
|
+
external_price_id: String?,
|
|
2454
|
+
fixed_price_quantity: Float?,
|
|
2455
|
+
invoice_grouping_key: String?,
|
|
2456
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2457
|
+
license_type_id: String?,
|
|
2458
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2459
|
+
reference_id: String?
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
type cadence =
|
|
2463
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
2464
|
+
|
|
2465
|
+
module Cadence
|
|
2466
|
+
extend Orb::Internal::Type::Enum
|
|
2467
|
+
|
|
2468
|
+
ANNUAL: :annual
|
|
2469
|
+
SEMI_ANNUAL: :semi_annual
|
|
2470
|
+
MONTHLY: :monthly
|
|
2471
|
+
QUARTERLY: :quarterly
|
|
2472
|
+
ONE_TIME: :one_time
|
|
2473
|
+
CUSTOM: :custom
|
|
2474
|
+
|
|
2475
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence]
|
|
2476
|
+
end
|
|
2477
|
+
|
|
2478
|
+
type license_allocation =
|
|
2479
|
+
{ amount: String, currency: String, write_off_overage: bool? }
|
|
2480
|
+
|
|
2481
|
+
class LicenseAllocation < Orb::Internal::Type::BaseModel
|
|
2482
|
+
attr_accessor amount: String
|
|
2483
|
+
|
|
2484
|
+
attr_accessor currency: String
|
|
2485
|
+
|
|
2486
|
+
attr_accessor write_off_overage: bool?
|
|
2487
|
+
|
|
2488
|
+
def initialize: (
|
|
2489
|
+
amount: String,
|
|
2490
|
+
currency: String,
|
|
2491
|
+
?write_off_overage: bool?
|
|
2492
|
+
) -> void
|
|
2493
|
+
|
|
2494
|
+
def to_hash: -> {
|
|
2495
|
+
amount: String,
|
|
2496
|
+
currency: String,
|
|
2497
|
+
write_off_overage: bool?
|
|
2498
|
+
}
|
|
2499
|
+
end
|
|
2500
|
+
|
|
2501
|
+
type model_type = :unit
|
|
2502
|
+
|
|
2503
|
+
module ModelType
|
|
2504
|
+
extend Orb::Internal::Type::Enum
|
|
2505
|
+
|
|
2506
|
+
UNIT: :unit
|
|
2507
|
+
|
|
2508
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type]
|
|
2509
|
+
end
|
|
2510
|
+
end
|
|
2511
|
+
|
|
2512
|
+
type price =
|
|
2513
|
+
Orb::NewPlanUnitPrice
|
|
2514
|
+
| Orb::NewPlanTieredPrice
|
|
2515
|
+
| Orb::NewPlanBulkPrice
|
|
2516
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters
|
|
2517
|
+
| Orb::NewPlanPackagePrice
|
|
2518
|
+
| Orb::NewPlanMatrixPrice
|
|
2519
|
+
| Orb::NewPlanThresholdTotalAmountPrice
|
|
2520
|
+
| Orb::NewPlanTieredPackagePrice
|
|
2521
|
+
| Orb::NewPlanTieredWithMinimumPrice
|
|
2522
|
+
| Orb::NewPlanGroupedTieredPrice
|
|
2523
|
+
| Orb::NewPlanTieredPackageWithMinimumPrice
|
|
2524
|
+
| Orb::NewPlanPackageWithAllocationPrice
|
|
2525
|
+
| Orb::NewPlanUnitWithPercentPrice
|
|
2526
|
+
| Orb::NewPlanMatrixWithAllocationPrice
|
|
2527
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts
|
|
2528
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration
|
|
2529
|
+
| Orb::NewPlanUnitWithProrationPrice
|
|
2530
|
+
| Orb::NewPlanGroupedAllocationPrice
|
|
2531
|
+
| Orb::NewPlanBulkWithProrationPrice
|
|
2532
|
+
| Orb::NewPlanGroupedWithProratedMinimumPrice
|
|
2533
|
+
| Orb::NewPlanGroupedWithMeteredMinimumPrice
|
|
2534
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
2535
|
+
| Orb::NewPlanMatrixWithDisplayNamePrice
|
|
2536
|
+
| Orb::NewPlanGroupedTieredPackagePrice
|
|
2537
|
+
| Orb::NewPlanMaxGroupTieredPackagePrice
|
|
2538
|
+
| Orb::NewPlanScalableMatrixWithUnitPricingPrice
|
|
2539
|
+
| Orb::NewPlanScalableMatrixWithTieredPricingPrice
|
|
2540
|
+
| Orb::NewPlanCumulativeGroupedBulkPrice
|
|
2541
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
2542
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance
|
|
2543
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance
|
|
2544
|
+
| Orb::NewPlanMinimumCompositePrice
|
|
2545
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Percent
|
|
2546
|
+
| Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::EventOutput
|
|
2547
|
+
|
|
2548
|
+
module Price
|
|
2549
|
+
extend Orb::Internal::Type::Union
|
|
2550
|
+
|
|
2551
|
+
type bulk_with_filters =
|
|
2552
|
+
{
|
|
2553
|
+
bulk_with_filters_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2554
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2555
|
+
item_id: String,
|
|
2556
|
+
model_type: :bulk_with_filters,
|
|
2557
|
+
name: String,
|
|
2558
|
+
billable_metric_id: String?,
|
|
2559
|
+
billed_in_advance: bool?,
|
|
2560
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2561
|
+
conversion_rate: Float?,
|
|
2562
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2563
|
+
currency: String?,
|
|
2564
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2565
|
+
external_price_id: String?,
|
|
2566
|
+
fixed_price_quantity: Float?,
|
|
2567
|
+
invoice_grouping_key: String?,
|
|
2568
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2569
|
+
license_type_id: String?,
|
|
2570
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2571
|
+
reference_id: String?
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
2575
|
+
attr_accessor bulk_with_filters_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig
|
|
2576
|
+
|
|
2577
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence
|
|
2578
|
+
|
|
2579
|
+
attr_accessor item_id: String
|
|
2580
|
+
|
|
2581
|
+
attr_accessor model_type: :bulk_with_filters
|
|
2582
|
+
|
|
2583
|
+
attr_accessor name: String
|
|
2584
|
+
|
|
2585
|
+
attr_accessor billable_metric_id: String?
|
|
2586
|
+
|
|
2587
|
+
attr_accessor billed_in_advance: bool?
|
|
2588
|
+
|
|
2589
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2590
|
+
|
|
2591
|
+
attr_accessor conversion_rate: Float?
|
|
2592
|
+
|
|
2593
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2594
|
+
|
|
2595
|
+
attr_accessor currency: String?
|
|
2596
|
+
|
|
2597
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2598
|
+
|
|
2599
|
+
attr_accessor external_price_id: String?
|
|
2600
|
+
|
|
2601
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2602
|
+
|
|
2603
|
+
attr_accessor invoice_grouping_key: String?
|
|
2604
|
+
|
|
2605
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2606
|
+
|
|
2607
|
+
attr_accessor license_type_id: String?
|
|
2608
|
+
|
|
2609
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2610
|
+
|
|
2611
|
+
attr_accessor reference_id: String?
|
|
2612
|
+
|
|
2613
|
+
def initialize: (
|
|
2614
|
+
bulk_with_filters_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2615
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2616
|
+
item_id: String,
|
|
2617
|
+
name: String,
|
|
2618
|
+
?billable_metric_id: String?,
|
|
2619
|
+
?billed_in_advance: bool?,
|
|
2620
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2621
|
+
?conversion_rate: Float?,
|
|
2622
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2623
|
+
?currency: String?,
|
|
2624
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2625
|
+
?external_price_id: String?,
|
|
2626
|
+
?fixed_price_quantity: Float?,
|
|
2627
|
+
?invoice_grouping_key: String?,
|
|
2628
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2629
|
+
?license_type_id: String?,
|
|
2630
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2631
|
+
?reference_id: String?,
|
|
2632
|
+
?model_type: :bulk_with_filters
|
|
2633
|
+
) -> void
|
|
2634
|
+
|
|
2635
|
+
def to_hash: -> {
|
|
2636
|
+
bulk_with_filters_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2637
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2638
|
+
item_id: String,
|
|
2639
|
+
model_type: :bulk_with_filters,
|
|
2640
|
+
name: String,
|
|
2641
|
+
billable_metric_id: String?,
|
|
2642
|
+
billed_in_advance: bool?,
|
|
2643
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2644
|
+
conversion_rate: Float?,
|
|
2645
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2646
|
+
currency: String?,
|
|
2647
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2648
|
+
external_price_id: String?,
|
|
2649
|
+
fixed_price_quantity: Float?,
|
|
2650
|
+
invoice_grouping_key: String?,
|
|
2651
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2652
|
+
license_type_id: String?,
|
|
2653
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2654
|
+
reference_id: String?
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
type bulk_with_filters_config =
|
|
2658
|
+
{
|
|
2659
|
+
filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2660
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
1368
2664
|
attr_accessor filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter]
|
|
1369
2665
|
|
|
1370
|
-
attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2666
|
+
attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2667
|
+
|
|
2668
|
+
def initialize: (
|
|
2669
|
+
filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2670
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2671
|
+
) -> void
|
|
2672
|
+
|
|
2673
|
+
def to_hash: -> {
|
|
2674
|
+
filters: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2675
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
type filter = { property_key: String, property_value: String }
|
|
2679
|
+
|
|
2680
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2681
|
+
attr_accessor property_key: String
|
|
2682
|
+
|
|
2683
|
+
attr_accessor property_value: String
|
|
2684
|
+
|
|
2685
|
+
def initialize: (
|
|
2686
|
+
property_key: String,
|
|
2687
|
+
property_value: String
|
|
2688
|
+
) -> void
|
|
2689
|
+
|
|
2690
|
+
def to_hash: -> { property_key: String, property_value: String }
|
|
2691
|
+
end
|
|
2692
|
+
|
|
2693
|
+
type tier = { unit_amount: String, tier_lower_bound: String? }
|
|
2694
|
+
|
|
2695
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2696
|
+
attr_accessor unit_amount: String
|
|
2697
|
+
|
|
2698
|
+
attr_accessor tier_lower_bound: String?
|
|
2699
|
+
|
|
2700
|
+
def initialize: (
|
|
2701
|
+
unit_amount: String,
|
|
2702
|
+
?tier_lower_bound: String?
|
|
2703
|
+
) -> void
|
|
2704
|
+
|
|
2705
|
+
def to_hash: -> {
|
|
2706
|
+
unit_amount: String,
|
|
2707
|
+
tier_lower_bound: String?
|
|
2708
|
+
}
|
|
2709
|
+
end
|
|
2710
|
+
end
|
|
2711
|
+
|
|
2712
|
+
type cadence =
|
|
2713
|
+
:annual
|
|
2714
|
+
| :semi_annual
|
|
2715
|
+
| :monthly
|
|
2716
|
+
| :quarterly
|
|
2717
|
+
| :one_time
|
|
2718
|
+
| :custom
|
|
2719
|
+
|
|
2720
|
+
module Cadence
|
|
2721
|
+
extend Orb::Internal::Type::Enum
|
|
2722
|
+
|
|
2723
|
+
ANNUAL: :annual
|
|
2724
|
+
SEMI_ANNUAL: :semi_annual
|
|
2725
|
+
MONTHLY: :monthly
|
|
2726
|
+
QUARTERLY: :quarterly
|
|
2727
|
+
ONE_TIME: :one_time
|
|
2728
|
+
CUSTOM: :custom
|
|
2729
|
+
|
|
2730
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence]
|
|
2731
|
+
end
|
|
2732
|
+
end
|
|
2733
|
+
|
|
2734
|
+
type matrix_with_threshold_discounts =
|
|
2735
|
+
{
|
|
2736
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2737
|
+
item_id: String,
|
|
2738
|
+
matrix_with_threshold_discounts_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2739
|
+
model_type: :matrix_with_threshold_discounts,
|
|
2740
|
+
name: String,
|
|
2741
|
+
billable_metric_id: String?,
|
|
2742
|
+
billed_in_advance: bool?,
|
|
2743
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2744
|
+
conversion_rate: Float?,
|
|
2745
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2746
|
+
currency: String?,
|
|
2747
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2748
|
+
external_price_id: String?,
|
|
2749
|
+
fixed_price_quantity: Float?,
|
|
2750
|
+
invoice_grouping_key: String?,
|
|
2751
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2752
|
+
license_type_id: String?,
|
|
2753
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2754
|
+
reference_id: String?
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
2758
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence
|
|
2759
|
+
|
|
2760
|
+
attr_accessor item_id: String
|
|
2761
|
+
|
|
2762
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
2763
|
+
|
|
2764
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
2765
|
+
|
|
2766
|
+
attr_accessor name: String
|
|
2767
|
+
|
|
2768
|
+
attr_accessor billable_metric_id: String?
|
|
2769
|
+
|
|
2770
|
+
attr_accessor billed_in_advance: bool?
|
|
2771
|
+
|
|
2772
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2773
|
+
|
|
2774
|
+
attr_accessor conversion_rate: Float?
|
|
2775
|
+
|
|
2776
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2777
|
+
|
|
2778
|
+
attr_accessor currency: String?
|
|
2779
|
+
|
|
2780
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2781
|
+
|
|
2782
|
+
attr_accessor external_price_id: String?
|
|
2783
|
+
|
|
2784
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2785
|
+
|
|
2786
|
+
attr_accessor invoice_grouping_key: String?
|
|
2787
|
+
|
|
2788
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2789
|
+
|
|
2790
|
+
attr_accessor license_type_id: String?
|
|
2791
|
+
|
|
2792
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2793
|
+
|
|
2794
|
+
attr_accessor reference_id: String?
|
|
2795
|
+
|
|
2796
|
+
def initialize: (
|
|
2797
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2798
|
+
item_id: String,
|
|
2799
|
+
matrix_with_threshold_discounts_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2800
|
+
name: String,
|
|
2801
|
+
?billable_metric_id: String?,
|
|
2802
|
+
?billed_in_advance: bool?,
|
|
2803
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2804
|
+
?conversion_rate: Float?,
|
|
2805
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2806
|
+
?currency: String?,
|
|
2807
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2808
|
+
?external_price_id: String?,
|
|
2809
|
+
?fixed_price_quantity: Float?,
|
|
2810
|
+
?invoice_grouping_key: String?,
|
|
2811
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2812
|
+
?license_type_id: String?,
|
|
2813
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2814
|
+
?reference_id: String?,
|
|
2815
|
+
?model_type: :matrix_with_threshold_discounts
|
|
2816
|
+
) -> void
|
|
2817
|
+
|
|
2818
|
+
def to_hash: -> {
|
|
2819
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2820
|
+
item_id: String,
|
|
2821
|
+
matrix_with_threshold_discounts_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2822
|
+
model_type: :matrix_with_threshold_discounts,
|
|
2823
|
+
name: String,
|
|
2824
|
+
billable_metric_id: String?,
|
|
2825
|
+
billed_in_advance: bool?,
|
|
2826
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2827
|
+
conversion_rate: Float?,
|
|
2828
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2829
|
+
currency: String?,
|
|
2830
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2831
|
+
external_price_id: String?,
|
|
2832
|
+
fixed_price_quantity: Float?,
|
|
2833
|
+
invoice_grouping_key: String?,
|
|
2834
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2835
|
+
license_type_id: String?,
|
|
2836
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2837
|
+
reference_id: String?
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
type cadence =
|
|
2841
|
+
:annual
|
|
2842
|
+
| :semi_annual
|
|
2843
|
+
| :monthly
|
|
2844
|
+
| :quarterly
|
|
2845
|
+
| :one_time
|
|
2846
|
+
| :custom
|
|
2847
|
+
|
|
2848
|
+
module Cadence
|
|
2849
|
+
extend Orb::Internal::Type::Enum
|
|
2850
|
+
|
|
2851
|
+
ANNUAL: :annual
|
|
2852
|
+
SEMI_ANNUAL: :semi_annual
|
|
2853
|
+
MONTHLY: :monthly
|
|
2854
|
+
QUARTERLY: :quarterly
|
|
2855
|
+
ONE_TIME: :one_time
|
|
2856
|
+
CUSTOM: :custom
|
|
2857
|
+
|
|
2858
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence]
|
|
2859
|
+
end
|
|
2860
|
+
|
|
2861
|
+
type matrix_with_threshold_discounts_config =
|
|
2862
|
+
{
|
|
2863
|
+
default_unit_amount: String,
|
|
2864
|
+
first_dimension: String,
|
|
2865
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2866
|
+
second_dimension: String?,
|
|
2867
|
+
threshold_discount_groups: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
2871
|
+
attr_accessor default_unit_amount: String
|
|
2872
|
+
|
|
2873
|
+
attr_accessor first_dimension: String
|
|
2874
|
+
|
|
2875
|
+
attr_accessor matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
2876
|
+
|
|
2877
|
+
attr_accessor second_dimension: String?
|
|
2878
|
+
|
|
2879
|
+
attr_reader threshold_discount_groups: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
2880
|
+
|
|
2881
|
+
def threshold_discount_groups=: (
|
|
2882
|
+
::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2883
|
+
) -> ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
1371
2884
|
|
|
1372
2885
|
def initialize: (
|
|
1373
|
-
|
|
1374
|
-
|
|
2886
|
+
default_unit_amount: String,
|
|
2887
|
+
first_dimension: String,
|
|
2888
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2889
|
+
?second_dimension: String?,
|
|
2890
|
+
?threshold_discount_groups: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
1375
2891
|
) -> void
|
|
1376
2892
|
|
|
1377
2893
|
def to_hash: -> {
|
|
1378
|
-
|
|
1379
|
-
|
|
2894
|
+
default_unit_amount: String,
|
|
2895
|
+
first_dimension: String,
|
|
2896
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2897
|
+
second_dimension: String?,
|
|
2898
|
+
threshold_discount_groups: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
1380
2899
|
}
|
|
1381
2900
|
|
|
1382
|
-
type
|
|
2901
|
+
type matrix_value =
|
|
2902
|
+
{
|
|
2903
|
+
first_dimension_value: String,
|
|
2904
|
+
unit_amount: String,
|
|
2905
|
+
second_dimension_value: String?
|
|
2906
|
+
}
|
|
1383
2907
|
|
|
1384
|
-
class
|
|
1385
|
-
attr_accessor
|
|
2908
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
2909
|
+
attr_accessor first_dimension_value: String
|
|
1386
2910
|
|
|
1387
|
-
attr_accessor
|
|
2911
|
+
attr_accessor unit_amount: String
|
|
2912
|
+
|
|
2913
|
+
attr_accessor second_dimension_value: String?
|
|
1388
2914
|
|
|
1389
2915
|
def initialize: (
|
|
1390
|
-
|
|
1391
|
-
|
|
2916
|
+
first_dimension_value: String,
|
|
2917
|
+
unit_amount: String,
|
|
2918
|
+
?second_dimension_value: String?
|
|
1392
2919
|
) -> void
|
|
1393
2920
|
|
|
1394
|
-
def to_hash: -> {
|
|
2921
|
+
def to_hash: -> {
|
|
2922
|
+
first_dimension_value: String,
|
|
2923
|
+
unit_amount: String,
|
|
2924
|
+
second_dimension_value: String?
|
|
2925
|
+
}
|
|
1395
2926
|
end
|
|
1396
2927
|
|
|
1397
|
-
type
|
|
2928
|
+
type threshold_discount_group =
|
|
2929
|
+
{
|
|
2930
|
+
above_threshold_discount_percentage: String,
|
|
2931
|
+
below_threshold_discount_percentage: String,
|
|
2932
|
+
cell_coordinates: String,
|
|
2933
|
+
threshold_amount: String,
|
|
2934
|
+
description: String?
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
2938
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
2939
|
+
|
|
2940
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
2941
|
+
|
|
2942
|
+
attr_accessor cell_coordinates: String
|
|
2943
|
+
|
|
2944
|
+
attr_accessor threshold_amount: String
|
|
2945
|
+
|
|
2946
|
+
attr_accessor description: String?
|
|
2947
|
+
|
|
2948
|
+
def initialize: (
|
|
2949
|
+
above_threshold_discount_percentage: String,
|
|
2950
|
+
below_threshold_discount_percentage: String,
|
|
2951
|
+
cell_coordinates: String,
|
|
2952
|
+
threshold_amount: String,
|
|
2953
|
+
?description: String?
|
|
2954
|
+
) -> void
|
|
2955
|
+
|
|
2956
|
+
def to_hash: -> {
|
|
2957
|
+
above_threshold_discount_percentage: String,
|
|
2958
|
+
below_threshold_discount_percentage: String,
|
|
2959
|
+
cell_coordinates: String,
|
|
2960
|
+
threshold_amount: String,
|
|
2961
|
+
description: String?
|
|
2962
|
+
}
|
|
2963
|
+
end
|
|
2964
|
+
end
|
|
2965
|
+
end
|
|
2966
|
+
|
|
2967
|
+
type tiered_with_proration =
|
|
2968
|
+
{
|
|
2969
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
2970
|
+
item_id: String,
|
|
2971
|
+
model_type: :tiered_with_proration,
|
|
2972
|
+
name: String,
|
|
2973
|
+
tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
2974
|
+
billable_metric_id: String?,
|
|
2975
|
+
billed_in_advance: bool?,
|
|
2976
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2977
|
+
conversion_rate: Float?,
|
|
2978
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2979
|
+
currency: String?,
|
|
2980
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2981
|
+
external_price_id: String?,
|
|
2982
|
+
fixed_price_quantity: Float?,
|
|
2983
|
+
invoice_grouping_key: String?,
|
|
2984
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2985
|
+
license_type_id: String?,
|
|
2986
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2987
|
+
reference_id: String?
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2990
|
+
class TieredWithProration < Orb::Internal::Type::BaseModel
|
|
2991
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence
|
|
2992
|
+
|
|
2993
|
+
attr_accessor item_id: String
|
|
2994
|
+
|
|
2995
|
+
attr_accessor model_type: :tiered_with_proration
|
|
2996
|
+
|
|
2997
|
+
attr_accessor name: String
|
|
2998
|
+
|
|
2999
|
+
attr_accessor tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
3000
|
+
|
|
3001
|
+
attr_accessor billable_metric_id: String?
|
|
3002
|
+
|
|
3003
|
+
attr_accessor billed_in_advance: bool?
|
|
3004
|
+
|
|
3005
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3006
|
+
|
|
3007
|
+
attr_accessor conversion_rate: Float?
|
|
3008
|
+
|
|
3009
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
3010
|
+
|
|
3011
|
+
attr_accessor currency: String?
|
|
3012
|
+
|
|
3013
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
3014
|
+
|
|
3015
|
+
attr_accessor external_price_id: String?
|
|
3016
|
+
|
|
3017
|
+
attr_accessor fixed_price_quantity: Float?
|
|
3018
|
+
|
|
3019
|
+
attr_accessor invoice_grouping_key: String?
|
|
3020
|
+
|
|
3021
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3022
|
+
|
|
3023
|
+
attr_accessor license_type_id: String?
|
|
3024
|
+
|
|
3025
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
3026
|
+
|
|
3027
|
+
attr_accessor reference_id: String?
|
|
3028
|
+
|
|
3029
|
+
def initialize: (
|
|
3030
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
3031
|
+
item_id: String,
|
|
3032
|
+
name: String,
|
|
3033
|
+
tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
3034
|
+
?billable_metric_id: String?,
|
|
3035
|
+
?billed_in_advance: bool?,
|
|
3036
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3037
|
+
?conversion_rate: Float?,
|
|
3038
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3039
|
+
?currency: String?,
|
|
3040
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3041
|
+
?external_price_id: String?,
|
|
3042
|
+
?fixed_price_quantity: Float?,
|
|
3043
|
+
?invoice_grouping_key: String?,
|
|
3044
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3045
|
+
?license_type_id: String?,
|
|
3046
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
3047
|
+
?reference_id: String?,
|
|
3048
|
+
?model_type: :tiered_with_proration
|
|
3049
|
+
) -> void
|
|
3050
|
+
|
|
3051
|
+
def to_hash: -> {
|
|
3052
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
3053
|
+
item_id: String,
|
|
3054
|
+
model_type: :tiered_with_proration,
|
|
3055
|
+
name: String,
|
|
3056
|
+
tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
3057
|
+
billable_metric_id: String?,
|
|
3058
|
+
billed_in_advance: bool?,
|
|
3059
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3060
|
+
conversion_rate: Float?,
|
|
3061
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3062
|
+
currency: String?,
|
|
3063
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3064
|
+
external_price_id: String?,
|
|
3065
|
+
fixed_price_quantity: Float?,
|
|
3066
|
+
invoice_grouping_key: String?,
|
|
3067
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3068
|
+
license_type_id: String?,
|
|
3069
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3070
|
+
reference_id: String?
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
type cadence =
|
|
3074
|
+
:annual
|
|
3075
|
+
| :semi_annual
|
|
3076
|
+
| :monthly
|
|
3077
|
+
| :quarterly
|
|
3078
|
+
| :one_time
|
|
3079
|
+
| :custom
|
|
3080
|
+
|
|
3081
|
+
module Cadence
|
|
3082
|
+
extend Orb::Internal::Type::Enum
|
|
3083
|
+
|
|
3084
|
+
ANNUAL: :annual
|
|
3085
|
+
SEMI_ANNUAL: :semi_annual
|
|
3086
|
+
MONTHLY: :monthly
|
|
3087
|
+
QUARTERLY: :quarterly
|
|
3088
|
+
ONE_TIME: :one_time
|
|
3089
|
+
CUSTOM: :custom
|
|
3090
|
+
|
|
3091
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence]
|
|
3092
|
+
end
|
|
3093
|
+
|
|
3094
|
+
type tiered_with_proration_config =
|
|
3095
|
+
{
|
|
3096
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
class TieredWithProrationConfig < Orb::Internal::Type::BaseModel
|
|
3100
|
+
attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
3101
|
+
|
|
3102
|
+
def initialize: (
|
|
3103
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
3104
|
+
) -> void
|
|
3105
|
+
|
|
3106
|
+
def to_hash: -> {
|
|
3107
|
+
tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1398
3111
|
|
|
1399
3112
|
class Tier < Orb::Internal::Type::BaseModel
|
|
3113
|
+
attr_accessor tier_lower_bound: String
|
|
3114
|
+
|
|
1400
3115
|
attr_accessor unit_amount: String
|
|
1401
3116
|
|
|
1402
|
-
|
|
3117
|
+
def initialize: (
|
|
3118
|
+
tier_lower_bound: String,
|
|
3119
|
+
unit_amount: String
|
|
3120
|
+
) -> void
|
|
3121
|
+
|
|
3122
|
+
def to_hash: -> {
|
|
3123
|
+
tier_lower_bound: String,
|
|
3124
|
+
unit_amount: String
|
|
3125
|
+
}
|
|
3126
|
+
end
|
|
3127
|
+
end
|
|
3128
|
+
end
|
|
3129
|
+
|
|
3130
|
+
type grouped_with_min_max_thresholds =
|
|
3131
|
+
{
|
|
3132
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3133
|
+
grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3134
|
+
item_id: String,
|
|
3135
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
3136
|
+
name: String,
|
|
3137
|
+
billable_metric_id: String?,
|
|
3138
|
+
billed_in_advance: bool?,
|
|
3139
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3140
|
+
conversion_rate: Float?,
|
|
3141
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3142
|
+
currency: String?,
|
|
3143
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3144
|
+
external_price_id: String?,
|
|
3145
|
+
fixed_price_quantity: Float?,
|
|
3146
|
+
invoice_grouping_key: String?,
|
|
3147
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3148
|
+
license_type_id: String?,
|
|
3149
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3150
|
+
reference_id: String?
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel
|
|
3154
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence
|
|
3155
|
+
|
|
3156
|
+
attr_accessor grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig
|
|
3157
|
+
|
|
3158
|
+
attr_accessor item_id: String
|
|
3159
|
+
|
|
3160
|
+
attr_accessor model_type: :grouped_with_min_max_thresholds
|
|
3161
|
+
|
|
3162
|
+
attr_accessor name: String
|
|
3163
|
+
|
|
3164
|
+
attr_accessor billable_metric_id: String?
|
|
3165
|
+
|
|
3166
|
+
attr_accessor billed_in_advance: bool?
|
|
3167
|
+
|
|
3168
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3169
|
+
|
|
3170
|
+
attr_accessor conversion_rate: Float?
|
|
3171
|
+
|
|
3172
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
3173
|
+
|
|
3174
|
+
attr_accessor currency: String?
|
|
3175
|
+
|
|
3176
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
3177
|
+
|
|
3178
|
+
attr_accessor external_price_id: String?
|
|
3179
|
+
|
|
3180
|
+
attr_accessor fixed_price_quantity: Float?
|
|
3181
|
+
|
|
3182
|
+
attr_accessor invoice_grouping_key: String?
|
|
3183
|
+
|
|
3184
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3185
|
+
|
|
3186
|
+
attr_accessor license_type_id: String?
|
|
3187
|
+
|
|
3188
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1403
3189
|
|
|
1404
|
-
|
|
1405
|
-
unit_amount: String,
|
|
1406
|
-
?tier_lower_bound: String?
|
|
1407
|
-
) -> void
|
|
3190
|
+
attr_accessor reference_id: String?
|
|
1408
3191
|
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
3192
|
+
def initialize: (
|
|
3193
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3194
|
+
grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3195
|
+
item_id: String,
|
|
3196
|
+
name: String,
|
|
3197
|
+
?billable_metric_id: String?,
|
|
3198
|
+
?billed_in_advance: bool?,
|
|
3199
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3200
|
+
?conversion_rate: Float?,
|
|
3201
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3202
|
+
?currency: String?,
|
|
3203
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3204
|
+
?external_price_id: String?,
|
|
3205
|
+
?fixed_price_quantity: Float?,
|
|
3206
|
+
?invoice_grouping_key: String?,
|
|
3207
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3208
|
+
?license_type_id: String?,
|
|
3209
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
3210
|
+
?reference_id: String?,
|
|
3211
|
+
?model_type: :grouped_with_min_max_thresholds
|
|
3212
|
+
) -> void
|
|
3213
|
+
|
|
3214
|
+
def to_hash: -> {
|
|
3215
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3216
|
+
grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3217
|
+
item_id: String,
|
|
3218
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
3219
|
+
name: String,
|
|
3220
|
+
billable_metric_id: String?,
|
|
3221
|
+
billed_in_advance: bool?,
|
|
3222
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3223
|
+
conversion_rate: Float?,
|
|
3224
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3225
|
+
currency: String?,
|
|
3226
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3227
|
+
external_price_id: String?,
|
|
3228
|
+
fixed_price_quantity: Float?,
|
|
3229
|
+
invoice_grouping_key: String?,
|
|
3230
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3231
|
+
license_type_id: String?,
|
|
3232
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3233
|
+
reference_id: String?
|
|
3234
|
+
}
|
|
1415
3235
|
|
|
1416
3236
|
type cadence =
|
|
1417
3237
|
:annual
|
|
@@ -1431,22 +3251,54 @@ module Orb
|
|
|
1431
3251
|
ONE_TIME: :one_time
|
|
1432
3252
|
CUSTOM: :custom
|
|
1433
3253
|
|
|
1434
|
-
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3254
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence]
|
|
3255
|
+
end
|
|
3256
|
+
|
|
3257
|
+
type grouped_with_min_max_thresholds_config =
|
|
3258
|
+
{
|
|
3259
|
+
grouping_key: String,
|
|
3260
|
+
maximum_charge: String,
|
|
3261
|
+
minimum_charge: String,
|
|
3262
|
+
per_unit_rate: String
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
3266
|
+
attr_accessor grouping_key: String
|
|
3267
|
+
|
|
3268
|
+
attr_accessor maximum_charge: String
|
|
3269
|
+
|
|
3270
|
+
attr_accessor minimum_charge: String
|
|
3271
|
+
|
|
3272
|
+
attr_accessor per_unit_rate: String
|
|
3273
|
+
|
|
3274
|
+
def initialize: (
|
|
3275
|
+
grouping_key: String,
|
|
3276
|
+
maximum_charge: String,
|
|
3277
|
+
minimum_charge: String,
|
|
3278
|
+
per_unit_rate: String
|
|
3279
|
+
) -> void
|
|
3280
|
+
|
|
3281
|
+
def to_hash: -> {
|
|
3282
|
+
grouping_key: String,
|
|
3283
|
+
maximum_charge: String,
|
|
3284
|
+
minimum_charge: String,
|
|
3285
|
+
per_unit_rate: String
|
|
3286
|
+
}
|
|
1435
3287
|
end
|
|
1436
3288
|
end
|
|
1437
3289
|
|
|
1438
|
-
type
|
|
3290
|
+
type cumulative_grouped_allocation =
|
|
1439
3291
|
{
|
|
1440
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3292
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3293
|
+
cumulative_grouped_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1441
3294
|
item_id: String,
|
|
1442
|
-
model_type: :
|
|
3295
|
+
model_type: :cumulative_grouped_allocation,
|
|
1443
3296
|
name: String,
|
|
1444
|
-
tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1445
3297
|
billable_metric_id: String?,
|
|
1446
3298
|
billed_in_advance: bool?,
|
|
1447
3299
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1448
3300
|
conversion_rate: Float?,
|
|
1449
|
-
conversion_rate_config: Orb::Models::
|
|
3301
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1450
3302
|
currency: String?,
|
|
1451
3303
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1452
3304
|
external_price_id: String?,
|
|
@@ -1458,17 +3310,17 @@ module Orb
|
|
|
1458
3310
|
reference_id: String?
|
|
1459
3311
|
}
|
|
1460
3312
|
|
|
1461
|
-
class
|
|
1462
|
-
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3313
|
+
class CumulativeGroupedAllocation < Orb::Internal::Type::BaseModel
|
|
3314
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence
|
|
3315
|
+
|
|
3316
|
+
attr_accessor cumulative_grouped_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
1463
3317
|
|
|
1464
3318
|
attr_accessor item_id: String
|
|
1465
3319
|
|
|
1466
|
-
attr_accessor model_type: :
|
|
3320
|
+
attr_accessor model_type: :cumulative_grouped_allocation
|
|
1467
3321
|
|
|
1468
3322
|
attr_accessor name: String
|
|
1469
3323
|
|
|
1470
|
-
attr_accessor tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
1471
|
-
|
|
1472
3324
|
attr_accessor billable_metric_id: String?
|
|
1473
3325
|
|
|
1474
3326
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1477,7 +3329,7 @@ module Orb
|
|
|
1477
3329
|
|
|
1478
3330
|
attr_accessor conversion_rate: Float?
|
|
1479
3331
|
|
|
1480
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3332
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1481
3333
|
|
|
1482
3334
|
attr_accessor currency: String?
|
|
1483
3335
|
|
|
@@ -1498,15 +3350,15 @@ module Orb
|
|
|
1498
3350
|
attr_accessor reference_id: String?
|
|
1499
3351
|
|
|
1500
3352
|
def initialize: (
|
|
1501
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3353
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3354
|
+
cumulative_grouped_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1502
3355
|
item_id: String,
|
|
1503
3356
|
name: String,
|
|
1504
|
-
tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1505
3357
|
?billable_metric_id: String?,
|
|
1506
3358
|
?billed_in_advance: bool?,
|
|
1507
3359
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1508
3360
|
?conversion_rate: Float?,
|
|
1509
|
-
?conversion_rate_config: Orb::Models::
|
|
3361
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1510
3362
|
?currency: String?,
|
|
1511
3363
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1512
3364
|
?external_price_id: String?,
|
|
@@ -1516,20 +3368,20 @@ module Orb
|
|
|
1516
3368
|
?license_type_id: String?,
|
|
1517
3369
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1518
3370
|
?reference_id: String?,
|
|
1519
|
-
?model_type: :
|
|
3371
|
+
?model_type: :cumulative_grouped_allocation
|
|
1520
3372
|
) -> void
|
|
1521
3373
|
|
|
1522
3374
|
def to_hash: -> {
|
|
1523
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3375
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3376
|
+
cumulative_grouped_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1524
3377
|
item_id: String,
|
|
1525
|
-
model_type: :
|
|
3378
|
+
model_type: :cumulative_grouped_allocation,
|
|
1526
3379
|
name: String,
|
|
1527
|
-
tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1528
3380
|
billable_metric_id: String?,
|
|
1529
3381
|
billed_in_advance: bool?,
|
|
1530
3382
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1531
3383
|
conversion_rate: Float?,
|
|
1532
|
-
conversion_rate_config: Orb::Models::
|
|
3384
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1533
3385
|
currency: String?,
|
|
1534
3386
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1535
3387
|
external_price_id: String?,
|
|
@@ -1559,57 +3411,54 @@ module Orb
|
|
|
1559
3411
|
ONE_TIME: :one_time
|
|
1560
3412
|
CUSTOM: :custom
|
|
1561
3413
|
|
|
1562
|
-
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3414
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence]
|
|
1563
3415
|
end
|
|
1564
3416
|
|
|
1565
|
-
type
|
|
3417
|
+
type cumulative_grouped_allocation_config =
|
|
1566
3418
|
{
|
|
1567
|
-
|
|
3419
|
+
cumulative_allocation: String,
|
|
3420
|
+
group_allocation: String,
|
|
3421
|
+
grouping_key: String,
|
|
3422
|
+
unit_amount: String
|
|
1568
3423
|
}
|
|
1569
3424
|
|
|
1570
|
-
class
|
|
1571
|
-
attr_accessor
|
|
3425
|
+
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
3426
|
+
attr_accessor cumulative_allocation: String
|
|
3427
|
+
|
|
3428
|
+
attr_accessor group_allocation: String
|
|
3429
|
+
|
|
3430
|
+
attr_accessor grouping_key: String
|
|
3431
|
+
|
|
3432
|
+
attr_accessor unit_amount: String
|
|
1572
3433
|
|
|
1573
3434
|
def initialize: (
|
|
1574
|
-
|
|
3435
|
+
cumulative_allocation: String,
|
|
3436
|
+
group_allocation: String,
|
|
3437
|
+
grouping_key: String,
|
|
3438
|
+
unit_amount: String
|
|
1575
3439
|
) -> void
|
|
1576
3440
|
|
|
1577
3441
|
def to_hash: -> {
|
|
1578
|
-
|
|
3442
|
+
cumulative_allocation: String,
|
|
3443
|
+
group_allocation: String,
|
|
3444
|
+
grouping_key: String,
|
|
3445
|
+
unit_amount: String
|
|
1579
3446
|
}
|
|
1580
|
-
|
|
1581
|
-
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1582
|
-
|
|
1583
|
-
class Tier < Orb::Internal::Type::BaseModel
|
|
1584
|
-
attr_accessor tier_lower_bound: String
|
|
1585
|
-
|
|
1586
|
-
attr_accessor unit_amount: String
|
|
1587
|
-
|
|
1588
|
-
def initialize: (
|
|
1589
|
-
tier_lower_bound: String,
|
|
1590
|
-
unit_amount: String
|
|
1591
|
-
) -> void
|
|
1592
|
-
|
|
1593
|
-
def to_hash: -> {
|
|
1594
|
-
tier_lower_bound: String,
|
|
1595
|
-
unit_amount: String
|
|
1596
|
-
}
|
|
1597
|
-
end
|
|
1598
3447
|
end
|
|
1599
3448
|
end
|
|
1600
3449
|
|
|
1601
|
-
type
|
|
3450
|
+
type daily_credit_allowance =
|
|
1602
3451
|
{
|
|
1603
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
1604
|
-
|
|
3452
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3453
|
+
daily_credit_allowance_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1605
3454
|
item_id: String,
|
|
1606
|
-
model_type: :
|
|
3455
|
+
model_type: :daily_credit_allowance,
|
|
1607
3456
|
name: String,
|
|
1608
3457
|
billable_metric_id: String?,
|
|
1609
3458
|
billed_in_advance: bool?,
|
|
1610
3459
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1611
3460
|
conversion_rate: Float?,
|
|
1612
|
-
conversion_rate_config: Orb::Models::
|
|
3461
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1613
3462
|
currency: String?,
|
|
1614
3463
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1615
3464
|
external_price_id: String?,
|
|
@@ -1621,14 +3470,14 @@ module Orb
|
|
|
1621
3470
|
reference_id: String?
|
|
1622
3471
|
}
|
|
1623
3472
|
|
|
1624
|
-
class
|
|
1625
|
-
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3473
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
3474
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence
|
|
1626
3475
|
|
|
1627
|
-
attr_accessor
|
|
3476
|
+
attr_accessor daily_credit_allowance_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
1628
3477
|
|
|
1629
3478
|
attr_accessor item_id: String
|
|
1630
3479
|
|
|
1631
|
-
attr_accessor model_type: :
|
|
3480
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
1632
3481
|
|
|
1633
3482
|
attr_accessor name: String
|
|
1634
3483
|
|
|
@@ -1640,7 +3489,7 @@ module Orb
|
|
|
1640
3489
|
|
|
1641
3490
|
attr_accessor conversion_rate: Float?
|
|
1642
3491
|
|
|
1643
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3492
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1644
3493
|
|
|
1645
3494
|
attr_accessor currency: String?
|
|
1646
3495
|
|
|
@@ -1661,15 +3510,15 @@ module Orb
|
|
|
1661
3510
|
attr_accessor reference_id: String?
|
|
1662
3511
|
|
|
1663
3512
|
def initialize: (
|
|
1664
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
1665
|
-
|
|
3513
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3514
|
+
daily_credit_allowance_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1666
3515
|
item_id: String,
|
|
1667
3516
|
name: String,
|
|
1668
3517
|
?billable_metric_id: String?,
|
|
1669
3518
|
?billed_in_advance: bool?,
|
|
1670
3519
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1671
3520
|
?conversion_rate: Float?,
|
|
1672
|
-
?conversion_rate_config: Orb::Models::
|
|
3521
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1673
3522
|
?currency: String?,
|
|
1674
3523
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1675
3524
|
?external_price_id: String?,
|
|
@@ -1679,20 +3528,20 @@ module Orb
|
|
|
1679
3528
|
?license_type_id: String?,
|
|
1680
3529
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1681
3530
|
?reference_id: String?,
|
|
1682
|
-
?model_type: :
|
|
3531
|
+
?model_type: :daily_credit_allowance
|
|
1683
3532
|
) -> void
|
|
1684
3533
|
|
|
1685
3534
|
def to_hash: -> {
|
|
1686
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
1687
|
-
|
|
3535
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3536
|
+
daily_credit_allowance_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1688
3537
|
item_id: String,
|
|
1689
|
-
model_type: :
|
|
3538
|
+
model_type: :daily_credit_allowance,
|
|
1690
3539
|
name: String,
|
|
1691
3540
|
billable_metric_id: String?,
|
|
1692
3541
|
billed_in_advance: bool?,
|
|
1693
3542
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1694
3543
|
conversion_rate: Float?,
|
|
1695
|
-
conversion_rate_config: Orb::Models::
|
|
3544
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1696
3545
|
currency: String?,
|
|
1697
3546
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1698
3547
|
external_price_id: String?,
|
|
@@ -1722,54 +3571,78 @@ module Orb
|
|
|
1722
3571
|
ONE_TIME: :one_time
|
|
1723
3572
|
CUSTOM: :custom
|
|
1724
3573
|
|
|
1725
|
-
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3574
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence]
|
|
1726
3575
|
end
|
|
1727
3576
|
|
|
1728
|
-
type
|
|
3577
|
+
type daily_credit_allowance_config =
|
|
1729
3578
|
{
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
3579
|
+
daily_allowance: String,
|
|
3580
|
+
default_unit_amount: String,
|
|
3581
|
+
dimensions: ::Array[String?],
|
|
3582
|
+
event_day_property: String,
|
|
3583
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1734
3584
|
}
|
|
1735
3585
|
|
|
1736
|
-
class
|
|
1737
|
-
attr_accessor
|
|
3586
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3587
|
+
attr_accessor daily_allowance: String
|
|
1738
3588
|
|
|
1739
|
-
attr_accessor
|
|
3589
|
+
attr_accessor default_unit_amount: String
|
|
1740
3590
|
|
|
1741
|
-
attr_accessor
|
|
3591
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1742
3592
|
|
|
1743
|
-
attr_accessor
|
|
3593
|
+
attr_accessor event_day_property: String
|
|
3594
|
+
|
|
3595
|
+
attr_accessor matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1744
3596
|
|
|
1745
3597
|
def initialize: (
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
3598
|
+
daily_allowance: String,
|
|
3599
|
+
default_unit_amount: String,
|
|
3600
|
+
dimensions: ::Array[String?],
|
|
3601
|
+
event_day_property: String,
|
|
3602
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1750
3603
|
) -> void
|
|
1751
3604
|
|
|
1752
3605
|
def to_hash: -> {
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
3606
|
+
daily_allowance: String,
|
|
3607
|
+
default_unit_amount: String,
|
|
3608
|
+
dimensions: ::Array[String?],
|
|
3609
|
+
event_day_property: String,
|
|
3610
|
+
matrix_values: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1757
3611
|
}
|
|
3612
|
+
|
|
3613
|
+
type matrix_value =
|
|
3614
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
3615
|
+
|
|
3616
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
3617
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
3618
|
+
|
|
3619
|
+
attr_accessor unit_amount: String
|
|
3620
|
+
|
|
3621
|
+
def initialize: (
|
|
3622
|
+
dimension_values: ::Array[String?],
|
|
3623
|
+
unit_amount: String
|
|
3624
|
+
) -> void
|
|
3625
|
+
|
|
3626
|
+
def to_hash: -> {
|
|
3627
|
+
dimension_values: ::Array[String?],
|
|
3628
|
+
unit_amount: String
|
|
3629
|
+
}
|
|
3630
|
+
end
|
|
1758
3631
|
end
|
|
1759
3632
|
end
|
|
1760
3633
|
|
|
1761
|
-
type
|
|
3634
|
+
type metered_allowance =
|
|
1762
3635
|
{
|
|
1763
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
1764
|
-
cumulative_grouped_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3636
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1765
3637
|
item_id: String,
|
|
1766
|
-
|
|
3638
|
+
metered_allowance_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3639
|
+
model_type: :metered_allowance,
|
|
1767
3640
|
name: String,
|
|
1768
3641
|
billable_metric_id: String?,
|
|
1769
3642
|
billed_in_advance: bool?,
|
|
1770
3643
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1771
3644
|
conversion_rate: Float?,
|
|
1772
|
-
conversion_rate_config: Orb::Models::
|
|
3645
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1773
3646
|
currency: String?,
|
|
1774
3647
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1775
3648
|
external_price_id: String?,
|
|
@@ -1781,14 +3654,14 @@ module Orb
|
|
|
1781
3654
|
reference_id: String?
|
|
1782
3655
|
}
|
|
1783
3656
|
|
|
1784
|
-
class
|
|
1785
|
-
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
1786
|
-
|
|
1787
|
-
attr_accessor cumulative_grouped_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
3657
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
3658
|
+
attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence
|
|
1788
3659
|
|
|
1789
3660
|
attr_accessor item_id: String
|
|
1790
3661
|
|
|
1791
|
-
attr_accessor
|
|
3662
|
+
attr_accessor metered_allowance_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
3663
|
+
|
|
3664
|
+
attr_accessor model_type: :metered_allowance
|
|
1792
3665
|
|
|
1793
3666
|
attr_accessor name: String
|
|
1794
3667
|
|
|
@@ -1800,7 +3673,7 @@ module Orb
|
|
|
1800
3673
|
|
|
1801
3674
|
attr_accessor conversion_rate: Float?
|
|
1802
3675
|
|
|
1803
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3676
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1804
3677
|
|
|
1805
3678
|
attr_accessor currency: String?
|
|
1806
3679
|
|
|
@@ -1821,15 +3694,15 @@ module Orb
|
|
|
1821
3694
|
attr_accessor reference_id: String?
|
|
1822
3695
|
|
|
1823
3696
|
def initialize: (
|
|
1824
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
1825
|
-
cumulative_grouped_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3697
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1826
3698
|
item_id: String,
|
|
3699
|
+
metered_allowance_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1827
3700
|
name: String,
|
|
1828
3701
|
?billable_metric_id: String?,
|
|
1829
3702
|
?billed_in_advance: bool?,
|
|
1830
3703
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1831
3704
|
?conversion_rate: Float?,
|
|
1832
|
-
?conversion_rate_config: Orb::Models::
|
|
3705
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1833
3706
|
?currency: String?,
|
|
1834
3707
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1835
3708
|
?external_price_id: String?,
|
|
@@ -1839,20 +3712,20 @@ module Orb
|
|
|
1839
3712
|
?license_type_id: String?,
|
|
1840
3713
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1841
3714
|
?reference_id: String?,
|
|
1842
|
-
?model_type: :
|
|
3715
|
+
?model_type: :metered_allowance
|
|
1843
3716
|
) -> void
|
|
1844
3717
|
|
|
1845
3718
|
def to_hash: -> {
|
|
1846
|
-
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
1847
|
-
cumulative_grouped_allocation_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3719
|
+
cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1848
3720
|
item_id: String,
|
|
1849
|
-
|
|
3721
|
+
metered_allowance_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3722
|
+
model_type: :metered_allowance,
|
|
1850
3723
|
name: String,
|
|
1851
3724
|
billable_metric_id: String?,
|
|
1852
3725
|
billed_in_advance: bool?,
|
|
1853
3726
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1854
3727
|
conversion_rate: Float?,
|
|
1855
|
-
conversion_rate_config: Orb::Models::
|
|
3728
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1856
3729
|
currency: String?,
|
|
1857
3730
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1858
3731
|
external_price_id: String?,
|
|
@@ -1882,38 +3755,52 @@ module Orb
|
|
|
1882
3755
|
ONE_TIME: :one_time
|
|
1883
3756
|
CUSTOM: :custom
|
|
1884
3757
|
|
|
1885
|
-
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::
|
|
3758
|
+
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence]
|
|
1886
3759
|
end
|
|
1887
3760
|
|
|
1888
|
-
type
|
|
3761
|
+
type metered_allowance_config =
|
|
1889
3762
|
{
|
|
1890
|
-
|
|
1891
|
-
|
|
3763
|
+
allowance_grouping_value: String,
|
|
3764
|
+
consumption_grouping_value: String,
|
|
1892
3765
|
grouping_key: String,
|
|
1893
|
-
unit_amount: String
|
|
3766
|
+
unit_amount: String,
|
|
3767
|
+
allowance_display_name: String,
|
|
3768
|
+
consumption_display_name: String
|
|
1894
3769
|
}
|
|
1895
3770
|
|
|
1896
|
-
class
|
|
1897
|
-
attr_accessor
|
|
3771
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3772
|
+
attr_accessor allowance_grouping_value: String
|
|
1898
3773
|
|
|
1899
|
-
attr_accessor
|
|
3774
|
+
attr_accessor consumption_grouping_value: String
|
|
1900
3775
|
|
|
1901
3776
|
attr_accessor grouping_key: String
|
|
1902
3777
|
|
|
1903
3778
|
attr_accessor unit_amount: String
|
|
1904
3779
|
|
|
3780
|
+
attr_reader allowance_display_name: String?
|
|
3781
|
+
|
|
3782
|
+
def allowance_display_name=: (String) -> String
|
|
3783
|
+
|
|
3784
|
+
attr_reader consumption_display_name: String?
|
|
3785
|
+
|
|
3786
|
+
def consumption_display_name=: (String) -> String
|
|
3787
|
+
|
|
1905
3788
|
def initialize: (
|
|
1906
|
-
|
|
1907
|
-
|
|
3789
|
+
allowance_grouping_value: String,
|
|
3790
|
+
consumption_grouping_value: String,
|
|
1908
3791
|
grouping_key: String,
|
|
1909
|
-
unit_amount: String
|
|
3792
|
+
unit_amount: String,
|
|
3793
|
+
?allowance_display_name: String,
|
|
3794
|
+
?consumption_display_name: String
|
|
1910
3795
|
) -> void
|
|
1911
3796
|
|
|
1912
3797
|
def to_hash: -> {
|
|
1913
|
-
|
|
1914
|
-
|
|
3798
|
+
allowance_grouping_value: String,
|
|
3799
|
+
consumption_grouping_value: String,
|
|
1915
3800
|
grouping_key: String,
|
|
1916
|
-
unit_amount: String
|
|
3801
|
+
unit_amount: String,
|
|
3802
|
+
allowance_display_name: String,
|
|
3803
|
+
consumption_display_name: String
|
|
1917
3804
|
}
|
|
1918
3805
|
end
|
|
1919
3806
|
end
|
|
@@ -1929,7 +3816,7 @@ module Orb
|
|
|
1929
3816
|
billed_in_advance: bool?,
|
|
1930
3817
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1931
3818
|
conversion_rate: Float?,
|
|
1932
|
-
conversion_rate_config: Orb::Models::
|
|
3819
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1933
3820
|
currency: String?,
|
|
1934
3821
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1935
3822
|
external_price_id: String?,
|
|
@@ -1960,7 +3847,7 @@ module Orb
|
|
|
1960
3847
|
|
|
1961
3848
|
attr_accessor conversion_rate: Float?
|
|
1962
3849
|
|
|
1963
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3850
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1964
3851
|
|
|
1965
3852
|
attr_accessor currency: String?
|
|
1966
3853
|
|
|
@@ -1989,7 +3876,7 @@ module Orb
|
|
|
1989
3876
|
?billed_in_advance: bool?,
|
|
1990
3877
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1991
3878
|
?conversion_rate: Float?,
|
|
1992
|
-
?conversion_rate_config: Orb::Models::
|
|
3879
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1993
3880
|
?currency: String?,
|
|
1994
3881
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1995
3882
|
?external_price_id: String?,
|
|
@@ -2012,7 +3899,7 @@ module Orb
|
|
|
2012
3899
|
billed_in_advance: bool?,
|
|
2013
3900
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2014
3901
|
conversion_rate: Float?,
|
|
2015
|
-
conversion_rate_config: Orb::Models::
|
|
3902
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2016
3903
|
currency: String?,
|
|
2017
3904
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2018
3905
|
external_price_id: String?,
|
|
@@ -2045,14 +3932,38 @@ module Orb
|
|
|
2045
3932
|
def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Percent::cadence]
|
|
2046
3933
|
end
|
|
2047
3934
|
|
|
2048
|
-
type percent_config =
|
|
3935
|
+
type percent_config =
|
|
3936
|
+
{
|
|
3937
|
+
percent: Float,
|
|
3938
|
+
maximum_amount: String?,
|
|
3939
|
+
minimum_amount: String?,
|
|
3940
|
+
prorated: bool
|
|
3941
|
+
}
|
|
2049
3942
|
|
|
2050
3943
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
2051
3944
|
attr_accessor percent: Float
|
|
2052
3945
|
|
|
2053
|
-
|
|
3946
|
+
attr_accessor maximum_amount: String?
|
|
2054
3947
|
|
|
2055
|
-
|
|
3948
|
+
attr_accessor minimum_amount: String?
|
|
3949
|
+
|
|
3950
|
+
attr_reader prorated: bool?
|
|
3951
|
+
|
|
3952
|
+
def prorated=: (bool) -> bool
|
|
3953
|
+
|
|
3954
|
+
def initialize: (
|
|
3955
|
+
percent: Float,
|
|
3956
|
+
?maximum_amount: String?,
|
|
3957
|
+
?minimum_amount: String?,
|
|
3958
|
+
?prorated: bool
|
|
3959
|
+
) -> void
|
|
3960
|
+
|
|
3961
|
+
def to_hash: -> {
|
|
3962
|
+
percent: Float,
|
|
3963
|
+
maximum_amount: String?,
|
|
3964
|
+
minimum_amount: String?,
|
|
3965
|
+
prorated: bool
|
|
3966
|
+
}
|
|
2056
3967
|
end
|
|
2057
3968
|
end
|
|
2058
3969
|
|
|
@@ -2067,7 +3978,7 @@ module Orb
|
|
|
2067
3978
|
billed_in_advance: bool?,
|
|
2068
3979
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2069
3980
|
conversion_rate: Float?,
|
|
2070
|
-
conversion_rate_config: Orb::Models::
|
|
3981
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2071
3982
|
currency: String?,
|
|
2072
3983
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2073
3984
|
external_price_id: String?,
|
|
@@ -2098,7 +4009,7 @@ module Orb
|
|
|
2098
4009
|
|
|
2099
4010
|
attr_accessor conversion_rate: Float?
|
|
2100
4011
|
|
|
2101
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
4012
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2102
4013
|
|
|
2103
4014
|
attr_accessor currency: String?
|
|
2104
4015
|
|
|
@@ -2127,7 +4038,7 @@ module Orb
|
|
|
2127
4038
|
?billed_in_advance: bool?,
|
|
2128
4039
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2129
4040
|
?conversion_rate: Float?,
|
|
2130
|
-
?conversion_rate_config: Orb::Models::
|
|
4041
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2131
4042
|
?currency: String?,
|
|
2132
4043
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2133
4044
|
?external_price_id: String?,
|
|
@@ -2150,7 +4061,7 @@ module Orb
|
|
|
2150
4061
|
billed_in_advance: bool?,
|
|
2151
4062
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2152
4063
|
conversion_rate: Float?,
|
|
2153
|
-
conversion_rate_config: Orb::Models::
|
|
4064
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2154
4065
|
currency: String?,
|
|
2155
4066
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2156
4067
|
external_price_id: String?,
|