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
|
@@ -3,6 +3,7 @@ module Orb
|
|
|
3
3
|
module Beta
|
|
4
4
|
type external_plan_id_create_plan_version_params =
|
|
5
5
|
{
|
|
6
|
+
external_plan_id: String,
|
|
6
7
|
version: Integer,
|
|
7
8
|
add_adjustments: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment]?,
|
|
8
9
|
add_prices: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice]?,
|
|
@@ -18,6 +19,8 @@ module Orb
|
|
|
18
19
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
19
20
|
include Orb::Internal::Type::RequestParameters
|
|
20
21
|
|
|
22
|
+
attr_accessor external_plan_id: String
|
|
23
|
+
|
|
21
24
|
attr_accessor version: Integer
|
|
22
25
|
|
|
23
26
|
attr_accessor add_adjustments: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment]?
|
|
@@ -35,6 +38,7 @@ module Orb
|
|
|
35
38
|
attr_accessor set_as_default: bool?
|
|
36
39
|
|
|
37
40
|
def initialize: (
|
|
41
|
+
external_plan_id: String,
|
|
38
42
|
version: Integer,
|
|
39
43
|
?add_adjustments: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment]?,
|
|
40
44
|
?add_prices: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice]?,
|
|
@@ -47,6 +51,7 @@ module Orb
|
|
|
47
51
|
) -> void
|
|
48
52
|
|
|
49
53
|
def to_hash: -> {
|
|
54
|
+
external_plan_id: String,
|
|
50
55
|
version: Integer,
|
|
51
56
|
add_adjustments: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment]?,
|
|
52
57
|
add_prices: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice]?,
|
|
@@ -85,10 +90,179 @@ module Orb
|
|
|
85
90
|
| Orb::NewAmountDiscount
|
|
86
91
|
| Orb::NewMinimum
|
|
87
92
|
| Orb::NewMaximum
|
|
93
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount
|
|
88
94
|
|
|
89
95
|
module Adjustment
|
|
90
96
|
extend Orb::Internal::Type::Union
|
|
91
97
|
|
|
98
|
+
type tiered_percentage_discount =
|
|
99
|
+
{
|
|
100
|
+
adjustment_type: :tiered_percentage_discount,
|
|
101
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
102
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
103
|
+
applies_to_item_ids: ::Array[String]?,
|
|
104
|
+
applies_to_price_ids: ::Array[String]?,
|
|
105
|
+
currency: String?,
|
|
106
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
107
|
+
is_invoice_level: bool,
|
|
108
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
112
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
113
|
+
|
|
114
|
+
attr_accessor tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
115
|
+
|
|
116
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
117
|
+
|
|
118
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
119
|
+
|
|
120
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
121
|
+
|
|
122
|
+
attr_accessor currency: String?
|
|
123
|
+
|
|
124
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
125
|
+
|
|
126
|
+
attr_reader is_invoice_level: bool?
|
|
127
|
+
|
|
128
|
+
def is_invoice_level=: (bool) -> bool
|
|
129
|
+
|
|
130
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
131
|
+
|
|
132
|
+
def initialize: (
|
|
133
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
134
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
135
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
136
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
137
|
+
?currency: String?,
|
|
138
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
139
|
+
?is_invoice_level: bool,
|
|
140
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
141
|
+
?adjustment_type: :tiered_percentage_discount
|
|
142
|
+
) -> void
|
|
143
|
+
|
|
144
|
+
def to_hash: -> {
|
|
145
|
+
adjustment_type: :tiered_percentage_discount,
|
|
146
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
147
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
148
|
+
applies_to_item_ids: ::Array[String]?,
|
|
149
|
+
applies_to_price_ids: ::Array[String]?,
|
|
150
|
+
currency: String?,
|
|
151
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
152
|
+
is_invoice_level: bool,
|
|
153
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
type tier =
|
|
157
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
158
|
+
|
|
159
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
160
|
+
attr_accessor lower_bound: Float
|
|
161
|
+
|
|
162
|
+
attr_accessor percentage: Float
|
|
163
|
+
|
|
164
|
+
attr_accessor upper_bound: Float?
|
|
165
|
+
|
|
166
|
+
def initialize: (
|
|
167
|
+
lower_bound: Float,
|
|
168
|
+
percentage: Float,
|
|
169
|
+
?upper_bound: Float?
|
|
170
|
+
) -> void
|
|
171
|
+
|
|
172
|
+
def to_hash: -> {
|
|
173
|
+
lower_bound: Float,
|
|
174
|
+
percentage: Float,
|
|
175
|
+
upper_bound: Float?
|
|
176
|
+
}
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
type applies_to_all = true
|
|
180
|
+
|
|
181
|
+
module AppliesToAll
|
|
182
|
+
extend Orb::Internal::Type::Enum
|
|
183
|
+
|
|
184
|
+
TRUE: true
|
|
185
|
+
|
|
186
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
type filter =
|
|
190
|
+
{
|
|
191
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
192
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
193
|
+
values: ::Array[String]
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
197
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
198
|
+
|
|
199
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
200
|
+
|
|
201
|
+
attr_accessor values: ::Array[String]
|
|
202
|
+
|
|
203
|
+
def initialize: (
|
|
204
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
205
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
206
|
+
values: ::Array[String]
|
|
207
|
+
) -> void
|
|
208
|
+
|
|
209
|
+
def to_hash: -> {
|
|
210
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
211
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
212
|
+
values: ::Array[String]
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
type field =
|
|
216
|
+
:price_id
|
|
217
|
+
| :item_id
|
|
218
|
+
| :price_type
|
|
219
|
+
| :currency
|
|
220
|
+
| :pricing_unit_id
|
|
221
|
+
|
|
222
|
+
module Field
|
|
223
|
+
extend Orb::Internal::Type::Enum
|
|
224
|
+
|
|
225
|
+
PRICE_ID: :price_id
|
|
226
|
+
ITEM_ID: :item_id
|
|
227
|
+
PRICE_TYPE: :price_type
|
|
228
|
+
CURRENCY: :currency
|
|
229
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
230
|
+
|
|
231
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
type operator = :includes | :excludes
|
|
235
|
+
|
|
236
|
+
module Operator
|
|
237
|
+
extend Orb::Internal::Type::Enum
|
|
238
|
+
|
|
239
|
+
INCLUDES: :includes
|
|
240
|
+
EXCLUDES: :excludes
|
|
241
|
+
|
|
242
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
type price_type =
|
|
247
|
+
:usage
|
|
248
|
+
| :fixed_in_advance
|
|
249
|
+
| :fixed_in_arrears
|
|
250
|
+
| :fixed
|
|
251
|
+
| :in_arrears
|
|
252
|
+
|
|
253
|
+
module PriceType
|
|
254
|
+
extend Orb::Internal::Type::Enum
|
|
255
|
+
|
|
256
|
+
USAGE: :usage
|
|
257
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
258
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
259
|
+
FIXED: :fixed
|
|
260
|
+
IN_ARREARS: :in_arrears
|
|
261
|
+
|
|
262
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
92
266
|
def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddAdjustment::adjustment]
|
|
93
267
|
end
|
|
94
268
|
end
|
|
@@ -96,6 +270,7 @@ module Orb
|
|
|
96
270
|
type add_price =
|
|
97
271
|
{
|
|
98
272
|
allocation_price: Orb::NewAllocationPrice?,
|
|
273
|
+
license_allocation_price: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?,
|
|
99
274
|
plan_phase_order: Integer?,
|
|
100
275
|
price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price?
|
|
101
276
|
}
|
|
@@ -103,22 +278,192 @@ module Orb
|
|
|
103
278
|
class AddPrice < Orb::Internal::Type::BaseModel
|
|
104
279
|
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
105
280
|
|
|
281
|
+
attr_accessor license_allocation_price: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?
|
|
282
|
+
|
|
106
283
|
attr_accessor plan_phase_order: Integer?
|
|
107
284
|
|
|
108
285
|
attr_accessor price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price?
|
|
109
286
|
|
|
110
287
|
def initialize: (
|
|
111
288
|
?allocation_price: Orb::NewAllocationPrice?,
|
|
289
|
+
?license_allocation_price: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?,
|
|
112
290
|
?plan_phase_order: Integer?,
|
|
113
291
|
?price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price?
|
|
114
292
|
) -> void
|
|
115
293
|
|
|
116
294
|
def to_hash: -> {
|
|
117
295
|
allocation_price: Orb::NewAllocationPrice?,
|
|
296
|
+
license_allocation_price: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice?,
|
|
118
297
|
plan_phase_order: Integer?,
|
|
119
298
|
price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price?
|
|
120
299
|
}
|
|
121
300
|
|
|
301
|
+
type license_allocation_price =
|
|
302
|
+
{
|
|
303
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence,
|
|
304
|
+
item_id: String,
|
|
305
|
+
license_allocations: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation],
|
|
306
|
+
model_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type,
|
|
307
|
+
name: String,
|
|
308
|
+
unit_config: Orb::UnitConfig,
|
|
309
|
+
billable_metric_id: String?,
|
|
310
|
+
billed_in_advance: bool?,
|
|
311
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
312
|
+
conversion_rate: Float?,
|
|
313
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
314
|
+
currency: String?,
|
|
315
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
316
|
+
external_price_id: String?,
|
|
317
|
+
fixed_price_quantity: Float?,
|
|
318
|
+
invoice_grouping_key: String?,
|
|
319
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
320
|
+
license_type_id: String?,
|
|
321
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
322
|
+
reference_id: String?
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
326
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence
|
|
327
|
+
|
|
328
|
+
attr_accessor item_id: String
|
|
329
|
+
|
|
330
|
+
attr_accessor license_allocations: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation]
|
|
331
|
+
|
|
332
|
+
attr_accessor model_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type
|
|
333
|
+
|
|
334
|
+
attr_accessor name: String
|
|
335
|
+
|
|
336
|
+
attr_accessor unit_config: Orb::UnitConfig
|
|
337
|
+
|
|
338
|
+
attr_accessor billable_metric_id: String?
|
|
339
|
+
|
|
340
|
+
attr_accessor billed_in_advance: bool?
|
|
341
|
+
|
|
342
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
343
|
+
|
|
344
|
+
attr_accessor conversion_rate: Float?
|
|
345
|
+
|
|
346
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
347
|
+
|
|
348
|
+
attr_accessor currency: String?
|
|
349
|
+
|
|
350
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
351
|
+
|
|
352
|
+
attr_accessor external_price_id: String?
|
|
353
|
+
|
|
354
|
+
attr_accessor fixed_price_quantity: Float?
|
|
355
|
+
|
|
356
|
+
attr_accessor invoice_grouping_key: String?
|
|
357
|
+
|
|
358
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
359
|
+
|
|
360
|
+
attr_accessor license_type_id: String?
|
|
361
|
+
|
|
362
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
363
|
+
|
|
364
|
+
attr_accessor reference_id: String?
|
|
365
|
+
|
|
366
|
+
def initialize: (
|
|
367
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence,
|
|
368
|
+
item_id: String,
|
|
369
|
+
license_allocations: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation],
|
|
370
|
+
model_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type,
|
|
371
|
+
name: String,
|
|
372
|
+
unit_config: Orb::UnitConfig,
|
|
373
|
+
?billable_metric_id: String?,
|
|
374
|
+
?billed_in_advance: bool?,
|
|
375
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
376
|
+
?conversion_rate: Float?,
|
|
377
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
378
|
+
?currency: String?,
|
|
379
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
380
|
+
?external_price_id: String?,
|
|
381
|
+
?fixed_price_quantity: Float?,
|
|
382
|
+
?invoice_grouping_key: String?,
|
|
383
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
384
|
+
?license_type_id: String?,
|
|
385
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
386
|
+
?reference_id: String?
|
|
387
|
+
) -> void
|
|
388
|
+
|
|
389
|
+
def to_hash: -> {
|
|
390
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence,
|
|
391
|
+
item_id: String,
|
|
392
|
+
license_allocations: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::LicenseAllocation],
|
|
393
|
+
model_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type,
|
|
394
|
+
name: String,
|
|
395
|
+
unit_config: Orb::UnitConfig,
|
|
396
|
+
billable_metric_id: String?,
|
|
397
|
+
billed_in_advance: bool?,
|
|
398
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
399
|
+
conversion_rate: Float?,
|
|
400
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
401
|
+
currency: String?,
|
|
402
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
403
|
+
external_price_id: String?,
|
|
404
|
+
fixed_price_quantity: Float?,
|
|
405
|
+
invoice_grouping_key: String?,
|
|
406
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
407
|
+
license_type_id: String?,
|
|
408
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
409
|
+
reference_id: String?
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
type cadence =
|
|
413
|
+
:annual
|
|
414
|
+
| :semi_annual
|
|
415
|
+
| :monthly
|
|
416
|
+
| :quarterly
|
|
417
|
+
| :one_time
|
|
418
|
+
| :custom
|
|
419
|
+
|
|
420
|
+
module Cadence
|
|
421
|
+
extend Orb::Internal::Type::Enum
|
|
422
|
+
|
|
423
|
+
ANNUAL: :annual
|
|
424
|
+
SEMI_ANNUAL: :semi_annual
|
|
425
|
+
MONTHLY: :monthly
|
|
426
|
+
QUARTERLY: :quarterly
|
|
427
|
+
ONE_TIME: :one_time
|
|
428
|
+
CUSTOM: :custom
|
|
429
|
+
|
|
430
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::cadence]
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
type license_allocation =
|
|
434
|
+
{ amount: String, currency: String, write_off_overage: bool? }
|
|
435
|
+
|
|
436
|
+
class LicenseAllocation < Orb::Internal::Type::BaseModel
|
|
437
|
+
attr_accessor amount: String
|
|
438
|
+
|
|
439
|
+
attr_accessor currency: String
|
|
440
|
+
|
|
441
|
+
attr_accessor write_off_overage: bool?
|
|
442
|
+
|
|
443
|
+
def initialize: (
|
|
444
|
+
amount: String,
|
|
445
|
+
currency: String,
|
|
446
|
+
?write_off_overage: bool?
|
|
447
|
+
) -> void
|
|
448
|
+
|
|
449
|
+
def to_hash: -> {
|
|
450
|
+
amount: String,
|
|
451
|
+
currency: String,
|
|
452
|
+
write_off_overage: bool?
|
|
453
|
+
}
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
type model_type = :unit
|
|
457
|
+
|
|
458
|
+
module ModelType
|
|
459
|
+
extend Orb::Internal::Type::Enum
|
|
460
|
+
|
|
461
|
+
UNIT: :unit
|
|
462
|
+
|
|
463
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::LicenseAllocationPrice::model_type]
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
|
|
122
467
|
type price =
|
|
123
468
|
Orb::NewPlanUnitPrice
|
|
124
469
|
| Orb::NewPlanTieredPrice
|
|
@@ -134,6 +479,7 @@ module Orb
|
|
|
134
479
|
| Orb::NewPlanPackageWithAllocationPrice
|
|
135
480
|
| Orb::NewPlanUnitWithPercentPrice
|
|
136
481
|
| Orb::NewPlanMatrixWithAllocationPrice
|
|
482
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts
|
|
137
483
|
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration
|
|
138
484
|
| Orb::NewPlanUnitWithProrationPrice
|
|
139
485
|
| Orb::NewPlanGroupedAllocationPrice
|
|
@@ -148,6 +494,8 @@ module Orb
|
|
|
148
494
|
| Orb::NewPlanScalableMatrixWithTieredPricingPrice
|
|
149
495
|
| Orb::NewPlanCumulativeGroupedBulkPrice
|
|
150
496
|
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::CumulativeGroupedAllocation
|
|
497
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance
|
|
498
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance
|
|
151
499
|
| Orb::NewPlanMinimumCompositePrice
|
|
152
500
|
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent
|
|
153
501
|
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput
|
|
@@ -166,7 +514,7 @@ module Orb
|
|
|
166
514
|
billed_in_advance: bool?,
|
|
167
515
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
168
516
|
conversion_rate: Float?,
|
|
169
|
-
conversion_rate_config: Orb::Models::
|
|
517
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
170
518
|
currency: String?,
|
|
171
519
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
172
520
|
external_price_id: String?,
|
|
@@ -197,7 +545,7 @@ module Orb
|
|
|
197
545
|
|
|
198
546
|
attr_accessor conversion_rate: Float?
|
|
199
547
|
|
|
200
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
548
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
201
549
|
|
|
202
550
|
attr_accessor currency: String?
|
|
203
551
|
|
|
@@ -226,7 +574,7 @@ module Orb
|
|
|
226
574
|
?billed_in_advance: bool?,
|
|
227
575
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
228
576
|
?conversion_rate: Float?,
|
|
229
|
-
?conversion_rate_config: Orb::Models::
|
|
577
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
230
578
|
?currency: String?,
|
|
231
579
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
232
580
|
?external_price_id: String?,
|
|
@@ -249,7 +597,7 @@ module Orb
|
|
|
249
597
|
billed_in_advance: bool?,
|
|
250
598
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
251
599
|
conversion_rate: Float?,
|
|
252
|
-
conversion_rate_config: Orb::Models::
|
|
600
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
253
601
|
currency: String?,
|
|
254
602
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
255
603
|
external_price_id: String?,
|
|
@@ -341,6 +689,239 @@ module Orb
|
|
|
341
689
|
end
|
|
342
690
|
end
|
|
343
691
|
|
|
692
|
+
type matrix_with_threshold_discounts =
|
|
693
|
+
{
|
|
694
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
695
|
+
item_id: String,
|
|
696
|
+
matrix_with_threshold_discounts_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
697
|
+
model_type: :matrix_with_threshold_discounts,
|
|
698
|
+
name: String,
|
|
699
|
+
billable_metric_id: String?,
|
|
700
|
+
billed_in_advance: bool?,
|
|
701
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
702
|
+
conversion_rate: Float?,
|
|
703
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
704
|
+
currency: String?,
|
|
705
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
706
|
+
external_price_id: String?,
|
|
707
|
+
fixed_price_quantity: Float?,
|
|
708
|
+
invoice_grouping_key: String?,
|
|
709
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
710
|
+
license_type_id: String?,
|
|
711
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
712
|
+
reference_id: String?
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
716
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence
|
|
717
|
+
|
|
718
|
+
attr_accessor item_id: String
|
|
719
|
+
|
|
720
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
721
|
+
|
|
722
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
723
|
+
|
|
724
|
+
attr_accessor name: String
|
|
725
|
+
|
|
726
|
+
attr_accessor billable_metric_id: String?
|
|
727
|
+
|
|
728
|
+
attr_accessor billed_in_advance: bool?
|
|
729
|
+
|
|
730
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
731
|
+
|
|
732
|
+
attr_accessor conversion_rate: Float?
|
|
733
|
+
|
|
734
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
735
|
+
|
|
736
|
+
attr_accessor currency: String?
|
|
737
|
+
|
|
738
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
739
|
+
|
|
740
|
+
attr_accessor external_price_id: String?
|
|
741
|
+
|
|
742
|
+
attr_accessor fixed_price_quantity: Float?
|
|
743
|
+
|
|
744
|
+
attr_accessor invoice_grouping_key: String?
|
|
745
|
+
|
|
746
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
747
|
+
|
|
748
|
+
attr_accessor license_type_id: String?
|
|
749
|
+
|
|
750
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
751
|
+
|
|
752
|
+
attr_accessor reference_id: String?
|
|
753
|
+
|
|
754
|
+
def initialize: (
|
|
755
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
756
|
+
item_id: String,
|
|
757
|
+
matrix_with_threshold_discounts_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
758
|
+
name: String,
|
|
759
|
+
?billable_metric_id: String?,
|
|
760
|
+
?billed_in_advance: bool?,
|
|
761
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
762
|
+
?conversion_rate: Float?,
|
|
763
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
764
|
+
?currency: String?,
|
|
765
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
766
|
+
?external_price_id: String?,
|
|
767
|
+
?fixed_price_quantity: Float?,
|
|
768
|
+
?invoice_grouping_key: String?,
|
|
769
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
770
|
+
?license_type_id: String?,
|
|
771
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
772
|
+
?reference_id: String?,
|
|
773
|
+
?model_type: :matrix_with_threshold_discounts
|
|
774
|
+
) -> void
|
|
775
|
+
|
|
776
|
+
def to_hash: -> {
|
|
777
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
778
|
+
item_id: String,
|
|
779
|
+
matrix_with_threshold_discounts_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
780
|
+
model_type: :matrix_with_threshold_discounts,
|
|
781
|
+
name: String,
|
|
782
|
+
billable_metric_id: String?,
|
|
783
|
+
billed_in_advance: bool?,
|
|
784
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
785
|
+
conversion_rate: Float?,
|
|
786
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
787
|
+
currency: String?,
|
|
788
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
789
|
+
external_price_id: String?,
|
|
790
|
+
fixed_price_quantity: Float?,
|
|
791
|
+
invoice_grouping_key: String?,
|
|
792
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
793
|
+
license_type_id: String?,
|
|
794
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
795
|
+
reference_id: String?
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
type cadence =
|
|
799
|
+
:annual
|
|
800
|
+
| :semi_annual
|
|
801
|
+
| :monthly
|
|
802
|
+
| :quarterly
|
|
803
|
+
| :one_time
|
|
804
|
+
| :custom
|
|
805
|
+
|
|
806
|
+
module Cadence
|
|
807
|
+
extend Orb::Internal::Type::Enum
|
|
808
|
+
|
|
809
|
+
ANNUAL: :annual
|
|
810
|
+
SEMI_ANNUAL: :semi_annual
|
|
811
|
+
MONTHLY: :monthly
|
|
812
|
+
QUARTERLY: :quarterly
|
|
813
|
+
ONE_TIME: :one_time
|
|
814
|
+
CUSTOM: :custom
|
|
815
|
+
|
|
816
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence]
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
type matrix_with_threshold_discounts_config =
|
|
820
|
+
{
|
|
821
|
+
default_unit_amount: String,
|
|
822
|
+
first_dimension: String,
|
|
823
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
824
|
+
second_dimension: String?,
|
|
825
|
+
threshold_discount_groups: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
829
|
+
attr_accessor default_unit_amount: String
|
|
830
|
+
|
|
831
|
+
attr_accessor first_dimension: String
|
|
832
|
+
|
|
833
|
+
attr_accessor matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
834
|
+
|
|
835
|
+
attr_accessor second_dimension: String?
|
|
836
|
+
|
|
837
|
+
attr_reader threshold_discount_groups: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
838
|
+
|
|
839
|
+
def threshold_discount_groups=: (
|
|
840
|
+
::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
841
|
+
) -> ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
842
|
+
|
|
843
|
+
def initialize: (
|
|
844
|
+
default_unit_amount: String,
|
|
845
|
+
first_dimension: String,
|
|
846
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
847
|
+
?second_dimension: String?,
|
|
848
|
+
?threshold_discount_groups: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
849
|
+
) -> void
|
|
850
|
+
|
|
851
|
+
def to_hash: -> {
|
|
852
|
+
default_unit_amount: String,
|
|
853
|
+
first_dimension: String,
|
|
854
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
855
|
+
second_dimension: String?,
|
|
856
|
+
threshold_discount_groups: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
type matrix_value =
|
|
860
|
+
{
|
|
861
|
+
first_dimension_value: String,
|
|
862
|
+
unit_amount: String,
|
|
863
|
+
second_dimension_value: String?
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
867
|
+
attr_accessor first_dimension_value: String
|
|
868
|
+
|
|
869
|
+
attr_accessor unit_amount: String
|
|
870
|
+
|
|
871
|
+
attr_accessor second_dimension_value: String?
|
|
872
|
+
|
|
873
|
+
def initialize: (
|
|
874
|
+
first_dimension_value: String,
|
|
875
|
+
unit_amount: String,
|
|
876
|
+
?second_dimension_value: String?
|
|
877
|
+
) -> void
|
|
878
|
+
|
|
879
|
+
def to_hash: -> {
|
|
880
|
+
first_dimension_value: String,
|
|
881
|
+
unit_amount: String,
|
|
882
|
+
second_dimension_value: String?
|
|
883
|
+
}
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
type threshold_discount_group =
|
|
887
|
+
{
|
|
888
|
+
above_threshold_discount_percentage: String,
|
|
889
|
+
below_threshold_discount_percentage: String,
|
|
890
|
+
cell_coordinates: String,
|
|
891
|
+
threshold_amount: String,
|
|
892
|
+
description: String?
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
896
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
897
|
+
|
|
898
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
899
|
+
|
|
900
|
+
attr_accessor cell_coordinates: String
|
|
901
|
+
|
|
902
|
+
attr_accessor threshold_amount: String
|
|
903
|
+
|
|
904
|
+
attr_accessor description: String?
|
|
905
|
+
|
|
906
|
+
def initialize: (
|
|
907
|
+
above_threshold_discount_percentage: String,
|
|
908
|
+
below_threshold_discount_percentage: String,
|
|
909
|
+
cell_coordinates: String,
|
|
910
|
+
threshold_amount: String,
|
|
911
|
+
?description: String?
|
|
912
|
+
) -> void
|
|
913
|
+
|
|
914
|
+
def to_hash: -> {
|
|
915
|
+
above_threshold_discount_percentage: String,
|
|
916
|
+
below_threshold_discount_percentage: String,
|
|
917
|
+
cell_coordinates: String,
|
|
918
|
+
threshold_amount: String,
|
|
919
|
+
description: String?
|
|
920
|
+
}
|
|
921
|
+
end
|
|
922
|
+
end
|
|
923
|
+
end
|
|
924
|
+
|
|
344
925
|
type tiered_with_proration =
|
|
345
926
|
{
|
|
346
927
|
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence,
|
|
@@ -352,7 +933,7 @@ module Orb
|
|
|
352
933
|
billed_in_advance: bool?,
|
|
353
934
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
354
935
|
conversion_rate: Float?,
|
|
355
|
-
conversion_rate_config: Orb::Models::
|
|
936
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
356
937
|
currency: String?,
|
|
357
938
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
358
939
|
external_price_id: String?,
|
|
@@ -383,7 +964,7 @@ module Orb
|
|
|
383
964
|
|
|
384
965
|
attr_accessor conversion_rate: Float?
|
|
385
966
|
|
|
386
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
967
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
387
968
|
|
|
388
969
|
attr_accessor currency: String?
|
|
389
970
|
|
|
@@ -412,7 +993,7 @@ module Orb
|
|
|
412
993
|
?billed_in_advance: bool?,
|
|
413
994
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
414
995
|
?conversion_rate: Float?,
|
|
415
|
-
?conversion_rate_config: Orb::Models::
|
|
996
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
416
997
|
?currency: String?,
|
|
417
998
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
418
999
|
?external_price_id: String?,
|
|
@@ -435,7 +1016,7 @@ module Orb
|
|
|
435
1016
|
billed_in_advance: bool?,
|
|
436
1017
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
437
1018
|
conversion_rate: Float?,
|
|
438
|
-
conversion_rate_config: Orb::Models::
|
|
1019
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
439
1020
|
currency: String?,
|
|
440
1021
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
441
1022
|
external_price_id: String?,
|
|
@@ -515,7 +1096,7 @@ module Orb
|
|
|
515
1096
|
billed_in_advance: bool?,
|
|
516
1097
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
517
1098
|
conversion_rate: Float?,
|
|
518
|
-
conversion_rate_config: Orb::Models::
|
|
1099
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
519
1100
|
currency: String?,
|
|
520
1101
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
521
1102
|
external_price_id: String?,
|
|
@@ -546,7 +1127,7 @@ module Orb
|
|
|
546
1127
|
|
|
547
1128
|
attr_accessor conversion_rate: Float?
|
|
548
1129
|
|
|
549
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1130
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
550
1131
|
|
|
551
1132
|
attr_accessor currency: String?
|
|
552
1133
|
|
|
@@ -575,7 +1156,7 @@ module Orb
|
|
|
575
1156
|
?billed_in_advance: bool?,
|
|
576
1157
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
577
1158
|
?conversion_rate: Float?,
|
|
578
|
-
?conversion_rate_config: Orb::Models::
|
|
1159
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
579
1160
|
?currency: String?,
|
|
580
1161
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
581
1162
|
?external_price_id: String?,
|
|
@@ -598,7 +1179,7 @@ module Orb
|
|
|
598
1179
|
billed_in_advance: bool?,
|
|
599
1180
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
600
1181
|
conversion_rate: Float?,
|
|
601
|
-
conversion_rate_config: Orb::Models::
|
|
1182
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
602
1183
|
currency: String?,
|
|
603
1184
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
604
1185
|
external_price_id: String?,
|
|
@@ -675,7 +1256,7 @@ module Orb
|
|
|
675
1256
|
billed_in_advance: bool?,
|
|
676
1257
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
677
1258
|
conversion_rate: Float?,
|
|
678
|
-
conversion_rate_config: Orb::Models::
|
|
1259
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
679
1260
|
currency: String?,
|
|
680
1261
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
681
1262
|
external_price_id: String?,
|
|
@@ -706,7 +1287,7 @@ module Orb
|
|
|
706
1287
|
|
|
707
1288
|
attr_accessor conversion_rate: Float?
|
|
708
1289
|
|
|
709
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1290
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
710
1291
|
|
|
711
1292
|
attr_accessor currency: String?
|
|
712
1293
|
|
|
@@ -735,7 +1316,7 @@ module Orb
|
|
|
735
1316
|
?billed_in_advance: bool?,
|
|
736
1317
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
737
1318
|
?conversion_rate: Float?,
|
|
738
|
-
?conversion_rate_config: Orb::Models::
|
|
1319
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
739
1320
|
?currency: String?,
|
|
740
1321
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
741
1322
|
?external_price_id: String?,
|
|
@@ -758,7 +1339,7 @@ module Orb
|
|
|
758
1339
|
billed_in_advance: bool?,
|
|
759
1340
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
760
1341
|
conversion_rate: Float?,
|
|
761
|
-
conversion_rate_config: Orb::Models::
|
|
1342
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
762
1343
|
currency: String?,
|
|
763
1344
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
764
1345
|
external_price_id: String?,
|
|
@@ -824,18 +1405,18 @@ module Orb
|
|
|
824
1405
|
end
|
|
825
1406
|
end
|
|
826
1407
|
|
|
827
|
-
type
|
|
1408
|
+
type daily_credit_allowance =
|
|
828
1409
|
{
|
|
829
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
1410
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1411
|
+
daily_credit_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
830
1412
|
item_id: String,
|
|
831
|
-
model_type: :
|
|
1413
|
+
model_type: :daily_credit_allowance,
|
|
832
1414
|
name: String,
|
|
833
|
-
percent_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
834
1415
|
billable_metric_id: String?,
|
|
835
1416
|
billed_in_advance: bool?,
|
|
836
1417
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
837
1418
|
conversion_rate: Float?,
|
|
838
|
-
conversion_rate_config: Orb::Models::
|
|
1419
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
839
1420
|
currency: String?,
|
|
840
1421
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
841
1422
|
external_price_id: String?,
|
|
@@ -847,17 +1428,17 @@ module Orb
|
|
|
847
1428
|
reference_id: String?
|
|
848
1429
|
}
|
|
849
1430
|
|
|
850
|
-
class
|
|
851
|
-
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
1431
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
1432
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence
|
|
1433
|
+
|
|
1434
|
+
attr_accessor daily_credit_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
852
1435
|
|
|
853
1436
|
attr_accessor item_id: String
|
|
854
1437
|
|
|
855
|
-
attr_accessor model_type: :
|
|
1438
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
856
1439
|
|
|
857
1440
|
attr_accessor name: String
|
|
858
1441
|
|
|
859
|
-
attr_accessor percent_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig
|
|
860
|
-
|
|
861
1442
|
attr_accessor billable_metric_id: String?
|
|
862
1443
|
|
|
863
1444
|
attr_accessor billed_in_advance: bool?
|
|
@@ -866,7 +1447,7 @@ module Orb
|
|
|
866
1447
|
|
|
867
1448
|
attr_accessor conversion_rate: Float?
|
|
868
1449
|
|
|
869
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1450
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
870
1451
|
|
|
871
1452
|
attr_accessor currency: String?
|
|
872
1453
|
|
|
@@ -887,15 +1468,15 @@ module Orb
|
|
|
887
1468
|
attr_accessor reference_id: String?
|
|
888
1469
|
|
|
889
1470
|
def initialize: (
|
|
890
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
1471
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1472
|
+
daily_credit_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
891
1473
|
item_id: String,
|
|
892
1474
|
name: String,
|
|
893
|
-
percent_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
894
1475
|
?billable_metric_id: String?,
|
|
895
1476
|
?billed_in_advance: bool?,
|
|
896
1477
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
897
1478
|
?conversion_rate: Float?,
|
|
898
|
-
?conversion_rate_config: Orb::Models::
|
|
1479
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
899
1480
|
?currency: String?,
|
|
900
1481
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
901
1482
|
?external_price_id: String?,
|
|
@@ -905,20 +1486,20 @@ module Orb
|
|
|
905
1486
|
?license_type_id: String?,
|
|
906
1487
|
?metadata: ::Hash[Symbol, String?]?,
|
|
907
1488
|
?reference_id: String?,
|
|
908
|
-
?model_type: :
|
|
1489
|
+
?model_type: :daily_credit_allowance
|
|
909
1490
|
) -> void
|
|
910
1491
|
|
|
911
1492
|
def to_hash: -> {
|
|
912
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
1493
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1494
|
+
daily_credit_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
913
1495
|
item_id: String,
|
|
914
|
-
model_type: :
|
|
1496
|
+
model_type: :daily_credit_allowance,
|
|
915
1497
|
name: String,
|
|
916
|
-
percent_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
917
1498
|
billable_metric_id: String?,
|
|
918
1499
|
billed_in_advance: bool?,
|
|
919
1500
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
920
1501
|
conversion_rate: Float?,
|
|
921
|
-
conversion_rate_config: Orb::Models::
|
|
1502
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
922
1503
|
currency: String?,
|
|
923
1504
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
924
1505
|
external_price_id: String?,
|
|
@@ -948,32 +1529,78 @@ module Orb
|
|
|
948
1529
|
ONE_TIME: :one_time
|
|
949
1530
|
CUSTOM: :custom
|
|
950
1531
|
|
|
951
|
-
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
1532
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::cadence]
|
|
952
1533
|
end
|
|
953
1534
|
|
|
954
|
-
type
|
|
1535
|
+
type daily_credit_allowance_config =
|
|
1536
|
+
{
|
|
1537
|
+
daily_allowance: String,
|
|
1538
|
+
default_unit_amount: String,
|
|
1539
|
+
dimensions: ::Array[String?],
|
|
1540
|
+
event_day_property: String,
|
|
1541
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1545
|
+
attr_accessor daily_allowance: String
|
|
955
1546
|
|
|
956
|
-
|
|
957
|
-
|
|
1547
|
+
attr_accessor default_unit_amount: String
|
|
1548
|
+
|
|
1549
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1550
|
+
|
|
1551
|
+
attr_accessor event_day_property: String
|
|
1552
|
+
|
|
1553
|
+
attr_accessor matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1554
|
+
|
|
1555
|
+
def initialize: (
|
|
1556
|
+
daily_allowance: String,
|
|
1557
|
+
default_unit_amount: String,
|
|
1558
|
+
dimensions: ::Array[String?],
|
|
1559
|
+
event_day_property: String,
|
|
1560
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1561
|
+
) -> void
|
|
1562
|
+
|
|
1563
|
+
def to_hash: -> {
|
|
1564
|
+
daily_allowance: String,
|
|
1565
|
+
default_unit_amount: String,
|
|
1566
|
+
dimensions: ::Array[String?],
|
|
1567
|
+
event_day_property: String,
|
|
1568
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
type matrix_value =
|
|
1572
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
1573
|
+
|
|
1574
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
1575
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
1576
|
+
|
|
1577
|
+
attr_accessor unit_amount: String
|
|
958
1578
|
|
|
959
|
-
|
|
1579
|
+
def initialize: (
|
|
1580
|
+
dimension_values: ::Array[String?],
|
|
1581
|
+
unit_amount: String
|
|
1582
|
+
) -> void
|
|
960
1583
|
|
|
961
|
-
|
|
1584
|
+
def to_hash: -> {
|
|
1585
|
+
dimension_values: ::Array[String?],
|
|
1586
|
+
unit_amount: String
|
|
1587
|
+
}
|
|
1588
|
+
end
|
|
962
1589
|
end
|
|
963
1590
|
end
|
|
964
1591
|
|
|
965
|
-
type
|
|
1592
|
+
type metered_allowance =
|
|
966
1593
|
{
|
|
967
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
968
|
-
event_output_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1594
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
969
1595
|
item_id: String,
|
|
970
|
-
|
|
1596
|
+
metered_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1597
|
+
model_type: :metered_allowance,
|
|
971
1598
|
name: String,
|
|
972
1599
|
billable_metric_id: String?,
|
|
973
1600
|
billed_in_advance: bool?,
|
|
974
1601
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
975
1602
|
conversion_rate: Float?,
|
|
976
|
-
conversion_rate_config: Orb::Models::
|
|
1603
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
977
1604
|
currency: String?,
|
|
978
1605
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
979
1606
|
external_price_id: String?,
|
|
@@ -985,14 +1612,14 @@ module Orb
|
|
|
985
1612
|
reference_id: String?
|
|
986
1613
|
}
|
|
987
1614
|
|
|
988
|
-
class
|
|
989
|
-
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
990
|
-
|
|
991
|
-
attr_accessor event_output_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig
|
|
1615
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
1616
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence
|
|
992
1617
|
|
|
993
1618
|
attr_accessor item_id: String
|
|
994
1619
|
|
|
995
|
-
attr_accessor
|
|
1620
|
+
attr_accessor metered_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
1621
|
+
|
|
1622
|
+
attr_accessor model_type: :metered_allowance
|
|
996
1623
|
|
|
997
1624
|
attr_accessor name: String
|
|
998
1625
|
|
|
@@ -1004,7 +1631,7 @@ module Orb
|
|
|
1004
1631
|
|
|
1005
1632
|
attr_accessor conversion_rate: Float?
|
|
1006
1633
|
|
|
1007
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1634
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1008
1635
|
|
|
1009
1636
|
attr_accessor currency: String?
|
|
1010
1637
|
|
|
@@ -1025,15 +1652,15 @@ module Orb
|
|
|
1025
1652
|
attr_accessor reference_id: String?
|
|
1026
1653
|
|
|
1027
1654
|
def initialize: (
|
|
1028
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
1029
|
-
event_output_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1655
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1030
1656
|
item_id: String,
|
|
1657
|
+
metered_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1031
1658
|
name: String,
|
|
1032
1659
|
?billable_metric_id: String?,
|
|
1033
1660
|
?billed_in_advance: bool?,
|
|
1034
1661
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1035
1662
|
?conversion_rate: Float?,
|
|
1036
|
-
?conversion_rate_config: Orb::Models::
|
|
1663
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1037
1664
|
?currency: String?,
|
|
1038
1665
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1039
1666
|
?external_price_id: String?,
|
|
@@ -1043,20 +1670,20 @@ module Orb
|
|
|
1043
1670
|
?license_type_id: String?,
|
|
1044
1671
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1045
1672
|
?reference_id: String?,
|
|
1046
|
-
?model_type: :
|
|
1673
|
+
?model_type: :metered_allowance
|
|
1047
1674
|
) -> void
|
|
1048
1675
|
|
|
1049
1676
|
def to_hash: -> {
|
|
1050
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
1051
|
-
event_output_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1677
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1052
1678
|
item_id: String,
|
|
1053
|
-
|
|
1679
|
+
metered_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1680
|
+
model_type: :metered_allowance,
|
|
1054
1681
|
name: String,
|
|
1055
1682
|
billable_metric_id: String?,
|
|
1056
1683
|
billed_in_advance: bool?,
|
|
1057
1684
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1058
1685
|
conversion_rate: Float?,
|
|
1059
|
-
conversion_rate_config: Orb::Models::
|
|
1686
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1060
1687
|
currency: String?,
|
|
1061
1688
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1062
1689
|
external_price_id: String?,
|
|
@@ -1086,191 +1713,68 @@ module Orb
|
|
|
1086
1713
|
ONE_TIME: :one_time
|
|
1087
1714
|
CUSTOM: :custom
|
|
1088
1715
|
|
|
1089
|
-
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::
|
|
1716
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MeteredAllowance::cadence]
|
|
1090
1717
|
end
|
|
1091
1718
|
|
|
1092
|
-
type
|
|
1719
|
+
type metered_allowance_config =
|
|
1093
1720
|
{
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
grouping_key: String
|
|
1721
|
+
allowance_grouping_value: String,
|
|
1722
|
+
consumption_grouping_value: String,
|
|
1723
|
+
grouping_key: String,
|
|
1724
|
+
unit_amount: String,
|
|
1725
|
+
allowance_display_name: String,
|
|
1726
|
+
consumption_display_name: String
|
|
1097
1727
|
}
|
|
1098
1728
|
|
|
1099
|
-
class
|
|
1100
|
-
attr_accessor
|
|
1729
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1730
|
+
attr_accessor allowance_grouping_value: String
|
|
1101
1731
|
|
|
1102
|
-
attr_accessor
|
|
1732
|
+
attr_accessor consumption_grouping_value: String
|
|
1103
1733
|
|
|
1104
|
-
attr_accessor grouping_key: String
|
|
1734
|
+
attr_accessor grouping_key: String
|
|
1735
|
+
|
|
1736
|
+
attr_accessor unit_amount: String
|
|
1737
|
+
|
|
1738
|
+
attr_reader allowance_display_name: String?
|
|
1739
|
+
|
|
1740
|
+
def allowance_display_name=: (String) -> String
|
|
1741
|
+
|
|
1742
|
+
attr_reader consumption_display_name: String?
|
|
1743
|
+
|
|
1744
|
+
def consumption_display_name=: (String) -> String
|
|
1105
1745
|
|
|
1106
1746
|
def initialize: (
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
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
|
|
1110
1753
|
) -> void
|
|
1111
1754
|
|
|
1112
1755
|
def to_hash: -> {
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
grouping_key: String
|
|
1756
|
+
allowance_grouping_value: String,
|
|
1757
|
+
consumption_grouping_value: String,
|
|
1758
|
+
grouping_key: String,
|
|
1759
|
+
unit_amount: String,
|
|
1760
|
+
allowance_display_name: String,
|
|
1761
|
+
consumption_display_name: String
|
|
1116
1762
|
}
|
|
1117
1763
|
end
|
|
1118
1764
|
end
|
|
1119
1765
|
|
|
1120
|
-
|
|
1121
|
-
end
|
|
1122
|
-
end
|
|
1123
|
-
|
|
1124
|
-
type remove_adjustment =
|
|
1125
|
-
{ adjustment_id: String, plan_phase_order: Integer? }
|
|
1126
|
-
|
|
1127
|
-
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
1128
|
-
attr_accessor adjustment_id: String
|
|
1129
|
-
|
|
1130
|
-
attr_accessor plan_phase_order: Integer?
|
|
1131
|
-
|
|
1132
|
-
def initialize: (
|
|
1133
|
-
adjustment_id: String,
|
|
1134
|
-
?plan_phase_order: Integer?
|
|
1135
|
-
) -> void
|
|
1136
|
-
|
|
1137
|
-
def to_hash: -> { adjustment_id: String, plan_phase_order: Integer? }
|
|
1138
|
-
end
|
|
1139
|
-
|
|
1140
|
-
type remove_price = { price_id: String, plan_phase_order: Integer? }
|
|
1141
|
-
|
|
1142
|
-
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
1143
|
-
attr_accessor price_id: String
|
|
1144
|
-
|
|
1145
|
-
attr_accessor plan_phase_order: Integer?
|
|
1146
|
-
|
|
1147
|
-
def initialize: (
|
|
1148
|
-
price_id: String,
|
|
1149
|
-
?plan_phase_order: Integer?
|
|
1150
|
-
) -> void
|
|
1151
|
-
|
|
1152
|
-
def to_hash: -> { price_id: String, plan_phase_order: Integer? }
|
|
1153
|
-
end
|
|
1154
|
-
|
|
1155
|
-
type replace_adjustment =
|
|
1156
|
-
{
|
|
1157
|
-
adjustment: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
1158
|
-
replaces_adjustment_id: String,
|
|
1159
|
-
plan_phase_order: Integer?
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
1163
|
-
attr_accessor adjustment: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment
|
|
1164
|
-
|
|
1165
|
-
attr_accessor replaces_adjustment_id: String
|
|
1166
|
-
|
|
1167
|
-
attr_accessor plan_phase_order: Integer?
|
|
1168
|
-
|
|
1169
|
-
def initialize: (
|
|
1170
|
-
adjustment: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
1171
|
-
replaces_adjustment_id: String,
|
|
1172
|
-
?plan_phase_order: Integer?
|
|
1173
|
-
) -> void
|
|
1174
|
-
|
|
1175
|
-
def to_hash: -> {
|
|
1176
|
-
adjustment: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
1177
|
-
replaces_adjustment_id: String,
|
|
1178
|
-
plan_phase_order: Integer?
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
type adjustment =
|
|
1182
|
-
Orb::NewPercentageDiscount
|
|
1183
|
-
| Orb::NewUsageDiscount
|
|
1184
|
-
| Orb::NewAmountDiscount
|
|
1185
|
-
| Orb::NewMinimum
|
|
1186
|
-
| Orb::NewMaximum
|
|
1187
|
-
|
|
1188
|
-
module Adjustment
|
|
1189
|
-
extend Orb::Internal::Type::Union
|
|
1190
|
-
|
|
1191
|
-
def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment]
|
|
1192
|
-
end
|
|
1193
|
-
end
|
|
1194
|
-
|
|
1195
|
-
type replace_price =
|
|
1196
|
-
{
|
|
1197
|
-
replaces_price_id: String,
|
|
1198
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1199
|
-
plan_phase_order: Integer?,
|
|
1200
|
-
price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price?
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
1204
|
-
attr_accessor replaces_price_id: String
|
|
1205
|
-
|
|
1206
|
-
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
1207
|
-
|
|
1208
|
-
attr_accessor plan_phase_order: Integer?
|
|
1209
|
-
|
|
1210
|
-
attr_accessor price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price?
|
|
1211
|
-
|
|
1212
|
-
def initialize: (
|
|
1213
|
-
replaces_price_id: String,
|
|
1214
|
-
?allocation_price: Orb::NewAllocationPrice?,
|
|
1215
|
-
?plan_phase_order: Integer?,
|
|
1216
|
-
?price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price?
|
|
1217
|
-
) -> void
|
|
1218
|
-
|
|
1219
|
-
def to_hash: -> {
|
|
1220
|
-
replaces_price_id: String,
|
|
1221
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1222
|
-
plan_phase_order: Integer?,
|
|
1223
|
-
price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price?
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
type price =
|
|
1227
|
-
Orb::NewPlanUnitPrice
|
|
1228
|
-
| Orb::NewPlanTieredPrice
|
|
1229
|
-
| Orb::NewPlanBulkPrice
|
|
1230
|
-
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters
|
|
1231
|
-
| Orb::NewPlanPackagePrice
|
|
1232
|
-
| Orb::NewPlanMatrixPrice
|
|
1233
|
-
| Orb::NewPlanThresholdTotalAmountPrice
|
|
1234
|
-
| Orb::NewPlanTieredPackagePrice
|
|
1235
|
-
| Orb::NewPlanTieredWithMinimumPrice
|
|
1236
|
-
| Orb::NewPlanGroupedTieredPrice
|
|
1237
|
-
| Orb::NewPlanTieredPackageWithMinimumPrice
|
|
1238
|
-
| Orb::NewPlanPackageWithAllocationPrice
|
|
1239
|
-
| Orb::NewPlanUnitWithPercentPrice
|
|
1240
|
-
| Orb::NewPlanMatrixWithAllocationPrice
|
|
1241
|
-
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration
|
|
1242
|
-
| Orb::NewPlanUnitWithProrationPrice
|
|
1243
|
-
| Orb::NewPlanGroupedAllocationPrice
|
|
1244
|
-
| Orb::NewPlanBulkWithProrationPrice
|
|
1245
|
-
| Orb::NewPlanGroupedWithProratedMinimumPrice
|
|
1246
|
-
| Orb::NewPlanGroupedWithMeteredMinimumPrice
|
|
1247
|
-
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
1248
|
-
| Orb::NewPlanMatrixWithDisplayNamePrice
|
|
1249
|
-
| Orb::NewPlanGroupedTieredPackagePrice
|
|
1250
|
-
| Orb::NewPlanMaxGroupTieredPackagePrice
|
|
1251
|
-
| Orb::NewPlanScalableMatrixWithUnitPricingPrice
|
|
1252
|
-
| Orb::NewPlanScalableMatrixWithTieredPricingPrice
|
|
1253
|
-
| Orb::NewPlanCumulativeGroupedBulkPrice
|
|
1254
|
-
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
1255
|
-
| Orb::NewPlanMinimumCompositePrice
|
|
1256
|
-
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent
|
|
1257
|
-
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput
|
|
1258
|
-
|
|
1259
|
-
module Price
|
|
1260
|
-
extend Orb::Internal::Type::Union
|
|
1261
|
-
|
|
1262
|
-
type bulk_with_filters =
|
|
1766
|
+
type percent =
|
|
1263
1767
|
{
|
|
1264
|
-
|
|
1265
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1768
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::cadence,
|
|
1266
1769
|
item_id: String,
|
|
1267
|
-
model_type: :
|
|
1770
|
+
model_type: :percent,
|
|
1268
1771
|
name: String,
|
|
1772
|
+
percent_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
1269
1773
|
billable_metric_id: String?,
|
|
1270
1774
|
billed_in_advance: bool?,
|
|
1271
1775
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1272
1776
|
conversion_rate: Float?,
|
|
1273
|
-
conversion_rate_config: Orb::Models::
|
|
1777
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1274
1778
|
currency: String?,
|
|
1275
1779
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1276
1780
|
external_price_id: String?,
|
|
@@ -1282,17 +1786,17 @@ module Orb
|
|
|
1282
1786
|
reference_id: String?
|
|
1283
1787
|
}
|
|
1284
1788
|
|
|
1285
|
-
class
|
|
1286
|
-
attr_accessor
|
|
1287
|
-
|
|
1288
|
-
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence
|
|
1789
|
+
class Percent < Orb::Internal::Type::BaseModel
|
|
1790
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::cadence
|
|
1289
1791
|
|
|
1290
1792
|
attr_accessor item_id: String
|
|
1291
1793
|
|
|
1292
|
-
attr_accessor model_type: :
|
|
1794
|
+
attr_accessor model_type: :percent
|
|
1293
1795
|
|
|
1294
1796
|
attr_accessor name: String
|
|
1295
1797
|
|
|
1798
|
+
attr_accessor percent_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig
|
|
1799
|
+
|
|
1296
1800
|
attr_accessor billable_metric_id: String?
|
|
1297
1801
|
|
|
1298
1802
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1301,7 +1805,7 @@ module Orb
|
|
|
1301
1805
|
|
|
1302
1806
|
attr_accessor conversion_rate: Float?
|
|
1303
1807
|
|
|
1304
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1808
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1305
1809
|
|
|
1306
1810
|
attr_accessor currency: String?
|
|
1307
1811
|
|
|
@@ -1322,15 +1826,15 @@ module Orb
|
|
|
1322
1826
|
attr_accessor reference_id: String?
|
|
1323
1827
|
|
|
1324
1828
|
def initialize: (
|
|
1325
|
-
|
|
1326
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1829
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::cadence,
|
|
1327
1830
|
item_id: String,
|
|
1328
1831
|
name: String,
|
|
1832
|
+
percent_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
1329
1833
|
?billable_metric_id: String?,
|
|
1330
1834
|
?billed_in_advance: bool?,
|
|
1331
1835
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1332
1836
|
?conversion_rate: Float?,
|
|
1333
|
-
?conversion_rate_config: Orb::Models::
|
|
1837
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1334
1838
|
?currency: String?,
|
|
1335
1839
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1336
1840
|
?external_price_id: String?,
|
|
@@ -1340,20 +1844,20 @@ module Orb
|
|
|
1340
1844
|
?license_type_id: String?,
|
|
1341
1845
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1342
1846
|
?reference_id: String?,
|
|
1343
|
-
?model_type: :
|
|
1847
|
+
?model_type: :percent
|
|
1344
1848
|
) -> void
|
|
1345
1849
|
|
|
1346
1850
|
def to_hash: -> {
|
|
1347
|
-
|
|
1348
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1851
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::cadence,
|
|
1349
1852
|
item_id: String,
|
|
1350
|
-
model_type: :
|
|
1853
|
+
model_type: :percent,
|
|
1351
1854
|
name: String,
|
|
1855
|
+
percent_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::PercentConfig,
|
|
1352
1856
|
billable_metric_id: String?,
|
|
1353
1857
|
billed_in_advance: bool?,
|
|
1354
1858
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1355
1859
|
conversion_rate: Float?,
|
|
1356
|
-
conversion_rate_config: Orb::Models::
|
|
1860
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1357
1861
|
currency: String?,
|
|
1358
1862
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1359
1863
|
external_price_id: String?,
|
|
@@ -1365,63 +1869,1389 @@ module Orb
|
|
|
1365
1869
|
reference_id: String?
|
|
1366
1870
|
}
|
|
1367
1871
|
|
|
1368
|
-
type
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1872
|
+
type cadence =
|
|
1873
|
+
:annual
|
|
1874
|
+
| :semi_annual
|
|
1875
|
+
| :monthly
|
|
1876
|
+
| :quarterly
|
|
1877
|
+
| :one_time
|
|
1878
|
+
| :custom
|
|
1879
|
+
|
|
1880
|
+
module Cadence
|
|
1881
|
+
extend Orb::Internal::Type::Enum
|
|
1882
|
+
|
|
1883
|
+
ANNUAL: :annual
|
|
1884
|
+
SEMI_ANNUAL: :semi_annual
|
|
1885
|
+
MONTHLY: :monthly
|
|
1886
|
+
QUARTERLY: :quarterly
|
|
1887
|
+
ONE_TIME: :one_time
|
|
1888
|
+
CUSTOM: :custom
|
|
1889
|
+
|
|
1890
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Percent::cadence]
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1893
|
+
type percent_config =
|
|
1894
|
+
{
|
|
1895
|
+
percent: Float,
|
|
1896
|
+
maximum_amount: String?,
|
|
1897
|
+
minimum_amount: String?,
|
|
1898
|
+
prorated: bool
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
1902
|
+
attr_accessor percent: Float
|
|
1903
|
+
|
|
1904
|
+
attr_accessor maximum_amount: String?
|
|
1905
|
+
|
|
1906
|
+
attr_accessor minimum_amount: String?
|
|
1907
|
+
|
|
1908
|
+
attr_reader prorated: bool?
|
|
1909
|
+
|
|
1910
|
+
def prorated=: (bool) -> bool
|
|
1911
|
+
|
|
1912
|
+
def initialize: (
|
|
1913
|
+
percent: Float,
|
|
1914
|
+
?maximum_amount: String?,
|
|
1915
|
+
?minimum_amount: String?,
|
|
1916
|
+
?prorated: bool
|
|
1917
|
+
) -> void
|
|
1918
|
+
|
|
1919
|
+
def to_hash: -> {
|
|
1920
|
+
percent: Float,
|
|
1921
|
+
maximum_amount: String?,
|
|
1922
|
+
minimum_amount: String?,
|
|
1923
|
+
prorated: bool
|
|
1924
|
+
}
|
|
1925
|
+
end
|
|
1926
|
+
end
|
|
1927
|
+
|
|
1928
|
+
type event_output =
|
|
1929
|
+
{
|
|
1930
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence,
|
|
1931
|
+
event_output_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1932
|
+
item_id: String,
|
|
1933
|
+
model_type: :event_output,
|
|
1934
|
+
name: String,
|
|
1935
|
+
billable_metric_id: String?,
|
|
1936
|
+
billed_in_advance: bool?,
|
|
1937
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1938
|
+
conversion_rate: Float?,
|
|
1939
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1940
|
+
currency: String?,
|
|
1941
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1942
|
+
external_price_id: String?,
|
|
1943
|
+
fixed_price_quantity: Float?,
|
|
1944
|
+
invoice_grouping_key: String?,
|
|
1945
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1946
|
+
license_type_id: String?,
|
|
1947
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1948
|
+
reference_id: String?
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
class EventOutput < Orb::Internal::Type::BaseModel
|
|
1952
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence
|
|
1953
|
+
|
|
1954
|
+
attr_accessor event_output_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig
|
|
1955
|
+
|
|
1956
|
+
attr_accessor item_id: String
|
|
1957
|
+
|
|
1958
|
+
attr_accessor model_type: :event_output
|
|
1959
|
+
|
|
1960
|
+
attr_accessor name: String
|
|
1961
|
+
|
|
1962
|
+
attr_accessor billable_metric_id: String?
|
|
1963
|
+
|
|
1964
|
+
attr_accessor billed_in_advance: bool?
|
|
1965
|
+
|
|
1966
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1967
|
+
|
|
1968
|
+
attr_accessor conversion_rate: Float?
|
|
1969
|
+
|
|
1970
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1971
|
+
|
|
1972
|
+
attr_accessor currency: String?
|
|
1973
|
+
|
|
1974
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1975
|
+
|
|
1976
|
+
attr_accessor external_price_id: String?
|
|
1977
|
+
|
|
1978
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1979
|
+
|
|
1980
|
+
attr_accessor invoice_grouping_key: String?
|
|
1981
|
+
|
|
1982
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1983
|
+
|
|
1984
|
+
attr_accessor license_type_id: String?
|
|
1985
|
+
|
|
1986
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1987
|
+
|
|
1988
|
+
attr_accessor reference_id: String?
|
|
1989
|
+
|
|
1990
|
+
def initialize: (
|
|
1991
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence,
|
|
1992
|
+
event_output_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1993
|
+
item_id: String,
|
|
1994
|
+
name: String,
|
|
1995
|
+
?billable_metric_id: String?,
|
|
1996
|
+
?billed_in_advance: bool?,
|
|
1997
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1998
|
+
?conversion_rate: Float?,
|
|
1999
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2000
|
+
?currency: String?,
|
|
2001
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2002
|
+
?external_price_id: String?,
|
|
2003
|
+
?fixed_price_quantity: Float?,
|
|
2004
|
+
?invoice_grouping_key: String?,
|
|
2005
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2006
|
+
?license_type_id: String?,
|
|
2007
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2008
|
+
?reference_id: String?,
|
|
2009
|
+
?model_type: :event_output
|
|
2010
|
+
) -> void
|
|
2011
|
+
|
|
2012
|
+
def to_hash: -> {
|
|
2013
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence,
|
|
2014
|
+
event_output_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
2015
|
+
item_id: String,
|
|
2016
|
+
model_type: :event_output,
|
|
2017
|
+
name: String,
|
|
2018
|
+
billable_metric_id: String?,
|
|
2019
|
+
billed_in_advance: bool?,
|
|
2020
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2021
|
+
conversion_rate: Float?,
|
|
2022
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2023
|
+
currency: String?,
|
|
2024
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2025
|
+
external_price_id: String?,
|
|
2026
|
+
fixed_price_quantity: Float?,
|
|
2027
|
+
invoice_grouping_key: String?,
|
|
2028
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2029
|
+
license_type_id: String?,
|
|
2030
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2031
|
+
reference_id: String?
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
type cadence =
|
|
2035
|
+
:annual
|
|
2036
|
+
| :semi_annual
|
|
2037
|
+
| :monthly
|
|
2038
|
+
| :quarterly
|
|
2039
|
+
| :one_time
|
|
2040
|
+
| :custom
|
|
2041
|
+
|
|
2042
|
+
module Cadence
|
|
2043
|
+
extend Orb::Internal::Type::Enum
|
|
2044
|
+
|
|
2045
|
+
ANNUAL: :annual
|
|
2046
|
+
SEMI_ANNUAL: :semi_annual
|
|
2047
|
+
MONTHLY: :monthly
|
|
2048
|
+
QUARTERLY: :quarterly
|
|
2049
|
+
ONE_TIME: :one_time
|
|
2050
|
+
CUSTOM: :custom
|
|
2051
|
+
|
|
2052
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::EventOutput::cadence]
|
|
2053
|
+
end
|
|
2054
|
+
|
|
2055
|
+
type event_output_config =
|
|
2056
|
+
{
|
|
2057
|
+
unit_rating_key: String,
|
|
2058
|
+
default_unit_rate: String?,
|
|
2059
|
+
grouping_key: String?
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
2063
|
+
attr_accessor unit_rating_key: String
|
|
2064
|
+
|
|
2065
|
+
attr_accessor default_unit_rate: String?
|
|
2066
|
+
|
|
2067
|
+
attr_accessor grouping_key: String?
|
|
2068
|
+
|
|
2069
|
+
def initialize: (
|
|
2070
|
+
unit_rating_key: String,
|
|
2071
|
+
?default_unit_rate: String?,
|
|
2072
|
+
?grouping_key: String?
|
|
2073
|
+
) -> void
|
|
2074
|
+
|
|
2075
|
+
def to_hash: -> {
|
|
2076
|
+
unit_rating_key: String,
|
|
2077
|
+
default_unit_rate: String?,
|
|
2078
|
+
grouping_key: String?
|
|
2079
|
+
}
|
|
2080
|
+
end
|
|
2081
|
+
end
|
|
2082
|
+
|
|
2083
|
+
def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price]
|
|
2084
|
+
end
|
|
2085
|
+
end
|
|
2086
|
+
|
|
2087
|
+
type remove_adjustment =
|
|
2088
|
+
{ adjustment_id: String, plan_phase_order: Integer? }
|
|
2089
|
+
|
|
2090
|
+
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
2091
|
+
attr_accessor adjustment_id: String
|
|
2092
|
+
|
|
2093
|
+
attr_accessor plan_phase_order: Integer?
|
|
2094
|
+
|
|
2095
|
+
def initialize: (
|
|
2096
|
+
adjustment_id: String,
|
|
2097
|
+
?plan_phase_order: Integer?
|
|
2098
|
+
) -> void
|
|
2099
|
+
|
|
2100
|
+
def to_hash: -> { adjustment_id: String, plan_phase_order: Integer? }
|
|
2101
|
+
end
|
|
2102
|
+
|
|
2103
|
+
type remove_price = { price_id: String, plan_phase_order: Integer? }
|
|
2104
|
+
|
|
2105
|
+
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
2106
|
+
attr_accessor price_id: String
|
|
2107
|
+
|
|
2108
|
+
attr_accessor plan_phase_order: Integer?
|
|
2109
|
+
|
|
2110
|
+
def initialize: (
|
|
2111
|
+
price_id: String,
|
|
2112
|
+
?plan_phase_order: Integer?
|
|
2113
|
+
) -> void
|
|
2114
|
+
|
|
2115
|
+
def to_hash: -> { price_id: String, plan_phase_order: Integer? }
|
|
2116
|
+
end
|
|
2117
|
+
|
|
2118
|
+
type replace_adjustment =
|
|
2119
|
+
{
|
|
2120
|
+
adjustment: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
2121
|
+
replaces_adjustment_id: String,
|
|
2122
|
+
plan_phase_order: Integer?
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
2126
|
+
attr_accessor adjustment: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment
|
|
2127
|
+
|
|
2128
|
+
attr_accessor replaces_adjustment_id: String
|
|
2129
|
+
|
|
2130
|
+
attr_accessor plan_phase_order: Integer?
|
|
2131
|
+
|
|
2132
|
+
def initialize: (
|
|
2133
|
+
adjustment: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
2134
|
+
replaces_adjustment_id: String,
|
|
2135
|
+
?plan_phase_order: Integer?
|
|
2136
|
+
) -> void
|
|
2137
|
+
|
|
2138
|
+
def to_hash: -> {
|
|
2139
|
+
adjustment: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment,
|
|
2140
|
+
replaces_adjustment_id: String,
|
|
2141
|
+
plan_phase_order: Integer?
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
type adjustment =
|
|
2145
|
+
Orb::NewPercentageDiscount
|
|
2146
|
+
| Orb::NewUsageDiscount
|
|
2147
|
+
| Orb::NewAmountDiscount
|
|
2148
|
+
| Orb::NewMinimum
|
|
2149
|
+
| Orb::NewMaximum
|
|
2150
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount
|
|
2151
|
+
|
|
2152
|
+
module Adjustment
|
|
2153
|
+
extend Orb::Internal::Type::Union
|
|
2154
|
+
|
|
2155
|
+
type tiered_percentage_discount =
|
|
2156
|
+
{
|
|
2157
|
+
adjustment_type: :tiered_percentage_discount,
|
|
2158
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2159
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2160
|
+
applies_to_item_ids: ::Array[String]?,
|
|
2161
|
+
applies_to_price_ids: ::Array[String]?,
|
|
2162
|
+
currency: String?,
|
|
2163
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2164
|
+
is_invoice_level: bool,
|
|
2165
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
2169
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
2170
|
+
|
|
2171
|
+
attr_accessor tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
2172
|
+
|
|
2173
|
+
attr_accessor applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
2174
|
+
|
|
2175
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
2176
|
+
|
|
2177
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
2178
|
+
|
|
2179
|
+
attr_accessor currency: String?
|
|
2180
|
+
|
|
2181
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
2182
|
+
|
|
2183
|
+
attr_reader is_invoice_level: bool?
|
|
2184
|
+
|
|
2185
|
+
def is_invoice_level=: (bool) -> bool
|
|
2186
|
+
|
|
2187
|
+
attr_accessor price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2188
|
+
|
|
2189
|
+
def initialize: (
|
|
2190
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2191
|
+
?applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2192
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
2193
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
2194
|
+
?currency: String?,
|
|
2195
|
+
?filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2196
|
+
?is_invoice_level: bool,
|
|
2197
|
+
?price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
2198
|
+
?adjustment_type: :tiered_percentage_discount
|
|
2199
|
+
) -> void
|
|
2200
|
+
|
|
2201
|
+
def to_hash: -> {
|
|
2202
|
+
adjustment_type: :tiered_percentage_discount,
|
|
2203
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2204
|
+
applies_to_all: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2205
|
+
applies_to_item_ids: ::Array[String]?,
|
|
2206
|
+
applies_to_price_ids: ::Array[String]?,
|
|
2207
|
+
currency: String?,
|
|
2208
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2209
|
+
is_invoice_level: bool,
|
|
2210
|
+
price_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
type tier =
|
|
2214
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
2215
|
+
|
|
2216
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2217
|
+
attr_accessor lower_bound: Float
|
|
2218
|
+
|
|
2219
|
+
attr_accessor percentage: Float
|
|
2220
|
+
|
|
2221
|
+
attr_accessor upper_bound: Float?
|
|
2222
|
+
|
|
2223
|
+
def initialize: (
|
|
2224
|
+
lower_bound: Float,
|
|
2225
|
+
percentage: Float,
|
|
2226
|
+
?upper_bound: Float?
|
|
2227
|
+
) -> void
|
|
2228
|
+
|
|
2229
|
+
def to_hash: -> {
|
|
2230
|
+
lower_bound: Float,
|
|
2231
|
+
percentage: Float,
|
|
2232
|
+
upper_bound: Float?
|
|
2233
|
+
}
|
|
2234
|
+
end
|
|
2235
|
+
|
|
2236
|
+
type applies_to_all = true
|
|
2237
|
+
|
|
2238
|
+
module AppliesToAll
|
|
2239
|
+
extend Orb::Internal::Type::Enum
|
|
2240
|
+
|
|
2241
|
+
TRUE: true
|
|
2242
|
+
|
|
2243
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
2244
|
+
end
|
|
2245
|
+
|
|
2246
|
+
type filter =
|
|
2247
|
+
{
|
|
2248
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2249
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2250
|
+
values: ::Array[String]
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2254
|
+
attr_accessor field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
2255
|
+
|
|
2256
|
+
attr_accessor operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
2257
|
+
|
|
2258
|
+
attr_accessor values: ::Array[String]
|
|
2259
|
+
|
|
2260
|
+
def initialize: (
|
|
2261
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2262
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2263
|
+
values: ::Array[String]
|
|
2264
|
+
) -> void
|
|
2265
|
+
|
|
2266
|
+
def to_hash: -> {
|
|
2267
|
+
field: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2268
|
+
operator: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2269
|
+
values: ::Array[String]
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
type field =
|
|
2273
|
+
:price_id
|
|
2274
|
+
| :item_id
|
|
2275
|
+
| :price_type
|
|
2276
|
+
| :currency
|
|
2277
|
+
| :pricing_unit_id
|
|
2278
|
+
|
|
2279
|
+
module Field
|
|
2280
|
+
extend Orb::Internal::Type::Enum
|
|
2281
|
+
|
|
2282
|
+
PRICE_ID: :price_id
|
|
2283
|
+
ITEM_ID: :item_id
|
|
2284
|
+
PRICE_TYPE: :price_type
|
|
2285
|
+
CURRENCY: :currency
|
|
2286
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
2287
|
+
|
|
2288
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
2289
|
+
end
|
|
2290
|
+
|
|
2291
|
+
type operator = :includes | :excludes
|
|
2292
|
+
|
|
2293
|
+
module Operator
|
|
2294
|
+
extend Orb::Internal::Type::Enum
|
|
2295
|
+
|
|
2296
|
+
INCLUDES: :includes
|
|
2297
|
+
EXCLUDES: :excludes
|
|
2298
|
+
|
|
2299
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
2300
|
+
end
|
|
2301
|
+
end
|
|
2302
|
+
|
|
2303
|
+
type price_type =
|
|
2304
|
+
:usage
|
|
2305
|
+
| :fixed_in_advance
|
|
2306
|
+
| :fixed_in_arrears
|
|
2307
|
+
| :fixed
|
|
2308
|
+
| :in_arrears
|
|
2309
|
+
|
|
2310
|
+
module PriceType
|
|
2311
|
+
extend Orb::Internal::Type::Enum
|
|
2312
|
+
|
|
2313
|
+
USAGE: :usage
|
|
2314
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
2315
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
2316
|
+
FIXED: :fixed
|
|
2317
|
+
IN_ARREARS: :in_arrears
|
|
2318
|
+
|
|
2319
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
2320
|
+
end
|
|
2321
|
+
end
|
|
2322
|
+
|
|
2323
|
+
def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::adjustment]
|
|
2324
|
+
end
|
|
2325
|
+
end
|
|
2326
|
+
|
|
2327
|
+
type replace_price =
|
|
2328
|
+
{
|
|
2329
|
+
replaces_price_id: String,
|
|
2330
|
+
allocation_price: Orb::NewAllocationPrice?,
|
|
2331
|
+
license_allocation_price: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice?,
|
|
2332
|
+
plan_phase_order: Integer?,
|
|
2333
|
+
price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price?
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
2337
|
+
attr_accessor replaces_price_id: String
|
|
2338
|
+
|
|
2339
|
+
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
2340
|
+
|
|
2341
|
+
attr_accessor license_allocation_price: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice?
|
|
2342
|
+
|
|
2343
|
+
attr_accessor plan_phase_order: Integer?
|
|
2344
|
+
|
|
2345
|
+
attr_accessor price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price?
|
|
2346
|
+
|
|
2347
|
+
def initialize: (
|
|
2348
|
+
replaces_price_id: String,
|
|
2349
|
+
?allocation_price: Orb::NewAllocationPrice?,
|
|
2350
|
+
?license_allocation_price: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice?,
|
|
2351
|
+
?plan_phase_order: Integer?,
|
|
2352
|
+
?price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price?
|
|
2353
|
+
) -> void
|
|
2354
|
+
|
|
2355
|
+
def to_hash: -> {
|
|
2356
|
+
replaces_price_id: String,
|
|
2357
|
+
allocation_price: Orb::NewAllocationPrice?,
|
|
2358
|
+
license_allocation_price: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice?,
|
|
2359
|
+
plan_phase_order: Integer?,
|
|
2360
|
+
price: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price?
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
type license_allocation_price =
|
|
2364
|
+
{
|
|
2365
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence,
|
|
2366
|
+
item_id: String,
|
|
2367
|
+
license_allocations: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation],
|
|
2368
|
+
model_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type,
|
|
2369
|
+
name: String,
|
|
2370
|
+
unit_config: Orb::UnitConfig,
|
|
2371
|
+
billable_metric_id: String?,
|
|
2372
|
+
billed_in_advance: bool?,
|
|
2373
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2374
|
+
conversion_rate: Float?,
|
|
2375
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2376
|
+
currency: String?,
|
|
2377
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2378
|
+
external_price_id: String?,
|
|
2379
|
+
fixed_price_quantity: Float?,
|
|
2380
|
+
invoice_grouping_key: String?,
|
|
2381
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2382
|
+
license_type_id: String?,
|
|
2383
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2384
|
+
reference_id: String?
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
2388
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence
|
|
2389
|
+
|
|
2390
|
+
attr_accessor item_id: String
|
|
2391
|
+
|
|
2392
|
+
attr_accessor license_allocations: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation]
|
|
2393
|
+
|
|
2394
|
+
attr_accessor model_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type
|
|
2395
|
+
|
|
2396
|
+
attr_accessor name: String
|
|
2397
|
+
|
|
2398
|
+
attr_accessor unit_config: Orb::UnitConfig
|
|
2399
|
+
|
|
2400
|
+
attr_accessor billable_metric_id: String?
|
|
2401
|
+
|
|
2402
|
+
attr_accessor billed_in_advance: bool?
|
|
2403
|
+
|
|
2404
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2405
|
+
|
|
2406
|
+
attr_accessor conversion_rate: Float?
|
|
2407
|
+
|
|
2408
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2409
|
+
|
|
2410
|
+
attr_accessor currency: String?
|
|
2411
|
+
|
|
2412
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2413
|
+
|
|
2414
|
+
attr_accessor external_price_id: String?
|
|
2415
|
+
|
|
2416
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2417
|
+
|
|
2418
|
+
attr_accessor invoice_grouping_key: String?
|
|
2419
|
+
|
|
2420
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2421
|
+
|
|
2422
|
+
attr_accessor license_type_id: String?
|
|
2423
|
+
|
|
2424
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2425
|
+
|
|
2426
|
+
attr_accessor reference_id: String?
|
|
2427
|
+
|
|
2428
|
+
def initialize: (
|
|
2429
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence,
|
|
2430
|
+
item_id: String,
|
|
2431
|
+
license_allocations: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation],
|
|
2432
|
+
model_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type,
|
|
2433
|
+
name: String,
|
|
2434
|
+
unit_config: Orb::UnitConfig,
|
|
2435
|
+
?billable_metric_id: String?,
|
|
2436
|
+
?billed_in_advance: bool?,
|
|
2437
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2438
|
+
?conversion_rate: Float?,
|
|
2439
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2440
|
+
?currency: String?,
|
|
2441
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2442
|
+
?external_price_id: String?,
|
|
2443
|
+
?fixed_price_quantity: Float?,
|
|
2444
|
+
?invoice_grouping_key: String?,
|
|
2445
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2446
|
+
?license_type_id: String?,
|
|
2447
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2448
|
+
?reference_id: String?
|
|
2449
|
+
) -> void
|
|
2450
|
+
|
|
2451
|
+
def to_hash: -> {
|
|
2452
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence,
|
|
2453
|
+
item_id: String,
|
|
2454
|
+
license_allocations: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::LicenseAllocation],
|
|
2455
|
+
model_type: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type,
|
|
2456
|
+
name: String,
|
|
2457
|
+
unit_config: Orb::UnitConfig,
|
|
2458
|
+
billable_metric_id: String?,
|
|
2459
|
+
billed_in_advance: bool?,
|
|
2460
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2461
|
+
conversion_rate: Float?,
|
|
2462
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2463
|
+
currency: String?,
|
|
2464
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2465
|
+
external_price_id: String?,
|
|
2466
|
+
fixed_price_quantity: Float?,
|
|
2467
|
+
invoice_grouping_key: String?,
|
|
2468
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2469
|
+
license_type_id: String?,
|
|
2470
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2471
|
+
reference_id: String?
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
type cadence =
|
|
2475
|
+
:annual
|
|
2476
|
+
| :semi_annual
|
|
2477
|
+
| :monthly
|
|
2478
|
+
| :quarterly
|
|
2479
|
+
| :one_time
|
|
2480
|
+
| :custom
|
|
2481
|
+
|
|
2482
|
+
module Cadence
|
|
2483
|
+
extend Orb::Internal::Type::Enum
|
|
2484
|
+
|
|
2485
|
+
ANNUAL: :annual
|
|
2486
|
+
SEMI_ANNUAL: :semi_annual
|
|
2487
|
+
MONTHLY: :monthly
|
|
2488
|
+
QUARTERLY: :quarterly
|
|
2489
|
+
ONE_TIME: :one_time
|
|
2490
|
+
CUSTOM: :custom
|
|
2491
|
+
|
|
2492
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::cadence]
|
|
2493
|
+
end
|
|
2494
|
+
|
|
2495
|
+
type license_allocation =
|
|
2496
|
+
{ amount: String, currency: String, write_off_overage: bool? }
|
|
2497
|
+
|
|
2498
|
+
class LicenseAllocation < Orb::Internal::Type::BaseModel
|
|
2499
|
+
attr_accessor amount: String
|
|
2500
|
+
|
|
2501
|
+
attr_accessor currency: String
|
|
2502
|
+
|
|
2503
|
+
attr_accessor write_off_overage: bool?
|
|
2504
|
+
|
|
2505
|
+
def initialize: (
|
|
2506
|
+
amount: String,
|
|
2507
|
+
currency: String,
|
|
2508
|
+
?write_off_overage: bool?
|
|
2509
|
+
) -> void
|
|
2510
|
+
|
|
2511
|
+
def to_hash: -> {
|
|
2512
|
+
amount: String,
|
|
2513
|
+
currency: String,
|
|
2514
|
+
write_off_overage: bool?
|
|
2515
|
+
}
|
|
2516
|
+
end
|
|
2517
|
+
|
|
2518
|
+
type model_type = :unit
|
|
2519
|
+
|
|
2520
|
+
module ModelType
|
|
2521
|
+
extend Orb::Internal::Type::Enum
|
|
2522
|
+
|
|
2523
|
+
UNIT: :unit
|
|
2524
|
+
|
|
2525
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::LicenseAllocationPrice::model_type]
|
|
2526
|
+
end
|
|
2527
|
+
end
|
|
2528
|
+
|
|
2529
|
+
type price =
|
|
2530
|
+
Orb::NewPlanUnitPrice
|
|
2531
|
+
| Orb::NewPlanTieredPrice
|
|
2532
|
+
| Orb::NewPlanBulkPrice
|
|
2533
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters
|
|
2534
|
+
| Orb::NewPlanPackagePrice
|
|
2535
|
+
| Orb::NewPlanMatrixPrice
|
|
2536
|
+
| Orb::NewPlanThresholdTotalAmountPrice
|
|
2537
|
+
| Orb::NewPlanTieredPackagePrice
|
|
2538
|
+
| Orb::NewPlanTieredWithMinimumPrice
|
|
2539
|
+
| Orb::NewPlanGroupedTieredPrice
|
|
2540
|
+
| Orb::NewPlanTieredPackageWithMinimumPrice
|
|
2541
|
+
| Orb::NewPlanPackageWithAllocationPrice
|
|
2542
|
+
| Orb::NewPlanUnitWithPercentPrice
|
|
2543
|
+
| Orb::NewPlanMatrixWithAllocationPrice
|
|
2544
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts
|
|
2545
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration
|
|
2546
|
+
| Orb::NewPlanUnitWithProrationPrice
|
|
2547
|
+
| Orb::NewPlanGroupedAllocationPrice
|
|
2548
|
+
| Orb::NewPlanBulkWithProrationPrice
|
|
2549
|
+
| Orb::NewPlanGroupedWithProratedMinimumPrice
|
|
2550
|
+
| Orb::NewPlanGroupedWithMeteredMinimumPrice
|
|
2551
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
2552
|
+
| Orb::NewPlanMatrixWithDisplayNamePrice
|
|
2553
|
+
| Orb::NewPlanGroupedTieredPackagePrice
|
|
2554
|
+
| Orb::NewPlanMaxGroupTieredPackagePrice
|
|
2555
|
+
| Orb::NewPlanScalableMatrixWithUnitPricingPrice
|
|
2556
|
+
| Orb::NewPlanScalableMatrixWithTieredPricingPrice
|
|
2557
|
+
| Orb::NewPlanCumulativeGroupedBulkPrice
|
|
2558
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
2559
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance
|
|
2560
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance
|
|
2561
|
+
| Orb::NewPlanMinimumCompositePrice
|
|
2562
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent
|
|
2563
|
+
| Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::EventOutput
|
|
2564
|
+
|
|
2565
|
+
module Price
|
|
2566
|
+
extend Orb::Internal::Type::Union
|
|
2567
|
+
|
|
2568
|
+
type bulk_with_filters =
|
|
2569
|
+
{
|
|
2570
|
+
bulk_with_filters_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2571
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2572
|
+
item_id: String,
|
|
2573
|
+
model_type: :bulk_with_filters,
|
|
2574
|
+
name: String,
|
|
2575
|
+
billable_metric_id: String?,
|
|
2576
|
+
billed_in_advance: bool?,
|
|
2577
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2578
|
+
conversion_rate: Float?,
|
|
2579
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2580
|
+
currency: String?,
|
|
2581
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2582
|
+
external_price_id: String?,
|
|
2583
|
+
fixed_price_quantity: Float?,
|
|
2584
|
+
invoice_grouping_key: String?,
|
|
2585
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2586
|
+
license_type_id: String?,
|
|
2587
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2588
|
+
reference_id: String?
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
2592
|
+
attr_accessor bulk_with_filters_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig
|
|
2593
|
+
|
|
2594
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence
|
|
2595
|
+
|
|
2596
|
+
attr_accessor item_id: String
|
|
2597
|
+
|
|
2598
|
+
attr_accessor model_type: :bulk_with_filters
|
|
2599
|
+
|
|
2600
|
+
attr_accessor name: String
|
|
2601
|
+
|
|
2602
|
+
attr_accessor billable_metric_id: String?
|
|
2603
|
+
|
|
2604
|
+
attr_accessor billed_in_advance: bool?
|
|
2605
|
+
|
|
2606
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2607
|
+
|
|
2608
|
+
attr_accessor conversion_rate: Float?
|
|
2609
|
+
|
|
2610
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2611
|
+
|
|
2612
|
+
attr_accessor currency: String?
|
|
2613
|
+
|
|
2614
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2615
|
+
|
|
2616
|
+
attr_accessor external_price_id: String?
|
|
2617
|
+
|
|
2618
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2619
|
+
|
|
2620
|
+
attr_accessor invoice_grouping_key: String?
|
|
2621
|
+
|
|
2622
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2623
|
+
|
|
2624
|
+
attr_accessor license_type_id: String?
|
|
2625
|
+
|
|
2626
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2627
|
+
|
|
2628
|
+
attr_accessor reference_id: String?
|
|
2629
|
+
|
|
2630
|
+
def initialize: (
|
|
2631
|
+
bulk_with_filters_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2632
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2633
|
+
item_id: String,
|
|
2634
|
+
name: String,
|
|
2635
|
+
?billable_metric_id: String?,
|
|
2636
|
+
?billed_in_advance: bool?,
|
|
2637
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2638
|
+
?conversion_rate: Float?,
|
|
2639
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2640
|
+
?currency: String?,
|
|
2641
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2642
|
+
?external_price_id: String?,
|
|
2643
|
+
?fixed_price_quantity: Float?,
|
|
2644
|
+
?invoice_grouping_key: String?,
|
|
2645
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2646
|
+
?license_type_id: String?,
|
|
2647
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2648
|
+
?reference_id: String?,
|
|
2649
|
+
?model_type: :bulk_with_filters
|
|
2650
|
+
) -> void
|
|
2651
|
+
|
|
2652
|
+
def to_hash: -> {
|
|
2653
|
+
bulk_with_filters_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2654
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2655
|
+
item_id: String,
|
|
2656
|
+
model_type: :bulk_with_filters,
|
|
2657
|
+
name: String,
|
|
2658
|
+
billable_metric_id: String?,
|
|
2659
|
+
billed_in_advance: bool?,
|
|
2660
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2661
|
+
conversion_rate: Float?,
|
|
2662
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2663
|
+
currency: String?,
|
|
2664
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2665
|
+
external_price_id: String?,
|
|
2666
|
+
fixed_price_quantity: Float?,
|
|
2667
|
+
invoice_grouping_key: String?,
|
|
2668
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2669
|
+
license_type_id: String?,
|
|
2670
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2671
|
+
reference_id: String?
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
type bulk_with_filters_config =
|
|
2675
|
+
{
|
|
2676
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2677
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
2681
|
+
attr_accessor filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter]
|
|
2682
|
+
|
|
2683
|
+
attr_accessor tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2684
|
+
|
|
2685
|
+
def initialize: (
|
|
2686
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2687
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2688
|
+
) -> void
|
|
2689
|
+
|
|
2690
|
+
def to_hash: -> {
|
|
2691
|
+
filters: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2692
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
type filter = { property_key: String, property_value: String }
|
|
2696
|
+
|
|
2697
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2698
|
+
attr_accessor property_key: String
|
|
2699
|
+
|
|
2700
|
+
attr_accessor property_value: String
|
|
2701
|
+
|
|
2702
|
+
def initialize: (
|
|
2703
|
+
property_key: String,
|
|
2704
|
+
property_value: String
|
|
2705
|
+
) -> void
|
|
2706
|
+
|
|
2707
|
+
def to_hash: -> {
|
|
2708
|
+
property_key: String,
|
|
2709
|
+
property_value: String
|
|
2710
|
+
}
|
|
2711
|
+
end
|
|
2712
|
+
|
|
2713
|
+
type tier = { unit_amount: String, tier_lower_bound: String? }
|
|
2714
|
+
|
|
2715
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2716
|
+
attr_accessor unit_amount: String
|
|
2717
|
+
|
|
2718
|
+
attr_accessor tier_lower_bound: String?
|
|
2719
|
+
|
|
2720
|
+
def initialize: (
|
|
2721
|
+
unit_amount: String,
|
|
2722
|
+
?tier_lower_bound: String?
|
|
2723
|
+
) -> void
|
|
2724
|
+
|
|
2725
|
+
def to_hash: -> {
|
|
2726
|
+
unit_amount: String,
|
|
2727
|
+
tier_lower_bound: String?
|
|
2728
|
+
}
|
|
2729
|
+
end
|
|
2730
|
+
end
|
|
2731
|
+
|
|
2732
|
+
type cadence =
|
|
2733
|
+
:annual
|
|
2734
|
+
| :semi_annual
|
|
2735
|
+
| :monthly
|
|
2736
|
+
| :quarterly
|
|
2737
|
+
| :one_time
|
|
2738
|
+
| :custom
|
|
2739
|
+
|
|
2740
|
+
module Cadence
|
|
2741
|
+
extend Orb::Internal::Type::Enum
|
|
2742
|
+
|
|
2743
|
+
ANNUAL: :annual
|
|
2744
|
+
SEMI_ANNUAL: :semi_annual
|
|
2745
|
+
MONTHLY: :monthly
|
|
2746
|
+
QUARTERLY: :quarterly
|
|
2747
|
+
ONE_TIME: :one_time
|
|
2748
|
+
CUSTOM: :custom
|
|
2749
|
+
|
|
2750
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::BulkWithFilters::cadence]
|
|
2751
|
+
end
|
|
2752
|
+
end
|
|
2753
|
+
|
|
2754
|
+
type matrix_with_threshold_discounts =
|
|
2755
|
+
{
|
|
2756
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2757
|
+
item_id: String,
|
|
2758
|
+
matrix_with_threshold_discounts_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2759
|
+
model_type: :matrix_with_threshold_discounts,
|
|
2760
|
+
name: String,
|
|
2761
|
+
billable_metric_id: String?,
|
|
2762
|
+
billed_in_advance: bool?,
|
|
2763
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2764
|
+
conversion_rate: Float?,
|
|
2765
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2766
|
+
currency: String?,
|
|
2767
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2768
|
+
external_price_id: String?,
|
|
2769
|
+
fixed_price_quantity: Float?,
|
|
2770
|
+
invoice_grouping_key: String?,
|
|
2771
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2772
|
+
license_type_id: String?,
|
|
2773
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2774
|
+
reference_id: String?
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
2778
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence
|
|
2779
|
+
|
|
2780
|
+
attr_accessor item_id: String
|
|
2781
|
+
|
|
2782
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
2783
|
+
|
|
2784
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
2785
|
+
|
|
2786
|
+
attr_accessor name: String
|
|
2787
|
+
|
|
2788
|
+
attr_accessor billable_metric_id: String?
|
|
2789
|
+
|
|
2790
|
+
attr_accessor billed_in_advance: bool?
|
|
2791
|
+
|
|
2792
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2793
|
+
|
|
2794
|
+
attr_accessor conversion_rate: Float?
|
|
2795
|
+
|
|
2796
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2797
|
+
|
|
2798
|
+
attr_accessor currency: String?
|
|
2799
|
+
|
|
2800
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2801
|
+
|
|
2802
|
+
attr_accessor external_price_id: String?
|
|
2803
|
+
|
|
2804
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2805
|
+
|
|
2806
|
+
attr_accessor invoice_grouping_key: String?
|
|
2807
|
+
|
|
2808
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2809
|
+
|
|
2810
|
+
attr_accessor license_type_id: String?
|
|
2811
|
+
|
|
2812
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2813
|
+
|
|
2814
|
+
attr_accessor reference_id: String?
|
|
2815
|
+
|
|
2816
|
+
def initialize: (
|
|
2817
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2818
|
+
item_id: String,
|
|
2819
|
+
matrix_with_threshold_discounts_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2820
|
+
name: String,
|
|
2821
|
+
?billable_metric_id: String?,
|
|
2822
|
+
?billed_in_advance: bool?,
|
|
2823
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2824
|
+
?conversion_rate: Float?,
|
|
2825
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2826
|
+
?currency: String?,
|
|
2827
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2828
|
+
?external_price_id: String?,
|
|
2829
|
+
?fixed_price_quantity: Float?,
|
|
2830
|
+
?invoice_grouping_key: String?,
|
|
2831
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2832
|
+
?license_type_id: String?,
|
|
2833
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2834
|
+
?reference_id: String?,
|
|
2835
|
+
?model_type: :matrix_with_threshold_discounts
|
|
2836
|
+
) -> void
|
|
2837
|
+
|
|
2838
|
+
def to_hash: -> {
|
|
2839
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2840
|
+
item_id: String,
|
|
2841
|
+
matrix_with_threshold_discounts_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2842
|
+
model_type: :matrix_with_threshold_discounts,
|
|
2843
|
+
name: String,
|
|
2844
|
+
billable_metric_id: String?,
|
|
2845
|
+
billed_in_advance: bool?,
|
|
2846
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2847
|
+
conversion_rate: Float?,
|
|
2848
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2849
|
+
currency: String?,
|
|
2850
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2851
|
+
external_price_id: String?,
|
|
2852
|
+
fixed_price_quantity: Float?,
|
|
2853
|
+
invoice_grouping_key: String?,
|
|
2854
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2855
|
+
license_type_id: String?,
|
|
2856
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2857
|
+
reference_id: String?
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
type cadence =
|
|
2861
|
+
:annual
|
|
2862
|
+
| :semi_annual
|
|
2863
|
+
| :monthly
|
|
2864
|
+
| :quarterly
|
|
2865
|
+
| :one_time
|
|
2866
|
+
| :custom
|
|
2867
|
+
|
|
2868
|
+
module Cadence
|
|
2869
|
+
extend Orb::Internal::Type::Enum
|
|
2870
|
+
|
|
2871
|
+
ANNUAL: :annual
|
|
2872
|
+
SEMI_ANNUAL: :semi_annual
|
|
2873
|
+
MONTHLY: :monthly
|
|
2874
|
+
QUARTERLY: :quarterly
|
|
2875
|
+
ONE_TIME: :one_time
|
|
2876
|
+
CUSTOM: :custom
|
|
2877
|
+
|
|
2878
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence]
|
|
2879
|
+
end
|
|
2880
|
+
|
|
2881
|
+
type matrix_with_threshold_discounts_config =
|
|
2882
|
+
{
|
|
2883
|
+
default_unit_amount: String,
|
|
2884
|
+
first_dimension: String,
|
|
2885
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2886
|
+
second_dimension: String?,
|
|
2887
|
+
threshold_discount_groups: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
2891
|
+
attr_accessor default_unit_amount: String
|
|
2892
|
+
|
|
2893
|
+
attr_accessor first_dimension: String
|
|
2894
|
+
|
|
2895
|
+
attr_accessor matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
2896
|
+
|
|
2897
|
+
attr_accessor second_dimension: String?
|
|
2898
|
+
|
|
2899
|
+
attr_reader threshold_discount_groups: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
2900
|
+
|
|
2901
|
+
def threshold_discount_groups=: (
|
|
2902
|
+
::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2903
|
+
) -> ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2904
|
+
|
|
1379
2905
|
def initialize: (
|
|
1380
|
-
|
|
1381
|
-
|
|
2906
|
+
default_unit_amount: String,
|
|
2907
|
+
first_dimension: String,
|
|
2908
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2909
|
+
?second_dimension: String?,
|
|
2910
|
+
?threshold_discount_groups: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
1382
2911
|
) -> void
|
|
1383
2912
|
|
|
1384
2913
|
def to_hash: -> {
|
|
1385
|
-
|
|
1386
|
-
|
|
2914
|
+
default_unit_amount: String,
|
|
2915
|
+
first_dimension: String,
|
|
2916
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2917
|
+
second_dimension: String?,
|
|
2918
|
+
threshold_discount_groups: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
1387
2919
|
}
|
|
1388
2920
|
|
|
1389
|
-
type
|
|
2921
|
+
type matrix_value =
|
|
2922
|
+
{
|
|
2923
|
+
first_dimension_value: String,
|
|
2924
|
+
unit_amount: String,
|
|
2925
|
+
second_dimension_value: String?
|
|
2926
|
+
}
|
|
1390
2927
|
|
|
1391
|
-
class
|
|
1392
|
-
attr_accessor
|
|
2928
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
2929
|
+
attr_accessor first_dimension_value: String
|
|
1393
2930
|
|
|
1394
|
-
attr_accessor
|
|
2931
|
+
attr_accessor unit_amount: String
|
|
2932
|
+
|
|
2933
|
+
attr_accessor second_dimension_value: String?
|
|
1395
2934
|
|
|
1396
2935
|
def initialize: (
|
|
1397
|
-
|
|
1398
|
-
|
|
2936
|
+
first_dimension_value: String,
|
|
2937
|
+
unit_amount: String,
|
|
2938
|
+
?second_dimension_value: String?
|
|
1399
2939
|
) -> void
|
|
1400
2940
|
|
|
1401
2941
|
def to_hash: -> {
|
|
1402
|
-
|
|
1403
|
-
|
|
2942
|
+
first_dimension_value: String,
|
|
2943
|
+
unit_amount: String,
|
|
2944
|
+
second_dimension_value: String?
|
|
1404
2945
|
}
|
|
1405
2946
|
end
|
|
1406
2947
|
|
|
1407
|
-
type
|
|
2948
|
+
type threshold_discount_group =
|
|
2949
|
+
{
|
|
2950
|
+
above_threshold_discount_percentage: String,
|
|
2951
|
+
below_threshold_discount_percentage: String,
|
|
2952
|
+
cell_coordinates: String,
|
|
2953
|
+
threshold_amount: String,
|
|
2954
|
+
description: String?
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
2958
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
2959
|
+
|
|
2960
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
2961
|
+
|
|
2962
|
+
attr_accessor cell_coordinates: String
|
|
2963
|
+
|
|
2964
|
+
attr_accessor threshold_amount: String
|
|
2965
|
+
|
|
2966
|
+
attr_accessor description: String?
|
|
2967
|
+
|
|
2968
|
+
def initialize: (
|
|
2969
|
+
above_threshold_discount_percentage: String,
|
|
2970
|
+
below_threshold_discount_percentage: String,
|
|
2971
|
+
cell_coordinates: String,
|
|
2972
|
+
threshold_amount: String,
|
|
2973
|
+
?description: String?
|
|
2974
|
+
) -> void
|
|
2975
|
+
|
|
2976
|
+
def to_hash: -> {
|
|
2977
|
+
above_threshold_discount_percentage: String,
|
|
2978
|
+
below_threshold_discount_percentage: String,
|
|
2979
|
+
cell_coordinates: String,
|
|
2980
|
+
threshold_amount: String,
|
|
2981
|
+
description: String?
|
|
2982
|
+
}
|
|
2983
|
+
end
|
|
2984
|
+
end
|
|
2985
|
+
end
|
|
2986
|
+
|
|
2987
|
+
type tiered_with_proration =
|
|
2988
|
+
{
|
|
2989
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
2990
|
+
item_id: String,
|
|
2991
|
+
model_type: :tiered_with_proration,
|
|
2992
|
+
name: String,
|
|
2993
|
+
tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
2994
|
+
billable_metric_id: String?,
|
|
2995
|
+
billed_in_advance: bool?,
|
|
2996
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2997
|
+
conversion_rate: Float?,
|
|
2998
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2999
|
+
currency: String?,
|
|
3000
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3001
|
+
external_price_id: String?,
|
|
3002
|
+
fixed_price_quantity: Float?,
|
|
3003
|
+
invoice_grouping_key: String?,
|
|
3004
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3005
|
+
license_type_id: String?,
|
|
3006
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3007
|
+
reference_id: String?
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
class TieredWithProration < Orb::Internal::Type::BaseModel
|
|
3011
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence
|
|
3012
|
+
|
|
3013
|
+
attr_accessor item_id: String
|
|
3014
|
+
|
|
3015
|
+
attr_accessor model_type: :tiered_with_proration
|
|
3016
|
+
|
|
3017
|
+
attr_accessor name: String
|
|
3018
|
+
|
|
3019
|
+
attr_accessor tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
3020
|
+
|
|
3021
|
+
attr_accessor billable_metric_id: String?
|
|
3022
|
+
|
|
3023
|
+
attr_accessor billed_in_advance: bool?
|
|
3024
|
+
|
|
3025
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3026
|
+
|
|
3027
|
+
attr_accessor conversion_rate: Float?
|
|
3028
|
+
|
|
3029
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
3030
|
+
|
|
3031
|
+
attr_accessor currency: String?
|
|
3032
|
+
|
|
3033
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
3034
|
+
|
|
3035
|
+
attr_accessor external_price_id: String?
|
|
3036
|
+
|
|
3037
|
+
attr_accessor fixed_price_quantity: Float?
|
|
3038
|
+
|
|
3039
|
+
attr_accessor invoice_grouping_key: String?
|
|
3040
|
+
|
|
3041
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3042
|
+
|
|
3043
|
+
attr_accessor license_type_id: String?
|
|
3044
|
+
|
|
3045
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
3046
|
+
|
|
3047
|
+
attr_accessor reference_id: String?
|
|
3048
|
+
|
|
3049
|
+
def initialize: (
|
|
3050
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
3051
|
+
item_id: String,
|
|
3052
|
+
name: String,
|
|
3053
|
+
tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
3054
|
+
?billable_metric_id: String?,
|
|
3055
|
+
?billed_in_advance: bool?,
|
|
3056
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3057
|
+
?conversion_rate: Float?,
|
|
3058
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3059
|
+
?currency: String?,
|
|
3060
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3061
|
+
?external_price_id: String?,
|
|
3062
|
+
?fixed_price_quantity: Float?,
|
|
3063
|
+
?invoice_grouping_key: String?,
|
|
3064
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3065
|
+
?license_type_id: String?,
|
|
3066
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
3067
|
+
?reference_id: String?,
|
|
3068
|
+
?model_type: :tiered_with_proration
|
|
3069
|
+
) -> void
|
|
3070
|
+
|
|
3071
|
+
def to_hash: -> {
|
|
3072
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
3073
|
+
item_id: String,
|
|
3074
|
+
model_type: :tiered_with_proration,
|
|
3075
|
+
name: String,
|
|
3076
|
+
tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
3077
|
+
billable_metric_id: String?,
|
|
3078
|
+
billed_in_advance: bool?,
|
|
3079
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3080
|
+
conversion_rate: Float?,
|
|
3081
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3082
|
+
currency: String?,
|
|
3083
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3084
|
+
external_price_id: String?,
|
|
3085
|
+
fixed_price_quantity: Float?,
|
|
3086
|
+
invoice_grouping_key: String?,
|
|
3087
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3088
|
+
license_type_id: String?,
|
|
3089
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3090
|
+
reference_id: String?
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
type cadence =
|
|
3094
|
+
:annual
|
|
3095
|
+
| :semi_annual
|
|
3096
|
+
| :monthly
|
|
3097
|
+
| :quarterly
|
|
3098
|
+
| :one_time
|
|
3099
|
+
| :custom
|
|
3100
|
+
|
|
3101
|
+
module Cadence
|
|
3102
|
+
extend Orb::Internal::Type::Enum
|
|
3103
|
+
|
|
3104
|
+
ANNUAL: :annual
|
|
3105
|
+
SEMI_ANNUAL: :semi_annual
|
|
3106
|
+
MONTHLY: :monthly
|
|
3107
|
+
QUARTERLY: :quarterly
|
|
3108
|
+
ONE_TIME: :one_time
|
|
3109
|
+
CUSTOM: :custom
|
|
3110
|
+
|
|
3111
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence]
|
|
3112
|
+
end
|
|
3113
|
+
|
|
3114
|
+
type tiered_with_proration_config =
|
|
3115
|
+
{
|
|
3116
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
class TieredWithProrationConfig < Orb::Internal::Type::BaseModel
|
|
3120
|
+
attr_accessor tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
3121
|
+
|
|
3122
|
+
def initialize: (
|
|
3123
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
3124
|
+
) -> void
|
|
3125
|
+
|
|
3126
|
+
def to_hash: -> {
|
|
3127
|
+
tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1408
3131
|
|
|
1409
3132
|
class Tier < Orb::Internal::Type::BaseModel
|
|
3133
|
+
attr_accessor tier_lower_bound: String
|
|
3134
|
+
|
|
1410
3135
|
attr_accessor unit_amount: String
|
|
1411
3136
|
|
|
1412
|
-
|
|
3137
|
+
def initialize: (
|
|
3138
|
+
tier_lower_bound: String,
|
|
3139
|
+
unit_amount: String
|
|
3140
|
+
) -> void
|
|
3141
|
+
|
|
3142
|
+
def to_hash: -> {
|
|
3143
|
+
tier_lower_bound: String,
|
|
3144
|
+
unit_amount: String
|
|
3145
|
+
}
|
|
3146
|
+
end
|
|
3147
|
+
end
|
|
3148
|
+
end
|
|
3149
|
+
|
|
3150
|
+
type grouped_with_min_max_thresholds =
|
|
3151
|
+
{
|
|
3152
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3153
|
+
grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3154
|
+
item_id: String,
|
|
3155
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
3156
|
+
name: String,
|
|
3157
|
+
billable_metric_id: String?,
|
|
3158
|
+
billed_in_advance: bool?,
|
|
3159
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3160
|
+
conversion_rate: Float?,
|
|
3161
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3162
|
+
currency: String?,
|
|
3163
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3164
|
+
external_price_id: String?,
|
|
3165
|
+
fixed_price_quantity: Float?,
|
|
3166
|
+
invoice_grouping_key: String?,
|
|
3167
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3168
|
+
license_type_id: String?,
|
|
3169
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3170
|
+
reference_id: String?
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel
|
|
3174
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence
|
|
3175
|
+
|
|
3176
|
+
attr_accessor grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig
|
|
3177
|
+
|
|
3178
|
+
attr_accessor item_id: String
|
|
3179
|
+
|
|
3180
|
+
attr_accessor model_type: :grouped_with_min_max_thresholds
|
|
3181
|
+
|
|
3182
|
+
attr_accessor name: String
|
|
3183
|
+
|
|
3184
|
+
attr_accessor billable_metric_id: String?
|
|
3185
|
+
|
|
3186
|
+
attr_accessor billed_in_advance: bool?
|
|
3187
|
+
|
|
3188
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3189
|
+
|
|
3190
|
+
attr_accessor conversion_rate: Float?
|
|
3191
|
+
|
|
3192
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
3193
|
+
|
|
3194
|
+
attr_accessor currency: String?
|
|
3195
|
+
|
|
3196
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
3197
|
+
|
|
3198
|
+
attr_accessor external_price_id: String?
|
|
3199
|
+
|
|
3200
|
+
attr_accessor fixed_price_quantity: Float?
|
|
3201
|
+
|
|
3202
|
+
attr_accessor invoice_grouping_key: String?
|
|
3203
|
+
|
|
3204
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3205
|
+
|
|
3206
|
+
attr_accessor license_type_id: String?
|
|
3207
|
+
|
|
3208
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1413
3209
|
|
|
1414
|
-
|
|
1415
|
-
unit_amount: String,
|
|
1416
|
-
?tier_lower_bound: String?
|
|
1417
|
-
) -> void
|
|
3210
|
+
attr_accessor reference_id: String?
|
|
1418
3211
|
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
3212
|
+
def initialize: (
|
|
3213
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3214
|
+
grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3215
|
+
item_id: String,
|
|
3216
|
+
name: String,
|
|
3217
|
+
?billable_metric_id: String?,
|
|
3218
|
+
?billed_in_advance: bool?,
|
|
3219
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3220
|
+
?conversion_rate: Float?,
|
|
3221
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3222
|
+
?currency: String?,
|
|
3223
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3224
|
+
?external_price_id: String?,
|
|
3225
|
+
?fixed_price_quantity: Float?,
|
|
3226
|
+
?invoice_grouping_key: String?,
|
|
3227
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3228
|
+
?license_type_id: String?,
|
|
3229
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
3230
|
+
?reference_id: String?,
|
|
3231
|
+
?model_type: :grouped_with_min_max_thresholds
|
|
3232
|
+
) -> void
|
|
3233
|
+
|
|
3234
|
+
def to_hash: -> {
|
|
3235
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3236
|
+
grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3237
|
+
item_id: String,
|
|
3238
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
3239
|
+
name: String,
|
|
3240
|
+
billable_metric_id: String?,
|
|
3241
|
+
billed_in_advance: bool?,
|
|
3242
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3243
|
+
conversion_rate: Float?,
|
|
3244
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3245
|
+
currency: String?,
|
|
3246
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3247
|
+
external_price_id: String?,
|
|
3248
|
+
fixed_price_quantity: Float?,
|
|
3249
|
+
invoice_grouping_key: String?,
|
|
3250
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3251
|
+
license_type_id: String?,
|
|
3252
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3253
|
+
reference_id: String?
|
|
3254
|
+
}
|
|
1425
3255
|
|
|
1426
3256
|
type cadence =
|
|
1427
3257
|
:annual
|
|
@@ -1441,22 +3271,54 @@ module Orb
|
|
|
1441
3271
|
ONE_TIME: :one_time
|
|
1442
3272
|
CUSTOM: :custom
|
|
1443
3273
|
|
|
1444
|
-
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3274
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence]
|
|
3275
|
+
end
|
|
3276
|
+
|
|
3277
|
+
type grouped_with_min_max_thresholds_config =
|
|
3278
|
+
{
|
|
3279
|
+
grouping_key: String,
|
|
3280
|
+
maximum_charge: String,
|
|
3281
|
+
minimum_charge: String,
|
|
3282
|
+
per_unit_rate: String
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
3286
|
+
attr_accessor grouping_key: String
|
|
3287
|
+
|
|
3288
|
+
attr_accessor maximum_charge: String
|
|
3289
|
+
|
|
3290
|
+
attr_accessor minimum_charge: String
|
|
3291
|
+
|
|
3292
|
+
attr_accessor per_unit_rate: String
|
|
3293
|
+
|
|
3294
|
+
def initialize: (
|
|
3295
|
+
grouping_key: String,
|
|
3296
|
+
maximum_charge: String,
|
|
3297
|
+
minimum_charge: String,
|
|
3298
|
+
per_unit_rate: String
|
|
3299
|
+
) -> void
|
|
3300
|
+
|
|
3301
|
+
def to_hash: -> {
|
|
3302
|
+
grouping_key: String,
|
|
3303
|
+
maximum_charge: String,
|
|
3304
|
+
minimum_charge: String,
|
|
3305
|
+
per_unit_rate: String
|
|
3306
|
+
}
|
|
1445
3307
|
end
|
|
1446
3308
|
end
|
|
1447
3309
|
|
|
1448
|
-
type
|
|
3310
|
+
type cumulative_grouped_allocation =
|
|
1449
3311
|
{
|
|
1450
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3312
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3313
|
+
cumulative_grouped_allocation_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1451
3314
|
item_id: String,
|
|
1452
|
-
model_type: :
|
|
3315
|
+
model_type: :cumulative_grouped_allocation,
|
|
1453
3316
|
name: String,
|
|
1454
|
-
tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1455
3317
|
billable_metric_id: String?,
|
|
1456
3318
|
billed_in_advance: bool?,
|
|
1457
3319
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1458
3320
|
conversion_rate: Float?,
|
|
1459
|
-
conversion_rate_config: Orb::Models::
|
|
3321
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1460
3322
|
currency: String?,
|
|
1461
3323
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1462
3324
|
external_price_id: String?,
|
|
@@ -1468,17 +3330,17 @@ module Orb
|
|
|
1468
3330
|
reference_id: String?
|
|
1469
3331
|
}
|
|
1470
3332
|
|
|
1471
|
-
class
|
|
1472
|
-
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3333
|
+
class CumulativeGroupedAllocation < Orb::Internal::Type::BaseModel
|
|
3334
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence
|
|
3335
|
+
|
|
3336
|
+
attr_accessor cumulative_grouped_allocation_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
1473
3337
|
|
|
1474
3338
|
attr_accessor item_id: String
|
|
1475
3339
|
|
|
1476
|
-
attr_accessor model_type: :
|
|
3340
|
+
attr_accessor model_type: :cumulative_grouped_allocation
|
|
1477
3341
|
|
|
1478
3342
|
attr_accessor name: String
|
|
1479
3343
|
|
|
1480
|
-
attr_accessor tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
1481
|
-
|
|
1482
3344
|
attr_accessor billable_metric_id: String?
|
|
1483
3345
|
|
|
1484
3346
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1487,7 +3349,7 @@ module Orb
|
|
|
1487
3349
|
|
|
1488
3350
|
attr_accessor conversion_rate: Float?
|
|
1489
3351
|
|
|
1490
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3352
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1491
3353
|
|
|
1492
3354
|
attr_accessor currency: String?
|
|
1493
3355
|
|
|
@@ -1508,15 +3370,15 @@ module Orb
|
|
|
1508
3370
|
attr_accessor reference_id: String?
|
|
1509
3371
|
|
|
1510
3372
|
def initialize: (
|
|
1511
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3373
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3374
|
+
cumulative_grouped_allocation_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1512
3375
|
item_id: String,
|
|
1513
3376
|
name: String,
|
|
1514
|
-
tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1515
3377
|
?billable_metric_id: String?,
|
|
1516
3378
|
?billed_in_advance: bool?,
|
|
1517
3379
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1518
3380
|
?conversion_rate: Float?,
|
|
1519
|
-
?conversion_rate_config: Orb::Models::
|
|
3381
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1520
3382
|
?currency: String?,
|
|
1521
3383
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1522
3384
|
?external_price_id: String?,
|
|
@@ -1526,20 +3388,20 @@ module Orb
|
|
|
1526
3388
|
?license_type_id: String?,
|
|
1527
3389
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1528
3390
|
?reference_id: String?,
|
|
1529
|
-
?model_type: :
|
|
3391
|
+
?model_type: :cumulative_grouped_allocation
|
|
1530
3392
|
) -> void
|
|
1531
3393
|
|
|
1532
3394
|
def to_hash: -> {
|
|
1533
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3395
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3396
|
+
cumulative_grouped_allocation_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1534
3397
|
item_id: String,
|
|
1535
|
-
model_type: :
|
|
3398
|
+
model_type: :cumulative_grouped_allocation,
|
|
1536
3399
|
name: String,
|
|
1537
|
-
tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1538
3400
|
billable_metric_id: String?,
|
|
1539
3401
|
billed_in_advance: bool?,
|
|
1540
3402
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1541
3403
|
conversion_rate: Float?,
|
|
1542
|
-
conversion_rate_config: Orb::Models::
|
|
3404
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1543
3405
|
currency: String?,
|
|
1544
3406
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1545
3407
|
external_price_id: String?,
|
|
@@ -1569,57 +3431,54 @@ module Orb
|
|
|
1569
3431
|
ONE_TIME: :one_time
|
|
1570
3432
|
CUSTOM: :custom
|
|
1571
3433
|
|
|
1572
|
-
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3434
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence]
|
|
1573
3435
|
end
|
|
1574
3436
|
|
|
1575
|
-
type
|
|
3437
|
+
type cumulative_grouped_allocation_config =
|
|
1576
3438
|
{
|
|
1577
|
-
|
|
3439
|
+
cumulative_allocation: String,
|
|
3440
|
+
group_allocation: String,
|
|
3441
|
+
grouping_key: String,
|
|
3442
|
+
unit_amount: String
|
|
1578
3443
|
}
|
|
1579
3444
|
|
|
1580
|
-
class
|
|
1581
|
-
attr_accessor
|
|
3445
|
+
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
3446
|
+
attr_accessor cumulative_allocation: String
|
|
3447
|
+
|
|
3448
|
+
attr_accessor group_allocation: String
|
|
3449
|
+
|
|
3450
|
+
attr_accessor grouping_key: String
|
|
3451
|
+
|
|
3452
|
+
attr_accessor unit_amount: String
|
|
1582
3453
|
|
|
1583
3454
|
def initialize: (
|
|
1584
|
-
|
|
3455
|
+
cumulative_allocation: String,
|
|
3456
|
+
group_allocation: String,
|
|
3457
|
+
grouping_key: String,
|
|
3458
|
+
unit_amount: String
|
|
1585
3459
|
) -> void
|
|
1586
3460
|
|
|
1587
3461
|
def to_hash: -> {
|
|
1588
|
-
|
|
3462
|
+
cumulative_allocation: String,
|
|
3463
|
+
group_allocation: String,
|
|
3464
|
+
grouping_key: String,
|
|
3465
|
+
unit_amount: String
|
|
1589
3466
|
}
|
|
1590
|
-
|
|
1591
|
-
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1592
|
-
|
|
1593
|
-
class Tier < Orb::Internal::Type::BaseModel
|
|
1594
|
-
attr_accessor tier_lower_bound: String
|
|
1595
|
-
|
|
1596
|
-
attr_accessor unit_amount: String
|
|
1597
|
-
|
|
1598
|
-
def initialize: (
|
|
1599
|
-
tier_lower_bound: String,
|
|
1600
|
-
unit_amount: String
|
|
1601
|
-
) -> void
|
|
1602
|
-
|
|
1603
|
-
def to_hash: -> {
|
|
1604
|
-
tier_lower_bound: String,
|
|
1605
|
-
unit_amount: String
|
|
1606
|
-
}
|
|
1607
|
-
end
|
|
1608
3467
|
end
|
|
1609
3468
|
end
|
|
1610
3469
|
|
|
1611
|
-
type
|
|
3470
|
+
type daily_credit_allowance =
|
|
1612
3471
|
{
|
|
1613
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
1614
|
-
|
|
3472
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3473
|
+
daily_credit_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1615
3474
|
item_id: String,
|
|
1616
|
-
model_type: :
|
|
3475
|
+
model_type: :daily_credit_allowance,
|
|
1617
3476
|
name: String,
|
|
1618
3477
|
billable_metric_id: String?,
|
|
1619
3478
|
billed_in_advance: bool?,
|
|
1620
3479
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1621
3480
|
conversion_rate: Float?,
|
|
1622
|
-
conversion_rate_config: Orb::Models::
|
|
3481
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1623
3482
|
currency: String?,
|
|
1624
3483
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1625
3484
|
external_price_id: String?,
|
|
@@ -1631,14 +3490,14 @@ module Orb
|
|
|
1631
3490
|
reference_id: String?
|
|
1632
3491
|
}
|
|
1633
3492
|
|
|
1634
|
-
class
|
|
1635
|
-
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3493
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
3494
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence
|
|
1636
3495
|
|
|
1637
|
-
attr_accessor
|
|
3496
|
+
attr_accessor daily_credit_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
1638
3497
|
|
|
1639
3498
|
attr_accessor item_id: String
|
|
1640
3499
|
|
|
1641
|
-
attr_accessor model_type: :
|
|
3500
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
1642
3501
|
|
|
1643
3502
|
attr_accessor name: String
|
|
1644
3503
|
|
|
@@ -1650,7 +3509,7 @@ module Orb
|
|
|
1650
3509
|
|
|
1651
3510
|
attr_accessor conversion_rate: Float?
|
|
1652
3511
|
|
|
1653
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3512
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1654
3513
|
|
|
1655
3514
|
attr_accessor currency: String?
|
|
1656
3515
|
|
|
@@ -1671,15 +3530,15 @@ module Orb
|
|
|
1671
3530
|
attr_accessor reference_id: String?
|
|
1672
3531
|
|
|
1673
3532
|
def initialize: (
|
|
1674
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
1675
|
-
|
|
3533
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3534
|
+
daily_credit_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1676
3535
|
item_id: String,
|
|
1677
3536
|
name: String,
|
|
1678
3537
|
?billable_metric_id: String?,
|
|
1679
3538
|
?billed_in_advance: bool?,
|
|
1680
3539
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1681
3540
|
?conversion_rate: Float?,
|
|
1682
|
-
?conversion_rate_config: Orb::Models::
|
|
3541
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1683
3542
|
?currency: String?,
|
|
1684
3543
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1685
3544
|
?external_price_id: String?,
|
|
@@ -1689,20 +3548,20 @@ module Orb
|
|
|
1689
3548
|
?license_type_id: String?,
|
|
1690
3549
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1691
3550
|
?reference_id: String?,
|
|
1692
|
-
?model_type: :
|
|
3551
|
+
?model_type: :daily_credit_allowance
|
|
1693
3552
|
) -> void
|
|
1694
3553
|
|
|
1695
3554
|
def to_hash: -> {
|
|
1696
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
1697
|
-
|
|
3555
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3556
|
+
daily_credit_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1698
3557
|
item_id: String,
|
|
1699
|
-
model_type: :
|
|
3558
|
+
model_type: :daily_credit_allowance,
|
|
1700
3559
|
name: String,
|
|
1701
3560
|
billable_metric_id: String?,
|
|
1702
3561
|
billed_in_advance: bool?,
|
|
1703
3562
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1704
3563
|
conversion_rate: Float?,
|
|
1705
|
-
conversion_rate_config: Orb::Models::
|
|
3564
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1706
3565
|
currency: String?,
|
|
1707
3566
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1708
3567
|
external_price_id: String?,
|
|
@@ -1732,54 +3591,78 @@ module Orb
|
|
|
1732
3591
|
ONE_TIME: :one_time
|
|
1733
3592
|
CUSTOM: :custom
|
|
1734
3593
|
|
|
1735
|
-
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3594
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::cadence]
|
|
1736
3595
|
end
|
|
1737
3596
|
|
|
1738
|
-
type
|
|
3597
|
+
type daily_credit_allowance_config =
|
|
1739
3598
|
{
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
3599
|
+
daily_allowance: String,
|
|
3600
|
+
default_unit_amount: String,
|
|
3601
|
+
dimensions: ::Array[String?],
|
|
3602
|
+
event_day_property: String,
|
|
3603
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1744
3604
|
}
|
|
1745
3605
|
|
|
1746
|
-
class
|
|
1747
|
-
attr_accessor
|
|
3606
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3607
|
+
attr_accessor daily_allowance: String
|
|
1748
3608
|
|
|
1749
|
-
attr_accessor
|
|
3609
|
+
attr_accessor default_unit_amount: String
|
|
1750
3610
|
|
|
1751
|
-
attr_accessor
|
|
3611
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1752
3612
|
|
|
1753
|
-
attr_accessor
|
|
3613
|
+
attr_accessor event_day_property: String
|
|
3614
|
+
|
|
3615
|
+
attr_accessor matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1754
3616
|
|
|
1755
3617
|
def initialize: (
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
3618
|
+
daily_allowance: String,
|
|
3619
|
+
default_unit_amount: String,
|
|
3620
|
+
dimensions: ::Array[String?],
|
|
3621
|
+
event_day_property: String,
|
|
3622
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1760
3623
|
) -> void
|
|
1761
3624
|
|
|
1762
3625
|
def to_hash: -> {
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
3626
|
+
daily_allowance: String,
|
|
3627
|
+
default_unit_amount: String,
|
|
3628
|
+
dimensions: ::Array[String?],
|
|
3629
|
+
event_day_property: String,
|
|
3630
|
+
matrix_values: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1767
3631
|
}
|
|
3632
|
+
|
|
3633
|
+
type matrix_value =
|
|
3634
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
3635
|
+
|
|
3636
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
3637
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
3638
|
+
|
|
3639
|
+
attr_accessor unit_amount: String
|
|
3640
|
+
|
|
3641
|
+
def initialize: (
|
|
3642
|
+
dimension_values: ::Array[String?],
|
|
3643
|
+
unit_amount: String
|
|
3644
|
+
) -> void
|
|
3645
|
+
|
|
3646
|
+
def to_hash: -> {
|
|
3647
|
+
dimension_values: ::Array[String?],
|
|
3648
|
+
unit_amount: String
|
|
3649
|
+
}
|
|
3650
|
+
end
|
|
1768
3651
|
end
|
|
1769
3652
|
end
|
|
1770
3653
|
|
|
1771
|
-
type
|
|
3654
|
+
type metered_allowance =
|
|
1772
3655
|
{
|
|
1773
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
1774
|
-
cumulative_grouped_allocation_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3656
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1775
3657
|
item_id: String,
|
|
1776
|
-
|
|
3658
|
+
metered_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3659
|
+
model_type: :metered_allowance,
|
|
1777
3660
|
name: String,
|
|
1778
3661
|
billable_metric_id: String?,
|
|
1779
3662
|
billed_in_advance: bool?,
|
|
1780
3663
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1781
3664
|
conversion_rate: Float?,
|
|
1782
|
-
conversion_rate_config: Orb::Models::
|
|
3665
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1783
3666
|
currency: String?,
|
|
1784
3667
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1785
3668
|
external_price_id: String?,
|
|
@@ -1791,14 +3674,14 @@ module Orb
|
|
|
1791
3674
|
reference_id: String?
|
|
1792
3675
|
}
|
|
1793
3676
|
|
|
1794
|
-
class
|
|
1795
|
-
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
1796
|
-
|
|
1797
|
-
attr_accessor cumulative_grouped_allocation_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
3677
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
3678
|
+
attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence
|
|
1798
3679
|
|
|
1799
3680
|
attr_accessor item_id: String
|
|
1800
3681
|
|
|
1801
|
-
attr_accessor
|
|
3682
|
+
attr_accessor metered_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
3683
|
+
|
|
3684
|
+
attr_accessor model_type: :metered_allowance
|
|
1802
3685
|
|
|
1803
3686
|
attr_accessor name: String
|
|
1804
3687
|
|
|
@@ -1810,7 +3693,7 @@ module Orb
|
|
|
1810
3693
|
|
|
1811
3694
|
attr_accessor conversion_rate: Float?
|
|
1812
3695
|
|
|
1813
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3696
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1814
3697
|
|
|
1815
3698
|
attr_accessor currency: String?
|
|
1816
3699
|
|
|
@@ -1831,15 +3714,15 @@ module Orb
|
|
|
1831
3714
|
attr_accessor reference_id: String?
|
|
1832
3715
|
|
|
1833
3716
|
def initialize: (
|
|
1834
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
1835
|
-
cumulative_grouped_allocation_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3717
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1836
3718
|
item_id: String,
|
|
3719
|
+
metered_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1837
3720
|
name: String,
|
|
1838
3721
|
?billable_metric_id: String?,
|
|
1839
3722
|
?billed_in_advance: bool?,
|
|
1840
3723
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1841
3724
|
?conversion_rate: Float?,
|
|
1842
|
-
?conversion_rate_config: Orb::Models::
|
|
3725
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1843
3726
|
?currency: String?,
|
|
1844
3727
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1845
3728
|
?external_price_id: String?,
|
|
@@ -1849,20 +3732,20 @@ module Orb
|
|
|
1849
3732
|
?license_type_id: String?,
|
|
1850
3733
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1851
3734
|
?reference_id: String?,
|
|
1852
|
-
?model_type: :
|
|
3735
|
+
?model_type: :metered_allowance
|
|
1853
3736
|
) -> void
|
|
1854
3737
|
|
|
1855
3738
|
def to_hash: -> {
|
|
1856
|
-
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
1857
|
-
cumulative_grouped_allocation_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3739
|
+
cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1858
3740
|
item_id: String,
|
|
1859
|
-
|
|
3741
|
+
metered_allowance_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3742
|
+
model_type: :metered_allowance,
|
|
1860
3743
|
name: String,
|
|
1861
3744
|
billable_metric_id: String?,
|
|
1862
3745
|
billed_in_advance: bool?,
|
|
1863
3746
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1864
3747
|
conversion_rate: Float?,
|
|
1865
|
-
conversion_rate_config: Orb::Models::
|
|
3748
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1866
3749
|
currency: String?,
|
|
1867
3750
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1868
3751
|
external_price_id: String?,
|
|
@@ -1892,38 +3775,52 @@ module Orb
|
|
|
1892
3775
|
ONE_TIME: :one_time
|
|
1893
3776
|
CUSTOM: :custom
|
|
1894
3777
|
|
|
1895
|
-
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::
|
|
3778
|
+
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::MeteredAllowance::cadence]
|
|
1896
3779
|
end
|
|
1897
3780
|
|
|
1898
|
-
type
|
|
3781
|
+
type metered_allowance_config =
|
|
1899
3782
|
{
|
|
1900
|
-
|
|
1901
|
-
|
|
3783
|
+
allowance_grouping_value: String,
|
|
3784
|
+
consumption_grouping_value: String,
|
|
1902
3785
|
grouping_key: String,
|
|
1903
|
-
unit_amount: String
|
|
3786
|
+
unit_amount: String,
|
|
3787
|
+
allowance_display_name: String,
|
|
3788
|
+
consumption_display_name: String
|
|
1904
3789
|
}
|
|
1905
3790
|
|
|
1906
|
-
class
|
|
1907
|
-
attr_accessor
|
|
3791
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3792
|
+
attr_accessor allowance_grouping_value: String
|
|
1908
3793
|
|
|
1909
|
-
attr_accessor
|
|
3794
|
+
attr_accessor consumption_grouping_value: String
|
|
1910
3795
|
|
|
1911
3796
|
attr_accessor grouping_key: String
|
|
1912
3797
|
|
|
1913
3798
|
attr_accessor unit_amount: String
|
|
1914
3799
|
|
|
3800
|
+
attr_reader allowance_display_name: String?
|
|
3801
|
+
|
|
3802
|
+
def allowance_display_name=: (String) -> String
|
|
3803
|
+
|
|
3804
|
+
attr_reader consumption_display_name: String?
|
|
3805
|
+
|
|
3806
|
+
def consumption_display_name=: (String) -> String
|
|
3807
|
+
|
|
1915
3808
|
def initialize: (
|
|
1916
|
-
|
|
1917
|
-
|
|
3809
|
+
allowance_grouping_value: String,
|
|
3810
|
+
consumption_grouping_value: String,
|
|
1918
3811
|
grouping_key: String,
|
|
1919
|
-
unit_amount: String
|
|
3812
|
+
unit_amount: String,
|
|
3813
|
+
?allowance_display_name: String,
|
|
3814
|
+
?consumption_display_name: String
|
|
1920
3815
|
) -> void
|
|
1921
3816
|
|
|
1922
3817
|
def to_hash: -> {
|
|
1923
|
-
|
|
1924
|
-
|
|
3818
|
+
allowance_grouping_value: String,
|
|
3819
|
+
consumption_grouping_value: String,
|
|
1925
3820
|
grouping_key: String,
|
|
1926
|
-
unit_amount: String
|
|
3821
|
+
unit_amount: String,
|
|
3822
|
+
allowance_display_name: String,
|
|
3823
|
+
consumption_display_name: String
|
|
1927
3824
|
}
|
|
1928
3825
|
end
|
|
1929
3826
|
end
|
|
@@ -1939,7 +3836,7 @@ module Orb
|
|
|
1939
3836
|
billed_in_advance: bool?,
|
|
1940
3837
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1941
3838
|
conversion_rate: Float?,
|
|
1942
|
-
conversion_rate_config: Orb::Models::
|
|
3839
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1943
3840
|
currency: String?,
|
|
1944
3841
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1945
3842
|
external_price_id: String?,
|
|
@@ -1970,7 +3867,7 @@ module Orb
|
|
|
1970
3867
|
|
|
1971
3868
|
attr_accessor conversion_rate: Float?
|
|
1972
3869
|
|
|
1973
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3870
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1974
3871
|
|
|
1975
3872
|
attr_accessor currency: String?
|
|
1976
3873
|
|
|
@@ -1999,7 +3896,7 @@ module Orb
|
|
|
1999
3896
|
?billed_in_advance: bool?,
|
|
2000
3897
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2001
3898
|
?conversion_rate: Float?,
|
|
2002
|
-
?conversion_rate_config: Orb::Models::
|
|
3899
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2003
3900
|
?currency: String?,
|
|
2004
3901
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2005
3902
|
?external_price_id: String?,
|
|
@@ -2022,7 +3919,7 @@ module Orb
|
|
|
2022
3919
|
billed_in_advance: bool?,
|
|
2023
3920
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2024
3921
|
conversion_rate: Float?,
|
|
2025
|
-
conversion_rate_config: Orb::Models::
|
|
3922
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2026
3923
|
currency: String?,
|
|
2027
3924
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2028
3925
|
external_price_id: String?,
|
|
@@ -2055,14 +3952,38 @@ module Orb
|
|
|
2055
3952
|
def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Percent::cadence]
|
|
2056
3953
|
end
|
|
2057
3954
|
|
|
2058
|
-
type percent_config =
|
|
3955
|
+
type percent_config =
|
|
3956
|
+
{
|
|
3957
|
+
percent: Float,
|
|
3958
|
+
maximum_amount: String?,
|
|
3959
|
+
minimum_amount: String?,
|
|
3960
|
+
prorated: bool
|
|
3961
|
+
}
|
|
2059
3962
|
|
|
2060
3963
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
2061
3964
|
attr_accessor percent: Float
|
|
2062
3965
|
|
|
2063
|
-
|
|
3966
|
+
attr_accessor maximum_amount: String?
|
|
2064
3967
|
|
|
2065
|
-
|
|
3968
|
+
attr_accessor minimum_amount: String?
|
|
3969
|
+
|
|
3970
|
+
attr_reader prorated: bool?
|
|
3971
|
+
|
|
3972
|
+
def prorated=: (bool) -> bool
|
|
3973
|
+
|
|
3974
|
+
def initialize: (
|
|
3975
|
+
percent: Float,
|
|
3976
|
+
?maximum_amount: String?,
|
|
3977
|
+
?minimum_amount: String?,
|
|
3978
|
+
?prorated: bool
|
|
3979
|
+
) -> void
|
|
3980
|
+
|
|
3981
|
+
def to_hash: -> {
|
|
3982
|
+
percent: Float,
|
|
3983
|
+
maximum_amount: String?,
|
|
3984
|
+
minimum_amount: String?,
|
|
3985
|
+
prorated: bool
|
|
3986
|
+
}
|
|
2066
3987
|
end
|
|
2067
3988
|
end
|
|
2068
3989
|
|
|
@@ -2077,7 +3998,7 @@ module Orb
|
|
|
2077
3998
|
billed_in_advance: bool?,
|
|
2078
3999
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2079
4000
|
conversion_rate: Float?,
|
|
2080
|
-
conversion_rate_config: Orb::Models::
|
|
4001
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2081
4002
|
currency: String?,
|
|
2082
4003
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2083
4004
|
external_price_id: String?,
|
|
@@ -2108,7 +4029,7 @@ module Orb
|
|
|
2108
4029
|
|
|
2109
4030
|
attr_accessor conversion_rate: Float?
|
|
2110
4031
|
|
|
2111
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
4032
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2112
4033
|
|
|
2113
4034
|
attr_accessor currency: String?
|
|
2114
4035
|
|
|
@@ -2137,7 +4058,7 @@ module Orb
|
|
|
2137
4058
|
?billed_in_advance: bool?,
|
|
2138
4059
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2139
4060
|
?conversion_rate: Float?,
|
|
2140
|
-
?conversion_rate_config: Orb::Models::
|
|
4061
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2141
4062
|
?currency: String?,
|
|
2142
4063
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2143
4064
|
?external_price_id: String?,
|
|
@@ -2160,7 +4081,7 @@ module Orb
|
|
|
2160
4081
|
billed_in_advance: bool?,
|
|
2161
4082
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2162
4083
|
conversion_rate: Float?,
|
|
2163
|
-
conversion_rate_config: Orb::Models::
|
|
4084
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2164
4085
|
currency: String?,
|
|
2165
4086
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2166
4087
|
external_price_id: String?,
|