orb-billing 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +55 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +21 -0
- data/lib/orb/internal/transport/base_client.rb +5 -0
- data/lib/orb/internal/type/union.rb +13 -27
- data/lib/orb/internal/util.rb +22 -7
- data/lib/orb/models/accounting_provider_config.rb +14 -3
- data/lib/orb/models/adjustment_interval.rb +185 -3
- data/lib/orb/models/alert.rb +114 -1
- data/lib/orb/models/alert_create_for_customer_params.rb +8 -1
- data/lib/orb/models/alert_create_for_external_customer_params.rb +8 -1
- data/lib/orb/models/alert_create_for_subscription_params.rb +142 -1
- data/lib/orb/models/alert_disable_params.rb +8 -1
- data/lib/orb/models/alert_enable_params.rb +8 -1
- data/lib/orb/models/alert_retrieve_params.rb +7 -1
- data/lib/orb/models/alert_update_params.rb +120 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +3296 -631
- data/lib/orb/models/beta/external_plan_id_fetch_plan_version_params.rb +7 -1
- data/lib/orb/models/beta/external_plan_id_set_default_plan_version_params.rb +8 -1
- data/lib/orb/models/beta_create_plan_version_params.rb +3263 -622
- data/lib/orb/models/beta_fetch_plan_version_params.rb +7 -1
- data/lib/orb/models/beta_set_default_plan_version_params.rb +8 -1
- data/lib/orb/models/changed_subscription_resources.rb +200 -10
- data/lib/orb/models/conversion_rate_config.rb +18 -0
- data/lib/orb/models/coupon_archive_params.rb +7 -1
- data/lib/orb/models/coupon_fetch_params.rb +7 -1
- data/lib/orb/models/coupons/subscription_list_params.rb +8 -1
- data/lib/orb/models/credit_block_delete_params.rb +7 -1
- data/lib/orb/models/credit_block_list_invoices_params.rb +7 -1
- data/lib/orb/models/credit_block_list_invoices_response.rb +155 -1
- data/lib/orb/models/credit_block_retrieve_params.rb +7 -1
- data/lib/orb/models/credit_block_retrieve_response.rb +150 -1
- data/lib/orb/models/credit_note_fetch_params.rb +7 -1
- data/lib/orb/models/customer.rb +122 -3
- data/lib/orb/models/customer_create_params.rb +17 -1
- data/lib/orb/models/customer_delete_params.rb +7 -1
- data/lib/orb/models/customer_fetch_by_external_id_params.rb +7 -1
- data/lib/orb/models/customer_fetch_params.rb +7 -1
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +7 -1
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +7 -1
- data/lib/orb/models/customer_tax_id.rb +15 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +39 -5
- data/lib/orb/models/customer_update_params.rb +39 -5
- data/lib/orb/models/customers/balance_transaction_create_params.rb +8 -1
- data/lib/orb/models/customers/balance_transaction_list_params.rb +8 -1
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/cost_list_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +155 -1
- data/lib/orb/models/customers/credit_list_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_response.rb +152 -1
- data/lib/orb/models/customers/credits/decrement_ledger_entry.rb +5 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +582 -315
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +580 -313
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_create_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +7 -1
- data/lib/orb/models/customers/credits/top_up_delete_params.rb +7 -1
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_list_params.rb +8 -1
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/dimensional_price_group_retrieve_params.rb +7 -1
- data/lib/orb/models/dimensional_price_group_update_params.rb +8 -1
- data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +7 -1
- data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rb +8 -1
- data/lib/orb/models/discount.rb +145 -1
- data/lib/orb/models/event_deprecate_params.rb +7 -1
- data/lib/orb/models/event_ingest_params.rb +5 -2
- data/lib/orb/models/event_update_params.rb +8 -1
- data/lib/orb/models/events/backfill_close_params.rb +7 -1
- data/lib/orb/models/events/backfill_fetch_params.rb +7 -1
- data/lib/orb/models/events/backfill_revert_params.rb +7 -1
- data/lib/orb/models/invoice.rb +198 -10
- data/lib/orb/models/invoice_create_params.rb +6 -5
- data/lib/orb/models/invoice_delete_line_item_params.rb +7 -1
- data/lib/orb/models/invoice_fetch_params.rb +7 -1
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +200 -10
- data/lib/orb/models/invoice_issue_params.rb +8 -1
- data/lib/orb/models/invoice_issue_summary_params.rb +8 -1
- data/lib/orb/models/invoice_issue_summary_response.rb +9 -3
- data/lib/orb/models/invoice_level_discount.rb +145 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +189 -5
- data/lib/orb/models/invoice_list_summary_response.rb +9 -3
- data/lib/orb/models/invoice_mark_paid_params.rb +8 -1
- data/lib/orb/models/invoice_pay_params.rb +16 -1
- data/lib/orb/models/invoice_update_params.rb +8 -1
- data/lib/orb/models/invoice_void_params.rb +7 -1
- data/lib/orb/models/item_archive_params.rb +7 -1
- data/lib/orb/models/item_fetch_params.rb +7 -1
- data/lib/orb/models/item_update_params.rb +8 -1
- data/lib/orb/models/license_deactivate_params.rb +8 -1
- data/lib/orb/models/license_retrieve_by_external_id_params.rb +8 -1
- data/lib/orb/models/license_retrieve_params.rb +7 -1
- data/lib/orb/models/license_type_retrieve_params.rb +7 -1
- data/lib/orb/models/licenses/external_license_get_usage_params.rb +11 -4
- data/lib/orb/models/licenses/usage_get_all_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_usage_params.rb +11 -4
- data/lib/orb/models/metric_fetch_params.rb +7 -1
- data/lib/orb/models/metric_update_params.rb +8 -1
- data/lib/orb/models/mutated_subscription.rb +169 -4
- data/lib/orb/models/new_allocation_price.rb +11 -1
- data/lib/orb/models/new_floating_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_floating_package_price.rb +1 -3
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_bulk_price.rb +1 -1
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_price.rb +1 -5
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_plan_package_price.rb +1 -5
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_price.rb +1 -5
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_price.rb +1 -1
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +189 -9
- data/lib/orb/models/plan_create_params.rb +1478 -158
- data/lib/orb/models/plan_fetch_params.rb +7 -1
- data/lib/orb/models/plan_update_params.rb +16 -1
- data/lib/orb/models/plan_version.rb +186 -5
- data/lib/orb/models/plans/external_plan_id_fetch_params.rb +7 -1
- data/lib/orb/models/plans/external_plan_id_update_params.rb +16 -1
- data/lib/orb/models/plans/migration_cancel_params.rb +7 -1
- data/lib/orb/models/plans/migration_cancel_response.rb +22 -4
- data/lib/orb/models/plans/migration_list_params.rb +8 -1
- data/lib/orb/models/plans/migration_list_response.rb +22 -4
- data/lib/orb/models/plans/migration_retrieve_params.rb +7 -1
- data/lib/orb/models/plans/migration_retrieve_response.rb +22 -4
- data/lib/orb/models/price.rb +2807 -1244
- data/lib/orb/models/price_create_params.rb +1800 -1355
- data/lib/orb/models/price_evaluate_multiple_params.rb +889 -54
- data/lib/orb/models/price_evaluate_params.rb +8 -1
- data/lib/orb/models/price_evaluate_preview_events_params.rb +881 -46
- data/lib/orb/models/price_fetch_params.rb +7 -1
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/price_update_params.rb +8 -1
- data/lib/orb/models/prices/external_price_id_fetch_params.rb +7 -1
- data/lib/orb/models/prices/external_price_id_update_params.rb +8 -1
- data/lib/orb/models/subscription.rb +168 -4
- data/lib/orb/models/subscription_cancel_params.rb +8 -1
- data/lib/orb/models/subscription_change_apply_params.rb +8 -1
- data/lib/orb/models/subscription_change_cancel_params.rb +7 -1
- data/lib/orb/models/subscription_change_retrieve_params.rb +7 -1
- data/lib/orb/models/subscription_create_params.rb +2818 -674
- data/lib/orb/models/subscription_fetch_costs_params.rb +8 -1
- data/lib/orb/models/subscription_fetch_params.rb +7 -1
- data/lib/orb/models/subscription_fetch_schedule_params.rb +8 -1
- data/lib/orb/models/subscription_fetch_usage_params.rb +8 -1
- data/lib/orb/models/subscription_price_intervals_params.rb +1103 -55
- data/lib/orb/models/subscription_redeem_coupon_params.rb +8 -1
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +2839 -685
- data/lib/orb/models/subscription_trigger_phase_params.rb +8 -1
- data/lib/orb/models/subscription_unschedule_cancellation_params.rb +7 -1
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +8 -1
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +7 -1
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +8 -1
- data/lib/orb/models/subscription_update_params.rb +19 -1
- data/lib/orb/models/subscription_update_trial_params.rb +8 -1
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/alerts.rb +20 -2
- data/lib/orb/resources/coupons.rb +1 -2
- data/lib/orb/resources/credit_blocks.rb +11 -8
- data/lib/orb/resources/customers/credits/ledger.rb +40 -81
- data/lib/orb/resources/customers.rb +12 -7
- data/lib/orb/resources/events/backfills.rb +3 -4
- data/lib/orb/resources/events.rb +7 -34
- data/lib/orb/resources/invoices.rb +18 -7
- data/lib/orb/resources/licenses/external_licenses.rb +1 -1
- data/lib/orb/resources/licenses/usage.rb +2 -2
- data/lib/orb/resources/metrics.rb +5 -5
- data/lib/orb/resources/plans/external_plan_id.rb +5 -3
- data/lib/orb/resources/plans.rb +9 -5
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +13 -104
- data/lib/orb/resources/subscriptions.rb +24 -7
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -0
- data/rbi/orb/client.rbi +6 -0
- data/rbi/orb/internal/util.rbi +8 -0
- data/rbi/orb/models/accounting_provider_config.rbi +38 -5
- data/rbi/orb/models/adjustment_interval.rbi +336 -0
- data/rbi/orb/models/alert.rbi +182 -3
- data/rbi/orb/models/alert_create_for_customer_params.rbi +6 -0
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +6 -0
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +285 -0
- data/rbi/orb/models/alert_disable_params.rbi +6 -0
- data/rbi/orb/models/alert_enable_params.rbi +6 -0
- data/rbi/orb/models/alert_retrieve_params.rbi +13 -5
- data/rbi/orb/models/alert_update_params.rbi +214 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +5873 -1161
- data/rbi/orb/models/beta/external_plan_id_fetch_plan_version_params.rbi +10 -2
- data/rbi/orb/models/beta/external_plan_id_set_default_plan_version_params.rbi +10 -1
- data/rbi/orb/models/beta_create_plan_version_params.rbi +5877 -1165
- data/rbi/orb/models/beta_fetch_plan_version_params.rbi +10 -2
- data/rbi/orb/models/beta_set_default_plan_version_params.rbi +10 -1
- data/rbi/orb/models/changed_subscription_resources.rbi +360 -5
- data/rbi/orb/models/conversion_rate_config.rbi +18 -0
- data/rbi/orb/models/coupon_archive_params.rbi +13 -5
- data/rbi/orb/models/coupon_fetch_params.rbi +13 -5
- data/rbi/orb/models/coupons/subscription_list_params.rbi +6 -0
- data/rbi/orb/models/credit_block_delete_params.rbi +13 -5
- data/rbi/orb/models/credit_block_list_invoices_params.rbi +13 -5
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +346 -3
- data/rbi/orb/models/credit_block_retrieve_params.rbi +13 -5
- data/rbi/orb/models/credit_block_retrieve_response.rbi +344 -3
- data/rbi/orb/models/credit_note_fetch_params.rbi +13 -5
- data/rbi/orb/models/customer.rbi +202 -0
- data/rbi/orb/models/customer_create_params.rbi +27 -0
- data/rbi/orb/models/customer_delete_params.rbi +13 -5
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +13 -5
- data/rbi/orb/models/customer_fetch_params.rbi +13 -5
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +13 -5
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +13 -5
- data/rbi/orb/models/customer_tax_id.rbi +15 -1
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +51 -4
- data/rbi/orb/models/customer_update_params.rbi +51 -4
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +6 -0
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +6 -0
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/cost_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +346 -3
- data/rbi/orb/models/customers/credit_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_response.rbi +347 -3
- data/rbi/orb/models/customers/credits/decrement_ledger_entry.rbi +4 -0
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +861 -478
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +861 -478
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +6 -1
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +10 -2
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +6 -0
- data/rbi/orb/models/dimensional_price_group.rbi +1 -1
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +16 -5
- data/rbi/orb/models/dimensional_price_group_update_params.rbi +6 -0
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +16 -5
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rbi +6 -0
- data/rbi/orb/models/discount.rbi +269 -1
- data/rbi/orb/models/event_deprecate_params.rbi +13 -5
- data/rbi/orb/models/event_ingest_params.rbi +4 -2
- data/rbi/orb/models/event_update_params.rbi +6 -0
- data/rbi/orb/models/events/backfill_close_params.rbi +13 -5
- data/rbi/orb/models/events/backfill_fetch_params.rbi +13 -5
- data/rbi/orb/models/events/backfill_revert_params.rbi +13 -5
- data/rbi/orb/models/invoice.rbi +360 -5
- data/rbi/orb/models/invoice_create_params.rbi +12 -7
- data/rbi/orb/models/invoice_delete_line_item_params.rbi +10 -2
- data/rbi/orb/models/invoice_fetch_params.rbi +13 -5
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +360 -5
- data/rbi/orb/models/invoice_issue_params.rbi +10 -1
- data/rbi/orb/models/invoice_issue_summary_params.rbi +10 -1
- data/rbi/orb/models/invoice_issue_summary_response.rbi +19 -4
- data/rbi/orb/models/invoice_level_discount.rbi +298 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +339 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +19 -4
- data/rbi/orb/models/invoice_mark_paid_params.rbi +6 -0
- data/rbi/orb/models/invoice_pay_params.rbi +27 -5
- data/rbi/orb/models/invoice_update_params.rbi +6 -0
- data/rbi/orb/models/invoice_void_params.rbi +13 -5
- data/rbi/orb/models/item_archive_params.rbi +13 -5
- data/rbi/orb/models/item_fetch_params.rbi +13 -5
- data/rbi/orb/models/item_update_params.rbi +6 -0
- data/rbi/orb/models/license_deactivate_params.rbi +10 -1
- data/rbi/orb/models/license_retrieve_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/license_retrieve_params.rbi +13 -5
- data/rbi/orb/models/license_type_retrieve_params.rbi +13 -5
- data/rbi/orb/models/licenses/external_license_get_usage_params.rbi +9 -3
- data/rbi/orb/models/licenses/usage_get_all_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_usage_params.rbi +9 -3
- data/rbi/orb/models/metric_fetch_params.rbi +13 -5
- data/rbi/orb/models/metric_update_params.rbi +6 -0
- data/rbi/orb/models/mutated_subscription.rbi +324 -2
- data/rbi/orb/models/new_allocation_price.rbi +12 -0
- data/rbi/orb/models/per_price_cost.rbi +3 -0
- data/rbi/orb/models/plan.rbi +339 -2
- data/rbi/orb/models/plan_create_params.rbi +2566 -209
- data/rbi/orb/models/plan_fetch_params.rbi +13 -5
- data/rbi/orb/models/plan_update_params.rbi +14 -0
- data/rbi/orb/models/plan_version.rbi +339 -0
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +13 -5
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +14 -0
- data/rbi/orb/models/plans/migration_cancel_params.rbi +10 -2
- data/rbi/orb/models/plans/migration_cancel_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_list_params.rbi +6 -0
- data/rbi/orb/models/plans/migration_list_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_retrieve_params.rbi +10 -2
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +22 -1
- data/rbi/orb/models/price.rbi +4733 -2280
- data/rbi/orb/models/price_create_params.rbi +3022 -2408
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_params.rbi +6 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +1540 -114
- data/rbi/orb/models/price_fetch_params.rbi +13 -5
- data/rbi/orb/models/price_interval.rbi +3 -0
- data/rbi/orb/models/price_update_params.rbi +6 -0
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +13 -5
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +6 -0
- data/rbi/orb/models/subscription.rbi +324 -2
- data/rbi/orb/models/subscription_cancel_params.rbi +6 -0
- data/rbi/orb/models/subscription_change_apply_params.rbi +6 -0
- data/rbi/orb/models/subscription_change_cancel_params.rbi +16 -5
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +16 -5
- data/rbi/orb/models/subscription_create_params.rbi +4998 -1186
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +6 -0
- data/rbi/orb/models/subscription_fetch_params.rbi +13 -5
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +6 -0
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +6 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2133 -264
- data/rbi/orb/models/subscription_redeem_coupon_params.rbi +6 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +5001 -1183
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +6 -0
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +13 -5
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +10 -1
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +13 -5
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +6 -0
- data/rbi/orb/models/subscription_update_params.rbi +20 -0
- data/rbi/orb/models/subscription_update_trial_params.rbi +6 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/alerts.rbi +43 -0
- data/rbi/orb/resources/coupons.rbi +1 -2
- data/rbi/orb/resources/credit_blocks.rbi +10 -7
- data/rbi/orb/resources/customers/credits/ledger.rbi +50 -146
- data/rbi/orb/resources/customers.rbi +35 -7
- data/rbi/orb/resources/events/backfills.rbi +3 -4
- data/rbi/orb/resources/events.rbi +8 -35
- data/rbi/orb/resources/invoices.rbi +20 -6
- data/rbi/orb/resources/licenses/external_licenses.rbi +1 -1
- data/rbi/orb/resources/licenses/usage.rbi +2 -2
- data/rbi/orb/resources/metrics.rbi +5 -5
- data/rbi/orb/resources/plans/external_plan_id.rbi +5 -2
- data/rbi/orb/resources/plans.rbi +9 -3
- data/rbi/orb/resources/prices.rbi +38 -184
- data/rbi/orb/resources/subscriptions.rbi +33 -4
- data/sig/orb/client.rbs +3 -0
- data/sig/orb/internal/util.rbs +4 -0
- data/sig/orb/models/accounting_provider_config.rbs +21 -4
- data/sig/orb/models/adjustment_interval.rbs +134 -0
- data/sig/orb/models/alert.rbs +90 -3
- data/sig/orb/models/alert_create_for_customer_params.rbs +5 -0
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +5 -0
- data/sig/orb/models/alert_create_for_subscription_params.rbs +98 -1
- data/sig/orb/models/alert_disable_params.rbs +6 -1
- data/sig/orb/models/alert_enable_params.rbs +6 -1
- data/sig/orb/models/alert_retrieve_params.rbs +9 -3
- data/sig/orb/models/alert_update_params.rbs +90 -1
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +2318 -397
- data/sig/orb/models/beta/external_plan_id_fetch_plan_version_params.rbs +6 -1
- data/sig/orb/models/beta/external_plan_id_set_default_plan_version_params.rbs +6 -1
- data/sig/orb/models/beta_create_plan_version_params.rbs +2300 -389
- data/sig/orb/models/beta_fetch_plan_version_params.rbs +10 -2
- data/sig/orb/models/beta_set_default_plan_version_params.rbs +10 -2
- data/sig/orb/models/changed_subscription_resources.rbs +140 -1
- data/sig/orb/models/conversion_rate_config.rbs +12 -0
- data/sig/orb/models/coupon_archive_params.rbs +12 -3
- data/sig/orb/models/coupon_fetch_params.rbs +12 -3
- data/sig/orb/models/coupons/subscription_list_params.rbs +5 -1
- data/sig/orb/models/credit_block_delete_params.rbs +8 -3
- data/sig/orb/models/credit_block_list_invoices_params.rbs +8 -3
- data/sig/orb/models/credit_block_list_invoices_response.rbs +124 -3
- data/sig/orb/models/credit_block_retrieve_params.rbs +8 -3
- data/sig/orb/models/credit_block_retrieve_response.rbs +124 -3
- data/sig/orb/models/credit_note_fetch_params.rbs +11 -3
- data/sig/orb/models/customer.rbs +79 -1
- data/sig/orb/models/customer_create_params.rbs +12 -1
- data/sig/orb/models/customer_delete_params.rbs +12 -3
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +11 -3
- data/sig/orb/models/customer_fetch_params.rbs +12 -3
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +11 -3
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +11 -3
- data/sig/orb/models/customer_tax_id.rbs +20 -2
- data/sig/orb/models/customer_update_by_external_id_params.rbs +22 -1
- data/sig/orb/models/customer_update_params.rbs +22 -1
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +5 -0
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +5 -0
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/cost_list_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +124 -3
- data/sig/orb/models/customers/credit_list_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_response.rbs +124 -3
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +345 -157
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +345 -157
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +5 -1
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +6 -1
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +5 -1
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +5 -1
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +12 -3
- data/sig/orb/models/dimensional_price_group_update_params.rbs +5 -0
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +12 -3
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rbs +5 -0
- data/sig/orb/models/discount.rbs +114 -0
- data/sig/orb/models/event_deprecate_params.rbs +9 -3
- data/sig/orb/models/event_update_params.rbs +5 -0
- data/sig/orb/models/events/backfill_close_params.rbs +11 -3
- data/sig/orb/models/events/backfill_fetch_params.rbs +11 -3
- data/sig/orb/models/events/backfill_revert_params.rbs +11 -3
- data/sig/orb/models/invoice.rbs +140 -1
- data/sig/orb/models/invoice_delete_line_item_params.rbs +6 -1
- data/sig/orb/models/invoice_fetch_params.rbs +12 -3
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +140 -1
- data/sig/orb/models/invoice_issue_params.rbs +6 -1
- data/sig/orb/models/invoice_issue_summary_params.rbs +6 -1
- data/sig/orb/models/invoice_issue_summary_response.rbs +2 -1
- data/sig/orb/models/invoice_level_discount.rbs +117 -1
- data/sig/orb/models/invoice_line_item_create_response.rbs +134 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +2 -1
- data/sig/orb/models/invoice_mark_paid_params.rbs +10 -1
- data/sig/orb/models/invoice_pay_params.rbs +17 -3
- data/sig/orb/models/invoice_update_params.rbs +5 -0
- data/sig/orb/models/invoice_void_params.rbs +12 -3
- data/sig/orb/models/item_archive_params.rbs +9 -3
- data/sig/orb/models/item_fetch_params.rbs +9 -3
- data/sig/orb/models/item_update_params.rbs +5 -0
- data/sig/orb/models/license_deactivate_params.rbs +10 -2
- data/sig/orb/models/license_retrieve_by_external_id_params.rbs +9 -1
- data/sig/orb/models/license_retrieve_params.rbs +11 -3
- data/sig/orb/models/license_type_retrieve_params.rbs +11 -3
- data/sig/orb/models/licenses/external_license_get_usage_params.rbs +9 -4
- data/sig/orb/models/licenses/usage_get_all_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_usage_params.rbs +9 -4
- data/sig/orb/models/metric_fetch_params.rbs +12 -3
- data/sig/orb/models/metric_update_params.rbs +5 -1
- data/sig/orb/models/mutated_subscription.rbs +124 -0
- data/sig/orb/models/new_allocation_price.rbs +5 -0
- data/sig/orb/models/new_floating_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/plan.rbs +134 -0
- data/sig/orb/models/plan_create_params.rbs +1030 -72
- data/sig/orb/models/plan_fetch_params.rbs +9 -3
- data/sig/orb/models/plan_update_params.rbs +14 -1
- data/sig/orb/models/plan_version.rbs +134 -0
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +11 -3
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +14 -1
- data/sig/orb/models/plans/migration_cancel_params.rbs +6 -1
- data/sig/orb/models/plans/migration_list_params.rbs +5 -1
- data/sig/orb/models/plans/migration_retrieve_params.rbs +6 -1
- data/sig/orb/models/price.rbs +2361 -1156
- data/sig/orb/models/price_create_params.rbs +1124 -931
- data/sig/orb/models/price_evaluate_multiple_params.rbs +626 -23
- data/sig/orb/models/price_evaluate_params.rbs +5 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +626 -23
- data/sig/orb/models/price_fetch_params.rbs +9 -3
- data/sig/orb/models/price_update_params.rbs +5 -1
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +11 -3
- data/sig/orb/models/prices/external_price_id_update_params.rbs +5 -1
- data/sig/orb/models/subscription.rbs +124 -0
- data/sig/orb/models/subscription_cancel_params.rbs +5 -0
- data/sig/orb/models/subscription_change_apply_params.rbs +5 -0
- data/sig/orb/models/subscription_change_cancel_params.rbs +12 -3
- data/sig/orb/models/subscription_change_retrieve_params.rbs +12 -3
- data/sig/orb/models/subscription_create_params.rbs +2009 -430
- data/sig/orb/models/subscription_fetch_costs_params.rbs +5 -0
- data/sig/orb/models/subscription_fetch_params.rbs +11 -3
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +5 -0
- data/sig/orb/models/subscription_fetch_usage_params.rbs +5 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +800 -23
- data/sig/orb/models/subscription_redeem_coupon_params.rbs +5 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2014 -430
- data/sig/orb/models/subscription_trigger_phase_params.rbs +9 -1
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +11 -3
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +10 -2
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +11 -3
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +5 -0
- data/sig/orb/models/subscription_update_params.rbs +10 -0
- data/sig/orb/models/subscription_update_trial_params.rbs +5 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/alerts.rbs +6 -0
- data/sig/orb/resources/customers/credits/ledger.rbs +2 -26
- data/sig/orb/resources/customers.rbs +2 -0
- data/sig/orb/resources/invoices.rbs +1 -0
- data/sig/orb/resources/licenses/external_licenses.rbs +1 -1
- data/sig/orb/resources/licenses/usage.rbs +2 -2
- data/sig/orb/resources/plans/external_plan_id.rbs +1 -0
- data/sig/orb/resources/plans.rbs +2 -0
- data/sig/orb/resources/prices.rbs +1 -48
- data/sig/orb/resources/subscriptions.rbs +3 -0
- metadata +6 -7
|
@@ -2,11 +2,13 @@ module Orb
|
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_schedule_plan_change_params =
|
|
4
4
|
{
|
|
5
|
+
subscription_id: String,
|
|
5
6
|
change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option,
|
|
6
7
|
add_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment]?,
|
|
7
8
|
add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?,
|
|
8
9
|
align_billing_with_plan_change_date: bool?,
|
|
9
10
|
auto_collection: bool?,
|
|
11
|
+
auto_issuance: bool?,
|
|
10
12
|
billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?,
|
|
11
13
|
billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
12
14
|
change_date: Time?,
|
|
@@ -35,6 +37,8 @@ module Orb
|
|
|
35
37
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
36
38
|
include Orb::Internal::Type::RequestParameters
|
|
37
39
|
|
|
40
|
+
attr_accessor subscription_id: String
|
|
41
|
+
|
|
38
42
|
attr_accessor change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option
|
|
39
43
|
|
|
40
44
|
attr_accessor add_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment]?
|
|
@@ -45,6 +49,8 @@ module Orb
|
|
|
45
49
|
|
|
46
50
|
attr_accessor auto_collection: bool?
|
|
47
51
|
|
|
52
|
+
attr_accessor auto_issuance: bool?
|
|
53
|
+
|
|
48
54
|
attr_accessor billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?
|
|
49
55
|
|
|
50
56
|
attr_accessor billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?
|
|
@@ -88,11 +94,13 @@ module Orb
|
|
|
88
94
|
attr_accessor usage_customer_ids: ::Array[String]?
|
|
89
95
|
|
|
90
96
|
def initialize: (
|
|
97
|
+
subscription_id: String,
|
|
91
98
|
change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option,
|
|
92
99
|
?add_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment]?,
|
|
93
100
|
?add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?,
|
|
94
101
|
?align_billing_with_plan_change_date: bool?,
|
|
95
102
|
?auto_collection: bool?,
|
|
103
|
+
?auto_issuance: bool?,
|
|
96
104
|
?billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?,
|
|
97
105
|
?billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
98
106
|
?change_date: Time?,
|
|
@@ -118,11 +126,13 @@ module Orb
|
|
|
118
126
|
) -> void
|
|
119
127
|
|
|
120
128
|
def to_hash: -> {
|
|
129
|
+
subscription_id: String,
|
|
121
130
|
change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option,
|
|
122
131
|
add_adjustments: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment]?,
|
|
123
132
|
add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?,
|
|
124
133
|
align_billing_with_plan_change_date: bool?,
|
|
125
134
|
auto_collection: bool?,
|
|
135
|
+
auto_issuance: bool?,
|
|
126
136
|
billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?,
|
|
127
137
|
billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
128
138
|
change_date: Time?,
|
|
@@ -197,10 +207,179 @@ module Orb
|
|
|
197
207
|
| Orb::NewAmountDiscount
|
|
198
208
|
| Orb::NewMinimum
|
|
199
209
|
| Orb::NewMaximum
|
|
210
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount
|
|
200
211
|
|
|
201
212
|
module Adjustment
|
|
202
213
|
extend Orb::Internal::Type::Union
|
|
203
214
|
|
|
215
|
+
type tiered_percentage_discount =
|
|
216
|
+
{
|
|
217
|
+
adjustment_type: :tiered_percentage_discount,
|
|
218
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
219
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
220
|
+
applies_to_item_ids: ::Array[String]?,
|
|
221
|
+
applies_to_price_ids: ::Array[String]?,
|
|
222
|
+
currency: String?,
|
|
223
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
224
|
+
is_invoice_level: bool,
|
|
225
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
229
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
230
|
+
|
|
231
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
232
|
+
|
|
233
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
234
|
+
|
|
235
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
236
|
+
|
|
237
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
238
|
+
|
|
239
|
+
attr_accessor currency: String?
|
|
240
|
+
|
|
241
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
242
|
+
|
|
243
|
+
attr_reader is_invoice_level: bool?
|
|
244
|
+
|
|
245
|
+
def is_invoice_level=: (bool) -> bool
|
|
246
|
+
|
|
247
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
248
|
+
|
|
249
|
+
def initialize: (
|
|
250
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
251
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
252
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
253
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
254
|
+
?currency: String?,
|
|
255
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
256
|
+
?is_invoice_level: bool,
|
|
257
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
258
|
+
?adjustment_type: :tiered_percentage_discount
|
|
259
|
+
) -> void
|
|
260
|
+
|
|
261
|
+
def to_hash: -> {
|
|
262
|
+
adjustment_type: :tiered_percentage_discount,
|
|
263
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
264
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
265
|
+
applies_to_item_ids: ::Array[String]?,
|
|
266
|
+
applies_to_price_ids: ::Array[String]?,
|
|
267
|
+
currency: String?,
|
|
268
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
269
|
+
is_invoice_level: bool,
|
|
270
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
type tier =
|
|
274
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
275
|
+
|
|
276
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
277
|
+
attr_accessor lower_bound: Float
|
|
278
|
+
|
|
279
|
+
attr_accessor percentage: Float
|
|
280
|
+
|
|
281
|
+
attr_accessor upper_bound: Float?
|
|
282
|
+
|
|
283
|
+
def initialize: (
|
|
284
|
+
lower_bound: Float,
|
|
285
|
+
percentage: Float,
|
|
286
|
+
?upper_bound: Float?
|
|
287
|
+
) -> void
|
|
288
|
+
|
|
289
|
+
def to_hash: -> {
|
|
290
|
+
lower_bound: Float,
|
|
291
|
+
percentage: Float,
|
|
292
|
+
upper_bound: Float?
|
|
293
|
+
}
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
type applies_to_all = true
|
|
297
|
+
|
|
298
|
+
module AppliesToAll
|
|
299
|
+
extend Orb::Internal::Type::Enum
|
|
300
|
+
|
|
301
|
+
TRUE: true
|
|
302
|
+
|
|
303
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
type filter =
|
|
307
|
+
{
|
|
308
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
309
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
310
|
+
values: ::Array[String]
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
314
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
315
|
+
|
|
316
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
317
|
+
|
|
318
|
+
attr_accessor values: ::Array[String]
|
|
319
|
+
|
|
320
|
+
def initialize: (
|
|
321
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
322
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
323
|
+
values: ::Array[String]
|
|
324
|
+
) -> void
|
|
325
|
+
|
|
326
|
+
def to_hash: -> {
|
|
327
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
328
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
329
|
+
values: ::Array[String]
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
type field =
|
|
333
|
+
:price_id
|
|
334
|
+
| :item_id
|
|
335
|
+
| :price_type
|
|
336
|
+
| :currency
|
|
337
|
+
| :pricing_unit_id
|
|
338
|
+
|
|
339
|
+
module Field
|
|
340
|
+
extend Orb::Internal::Type::Enum
|
|
341
|
+
|
|
342
|
+
PRICE_ID: :price_id
|
|
343
|
+
ITEM_ID: :item_id
|
|
344
|
+
PRICE_TYPE: :price_type
|
|
345
|
+
CURRENCY: :currency
|
|
346
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
347
|
+
|
|
348
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
type operator = :includes | :excludes
|
|
352
|
+
|
|
353
|
+
module Operator
|
|
354
|
+
extend Orb::Internal::Type::Enum
|
|
355
|
+
|
|
356
|
+
INCLUDES: :includes
|
|
357
|
+
EXCLUDES: :excludes
|
|
358
|
+
|
|
359
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
type price_type =
|
|
364
|
+
:usage
|
|
365
|
+
| :fixed_in_advance
|
|
366
|
+
| :fixed_in_arrears
|
|
367
|
+
| :fixed
|
|
368
|
+
| :in_arrears
|
|
369
|
+
|
|
370
|
+
module PriceType
|
|
371
|
+
extend Orb::Internal::Type::Enum
|
|
372
|
+
|
|
373
|
+
USAGE: :usage
|
|
374
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
375
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
376
|
+
FIXED: :fixed
|
|
377
|
+
IN_ARREARS: :in_arrears
|
|
378
|
+
|
|
379
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
|
|
204
383
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment]
|
|
205
384
|
end
|
|
206
385
|
end
|
|
@@ -286,6 +465,7 @@ module Orb
|
|
|
286
465
|
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
287
466
|
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
288
467
|
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
468
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts
|
|
289
469
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration
|
|
290
470
|
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
291
471
|
| Orb::NewSubscriptionGroupedAllocationPrice
|
|
@@ -300,6 +480,8 @@ module Orb
|
|
|
300
480
|
| Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice
|
|
301
481
|
| Orb::NewSubscriptionCumulativeGroupedBulkPrice
|
|
302
482
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedAllocation
|
|
483
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance
|
|
484
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance
|
|
303
485
|
| Orb::NewSubscriptionMinimumCompositePrice
|
|
304
486
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent
|
|
305
487
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput
|
|
@@ -318,7 +500,7 @@ module Orb
|
|
|
318
500
|
billed_in_advance: bool?,
|
|
319
501
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
320
502
|
conversion_rate: Float?,
|
|
321
|
-
conversion_rate_config: Orb::Models::
|
|
503
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
322
504
|
currency: String?,
|
|
323
505
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
324
506
|
external_price_id: String?,
|
|
@@ -349,7 +531,7 @@ module Orb
|
|
|
349
531
|
|
|
350
532
|
attr_accessor conversion_rate: Float?
|
|
351
533
|
|
|
352
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
534
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
353
535
|
|
|
354
536
|
attr_accessor currency: String?
|
|
355
537
|
|
|
@@ -378,7 +560,7 @@ module Orb
|
|
|
378
560
|
?billed_in_advance: bool?,
|
|
379
561
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
380
562
|
?conversion_rate: Float?,
|
|
381
|
-
?conversion_rate_config: Orb::Models::
|
|
563
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
382
564
|
?currency: String?,
|
|
383
565
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
384
566
|
?external_price_id: String?,
|
|
@@ -401,7 +583,7 @@ module Orb
|
|
|
401
583
|
billed_in_advance: bool?,
|
|
402
584
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
403
585
|
conversion_rate: Float?,
|
|
404
|
-
conversion_rate_config: Orb::Models::
|
|
586
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
405
587
|
currency: String?,
|
|
406
588
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
407
589
|
external_price_id: String?,
|
|
@@ -490,6 +672,239 @@ module Orb
|
|
|
490
672
|
end
|
|
491
673
|
end
|
|
492
674
|
|
|
675
|
+
type matrix_with_threshold_discounts =
|
|
676
|
+
{
|
|
677
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
678
|
+
item_id: String,
|
|
679
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
680
|
+
model_type: :matrix_with_threshold_discounts,
|
|
681
|
+
name: String,
|
|
682
|
+
billable_metric_id: String?,
|
|
683
|
+
billed_in_advance: bool?,
|
|
684
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
685
|
+
conversion_rate: Float?,
|
|
686
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
687
|
+
currency: String?,
|
|
688
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
689
|
+
external_price_id: String?,
|
|
690
|
+
fixed_price_quantity: Float?,
|
|
691
|
+
invoice_grouping_key: String?,
|
|
692
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
693
|
+
license_type_id: String?,
|
|
694
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
695
|
+
reference_id: String?
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
699
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence
|
|
700
|
+
|
|
701
|
+
attr_accessor item_id: String
|
|
702
|
+
|
|
703
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
704
|
+
|
|
705
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
706
|
+
|
|
707
|
+
attr_accessor name: String
|
|
708
|
+
|
|
709
|
+
attr_accessor billable_metric_id: String?
|
|
710
|
+
|
|
711
|
+
attr_accessor billed_in_advance: bool?
|
|
712
|
+
|
|
713
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
714
|
+
|
|
715
|
+
attr_accessor conversion_rate: Float?
|
|
716
|
+
|
|
717
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
718
|
+
|
|
719
|
+
attr_accessor currency: String?
|
|
720
|
+
|
|
721
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
722
|
+
|
|
723
|
+
attr_accessor external_price_id: String?
|
|
724
|
+
|
|
725
|
+
attr_accessor fixed_price_quantity: Float?
|
|
726
|
+
|
|
727
|
+
attr_accessor invoice_grouping_key: String?
|
|
728
|
+
|
|
729
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
730
|
+
|
|
731
|
+
attr_accessor license_type_id: String?
|
|
732
|
+
|
|
733
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
734
|
+
|
|
735
|
+
attr_accessor reference_id: String?
|
|
736
|
+
|
|
737
|
+
def initialize: (
|
|
738
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
739
|
+
item_id: String,
|
|
740
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
741
|
+
name: String,
|
|
742
|
+
?billable_metric_id: String?,
|
|
743
|
+
?billed_in_advance: bool?,
|
|
744
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
745
|
+
?conversion_rate: Float?,
|
|
746
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
747
|
+
?currency: String?,
|
|
748
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
749
|
+
?external_price_id: String?,
|
|
750
|
+
?fixed_price_quantity: Float?,
|
|
751
|
+
?invoice_grouping_key: String?,
|
|
752
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
753
|
+
?license_type_id: String?,
|
|
754
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
755
|
+
?reference_id: String?,
|
|
756
|
+
?model_type: :matrix_with_threshold_discounts
|
|
757
|
+
) -> void
|
|
758
|
+
|
|
759
|
+
def to_hash: -> {
|
|
760
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
761
|
+
item_id: String,
|
|
762
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
763
|
+
model_type: :matrix_with_threshold_discounts,
|
|
764
|
+
name: String,
|
|
765
|
+
billable_metric_id: String?,
|
|
766
|
+
billed_in_advance: bool?,
|
|
767
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
768
|
+
conversion_rate: Float?,
|
|
769
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
770
|
+
currency: String?,
|
|
771
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
772
|
+
external_price_id: String?,
|
|
773
|
+
fixed_price_quantity: Float?,
|
|
774
|
+
invoice_grouping_key: String?,
|
|
775
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
776
|
+
license_type_id: String?,
|
|
777
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
778
|
+
reference_id: String?
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
type cadence =
|
|
782
|
+
:annual
|
|
783
|
+
| :semi_annual
|
|
784
|
+
| :monthly
|
|
785
|
+
| :quarterly
|
|
786
|
+
| :one_time
|
|
787
|
+
| :custom
|
|
788
|
+
|
|
789
|
+
module Cadence
|
|
790
|
+
extend Orb::Internal::Type::Enum
|
|
791
|
+
|
|
792
|
+
ANNUAL: :annual
|
|
793
|
+
SEMI_ANNUAL: :semi_annual
|
|
794
|
+
MONTHLY: :monthly
|
|
795
|
+
QUARTERLY: :quarterly
|
|
796
|
+
ONE_TIME: :one_time
|
|
797
|
+
CUSTOM: :custom
|
|
798
|
+
|
|
799
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence]
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
type matrix_with_threshold_discounts_config =
|
|
803
|
+
{
|
|
804
|
+
default_unit_amount: String,
|
|
805
|
+
first_dimension: String,
|
|
806
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
807
|
+
second_dimension: String?,
|
|
808
|
+
threshold_discount_groups: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
812
|
+
attr_accessor default_unit_amount: String
|
|
813
|
+
|
|
814
|
+
attr_accessor first_dimension: String
|
|
815
|
+
|
|
816
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
817
|
+
|
|
818
|
+
attr_accessor second_dimension: String?
|
|
819
|
+
|
|
820
|
+
attr_reader threshold_discount_groups: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
821
|
+
|
|
822
|
+
def threshold_discount_groups=: (
|
|
823
|
+
::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
824
|
+
) -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
825
|
+
|
|
826
|
+
def initialize: (
|
|
827
|
+
default_unit_amount: String,
|
|
828
|
+
first_dimension: String,
|
|
829
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
830
|
+
?second_dimension: String?,
|
|
831
|
+
?threshold_discount_groups: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
832
|
+
) -> void
|
|
833
|
+
|
|
834
|
+
def to_hash: -> {
|
|
835
|
+
default_unit_amount: String,
|
|
836
|
+
first_dimension: String,
|
|
837
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
838
|
+
second_dimension: String?,
|
|
839
|
+
threshold_discount_groups: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
type matrix_value =
|
|
843
|
+
{
|
|
844
|
+
first_dimension_value: String,
|
|
845
|
+
unit_amount: String,
|
|
846
|
+
second_dimension_value: String?
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
850
|
+
attr_accessor first_dimension_value: String
|
|
851
|
+
|
|
852
|
+
attr_accessor unit_amount: String
|
|
853
|
+
|
|
854
|
+
attr_accessor second_dimension_value: String?
|
|
855
|
+
|
|
856
|
+
def initialize: (
|
|
857
|
+
first_dimension_value: String,
|
|
858
|
+
unit_amount: String,
|
|
859
|
+
?second_dimension_value: String?
|
|
860
|
+
) -> void
|
|
861
|
+
|
|
862
|
+
def to_hash: -> {
|
|
863
|
+
first_dimension_value: String,
|
|
864
|
+
unit_amount: String,
|
|
865
|
+
second_dimension_value: String?
|
|
866
|
+
}
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
type threshold_discount_group =
|
|
870
|
+
{
|
|
871
|
+
above_threshold_discount_percentage: String,
|
|
872
|
+
below_threshold_discount_percentage: String,
|
|
873
|
+
cell_coordinates: String,
|
|
874
|
+
threshold_amount: String,
|
|
875
|
+
description: String?
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
879
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
880
|
+
|
|
881
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
882
|
+
|
|
883
|
+
attr_accessor cell_coordinates: String
|
|
884
|
+
|
|
885
|
+
attr_accessor threshold_amount: String
|
|
886
|
+
|
|
887
|
+
attr_accessor description: String?
|
|
888
|
+
|
|
889
|
+
def initialize: (
|
|
890
|
+
above_threshold_discount_percentage: String,
|
|
891
|
+
below_threshold_discount_percentage: String,
|
|
892
|
+
cell_coordinates: String,
|
|
893
|
+
threshold_amount: String,
|
|
894
|
+
?description: String?
|
|
895
|
+
) -> void
|
|
896
|
+
|
|
897
|
+
def to_hash: -> {
|
|
898
|
+
above_threshold_discount_percentage: String,
|
|
899
|
+
below_threshold_discount_percentage: String,
|
|
900
|
+
cell_coordinates: String,
|
|
901
|
+
threshold_amount: String,
|
|
902
|
+
description: String?
|
|
903
|
+
}
|
|
904
|
+
end
|
|
905
|
+
end
|
|
906
|
+
end
|
|
907
|
+
|
|
493
908
|
type tiered_with_proration =
|
|
494
909
|
{
|
|
495
910
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence,
|
|
@@ -501,7 +916,7 @@ module Orb
|
|
|
501
916
|
billed_in_advance: bool?,
|
|
502
917
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
503
918
|
conversion_rate: Float?,
|
|
504
|
-
conversion_rate_config: Orb::Models::
|
|
919
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
505
920
|
currency: String?,
|
|
506
921
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
507
922
|
external_price_id: String?,
|
|
@@ -532,7 +947,7 @@ module Orb
|
|
|
532
947
|
|
|
533
948
|
attr_accessor conversion_rate: Float?
|
|
534
949
|
|
|
535
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
950
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
536
951
|
|
|
537
952
|
attr_accessor currency: String?
|
|
538
953
|
|
|
@@ -561,7 +976,7 @@ module Orb
|
|
|
561
976
|
?billed_in_advance: bool?,
|
|
562
977
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
563
978
|
?conversion_rate: Float?,
|
|
564
|
-
?conversion_rate_config: Orb::Models::
|
|
979
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
565
980
|
?currency: String?,
|
|
566
981
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
567
982
|
?external_price_id: String?,
|
|
@@ -584,7 +999,7 @@ module Orb
|
|
|
584
999
|
billed_in_advance: bool?,
|
|
585
1000
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
586
1001
|
conversion_rate: Float?,
|
|
587
|
-
conversion_rate_config: Orb::Models::
|
|
1002
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
588
1003
|
currency: String?,
|
|
589
1004
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
590
1005
|
external_price_id: String?,
|
|
@@ -664,7 +1079,7 @@ module Orb
|
|
|
664
1079
|
billed_in_advance: bool?,
|
|
665
1080
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
666
1081
|
conversion_rate: Float?,
|
|
667
|
-
conversion_rate_config: Orb::Models::
|
|
1082
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
668
1083
|
currency: String?,
|
|
669
1084
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
670
1085
|
external_price_id: String?,
|
|
@@ -695,7 +1110,7 @@ module Orb
|
|
|
695
1110
|
|
|
696
1111
|
attr_accessor conversion_rate: Float?
|
|
697
1112
|
|
|
698
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1113
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
699
1114
|
|
|
700
1115
|
attr_accessor currency: String?
|
|
701
1116
|
|
|
@@ -724,7 +1139,7 @@ module Orb
|
|
|
724
1139
|
?billed_in_advance: bool?,
|
|
725
1140
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
726
1141
|
?conversion_rate: Float?,
|
|
727
|
-
?conversion_rate_config: Orb::Models::
|
|
1142
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
728
1143
|
?currency: String?,
|
|
729
1144
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
730
1145
|
?external_price_id: String?,
|
|
@@ -747,7 +1162,7 @@ module Orb
|
|
|
747
1162
|
billed_in_advance: bool?,
|
|
748
1163
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
749
1164
|
conversion_rate: Float?,
|
|
750
|
-
conversion_rate_config: Orb::Models::
|
|
1165
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
751
1166
|
currency: String?,
|
|
752
1167
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
753
1168
|
external_price_id: String?,
|
|
@@ -824,7 +1239,7 @@ module Orb
|
|
|
824
1239
|
billed_in_advance: bool?,
|
|
825
1240
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
826
1241
|
conversion_rate: Float?,
|
|
827
|
-
conversion_rate_config: Orb::Models::
|
|
1242
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
828
1243
|
currency: String?,
|
|
829
1244
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
830
1245
|
external_price_id: String?,
|
|
@@ -855,7 +1270,7 @@ module Orb
|
|
|
855
1270
|
|
|
856
1271
|
attr_accessor conversion_rate: Float?
|
|
857
1272
|
|
|
858
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1273
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
859
1274
|
|
|
860
1275
|
attr_accessor currency: String?
|
|
861
1276
|
|
|
@@ -884,7 +1299,7 @@ module Orb
|
|
|
884
1299
|
?billed_in_advance: bool?,
|
|
885
1300
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
886
1301
|
?conversion_rate: Float?,
|
|
887
|
-
?conversion_rate_config: Orb::Models::
|
|
1302
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
888
1303
|
?currency: String?,
|
|
889
1304
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
890
1305
|
?external_price_id: String?,
|
|
@@ -907,7 +1322,7 @@ module Orb
|
|
|
907
1322
|
billed_in_advance: bool?,
|
|
908
1323
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
909
1324
|
conversion_rate: Float?,
|
|
910
|
-
conversion_rate_config: Orb::Models::
|
|
1325
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
911
1326
|
currency: String?,
|
|
912
1327
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
913
1328
|
external_price_id: String?,
|
|
@@ -973,18 +1388,18 @@ module Orb
|
|
|
973
1388
|
end
|
|
974
1389
|
end
|
|
975
1390
|
|
|
976
|
-
type
|
|
1391
|
+
type daily_credit_allowance =
|
|
977
1392
|
{
|
|
978
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1393
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1394
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
979
1395
|
item_id: String,
|
|
980
|
-
model_type: :
|
|
1396
|
+
model_type: :daily_credit_allowance,
|
|
981
1397
|
name: String,
|
|
982
|
-
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
983
1398
|
billable_metric_id: String?,
|
|
984
1399
|
billed_in_advance: bool?,
|
|
985
1400
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
986
1401
|
conversion_rate: Float?,
|
|
987
|
-
conversion_rate_config: Orb::Models::
|
|
1402
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
988
1403
|
currency: String?,
|
|
989
1404
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
990
1405
|
external_price_id: String?,
|
|
@@ -996,17 +1411,17 @@ module Orb
|
|
|
996
1411
|
reference_id: String?
|
|
997
1412
|
}
|
|
998
1413
|
|
|
999
|
-
class
|
|
1000
|
-
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1414
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
1415
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::cadence
|
|
1416
|
+
|
|
1417
|
+
attr_accessor daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
1001
1418
|
|
|
1002
1419
|
attr_accessor item_id: String
|
|
1003
1420
|
|
|
1004
|
-
attr_accessor model_type: :
|
|
1421
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
1005
1422
|
|
|
1006
1423
|
attr_accessor name: String
|
|
1007
1424
|
|
|
1008
|
-
attr_accessor percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig
|
|
1009
|
-
|
|
1010
1425
|
attr_accessor billable_metric_id: String?
|
|
1011
1426
|
|
|
1012
1427
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1015,7 +1430,7 @@ module Orb
|
|
|
1015
1430
|
|
|
1016
1431
|
attr_accessor conversion_rate: Float?
|
|
1017
1432
|
|
|
1018
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1433
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1019
1434
|
|
|
1020
1435
|
attr_accessor currency: String?
|
|
1021
1436
|
|
|
@@ -1036,15 +1451,15 @@ module Orb
|
|
|
1036
1451
|
attr_accessor reference_id: String?
|
|
1037
1452
|
|
|
1038
1453
|
def initialize: (
|
|
1039
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1454
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1455
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1040
1456
|
item_id: String,
|
|
1041
1457
|
name: String,
|
|
1042
|
-
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
1043
1458
|
?billable_metric_id: String?,
|
|
1044
1459
|
?billed_in_advance: bool?,
|
|
1045
1460
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1046
1461
|
?conversion_rate: Float?,
|
|
1047
|
-
?conversion_rate_config: Orb::Models::
|
|
1462
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1048
1463
|
?currency: String?,
|
|
1049
1464
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1050
1465
|
?external_price_id: String?,
|
|
@@ -1054,20 +1469,20 @@ module Orb
|
|
|
1054
1469
|
?license_type_id: String?,
|
|
1055
1470
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1056
1471
|
?reference_id: String?,
|
|
1057
|
-
?model_type: :
|
|
1472
|
+
?model_type: :daily_credit_allowance
|
|
1058
1473
|
) -> void
|
|
1059
1474
|
|
|
1060
1475
|
def to_hash: -> {
|
|
1061
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1476
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1477
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1062
1478
|
item_id: String,
|
|
1063
|
-
model_type: :
|
|
1479
|
+
model_type: :daily_credit_allowance,
|
|
1064
1480
|
name: String,
|
|
1065
|
-
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
1066
1481
|
billable_metric_id: String?,
|
|
1067
1482
|
billed_in_advance: bool?,
|
|
1068
1483
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1069
1484
|
conversion_rate: Float?,
|
|
1070
|
-
conversion_rate_config: Orb::Models::
|
|
1485
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1071
1486
|
currency: String?,
|
|
1072
1487
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1073
1488
|
external_price_id: String?,
|
|
@@ -1097,32 +1512,78 @@ module Orb
|
|
|
1097
1512
|
ONE_TIME: :one_time
|
|
1098
1513
|
CUSTOM: :custom
|
|
1099
1514
|
|
|
1100
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1515
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::cadence]
|
|
1101
1516
|
end
|
|
1102
1517
|
|
|
1103
|
-
type
|
|
1518
|
+
type daily_credit_allowance_config =
|
|
1519
|
+
{
|
|
1520
|
+
daily_allowance: String,
|
|
1521
|
+
default_unit_amount: String,
|
|
1522
|
+
dimensions: ::Array[String?],
|
|
1523
|
+
event_day_property: String,
|
|
1524
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1525
|
+
}
|
|
1104
1526
|
|
|
1105
|
-
class
|
|
1106
|
-
attr_accessor
|
|
1527
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1528
|
+
attr_accessor daily_allowance: String
|
|
1107
1529
|
|
|
1108
|
-
|
|
1530
|
+
attr_accessor default_unit_amount: String
|
|
1109
1531
|
|
|
1110
|
-
|
|
1111
|
-
end
|
|
1112
|
-
end
|
|
1532
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1113
1533
|
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1534
|
+
attr_accessor event_day_property: String
|
|
1535
|
+
|
|
1536
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1537
|
+
|
|
1538
|
+
def initialize: (
|
|
1539
|
+
daily_allowance: String,
|
|
1540
|
+
default_unit_amount: String,
|
|
1541
|
+
dimensions: ::Array[String?],
|
|
1542
|
+
event_day_property: String,
|
|
1543
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1544
|
+
) -> void
|
|
1545
|
+
|
|
1546
|
+
def to_hash: -> {
|
|
1547
|
+
daily_allowance: String,
|
|
1548
|
+
default_unit_amount: String,
|
|
1549
|
+
dimensions: ::Array[String?],
|
|
1550
|
+
event_day_property: String,
|
|
1551
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
type matrix_value =
|
|
1555
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
1556
|
+
|
|
1557
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
1558
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
1559
|
+
|
|
1560
|
+
attr_accessor unit_amount: String
|
|
1561
|
+
|
|
1562
|
+
def initialize: (
|
|
1563
|
+
dimension_values: ::Array[String?],
|
|
1564
|
+
unit_amount: String
|
|
1565
|
+
) -> void
|
|
1566
|
+
|
|
1567
|
+
def to_hash: -> {
|
|
1568
|
+
dimension_values: ::Array[String?],
|
|
1569
|
+
unit_amount: String
|
|
1570
|
+
}
|
|
1571
|
+
end
|
|
1572
|
+
end
|
|
1573
|
+
end
|
|
1574
|
+
|
|
1575
|
+
type metered_allowance =
|
|
1576
|
+
{
|
|
1577
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1578
|
+
item_id: String,
|
|
1579
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1580
|
+
model_type: :metered_allowance,
|
|
1120
1581
|
name: String,
|
|
1121
1582
|
billable_metric_id: String?,
|
|
1122
1583
|
billed_in_advance: bool?,
|
|
1123
1584
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1124
1585
|
conversion_rate: Float?,
|
|
1125
|
-
conversion_rate_config: Orb::Models::
|
|
1586
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1126
1587
|
currency: String?,
|
|
1127
1588
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1128
1589
|
external_price_id: String?,
|
|
@@ -1134,14 +1595,14 @@ module Orb
|
|
|
1134
1595
|
reference_id: String?
|
|
1135
1596
|
}
|
|
1136
1597
|
|
|
1137
|
-
class
|
|
1138
|
-
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1139
|
-
|
|
1140
|
-
attr_accessor event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig
|
|
1598
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
1599
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::cadence
|
|
1141
1600
|
|
|
1142
1601
|
attr_accessor item_id: String
|
|
1143
1602
|
|
|
1144
|
-
attr_accessor
|
|
1603
|
+
attr_accessor metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
1604
|
+
|
|
1605
|
+
attr_accessor model_type: :metered_allowance
|
|
1145
1606
|
|
|
1146
1607
|
attr_accessor name: String
|
|
1147
1608
|
|
|
@@ -1153,7 +1614,7 @@ module Orb
|
|
|
1153
1614
|
|
|
1154
1615
|
attr_accessor conversion_rate: Float?
|
|
1155
1616
|
|
|
1156
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1617
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1157
1618
|
|
|
1158
1619
|
attr_accessor currency: String?
|
|
1159
1620
|
|
|
@@ -1174,15 +1635,15 @@ module Orb
|
|
|
1174
1635
|
attr_accessor reference_id: String?
|
|
1175
1636
|
|
|
1176
1637
|
def initialize: (
|
|
1177
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1178
|
-
event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1638
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1179
1639
|
item_id: String,
|
|
1640
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1180
1641
|
name: String,
|
|
1181
1642
|
?billable_metric_id: String?,
|
|
1182
1643
|
?billed_in_advance: bool?,
|
|
1183
1644
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1184
1645
|
?conversion_rate: Float?,
|
|
1185
|
-
?conversion_rate_config: Orb::Models::
|
|
1646
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1186
1647
|
?currency: String?,
|
|
1187
1648
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1188
1649
|
?external_price_id: String?,
|
|
@@ -1192,20 +1653,20 @@ module Orb
|
|
|
1192
1653
|
?license_type_id: String?,
|
|
1193
1654
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1194
1655
|
?reference_id: String?,
|
|
1195
|
-
?model_type: :
|
|
1656
|
+
?model_type: :metered_allowance
|
|
1196
1657
|
) -> void
|
|
1197
1658
|
|
|
1198
1659
|
def to_hash: -> {
|
|
1199
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1200
|
-
event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1660
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1201
1661
|
item_id: String,
|
|
1202
|
-
|
|
1662
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1663
|
+
model_type: :metered_allowance,
|
|
1203
1664
|
name: String,
|
|
1204
1665
|
billable_metric_id: String?,
|
|
1205
1666
|
billed_in_advance: bool?,
|
|
1206
1667
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1207
1668
|
conversion_rate: Float?,
|
|
1208
|
-
conversion_rate_config: Orb::Models::
|
|
1669
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1209
1670
|
currency: String?,
|
|
1210
1671
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1211
1672
|
external_price_id: String?,
|
|
@@ -1235,223 +1696,68 @@ module Orb
|
|
|
1235
1696
|
ONE_TIME: :one_time
|
|
1236
1697
|
CUSTOM: :custom
|
|
1237
1698
|
|
|
1238
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1699
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::cadence]
|
|
1239
1700
|
end
|
|
1240
1701
|
|
|
1241
|
-
type
|
|
1702
|
+
type metered_allowance_config =
|
|
1242
1703
|
{
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
grouping_key: String
|
|
1704
|
+
allowance_grouping_value: String,
|
|
1705
|
+
consumption_grouping_value: String,
|
|
1706
|
+
grouping_key: String,
|
|
1707
|
+
unit_amount: String,
|
|
1708
|
+
allowance_display_name: String,
|
|
1709
|
+
consumption_display_name: String
|
|
1246
1710
|
}
|
|
1247
1711
|
|
|
1248
|
-
class
|
|
1249
|
-
attr_accessor
|
|
1712
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1713
|
+
attr_accessor allowance_grouping_value: String
|
|
1250
1714
|
|
|
1251
|
-
attr_accessor
|
|
1715
|
+
attr_accessor consumption_grouping_value: String
|
|
1252
1716
|
|
|
1253
|
-
attr_accessor grouping_key: String
|
|
1717
|
+
attr_accessor grouping_key: String
|
|
1718
|
+
|
|
1719
|
+
attr_accessor unit_amount: String
|
|
1720
|
+
|
|
1721
|
+
attr_reader allowance_display_name: String?
|
|
1722
|
+
|
|
1723
|
+
def allowance_display_name=: (String) -> String
|
|
1724
|
+
|
|
1725
|
+
attr_reader consumption_display_name: String?
|
|
1726
|
+
|
|
1727
|
+
def consumption_display_name=: (String) -> String
|
|
1254
1728
|
|
|
1255
1729
|
def initialize: (
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1730
|
+
allowance_grouping_value: String,
|
|
1731
|
+
consumption_grouping_value: String,
|
|
1732
|
+
grouping_key: String,
|
|
1733
|
+
unit_amount: String,
|
|
1734
|
+
?allowance_display_name: String,
|
|
1735
|
+
?consumption_display_name: String
|
|
1259
1736
|
) -> void
|
|
1260
1737
|
|
|
1261
1738
|
def to_hash: -> {
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
grouping_key: String
|
|
1739
|
+
allowance_grouping_value: String,
|
|
1740
|
+
consumption_grouping_value: String,
|
|
1741
|
+
grouping_key: String,
|
|
1742
|
+
unit_amount: String,
|
|
1743
|
+
allowance_display_name: String,
|
|
1744
|
+
consumption_display_name: String
|
|
1265
1745
|
}
|
|
1266
1746
|
end
|
|
1267
1747
|
end
|
|
1268
1748
|
|
|
1269
|
-
|
|
1270
|
-
end
|
|
1271
|
-
end
|
|
1272
|
-
|
|
1273
|
-
type billing_cycle_alignment =
|
|
1274
|
-
:unchanged | :plan_change_date | :start_of_month
|
|
1275
|
-
|
|
1276
|
-
module BillingCycleAlignment
|
|
1277
|
-
extend Orb::Internal::Type::Enum
|
|
1278
|
-
|
|
1279
|
-
UNCHANGED: :unchanged
|
|
1280
|
-
PLAN_CHANGE_DATE: :plan_change_date
|
|
1281
|
-
START_OF_MONTH: :start_of_month
|
|
1282
|
-
|
|
1283
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment]
|
|
1284
|
-
end
|
|
1285
|
-
|
|
1286
|
-
type remove_adjustment = { adjustment_id: String }
|
|
1287
|
-
|
|
1288
|
-
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
1289
|
-
attr_accessor adjustment_id: String
|
|
1290
|
-
|
|
1291
|
-
def initialize: (adjustment_id: String) -> void
|
|
1292
|
-
|
|
1293
|
-
def to_hash: -> { adjustment_id: String }
|
|
1294
|
-
end
|
|
1295
|
-
|
|
1296
|
-
type remove_price = { external_price_id: String?, price_id: String? }
|
|
1297
|
-
|
|
1298
|
-
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
1299
|
-
attr_accessor external_price_id: String?
|
|
1300
|
-
|
|
1301
|
-
attr_accessor price_id: String?
|
|
1302
|
-
|
|
1303
|
-
def initialize: (
|
|
1304
|
-
?external_price_id: String?,
|
|
1305
|
-
?price_id: String?
|
|
1306
|
-
) -> void
|
|
1307
|
-
|
|
1308
|
-
def to_hash: -> { external_price_id: String?, price_id: String? }
|
|
1309
|
-
end
|
|
1310
|
-
|
|
1311
|
-
type replace_adjustment =
|
|
1312
|
-
{
|
|
1313
|
-
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
1314
|
-
replaces_adjustment_id: String
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
1318
|
-
attr_accessor adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment
|
|
1319
|
-
|
|
1320
|
-
attr_accessor replaces_adjustment_id: String
|
|
1321
|
-
|
|
1322
|
-
def initialize: (
|
|
1323
|
-
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
1324
|
-
replaces_adjustment_id: String
|
|
1325
|
-
) -> void
|
|
1326
|
-
|
|
1327
|
-
def to_hash: -> {
|
|
1328
|
-
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
1329
|
-
replaces_adjustment_id: String
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
type adjustment =
|
|
1333
|
-
Orb::NewPercentageDiscount
|
|
1334
|
-
| Orb::NewUsageDiscount
|
|
1335
|
-
| Orb::NewAmountDiscount
|
|
1336
|
-
| Orb::NewMinimum
|
|
1337
|
-
| Orb::NewMaximum
|
|
1338
|
-
|
|
1339
|
-
module Adjustment
|
|
1340
|
-
extend Orb::Internal::Type::Union
|
|
1341
|
-
|
|
1342
|
-
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment]
|
|
1343
|
-
end
|
|
1344
|
-
end
|
|
1345
|
-
|
|
1346
|
-
type replace_price =
|
|
1347
|
-
{
|
|
1348
|
-
replaces_price_id: String,
|
|
1349
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1350
|
-
discounts: ::Array[Orb::DiscountOverride]?,
|
|
1351
|
-
external_price_id: String?,
|
|
1352
|
-
fixed_price_quantity: Float?,
|
|
1353
|
-
maximum_amount: String?,
|
|
1354
|
-
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1355
|
-
minimum_amount: String?,
|
|
1356
|
-
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1357
|
-
price_id: String?
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
1361
|
-
attr_accessor replaces_price_id: String
|
|
1362
|
-
|
|
1363
|
-
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
1364
|
-
|
|
1365
|
-
attr_accessor discounts: ::Array[Orb::DiscountOverride]?
|
|
1366
|
-
|
|
1367
|
-
attr_accessor external_price_id: String?
|
|
1368
|
-
|
|
1369
|
-
attr_accessor fixed_price_quantity: Float?
|
|
1370
|
-
|
|
1371
|
-
attr_accessor maximum_amount: String?
|
|
1372
|
-
|
|
1373
|
-
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
1374
|
-
|
|
1375
|
-
attr_accessor minimum_amount: String?
|
|
1376
|
-
|
|
1377
|
-
attr_accessor price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?
|
|
1378
|
-
|
|
1379
|
-
attr_accessor price_id: String?
|
|
1380
|
-
|
|
1381
|
-
def initialize: (
|
|
1382
|
-
replaces_price_id: String,
|
|
1383
|
-
?allocation_price: Orb::NewAllocationPrice?,
|
|
1384
|
-
?discounts: ::Array[Orb::DiscountOverride]?,
|
|
1385
|
-
?external_price_id: String?,
|
|
1386
|
-
?fixed_price_quantity: Float?,
|
|
1387
|
-
?maximum_amount: String?,
|
|
1388
|
-
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1389
|
-
?minimum_amount: String?,
|
|
1390
|
-
?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1391
|
-
?price_id: String?
|
|
1392
|
-
) -> void
|
|
1393
|
-
|
|
1394
|
-
def to_hash: -> {
|
|
1395
|
-
replaces_price_id: String,
|
|
1396
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1397
|
-
discounts: ::Array[Orb::DiscountOverride]?,
|
|
1398
|
-
external_price_id: String?,
|
|
1399
|
-
fixed_price_quantity: Float?,
|
|
1400
|
-
maximum_amount: String?,
|
|
1401
|
-
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1402
|
-
minimum_amount: String?,
|
|
1403
|
-
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1404
|
-
price_id: String?
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
type price =
|
|
1408
|
-
Orb::NewSubscriptionUnitPrice
|
|
1409
|
-
| Orb::NewSubscriptionTieredPrice
|
|
1410
|
-
| Orb::NewSubscriptionBulkPrice
|
|
1411
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters
|
|
1412
|
-
| Orb::NewSubscriptionPackagePrice
|
|
1413
|
-
| Orb::NewSubscriptionMatrixPrice
|
|
1414
|
-
| Orb::NewSubscriptionThresholdTotalAmountPrice
|
|
1415
|
-
| Orb::NewSubscriptionTieredPackagePrice
|
|
1416
|
-
| Orb::NewSubscriptionTieredWithMinimumPrice
|
|
1417
|
-
| Orb::NewSubscriptionGroupedTieredPrice
|
|
1418
|
-
| Orb::NewSubscriptionTieredPackageWithMinimumPrice
|
|
1419
|
-
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
1420
|
-
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
1421
|
-
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
1422
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration
|
|
1423
|
-
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
1424
|
-
| Orb::NewSubscriptionGroupedAllocationPrice
|
|
1425
|
-
| Orb::NewSubscriptionBulkWithProrationPrice
|
|
1426
|
-
| Orb::NewSubscriptionGroupedWithProratedMinimumPrice
|
|
1427
|
-
| Orb::NewSubscriptionGroupedWithMeteredMinimumPrice
|
|
1428
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
1429
|
-
| Orb::NewSubscriptionMatrixWithDisplayNamePrice
|
|
1430
|
-
| Orb::NewSubscriptionGroupedTieredPackagePrice
|
|
1431
|
-
| Orb::NewSubscriptionMaxGroupTieredPackagePrice
|
|
1432
|
-
| Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice
|
|
1433
|
-
| Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice
|
|
1434
|
-
| Orb::NewSubscriptionCumulativeGroupedBulkPrice
|
|
1435
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
1436
|
-
| Orb::NewSubscriptionMinimumCompositePrice
|
|
1437
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent
|
|
1438
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::EventOutput
|
|
1439
|
-
|
|
1440
|
-
module Price
|
|
1441
|
-
extend Orb::Internal::Type::Union
|
|
1442
|
-
|
|
1443
|
-
type bulk_with_filters =
|
|
1749
|
+
type percent =
|
|
1444
1750
|
{
|
|
1445
|
-
|
|
1446
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1751
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::cadence,
|
|
1447
1752
|
item_id: String,
|
|
1448
|
-
model_type: :
|
|
1753
|
+
model_type: :percent,
|
|
1449
1754
|
name: String,
|
|
1755
|
+
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
1450
1756
|
billable_metric_id: String?,
|
|
1451
1757
|
billed_in_advance: bool?,
|
|
1452
1758
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1453
1759
|
conversion_rate: Float?,
|
|
1454
|
-
conversion_rate_config: Orb::Models::
|
|
1760
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1455
1761
|
currency: String?,
|
|
1456
1762
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1457
1763
|
external_price_id: String?,
|
|
@@ -1463,17 +1769,17 @@ module Orb
|
|
|
1463
1769
|
reference_id: String?
|
|
1464
1770
|
}
|
|
1465
1771
|
|
|
1466
|
-
class
|
|
1467
|
-
attr_accessor
|
|
1468
|
-
|
|
1469
|
-
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence
|
|
1772
|
+
class Percent < Orb::Internal::Type::BaseModel
|
|
1773
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::cadence
|
|
1470
1774
|
|
|
1471
1775
|
attr_accessor item_id: String
|
|
1472
1776
|
|
|
1473
|
-
attr_accessor model_type: :
|
|
1777
|
+
attr_accessor model_type: :percent
|
|
1474
1778
|
|
|
1475
1779
|
attr_accessor name: String
|
|
1476
1780
|
|
|
1781
|
+
attr_accessor percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig
|
|
1782
|
+
|
|
1477
1783
|
attr_accessor billable_metric_id: String?
|
|
1478
1784
|
|
|
1479
1785
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1482,7 +1788,7 @@ module Orb
|
|
|
1482
1788
|
|
|
1483
1789
|
attr_accessor conversion_rate: Float?
|
|
1484
1790
|
|
|
1485
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1791
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1486
1792
|
|
|
1487
1793
|
attr_accessor currency: String?
|
|
1488
1794
|
|
|
@@ -1503,15 +1809,1094 @@ module Orb
|
|
|
1503
1809
|
attr_accessor reference_id: String?
|
|
1504
1810
|
|
|
1505
1811
|
def initialize: (
|
|
1506
|
-
|
|
1507
|
-
|
|
1812
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::cadence,
|
|
1813
|
+
item_id: String,
|
|
1814
|
+
name: String,
|
|
1815
|
+
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
1816
|
+
?billable_metric_id: String?,
|
|
1817
|
+
?billed_in_advance: bool?,
|
|
1818
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1819
|
+
?conversion_rate: Float?,
|
|
1820
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1821
|
+
?currency: String?,
|
|
1822
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1823
|
+
?external_price_id: String?,
|
|
1824
|
+
?fixed_price_quantity: Float?,
|
|
1825
|
+
?invoice_grouping_key: String?,
|
|
1826
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1827
|
+
?license_type_id: String?,
|
|
1828
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1829
|
+
?reference_id: String?,
|
|
1830
|
+
?model_type: :percent
|
|
1831
|
+
) -> void
|
|
1832
|
+
|
|
1833
|
+
def to_hash: -> {
|
|
1834
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::cadence,
|
|
1835
|
+
item_id: String,
|
|
1836
|
+
model_type: :percent,
|
|
1837
|
+
name: String,
|
|
1838
|
+
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
1839
|
+
billable_metric_id: String?,
|
|
1840
|
+
billed_in_advance: bool?,
|
|
1841
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1842
|
+
conversion_rate: Float?,
|
|
1843
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1844
|
+
currency: String?,
|
|
1845
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1846
|
+
external_price_id: String?,
|
|
1847
|
+
fixed_price_quantity: Float?,
|
|
1848
|
+
invoice_grouping_key: String?,
|
|
1849
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1850
|
+
license_type_id: String?,
|
|
1851
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1852
|
+
reference_id: String?
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
type cadence =
|
|
1856
|
+
:annual
|
|
1857
|
+
| :semi_annual
|
|
1858
|
+
| :monthly
|
|
1859
|
+
| :quarterly
|
|
1860
|
+
| :one_time
|
|
1861
|
+
| :custom
|
|
1862
|
+
|
|
1863
|
+
module Cadence
|
|
1864
|
+
extend Orb::Internal::Type::Enum
|
|
1865
|
+
|
|
1866
|
+
ANNUAL: :annual
|
|
1867
|
+
SEMI_ANNUAL: :semi_annual
|
|
1868
|
+
MONTHLY: :monthly
|
|
1869
|
+
QUARTERLY: :quarterly
|
|
1870
|
+
ONE_TIME: :one_time
|
|
1871
|
+
CUSTOM: :custom
|
|
1872
|
+
|
|
1873
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::cadence]
|
|
1874
|
+
end
|
|
1875
|
+
|
|
1876
|
+
type percent_config =
|
|
1877
|
+
{
|
|
1878
|
+
percent: Float,
|
|
1879
|
+
maximum_amount: String?,
|
|
1880
|
+
minimum_amount: String?,
|
|
1881
|
+
prorated: bool
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
1885
|
+
attr_accessor percent: Float
|
|
1886
|
+
|
|
1887
|
+
attr_accessor maximum_amount: String?
|
|
1888
|
+
|
|
1889
|
+
attr_accessor minimum_amount: String?
|
|
1890
|
+
|
|
1891
|
+
attr_reader prorated: bool?
|
|
1892
|
+
|
|
1893
|
+
def prorated=: (bool) -> bool
|
|
1894
|
+
|
|
1895
|
+
def initialize: (
|
|
1896
|
+
percent: Float,
|
|
1897
|
+
?maximum_amount: String?,
|
|
1898
|
+
?minimum_amount: String?,
|
|
1899
|
+
?prorated: bool
|
|
1900
|
+
) -> void
|
|
1901
|
+
|
|
1902
|
+
def to_hash: -> {
|
|
1903
|
+
percent: Float,
|
|
1904
|
+
maximum_amount: String?,
|
|
1905
|
+
minimum_amount: String?,
|
|
1906
|
+
prorated: bool
|
|
1907
|
+
}
|
|
1908
|
+
end
|
|
1909
|
+
end
|
|
1910
|
+
|
|
1911
|
+
type event_output =
|
|
1912
|
+
{
|
|
1913
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::cadence,
|
|
1914
|
+
event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1915
|
+
item_id: String,
|
|
1916
|
+
model_type: :event_output,
|
|
1917
|
+
name: String,
|
|
1918
|
+
billable_metric_id: String?,
|
|
1919
|
+
billed_in_advance: bool?,
|
|
1920
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1921
|
+
conversion_rate: Float?,
|
|
1922
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1923
|
+
currency: String?,
|
|
1924
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1925
|
+
external_price_id: String?,
|
|
1926
|
+
fixed_price_quantity: Float?,
|
|
1927
|
+
invoice_grouping_key: String?,
|
|
1928
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1929
|
+
license_type_id: String?,
|
|
1930
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1931
|
+
reference_id: String?
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
class EventOutput < Orb::Internal::Type::BaseModel
|
|
1935
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::cadence
|
|
1936
|
+
|
|
1937
|
+
attr_accessor event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig
|
|
1938
|
+
|
|
1939
|
+
attr_accessor item_id: String
|
|
1940
|
+
|
|
1941
|
+
attr_accessor model_type: :event_output
|
|
1942
|
+
|
|
1943
|
+
attr_accessor name: String
|
|
1944
|
+
|
|
1945
|
+
attr_accessor billable_metric_id: String?
|
|
1946
|
+
|
|
1947
|
+
attr_accessor billed_in_advance: bool?
|
|
1948
|
+
|
|
1949
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1950
|
+
|
|
1951
|
+
attr_accessor conversion_rate: Float?
|
|
1952
|
+
|
|
1953
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1954
|
+
|
|
1955
|
+
attr_accessor currency: String?
|
|
1956
|
+
|
|
1957
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1958
|
+
|
|
1959
|
+
attr_accessor external_price_id: String?
|
|
1960
|
+
|
|
1961
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1962
|
+
|
|
1963
|
+
attr_accessor invoice_grouping_key: String?
|
|
1964
|
+
|
|
1965
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1966
|
+
|
|
1967
|
+
attr_accessor license_type_id: String?
|
|
1968
|
+
|
|
1969
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1970
|
+
|
|
1971
|
+
attr_accessor reference_id: String?
|
|
1972
|
+
|
|
1973
|
+
def initialize: (
|
|
1974
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::cadence,
|
|
1975
|
+
event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1976
|
+
item_id: String,
|
|
1977
|
+
name: String,
|
|
1978
|
+
?billable_metric_id: String?,
|
|
1979
|
+
?billed_in_advance: bool?,
|
|
1980
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1981
|
+
?conversion_rate: Float?,
|
|
1982
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1983
|
+
?currency: String?,
|
|
1984
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1985
|
+
?external_price_id: String?,
|
|
1986
|
+
?fixed_price_quantity: Float?,
|
|
1987
|
+
?invoice_grouping_key: String?,
|
|
1988
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1989
|
+
?license_type_id: String?,
|
|
1990
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1991
|
+
?reference_id: String?,
|
|
1992
|
+
?model_type: :event_output
|
|
1993
|
+
) -> void
|
|
1994
|
+
|
|
1995
|
+
def to_hash: -> {
|
|
1996
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::cadence,
|
|
1997
|
+
event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1998
|
+
item_id: String,
|
|
1999
|
+
model_type: :event_output,
|
|
2000
|
+
name: String,
|
|
2001
|
+
billable_metric_id: String?,
|
|
2002
|
+
billed_in_advance: bool?,
|
|
2003
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2004
|
+
conversion_rate: Float?,
|
|
2005
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2006
|
+
currency: String?,
|
|
2007
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2008
|
+
external_price_id: String?,
|
|
2009
|
+
fixed_price_quantity: Float?,
|
|
2010
|
+
invoice_grouping_key: String?,
|
|
2011
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2012
|
+
license_type_id: String?,
|
|
2013
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2014
|
+
reference_id: String?
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
type cadence =
|
|
2018
|
+
:annual
|
|
2019
|
+
| :semi_annual
|
|
2020
|
+
| :monthly
|
|
2021
|
+
| :quarterly
|
|
2022
|
+
| :one_time
|
|
2023
|
+
| :custom
|
|
2024
|
+
|
|
2025
|
+
module Cadence
|
|
2026
|
+
extend Orb::Internal::Type::Enum
|
|
2027
|
+
|
|
2028
|
+
ANNUAL: :annual
|
|
2029
|
+
SEMI_ANNUAL: :semi_annual
|
|
2030
|
+
MONTHLY: :monthly
|
|
2031
|
+
QUARTERLY: :quarterly
|
|
2032
|
+
ONE_TIME: :one_time
|
|
2033
|
+
CUSTOM: :custom
|
|
2034
|
+
|
|
2035
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::cadence]
|
|
2036
|
+
end
|
|
2037
|
+
|
|
2038
|
+
type event_output_config =
|
|
2039
|
+
{
|
|
2040
|
+
unit_rating_key: String,
|
|
2041
|
+
default_unit_rate: String?,
|
|
2042
|
+
grouping_key: String?
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
2046
|
+
attr_accessor unit_rating_key: String
|
|
2047
|
+
|
|
2048
|
+
attr_accessor default_unit_rate: String?
|
|
2049
|
+
|
|
2050
|
+
attr_accessor grouping_key: String?
|
|
2051
|
+
|
|
2052
|
+
def initialize: (
|
|
2053
|
+
unit_rating_key: String,
|
|
2054
|
+
?default_unit_rate: String?,
|
|
2055
|
+
?grouping_key: String?
|
|
2056
|
+
) -> void
|
|
2057
|
+
|
|
2058
|
+
def to_hash: -> {
|
|
2059
|
+
unit_rating_key: String,
|
|
2060
|
+
default_unit_rate: String?,
|
|
2061
|
+
grouping_key: String?
|
|
2062
|
+
}
|
|
2063
|
+
end
|
|
2064
|
+
end
|
|
2065
|
+
|
|
2066
|
+
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price]
|
|
2067
|
+
end
|
|
2068
|
+
end
|
|
2069
|
+
|
|
2070
|
+
type billing_cycle_alignment =
|
|
2071
|
+
:unchanged | :plan_change_date | :start_of_month
|
|
2072
|
+
|
|
2073
|
+
module BillingCycleAlignment
|
|
2074
|
+
extend Orb::Internal::Type::Enum
|
|
2075
|
+
|
|
2076
|
+
UNCHANGED: :unchanged
|
|
2077
|
+
PLAN_CHANGE_DATE: :plan_change_date
|
|
2078
|
+
START_OF_MONTH: :start_of_month
|
|
2079
|
+
|
|
2080
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment]
|
|
2081
|
+
end
|
|
2082
|
+
|
|
2083
|
+
type remove_adjustment = { adjustment_id: String }
|
|
2084
|
+
|
|
2085
|
+
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
2086
|
+
attr_accessor adjustment_id: String
|
|
2087
|
+
|
|
2088
|
+
def initialize: (adjustment_id: String) -> void
|
|
2089
|
+
|
|
2090
|
+
def to_hash: -> { adjustment_id: String }
|
|
2091
|
+
end
|
|
2092
|
+
|
|
2093
|
+
type remove_price = { external_price_id: String?, price_id: String? }
|
|
2094
|
+
|
|
2095
|
+
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
2096
|
+
attr_accessor external_price_id: String?
|
|
2097
|
+
|
|
2098
|
+
attr_accessor price_id: String?
|
|
2099
|
+
|
|
2100
|
+
def initialize: (
|
|
2101
|
+
?external_price_id: String?,
|
|
2102
|
+
?price_id: String?
|
|
2103
|
+
) -> void
|
|
2104
|
+
|
|
2105
|
+
def to_hash: -> { external_price_id: String?, price_id: String? }
|
|
2106
|
+
end
|
|
2107
|
+
|
|
2108
|
+
type replace_adjustment =
|
|
2109
|
+
{
|
|
2110
|
+
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
2111
|
+
replaces_adjustment_id: String
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
2115
|
+
attr_accessor adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment
|
|
2116
|
+
|
|
2117
|
+
attr_accessor replaces_adjustment_id: String
|
|
2118
|
+
|
|
2119
|
+
def initialize: (
|
|
2120
|
+
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
2121
|
+
replaces_adjustment_id: String
|
|
2122
|
+
) -> void
|
|
2123
|
+
|
|
2124
|
+
def to_hash: -> {
|
|
2125
|
+
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
2126
|
+
replaces_adjustment_id: String
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
type adjustment =
|
|
2130
|
+
Orb::NewPercentageDiscount
|
|
2131
|
+
| Orb::NewUsageDiscount
|
|
2132
|
+
| Orb::NewAmountDiscount
|
|
2133
|
+
| Orb::NewMinimum
|
|
2134
|
+
| Orb::NewMaximum
|
|
2135
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount
|
|
2136
|
+
|
|
2137
|
+
module Adjustment
|
|
2138
|
+
extend Orb::Internal::Type::Union
|
|
2139
|
+
|
|
2140
|
+
type tiered_percentage_discount =
|
|
2141
|
+
{
|
|
2142
|
+
adjustment_type: :tiered_percentage_discount,
|
|
2143
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2144
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2145
|
+
applies_to_item_ids: ::Array[String]?,
|
|
2146
|
+
applies_to_price_ids: ::Array[String]?,
|
|
2147
|
+
currency: String?,
|
|
2148
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2149
|
+
is_invoice_level: bool,
|
|
2150
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
2154
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
2155
|
+
|
|
2156
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
2157
|
+
|
|
2158
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
2159
|
+
|
|
2160
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
2161
|
+
|
|
2162
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
2163
|
+
|
|
2164
|
+
attr_accessor currency: String?
|
|
2165
|
+
|
|
2166
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
2167
|
+
|
|
2168
|
+
attr_reader is_invoice_level: bool?
|
|
2169
|
+
|
|
2170
|
+
def is_invoice_level=: (bool) -> bool
|
|
2171
|
+
|
|
2172
|
+
attr_accessor price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2173
|
+
|
|
2174
|
+
def initialize: (
|
|
2175
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2176
|
+
?applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2177
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
2178
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
2179
|
+
?currency: String?,
|
|
2180
|
+
?filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2181
|
+
?is_invoice_level: bool,
|
|
2182
|
+
?price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
2183
|
+
?adjustment_type: :tiered_percentage_discount
|
|
2184
|
+
) -> void
|
|
2185
|
+
|
|
2186
|
+
def to_hash: -> {
|
|
2187
|
+
adjustment_type: :tiered_percentage_discount,
|
|
2188
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2189
|
+
applies_to_all: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2190
|
+
applies_to_item_ids: ::Array[String]?,
|
|
2191
|
+
applies_to_price_ids: ::Array[String]?,
|
|
2192
|
+
currency: String?,
|
|
2193
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2194
|
+
is_invoice_level: bool,
|
|
2195
|
+
price_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
type tier =
|
|
2199
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
2200
|
+
|
|
2201
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2202
|
+
attr_accessor lower_bound: Float
|
|
2203
|
+
|
|
2204
|
+
attr_accessor percentage: Float
|
|
2205
|
+
|
|
2206
|
+
attr_accessor upper_bound: Float?
|
|
2207
|
+
|
|
2208
|
+
def initialize: (
|
|
2209
|
+
lower_bound: Float,
|
|
2210
|
+
percentage: Float,
|
|
2211
|
+
?upper_bound: Float?
|
|
2212
|
+
) -> void
|
|
2213
|
+
|
|
2214
|
+
def to_hash: -> {
|
|
2215
|
+
lower_bound: Float,
|
|
2216
|
+
percentage: Float,
|
|
2217
|
+
upper_bound: Float?
|
|
2218
|
+
}
|
|
2219
|
+
end
|
|
2220
|
+
|
|
2221
|
+
type applies_to_all = true
|
|
2222
|
+
|
|
2223
|
+
module AppliesToAll
|
|
2224
|
+
extend Orb::Internal::Type::Enum
|
|
2225
|
+
|
|
2226
|
+
TRUE: true
|
|
2227
|
+
|
|
2228
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
2229
|
+
end
|
|
2230
|
+
|
|
2231
|
+
type filter =
|
|
2232
|
+
{
|
|
2233
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2234
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2235
|
+
values: ::Array[String]
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2239
|
+
attr_accessor field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
2240
|
+
|
|
2241
|
+
attr_accessor operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
2242
|
+
|
|
2243
|
+
attr_accessor values: ::Array[String]
|
|
2244
|
+
|
|
2245
|
+
def initialize: (
|
|
2246
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2247
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2248
|
+
values: ::Array[String]
|
|
2249
|
+
) -> void
|
|
2250
|
+
|
|
2251
|
+
def to_hash: -> {
|
|
2252
|
+
field: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2253
|
+
operator: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2254
|
+
values: ::Array[String]
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
type field =
|
|
2258
|
+
:price_id
|
|
2259
|
+
| :item_id
|
|
2260
|
+
| :price_type
|
|
2261
|
+
| :currency
|
|
2262
|
+
| :pricing_unit_id
|
|
2263
|
+
|
|
2264
|
+
module Field
|
|
2265
|
+
extend Orb::Internal::Type::Enum
|
|
2266
|
+
|
|
2267
|
+
PRICE_ID: :price_id
|
|
2268
|
+
ITEM_ID: :item_id
|
|
2269
|
+
PRICE_TYPE: :price_type
|
|
2270
|
+
CURRENCY: :currency
|
|
2271
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
2272
|
+
|
|
2273
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
2274
|
+
end
|
|
2275
|
+
|
|
2276
|
+
type operator = :includes | :excludes
|
|
2277
|
+
|
|
2278
|
+
module Operator
|
|
2279
|
+
extend Orb::Internal::Type::Enum
|
|
2280
|
+
|
|
2281
|
+
INCLUDES: :includes
|
|
2282
|
+
EXCLUDES: :excludes
|
|
2283
|
+
|
|
2284
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
2285
|
+
end
|
|
2286
|
+
end
|
|
2287
|
+
|
|
2288
|
+
type price_type =
|
|
2289
|
+
:usage
|
|
2290
|
+
| :fixed_in_advance
|
|
2291
|
+
| :fixed_in_arrears
|
|
2292
|
+
| :fixed
|
|
2293
|
+
| :in_arrears
|
|
2294
|
+
|
|
2295
|
+
module PriceType
|
|
2296
|
+
extend Orb::Internal::Type::Enum
|
|
2297
|
+
|
|
2298
|
+
USAGE: :usage
|
|
2299
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
2300
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
2301
|
+
FIXED: :fixed
|
|
2302
|
+
IN_ARREARS: :in_arrears
|
|
2303
|
+
|
|
2304
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
2305
|
+
end
|
|
2306
|
+
end
|
|
2307
|
+
|
|
2308
|
+
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment]
|
|
2309
|
+
end
|
|
2310
|
+
end
|
|
2311
|
+
|
|
2312
|
+
type replace_price =
|
|
2313
|
+
{
|
|
2314
|
+
replaces_price_id: String,
|
|
2315
|
+
allocation_price: Orb::NewAllocationPrice?,
|
|
2316
|
+
discounts: ::Array[Orb::DiscountOverride]?,
|
|
2317
|
+
external_price_id: String?,
|
|
2318
|
+
fixed_price_quantity: Float?,
|
|
2319
|
+
maximum_amount: String?,
|
|
2320
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2321
|
+
minimum_amount: String?,
|
|
2322
|
+
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2323
|
+
price_id: String?
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
2327
|
+
attr_accessor replaces_price_id: String
|
|
2328
|
+
|
|
2329
|
+
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
2330
|
+
|
|
2331
|
+
attr_accessor discounts: ::Array[Orb::DiscountOverride]?
|
|
2332
|
+
|
|
2333
|
+
attr_accessor external_price_id: String?
|
|
2334
|
+
|
|
2335
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2336
|
+
|
|
2337
|
+
attr_accessor maximum_amount: String?
|
|
2338
|
+
|
|
2339
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
2340
|
+
|
|
2341
|
+
attr_accessor minimum_amount: String?
|
|
2342
|
+
|
|
2343
|
+
attr_accessor price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?
|
|
2344
|
+
|
|
2345
|
+
attr_accessor price_id: String?
|
|
2346
|
+
|
|
2347
|
+
def initialize: (
|
|
2348
|
+
replaces_price_id: String,
|
|
2349
|
+
?allocation_price: Orb::NewAllocationPrice?,
|
|
2350
|
+
?discounts: ::Array[Orb::DiscountOverride]?,
|
|
2351
|
+
?external_price_id: String?,
|
|
2352
|
+
?fixed_price_quantity: Float?,
|
|
2353
|
+
?maximum_amount: String?,
|
|
2354
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2355
|
+
?minimum_amount: String?,
|
|
2356
|
+
?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2357
|
+
?price_id: String?
|
|
2358
|
+
) -> void
|
|
2359
|
+
|
|
2360
|
+
def to_hash: -> {
|
|
2361
|
+
replaces_price_id: String,
|
|
2362
|
+
allocation_price: Orb::NewAllocationPrice?,
|
|
2363
|
+
discounts: ::Array[Orb::DiscountOverride]?,
|
|
2364
|
+
external_price_id: String?,
|
|
2365
|
+
fixed_price_quantity: Float?,
|
|
2366
|
+
maximum_amount: String?,
|
|
2367
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2368
|
+
minimum_amount: String?,
|
|
2369
|
+
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
2370
|
+
price_id: String?
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
type price =
|
|
2374
|
+
Orb::NewSubscriptionUnitPrice
|
|
2375
|
+
| Orb::NewSubscriptionTieredPrice
|
|
2376
|
+
| Orb::NewSubscriptionBulkPrice
|
|
2377
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters
|
|
2378
|
+
| Orb::NewSubscriptionPackagePrice
|
|
2379
|
+
| Orb::NewSubscriptionMatrixPrice
|
|
2380
|
+
| Orb::NewSubscriptionThresholdTotalAmountPrice
|
|
2381
|
+
| Orb::NewSubscriptionTieredPackagePrice
|
|
2382
|
+
| Orb::NewSubscriptionTieredWithMinimumPrice
|
|
2383
|
+
| Orb::NewSubscriptionGroupedTieredPrice
|
|
2384
|
+
| Orb::NewSubscriptionTieredPackageWithMinimumPrice
|
|
2385
|
+
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
2386
|
+
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
2387
|
+
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
2388
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts
|
|
2389
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration
|
|
2390
|
+
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
2391
|
+
| Orb::NewSubscriptionGroupedAllocationPrice
|
|
2392
|
+
| Orb::NewSubscriptionBulkWithProrationPrice
|
|
2393
|
+
| Orb::NewSubscriptionGroupedWithProratedMinimumPrice
|
|
2394
|
+
| Orb::NewSubscriptionGroupedWithMeteredMinimumPrice
|
|
2395
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
2396
|
+
| Orb::NewSubscriptionMatrixWithDisplayNamePrice
|
|
2397
|
+
| Orb::NewSubscriptionGroupedTieredPackagePrice
|
|
2398
|
+
| Orb::NewSubscriptionMaxGroupTieredPackagePrice
|
|
2399
|
+
| Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice
|
|
2400
|
+
| Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice
|
|
2401
|
+
| Orb::NewSubscriptionCumulativeGroupedBulkPrice
|
|
2402
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
2403
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance
|
|
2404
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance
|
|
2405
|
+
| Orb::NewSubscriptionMinimumCompositePrice
|
|
2406
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent
|
|
2407
|
+
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::EventOutput
|
|
2408
|
+
|
|
2409
|
+
module Price
|
|
2410
|
+
extend Orb::Internal::Type::Union
|
|
2411
|
+
|
|
2412
|
+
type bulk_with_filters =
|
|
2413
|
+
{
|
|
2414
|
+
bulk_with_filters_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2415
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2416
|
+
item_id: String,
|
|
2417
|
+
model_type: :bulk_with_filters,
|
|
2418
|
+
name: String,
|
|
2419
|
+
billable_metric_id: String?,
|
|
2420
|
+
billed_in_advance: bool?,
|
|
2421
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2422
|
+
conversion_rate: Float?,
|
|
2423
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2424
|
+
currency: String?,
|
|
2425
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2426
|
+
external_price_id: String?,
|
|
2427
|
+
fixed_price_quantity: Float?,
|
|
2428
|
+
invoice_grouping_key: String?,
|
|
2429
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2430
|
+
license_type_id: String?,
|
|
2431
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2432
|
+
reference_id: String?
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
2436
|
+
attr_accessor bulk_with_filters_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig
|
|
2437
|
+
|
|
2438
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence
|
|
2439
|
+
|
|
2440
|
+
attr_accessor item_id: String
|
|
2441
|
+
|
|
2442
|
+
attr_accessor model_type: :bulk_with_filters
|
|
2443
|
+
|
|
2444
|
+
attr_accessor name: String
|
|
2445
|
+
|
|
2446
|
+
attr_accessor billable_metric_id: String?
|
|
2447
|
+
|
|
2448
|
+
attr_accessor billed_in_advance: bool?
|
|
2449
|
+
|
|
2450
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2451
|
+
|
|
2452
|
+
attr_accessor conversion_rate: Float?
|
|
2453
|
+
|
|
2454
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2455
|
+
|
|
2456
|
+
attr_accessor currency: String?
|
|
2457
|
+
|
|
2458
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2459
|
+
|
|
2460
|
+
attr_accessor external_price_id: String?
|
|
2461
|
+
|
|
2462
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2463
|
+
|
|
2464
|
+
attr_accessor invoice_grouping_key: String?
|
|
2465
|
+
|
|
2466
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2467
|
+
|
|
2468
|
+
attr_accessor license_type_id: String?
|
|
2469
|
+
|
|
2470
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2471
|
+
|
|
2472
|
+
attr_accessor reference_id: String?
|
|
2473
|
+
|
|
2474
|
+
def initialize: (
|
|
2475
|
+
bulk_with_filters_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2476
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2477
|
+
item_id: String,
|
|
2478
|
+
name: String,
|
|
2479
|
+
?billable_metric_id: String?,
|
|
2480
|
+
?billed_in_advance: bool?,
|
|
2481
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2482
|
+
?conversion_rate: Float?,
|
|
2483
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2484
|
+
?currency: String?,
|
|
2485
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2486
|
+
?external_price_id: String?,
|
|
2487
|
+
?fixed_price_quantity: Float?,
|
|
2488
|
+
?invoice_grouping_key: String?,
|
|
2489
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2490
|
+
?license_type_id: String?,
|
|
2491
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2492
|
+
?reference_id: String?,
|
|
2493
|
+
?model_type: :bulk_with_filters
|
|
2494
|
+
) -> void
|
|
2495
|
+
|
|
2496
|
+
def to_hash: -> {
|
|
2497
|
+
bulk_with_filters_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2498
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2499
|
+
item_id: String,
|
|
2500
|
+
model_type: :bulk_with_filters,
|
|
2501
|
+
name: String,
|
|
2502
|
+
billable_metric_id: String?,
|
|
2503
|
+
billed_in_advance: bool?,
|
|
2504
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2505
|
+
conversion_rate: Float?,
|
|
2506
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2507
|
+
currency: String?,
|
|
2508
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2509
|
+
external_price_id: String?,
|
|
2510
|
+
fixed_price_quantity: Float?,
|
|
2511
|
+
invoice_grouping_key: String?,
|
|
2512
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2513
|
+
license_type_id: String?,
|
|
2514
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2515
|
+
reference_id: String?
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
type bulk_with_filters_config =
|
|
2519
|
+
{
|
|
2520
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2521
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
2525
|
+
attr_accessor filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter]
|
|
2526
|
+
|
|
2527
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2528
|
+
|
|
2529
|
+
def initialize: (
|
|
2530
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2531
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2532
|
+
) -> void
|
|
2533
|
+
|
|
2534
|
+
def to_hash: -> {
|
|
2535
|
+
filters: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2536
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
type filter = { property_key: String, property_value: String }
|
|
2540
|
+
|
|
2541
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2542
|
+
attr_accessor property_key: String
|
|
2543
|
+
|
|
2544
|
+
attr_accessor property_value: String
|
|
2545
|
+
|
|
2546
|
+
def initialize: (
|
|
2547
|
+
property_key: String,
|
|
2548
|
+
property_value: String
|
|
2549
|
+
) -> void
|
|
2550
|
+
|
|
2551
|
+
def to_hash: -> { property_key: String, property_value: String }
|
|
2552
|
+
end
|
|
2553
|
+
|
|
2554
|
+
type tier = { unit_amount: String, tier_lower_bound: String? }
|
|
2555
|
+
|
|
2556
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2557
|
+
attr_accessor unit_amount: String
|
|
2558
|
+
|
|
2559
|
+
attr_accessor tier_lower_bound: String?
|
|
2560
|
+
|
|
2561
|
+
def initialize: (
|
|
2562
|
+
unit_amount: String,
|
|
2563
|
+
?tier_lower_bound: String?
|
|
2564
|
+
) -> void
|
|
2565
|
+
|
|
2566
|
+
def to_hash: -> {
|
|
2567
|
+
unit_amount: String,
|
|
2568
|
+
tier_lower_bound: String?
|
|
2569
|
+
}
|
|
2570
|
+
end
|
|
2571
|
+
end
|
|
2572
|
+
|
|
2573
|
+
type cadence =
|
|
2574
|
+
:annual
|
|
2575
|
+
| :semi_annual
|
|
2576
|
+
| :monthly
|
|
2577
|
+
| :quarterly
|
|
2578
|
+
| :one_time
|
|
2579
|
+
| :custom
|
|
2580
|
+
|
|
2581
|
+
module Cadence
|
|
2582
|
+
extend Orb::Internal::Type::Enum
|
|
2583
|
+
|
|
2584
|
+
ANNUAL: :annual
|
|
2585
|
+
SEMI_ANNUAL: :semi_annual
|
|
2586
|
+
MONTHLY: :monthly
|
|
2587
|
+
QUARTERLY: :quarterly
|
|
2588
|
+
ONE_TIME: :one_time
|
|
2589
|
+
CUSTOM: :custom
|
|
2590
|
+
|
|
2591
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence]
|
|
2592
|
+
end
|
|
2593
|
+
end
|
|
2594
|
+
|
|
2595
|
+
type matrix_with_threshold_discounts =
|
|
2596
|
+
{
|
|
2597
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2598
|
+
item_id: String,
|
|
2599
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2600
|
+
model_type: :matrix_with_threshold_discounts,
|
|
2601
|
+
name: String,
|
|
2602
|
+
billable_metric_id: String?,
|
|
2603
|
+
billed_in_advance: bool?,
|
|
2604
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2605
|
+
conversion_rate: Float?,
|
|
2606
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2607
|
+
currency: String?,
|
|
2608
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2609
|
+
external_price_id: String?,
|
|
2610
|
+
fixed_price_quantity: Float?,
|
|
2611
|
+
invoice_grouping_key: String?,
|
|
2612
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2613
|
+
license_type_id: String?,
|
|
2614
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2615
|
+
reference_id: String?
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
2619
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence
|
|
2620
|
+
|
|
2621
|
+
attr_accessor item_id: String
|
|
2622
|
+
|
|
2623
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
2624
|
+
|
|
2625
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
2626
|
+
|
|
2627
|
+
attr_accessor name: String
|
|
2628
|
+
|
|
2629
|
+
attr_accessor billable_metric_id: String?
|
|
2630
|
+
|
|
2631
|
+
attr_accessor billed_in_advance: bool?
|
|
2632
|
+
|
|
2633
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2634
|
+
|
|
2635
|
+
attr_accessor conversion_rate: Float?
|
|
2636
|
+
|
|
2637
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2638
|
+
|
|
2639
|
+
attr_accessor currency: String?
|
|
2640
|
+
|
|
2641
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2642
|
+
|
|
2643
|
+
attr_accessor external_price_id: String?
|
|
2644
|
+
|
|
2645
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2646
|
+
|
|
2647
|
+
attr_accessor invoice_grouping_key: String?
|
|
2648
|
+
|
|
2649
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2650
|
+
|
|
2651
|
+
attr_accessor license_type_id: String?
|
|
2652
|
+
|
|
2653
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2654
|
+
|
|
2655
|
+
attr_accessor reference_id: String?
|
|
2656
|
+
|
|
2657
|
+
def initialize: (
|
|
2658
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2659
|
+
item_id: String,
|
|
2660
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2661
|
+
name: String,
|
|
2662
|
+
?billable_metric_id: String?,
|
|
2663
|
+
?billed_in_advance: bool?,
|
|
2664
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2665
|
+
?conversion_rate: Float?,
|
|
2666
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2667
|
+
?currency: String?,
|
|
2668
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2669
|
+
?external_price_id: String?,
|
|
2670
|
+
?fixed_price_quantity: Float?,
|
|
2671
|
+
?invoice_grouping_key: String?,
|
|
2672
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2673
|
+
?license_type_id: String?,
|
|
2674
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2675
|
+
?reference_id: String?,
|
|
2676
|
+
?model_type: :matrix_with_threshold_discounts
|
|
2677
|
+
) -> void
|
|
2678
|
+
|
|
2679
|
+
def to_hash: -> {
|
|
2680
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2681
|
+
item_id: String,
|
|
2682
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2683
|
+
model_type: :matrix_with_threshold_discounts,
|
|
2684
|
+
name: String,
|
|
2685
|
+
billable_metric_id: String?,
|
|
2686
|
+
billed_in_advance: bool?,
|
|
2687
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2688
|
+
conversion_rate: Float?,
|
|
2689
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2690
|
+
currency: String?,
|
|
2691
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2692
|
+
external_price_id: String?,
|
|
2693
|
+
fixed_price_quantity: Float?,
|
|
2694
|
+
invoice_grouping_key: String?,
|
|
2695
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2696
|
+
license_type_id: String?,
|
|
2697
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2698
|
+
reference_id: String?
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
type cadence =
|
|
2702
|
+
:annual
|
|
2703
|
+
| :semi_annual
|
|
2704
|
+
| :monthly
|
|
2705
|
+
| :quarterly
|
|
2706
|
+
| :one_time
|
|
2707
|
+
| :custom
|
|
2708
|
+
|
|
2709
|
+
module Cadence
|
|
2710
|
+
extend Orb::Internal::Type::Enum
|
|
2711
|
+
|
|
2712
|
+
ANNUAL: :annual
|
|
2713
|
+
SEMI_ANNUAL: :semi_annual
|
|
2714
|
+
MONTHLY: :monthly
|
|
2715
|
+
QUARTERLY: :quarterly
|
|
2716
|
+
ONE_TIME: :one_time
|
|
2717
|
+
CUSTOM: :custom
|
|
2718
|
+
|
|
2719
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence]
|
|
2720
|
+
end
|
|
2721
|
+
|
|
2722
|
+
type matrix_with_threshold_discounts_config =
|
|
2723
|
+
{
|
|
2724
|
+
default_unit_amount: String,
|
|
2725
|
+
first_dimension: String,
|
|
2726
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2727
|
+
second_dimension: String?,
|
|
2728
|
+
threshold_discount_groups: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
2732
|
+
attr_accessor default_unit_amount: String
|
|
2733
|
+
|
|
2734
|
+
attr_accessor first_dimension: String
|
|
2735
|
+
|
|
2736
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
2737
|
+
|
|
2738
|
+
attr_accessor second_dimension: String?
|
|
2739
|
+
|
|
2740
|
+
attr_reader threshold_discount_groups: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
2741
|
+
|
|
2742
|
+
def threshold_discount_groups=: (
|
|
2743
|
+
::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2744
|
+
) -> ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2745
|
+
|
|
2746
|
+
def initialize: (
|
|
2747
|
+
default_unit_amount: String,
|
|
2748
|
+
first_dimension: String,
|
|
2749
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2750
|
+
?second_dimension: String?,
|
|
2751
|
+
?threshold_discount_groups: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2752
|
+
) -> void
|
|
2753
|
+
|
|
2754
|
+
def to_hash: -> {
|
|
2755
|
+
default_unit_amount: String,
|
|
2756
|
+
first_dimension: String,
|
|
2757
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2758
|
+
second_dimension: String?,
|
|
2759
|
+
threshold_discount_groups: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
type matrix_value =
|
|
2763
|
+
{
|
|
2764
|
+
first_dimension_value: String,
|
|
2765
|
+
unit_amount: String,
|
|
2766
|
+
second_dimension_value: String?
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
2770
|
+
attr_accessor first_dimension_value: String
|
|
2771
|
+
|
|
2772
|
+
attr_accessor unit_amount: String
|
|
2773
|
+
|
|
2774
|
+
attr_accessor second_dimension_value: String?
|
|
2775
|
+
|
|
2776
|
+
def initialize: (
|
|
2777
|
+
first_dimension_value: String,
|
|
2778
|
+
unit_amount: String,
|
|
2779
|
+
?second_dimension_value: String?
|
|
2780
|
+
) -> void
|
|
2781
|
+
|
|
2782
|
+
def to_hash: -> {
|
|
2783
|
+
first_dimension_value: String,
|
|
2784
|
+
unit_amount: String,
|
|
2785
|
+
second_dimension_value: String?
|
|
2786
|
+
}
|
|
2787
|
+
end
|
|
2788
|
+
|
|
2789
|
+
type threshold_discount_group =
|
|
2790
|
+
{
|
|
2791
|
+
above_threshold_discount_percentage: String,
|
|
2792
|
+
below_threshold_discount_percentage: String,
|
|
2793
|
+
cell_coordinates: String,
|
|
2794
|
+
threshold_amount: String,
|
|
2795
|
+
description: String?
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
2799
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
2800
|
+
|
|
2801
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
2802
|
+
|
|
2803
|
+
attr_accessor cell_coordinates: String
|
|
2804
|
+
|
|
2805
|
+
attr_accessor threshold_amount: String
|
|
2806
|
+
|
|
2807
|
+
attr_accessor description: String?
|
|
2808
|
+
|
|
2809
|
+
def initialize: (
|
|
2810
|
+
above_threshold_discount_percentage: String,
|
|
2811
|
+
below_threshold_discount_percentage: String,
|
|
2812
|
+
cell_coordinates: String,
|
|
2813
|
+
threshold_amount: String,
|
|
2814
|
+
?description: String?
|
|
2815
|
+
) -> void
|
|
2816
|
+
|
|
2817
|
+
def to_hash: -> {
|
|
2818
|
+
above_threshold_discount_percentage: String,
|
|
2819
|
+
below_threshold_discount_percentage: String,
|
|
2820
|
+
cell_coordinates: String,
|
|
2821
|
+
threshold_amount: String,
|
|
2822
|
+
description: String?
|
|
2823
|
+
}
|
|
2824
|
+
end
|
|
2825
|
+
end
|
|
2826
|
+
end
|
|
2827
|
+
|
|
2828
|
+
type tiered_with_proration =
|
|
2829
|
+
{
|
|
2830
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
2831
|
+
item_id: String,
|
|
2832
|
+
model_type: :tiered_with_proration,
|
|
2833
|
+
name: String,
|
|
2834
|
+
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
2835
|
+
billable_metric_id: String?,
|
|
2836
|
+
billed_in_advance: bool?,
|
|
2837
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2838
|
+
conversion_rate: Float?,
|
|
2839
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2840
|
+
currency: String?,
|
|
2841
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2842
|
+
external_price_id: String?,
|
|
2843
|
+
fixed_price_quantity: Float?,
|
|
2844
|
+
invoice_grouping_key: String?,
|
|
2845
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2846
|
+
license_type_id: String?,
|
|
2847
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2848
|
+
reference_id: String?
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
class TieredWithProration < Orb::Internal::Type::BaseModel
|
|
2852
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence
|
|
2853
|
+
|
|
2854
|
+
attr_accessor item_id: String
|
|
2855
|
+
|
|
2856
|
+
attr_accessor model_type: :tiered_with_proration
|
|
2857
|
+
|
|
2858
|
+
attr_accessor name: String
|
|
2859
|
+
|
|
2860
|
+
attr_accessor tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
2861
|
+
|
|
2862
|
+
attr_accessor billable_metric_id: String?
|
|
2863
|
+
|
|
2864
|
+
attr_accessor billed_in_advance: bool?
|
|
2865
|
+
|
|
2866
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2867
|
+
|
|
2868
|
+
attr_accessor conversion_rate: Float?
|
|
2869
|
+
|
|
2870
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2871
|
+
|
|
2872
|
+
attr_accessor currency: String?
|
|
2873
|
+
|
|
2874
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2875
|
+
|
|
2876
|
+
attr_accessor external_price_id: String?
|
|
2877
|
+
|
|
2878
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2879
|
+
|
|
2880
|
+
attr_accessor invoice_grouping_key: String?
|
|
2881
|
+
|
|
2882
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2883
|
+
|
|
2884
|
+
attr_accessor license_type_id: String?
|
|
2885
|
+
|
|
2886
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2887
|
+
|
|
2888
|
+
attr_accessor reference_id: String?
|
|
2889
|
+
|
|
2890
|
+
def initialize: (
|
|
2891
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
1508
2892
|
item_id: String,
|
|
1509
2893
|
name: String,
|
|
2894
|
+
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1510
2895
|
?billable_metric_id: String?,
|
|
1511
2896
|
?billed_in_advance: bool?,
|
|
1512
2897
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1513
2898
|
?conversion_rate: Float?,
|
|
1514
|
-
?conversion_rate_config: Orb::Models::
|
|
2899
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1515
2900
|
?currency: String?,
|
|
1516
2901
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1517
2902
|
?external_price_id: String?,
|
|
@@ -1521,20 +2906,20 @@ module Orb
|
|
|
1521
2906
|
?license_type_id: String?,
|
|
1522
2907
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1523
2908
|
?reference_id: String?,
|
|
1524
|
-
?model_type: :
|
|
2909
|
+
?model_type: :tiered_with_proration
|
|
1525
2910
|
) -> void
|
|
1526
2911
|
|
|
1527
2912
|
def to_hash: -> {
|
|
1528
|
-
|
|
1529
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2913
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
1530
2914
|
item_id: String,
|
|
1531
|
-
model_type: :
|
|
2915
|
+
model_type: :tiered_with_proration,
|
|
1532
2916
|
name: String,
|
|
2917
|
+
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1533
2918
|
billable_metric_id: String?,
|
|
1534
2919
|
billed_in_advance: bool?,
|
|
1535
2920
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1536
2921
|
conversion_rate: Float?,
|
|
1537
|
-
conversion_rate_config: Orb::Models::
|
|
2922
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1538
2923
|
currency: String?,
|
|
1539
2924
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1540
2925
|
external_price_id: String?,
|
|
@@ -1546,60 +2931,168 @@ module Orb
|
|
|
1546
2931
|
reference_id: String?
|
|
1547
2932
|
}
|
|
1548
2933
|
|
|
1549
|
-
type
|
|
2934
|
+
type cadence =
|
|
2935
|
+
:annual
|
|
2936
|
+
| :semi_annual
|
|
2937
|
+
| :monthly
|
|
2938
|
+
| :quarterly
|
|
2939
|
+
| :one_time
|
|
2940
|
+
| :custom
|
|
2941
|
+
|
|
2942
|
+
module Cadence
|
|
2943
|
+
extend Orb::Internal::Type::Enum
|
|
2944
|
+
|
|
2945
|
+
ANNUAL: :annual
|
|
2946
|
+
SEMI_ANNUAL: :semi_annual
|
|
2947
|
+
MONTHLY: :monthly
|
|
2948
|
+
QUARTERLY: :quarterly
|
|
2949
|
+
ONE_TIME: :one_time
|
|
2950
|
+
CUSTOM: :custom
|
|
2951
|
+
|
|
2952
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence]
|
|
2953
|
+
end
|
|
2954
|
+
|
|
2955
|
+
type tiered_with_proration_config =
|
|
1550
2956
|
{
|
|
1551
|
-
|
|
1552
|
-
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2957
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1553
2958
|
}
|
|
1554
2959
|
|
|
1555
|
-
class
|
|
1556
|
-
attr_accessor
|
|
1557
|
-
|
|
1558
|
-
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2960
|
+
class TieredWithProrationConfig < Orb::Internal::Type::BaseModel
|
|
2961
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1559
2962
|
|
|
1560
2963
|
def initialize: (
|
|
1561
|
-
|
|
1562
|
-
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2964
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1563
2965
|
) -> void
|
|
1564
2966
|
|
|
1565
2967
|
def to_hash: -> {
|
|
1566
|
-
|
|
1567
|
-
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2968
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1568
2969
|
}
|
|
1569
2970
|
|
|
1570
|
-
type
|
|
2971
|
+
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1571
2972
|
|
|
1572
|
-
class
|
|
1573
|
-
attr_accessor
|
|
2973
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2974
|
+
attr_accessor tier_lower_bound: String
|
|
1574
2975
|
|
|
1575
|
-
attr_accessor
|
|
2976
|
+
attr_accessor unit_amount: String
|
|
1576
2977
|
|
|
1577
2978
|
def initialize: (
|
|
1578
|
-
|
|
1579
|
-
|
|
2979
|
+
tier_lower_bound: String,
|
|
2980
|
+
unit_amount: String
|
|
1580
2981
|
) -> void
|
|
1581
2982
|
|
|
1582
|
-
def to_hash: -> {
|
|
2983
|
+
def to_hash: -> {
|
|
2984
|
+
tier_lower_bound: String,
|
|
2985
|
+
unit_amount: String
|
|
2986
|
+
}
|
|
1583
2987
|
end
|
|
2988
|
+
end
|
|
2989
|
+
end
|
|
1584
2990
|
|
|
1585
|
-
|
|
2991
|
+
type grouped_with_min_max_thresholds =
|
|
2992
|
+
{
|
|
2993
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
2994
|
+
grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
2995
|
+
item_id: String,
|
|
2996
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
2997
|
+
name: String,
|
|
2998
|
+
billable_metric_id: String?,
|
|
2999
|
+
billed_in_advance: bool?,
|
|
3000
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3001
|
+
conversion_rate: Float?,
|
|
3002
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3003
|
+
currency: String?,
|
|
3004
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3005
|
+
external_price_id: String?,
|
|
3006
|
+
fixed_price_quantity: Float?,
|
|
3007
|
+
invoice_grouping_key: String?,
|
|
3008
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3009
|
+
license_type_id: String?,
|
|
3010
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3011
|
+
reference_id: String?
|
|
3012
|
+
}
|
|
1586
3013
|
|
|
1587
|
-
|
|
1588
|
-
|
|
3014
|
+
class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel
|
|
3015
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence
|
|
3016
|
+
|
|
3017
|
+
attr_accessor grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig
|
|
3018
|
+
|
|
3019
|
+
attr_accessor item_id: String
|
|
3020
|
+
|
|
3021
|
+
attr_accessor model_type: :grouped_with_min_max_thresholds
|
|
3022
|
+
|
|
3023
|
+
attr_accessor name: String
|
|
3024
|
+
|
|
3025
|
+
attr_accessor billable_metric_id: String?
|
|
3026
|
+
|
|
3027
|
+
attr_accessor billed_in_advance: bool?
|
|
3028
|
+
|
|
3029
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3030
|
+
|
|
3031
|
+
attr_accessor conversion_rate: Float?
|
|
3032
|
+
|
|
3033
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
3034
|
+
|
|
3035
|
+
attr_accessor currency: String?
|
|
3036
|
+
|
|
3037
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
3038
|
+
|
|
3039
|
+
attr_accessor external_price_id: String?
|
|
3040
|
+
|
|
3041
|
+
attr_accessor fixed_price_quantity: Float?
|
|
3042
|
+
|
|
3043
|
+
attr_accessor invoice_grouping_key: String?
|
|
3044
|
+
|
|
3045
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3046
|
+
|
|
3047
|
+
attr_accessor license_type_id: String?
|
|
1589
3048
|
|
|
1590
|
-
|
|
3049
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1591
3050
|
|
|
1592
|
-
|
|
1593
|
-
unit_amount: String,
|
|
1594
|
-
?tier_lower_bound: String?
|
|
1595
|
-
) -> void
|
|
3051
|
+
attr_accessor reference_id: String?
|
|
1596
3052
|
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
3053
|
+
def initialize: (
|
|
3054
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3055
|
+
grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3056
|
+
item_id: String,
|
|
3057
|
+
name: String,
|
|
3058
|
+
?billable_metric_id: String?,
|
|
3059
|
+
?billed_in_advance: bool?,
|
|
3060
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3061
|
+
?conversion_rate: Float?,
|
|
3062
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3063
|
+
?currency: String?,
|
|
3064
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3065
|
+
?external_price_id: String?,
|
|
3066
|
+
?fixed_price_quantity: Float?,
|
|
3067
|
+
?invoice_grouping_key: String?,
|
|
3068
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3069
|
+
?license_type_id: String?,
|
|
3070
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
3071
|
+
?reference_id: String?,
|
|
3072
|
+
?model_type: :grouped_with_min_max_thresholds
|
|
3073
|
+
) -> void
|
|
3074
|
+
|
|
3075
|
+
def to_hash: -> {
|
|
3076
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3077
|
+
grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3078
|
+
item_id: String,
|
|
3079
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
3080
|
+
name: String,
|
|
3081
|
+
billable_metric_id: String?,
|
|
3082
|
+
billed_in_advance: bool?,
|
|
3083
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3084
|
+
conversion_rate: Float?,
|
|
3085
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3086
|
+
currency: String?,
|
|
3087
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3088
|
+
external_price_id: String?,
|
|
3089
|
+
fixed_price_quantity: Float?,
|
|
3090
|
+
invoice_grouping_key: String?,
|
|
3091
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3092
|
+
license_type_id: String?,
|
|
3093
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3094
|
+
reference_id: String?
|
|
3095
|
+
}
|
|
1603
3096
|
|
|
1604
3097
|
type cadence =
|
|
1605
3098
|
:annual
|
|
@@ -1619,22 +3112,54 @@ module Orb
|
|
|
1619
3112
|
ONE_TIME: :one_time
|
|
1620
3113
|
CUSTOM: :custom
|
|
1621
3114
|
|
|
1622
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3115
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence]
|
|
3116
|
+
end
|
|
3117
|
+
|
|
3118
|
+
type grouped_with_min_max_thresholds_config =
|
|
3119
|
+
{
|
|
3120
|
+
grouping_key: String,
|
|
3121
|
+
maximum_charge: String,
|
|
3122
|
+
minimum_charge: String,
|
|
3123
|
+
per_unit_rate: String
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
3127
|
+
attr_accessor grouping_key: String
|
|
3128
|
+
|
|
3129
|
+
attr_accessor maximum_charge: String
|
|
3130
|
+
|
|
3131
|
+
attr_accessor minimum_charge: String
|
|
3132
|
+
|
|
3133
|
+
attr_accessor per_unit_rate: String
|
|
3134
|
+
|
|
3135
|
+
def initialize: (
|
|
3136
|
+
grouping_key: String,
|
|
3137
|
+
maximum_charge: String,
|
|
3138
|
+
minimum_charge: String,
|
|
3139
|
+
per_unit_rate: String
|
|
3140
|
+
) -> void
|
|
3141
|
+
|
|
3142
|
+
def to_hash: -> {
|
|
3143
|
+
grouping_key: String,
|
|
3144
|
+
maximum_charge: String,
|
|
3145
|
+
minimum_charge: String,
|
|
3146
|
+
per_unit_rate: String
|
|
3147
|
+
}
|
|
1623
3148
|
end
|
|
1624
3149
|
end
|
|
1625
3150
|
|
|
1626
|
-
type
|
|
3151
|
+
type cumulative_grouped_allocation =
|
|
1627
3152
|
{
|
|
1628
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3153
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3154
|
+
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1629
3155
|
item_id: String,
|
|
1630
|
-
model_type: :
|
|
3156
|
+
model_type: :cumulative_grouped_allocation,
|
|
1631
3157
|
name: String,
|
|
1632
|
-
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1633
3158
|
billable_metric_id: String?,
|
|
1634
3159
|
billed_in_advance: bool?,
|
|
1635
3160
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1636
3161
|
conversion_rate: Float?,
|
|
1637
|
-
conversion_rate_config: Orb::Models::
|
|
3162
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1638
3163
|
currency: String?,
|
|
1639
3164
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1640
3165
|
external_price_id: String?,
|
|
@@ -1646,17 +3171,17 @@ module Orb
|
|
|
1646
3171
|
reference_id: String?
|
|
1647
3172
|
}
|
|
1648
3173
|
|
|
1649
|
-
class
|
|
1650
|
-
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3174
|
+
class CumulativeGroupedAllocation < Orb::Internal::Type::BaseModel
|
|
3175
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence
|
|
3176
|
+
|
|
3177
|
+
attr_accessor cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
1651
3178
|
|
|
1652
3179
|
attr_accessor item_id: String
|
|
1653
3180
|
|
|
1654
|
-
attr_accessor model_type: :
|
|
3181
|
+
attr_accessor model_type: :cumulative_grouped_allocation
|
|
1655
3182
|
|
|
1656
3183
|
attr_accessor name: String
|
|
1657
3184
|
|
|
1658
|
-
attr_accessor tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
1659
|
-
|
|
1660
3185
|
attr_accessor billable_metric_id: String?
|
|
1661
3186
|
|
|
1662
3187
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1665,7 +3190,7 @@ module Orb
|
|
|
1665
3190
|
|
|
1666
3191
|
attr_accessor conversion_rate: Float?
|
|
1667
3192
|
|
|
1668
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3193
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1669
3194
|
|
|
1670
3195
|
attr_accessor currency: String?
|
|
1671
3196
|
|
|
@@ -1686,15 +3211,15 @@ module Orb
|
|
|
1686
3211
|
attr_accessor reference_id: String?
|
|
1687
3212
|
|
|
1688
3213
|
def initialize: (
|
|
1689
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3214
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3215
|
+
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1690
3216
|
item_id: String,
|
|
1691
3217
|
name: String,
|
|
1692
|
-
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1693
3218
|
?billable_metric_id: String?,
|
|
1694
3219
|
?billed_in_advance: bool?,
|
|
1695
3220
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1696
3221
|
?conversion_rate: Float?,
|
|
1697
|
-
?conversion_rate_config: Orb::Models::
|
|
3222
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1698
3223
|
?currency: String?,
|
|
1699
3224
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1700
3225
|
?external_price_id: String?,
|
|
@@ -1704,20 +3229,20 @@ module Orb
|
|
|
1704
3229
|
?license_type_id: String?,
|
|
1705
3230
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1706
3231
|
?reference_id: String?,
|
|
1707
|
-
?model_type: :
|
|
3232
|
+
?model_type: :cumulative_grouped_allocation
|
|
1708
3233
|
) -> void
|
|
1709
3234
|
|
|
1710
3235
|
def to_hash: -> {
|
|
1711
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3236
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3237
|
+
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1712
3238
|
item_id: String,
|
|
1713
|
-
model_type: :
|
|
3239
|
+
model_type: :cumulative_grouped_allocation,
|
|
1714
3240
|
name: String,
|
|
1715
|
-
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1716
3241
|
billable_metric_id: String?,
|
|
1717
3242
|
billed_in_advance: bool?,
|
|
1718
3243
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1719
3244
|
conversion_rate: Float?,
|
|
1720
|
-
conversion_rate_config: Orb::Models::
|
|
3245
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1721
3246
|
currency: String?,
|
|
1722
3247
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1723
3248
|
external_price_id: String?,
|
|
@@ -1747,57 +3272,54 @@ module Orb
|
|
|
1747
3272
|
ONE_TIME: :one_time
|
|
1748
3273
|
CUSTOM: :custom
|
|
1749
3274
|
|
|
1750
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3275
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence]
|
|
1751
3276
|
end
|
|
1752
3277
|
|
|
1753
|
-
type
|
|
3278
|
+
type cumulative_grouped_allocation_config =
|
|
1754
3279
|
{
|
|
1755
|
-
|
|
3280
|
+
cumulative_allocation: String,
|
|
3281
|
+
group_allocation: String,
|
|
3282
|
+
grouping_key: String,
|
|
3283
|
+
unit_amount: String
|
|
1756
3284
|
}
|
|
1757
3285
|
|
|
1758
|
-
class
|
|
1759
|
-
attr_accessor
|
|
3286
|
+
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
3287
|
+
attr_accessor cumulative_allocation: String
|
|
3288
|
+
|
|
3289
|
+
attr_accessor group_allocation: String
|
|
3290
|
+
|
|
3291
|
+
attr_accessor grouping_key: String
|
|
3292
|
+
|
|
3293
|
+
attr_accessor unit_amount: String
|
|
1760
3294
|
|
|
1761
3295
|
def initialize: (
|
|
1762
|
-
|
|
3296
|
+
cumulative_allocation: String,
|
|
3297
|
+
group_allocation: String,
|
|
3298
|
+
grouping_key: String,
|
|
3299
|
+
unit_amount: String
|
|
1763
3300
|
) -> void
|
|
1764
3301
|
|
|
1765
3302
|
def to_hash: -> {
|
|
1766
|
-
|
|
3303
|
+
cumulative_allocation: String,
|
|
3304
|
+
group_allocation: String,
|
|
3305
|
+
grouping_key: String,
|
|
3306
|
+
unit_amount: String
|
|
1767
3307
|
}
|
|
1768
|
-
|
|
1769
|
-
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1770
|
-
|
|
1771
|
-
class Tier < Orb::Internal::Type::BaseModel
|
|
1772
|
-
attr_accessor tier_lower_bound: String
|
|
1773
|
-
|
|
1774
|
-
attr_accessor unit_amount: String
|
|
1775
|
-
|
|
1776
|
-
def initialize: (
|
|
1777
|
-
tier_lower_bound: String,
|
|
1778
|
-
unit_amount: String
|
|
1779
|
-
) -> void
|
|
1780
|
-
|
|
1781
|
-
def to_hash: -> {
|
|
1782
|
-
tier_lower_bound: String,
|
|
1783
|
-
unit_amount: String
|
|
1784
|
-
}
|
|
1785
|
-
end
|
|
1786
3308
|
end
|
|
1787
3309
|
end
|
|
1788
3310
|
|
|
1789
|
-
type
|
|
3311
|
+
type daily_credit_allowance =
|
|
1790
3312
|
{
|
|
1791
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1792
|
-
|
|
3313
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3314
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1793
3315
|
item_id: String,
|
|
1794
|
-
model_type: :
|
|
3316
|
+
model_type: :daily_credit_allowance,
|
|
1795
3317
|
name: String,
|
|
1796
3318
|
billable_metric_id: String?,
|
|
1797
3319
|
billed_in_advance: bool?,
|
|
1798
3320
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1799
3321
|
conversion_rate: Float?,
|
|
1800
|
-
conversion_rate_config: Orb::Models::
|
|
3322
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1801
3323
|
currency: String?,
|
|
1802
3324
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1803
3325
|
external_price_id: String?,
|
|
@@ -1809,14 +3331,14 @@ module Orb
|
|
|
1809
3331
|
reference_id: String?
|
|
1810
3332
|
}
|
|
1811
3333
|
|
|
1812
|
-
class
|
|
1813
|
-
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3334
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
3335
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence
|
|
1814
3336
|
|
|
1815
|
-
attr_accessor
|
|
3337
|
+
attr_accessor daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
1816
3338
|
|
|
1817
3339
|
attr_accessor item_id: String
|
|
1818
3340
|
|
|
1819
|
-
attr_accessor model_type: :
|
|
3341
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
1820
3342
|
|
|
1821
3343
|
attr_accessor name: String
|
|
1822
3344
|
|
|
@@ -1828,7 +3350,7 @@ module Orb
|
|
|
1828
3350
|
|
|
1829
3351
|
attr_accessor conversion_rate: Float?
|
|
1830
3352
|
|
|
1831
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3353
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1832
3354
|
|
|
1833
3355
|
attr_accessor currency: String?
|
|
1834
3356
|
|
|
@@ -1849,15 +3371,15 @@ module Orb
|
|
|
1849
3371
|
attr_accessor reference_id: String?
|
|
1850
3372
|
|
|
1851
3373
|
def initialize: (
|
|
1852
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1853
|
-
|
|
3374
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3375
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1854
3376
|
item_id: String,
|
|
1855
3377
|
name: String,
|
|
1856
3378
|
?billable_metric_id: String?,
|
|
1857
3379
|
?billed_in_advance: bool?,
|
|
1858
3380
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1859
3381
|
?conversion_rate: Float?,
|
|
1860
|
-
?conversion_rate_config: Orb::Models::
|
|
3382
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1861
3383
|
?currency: String?,
|
|
1862
3384
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1863
3385
|
?external_price_id: String?,
|
|
@@ -1867,20 +3389,20 @@ module Orb
|
|
|
1867
3389
|
?license_type_id: String?,
|
|
1868
3390
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1869
3391
|
?reference_id: String?,
|
|
1870
|
-
?model_type: :
|
|
3392
|
+
?model_type: :daily_credit_allowance
|
|
1871
3393
|
) -> void
|
|
1872
3394
|
|
|
1873
3395
|
def to_hash: -> {
|
|
1874
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1875
|
-
|
|
3396
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3397
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1876
3398
|
item_id: String,
|
|
1877
|
-
model_type: :
|
|
3399
|
+
model_type: :daily_credit_allowance,
|
|
1878
3400
|
name: String,
|
|
1879
3401
|
billable_metric_id: String?,
|
|
1880
3402
|
billed_in_advance: bool?,
|
|
1881
3403
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1882
3404
|
conversion_rate: Float?,
|
|
1883
|
-
conversion_rate_config: Orb::Models::
|
|
3405
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1884
3406
|
currency: String?,
|
|
1885
3407
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1886
3408
|
external_price_id: String?,
|
|
@@ -1910,54 +3432,78 @@ module Orb
|
|
|
1910
3432
|
ONE_TIME: :one_time
|
|
1911
3433
|
CUSTOM: :custom
|
|
1912
3434
|
|
|
1913
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3435
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence]
|
|
1914
3436
|
end
|
|
1915
3437
|
|
|
1916
|
-
type
|
|
3438
|
+
type daily_credit_allowance_config =
|
|
1917
3439
|
{
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
3440
|
+
daily_allowance: String,
|
|
3441
|
+
default_unit_amount: String,
|
|
3442
|
+
dimensions: ::Array[String?],
|
|
3443
|
+
event_day_property: String,
|
|
3444
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1922
3445
|
}
|
|
1923
3446
|
|
|
1924
|
-
class
|
|
1925
|
-
attr_accessor
|
|
3447
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3448
|
+
attr_accessor daily_allowance: String
|
|
1926
3449
|
|
|
1927
|
-
attr_accessor
|
|
3450
|
+
attr_accessor default_unit_amount: String
|
|
1928
3451
|
|
|
1929
|
-
attr_accessor
|
|
3452
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1930
3453
|
|
|
1931
|
-
attr_accessor
|
|
3454
|
+
attr_accessor event_day_property: String
|
|
3455
|
+
|
|
3456
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1932
3457
|
|
|
1933
3458
|
def initialize: (
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
3459
|
+
daily_allowance: String,
|
|
3460
|
+
default_unit_amount: String,
|
|
3461
|
+
dimensions: ::Array[String?],
|
|
3462
|
+
event_day_property: String,
|
|
3463
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1938
3464
|
) -> void
|
|
1939
3465
|
|
|
1940
3466
|
def to_hash: -> {
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
3467
|
+
daily_allowance: String,
|
|
3468
|
+
default_unit_amount: String,
|
|
3469
|
+
dimensions: ::Array[String?],
|
|
3470
|
+
event_day_property: String,
|
|
3471
|
+
matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1945
3472
|
}
|
|
3473
|
+
|
|
3474
|
+
type matrix_value =
|
|
3475
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
3476
|
+
|
|
3477
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
3478
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
3479
|
+
|
|
3480
|
+
attr_accessor unit_amount: String
|
|
3481
|
+
|
|
3482
|
+
def initialize: (
|
|
3483
|
+
dimension_values: ::Array[String?],
|
|
3484
|
+
unit_amount: String
|
|
3485
|
+
) -> void
|
|
3486
|
+
|
|
3487
|
+
def to_hash: -> {
|
|
3488
|
+
dimension_values: ::Array[String?],
|
|
3489
|
+
unit_amount: String
|
|
3490
|
+
}
|
|
3491
|
+
end
|
|
1946
3492
|
end
|
|
1947
3493
|
end
|
|
1948
3494
|
|
|
1949
|
-
type
|
|
3495
|
+
type metered_allowance =
|
|
1950
3496
|
{
|
|
1951
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1952
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3497
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1953
3498
|
item_id: String,
|
|
1954
|
-
|
|
3499
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3500
|
+
model_type: :metered_allowance,
|
|
1955
3501
|
name: String,
|
|
1956
3502
|
billable_metric_id: String?,
|
|
1957
3503
|
billed_in_advance: bool?,
|
|
1958
3504
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1959
3505
|
conversion_rate: Float?,
|
|
1960
|
-
conversion_rate_config: Orb::Models::
|
|
3506
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1961
3507
|
currency: String?,
|
|
1962
3508
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1963
3509
|
external_price_id: String?,
|
|
@@ -1969,14 +3515,14 @@ module Orb
|
|
|
1969
3515
|
reference_id: String?
|
|
1970
3516
|
}
|
|
1971
3517
|
|
|
1972
|
-
class
|
|
1973
|
-
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1974
|
-
|
|
1975
|
-
attr_accessor cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
3518
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
3519
|
+
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence
|
|
1976
3520
|
|
|
1977
3521
|
attr_accessor item_id: String
|
|
1978
3522
|
|
|
1979
|
-
attr_accessor
|
|
3523
|
+
attr_accessor metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
3524
|
+
|
|
3525
|
+
attr_accessor model_type: :metered_allowance
|
|
1980
3526
|
|
|
1981
3527
|
attr_accessor name: String
|
|
1982
3528
|
|
|
@@ -1988,7 +3534,7 @@ module Orb
|
|
|
1988
3534
|
|
|
1989
3535
|
attr_accessor conversion_rate: Float?
|
|
1990
3536
|
|
|
1991
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3537
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1992
3538
|
|
|
1993
3539
|
attr_accessor currency: String?
|
|
1994
3540
|
|
|
@@ -2009,15 +3555,15 @@ module Orb
|
|
|
2009
3555
|
attr_accessor reference_id: String?
|
|
2010
3556
|
|
|
2011
3557
|
def initialize: (
|
|
2012
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
2013
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3558
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
2014
3559
|
item_id: String,
|
|
3560
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
2015
3561
|
name: String,
|
|
2016
3562
|
?billable_metric_id: String?,
|
|
2017
3563
|
?billed_in_advance: bool?,
|
|
2018
3564
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2019
3565
|
?conversion_rate: Float?,
|
|
2020
|
-
?conversion_rate_config: Orb::Models::
|
|
3566
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2021
3567
|
?currency: String?,
|
|
2022
3568
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2023
3569
|
?external_price_id: String?,
|
|
@@ -2027,20 +3573,20 @@ module Orb
|
|
|
2027
3573
|
?license_type_id: String?,
|
|
2028
3574
|
?metadata: ::Hash[Symbol, String?]?,
|
|
2029
3575
|
?reference_id: String?,
|
|
2030
|
-
?model_type: :
|
|
3576
|
+
?model_type: :metered_allowance
|
|
2031
3577
|
) -> void
|
|
2032
3578
|
|
|
2033
3579
|
def to_hash: -> {
|
|
2034
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
2035
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3580
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
2036
3581
|
item_id: String,
|
|
2037
|
-
|
|
3582
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3583
|
+
model_type: :metered_allowance,
|
|
2038
3584
|
name: String,
|
|
2039
3585
|
billable_metric_id: String?,
|
|
2040
3586
|
billed_in_advance: bool?,
|
|
2041
3587
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2042
3588
|
conversion_rate: Float?,
|
|
2043
|
-
conversion_rate_config: Orb::Models::
|
|
3589
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2044
3590
|
currency: String?,
|
|
2045
3591
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2046
3592
|
external_price_id: String?,
|
|
@@ -2070,38 +3616,52 @@ module Orb
|
|
|
2070
3616
|
ONE_TIME: :one_time
|
|
2071
3617
|
CUSTOM: :custom
|
|
2072
3618
|
|
|
2073
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3619
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence]
|
|
2074
3620
|
end
|
|
2075
3621
|
|
|
2076
|
-
type
|
|
3622
|
+
type metered_allowance_config =
|
|
2077
3623
|
{
|
|
2078
|
-
|
|
2079
|
-
|
|
3624
|
+
allowance_grouping_value: String,
|
|
3625
|
+
consumption_grouping_value: String,
|
|
2080
3626
|
grouping_key: String,
|
|
2081
|
-
unit_amount: String
|
|
3627
|
+
unit_amount: String,
|
|
3628
|
+
allowance_display_name: String,
|
|
3629
|
+
consumption_display_name: String
|
|
2082
3630
|
}
|
|
2083
3631
|
|
|
2084
|
-
class
|
|
2085
|
-
attr_accessor
|
|
3632
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3633
|
+
attr_accessor allowance_grouping_value: String
|
|
2086
3634
|
|
|
2087
|
-
attr_accessor
|
|
3635
|
+
attr_accessor consumption_grouping_value: String
|
|
2088
3636
|
|
|
2089
3637
|
attr_accessor grouping_key: String
|
|
2090
3638
|
|
|
2091
3639
|
attr_accessor unit_amount: String
|
|
2092
3640
|
|
|
3641
|
+
attr_reader allowance_display_name: String?
|
|
3642
|
+
|
|
3643
|
+
def allowance_display_name=: (String) -> String
|
|
3644
|
+
|
|
3645
|
+
attr_reader consumption_display_name: String?
|
|
3646
|
+
|
|
3647
|
+
def consumption_display_name=: (String) -> String
|
|
3648
|
+
|
|
2093
3649
|
def initialize: (
|
|
2094
|
-
|
|
2095
|
-
|
|
3650
|
+
allowance_grouping_value: String,
|
|
3651
|
+
consumption_grouping_value: String,
|
|
2096
3652
|
grouping_key: String,
|
|
2097
|
-
unit_amount: String
|
|
3653
|
+
unit_amount: String,
|
|
3654
|
+
?allowance_display_name: String,
|
|
3655
|
+
?consumption_display_name: String
|
|
2098
3656
|
) -> void
|
|
2099
3657
|
|
|
2100
3658
|
def to_hash: -> {
|
|
2101
|
-
|
|
2102
|
-
|
|
3659
|
+
allowance_grouping_value: String,
|
|
3660
|
+
consumption_grouping_value: String,
|
|
2103
3661
|
grouping_key: String,
|
|
2104
|
-
unit_amount: String
|
|
3662
|
+
unit_amount: String,
|
|
3663
|
+
allowance_display_name: String,
|
|
3664
|
+
consumption_display_name: String
|
|
2105
3665
|
}
|
|
2106
3666
|
end
|
|
2107
3667
|
end
|
|
@@ -2117,7 +3677,7 @@ module Orb
|
|
|
2117
3677
|
billed_in_advance: bool?,
|
|
2118
3678
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2119
3679
|
conversion_rate: Float?,
|
|
2120
|
-
conversion_rate_config: Orb::Models::
|
|
3680
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2121
3681
|
currency: String?,
|
|
2122
3682
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2123
3683
|
external_price_id: String?,
|
|
@@ -2148,7 +3708,7 @@ module Orb
|
|
|
2148
3708
|
|
|
2149
3709
|
attr_accessor conversion_rate: Float?
|
|
2150
3710
|
|
|
2151
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3711
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2152
3712
|
|
|
2153
3713
|
attr_accessor currency: String?
|
|
2154
3714
|
|
|
@@ -2177,7 +3737,7 @@ module Orb
|
|
|
2177
3737
|
?billed_in_advance: bool?,
|
|
2178
3738
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2179
3739
|
?conversion_rate: Float?,
|
|
2180
|
-
?conversion_rate_config: Orb::Models::
|
|
3740
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2181
3741
|
?currency: String?,
|
|
2182
3742
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2183
3743
|
?external_price_id: String?,
|
|
@@ -2200,7 +3760,7 @@ module Orb
|
|
|
2200
3760
|
billed_in_advance: bool?,
|
|
2201
3761
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2202
3762
|
conversion_rate: Float?,
|
|
2203
|
-
conversion_rate_config: Orb::Models::
|
|
3763
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2204
3764
|
currency: String?,
|
|
2205
3765
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2206
3766
|
external_price_id: String?,
|
|
@@ -2233,14 +3793,38 @@ module Orb
|
|
|
2233
3793
|
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent::cadence]
|
|
2234
3794
|
end
|
|
2235
3795
|
|
|
2236
|
-
type percent_config =
|
|
3796
|
+
type percent_config =
|
|
3797
|
+
{
|
|
3798
|
+
percent: Float,
|
|
3799
|
+
maximum_amount: String?,
|
|
3800
|
+
minimum_amount: String?,
|
|
3801
|
+
prorated: bool
|
|
3802
|
+
}
|
|
2237
3803
|
|
|
2238
3804
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
2239
3805
|
attr_accessor percent: Float
|
|
2240
3806
|
|
|
2241
|
-
|
|
3807
|
+
attr_accessor maximum_amount: String?
|
|
2242
3808
|
|
|
2243
|
-
|
|
3809
|
+
attr_accessor minimum_amount: String?
|
|
3810
|
+
|
|
3811
|
+
attr_reader prorated: bool?
|
|
3812
|
+
|
|
3813
|
+
def prorated=: (bool) -> bool
|
|
3814
|
+
|
|
3815
|
+
def initialize: (
|
|
3816
|
+
percent: Float,
|
|
3817
|
+
?maximum_amount: String?,
|
|
3818
|
+
?minimum_amount: String?,
|
|
3819
|
+
?prorated: bool
|
|
3820
|
+
) -> void
|
|
3821
|
+
|
|
3822
|
+
def to_hash: -> {
|
|
3823
|
+
percent: Float,
|
|
3824
|
+
maximum_amount: String?,
|
|
3825
|
+
minimum_amount: String?,
|
|
3826
|
+
prorated: bool
|
|
3827
|
+
}
|
|
2244
3828
|
end
|
|
2245
3829
|
end
|
|
2246
3830
|
|
|
@@ -2255,7 +3839,7 @@ module Orb
|
|
|
2255
3839
|
billed_in_advance: bool?,
|
|
2256
3840
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2257
3841
|
conversion_rate: Float?,
|
|
2258
|
-
conversion_rate_config: Orb::Models::
|
|
3842
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2259
3843
|
currency: String?,
|
|
2260
3844
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2261
3845
|
external_price_id: String?,
|
|
@@ -2286,7 +3870,7 @@ module Orb
|
|
|
2286
3870
|
|
|
2287
3871
|
attr_accessor conversion_rate: Float?
|
|
2288
3872
|
|
|
2289
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3873
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2290
3874
|
|
|
2291
3875
|
attr_accessor currency: String?
|
|
2292
3876
|
|
|
@@ -2315,7 +3899,7 @@ module Orb
|
|
|
2315
3899
|
?billed_in_advance: bool?,
|
|
2316
3900
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2317
3901
|
?conversion_rate: Float?,
|
|
2318
|
-
?conversion_rate_config: Orb::Models::
|
|
3902
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2319
3903
|
?currency: String?,
|
|
2320
3904
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2321
3905
|
?external_price_id: String?,
|
|
@@ -2338,7 +3922,7 @@ module Orb
|
|
|
2338
3922
|
billed_in_advance: bool?,
|
|
2339
3923
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2340
3924
|
conversion_rate: Float?,
|
|
2341
|
-
conversion_rate_config: Orb::Models::
|
|
3925
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2342
3926
|
currency: String?,
|
|
2343
3927
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2344
3928
|
external_price_id: String?,
|