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
|
@@ -150,6 +150,7 @@ module Orb
|
|
|
150
150
|
| Orb::NewFloatingPackageWithAllocationPrice
|
|
151
151
|
| Orb::NewFloatingUnitWithPercentPrice
|
|
152
152
|
| Orb::NewFloatingMatrixWithAllocationPrice
|
|
153
|
+
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts
|
|
153
154
|
| Orb::NewFloatingTieredWithProrationPrice
|
|
154
155
|
| Orb::NewFloatingUnitWithProrationPrice
|
|
155
156
|
| Orb::NewFloatingGroupedAllocationPrice
|
|
@@ -164,6 +165,8 @@ module Orb
|
|
|
164
165
|
| Orb::NewFloatingScalableMatrixWithTieredPricingPrice
|
|
165
166
|
| Orb::NewFloatingCumulativeGroupedBulkPrice
|
|
166
167
|
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::CumulativeGroupedAllocation
|
|
168
|
+
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance
|
|
169
|
+
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance
|
|
167
170
|
| Orb::NewFloatingMinimumCompositePrice
|
|
168
171
|
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Percent
|
|
169
172
|
| Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::EventOutput
|
|
@@ -183,7 +186,7 @@ module Orb
|
|
|
183
186
|
billed_in_advance: bool?,
|
|
184
187
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
185
188
|
conversion_rate: Float?,
|
|
186
|
-
conversion_rate_config: Orb::Models::
|
|
189
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
187
190
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
188
191
|
external_price_id: String?,
|
|
189
192
|
fixed_price_quantity: Float?,
|
|
@@ -214,7 +217,7 @@ module Orb
|
|
|
214
217
|
|
|
215
218
|
attr_accessor conversion_rate: Float?
|
|
216
219
|
|
|
217
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
220
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
218
221
|
|
|
219
222
|
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
220
223
|
|
|
@@ -240,7 +243,7 @@ module Orb
|
|
|
240
243
|
?billed_in_advance: bool?,
|
|
241
244
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
242
245
|
?conversion_rate: Float?,
|
|
243
|
-
?conversion_rate_config: Orb::Models::
|
|
246
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
244
247
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
245
248
|
?external_price_id: String?,
|
|
246
249
|
?fixed_price_quantity: Float?,
|
|
@@ -262,7 +265,7 @@ module Orb
|
|
|
262
265
|
billed_in_advance: bool?,
|
|
263
266
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
264
267
|
conversion_rate: Float?,
|
|
265
|
-
conversion_rate_config: Orb::Models::
|
|
268
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
266
269
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
267
270
|
external_price_id: String?,
|
|
268
271
|
fixed_price_quantity: Float?,
|
|
@@ -349,6 +352,234 @@ module Orb
|
|
|
349
352
|
end
|
|
350
353
|
end
|
|
351
354
|
|
|
355
|
+
type matrix_with_threshold_discounts =
|
|
356
|
+
{
|
|
357
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::cadence,
|
|
358
|
+
currency: String,
|
|
359
|
+
item_id: String,
|
|
360
|
+
matrix_with_threshold_discounts_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
361
|
+
model_type: :matrix_with_threshold_discounts,
|
|
362
|
+
name: String,
|
|
363
|
+
billable_metric_id: String?,
|
|
364
|
+
billed_in_advance: bool?,
|
|
365
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
366
|
+
conversion_rate: Float?,
|
|
367
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
368
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
369
|
+
external_price_id: String?,
|
|
370
|
+
fixed_price_quantity: Float?,
|
|
371
|
+
invoice_grouping_key: String?,
|
|
372
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
373
|
+
license_type_id: String?,
|
|
374
|
+
metadata: ::Hash[Symbol, String?]?
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
378
|
+
attr_accessor cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::cadence
|
|
379
|
+
|
|
380
|
+
attr_accessor currency: String
|
|
381
|
+
|
|
382
|
+
attr_accessor item_id: String
|
|
383
|
+
|
|
384
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
385
|
+
|
|
386
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
387
|
+
|
|
388
|
+
attr_accessor name: String
|
|
389
|
+
|
|
390
|
+
attr_accessor billable_metric_id: String?
|
|
391
|
+
|
|
392
|
+
attr_accessor billed_in_advance: bool?
|
|
393
|
+
|
|
394
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
395
|
+
|
|
396
|
+
attr_accessor conversion_rate: Float?
|
|
397
|
+
|
|
398
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
399
|
+
|
|
400
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
401
|
+
|
|
402
|
+
attr_accessor external_price_id: String?
|
|
403
|
+
|
|
404
|
+
attr_accessor fixed_price_quantity: Float?
|
|
405
|
+
|
|
406
|
+
attr_accessor invoice_grouping_key: String?
|
|
407
|
+
|
|
408
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
409
|
+
|
|
410
|
+
attr_accessor license_type_id: String?
|
|
411
|
+
|
|
412
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
413
|
+
|
|
414
|
+
def initialize: (
|
|
415
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::cadence,
|
|
416
|
+
currency: String,
|
|
417
|
+
item_id: String,
|
|
418
|
+
matrix_with_threshold_discounts_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
419
|
+
name: String,
|
|
420
|
+
?billable_metric_id: String?,
|
|
421
|
+
?billed_in_advance: bool?,
|
|
422
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
423
|
+
?conversion_rate: Float?,
|
|
424
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
425
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
426
|
+
?external_price_id: String?,
|
|
427
|
+
?fixed_price_quantity: Float?,
|
|
428
|
+
?invoice_grouping_key: String?,
|
|
429
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
430
|
+
?license_type_id: String?,
|
|
431
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
432
|
+
?model_type: :matrix_with_threshold_discounts
|
|
433
|
+
) -> void
|
|
434
|
+
|
|
435
|
+
def to_hash: -> {
|
|
436
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::cadence,
|
|
437
|
+
currency: String,
|
|
438
|
+
item_id: String,
|
|
439
|
+
matrix_with_threshold_discounts_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
440
|
+
model_type: :matrix_with_threshold_discounts,
|
|
441
|
+
name: String,
|
|
442
|
+
billable_metric_id: String?,
|
|
443
|
+
billed_in_advance: bool?,
|
|
444
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
445
|
+
conversion_rate: Float?,
|
|
446
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
447
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
448
|
+
external_price_id: String?,
|
|
449
|
+
fixed_price_quantity: Float?,
|
|
450
|
+
invoice_grouping_key: String?,
|
|
451
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
452
|
+
license_type_id: String?,
|
|
453
|
+
metadata: ::Hash[Symbol, String?]?
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
type cadence =
|
|
457
|
+
:annual
|
|
458
|
+
| :semi_annual
|
|
459
|
+
| :monthly
|
|
460
|
+
| :quarterly
|
|
461
|
+
| :one_time
|
|
462
|
+
| :custom
|
|
463
|
+
|
|
464
|
+
module Cadence
|
|
465
|
+
extend Orb::Internal::Type::Enum
|
|
466
|
+
|
|
467
|
+
ANNUAL: :annual
|
|
468
|
+
SEMI_ANNUAL: :semi_annual
|
|
469
|
+
MONTHLY: :monthly
|
|
470
|
+
QUARTERLY: :quarterly
|
|
471
|
+
ONE_TIME: :one_time
|
|
472
|
+
CUSTOM: :custom
|
|
473
|
+
|
|
474
|
+
def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::cadence]
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
type matrix_with_threshold_discounts_config =
|
|
478
|
+
{
|
|
479
|
+
default_unit_amount: String,
|
|
480
|
+
first_dimension: String,
|
|
481
|
+
matrix_values: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
482
|
+
second_dimension: String?,
|
|
483
|
+
threshold_discount_groups: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
487
|
+
attr_accessor default_unit_amount: String
|
|
488
|
+
|
|
489
|
+
attr_accessor first_dimension: String
|
|
490
|
+
|
|
491
|
+
attr_accessor matrix_values: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
492
|
+
|
|
493
|
+
attr_accessor second_dimension: String?
|
|
494
|
+
|
|
495
|
+
attr_reader threshold_discount_groups: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
496
|
+
|
|
497
|
+
def threshold_discount_groups=: (
|
|
498
|
+
::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
499
|
+
) -> ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
500
|
+
|
|
501
|
+
def initialize: (
|
|
502
|
+
default_unit_amount: String,
|
|
503
|
+
first_dimension: String,
|
|
504
|
+
matrix_values: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
505
|
+
?second_dimension: String?,
|
|
506
|
+
?threshold_discount_groups: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
507
|
+
) -> void
|
|
508
|
+
|
|
509
|
+
def to_hash: -> {
|
|
510
|
+
default_unit_amount: String,
|
|
511
|
+
first_dimension: String,
|
|
512
|
+
matrix_values: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
513
|
+
second_dimension: String?,
|
|
514
|
+
threshold_discount_groups: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
type matrix_value =
|
|
518
|
+
{
|
|
519
|
+
first_dimension_value: String,
|
|
520
|
+
unit_amount: String,
|
|
521
|
+
second_dimension_value: String?
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
525
|
+
attr_accessor first_dimension_value: String
|
|
526
|
+
|
|
527
|
+
attr_accessor unit_amount: String
|
|
528
|
+
|
|
529
|
+
attr_accessor second_dimension_value: String?
|
|
530
|
+
|
|
531
|
+
def initialize: (
|
|
532
|
+
first_dimension_value: String,
|
|
533
|
+
unit_amount: String,
|
|
534
|
+
?second_dimension_value: String?
|
|
535
|
+
) -> void
|
|
536
|
+
|
|
537
|
+
def to_hash: -> {
|
|
538
|
+
first_dimension_value: String,
|
|
539
|
+
unit_amount: String,
|
|
540
|
+
second_dimension_value: String?
|
|
541
|
+
}
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
type threshold_discount_group =
|
|
545
|
+
{
|
|
546
|
+
above_threshold_discount_percentage: String,
|
|
547
|
+
below_threshold_discount_percentage: String,
|
|
548
|
+
cell_coordinates: String,
|
|
549
|
+
threshold_amount: String,
|
|
550
|
+
description: String?
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
554
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
555
|
+
|
|
556
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
557
|
+
|
|
558
|
+
attr_accessor cell_coordinates: String
|
|
559
|
+
|
|
560
|
+
attr_accessor threshold_amount: String
|
|
561
|
+
|
|
562
|
+
attr_accessor description: String?
|
|
563
|
+
|
|
564
|
+
def initialize: (
|
|
565
|
+
above_threshold_discount_percentage: String,
|
|
566
|
+
below_threshold_discount_percentage: String,
|
|
567
|
+
cell_coordinates: String,
|
|
568
|
+
threshold_amount: String,
|
|
569
|
+
?description: String?
|
|
570
|
+
) -> void
|
|
571
|
+
|
|
572
|
+
def to_hash: -> {
|
|
573
|
+
above_threshold_discount_percentage: String,
|
|
574
|
+
below_threshold_discount_percentage: String,
|
|
575
|
+
cell_coordinates: String,
|
|
576
|
+
threshold_amount: String,
|
|
577
|
+
description: String?
|
|
578
|
+
}
|
|
579
|
+
end
|
|
580
|
+
end
|
|
581
|
+
end
|
|
582
|
+
|
|
352
583
|
type grouped_with_min_max_thresholds =
|
|
353
584
|
{
|
|
354
585
|
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence,
|
|
@@ -361,7 +592,7 @@ module Orb
|
|
|
361
592
|
billed_in_advance: bool?,
|
|
362
593
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
363
594
|
conversion_rate: Float?,
|
|
364
|
-
conversion_rate_config: Orb::Models::
|
|
595
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
365
596
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
366
597
|
external_price_id: String?,
|
|
367
598
|
fixed_price_quantity: Float?,
|
|
@@ -392,7 +623,7 @@ module Orb
|
|
|
392
623
|
|
|
393
624
|
attr_accessor conversion_rate: Float?
|
|
394
625
|
|
|
395
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
626
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
396
627
|
|
|
397
628
|
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
398
629
|
|
|
@@ -418,7 +649,7 @@ module Orb
|
|
|
418
649
|
?billed_in_advance: bool?,
|
|
419
650
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
420
651
|
?conversion_rate: Float?,
|
|
421
|
-
?conversion_rate_config: Orb::Models::
|
|
652
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
422
653
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
423
654
|
?external_price_id: String?,
|
|
424
655
|
?fixed_price_quantity: Float?,
|
|
@@ -440,7 +671,7 @@ module Orb
|
|
|
440
671
|
billed_in_advance: bool?,
|
|
441
672
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
442
673
|
conversion_rate: Float?,
|
|
443
|
-
conversion_rate_config: Orb::Models::
|
|
674
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
444
675
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
445
676
|
external_price_id: String?,
|
|
446
677
|
fixed_price_quantity: Float?,
|
|
@@ -516,7 +747,7 @@ module Orb
|
|
|
516
747
|
billed_in_advance: bool?,
|
|
517
748
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
518
749
|
conversion_rate: Float?,
|
|
519
|
-
conversion_rate_config: Orb::Models::
|
|
750
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
520
751
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
521
752
|
external_price_id: String?,
|
|
522
753
|
fixed_price_quantity: Float?,
|
|
@@ -547,7 +778,7 @@ module Orb
|
|
|
547
778
|
|
|
548
779
|
attr_accessor conversion_rate: Float?
|
|
549
780
|
|
|
550
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
781
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
551
782
|
|
|
552
783
|
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
553
784
|
|
|
@@ -573,7 +804,7 @@ module Orb
|
|
|
573
804
|
?billed_in_advance: bool?,
|
|
574
805
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
575
806
|
?conversion_rate: Float?,
|
|
576
|
-
?conversion_rate_config: Orb::Models::
|
|
807
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
577
808
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
578
809
|
?external_price_id: String?,
|
|
579
810
|
?fixed_price_quantity: Float?,
|
|
@@ -595,7 +826,7 @@ module Orb
|
|
|
595
826
|
billed_in_advance: bool?,
|
|
596
827
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
597
828
|
conversion_rate: Float?,
|
|
598
|
-
conversion_rate_config: Orb::Models::
|
|
829
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
599
830
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
600
831
|
external_price_id: String?,
|
|
601
832
|
fixed_price_quantity: Float?,
|
|
@@ -659,6 +890,354 @@ module Orb
|
|
|
659
890
|
end
|
|
660
891
|
end
|
|
661
892
|
|
|
893
|
+
type daily_credit_allowance =
|
|
894
|
+
{
|
|
895
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::cadence,
|
|
896
|
+
currency: String,
|
|
897
|
+
daily_credit_allowance_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
898
|
+
item_id: String,
|
|
899
|
+
model_type: :daily_credit_allowance,
|
|
900
|
+
name: String,
|
|
901
|
+
billable_metric_id: String?,
|
|
902
|
+
billed_in_advance: bool?,
|
|
903
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
904
|
+
conversion_rate: Float?,
|
|
905
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
906
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
907
|
+
external_price_id: String?,
|
|
908
|
+
fixed_price_quantity: Float?,
|
|
909
|
+
invoice_grouping_key: String?,
|
|
910
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
911
|
+
license_type_id: String?,
|
|
912
|
+
metadata: ::Hash[Symbol, String?]?
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
916
|
+
attr_accessor cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::cadence
|
|
917
|
+
|
|
918
|
+
attr_accessor currency: String
|
|
919
|
+
|
|
920
|
+
attr_accessor daily_credit_allowance_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
921
|
+
|
|
922
|
+
attr_accessor item_id: String
|
|
923
|
+
|
|
924
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
925
|
+
|
|
926
|
+
attr_accessor name: String
|
|
927
|
+
|
|
928
|
+
attr_accessor billable_metric_id: String?
|
|
929
|
+
|
|
930
|
+
attr_accessor billed_in_advance: bool?
|
|
931
|
+
|
|
932
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
933
|
+
|
|
934
|
+
attr_accessor conversion_rate: Float?
|
|
935
|
+
|
|
936
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
937
|
+
|
|
938
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
939
|
+
|
|
940
|
+
attr_accessor external_price_id: String?
|
|
941
|
+
|
|
942
|
+
attr_accessor fixed_price_quantity: Float?
|
|
943
|
+
|
|
944
|
+
attr_accessor invoice_grouping_key: String?
|
|
945
|
+
|
|
946
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
947
|
+
|
|
948
|
+
attr_accessor license_type_id: String?
|
|
949
|
+
|
|
950
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
951
|
+
|
|
952
|
+
def initialize: (
|
|
953
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::cadence,
|
|
954
|
+
currency: String,
|
|
955
|
+
daily_credit_allowance_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
956
|
+
item_id: String,
|
|
957
|
+
name: String,
|
|
958
|
+
?billable_metric_id: String?,
|
|
959
|
+
?billed_in_advance: bool?,
|
|
960
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
961
|
+
?conversion_rate: Float?,
|
|
962
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
963
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
964
|
+
?external_price_id: String?,
|
|
965
|
+
?fixed_price_quantity: Float?,
|
|
966
|
+
?invoice_grouping_key: String?,
|
|
967
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
968
|
+
?license_type_id: String?,
|
|
969
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
970
|
+
?model_type: :daily_credit_allowance
|
|
971
|
+
) -> void
|
|
972
|
+
|
|
973
|
+
def to_hash: -> {
|
|
974
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::cadence,
|
|
975
|
+
currency: String,
|
|
976
|
+
daily_credit_allowance_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
977
|
+
item_id: String,
|
|
978
|
+
model_type: :daily_credit_allowance,
|
|
979
|
+
name: String,
|
|
980
|
+
billable_metric_id: String?,
|
|
981
|
+
billed_in_advance: bool?,
|
|
982
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
983
|
+
conversion_rate: Float?,
|
|
984
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
985
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
986
|
+
external_price_id: String?,
|
|
987
|
+
fixed_price_quantity: Float?,
|
|
988
|
+
invoice_grouping_key: String?,
|
|
989
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
990
|
+
license_type_id: String?,
|
|
991
|
+
metadata: ::Hash[Symbol, String?]?
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
type cadence =
|
|
995
|
+
:annual
|
|
996
|
+
| :semi_annual
|
|
997
|
+
| :monthly
|
|
998
|
+
| :quarterly
|
|
999
|
+
| :one_time
|
|
1000
|
+
| :custom
|
|
1001
|
+
|
|
1002
|
+
module Cadence
|
|
1003
|
+
extend Orb::Internal::Type::Enum
|
|
1004
|
+
|
|
1005
|
+
ANNUAL: :annual
|
|
1006
|
+
SEMI_ANNUAL: :semi_annual
|
|
1007
|
+
MONTHLY: :monthly
|
|
1008
|
+
QUARTERLY: :quarterly
|
|
1009
|
+
ONE_TIME: :one_time
|
|
1010
|
+
CUSTOM: :custom
|
|
1011
|
+
|
|
1012
|
+
def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::cadence]
|
|
1013
|
+
end
|
|
1014
|
+
|
|
1015
|
+
type daily_credit_allowance_config =
|
|
1016
|
+
{
|
|
1017
|
+
daily_allowance: String,
|
|
1018
|
+
default_unit_amount: String,
|
|
1019
|
+
dimensions: ::Array[String?],
|
|
1020
|
+
event_day_property: String,
|
|
1021
|
+
matrix_values: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1025
|
+
attr_accessor daily_allowance: String
|
|
1026
|
+
|
|
1027
|
+
attr_accessor default_unit_amount: String
|
|
1028
|
+
|
|
1029
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1030
|
+
|
|
1031
|
+
attr_accessor event_day_property: String
|
|
1032
|
+
|
|
1033
|
+
attr_accessor matrix_values: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1034
|
+
|
|
1035
|
+
def initialize: (
|
|
1036
|
+
daily_allowance: String,
|
|
1037
|
+
default_unit_amount: String,
|
|
1038
|
+
dimensions: ::Array[String?],
|
|
1039
|
+
event_day_property: String,
|
|
1040
|
+
matrix_values: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1041
|
+
) -> void
|
|
1042
|
+
|
|
1043
|
+
def to_hash: -> {
|
|
1044
|
+
daily_allowance: String,
|
|
1045
|
+
default_unit_amount: String,
|
|
1046
|
+
dimensions: ::Array[String?],
|
|
1047
|
+
event_day_property: String,
|
|
1048
|
+
matrix_values: ::Array[Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
type matrix_value =
|
|
1052
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
1053
|
+
|
|
1054
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
1055
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
1056
|
+
|
|
1057
|
+
attr_accessor unit_amount: String
|
|
1058
|
+
|
|
1059
|
+
def initialize: (
|
|
1060
|
+
dimension_values: ::Array[String?],
|
|
1061
|
+
unit_amount: String
|
|
1062
|
+
) -> void
|
|
1063
|
+
|
|
1064
|
+
def to_hash: -> {
|
|
1065
|
+
dimension_values: ::Array[String?],
|
|
1066
|
+
unit_amount: String
|
|
1067
|
+
}
|
|
1068
|
+
end
|
|
1069
|
+
end
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1072
|
+
type metered_allowance =
|
|
1073
|
+
{
|
|
1074
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::cadence,
|
|
1075
|
+
currency: String,
|
|
1076
|
+
item_id: String,
|
|
1077
|
+
metered_allowance_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1078
|
+
model_type: :metered_allowance,
|
|
1079
|
+
name: String,
|
|
1080
|
+
billable_metric_id: String?,
|
|
1081
|
+
billed_in_advance: bool?,
|
|
1082
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1083
|
+
conversion_rate: Float?,
|
|
1084
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1085
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1086
|
+
external_price_id: String?,
|
|
1087
|
+
fixed_price_quantity: Float?,
|
|
1088
|
+
invoice_grouping_key: String?,
|
|
1089
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1090
|
+
license_type_id: String?,
|
|
1091
|
+
metadata: ::Hash[Symbol, String?]?
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
1095
|
+
attr_accessor cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::cadence
|
|
1096
|
+
|
|
1097
|
+
attr_accessor currency: String
|
|
1098
|
+
|
|
1099
|
+
attr_accessor item_id: String
|
|
1100
|
+
|
|
1101
|
+
attr_accessor metered_allowance_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
1102
|
+
|
|
1103
|
+
attr_accessor model_type: :metered_allowance
|
|
1104
|
+
|
|
1105
|
+
attr_accessor name: String
|
|
1106
|
+
|
|
1107
|
+
attr_accessor billable_metric_id: String?
|
|
1108
|
+
|
|
1109
|
+
attr_accessor billed_in_advance: bool?
|
|
1110
|
+
|
|
1111
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1112
|
+
|
|
1113
|
+
attr_accessor conversion_rate: Float?
|
|
1114
|
+
|
|
1115
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1116
|
+
|
|
1117
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1118
|
+
|
|
1119
|
+
attr_accessor external_price_id: String?
|
|
1120
|
+
|
|
1121
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1122
|
+
|
|
1123
|
+
attr_accessor invoice_grouping_key: String?
|
|
1124
|
+
|
|
1125
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1126
|
+
|
|
1127
|
+
attr_accessor license_type_id: String?
|
|
1128
|
+
|
|
1129
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1130
|
+
|
|
1131
|
+
def initialize: (
|
|
1132
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::cadence,
|
|
1133
|
+
currency: String,
|
|
1134
|
+
item_id: String,
|
|
1135
|
+
metered_allowance_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1136
|
+
name: String,
|
|
1137
|
+
?billable_metric_id: String?,
|
|
1138
|
+
?billed_in_advance: bool?,
|
|
1139
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1140
|
+
?conversion_rate: Float?,
|
|
1141
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1142
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1143
|
+
?external_price_id: String?,
|
|
1144
|
+
?fixed_price_quantity: Float?,
|
|
1145
|
+
?invoice_grouping_key: String?,
|
|
1146
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1147
|
+
?license_type_id: String?,
|
|
1148
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1149
|
+
?model_type: :metered_allowance
|
|
1150
|
+
) -> void
|
|
1151
|
+
|
|
1152
|
+
def to_hash: -> {
|
|
1153
|
+
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::cadence,
|
|
1154
|
+
currency: String,
|
|
1155
|
+
item_id: String,
|
|
1156
|
+
metered_allowance_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1157
|
+
model_type: :metered_allowance,
|
|
1158
|
+
name: String,
|
|
1159
|
+
billable_metric_id: String?,
|
|
1160
|
+
billed_in_advance: bool?,
|
|
1161
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1162
|
+
conversion_rate: Float?,
|
|
1163
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1164
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1165
|
+
external_price_id: String?,
|
|
1166
|
+
fixed_price_quantity: Float?,
|
|
1167
|
+
invoice_grouping_key: String?,
|
|
1168
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1169
|
+
license_type_id: String?,
|
|
1170
|
+
metadata: ::Hash[Symbol, String?]?
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
type cadence =
|
|
1174
|
+
:annual
|
|
1175
|
+
| :semi_annual
|
|
1176
|
+
| :monthly
|
|
1177
|
+
| :quarterly
|
|
1178
|
+
| :one_time
|
|
1179
|
+
| :custom
|
|
1180
|
+
|
|
1181
|
+
module Cadence
|
|
1182
|
+
extend Orb::Internal::Type::Enum
|
|
1183
|
+
|
|
1184
|
+
ANNUAL: :annual
|
|
1185
|
+
SEMI_ANNUAL: :semi_annual
|
|
1186
|
+
MONTHLY: :monthly
|
|
1187
|
+
QUARTERLY: :quarterly
|
|
1188
|
+
ONE_TIME: :one_time
|
|
1189
|
+
CUSTOM: :custom
|
|
1190
|
+
|
|
1191
|
+
def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MeteredAllowance::cadence]
|
|
1192
|
+
end
|
|
1193
|
+
|
|
1194
|
+
type metered_allowance_config =
|
|
1195
|
+
{
|
|
1196
|
+
allowance_grouping_value: String,
|
|
1197
|
+
consumption_grouping_value: String,
|
|
1198
|
+
grouping_key: String,
|
|
1199
|
+
unit_amount: String,
|
|
1200
|
+
allowance_display_name: String,
|
|
1201
|
+
consumption_display_name: String
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1205
|
+
attr_accessor allowance_grouping_value: String
|
|
1206
|
+
|
|
1207
|
+
attr_accessor consumption_grouping_value: String
|
|
1208
|
+
|
|
1209
|
+
attr_accessor grouping_key: String
|
|
1210
|
+
|
|
1211
|
+
attr_accessor unit_amount: String
|
|
1212
|
+
|
|
1213
|
+
attr_reader allowance_display_name: String?
|
|
1214
|
+
|
|
1215
|
+
def allowance_display_name=: (String) -> String
|
|
1216
|
+
|
|
1217
|
+
attr_reader consumption_display_name: String?
|
|
1218
|
+
|
|
1219
|
+
def consumption_display_name=: (String) -> String
|
|
1220
|
+
|
|
1221
|
+
def initialize: (
|
|
1222
|
+
allowance_grouping_value: String,
|
|
1223
|
+
consumption_grouping_value: String,
|
|
1224
|
+
grouping_key: String,
|
|
1225
|
+
unit_amount: String,
|
|
1226
|
+
?allowance_display_name: String,
|
|
1227
|
+
?consumption_display_name: String
|
|
1228
|
+
) -> void
|
|
1229
|
+
|
|
1230
|
+
def to_hash: -> {
|
|
1231
|
+
allowance_grouping_value: String,
|
|
1232
|
+
consumption_grouping_value: String,
|
|
1233
|
+
grouping_key: String,
|
|
1234
|
+
unit_amount: String,
|
|
1235
|
+
allowance_display_name: String,
|
|
1236
|
+
consumption_display_name: String
|
|
1237
|
+
}
|
|
1238
|
+
end
|
|
1239
|
+
end
|
|
1240
|
+
|
|
662
1241
|
type percent =
|
|
663
1242
|
{
|
|
664
1243
|
cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Percent::cadence,
|
|
@@ -671,7 +1250,7 @@ module Orb
|
|
|
671
1250
|
billed_in_advance: bool?,
|
|
672
1251
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
673
1252
|
conversion_rate: Float?,
|
|
674
|
-
conversion_rate_config: Orb::Models::
|
|
1253
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
675
1254
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
676
1255
|
external_price_id: String?,
|
|
677
1256
|
fixed_price_quantity: Float?,
|
|
@@ -702,7 +1281,7 @@ module Orb
|
|
|
702
1281
|
|
|
703
1282
|
attr_accessor conversion_rate: Float?
|
|
704
1283
|
|
|
705
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1284
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
706
1285
|
|
|
707
1286
|
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
708
1287
|
|
|
@@ -728,7 +1307,7 @@ module Orb
|
|
|
728
1307
|
?billed_in_advance: bool?,
|
|
729
1308
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
730
1309
|
?conversion_rate: Float?,
|
|
731
|
-
?conversion_rate_config: Orb::Models::
|
|
1310
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
732
1311
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
733
1312
|
?external_price_id: String?,
|
|
734
1313
|
?fixed_price_quantity: Float?,
|
|
@@ -750,7 +1329,7 @@ module Orb
|
|
|
750
1329
|
billed_in_advance: bool?,
|
|
751
1330
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
752
1331
|
conversion_rate: Float?,
|
|
753
|
-
conversion_rate_config: Orb::Models::
|
|
1332
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
754
1333
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
755
1334
|
external_price_id: String?,
|
|
756
1335
|
fixed_price_quantity: Float?,
|
|
@@ -781,14 +1360,38 @@ module Orb
|
|
|
781
1360
|
def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Percent::cadence]
|
|
782
1361
|
end
|
|
783
1362
|
|
|
784
|
-
type percent_config =
|
|
1363
|
+
type percent_config =
|
|
1364
|
+
{
|
|
1365
|
+
percent: Float,
|
|
1366
|
+
maximum_amount: String?,
|
|
1367
|
+
minimum_amount: String?,
|
|
1368
|
+
prorated: bool
|
|
1369
|
+
}
|
|
785
1370
|
|
|
786
1371
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
787
1372
|
attr_accessor percent: Float
|
|
788
1373
|
|
|
789
|
-
|
|
1374
|
+
attr_accessor maximum_amount: String?
|
|
1375
|
+
|
|
1376
|
+
attr_accessor minimum_amount: String?
|
|
1377
|
+
|
|
1378
|
+
attr_reader prorated: bool?
|
|
790
1379
|
|
|
791
|
-
def
|
|
1380
|
+
def prorated=: (bool) -> bool
|
|
1381
|
+
|
|
1382
|
+
def initialize: (
|
|
1383
|
+
percent: Float,
|
|
1384
|
+
?maximum_amount: String?,
|
|
1385
|
+
?minimum_amount: String?,
|
|
1386
|
+
?prorated: bool
|
|
1387
|
+
) -> void
|
|
1388
|
+
|
|
1389
|
+
def to_hash: -> {
|
|
1390
|
+
percent: Float,
|
|
1391
|
+
maximum_amount: String?,
|
|
1392
|
+
minimum_amount: String?,
|
|
1393
|
+
prorated: bool
|
|
1394
|
+
}
|
|
792
1395
|
end
|
|
793
1396
|
end
|
|
794
1397
|
|
|
@@ -804,7 +1407,7 @@ module Orb
|
|
|
804
1407
|
billed_in_advance: bool?,
|
|
805
1408
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
806
1409
|
conversion_rate: Float?,
|
|
807
|
-
conversion_rate_config: Orb::Models::
|
|
1410
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
808
1411
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
809
1412
|
external_price_id: String?,
|
|
810
1413
|
fixed_price_quantity: Float?,
|
|
@@ -835,7 +1438,7 @@ module Orb
|
|
|
835
1438
|
|
|
836
1439
|
attr_accessor conversion_rate: Float?
|
|
837
1440
|
|
|
838
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1441
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
839
1442
|
|
|
840
1443
|
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
841
1444
|
|
|
@@ -861,7 +1464,7 @@ module Orb
|
|
|
861
1464
|
?billed_in_advance: bool?,
|
|
862
1465
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
863
1466
|
?conversion_rate: Float?,
|
|
864
|
-
?conversion_rate_config: Orb::Models::
|
|
1467
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
865
1468
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
866
1469
|
?external_price_id: String?,
|
|
867
1470
|
?fixed_price_quantity: Float?,
|
|
@@ -883,7 +1486,7 @@ module Orb
|
|
|
883
1486
|
billed_in_advance: bool?,
|
|
884
1487
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
885
1488
|
conversion_rate: Float?,
|
|
886
|
-
conversion_rate_config: Orb::Models::
|
|
1489
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
887
1490
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
888
1491
|
external_price_id: String?,
|
|
889
1492
|
fixed_price_quantity: Float?,
|