orb-billing 1.14.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 +12 -0
- data/lib/orb/client.rb +14 -0
- data/lib/orb/internal/transport/base_client.rb +5 -0
- data/lib/orb/internal/type/union.rb +13 -27
- 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 +105 -1
- data/lib/orb/models/alert_create_for_subscription_params.rb +120 -7
- data/lib/orb/models/alert_update_params.rb +113 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +2419 -17109
- data/lib/orb/models/beta_create_plan_version_params.rb +2361 -16947
- data/lib/orb/models/changed_subscription_resources.rb +200 -10
- data/lib/orb/models/conversion_rate_config.rb +18 -0
- data/lib/orb/models/credit_block_list_invoices_response.rb +155 -1
- data/lib/orb/models/credit_block_retrieve_response.rb +150 -1
- data/lib/orb/models/customer.rb +111 -4
- data/lib/orb/models/customer_create_params.rb +6 -1
- data/lib/orb/models/customer_tax_id.rb +15 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +16 -2
- data/lib/orb/models/customer_update_params.rb +16 -2
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +155 -1
- data/lib/orb/models/customers/credit_list_response.rb +152 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +4 -4
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/discount.rb +145 -1
- data/lib/orb/models/event_ingest_params.rb +5 -2
- data/lib/orb/models/invoice.rb +198 -10
- data/lib/orb/models/invoice_create_params.rb +6 -5
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +200 -10
- 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/licenses/external_license_get_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_all_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_usage_params.rb +3 -3
- 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 +1047 -8228
- data/lib/orb/models/plan_update_params.rb +9 -1
- data/lib/orb/models/plan_version.rb +186 -5
- data/lib/orb/models/plans/external_plan_id_update_params.rb +9 -1
- data/lib/orb/models/plans/migration_cancel_response.rb +22 -4
- data/lib/orb/models/plans/migration_list_response.rb +22 -4
- data/lib/orb/models/plans/migration_retrieve_response.rb +22 -4
- data/lib/orb/models/price.rb +2614 -1268
- data/lib/orb/models/price_create_params.rb +866 -49
- data/lib/orb/models/price_evaluate_multiple_params.rb +889 -54
- data/lib/orb/models/price_evaluate_preview_events_params.rb +881 -46
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/subscription.rb +168 -4
- data/lib/orb/models/subscription_create_params.rb +2818 -674
- data/lib/orb/models/subscription_price_intervals_params.rb +1098 -57
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +2834 -687
- data/lib/orb/models/subscription_update_params.rb +12 -1
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/alerts.rb +14 -3
- data/lib/orb/resources/customers/credits/ledger.rb +28 -14
- data/lib/orb/resources/customers.rb +6 -2
- data/lib/orb/resources/events.rb +7 -34
- data/lib/orb/resources/invoices.rb +6 -2
- 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 +5 -5
- data/lib/orb/resources/subscriptions.rb +20 -3
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -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 +172 -3
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +268 -9
- data/rbi/orb/models/alert_update_params.rbi +208 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +3833 -28395
- data/rbi/orb/models/beta_create_plan_version_params.rbi +3833 -28363
- data/rbi/orb/models/changed_subscription_resources.rbi +360 -5
- data/rbi/orb/models/conversion_rate_config.rbi +18 -0
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +346 -3
- data/rbi/orb/models/credit_block_retrieve_response.rbi +344 -3
- data/rbi/orb/models/customer.rbi +190 -10
- data/rbi/orb/models/customer_create_params.rbi +12 -2
- data/rbi/orb/models/customer_tax_id.rbi +15 -1
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +22 -2
- data/rbi/orb/models/customer_update_params.rbi +22 -2
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +346 -3
- data/rbi/orb/models/customers/credit_list_response.rbi +347 -3
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +6 -6
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +6 -6
- data/rbi/orb/models/dimensional_price_group.rbi +1 -1
- data/rbi/orb/models/discount.rbi +269 -1
- data/rbi/orb/models/event_ingest_params.rbi +4 -2
- data/rbi/orb/models/invoice.rbi +360 -5
- data/rbi/orb/models/invoice_create_params.rbi +12 -7
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +360 -5
- 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/licenses/external_license_get_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_all_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_usage_params.rbi +3 -3
- 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 +1877 -14138
- data/rbi/orb/models/plan_update_params.rbi +8 -0
- data/rbi/orb/models/plan_version.rbi +339 -0
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +8 -0
- data/rbi/orb/models/plans/migration_cancel_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_list_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +22 -1
- data/rbi/orb/models/price.rbi +4552 -2285
- data/rbi/orb/models/price_create_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +1540 -114
- data/rbi/orb/models/price_interval.rbi +3 -0
- data/rbi/orb/models/subscription.rbi +324 -2
- data/rbi/orb/models/subscription_create_params.rbi +4998 -1186
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2127 -264
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +4997 -1185
- data/rbi/orb/models/subscription_update_params.rbi +14 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/alerts.rbi +39 -4
- data/rbi/orb/resources/customers/credits/ledger.rbi +28 -14
- data/rbi/orb/resources/customers.rbi +23 -0
- data/rbi/orb/resources/events.rbi +8 -35
- data/rbi/orb/resources/invoices.rbi +9 -3
- 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 +3 -0
- data/rbi/orb/resources/subscriptions.rbi +29 -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 +85 -3
- data/sig/orb/models/alert_create_for_subscription_params.rbs +86 -4
- data/sig/orb/models/alert_update_params.rbs +86 -1
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +1803 -11601
- data/sig/orb/models/beta_create_plan_version_params.rbs +1747 -11541
- data/sig/orb/models/changed_subscription_resources.rbs +140 -1
- data/sig/orb/models/conversion_rate_config.rbs +12 -0
- data/sig/orb/models/credit_block_list_invoices_response.rbs +124 -3
- data/sig/orb/models/credit_block_retrieve_response.rbs +124 -3
- data/sig/orb/models/customer.rbs +70 -4
- data/sig/orb/models/customer_create_params.rbs +2 -2
- data/sig/orb/models/customer_tax_id.rbs +20 -2
- data/sig/orb/models/customer_update_by_external_id_params.rbs +7 -2
- data/sig/orb/models/customer_update_params.rbs +7 -2
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +124 -3
- data/sig/orb/models/customers/credit_list_response.rbs +124 -3
- data/sig/orb/models/discount.rbs +114 -0
- data/sig/orb/models/invoice.rbs +140 -1
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +140 -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/licenses/external_license_get_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_all_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_usage_params.rbs +4 -4
- 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 +836 -5728
- data/sig/orb/models/plan_update_params.rbs +5 -0
- data/sig/orb/models/plan_version.rbs +134 -0
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +5 -0
- data/sig/orb/models/price.rbs +2200 -1150
- data/sig/orb/models/price_create_params.rbs +611 -23
- data/sig/orb/models/price_evaluate_multiple_params.rbs +626 -23
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +626 -23
- data/sig/orb/models/subscription.rbs +124 -0
- data/sig/orb/models/subscription_create_params.rbs +2009 -430
- data/sig/orb/models/subscription_price_intervals_params.rbs +795 -23
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2009 -430
- data/sig/orb/models/subscription_update_params.rbs +5 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/alerts.rbs +5 -1
- data/sig/orb/resources/customers.rbs +2 -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/subscriptions.rbs +3 -0
- metadata +6 -7
|
@@ -8,6 +8,7 @@ module Orb
|
|
|
8
8
|
add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?,
|
|
9
9
|
align_billing_with_plan_change_date: bool?,
|
|
10
10
|
auto_collection: bool?,
|
|
11
|
+
auto_issuance: bool?,
|
|
11
12
|
billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?,
|
|
12
13
|
billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
13
14
|
change_date: Time?,
|
|
@@ -48,6 +49,8 @@ module Orb
|
|
|
48
49
|
|
|
49
50
|
attr_accessor auto_collection: bool?
|
|
50
51
|
|
|
52
|
+
attr_accessor auto_issuance: bool?
|
|
53
|
+
|
|
51
54
|
attr_accessor billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?
|
|
52
55
|
|
|
53
56
|
attr_accessor billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?
|
|
@@ -97,6 +100,7 @@ module Orb
|
|
|
97
100
|
?add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?,
|
|
98
101
|
?align_billing_with_plan_change_date: bool?,
|
|
99
102
|
?auto_collection: bool?,
|
|
103
|
+
?auto_issuance: bool?,
|
|
100
104
|
?billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?,
|
|
101
105
|
?billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
102
106
|
?change_date: Time?,
|
|
@@ -128,6 +132,7 @@ module Orb
|
|
|
128
132
|
add_prices: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice]?,
|
|
129
133
|
align_billing_with_plan_change_date: bool?,
|
|
130
134
|
auto_collection: bool?,
|
|
135
|
+
auto_issuance: bool?,
|
|
131
136
|
billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?,
|
|
132
137
|
billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
133
138
|
change_date: Time?,
|
|
@@ -202,10 +207,179 @@ module Orb
|
|
|
202
207
|
| Orb::NewAmountDiscount
|
|
203
208
|
| Orb::NewMinimum
|
|
204
209
|
| Orb::NewMaximum
|
|
210
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::TieredPercentageDiscount
|
|
205
211
|
|
|
206
212
|
module Adjustment
|
|
207
213
|
extend Orb::Internal::Type::Union
|
|
208
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
|
+
|
|
209
383
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment]
|
|
210
384
|
end
|
|
211
385
|
end
|
|
@@ -291,6 +465,7 @@ module Orb
|
|
|
291
465
|
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
292
466
|
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
293
467
|
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
468
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MatrixWithThresholdDiscounts
|
|
294
469
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration
|
|
295
470
|
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
296
471
|
| Orb::NewSubscriptionGroupedAllocationPrice
|
|
@@ -305,6 +480,8 @@ module Orb
|
|
|
305
480
|
| Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice
|
|
306
481
|
| Orb::NewSubscriptionCumulativeGroupedBulkPrice
|
|
307
482
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::CumulativeGroupedAllocation
|
|
483
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance
|
|
484
|
+
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance
|
|
308
485
|
| Orb::NewSubscriptionMinimumCompositePrice
|
|
309
486
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent
|
|
310
487
|
| Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput
|
|
@@ -323,7 +500,7 @@ module Orb
|
|
|
323
500
|
billed_in_advance: bool?,
|
|
324
501
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
325
502
|
conversion_rate: Float?,
|
|
326
|
-
conversion_rate_config: Orb::Models::
|
|
503
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
327
504
|
currency: String?,
|
|
328
505
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
329
506
|
external_price_id: String?,
|
|
@@ -354,7 +531,7 @@ module Orb
|
|
|
354
531
|
|
|
355
532
|
attr_accessor conversion_rate: Float?
|
|
356
533
|
|
|
357
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
534
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
358
535
|
|
|
359
536
|
attr_accessor currency: String?
|
|
360
537
|
|
|
@@ -383,7 +560,7 @@ module Orb
|
|
|
383
560
|
?billed_in_advance: bool?,
|
|
384
561
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
385
562
|
?conversion_rate: Float?,
|
|
386
|
-
?conversion_rate_config: Orb::Models::
|
|
563
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
387
564
|
?currency: String?,
|
|
388
565
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
389
566
|
?external_price_id: String?,
|
|
@@ -406,7 +583,7 @@ module Orb
|
|
|
406
583
|
billed_in_advance: bool?,
|
|
407
584
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
408
585
|
conversion_rate: Float?,
|
|
409
|
-
conversion_rate_config: Orb::Models::
|
|
586
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
410
587
|
currency: String?,
|
|
411
588
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
412
589
|
external_price_id: String?,
|
|
@@ -495,6 +672,239 @@ module Orb
|
|
|
495
672
|
end
|
|
496
673
|
end
|
|
497
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
|
+
|
|
498
908
|
type tiered_with_proration =
|
|
499
909
|
{
|
|
500
910
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence,
|
|
@@ -506,7 +916,7 @@ module Orb
|
|
|
506
916
|
billed_in_advance: bool?,
|
|
507
917
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
508
918
|
conversion_rate: Float?,
|
|
509
|
-
conversion_rate_config: Orb::Models::
|
|
919
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
510
920
|
currency: String?,
|
|
511
921
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
512
922
|
external_price_id: String?,
|
|
@@ -537,7 +947,7 @@ module Orb
|
|
|
537
947
|
|
|
538
948
|
attr_accessor conversion_rate: Float?
|
|
539
949
|
|
|
540
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
950
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
541
951
|
|
|
542
952
|
attr_accessor currency: String?
|
|
543
953
|
|
|
@@ -566,7 +976,7 @@ module Orb
|
|
|
566
976
|
?billed_in_advance: bool?,
|
|
567
977
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
568
978
|
?conversion_rate: Float?,
|
|
569
|
-
?conversion_rate_config: Orb::Models::
|
|
979
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
570
980
|
?currency: String?,
|
|
571
981
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
572
982
|
?external_price_id: String?,
|
|
@@ -589,7 +999,7 @@ module Orb
|
|
|
589
999
|
billed_in_advance: bool?,
|
|
590
1000
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
591
1001
|
conversion_rate: Float?,
|
|
592
|
-
conversion_rate_config: Orb::Models::
|
|
1002
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
593
1003
|
currency: String?,
|
|
594
1004
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
595
1005
|
external_price_id: String?,
|
|
@@ -669,7 +1079,7 @@ module Orb
|
|
|
669
1079
|
billed_in_advance: bool?,
|
|
670
1080
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
671
1081
|
conversion_rate: Float?,
|
|
672
|
-
conversion_rate_config: Orb::Models::
|
|
1082
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
673
1083
|
currency: String?,
|
|
674
1084
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
675
1085
|
external_price_id: String?,
|
|
@@ -700,7 +1110,7 @@ module Orb
|
|
|
700
1110
|
|
|
701
1111
|
attr_accessor conversion_rate: Float?
|
|
702
1112
|
|
|
703
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1113
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
704
1114
|
|
|
705
1115
|
attr_accessor currency: String?
|
|
706
1116
|
|
|
@@ -729,7 +1139,7 @@ module Orb
|
|
|
729
1139
|
?billed_in_advance: bool?,
|
|
730
1140
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
731
1141
|
?conversion_rate: Float?,
|
|
732
|
-
?conversion_rate_config: Orb::Models::
|
|
1142
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
733
1143
|
?currency: String?,
|
|
734
1144
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
735
1145
|
?external_price_id: String?,
|
|
@@ -752,7 +1162,7 @@ module Orb
|
|
|
752
1162
|
billed_in_advance: bool?,
|
|
753
1163
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
754
1164
|
conversion_rate: Float?,
|
|
755
|
-
conversion_rate_config: Orb::Models::
|
|
1165
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
756
1166
|
currency: String?,
|
|
757
1167
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
758
1168
|
external_price_id: String?,
|
|
@@ -829,7 +1239,7 @@ module Orb
|
|
|
829
1239
|
billed_in_advance: bool?,
|
|
830
1240
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
831
1241
|
conversion_rate: Float?,
|
|
832
|
-
conversion_rate_config: Orb::Models::
|
|
1242
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
833
1243
|
currency: String?,
|
|
834
1244
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
835
1245
|
external_price_id: String?,
|
|
@@ -860,7 +1270,7 @@ module Orb
|
|
|
860
1270
|
|
|
861
1271
|
attr_accessor conversion_rate: Float?
|
|
862
1272
|
|
|
863
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1273
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
864
1274
|
|
|
865
1275
|
attr_accessor currency: String?
|
|
866
1276
|
|
|
@@ -889,7 +1299,7 @@ module Orb
|
|
|
889
1299
|
?billed_in_advance: bool?,
|
|
890
1300
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
891
1301
|
?conversion_rate: Float?,
|
|
892
|
-
?conversion_rate_config: Orb::Models::
|
|
1302
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
893
1303
|
?currency: String?,
|
|
894
1304
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
895
1305
|
?external_price_id: String?,
|
|
@@ -912,7 +1322,7 @@ module Orb
|
|
|
912
1322
|
billed_in_advance: bool?,
|
|
913
1323
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
914
1324
|
conversion_rate: Float?,
|
|
915
|
-
conversion_rate_config: Orb::Models::
|
|
1325
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
916
1326
|
currency: String?,
|
|
917
1327
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
918
1328
|
external_price_id: String?,
|
|
@@ -978,18 +1388,18 @@ module Orb
|
|
|
978
1388
|
end
|
|
979
1389
|
end
|
|
980
1390
|
|
|
981
|
-
type
|
|
1391
|
+
type daily_credit_allowance =
|
|
982
1392
|
{
|
|
983
|
-
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,
|
|
984
1395
|
item_id: String,
|
|
985
|
-
model_type: :
|
|
1396
|
+
model_type: :daily_credit_allowance,
|
|
986
1397
|
name: String,
|
|
987
|
-
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
988
1398
|
billable_metric_id: String?,
|
|
989
1399
|
billed_in_advance: bool?,
|
|
990
1400
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
991
1401
|
conversion_rate: Float?,
|
|
992
|
-
conversion_rate_config: Orb::Models::
|
|
1402
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
993
1403
|
currency: String?,
|
|
994
1404
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
995
1405
|
external_price_id: String?,
|
|
@@ -1001,17 +1411,17 @@ module Orb
|
|
|
1001
1411
|
reference_id: String?
|
|
1002
1412
|
}
|
|
1003
1413
|
|
|
1004
|
-
class
|
|
1005
|
-
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
|
|
1006
1418
|
|
|
1007
1419
|
attr_accessor item_id: String
|
|
1008
1420
|
|
|
1009
|
-
attr_accessor model_type: :
|
|
1421
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
1010
1422
|
|
|
1011
1423
|
attr_accessor name: String
|
|
1012
1424
|
|
|
1013
|
-
attr_accessor percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig
|
|
1014
|
-
|
|
1015
1425
|
attr_accessor billable_metric_id: String?
|
|
1016
1426
|
|
|
1017
1427
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1020,7 +1430,7 @@ module Orb
|
|
|
1020
1430
|
|
|
1021
1431
|
attr_accessor conversion_rate: Float?
|
|
1022
1432
|
|
|
1023
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1433
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1024
1434
|
|
|
1025
1435
|
attr_accessor currency: String?
|
|
1026
1436
|
|
|
@@ -1041,15 +1451,15 @@ module Orb
|
|
|
1041
1451
|
attr_accessor reference_id: String?
|
|
1042
1452
|
|
|
1043
1453
|
def initialize: (
|
|
1044
|
-
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,
|
|
1045
1456
|
item_id: String,
|
|
1046
1457
|
name: String,
|
|
1047
|
-
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
1048
1458
|
?billable_metric_id: String?,
|
|
1049
1459
|
?billed_in_advance: bool?,
|
|
1050
1460
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1051
1461
|
?conversion_rate: Float?,
|
|
1052
|
-
?conversion_rate_config: Orb::Models::
|
|
1462
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1053
1463
|
?currency: String?,
|
|
1054
1464
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1055
1465
|
?external_price_id: String?,
|
|
@@ -1059,20 +1469,20 @@ module Orb
|
|
|
1059
1469
|
?license_type_id: String?,
|
|
1060
1470
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1061
1471
|
?reference_id: String?,
|
|
1062
|
-
?model_type: :
|
|
1472
|
+
?model_type: :daily_credit_allowance
|
|
1063
1473
|
) -> void
|
|
1064
1474
|
|
|
1065
1475
|
def to_hash: -> {
|
|
1066
|
-
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,
|
|
1067
1478
|
item_id: String,
|
|
1068
|
-
model_type: :
|
|
1479
|
+
model_type: :daily_credit_allowance,
|
|
1069
1480
|
name: String,
|
|
1070
|
-
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
1071
1481
|
billable_metric_id: String?,
|
|
1072
1482
|
billed_in_advance: bool?,
|
|
1073
1483
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1074
1484
|
conversion_rate: Float?,
|
|
1075
|
-
conversion_rate_config: Orb::Models::
|
|
1485
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1076
1486
|
currency: String?,
|
|
1077
1487
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1078
1488
|
external_price_id: String?,
|
|
@@ -1102,32 +1512,78 @@ module Orb
|
|
|
1102
1512
|
ONE_TIME: :one_time
|
|
1103
1513
|
CUSTOM: :custom
|
|
1104
1514
|
|
|
1105
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1515
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::DailyCreditAllowance::cadence]
|
|
1106
1516
|
end
|
|
1107
1517
|
|
|
1108
|
-
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
|
+
}
|
|
1109
1526
|
|
|
1110
|
-
class
|
|
1111
|
-
attr_accessor
|
|
1527
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1528
|
+
attr_accessor daily_allowance: String
|
|
1112
1529
|
|
|
1113
|
-
|
|
1530
|
+
attr_accessor default_unit_amount: String
|
|
1114
1531
|
|
|
1115
|
-
|
|
1116
|
-
end
|
|
1117
|
-
end
|
|
1532
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1118
1533
|
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
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,
|
|
1581
|
+
name: String,
|
|
1126
1582
|
billable_metric_id: String?,
|
|
1127
1583
|
billed_in_advance: bool?,
|
|
1128
1584
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1129
1585
|
conversion_rate: Float?,
|
|
1130
|
-
conversion_rate_config: Orb::Models::
|
|
1586
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1131
1587
|
currency: String?,
|
|
1132
1588
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1133
1589
|
external_price_id: String?,
|
|
@@ -1139,14 +1595,14 @@ module Orb
|
|
|
1139
1595
|
reference_id: String?
|
|
1140
1596
|
}
|
|
1141
1597
|
|
|
1142
|
-
class
|
|
1143
|
-
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1144
|
-
|
|
1145
|
-
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
|
|
1146
1600
|
|
|
1147
1601
|
attr_accessor item_id: String
|
|
1148
1602
|
|
|
1149
|
-
attr_accessor
|
|
1603
|
+
attr_accessor metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
1604
|
+
|
|
1605
|
+
attr_accessor model_type: :metered_allowance
|
|
1150
1606
|
|
|
1151
1607
|
attr_accessor name: String
|
|
1152
1608
|
|
|
@@ -1158,7 +1614,7 @@ module Orb
|
|
|
1158
1614
|
|
|
1159
1615
|
attr_accessor conversion_rate: Float?
|
|
1160
1616
|
|
|
1161
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1617
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1162
1618
|
|
|
1163
1619
|
attr_accessor currency: String?
|
|
1164
1620
|
|
|
@@ -1179,15 +1635,15 @@ module Orb
|
|
|
1179
1635
|
attr_accessor reference_id: String?
|
|
1180
1636
|
|
|
1181
1637
|
def initialize: (
|
|
1182
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1183
|
-
event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1638
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1184
1639
|
item_id: String,
|
|
1640
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1185
1641
|
name: String,
|
|
1186
1642
|
?billable_metric_id: String?,
|
|
1187
1643
|
?billed_in_advance: bool?,
|
|
1188
1644
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1189
1645
|
?conversion_rate: Float?,
|
|
1190
|
-
?conversion_rate_config: Orb::Models::
|
|
1646
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1191
1647
|
?currency: String?,
|
|
1192
1648
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1193
1649
|
?external_price_id: String?,
|
|
@@ -1197,20 +1653,20 @@ module Orb
|
|
|
1197
1653
|
?license_type_id: String?,
|
|
1198
1654
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1199
1655
|
?reference_id: String?,
|
|
1200
|
-
?model_type: :
|
|
1656
|
+
?model_type: :metered_allowance
|
|
1201
1657
|
) -> void
|
|
1202
1658
|
|
|
1203
1659
|
def to_hash: -> {
|
|
1204
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1205
|
-
event_output_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1660
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1206
1661
|
item_id: String,
|
|
1207
|
-
|
|
1662
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1663
|
+
model_type: :metered_allowance,
|
|
1208
1664
|
name: String,
|
|
1209
1665
|
billable_metric_id: String?,
|
|
1210
1666
|
billed_in_advance: bool?,
|
|
1211
1667
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1212
1668
|
conversion_rate: Float?,
|
|
1213
|
-
conversion_rate_config: Orb::Models::
|
|
1669
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1214
1670
|
currency: String?,
|
|
1215
1671
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1216
1672
|
external_price_id: String?,
|
|
@@ -1240,223 +1696,68 @@ module Orb
|
|
|
1240
1696
|
ONE_TIME: :one_time
|
|
1241
1697
|
CUSTOM: :custom
|
|
1242
1698
|
|
|
1243
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::
|
|
1699
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::MeteredAllowance::cadence]
|
|
1244
1700
|
end
|
|
1245
1701
|
|
|
1246
|
-
type
|
|
1702
|
+
type metered_allowance_config =
|
|
1247
1703
|
{
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
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
|
|
1251
1710
|
}
|
|
1252
1711
|
|
|
1253
|
-
class
|
|
1254
|
-
attr_accessor
|
|
1712
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1713
|
+
attr_accessor allowance_grouping_value: String
|
|
1255
1714
|
|
|
1256
|
-
attr_accessor
|
|
1715
|
+
attr_accessor consumption_grouping_value: String
|
|
1257
1716
|
|
|
1258
|
-
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
|
|
1259
1728
|
|
|
1260
1729
|
def initialize: (
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
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
|
|
1264
1736
|
) -> void
|
|
1265
1737
|
|
|
1266
1738
|
def to_hash: -> {
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
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
|
|
1270
1745
|
}
|
|
1271
1746
|
end
|
|
1272
1747
|
end
|
|
1273
1748
|
|
|
1274
|
-
|
|
1275
|
-
end
|
|
1276
|
-
end
|
|
1277
|
-
|
|
1278
|
-
type billing_cycle_alignment =
|
|
1279
|
-
:unchanged | :plan_change_date | :start_of_month
|
|
1280
|
-
|
|
1281
|
-
module BillingCycleAlignment
|
|
1282
|
-
extend Orb::Internal::Type::Enum
|
|
1283
|
-
|
|
1284
|
-
UNCHANGED: :unchanged
|
|
1285
|
-
PLAN_CHANGE_DATE: :plan_change_date
|
|
1286
|
-
START_OF_MONTH: :start_of_month
|
|
1287
|
-
|
|
1288
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment]
|
|
1289
|
-
end
|
|
1290
|
-
|
|
1291
|
-
type remove_adjustment = { adjustment_id: String }
|
|
1292
|
-
|
|
1293
|
-
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
1294
|
-
attr_accessor adjustment_id: String
|
|
1295
|
-
|
|
1296
|
-
def initialize: (adjustment_id: String) -> void
|
|
1297
|
-
|
|
1298
|
-
def to_hash: -> { adjustment_id: String }
|
|
1299
|
-
end
|
|
1300
|
-
|
|
1301
|
-
type remove_price = { external_price_id: String?, price_id: String? }
|
|
1302
|
-
|
|
1303
|
-
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
1304
|
-
attr_accessor external_price_id: String?
|
|
1305
|
-
|
|
1306
|
-
attr_accessor price_id: String?
|
|
1307
|
-
|
|
1308
|
-
def initialize: (
|
|
1309
|
-
?external_price_id: String?,
|
|
1310
|
-
?price_id: String?
|
|
1311
|
-
) -> void
|
|
1312
|
-
|
|
1313
|
-
def to_hash: -> { external_price_id: String?, price_id: String? }
|
|
1314
|
-
end
|
|
1315
|
-
|
|
1316
|
-
type replace_adjustment =
|
|
1317
|
-
{
|
|
1318
|
-
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
1319
|
-
replaces_adjustment_id: String
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
1323
|
-
attr_accessor adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment
|
|
1324
|
-
|
|
1325
|
-
attr_accessor replaces_adjustment_id: String
|
|
1326
|
-
|
|
1327
|
-
def initialize: (
|
|
1328
|
-
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
1329
|
-
replaces_adjustment_id: String
|
|
1330
|
-
) -> void
|
|
1331
|
-
|
|
1332
|
-
def to_hash: -> {
|
|
1333
|
-
adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment,
|
|
1334
|
-
replaces_adjustment_id: String
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
type adjustment =
|
|
1338
|
-
Orb::NewPercentageDiscount
|
|
1339
|
-
| Orb::NewUsageDiscount
|
|
1340
|
-
| Orb::NewAmountDiscount
|
|
1341
|
-
| Orb::NewMinimum
|
|
1342
|
-
| Orb::NewMaximum
|
|
1343
|
-
|
|
1344
|
-
module Adjustment
|
|
1345
|
-
extend Orb::Internal::Type::Union
|
|
1346
|
-
|
|
1347
|
-
def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment]
|
|
1348
|
-
end
|
|
1349
|
-
end
|
|
1350
|
-
|
|
1351
|
-
type replace_price =
|
|
1352
|
-
{
|
|
1353
|
-
replaces_price_id: String,
|
|
1354
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1355
|
-
discounts: ::Array[Orb::DiscountOverride]?,
|
|
1356
|
-
external_price_id: String?,
|
|
1357
|
-
fixed_price_quantity: Float?,
|
|
1358
|
-
maximum_amount: String?,
|
|
1359
|
-
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1360
|
-
minimum_amount: String?,
|
|
1361
|
-
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1362
|
-
price_id: String?
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
1366
|
-
attr_accessor replaces_price_id: String
|
|
1367
|
-
|
|
1368
|
-
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
1369
|
-
|
|
1370
|
-
attr_accessor discounts: ::Array[Orb::DiscountOverride]?
|
|
1371
|
-
|
|
1372
|
-
attr_accessor external_price_id: String?
|
|
1373
|
-
|
|
1374
|
-
attr_accessor fixed_price_quantity: Float?
|
|
1375
|
-
|
|
1376
|
-
attr_accessor maximum_amount: String?
|
|
1377
|
-
|
|
1378
|
-
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
1379
|
-
|
|
1380
|
-
attr_accessor minimum_amount: String?
|
|
1381
|
-
|
|
1382
|
-
attr_accessor price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?
|
|
1383
|
-
|
|
1384
|
-
attr_accessor price_id: String?
|
|
1385
|
-
|
|
1386
|
-
def initialize: (
|
|
1387
|
-
replaces_price_id: String,
|
|
1388
|
-
?allocation_price: Orb::NewAllocationPrice?,
|
|
1389
|
-
?discounts: ::Array[Orb::DiscountOverride]?,
|
|
1390
|
-
?external_price_id: String?,
|
|
1391
|
-
?fixed_price_quantity: Float?,
|
|
1392
|
-
?maximum_amount: String?,
|
|
1393
|
-
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1394
|
-
?minimum_amount: String?,
|
|
1395
|
-
?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1396
|
-
?price_id: String?
|
|
1397
|
-
) -> void
|
|
1398
|
-
|
|
1399
|
-
def to_hash: -> {
|
|
1400
|
-
replaces_price_id: String,
|
|
1401
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1402
|
-
discounts: ::Array[Orb::DiscountOverride]?,
|
|
1403
|
-
external_price_id: String?,
|
|
1404
|
-
fixed_price_quantity: Float?,
|
|
1405
|
-
maximum_amount: String?,
|
|
1406
|
-
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1407
|
-
minimum_amount: String?,
|
|
1408
|
-
price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?,
|
|
1409
|
-
price_id: String?
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
type price =
|
|
1413
|
-
Orb::NewSubscriptionUnitPrice
|
|
1414
|
-
| Orb::NewSubscriptionTieredPrice
|
|
1415
|
-
| Orb::NewSubscriptionBulkPrice
|
|
1416
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters
|
|
1417
|
-
| Orb::NewSubscriptionPackagePrice
|
|
1418
|
-
| Orb::NewSubscriptionMatrixPrice
|
|
1419
|
-
| Orb::NewSubscriptionThresholdTotalAmountPrice
|
|
1420
|
-
| Orb::NewSubscriptionTieredPackagePrice
|
|
1421
|
-
| Orb::NewSubscriptionTieredWithMinimumPrice
|
|
1422
|
-
| Orb::NewSubscriptionGroupedTieredPrice
|
|
1423
|
-
| Orb::NewSubscriptionTieredPackageWithMinimumPrice
|
|
1424
|
-
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
1425
|
-
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
1426
|
-
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
1427
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration
|
|
1428
|
-
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
1429
|
-
| Orb::NewSubscriptionGroupedAllocationPrice
|
|
1430
|
-
| Orb::NewSubscriptionBulkWithProrationPrice
|
|
1431
|
-
| Orb::NewSubscriptionGroupedWithProratedMinimumPrice
|
|
1432
|
-
| Orb::NewSubscriptionGroupedWithMeteredMinimumPrice
|
|
1433
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
1434
|
-
| Orb::NewSubscriptionMatrixWithDisplayNamePrice
|
|
1435
|
-
| Orb::NewSubscriptionGroupedTieredPackagePrice
|
|
1436
|
-
| Orb::NewSubscriptionMaxGroupTieredPackagePrice
|
|
1437
|
-
| Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice
|
|
1438
|
-
| Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice
|
|
1439
|
-
| Orb::NewSubscriptionCumulativeGroupedBulkPrice
|
|
1440
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
1441
|
-
| Orb::NewSubscriptionMinimumCompositePrice
|
|
1442
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent
|
|
1443
|
-
| Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::EventOutput
|
|
1444
|
-
|
|
1445
|
-
module Price
|
|
1446
|
-
extend Orb::Internal::Type::Union
|
|
1447
|
-
|
|
1448
|
-
type bulk_with_filters =
|
|
1749
|
+
type percent =
|
|
1449
1750
|
{
|
|
1450
|
-
|
|
1451
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1751
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::cadence,
|
|
1452
1752
|
item_id: String,
|
|
1453
|
-
model_type: :
|
|
1753
|
+
model_type: :percent,
|
|
1454
1754
|
name: String,
|
|
1755
|
+
percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig,
|
|
1455
1756
|
billable_metric_id: String?,
|
|
1456
1757
|
billed_in_advance: bool?,
|
|
1457
1758
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1458
1759
|
conversion_rate: Float?,
|
|
1459
|
-
conversion_rate_config: Orb::Models::
|
|
1760
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1460
1761
|
currency: String?,
|
|
1461
1762
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1462
1763
|
external_price_id: String?,
|
|
@@ -1468,17 +1769,17 @@ module Orb
|
|
|
1468
1769
|
reference_id: String?
|
|
1469
1770
|
}
|
|
1470
1771
|
|
|
1471
|
-
class
|
|
1472
|
-
attr_accessor
|
|
1473
|
-
|
|
1474
|
-
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
|
|
1475
1774
|
|
|
1476
1775
|
attr_accessor item_id: String
|
|
1477
1776
|
|
|
1478
|
-
attr_accessor model_type: :
|
|
1777
|
+
attr_accessor model_type: :percent
|
|
1479
1778
|
|
|
1480
1779
|
attr_accessor name: String
|
|
1481
1780
|
|
|
1781
|
+
attr_accessor percent_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Percent::PercentConfig
|
|
1782
|
+
|
|
1482
1783
|
attr_accessor billable_metric_id: String?
|
|
1483
1784
|
|
|
1484
1785
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1487,7 +1788,7 @@ module Orb
|
|
|
1487
1788
|
|
|
1488
1789
|
attr_accessor conversion_rate: Float?
|
|
1489
1790
|
|
|
1490
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1791
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1491
1792
|
|
|
1492
1793
|
attr_accessor currency: String?
|
|
1493
1794
|
|
|
@@ -1508,15 +1809,1094 @@ module Orb
|
|
|
1508
1809
|
attr_accessor reference_id: String?
|
|
1509
1810
|
|
|
1510
1811
|
def initialize: (
|
|
1511
|
-
|
|
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,
|
|
1512
2498
|
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1513
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,
|
|
2892
|
+
item_id: String,
|
|
1514
2893
|
name: String,
|
|
2894
|
+
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1515
2895
|
?billable_metric_id: String?,
|
|
1516
2896
|
?billed_in_advance: bool?,
|
|
1517
2897
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1518
2898
|
?conversion_rate: Float?,
|
|
1519
|
-
?conversion_rate_config: Orb::Models::
|
|
2899
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1520
2900
|
?currency: String?,
|
|
1521
2901
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1522
2902
|
?external_price_id: String?,
|
|
@@ -1526,20 +2906,20 @@ module Orb
|
|
|
1526
2906
|
?license_type_id: String?,
|
|
1527
2907
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1528
2908
|
?reference_id: String?,
|
|
1529
|
-
?model_type: :
|
|
2909
|
+
?model_type: :tiered_with_proration
|
|
1530
2910
|
) -> void
|
|
1531
2911
|
|
|
1532
2912
|
def to_hash: -> {
|
|
1533
|
-
|
|
1534
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2913
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
1535
2914
|
item_id: String,
|
|
1536
|
-
model_type: :
|
|
2915
|
+
model_type: :tiered_with_proration,
|
|
1537
2916
|
name: String,
|
|
2917
|
+
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1538
2918
|
billable_metric_id: String?,
|
|
1539
2919
|
billed_in_advance: bool?,
|
|
1540
2920
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1541
2921
|
conversion_rate: Float?,
|
|
1542
|
-
conversion_rate_config: Orb::Models::
|
|
2922
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1543
2923
|
currency: String?,
|
|
1544
2924
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1545
2925
|
external_price_id: String?,
|
|
@@ -1551,60 +2931,168 @@ module Orb
|
|
|
1551
2931
|
reference_id: String?
|
|
1552
2932
|
}
|
|
1553
2933
|
|
|
1554
|
-
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 =
|
|
1555
2956
|
{
|
|
1556
|
-
|
|
1557
|
-
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2957
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1558
2958
|
}
|
|
1559
2959
|
|
|
1560
|
-
class
|
|
1561
|
-
attr_accessor
|
|
1562
|
-
|
|
1563
|
-
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]
|
|
1564
2962
|
|
|
1565
2963
|
def initialize: (
|
|
1566
|
-
|
|
1567
|
-
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2964
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1568
2965
|
) -> void
|
|
1569
2966
|
|
|
1570
2967
|
def to_hash: -> {
|
|
1571
|
-
|
|
1572
|
-
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2968
|
+
tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1573
2969
|
}
|
|
1574
2970
|
|
|
1575
|
-
type
|
|
2971
|
+
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1576
2972
|
|
|
1577
|
-
class
|
|
1578
|
-
attr_accessor
|
|
2973
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2974
|
+
attr_accessor tier_lower_bound: String
|
|
1579
2975
|
|
|
1580
|
-
attr_accessor
|
|
2976
|
+
attr_accessor unit_amount: String
|
|
1581
2977
|
|
|
1582
2978
|
def initialize: (
|
|
1583
|
-
|
|
1584
|
-
|
|
2979
|
+
tier_lower_bound: String,
|
|
2980
|
+
unit_amount: String
|
|
1585
2981
|
) -> void
|
|
1586
2982
|
|
|
1587
|
-
def to_hash: -> {
|
|
2983
|
+
def to_hash: -> {
|
|
2984
|
+
tier_lower_bound: String,
|
|
2985
|
+
unit_amount: String
|
|
2986
|
+
}
|
|
1588
2987
|
end
|
|
2988
|
+
end
|
|
2989
|
+
end
|
|
1589
2990
|
|
|
1590
|
-
|
|
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
|
+
}
|
|
1591
3013
|
|
|
1592
|
-
|
|
1593
|
-
|
|
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?
|
|
1594
3048
|
|
|
1595
|
-
|
|
3049
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1596
3050
|
|
|
1597
|
-
|
|
1598
|
-
unit_amount: String,
|
|
1599
|
-
?tier_lower_bound: String?
|
|
1600
|
-
) -> void
|
|
3051
|
+
attr_accessor reference_id: String?
|
|
1601
3052
|
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
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
|
+
}
|
|
1608
3096
|
|
|
1609
3097
|
type cadence =
|
|
1610
3098
|
:annual
|
|
@@ -1624,22 +3112,54 @@ module Orb
|
|
|
1624
3112
|
ONE_TIME: :one_time
|
|
1625
3113
|
CUSTOM: :custom
|
|
1626
3114
|
|
|
1627
|
-
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
|
+
}
|
|
1628
3148
|
end
|
|
1629
3149
|
end
|
|
1630
3150
|
|
|
1631
|
-
type
|
|
3151
|
+
type cumulative_grouped_allocation =
|
|
1632
3152
|
{
|
|
1633
|
-
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,
|
|
1634
3155
|
item_id: String,
|
|
1635
|
-
model_type: :
|
|
3156
|
+
model_type: :cumulative_grouped_allocation,
|
|
1636
3157
|
name: String,
|
|
1637
|
-
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1638
3158
|
billable_metric_id: String?,
|
|
1639
3159
|
billed_in_advance: bool?,
|
|
1640
3160
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1641
3161
|
conversion_rate: Float?,
|
|
1642
|
-
conversion_rate_config: Orb::Models::
|
|
3162
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1643
3163
|
currency: String?,
|
|
1644
3164
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1645
3165
|
external_price_id: String?,
|
|
@@ -1651,17 +3171,17 @@ module Orb
|
|
|
1651
3171
|
reference_id: String?
|
|
1652
3172
|
}
|
|
1653
3173
|
|
|
1654
|
-
class
|
|
1655
|
-
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
|
|
1656
3178
|
|
|
1657
3179
|
attr_accessor item_id: String
|
|
1658
3180
|
|
|
1659
|
-
attr_accessor model_type: :
|
|
3181
|
+
attr_accessor model_type: :cumulative_grouped_allocation
|
|
1660
3182
|
|
|
1661
3183
|
attr_accessor name: String
|
|
1662
3184
|
|
|
1663
|
-
attr_accessor tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
1664
|
-
|
|
1665
3185
|
attr_accessor billable_metric_id: String?
|
|
1666
3186
|
|
|
1667
3187
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1670,7 +3190,7 @@ module Orb
|
|
|
1670
3190
|
|
|
1671
3191
|
attr_accessor conversion_rate: Float?
|
|
1672
3192
|
|
|
1673
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3193
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1674
3194
|
|
|
1675
3195
|
attr_accessor currency: String?
|
|
1676
3196
|
|
|
@@ -1691,15 +3211,15 @@ module Orb
|
|
|
1691
3211
|
attr_accessor reference_id: String?
|
|
1692
3212
|
|
|
1693
3213
|
def initialize: (
|
|
1694
|
-
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,
|
|
1695
3216
|
item_id: String,
|
|
1696
3217
|
name: String,
|
|
1697
|
-
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1698
3218
|
?billable_metric_id: String?,
|
|
1699
3219
|
?billed_in_advance: bool?,
|
|
1700
3220
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1701
3221
|
?conversion_rate: Float?,
|
|
1702
|
-
?conversion_rate_config: Orb::Models::
|
|
3222
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1703
3223
|
?currency: String?,
|
|
1704
3224
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1705
3225
|
?external_price_id: String?,
|
|
@@ -1709,20 +3229,20 @@ module Orb
|
|
|
1709
3229
|
?license_type_id: String?,
|
|
1710
3230
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1711
3231
|
?reference_id: String?,
|
|
1712
|
-
?model_type: :
|
|
3232
|
+
?model_type: :cumulative_grouped_allocation
|
|
1713
3233
|
) -> void
|
|
1714
3234
|
|
|
1715
3235
|
def to_hash: -> {
|
|
1716
|
-
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,
|
|
1717
3238
|
item_id: String,
|
|
1718
|
-
model_type: :
|
|
3239
|
+
model_type: :cumulative_grouped_allocation,
|
|
1719
3240
|
name: String,
|
|
1720
|
-
tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1721
3241
|
billable_metric_id: String?,
|
|
1722
3242
|
billed_in_advance: bool?,
|
|
1723
3243
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1724
3244
|
conversion_rate: Float?,
|
|
1725
|
-
conversion_rate_config: Orb::Models::
|
|
3245
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1726
3246
|
currency: String?,
|
|
1727
3247
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1728
3248
|
external_price_id: String?,
|
|
@@ -1752,57 +3272,54 @@ module Orb
|
|
|
1752
3272
|
ONE_TIME: :one_time
|
|
1753
3273
|
CUSTOM: :custom
|
|
1754
3274
|
|
|
1755
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3275
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence]
|
|
1756
3276
|
end
|
|
1757
3277
|
|
|
1758
|
-
type
|
|
3278
|
+
type cumulative_grouped_allocation_config =
|
|
1759
3279
|
{
|
|
1760
|
-
|
|
3280
|
+
cumulative_allocation: String,
|
|
3281
|
+
group_allocation: String,
|
|
3282
|
+
grouping_key: String,
|
|
3283
|
+
unit_amount: String
|
|
1761
3284
|
}
|
|
1762
3285
|
|
|
1763
|
-
class
|
|
1764
|
-
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
|
|
1765
3294
|
|
|
1766
3295
|
def initialize: (
|
|
1767
|
-
|
|
3296
|
+
cumulative_allocation: String,
|
|
3297
|
+
group_allocation: String,
|
|
3298
|
+
grouping_key: String,
|
|
3299
|
+
unit_amount: String
|
|
1768
3300
|
) -> void
|
|
1769
3301
|
|
|
1770
3302
|
def to_hash: -> {
|
|
1771
|
-
|
|
3303
|
+
cumulative_allocation: String,
|
|
3304
|
+
group_allocation: String,
|
|
3305
|
+
grouping_key: String,
|
|
3306
|
+
unit_amount: String
|
|
1772
3307
|
}
|
|
1773
|
-
|
|
1774
|
-
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1775
|
-
|
|
1776
|
-
class Tier < Orb::Internal::Type::BaseModel
|
|
1777
|
-
attr_accessor tier_lower_bound: String
|
|
1778
|
-
|
|
1779
|
-
attr_accessor unit_amount: String
|
|
1780
|
-
|
|
1781
|
-
def initialize: (
|
|
1782
|
-
tier_lower_bound: String,
|
|
1783
|
-
unit_amount: String
|
|
1784
|
-
) -> void
|
|
1785
|
-
|
|
1786
|
-
def to_hash: -> {
|
|
1787
|
-
tier_lower_bound: String,
|
|
1788
|
-
unit_amount: String
|
|
1789
|
-
}
|
|
1790
|
-
end
|
|
1791
3308
|
end
|
|
1792
3309
|
end
|
|
1793
3310
|
|
|
1794
|
-
type
|
|
3311
|
+
type daily_credit_allowance =
|
|
1795
3312
|
{
|
|
1796
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1797
|
-
|
|
3313
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3314
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1798
3315
|
item_id: String,
|
|
1799
|
-
model_type: :
|
|
3316
|
+
model_type: :daily_credit_allowance,
|
|
1800
3317
|
name: String,
|
|
1801
3318
|
billable_metric_id: String?,
|
|
1802
3319
|
billed_in_advance: bool?,
|
|
1803
3320
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1804
3321
|
conversion_rate: Float?,
|
|
1805
|
-
conversion_rate_config: Orb::Models::
|
|
3322
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1806
3323
|
currency: String?,
|
|
1807
3324
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1808
3325
|
external_price_id: String?,
|
|
@@ -1814,14 +3331,14 @@ module Orb
|
|
|
1814
3331
|
reference_id: String?
|
|
1815
3332
|
}
|
|
1816
3333
|
|
|
1817
|
-
class
|
|
1818
|
-
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
|
|
1819
3336
|
|
|
1820
|
-
attr_accessor
|
|
3337
|
+
attr_accessor daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
1821
3338
|
|
|
1822
3339
|
attr_accessor item_id: String
|
|
1823
3340
|
|
|
1824
|
-
attr_accessor model_type: :
|
|
3341
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
1825
3342
|
|
|
1826
3343
|
attr_accessor name: String
|
|
1827
3344
|
|
|
@@ -1833,7 +3350,7 @@ module Orb
|
|
|
1833
3350
|
|
|
1834
3351
|
attr_accessor conversion_rate: Float?
|
|
1835
3352
|
|
|
1836
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3353
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1837
3354
|
|
|
1838
3355
|
attr_accessor currency: String?
|
|
1839
3356
|
|
|
@@ -1854,15 +3371,15 @@ module Orb
|
|
|
1854
3371
|
attr_accessor reference_id: String?
|
|
1855
3372
|
|
|
1856
3373
|
def initialize: (
|
|
1857
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1858
|
-
|
|
3374
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3375
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1859
3376
|
item_id: String,
|
|
1860
3377
|
name: String,
|
|
1861
3378
|
?billable_metric_id: String?,
|
|
1862
3379
|
?billed_in_advance: bool?,
|
|
1863
3380
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1864
3381
|
?conversion_rate: Float?,
|
|
1865
|
-
?conversion_rate_config: Orb::Models::
|
|
3382
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1866
3383
|
?currency: String?,
|
|
1867
3384
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1868
3385
|
?external_price_id: String?,
|
|
@@ -1872,20 +3389,20 @@ module Orb
|
|
|
1872
3389
|
?license_type_id: String?,
|
|
1873
3390
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1874
3391
|
?reference_id: String?,
|
|
1875
|
-
?model_type: :
|
|
3392
|
+
?model_type: :daily_credit_allowance
|
|
1876
3393
|
) -> void
|
|
1877
3394
|
|
|
1878
3395
|
def to_hash: -> {
|
|
1879
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1880
|
-
|
|
3396
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3397
|
+
daily_credit_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1881
3398
|
item_id: String,
|
|
1882
|
-
model_type: :
|
|
3399
|
+
model_type: :daily_credit_allowance,
|
|
1883
3400
|
name: String,
|
|
1884
3401
|
billable_metric_id: String?,
|
|
1885
3402
|
billed_in_advance: bool?,
|
|
1886
3403
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1887
3404
|
conversion_rate: Float?,
|
|
1888
|
-
conversion_rate_config: Orb::Models::
|
|
3405
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1889
3406
|
currency: String?,
|
|
1890
3407
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1891
3408
|
external_price_id: String?,
|
|
@@ -1915,54 +3432,78 @@ module Orb
|
|
|
1915
3432
|
ONE_TIME: :one_time
|
|
1916
3433
|
CUSTOM: :custom
|
|
1917
3434
|
|
|
1918
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3435
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::cadence]
|
|
1919
3436
|
end
|
|
1920
3437
|
|
|
1921
|
-
type
|
|
3438
|
+
type daily_credit_allowance_config =
|
|
1922
3439
|
{
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
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]
|
|
1927
3445
|
}
|
|
1928
3446
|
|
|
1929
|
-
class
|
|
1930
|
-
attr_accessor
|
|
3447
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3448
|
+
attr_accessor daily_allowance: String
|
|
1931
3449
|
|
|
1932
|
-
attr_accessor
|
|
3450
|
+
attr_accessor default_unit_amount: String
|
|
1933
3451
|
|
|
1934
|
-
attr_accessor
|
|
3452
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1935
3453
|
|
|
1936
|
-
attr_accessor
|
|
3454
|
+
attr_accessor event_day_property: String
|
|
3455
|
+
|
|
3456
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1937
3457
|
|
|
1938
3458
|
def initialize: (
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
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]
|
|
1943
3464
|
) -> void
|
|
1944
3465
|
|
|
1945
3466
|
def to_hash: -> {
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
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]
|
|
1950
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
|
|
1951
3492
|
end
|
|
1952
3493
|
end
|
|
1953
3494
|
|
|
1954
|
-
type
|
|
3495
|
+
type metered_allowance =
|
|
1955
3496
|
{
|
|
1956
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1957
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3497
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1958
3498
|
item_id: String,
|
|
1959
|
-
|
|
3499
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3500
|
+
model_type: :metered_allowance,
|
|
1960
3501
|
name: String,
|
|
1961
3502
|
billable_metric_id: String?,
|
|
1962
3503
|
billed_in_advance: bool?,
|
|
1963
3504
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1964
3505
|
conversion_rate: Float?,
|
|
1965
|
-
conversion_rate_config: Orb::Models::
|
|
3506
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1966
3507
|
currency: String?,
|
|
1967
3508
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1968
3509
|
external_price_id: String?,
|
|
@@ -1974,14 +3515,14 @@ module Orb
|
|
|
1974
3515
|
reference_id: String?
|
|
1975
3516
|
}
|
|
1976
3517
|
|
|
1977
|
-
class
|
|
1978
|
-
attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
1979
|
-
|
|
1980
|
-
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
|
|
1981
3520
|
|
|
1982
3521
|
attr_accessor item_id: String
|
|
1983
3522
|
|
|
1984
|
-
attr_accessor
|
|
3523
|
+
attr_accessor metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
3524
|
+
|
|
3525
|
+
attr_accessor model_type: :metered_allowance
|
|
1985
3526
|
|
|
1986
3527
|
attr_accessor name: String
|
|
1987
3528
|
|
|
@@ -1993,7 +3534,7 @@ module Orb
|
|
|
1993
3534
|
|
|
1994
3535
|
attr_accessor conversion_rate: Float?
|
|
1995
3536
|
|
|
1996
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3537
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1997
3538
|
|
|
1998
3539
|
attr_accessor currency: String?
|
|
1999
3540
|
|
|
@@ -2014,15 +3555,15 @@ module Orb
|
|
|
2014
3555
|
attr_accessor reference_id: String?
|
|
2015
3556
|
|
|
2016
3557
|
def initialize: (
|
|
2017
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
2018
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3558
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
2019
3559
|
item_id: String,
|
|
3560
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
2020
3561
|
name: String,
|
|
2021
3562
|
?billable_metric_id: String?,
|
|
2022
3563
|
?billed_in_advance: bool?,
|
|
2023
3564
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2024
3565
|
?conversion_rate: Float?,
|
|
2025
|
-
?conversion_rate_config: Orb::Models::
|
|
3566
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2026
3567
|
?currency: String?,
|
|
2027
3568
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2028
3569
|
?external_price_id: String?,
|
|
@@ -2032,20 +3573,20 @@ module Orb
|
|
|
2032
3573
|
?license_type_id: String?,
|
|
2033
3574
|
?metadata: ::Hash[Symbol, String?]?,
|
|
2034
3575
|
?reference_id: String?,
|
|
2035
|
-
?model_type: :
|
|
3576
|
+
?model_type: :metered_allowance
|
|
2036
3577
|
) -> void
|
|
2037
3578
|
|
|
2038
3579
|
def to_hash: -> {
|
|
2039
|
-
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
2040
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3580
|
+
cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
2041
3581
|
item_id: String,
|
|
2042
|
-
|
|
3582
|
+
metered_allowance_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3583
|
+
model_type: :metered_allowance,
|
|
2043
3584
|
name: String,
|
|
2044
3585
|
billable_metric_id: String?,
|
|
2045
3586
|
billed_in_advance: bool?,
|
|
2046
3587
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2047
3588
|
conversion_rate: Float?,
|
|
2048
|
-
conversion_rate_config: Orb::Models::
|
|
3589
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2049
3590
|
currency: String?,
|
|
2050
3591
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2051
3592
|
external_price_id: String?,
|
|
@@ -2075,38 +3616,52 @@ module Orb
|
|
|
2075
3616
|
ONE_TIME: :one_time
|
|
2076
3617
|
CUSTOM: :custom
|
|
2077
3618
|
|
|
2078
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::
|
|
3619
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::MeteredAllowance::cadence]
|
|
2079
3620
|
end
|
|
2080
3621
|
|
|
2081
|
-
type
|
|
3622
|
+
type metered_allowance_config =
|
|
2082
3623
|
{
|
|
2083
|
-
|
|
2084
|
-
|
|
3624
|
+
allowance_grouping_value: String,
|
|
3625
|
+
consumption_grouping_value: String,
|
|
2085
3626
|
grouping_key: String,
|
|
2086
|
-
unit_amount: String
|
|
3627
|
+
unit_amount: String,
|
|
3628
|
+
allowance_display_name: String,
|
|
3629
|
+
consumption_display_name: String
|
|
2087
3630
|
}
|
|
2088
3631
|
|
|
2089
|
-
class
|
|
2090
|
-
attr_accessor
|
|
3632
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3633
|
+
attr_accessor allowance_grouping_value: String
|
|
2091
3634
|
|
|
2092
|
-
attr_accessor
|
|
3635
|
+
attr_accessor consumption_grouping_value: String
|
|
2093
3636
|
|
|
2094
3637
|
attr_accessor grouping_key: String
|
|
2095
3638
|
|
|
2096
3639
|
attr_accessor unit_amount: String
|
|
2097
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
|
+
|
|
2098
3649
|
def initialize: (
|
|
2099
|
-
|
|
2100
|
-
|
|
3650
|
+
allowance_grouping_value: String,
|
|
3651
|
+
consumption_grouping_value: String,
|
|
2101
3652
|
grouping_key: String,
|
|
2102
|
-
unit_amount: String
|
|
3653
|
+
unit_amount: String,
|
|
3654
|
+
?allowance_display_name: String,
|
|
3655
|
+
?consumption_display_name: String
|
|
2103
3656
|
) -> void
|
|
2104
3657
|
|
|
2105
3658
|
def to_hash: -> {
|
|
2106
|
-
|
|
2107
|
-
|
|
3659
|
+
allowance_grouping_value: String,
|
|
3660
|
+
consumption_grouping_value: String,
|
|
2108
3661
|
grouping_key: String,
|
|
2109
|
-
unit_amount: String
|
|
3662
|
+
unit_amount: String,
|
|
3663
|
+
allowance_display_name: String,
|
|
3664
|
+
consumption_display_name: String
|
|
2110
3665
|
}
|
|
2111
3666
|
end
|
|
2112
3667
|
end
|
|
@@ -2122,7 +3677,7 @@ module Orb
|
|
|
2122
3677
|
billed_in_advance: bool?,
|
|
2123
3678
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2124
3679
|
conversion_rate: Float?,
|
|
2125
|
-
conversion_rate_config: Orb::Models::
|
|
3680
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2126
3681
|
currency: String?,
|
|
2127
3682
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2128
3683
|
external_price_id: String?,
|
|
@@ -2153,7 +3708,7 @@ module Orb
|
|
|
2153
3708
|
|
|
2154
3709
|
attr_accessor conversion_rate: Float?
|
|
2155
3710
|
|
|
2156
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3711
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2157
3712
|
|
|
2158
3713
|
attr_accessor currency: String?
|
|
2159
3714
|
|
|
@@ -2182,7 +3737,7 @@ module Orb
|
|
|
2182
3737
|
?billed_in_advance: bool?,
|
|
2183
3738
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2184
3739
|
?conversion_rate: Float?,
|
|
2185
|
-
?conversion_rate_config: Orb::Models::
|
|
3740
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2186
3741
|
?currency: String?,
|
|
2187
3742
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2188
3743
|
?external_price_id: String?,
|
|
@@ -2205,7 +3760,7 @@ module Orb
|
|
|
2205
3760
|
billed_in_advance: bool?,
|
|
2206
3761
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2207
3762
|
conversion_rate: Float?,
|
|
2208
|
-
conversion_rate_config: Orb::Models::
|
|
3763
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2209
3764
|
currency: String?,
|
|
2210
3765
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2211
3766
|
external_price_id: String?,
|
|
@@ -2238,14 +3793,38 @@ module Orb
|
|
|
2238
3793
|
def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Percent::cadence]
|
|
2239
3794
|
end
|
|
2240
3795
|
|
|
2241
|
-
type percent_config =
|
|
3796
|
+
type percent_config =
|
|
3797
|
+
{
|
|
3798
|
+
percent: Float,
|
|
3799
|
+
maximum_amount: String?,
|
|
3800
|
+
minimum_amount: String?,
|
|
3801
|
+
prorated: bool
|
|
3802
|
+
}
|
|
2242
3803
|
|
|
2243
3804
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
2244
3805
|
attr_accessor percent: Float
|
|
2245
3806
|
|
|
2246
|
-
|
|
3807
|
+
attr_accessor maximum_amount: String?
|
|
2247
3808
|
|
|
2248
|
-
|
|
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
|
+
}
|
|
2249
3828
|
end
|
|
2250
3829
|
end
|
|
2251
3830
|
|
|
@@ -2260,7 +3839,7 @@ module Orb
|
|
|
2260
3839
|
billed_in_advance: bool?,
|
|
2261
3840
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2262
3841
|
conversion_rate: Float?,
|
|
2263
|
-
conversion_rate_config: Orb::Models::
|
|
3842
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2264
3843
|
currency: String?,
|
|
2265
3844
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2266
3845
|
external_price_id: String?,
|
|
@@ -2291,7 +3870,7 @@ module Orb
|
|
|
2291
3870
|
|
|
2292
3871
|
attr_accessor conversion_rate: Float?
|
|
2293
3872
|
|
|
2294
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3873
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2295
3874
|
|
|
2296
3875
|
attr_accessor currency: String?
|
|
2297
3876
|
|
|
@@ -2320,7 +3899,7 @@ module Orb
|
|
|
2320
3899
|
?billed_in_advance: bool?,
|
|
2321
3900
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2322
3901
|
?conversion_rate: Float?,
|
|
2323
|
-
?conversion_rate_config: Orb::Models::
|
|
3902
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2324
3903
|
?currency: String?,
|
|
2325
3904
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2326
3905
|
?external_price_id: String?,
|
|
@@ -2343,7 +3922,7 @@ module Orb
|
|
|
2343
3922
|
billed_in_advance: bool?,
|
|
2344
3923
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2345
3924
|
conversion_rate: Float?,
|
|
2346
|
-
conversion_rate_config: Orb::Models::
|
|
3925
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2347
3926
|
currency: String?,
|
|
2348
3927
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2349
3928
|
external_price_id: String?,
|