orb-billing 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +55 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +21 -0
- data/lib/orb/internal/transport/base_client.rb +5 -0
- data/lib/orb/internal/type/union.rb +13 -27
- data/lib/orb/internal/util.rb +22 -7
- data/lib/orb/models/accounting_provider_config.rb +14 -3
- data/lib/orb/models/adjustment_interval.rb +185 -3
- data/lib/orb/models/alert.rb +114 -1
- data/lib/orb/models/alert_create_for_customer_params.rb +8 -1
- data/lib/orb/models/alert_create_for_external_customer_params.rb +8 -1
- data/lib/orb/models/alert_create_for_subscription_params.rb +142 -1
- data/lib/orb/models/alert_disable_params.rb +8 -1
- data/lib/orb/models/alert_enable_params.rb +8 -1
- data/lib/orb/models/alert_retrieve_params.rb +7 -1
- data/lib/orb/models/alert_update_params.rb +120 -1
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +3296 -631
- data/lib/orb/models/beta/external_plan_id_fetch_plan_version_params.rb +7 -1
- data/lib/orb/models/beta/external_plan_id_set_default_plan_version_params.rb +8 -1
- data/lib/orb/models/beta_create_plan_version_params.rb +3263 -622
- data/lib/orb/models/beta_fetch_plan_version_params.rb +7 -1
- data/lib/orb/models/beta_set_default_plan_version_params.rb +8 -1
- data/lib/orb/models/changed_subscription_resources.rb +200 -10
- data/lib/orb/models/conversion_rate_config.rb +18 -0
- data/lib/orb/models/coupon_archive_params.rb +7 -1
- data/lib/orb/models/coupon_fetch_params.rb +7 -1
- data/lib/orb/models/coupons/subscription_list_params.rb +8 -1
- data/lib/orb/models/credit_block_delete_params.rb +7 -1
- data/lib/orb/models/credit_block_list_invoices_params.rb +7 -1
- data/lib/orb/models/credit_block_list_invoices_response.rb +155 -1
- data/lib/orb/models/credit_block_retrieve_params.rb +7 -1
- data/lib/orb/models/credit_block_retrieve_response.rb +150 -1
- data/lib/orb/models/credit_note_fetch_params.rb +7 -1
- data/lib/orb/models/customer.rb +122 -3
- data/lib/orb/models/customer_create_params.rb +17 -1
- data/lib/orb/models/customer_delete_params.rb +7 -1
- data/lib/orb/models/customer_fetch_by_external_id_params.rb +7 -1
- data/lib/orb/models/customer_fetch_params.rb +7 -1
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +7 -1
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +7 -1
- data/lib/orb/models/customer_tax_id.rb +15 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +39 -5
- data/lib/orb/models/customer_update_params.rb +39 -5
- data/lib/orb/models/customers/balance_transaction_create_params.rb +8 -1
- data/lib/orb/models/customers/balance_transaction_list_params.rb +8 -1
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/cost_list_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +155 -1
- data/lib/orb/models/customers/credit_list_params.rb +8 -1
- data/lib/orb/models/customers/credit_list_response.rb +152 -1
- data/lib/orb/models/customers/credits/decrement_ledger_entry.rb +5 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +582 -315
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +580 -313
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_create_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +7 -1
- data/lib/orb/models/customers/credits/top_up_delete_params.rb +7 -1
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +8 -1
- data/lib/orb/models/customers/credits/top_up_list_params.rb +8 -1
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/dimensional_price_group_retrieve_params.rb +7 -1
- data/lib/orb/models/dimensional_price_group_update_params.rb +8 -1
- data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +7 -1
- data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rb +8 -1
- data/lib/orb/models/discount.rb +145 -1
- data/lib/orb/models/event_deprecate_params.rb +7 -1
- data/lib/orb/models/event_ingest_params.rb +5 -2
- data/lib/orb/models/event_update_params.rb +8 -1
- data/lib/orb/models/events/backfill_close_params.rb +7 -1
- data/lib/orb/models/events/backfill_fetch_params.rb +7 -1
- data/lib/orb/models/events/backfill_revert_params.rb +7 -1
- data/lib/orb/models/invoice.rb +198 -10
- data/lib/orb/models/invoice_create_params.rb +6 -5
- data/lib/orb/models/invoice_delete_line_item_params.rb +7 -1
- data/lib/orb/models/invoice_fetch_params.rb +7 -1
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +200 -10
- data/lib/orb/models/invoice_issue_params.rb +8 -1
- data/lib/orb/models/invoice_issue_summary_params.rb +8 -1
- data/lib/orb/models/invoice_issue_summary_response.rb +9 -3
- data/lib/orb/models/invoice_level_discount.rb +145 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +189 -5
- data/lib/orb/models/invoice_list_summary_response.rb +9 -3
- data/lib/orb/models/invoice_mark_paid_params.rb +8 -1
- data/lib/orb/models/invoice_pay_params.rb +16 -1
- data/lib/orb/models/invoice_update_params.rb +8 -1
- data/lib/orb/models/invoice_void_params.rb +7 -1
- data/lib/orb/models/item_archive_params.rb +7 -1
- data/lib/orb/models/item_fetch_params.rb +7 -1
- data/lib/orb/models/item_update_params.rb +8 -1
- data/lib/orb/models/license_deactivate_params.rb +8 -1
- data/lib/orb/models/license_retrieve_by_external_id_params.rb +8 -1
- data/lib/orb/models/license_retrieve_params.rb +7 -1
- data/lib/orb/models/license_type_retrieve_params.rb +7 -1
- data/lib/orb/models/licenses/external_license_get_usage_params.rb +11 -4
- data/lib/orb/models/licenses/usage_get_all_usage_params.rb +3 -3
- data/lib/orb/models/licenses/usage_get_usage_params.rb +11 -4
- data/lib/orb/models/metric_fetch_params.rb +7 -1
- data/lib/orb/models/metric_update_params.rb +8 -1
- data/lib/orb/models/mutated_subscription.rb +169 -4
- data/lib/orb/models/new_allocation_price.rb +11 -1
- data/lib/orb/models/new_floating_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_floating_package_price.rb +1 -3
- data/lib/orb/models/new_floating_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_floating_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_floating_tiered_with_proration_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_floating_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_bulk_price.rb +1 -1
- data/lib/orb/models/new_plan_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_price.rb +1 -5
- data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_plan_package_price.rb +1 -5
- data/lib/orb/models/new_plan_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_plan_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_tiered_price.rb +1 -5
- data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_price.rb +1 -1
- data/lib/orb/models/new_plan_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_plan_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +1 -3
- data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +1 -3
- data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_minimum_composite_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_package_with_allocation_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +1 -3
- data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_price.rb +1 -3
- data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_percent_price.rb +1 -3
- data/lib/orb/models/new_subscription_unit_with_proration_price.rb +1 -3
- data/lib/orb/models/per_price_cost.rb +2 -2
- data/lib/orb/models/plan.rb +189 -9
- data/lib/orb/models/plan_create_params.rb +1478 -158
- data/lib/orb/models/plan_fetch_params.rb +7 -1
- data/lib/orb/models/plan_update_params.rb +16 -1
- data/lib/orb/models/plan_version.rb +186 -5
- data/lib/orb/models/plans/external_plan_id_fetch_params.rb +7 -1
- data/lib/orb/models/plans/external_plan_id_update_params.rb +16 -1
- data/lib/orb/models/plans/migration_cancel_params.rb +7 -1
- data/lib/orb/models/plans/migration_cancel_response.rb +22 -4
- data/lib/orb/models/plans/migration_list_params.rb +8 -1
- data/lib/orb/models/plans/migration_list_response.rb +22 -4
- data/lib/orb/models/plans/migration_retrieve_params.rb +7 -1
- data/lib/orb/models/plans/migration_retrieve_response.rb +22 -4
- data/lib/orb/models/price.rb +2807 -1244
- data/lib/orb/models/price_create_params.rb +1800 -1355
- data/lib/orb/models/price_evaluate_multiple_params.rb +889 -54
- data/lib/orb/models/price_evaluate_params.rb +8 -1
- data/lib/orb/models/price_evaluate_preview_events_params.rb +881 -46
- data/lib/orb/models/price_fetch_params.rb +7 -1
- data/lib/orb/models/price_interval.rb +2 -2
- data/lib/orb/models/price_update_params.rb +8 -1
- data/lib/orb/models/prices/external_price_id_fetch_params.rb +7 -1
- data/lib/orb/models/prices/external_price_id_update_params.rb +8 -1
- data/lib/orb/models/subscription.rb +168 -4
- data/lib/orb/models/subscription_cancel_params.rb +8 -1
- data/lib/orb/models/subscription_change_apply_params.rb +8 -1
- data/lib/orb/models/subscription_change_cancel_params.rb +7 -1
- data/lib/orb/models/subscription_change_retrieve_params.rb +7 -1
- data/lib/orb/models/subscription_create_params.rb +2818 -674
- data/lib/orb/models/subscription_fetch_costs_params.rb +8 -1
- data/lib/orb/models/subscription_fetch_params.rb +7 -1
- data/lib/orb/models/subscription_fetch_schedule_params.rb +8 -1
- data/lib/orb/models/subscription_fetch_usage_params.rb +8 -1
- data/lib/orb/models/subscription_price_intervals_params.rb +1103 -55
- data/lib/orb/models/subscription_redeem_coupon_params.rb +8 -1
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +2839 -685
- data/lib/orb/models/subscription_trigger_phase_params.rb +8 -1
- data/lib/orb/models/subscription_unschedule_cancellation_params.rb +7 -1
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +8 -1
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +7 -1
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +8 -1
- data/lib/orb/models/subscription_update_params.rb +19 -1
- data/lib/orb/models/subscription_update_trial_params.rb +8 -1
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/alerts.rb +20 -2
- data/lib/orb/resources/coupons.rb +1 -2
- data/lib/orb/resources/credit_blocks.rb +11 -8
- data/lib/orb/resources/customers/credits/ledger.rb +40 -81
- data/lib/orb/resources/customers.rb +12 -7
- data/lib/orb/resources/events/backfills.rb +3 -4
- data/lib/orb/resources/events.rb +7 -34
- data/lib/orb/resources/invoices.rb +18 -7
- data/lib/orb/resources/licenses/external_licenses.rb +1 -1
- data/lib/orb/resources/licenses/usage.rb +2 -2
- data/lib/orb/resources/metrics.rb +5 -5
- data/lib/orb/resources/plans/external_plan_id.rb +5 -3
- data/lib/orb/resources/plans.rb +9 -5
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +13 -104
- data/lib/orb/resources/subscriptions.rb +24 -7
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -0
- data/rbi/orb/client.rbi +6 -0
- data/rbi/orb/internal/util.rbi +8 -0
- data/rbi/orb/models/accounting_provider_config.rbi +38 -5
- data/rbi/orb/models/adjustment_interval.rbi +336 -0
- data/rbi/orb/models/alert.rbi +182 -3
- data/rbi/orb/models/alert_create_for_customer_params.rbi +6 -0
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +6 -0
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +285 -0
- data/rbi/orb/models/alert_disable_params.rbi +6 -0
- data/rbi/orb/models/alert_enable_params.rbi +6 -0
- data/rbi/orb/models/alert_retrieve_params.rbi +13 -5
- data/rbi/orb/models/alert_update_params.rbi +214 -0
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +5873 -1161
- data/rbi/orb/models/beta/external_plan_id_fetch_plan_version_params.rbi +10 -2
- data/rbi/orb/models/beta/external_plan_id_set_default_plan_version_params.rbi +10 -1
- data/rbi/orb/models/beta_create_plan_version_params.rbi +5877 -1165
- data/rbi/orb/models/beta_fetch_plan_version_params.rbi +10 -2
- data/rbi/orb/models/beta_set_default_plan_version_params.rbi +10 -1
- data/rbi/orb/models/changed_subscription_resources.rbi +360 -5
- data/rbi/orb/models/conversion_rate_config.rbi +18 -0
- data/rbi/orb/models/coupon_archive_params.rbi +13 -5
- data/rbi/orb/models/coupon_fetch_params.rbi +13 -5
- data/rbi/orb/models/coupons/subscription_list_params.rbi +6 -0
- data/rbi/orb/models/credit_block_delete_params.rbi +13 -5
- data/rbi/orb/models/credit_block_list_invoices_params.rbi +13 -5
- data/rbi/orb/models/credit_block_list_invoices_response.rbi +346 -3
- data/rbi/orb/models/credit_block_retrieve_params.rbi +13 -5
- data/rbi/orb/models/credit_block_retrieve_response.rbi +344 -3
- data/rbi/orb/models/credit_note_fetch_params.rbi +13 -5
- data/rbi/orb/models/customer.rbi +202 -0
- data/rbi/orb/models/customer_create_params.rbi +27 -0
- data/rbi/orb/models/customer_delete_params.rbi +13 -5
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +13 -5
- data/rbi/orb/models/customer_fetch_params.rbi +13 -5
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +13 -5
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +13 -5
- data/rbi/orb/models/customer_tax_id.rbi +15 -1
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +51 -4
- data/rbi/orb/models/customer_update_params.rbi +51 -4
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +6 -0
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +6 -0
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/cost_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +346 -3
- data/rbi/orb/models/customers/credit_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credit_list_response.rbi +347 -3
- data/rbi/orb/models/customers/credits/decrement_ledger_entry.rbi +4 -0
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +861 -478
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +861 -478
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +6 -1
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +10 -2
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +6 -0
- data/rbi/orb/models/dimensional_price_group.rbi +1 -1
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +16 -5
- data/rbi/orb/models/dimensional_price_group_update_params.rbi +6 -0
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +16 -5
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rbi +6 -0
- data/rbi/orb/models/discount.rbi +269 -1
- data/rbi/orb/models/event_deprecate_params.rbi +13 -5
- data/rbi/orb/models/event_ingest_params.rbi +4 -2
- data/rbi/orb/models/event_update_params.rbi +6 -0
- data/rbi/orb/models/events/backfill_close_params.rbi +13 -5
- data/rbi/orb/models/events/backfill_fetch_params.rbi +13 -5
- data/rbi/orb/models/events/backfill_revert_params.rbi +13 -5
- data/rbi/orb/models/invoice.rbi +360 -5
- data/rbi/orb/models/invoice_create_params.rbi +12 -7
- data/rbi/orb/models/invoice_delete_line_item_params.rbi +10 -2
- data/rbi/orb/models/invoice_fetch_params.rbi +13 -5
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +360 -5
- data/rbi/orb/models/invoice_issue_params.rbi +10 -1
- data/rbi/orb/models/invoice_issue_summary_params.rbi +10 -1
- data/rbi/orb/models/invoice_issue_summary_response.rbi +19 -4
- data/rbi/orb/models/invoice_level_discount.rbi +298 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +339 -0
- data/rbi/orb/models/invoice_list_summary_response.rbi +19 -4
- data/rbi/orb/models/invoice_mark_paid_params.rbi +6 -0
- data/rbi/orb/models/invoice_pay_params.rbi +27 -5
- data/rbi/orb/models/invoice_update_params.rbi +6 -0
- data/rbi/orb/models/invoice_void_params.rbi +13 -5
- data/rbi/orb/models/item_archive_params.rbi +13 -5
- data/rbi/orb/models/item_fetch_params.rbi +13 -5
- data/rbi/orb/models/item_update_params.rbi +6 -0
- data/rbi/orb/models/license_deactivate_params.rbi +10 -1
- data/rbi/orb/models/license_retrieve_by_external_id_params.rbi +6 -0
- data/rbi/orb/models/license_retrieve_params.rbi +13 -5
- data/rbi/orb/models/license_type_retrieve_params.rbi +13 -5
- data/rbi/orb/models/licenses/external_license_get_usage_params.rbi +9 -3
- data/rbi/orb/models/licenses/usage_get_all_usage_params.rbi +3 -3
- data/rbi/orb/models/licenses/usage_get_usage_params.rbi +9 -3
- data/rbi/orb/models/metric_fetch_params.rbi +13 -5
- data/rbi/orb/models/metric_update_params.rbi +6 -0
- data/rbi/orb/models/mutated_subscription.rbi +324 -2
- data/rbi/orb/models/new_allocation_price.rbi +12 -0
- data/rbi/orb/models/per_price_cost.rbi +3 -0
- data/rbi/orb/models/plan.rbi +339 -2
- data/rbi/orb/models/plan_create_params.rbi +2566 -209
- data/rbi/orb/models/plan_fetch_params.rbi +13 -5
- data/rbi/orb/models/plan_update_params.rbi +14 -0
- data/rbi/orb/models/plan_version.rbi +339 -0
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +13 -5
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +14 -0
- data/rbi/orb/models/plans/migration_cancel_params.rbi +10 -2
- data/rbi/orb/models/plans/migration_cancel_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_list_params.rbi +6 -0
- data/rbi/orb/models/plans/migration_list_response.rbi +22 -1
- data/rbi/orb/models/plans/migration_retrieve_params.rbi +10 -2
- data/rbi/orb/models/plans/migration_retrieve_response.rbi +22 -1
- data/rbi/orb/models/price.rbi +4733 -2280
- data/rbi/orb/models/price_create_params.rbi +3022 -2408
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +1540 -114
- data/rbi/orb/models/price_evaluate_params.rbi +6 -0
- data/rbi/orb/models/price_evaluate_preview_events_params.rbi +1540 -114
- data/rbi/orb/models/price_fetch_params.rbi +13 -5
- data/rbi/orb/models/price_interval.rbi +3 -0
- data/rbi/orb/models/price_update_params.rbi +6 -0
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +13 -5
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +6 -0
- data/rbi/orb/models/subscription.rbi +324 -2
- data/rbi/orb/models/subscription_cancel_params.rbi +6 -0
- data/rbi/orb/models/subscription_change_apply_params.rbi +6 -0
- data/rbi/orb/models/subscription_change_cancel_params.rbi +16 -5
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +16 -5
- data/rbi/orb/models/subscription_create_params.rbi +4998 -1186
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +6 -0
- data/rbi/orb/models/subscription_fetch_params.rbi +13 -5
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +6 -0
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +6 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2133 -264
- data/rbi/orb/models/subscription_redeem_coupon_params.rbi +6 -0
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +5001 -1183
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +6 -0
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +13 -5
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +10 -1
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +13 -5
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +6 -0
- data/rbi/orb/models/subscription_update_params.rbi +20 -0
- data/rbi/orb/models/subscription_update_trial_params.rbi +6 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/alerts.rbi +43 -0
- data/rbi/orb/resources/coupons.rbi +1 -2
- data/rbi/orb/resources/credit_blocks.rbi +10 -7
- data/rbi/orb/resources/customers/credits/ledger.rbi +50 -146
- data/rbi/orb/resources/customers.rbi +35 -7
- data/rbi/orb/resources/events/backfills.rbi +3 -4
- data/rbi/orb/resources/events.rbi +8 -35
- data/rbi/orb/resources/invoices.rbi +20 -6
- data/rbi/orb/resources/licenses/external_licenses.rbi +1 -1
- data/rbi/orb/resources/licenses/usage.rbi +2 -2
- data/rbi/orb/resources/metrics.rbi +5 -5
- data/rbi/orb/resources/plans/external_plan_id.rbi +5 -2
- data/rbi/orb/resources/plans.rbi +9 -3
- data/rbi/orb/resources/prices.rbi +38 -184
- data/rbi/orb/resources/subscriptions.rbi +33 -4
- data/sig/orb/client.rbs +3 -0
- data/sig/orb/internal/util.rbs +4 -0
- data/sig/orb/models/accounting_provider_config.rbs +21 -4
- data/sig/orb/models/adjustment_interval.rbs +134 -0
- data/sig/orb/models/alert.rbs +90 -3
- data/sig/orb/models/alert_create_for_customer_params.rbs +5 -0
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +5 -0
- data/sig/orb/models/alert_create_for_subscription_params.rbs +98 -1
- data/sig/orb/models/alert_disable_params.rbs +6 -1
- data/sig/orb/models/alert_enable_params.rbs +6 -1
- data/sig/orb/models/alert_retrieve_params.rbs +9 -3
- data/sig/orb/models/alert_update_params.rbs +90 -1
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +2318 -397
- data/sig/orb/models/beta/external_plan_id_fetch_plan_version_params.rbs +6 -1
- data/sig/orb/models/beta/external_plan_id_set_default_plan_version_params.rbs +6 -1
- data/sig/orb/models/beta_create_plan_version_params.rbs +2300 -389
- data/sig/orb/models/beta_fetch_plan_version_params.rbs +10 -2
- data/sig/orb/models/beta_set_default_plan_version_params.rbs +10 -2
- data/sig/orb/models/changed_subscription_resources.rbs +140 -1
- data/sig/orb/models/conversion_rate_config.rbs +12 -0
- data/sig/orb/models/coupon_archive_params.rbs +12 -3
- data/sig/orb/models/coupon_fetch_params.rbs +12 -3
- data/sig/orb/models/coupons/subscription_list_params.rbs +5 -1
- data/sig/orb/models/credit_block_delete_params.rbs +8 -3
- data/sig/orb/models/credit_block_list_invoices_params.rbs +8 -3
- data/sig/orb/models/credit_block_list_invoices_response.rbs +124 -3
- data/sig/orb/models/credit_block_retrieve_params.rbs +8 -3
- data/sig/orb/models/credit_block_retrieve_response.rbs +124 -3
- data/sig/orb/models/credit_note_fetch_params.rbs +11 -3
- data/sig/orb/models/customer.rbs +79 -1
- data/sig/orb/models/customer_create_params.rbs +12 -1
- data/sig/orb/models/customer_delete_params.rbs +12 -3
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +11 -3
- data/sig/orb/models/customer_fetch_params.rbs +12 -3
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +11 -3
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +11 -3
- data/sig/orb/models/customer_tax_id.rbs +20 -2
- data/sig/orb/models/customer_update_by_external_id_params.rbs +22 -1
- data/sig/orb/models/customer_update_params.rbs +22 -1
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +5 -0
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +5 -0
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/cost_list_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +124 -3
- data/sig/orb/models/customers/credit_list_params.rbs +5 -0
- data/sig/orb/models/customers/credit_list_response.rbs +124 -3
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +345 -157
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +345 -157
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +5 -1
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +6 -1
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +5 -1
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +5 -1
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +12 -3
- data/sig/orb/models/dimensional_price_group_update_params.rbs +5 -0
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +12 -3
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_update_params.rbs +5 -0
- data/sig/orb/models/discount.rbs +114 -0
- data/sig/orb/models/event_deprecate_params.rbs +9 -3
- data/sig/orb/models/event_update_params.rbs +5 -0
- data/sig/orb/models/events/backfill_close_params.rbs +11 -3
- data/sig/orb/models/events/backfill_fetch_params.rbs +11 -3
- data/sig/orb/models/events/backfill_revert_params.rbs +11 -3
- data/sig/orb/models/invoice.rbs +140 -1
- data/sig/orb/models/invoice_delete_line_item_params.rbs +6 -1
- data/sig/orb/models/invoice_fetch_params.rbs +12 -3
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +140 -1
- data/sig/orb/models/invoice_issue_params.rbs +6 -1
- data/sig/orb/models/invoice_issue_summary_params.rbs +6 -1
- data/sig/orb/models/invoice_issue_summary_response.rbs +2 -1
- data/sig/orb/models/invoice_level_discount.rbs +117 -1
- data/sig/orb/models/invoice_line_item_create_response.rbs +134 -0
- data/sig/orb/models/invoice_list_summary_response.rbs +2 -1
- data/sig/orb/models/invoice_mark_paid_params.rbs +10 -1
- data/sig/orb/models/invoice_pay_params.rbs +17 -3
- data/sig/orb/models/invoice_update_params.rbs +5 -0
- data/sig/orb/models/invoice_void_params.rbs +12 -3
- data/sig/orb/models/item_archive_params.rbs +9 -3
- data/sig/orb/models/item_fetch_params.rbs +9 -3
- data/sig/orb/models/item_update_params.rbs +5 -0
- data/sig/orb/models/license_deactivate_params.rbs +10 -2
- data/sig/orb/models/license_retrieve_by_external_id_params.rbs +9 -1
- data/sig/orb/models/license_retrieve_params.rbs +11 -3
- data/sig/orb/models/license_type_retrieve_params.rbs +11 -3
- data/sig/orb/models/licenses/external_license_get_usage_params.rbs +9 -4
- data/sig/orb/models/licenses/usage_get_all_usage_params.rbs +4 -4
- data/sig/orb/models/licenses/usage_get_usage_params.rbs +9 -4
- data/sig/orb/models/metric_fetch_params.rbs +12 -3
- data/sig/orb/models/metric_update_params.rbs +5 -1
- data/sig/orb/models/mutated_subscription.rbs +124 -0
- data/sig/orb/models/new_allocation_price.rbs +5 -0
- data/sig/orb/models/new_floating_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_floating_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_price.rbs +4 -4
- data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_plan_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +4 -4
- data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +4 -4
- data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_minimum_composite_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +4 -4
- data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_price.rbs +4 -4
- data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +4 -4
- data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +4 -4
- data/sig/orb/models/plan.rbs +134 -0
- data/sig/orb/models/plan_create_params.rbs +1030 -72
- data/sig/orb/models/plan_fetch_params.rbs +9 -3
- data/sig/orb/models/plan_update_params.rbs +14 -1
- data/sig/orb/models/plan_version.rbs +134 -0
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +11 -3
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +14 -1
- data/sig/orb/models/plans/migration_cancel_params.rbs +6 -1
- data/sig/orb/models/plans/migration_list_params.rbs +5 -1
- data/sig/orb/models/plans/migration_retrieve_params.rbs +6 -1
- data/sig/orb/models/price.rbs +2361 -1156
- data/sig/orb/models/price_create_params.rbs +1124 -931
- data/sig/orb/models/price_evaluate_multiple_params.rbs +626 -23
- data/sig/orb/models/price_evaluate_params.rbs +5 -0
- data/sig/orb/models/price_evaluate_preview_events_params.rbs +626 -23
- data/sig/orb/models/price_fetch_params.rbs +9 -3
- data/sig/orb/models/price_update_params.rbs +5 -1
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +11 -3
- data/sig/orb/models/prices/external_price_id_update_params.rbs +5 -1
- data/sig/orb/models/subscription.rbs +124 -0
- data/sig/orb/models/subscription_cancel_params.rbs +5 -0
- data/sig/orb/models/subscription_change_apply_params.rbs +5 -0
- data/sig/orb/models/subscription_change_cancel_params.rbs +12 -3
- data/sig/orb/models/subscription_change_retrieve_params.rbs +12 -3
- data/sig/orb/models/subscription_create_params.rbs +2009 -430
- data/sig/orb/models/subscription_fetch_costs_params.rbs +5 -0
- data/sig/orb/models/subscription_fetch_params.rbs +11 -3
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +5 -0
- data/sig/orb/models/subscription_fetch_usage_params.rbs +5 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +800 -23
- data/sig/orb/models/subscription_redeem_coupon_params.rbs +5 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2014 -430
- data/sig/orb/models/subscription_trigger_phase_params.rbs +9 -1
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +11 -3
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +10 -2
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +11 -3
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +5 -0
- data/sig/orb/models/subscription_update_params.rbs +10 -0
- data/sig/orb/models/subscription_update_trial_params.rbs +5 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/alerts.rbs +6 -0
- data/sig/orb/resources/customers/credits/ledger.rbs +2 -26
- data/sig/orb/resources/customers.rbs +2 -0
- data/sig/orb/resources/invoices.rbs +1 -0
- data/sig/orb/resources/licenses/external_licenses.rbs +1 -1
- data/sig/orb/resources/licenses/usage.rbs +2 -2
- data/sig/orb/resources/plans/external_plan_id.rbs +1 -0
- data/sig/orb/resources/plans.rbs +2 -0
- data/sig/orb/resources/prices.rbs +1 -48
- data/sig/orb/resources/subscriptions.rbs +3 -0
- metadata +6 -7
|
@@ -6,6 +6,7 @@ module Orb
|
|
|
6
6
|
add_prices: ::Array[Orb::SubscriptionCreateParams::AddPrice]?,
|
|
7
7
|
align_billing_with_subscription_start_date: bool,
|
|
8
8
|
auto_collection: bool?,
|
|
9
|
+
auto_issuance: bool?,
|
|
9
10
|
aws_region: String?,
|
|
10
11
|
billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
11
12
|
coupon_redemption_code: String?,
|
|
@@ -52,6 +53,8 @@ module Orb
|
|
|
52
53
|
|
|
53
54
|
attr_accessor auto_collection: bool?
|
|
54
55
|
|
|
56
|
+
attr_accessor auto_issuance: bool?
|
|
57
|
+
|
|
55
58
|
attr_accessor aws_region: String?
|
|
56
59
|
|
|
57
60
|
attr_accessor billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?
|
|
@@ -115,6 +118,7 @@ module Orb
|
|
|
115
118
|
?add_prices: ::Array[Orb::SubscriptionCreateParams::AddPrice]?,
|
|
116
119
|
?align_billing_with_subscription_start_date: bool,
|
|
117
120
|
?auto_collection: bool?,
|
|
121
|
+
?auto_issuance: bool?,
|
|
118
122
|
?aws_region: String?,
|
|
119
123
|
?billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
120
124
|
?coupon_redemption_code: String?,
|
|
@@ -152,6 +156,7 @@ module Orb
|
|
|
152
156
|
add_prices: ::Array[Orb::SubscriptionCreateParams::AddPrice]?,
|
|
153
157
|
align_billing_with_subscription_start_date: bool,
|
|
154
158
|
auto_collection: bool?,
|
|
159
|
+
auto_issuance: bool?,
|
|
155
160
|
aws_region: String?,
|
|
156
161
|
billing_cycle_anchor_configuration: Orb::BillingCycleAnchorConfiguration?,
|
|
157
162
|
coupon_redemption_code: String?,
|
|
@@ -221,10 +226,179 @@ module Orb
|
|
|
221
226
|
| Orb::NewAmountDiscount
|
|
222
227
|
| Orb::NewMinimum
|
|
223
228
|
| Orb::NewMaximum
|
|
229
|
+
| Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount
|
|
224
230
|
|
|
225
231
|
module Adjustment
|
|
226
232
|
extend Orb::Internal::Type::Union
|
|
227
233
|
|
|
234
|
+
type tiered_percentage_discount =
|
|
235
|
+
{
|
|
236
|
+
adjustment_type: :tiered_percentage_discount,
|
|
237
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
238
|
+
applies_to_all: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
239
|
+
applies_to_item_ids: ::Array[String]?,
|
|
240
|
+
applies_to_price_ids: ::Array[String]?,
|
|
241
|
+
currency: String?,
|
|
242
|
+
filters: ::Array[Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
243
|
+
is_invoice_level: bool,
|
|
244
|
+
price_type: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
248
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
249
|
+
|
|
250
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
251
|
+
|
|
252
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
253
|
+
|
|
254
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
255
|
+
|
|
256
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
257
|
+
|
|
258
|
+
attr_accessor currency: String?
|
|
259
|
+
|
|
260
|
+
attr_accessor filters: ::Array[Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
261
|
+
|
|
262
|
+
attr_reader is_invoice_level: bool?
|
|
263
|
+
|
|
264
|
+
def is_invoice_level=: (bool) -> bool
|
|
265
|
+
|
|
266
|
+
attr_accessor price_type: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
267
|
+
|
|
268
|
+
def initialize: (
|
|
269
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
270
|
+
?applies_to_all: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
271
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
272
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
273
|
+
?currency: String?,
|
|
274
|
+
?filters: ::Array[Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
275
|
+
?is_invoice_level: bool,
|
|
276
|
+
?price_type: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
277
|
+
?adjustment_type: :tiered_percentage_discount
|
|
278
|
+
) -> void
|
|
279
|
+
|
|
280
|
+
def to_hash: -> {
|
|
281
|
+
adjustment_type: :tiered_percentage_discount,
|
|
282
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
283
|
+
applies_to_all: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
284
|
+
applies_to_item_ids: ::Array[String]?,
|
|
285
|
+
applies_to_price_ids: ::Array[String]?,
|
|
286
|
+
currency: String?,
|
|
287
|
+
filters: ::Array[Orb::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
288
|
+
is_invoice_level: bool,
|
|
289
|
+
price_type: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
type tier =
|
|
293
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
294
|
+
|
|
295
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
296
|
+
attr_accessor lower_bound: Float
|
|
297
|
+
|
|
298
|
+
attr_accessor percentage: Float
|
|
299
|
+
|
|
300
|
+
attr_accessor upper_bound: Float?
|
|
301
|
+
|
|
302
|
+
def initialize: (
|
|
303
|
+
lower_bound: Float,
|
|
304
|
+
percentage: Float,
|
|
305
|
+
?upper_bound: Float?
|
|
306
|
+
) -> void
|
|
307
|
+
|
|
308
|
+
def to_hash: -> {
|
|
309
|
+
lower_bound: Float,
|
|
310
|
+
percentage: Float,
|
|
311
|
+
upper_bound: Float?
|
|
312
|
+
}
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
type applies_to_all = true
|
|
316
|
+
|
|
317
|
+
module AppliesToAll
|
|
318
|
+
extend Orb::Internal::Type::Enum
|
|
319
|
+
|
|
320
|
+
TRUE: true
|
|
321
|
+
|
|
322
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
type filter =
|
|
326
|
+
{
|
|
327
|
+
field: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
328
|
+
operator: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
329
|
+
values: ::Array[String]
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
333
|
+
attr_accessor field: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
334
|
+
|
|
335
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
336
|
+
|
|
337
|
+
attr_accessor values: ::Array[String]
|
|
338
|
+
|
|
339
|
+
def initialize: (
|
|
340
|
+
field: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
341
|
+
operator: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
342
|
+
values: ::Array[String]
|
|
343
|
+
) -> void
|
|
344
|
+
|
|
345
|
+
def to_hash: -> {
|
|
346
|
+
field: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
347
|
+
operator: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
348
|
+
values: ::Array[String]
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
type field =
|
|
352
|
+
:price_id
|
|
353
|
+
| :item_id
|
|
354
|
+
| :price_type
|
|
355
|
+
| :currency
|
|
356
|
+
| :pricing_unit_id
|
|
357
|
+
|
|
358
|
+
module Field
|
|
359
|
+
extend Orb::Internal::Type::Enum
|
|
360
|
+
|
|
361
|
+
PRICE_ID: :price_id
|
|
362
|
+
ITEM_ID: :item_id
|
|
363
|
+
PRICE_TYPE: :price_type
|
|
364
|
+
CURRENCY: :currency
|
|
365
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
366
|
+
|
|
367
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
type operator = :includes | :excludes
|
|
371
|
+
|
|
372
|
+
module Operator
|
|
373
|
+
extend Orb::Internal::Type::Enum
|
|
374
|
+
|
|
375
|
+
INCLUDES: :includes
|
|
376
|
+
EXCLUDES: :excludes
|
|
377
|
+
|
|
378
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
type price_type =
|
|
383
|
+
:usage
|
|
384
|
+
| :fixed_in_advance
|
|
385
|
+
| :fixed_in_arrears
|
|
386
|
+
| :fixed
|
|
387
|
+
| :in_arrears
|
|
388
|
+
|
|
389
|
+
module PriceType
|
|
390
|
+
extend Orb::Internal::Type::Enum
|
|
391
|
+
|
|
392
|
+
USAGE: :usage
|
|
393
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
394
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
395
|
+
FIXED: :fixed
|
|
396
|
+
IN_ARREARS: :in_arrears
|
|
397
|
+
|
|
398
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
399
|
+
end
|
|
400
|
+
end
|
|
401
|
+
|
|
228
402
|
def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment::adjustment]
|
|
229
403
|
end
|
|
230
404
|
end
|
|
@@ -310,6 +484,7 @@ module Orb
|
|
|
310
484
|
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
311
485
|
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
312
486
|
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
487
|
+
| Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts
|
|
313
488
|
| Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration
|
|
314
489
|
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
315
490
|
| Orb::NewSubscriptionGroupedAllocationPrice
|
|
@@ -324,6 +499,8 @@ module Orb
|
|
|
324
499
|
| Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice
|
|
325
500
|
| Orb::NewSubscriptionCumulativeGroupedBulkPrice
|
|
326
501
|
| Orb::SubscriptionCreateParams::AddPrice::Price::CumulativeGroupedAllocation
|
|
502
|
+
| Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance
|
|
503
|
+
| Orb::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance
|
|
327
504
|
| Orb::NewSubscriptionMinimumCompositePrice
|
|
328
505
|
| Orb::SubscriptionCreateParams::AddPrice::Price::Percent
|
|
329
506
|
| Orb::SubscriptionCreateParams::AddPrice::Price::EventOutput
|
|
@@ -342,7 +519,7 @@ module Orb
|
|
|
342
519
|
billed_in_advance: bool?,
|
|
343
520
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
344
521
|
conversion_rate: Float?,
|
|
345
|
-
conversion_rate_config: Orb::Models::
|
|
522
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
346
523
|
currency: String?,
|
|
347
524
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
348
525
|
external_price_id: String?,
|
|
@@ -373,7 +550,7 @@ module Orb
|
|
|
373
550
|
|
|
374
551
|
attr_accessor conversion_rate: Float?
|
|
375
552
|
|
|
376
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
553
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
377
554
|
|
|
378
555
|
attr_accessor currency: String?
|
|
379
556
|
|
|
@@ -402,7 +579,7 @@ module Orb
|
|
|
402
579
|
?billed_in_advance: bool?,
|
|
403
580
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
404
581
|
?conversion_rate: Float?,
|
|
405
|
-
?conversion_rate_config: Orb::Models::
|
|
582
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
406
583
|
?currency: String?,
|
|
407
584
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
408
585
|
?external_price_id: String?,
|
|
@@ -425,7 +602,7 @@ module Orb
|
|
|
425
602
|
billed_in_advance: bool?,
|
|
426
603
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
427
604
|
conversion_rate: Float?,
|
|
428
|
-
conversion_rate_config: Orb::Models::
|
|
605
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
429
606
|
currency: String?,
|
|
430
607
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
431
608
|
external_price_id: String?,
|
|
@@ -514,6 +691,239 @@ module Orb
|
|
|
514
691
|
end
|
|
515
692
|
end
|
|
516
693
|
|
|
694
|
+
type matrix_with_threshold_discounts =
|
|
695
|
+
{
|
|
696
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
697
|
+
item_id: String,
|
|
698
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
699
|
+
model_type: :matrix_with_threshold_discounts,
|
|
700
|
+
name: String,
|
|
701
|
+
billable_metric_id: String?,
|
|
702
|
+
billed_in_advance: bool?,
|
|
703
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
704
|
+
conversion_rate: Float?,
|
|
705
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
706
|
+
currency: String?,
|
|
707
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
708
|
+
external_price_id: String?,
|
|
709
|
+
fixed_price_quantity: Float?,
|
|
710
|
+
invoice_grouping_key: String?,
|
|
711
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
712
|
+
license_type_id: String?,
|
|
713
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
714
|
+
reference_id: String?
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
718
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence
|
|
719
|
+
|
|
720
|
+
attr_accessor item_id: String
|
|
721
|
+
|
|
722
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
723
|
+
|
|
724
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
725
|
+
|
|
726
|
+
attr_accessor name: String
|
|
727
|
+
|
|
728
|
+
attr_accessor billable_metric_id: String?
|
|
729
|
+
|
|
730
|
+
attr_accessor billed_in_advance: bool?
|
|
731
|
+
|
|
732
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
733
|
+
|
|
734
|
+
attr_accessor conversion_rate: Float?
|
|
735
|
+
|
|
736
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
737
|
+
|
|
738
|
+
attr_accessor currency: String?
|
|
739
|
+
|
|
740
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
741
|
+
|
|
742
|
+
attr_accessor external_price_id: String?
|
|
743
|
+
|
|
744
|
+
attr_accessor fixed_price_quantity: Float?
|
|
745
|
+
|
|
746
|
+
attr_accessor invoice_grouping_key: String?
|
|
747
|
+
|
|
748
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
749
|
+
|
|
750
|
+
attr_accessor license_type_id: String?
|
|
751
|
+
|
|
752
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
753
|
+
|
|
754
|
+
attr_accessor reference_id: String?
|
|
755
|
+
|
|
756
|
+
def initialize: (
|
|
757
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
758
|
+
item_id: String,
|
|
759
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
760
|
+
name: String,
|
|
761
|
+
?billable_metric_id: String?,
|
|
762
|
+
?billed_in_advance: bool?,
|
|
763
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
764
|
+
?conversion_rate: Float?,
|
|
765
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
766
|
+
?currency: String?,
|
|
767
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
768
|
+
?external_price_id: String?,
|
|
769
|
+
?fixed_price_quantity: Float?,
|
|
770
|
+
?invoice_grouping_key: String?,
|
|
771
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
772
|
+
?license_type_id: String?,
|
|
773
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
774
|
+
?reference_id: String?,
|
|
775
|
+
?model_type: :matrix_with_threshold_discounts
|
|
776
|
+
) -> void
|
|
777
|
+
|
|
778
|
+
def to_hash: -> {
|
|
779
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
780
|
+
item_id: String,
|
|
781
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
782
|
+
model_type: :matrix_with_threshold_discounts,
|
|
783
|
+
name: String,
|
|
784
|
+
billable_metric_id: String?,
|
|
785
|
+
billed_in_advance: bool?,
|
|
786
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
787
|
+
conversion_rate: Float?,
|
|
788
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
789
|
+
currency: String?,
|
|
790
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
791
|
+
external_price_id: String?,
|
|
792
|
+
fixed_price_quantity: Float?,
|
|
793
|
+
invoice_grouping_key: String?,
|
|
794
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
795
|
+
license_type_id: String?,
|
|
796
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
797
|
+
reference_id: String?
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
type cadence =
|
|
801
|
+
:annual
|
|
802
|
+
| :semi_annual
|
|
803
|
+
| :monthly
|
|
804
|
+
| :quarterly
|
|
805
|
+
| :one_time
|
|
806
|
+
| :custom
|
|
807
|
+
|
|
808
|
+
module Cadence
|
|
809
|
+
extend Orb::Internal::Type::Enum
|
|
810
|
+
|
|
811
|
+
ANNUAL: :annual
|
|
812
|
+
SEMI_ANNUAL: :semi_annual
|
|
813
|
+
MONTHLY: :monthly
|
|
814
|
+
QUARTERLY: :quarterly
|
|
815
|
+
ONE_TIME: :one_time
|
|
816
|
+
CUSTOM: :custom
|
|
817
|
+
|
|
818
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::cadence]
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
type matrix_with_threshold_discounts_config =
|
|
822
|
+
{
|
|
823
|
+
default_unit_amount: String,
|
|
824
|
+
first_dimension: String,
|
|
825
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
826
|
+
second_dimension: String?,
|
|
827
|
+
threshold_discount_groups: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
831
|
+
attr_accessor default_unit_amount: String
|
|
832
|
+
|
|
833
|
+
attr_accessor first_dimension: String
|
|
834
|
+
|
|
835
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
836
|
+
|
|
837
|
+
attr_accessor second_dimension: String?
|
|
838
|
+
|
|
839
|
+
attr_reader threshold_discount_groups: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
840
|
+
|
|
841
|
+
def threshold_discount_groups=: (
|
|
842
|
+
::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
843
|
+
) -> ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
844
|
+
|
|
845
|
+
def initialize: (
|
|
846
|
+
default_unit_amount: String,
|
|
847
|
+
first_dimension: String,
|
|
848
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
849
|
+
?second_dimension: String?,
|
|
850
|
+
?threshold_discount_groups: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
851
|
+
) -> void
|
|
852
|
+
|
|
853
|
+
def to_hash: -> {
|
|
854
|
+
default_unit_amount: String,
|
|
855
|
+
first_dimension: String,
|
|
856
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
857
|
+
second_dimension: String?,
|
|
858
|
+
threshold_discount_groups: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
type matrix_value =
|
|
862
|
+
{
|
|
863
|
+
first_dimension_value: String,
|
|
864
|
+
unit_amount: String,
|
|
865
|
+
second_dimension_value: String?
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
869
|
+
attr_accessor first_dimension_value: String
|
|
870
|
+
|
|
871
|
+
attr_accessor unit_amount: String
|
|
872
|
+
|
|
873
|
+
attr_accessor second_dimension_value: String?
|
|
874
|
+
|
|
875
|
+
def initialize: (
|
|
876
|
+
first_dimension_value: String,
|
|
877
|
+
unit_amount: String,
|
|
878
|
+
?second_dimension_value: String?
|
|
879
|
+
) -> void
|
|
880
|
+
|
|
881
|
+
def to_hash: -> {
|
|
882
|
+
first_dimension_value: String,
|
|
883
|
+
unit_amount: String,
|
|
884
|
+
second_dimension_value: String?
|
|
885
|
+
}
|
|
886
|
+
end
|
|
887
|
+
|
|
888
|
+
type threshold_discount_group =
|
|
889
|
+
{
|
|
890
|
+
above_threshold_discount_percentage: String,
|
|
891
|
+
below_threshold_discount_percentage: String,
|
|
892
|
+
cell_coordinates: String,
|
|
893
|
+
threshold_amount: String,
|
|
894
|
+
description: String?
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
898
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
899
|
+
|
|
900
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
901
|
+
|
|
902
|
+
attr_accessor cell_coordinates: String
|
|
903
|
+
|
|
904
|
+
attr_accessor threshold_amount: String
|
|
905
|
+
|
|
906
|
+
attr_accessor description: String?
|
|
907
|
+
|
|
908
|
+
def initialize: (
|
|
909
|
+
above_threshold_discount_percentage: String,
|
|
910
|
+
below_threshold_discount_percentage: String,
|
|
911
|
+
cell_coordinates: String,
|
|
912
|
+
threshold_amount: String,
|
|
913
|
+
?description: String?
|
|
914
|
+
) -> void
|
|
915
|
+
|
|
916
|
+
def to_hash: -> {
|
|
917
|
+
above_threshold_discount_percentage: String,
|
|
918
|
+
below_threshold_discount_percentage: String,
|
|
919
|
+
cell_coordinates: String,
|
|
920
|
+
threshold_amount: String,
|
|
921
|
+
description: String?
|
|
922
|
+
}
|
|
923
|
+
end
|
|
924
|
+
end
|
|
925
|
+
end
|
|
926
|
+
|
|
517
927
|
type tiered_with_proration =
|
|
518
928
|
{
|
|
519
929
|
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence,
|
|
@@ -525,7 +935,7 @@ module Orb
|
|
|
525
935
|
billed_in_advance: bool?,
|
|
526
936
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
527
937
|
conversion_rate: Float?,
|
|
528
|
-
conversion_rate_config: Orb::Models::
|
|
938
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
529
939
|
currency: String?,
|
|
530
940
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
531
941
|
external_price_id: String?,
|
|
@@ -556,7 +966,7 @@ module Orb
|
|
|
556
966
|
|
|
557
967
|
attr_accessor conversion_rate: Float?
|
|
558
968
|
|
|
559
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
969
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
560
970
|
|
|
561
971
|
attr_accessor currency: String?
|
|
562
972
|
|
|
@@ -585,7 +995,7 @@ module Orb
|
|
|
585
995
|
?billed_in_advance: bool?,
|
|
586
996
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
587
997
|
?conversion_rate: Float?,
|
|
588
|
-
?conversion_rate_config: Orb::Models::
|
|
998
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
589
999
|
?currency: String?,
|
|
590
1000
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
591
1001
|
?external_price_id: String?,
|
|
@@ -608,7 +1018,7 @@ module Orb
|
|
|
608
1018
|
billed_in_advance: bool?,
|
|
609
1019
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
610
1020
|
conversion_rate: Float?,
|
|
611
|
-
conversion_rate_config: Orb::Models::
|
|
1021
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
612
1022
|
currency: String?,
|
|
613
1023
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
614
1024
|
external_price_id: String?,
|
|
@@ -688,7 +1098,7 @@ module Orb
|
|
|
688
1098
|
billed_in_advance: bool?,
|
|
689
1099
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
690
1100
|
conversion_rate: Float?,
|
|
691
|
-
conversion_rate_config: Orb::Models::
|
|
1101
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
692
1102
|
currency: String?,
|
|
693
1103
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
694
1104
|
external_price_id: String?,
|
|
@@ -719,7 +1129,7 @@ module Orb
|
|
|
719
1129
|
|
|
720
1130
|
attr_accessor conversion_rate: Float?
|
|
721
1131
|
|
|
722
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1132
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
723
1133
|
|
|
724
1134
|
attr_accessor currency: String?
|
|
725
1135
|
|
|
@@ -748,7 +1158,7 @@ module Orb
|
|
|
748
1158
|
?billed_in_advance: bool?,
|
|
749
1159
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
750
1160
|
?conversion_rate: Float?,
|
|
751
|
-
?conversion_rate_config: Orb::Models::
|
|
1161
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
752
1162
|
?currency: String?,
|
|
753
1163
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
754
1164
|
?external_price_id: String?,
|
|
@@ -771,7 +1181,7 @@ module Orb
|
|
|
771
1181
|
billed_in_advance: bool?,
|
|
772
1182
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
773
1183
|
conversion_rate: Float?,
|
|
774
|
-
conversion_rate_config: Orb::Models::
|
|
1184
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
775
1185
|
currency: String?,
|
|
776
1186
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
777
1187
|
external_price_id: String?,
|
|
@@ -848,7 +1258,7 @@ module Orb
|
|
|
848
1258
|
billed_in_advance: bool?,
|
|
849
1259
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
850
1260
|
conversion_rate: Float?,
|
|
851
|
-
conversion_rate_config: Orb::Models::
|
|
1261
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
852
1262
|
currency: String?,
|
|
853
1263
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
854
1264
|
external_price_id: String?,
|
|
@@ -879,7 +1289,7 @@ module Orb
|
|
|
879
1289
|
|
|
880
1290
|
attr_accessor conversion_rate: Float?
|
|
881
1291
|
|
|
882
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1292
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
883
1293
|
|
|
884
1294
|
attr_accessor currency: String?
|
|
885
1295
|
|
|
@@ -908,7 +1318,7 @@ module Orb
|
|
|
908
1318
|
?billed_in_advance: bool?,
|
|
909
1319
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
910
1320
|
?conversion_rate: Float?,
|
|
911
|
-
?conversion_rate_config: Orb::Models::
|
|
1321
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
912
1322
|
?currency: String?,
|
|
913
1323
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
914
1324
|
?external_price_id: String?,
|
|
@@ -931,7 +1341,7 @@ module Orb
|
|
|
931
1341
|
billed_in_advance: bool?,
|
|
932
1342
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
933
1343
|
conversion_rate: Float?,
|
|
934
|
-
conversion_rate_config: Orb::Models::
|
|
1344
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
935
1345
|
currency: String?,
|
|
936
1346
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
937
1347
|
external_price_id: String?,
|
|
@@ -997,18 +1407,18 @@ module Orb
|
|
|
997
1407
|
end
|
|
998
1408
|
end
|
|
999
1409
|
|
|
1000
|
-
type
|
|
1410
|
+
type daily_credit_allowance =
|
|
1001
1411
|
{
|
|
1002
|
-
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1412
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1413
|
+
daily_credit_allowance_config: Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1003
1414
|
item_id: String,
|
|
1004
|
-
model_type: :
|
|
1415
|
+
model_type: :daily_credit_allowance,
|
|
1005
1416
|
name: String,
|
|
1006
|
-
percent_config: Orb::SubscriptionCreateParams::AddPrice::Price::Percent::PercentConfig,
|
|
1007
1417
|
billable_metric_id: String?,
|
|
1008
1418
|
billed_in_advance: bool?,
|
|
1009
1419
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1010
1420
|
conversion_rate: Float?,
|
|
1011
|
-
conversion_rate_config: Orb::Models::
|
|
1421
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1012
1422
|
currency: String?,
|
|
1013
1423
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1014
1424
|
external_price_id: String?,
|
|
@@ -1020,17 +1430,17 @@ module Orb
|
|
|
1020
1430
|
reference_id: String?
|
|
1021
1431
|
}
|
|
1022
1432
|
|
|
1023
|
-
class
|
|
1024
|
-
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1433
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
1434
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::cadence
|
|
1435
|
+
|
|
1436
|
+
attr_accessor daily_credit_allowance_config: Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
1025
1437
|
|
|
1026
1438
|
attr_accessor item_id: String
|
|
1027
1439
|
|
|
1028
|
-
attr_accessor model_type: :
|
|
1440
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
1029
1441
|
|
|
1030
1442
|
attr_accessor name: String
|
|
1031
1443
|
|
|
1032
|
-
attr_accessor percent_config: Orb::SubscriptionCreateParams::AddPrice::Price::Percent::PercentConfig
|
|
1033
|
-
|
|
1034
1444
|
attr_accessor billable_metric_id: String?
|
|
1035
1445
|
|
|
1036
1446
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1039,7 +1449,7 @@ module Orb
|
|
|
1039
1449
|
|
|
1040
1450
|
attr_accessor conversion_rate: Float?
|
|
1041
1451
|
|
|
1042
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1452
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1043
1453
|
|
|
1044
1454
|
attr_accessor currency: String?
|
|
1045
1455
|
|
|
@@ -1060,15 +1470,15 @@ module Orb
|
|
|
1060
1470
|
attr_accessor reference_id: String?
|
|
1061
1471
|
|
|
1062
1472
|
def initialize: (
|
|
1063
|
-
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1473
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1474
|
+
daily_credit_allowance_config: Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1064
1475
|
item_id: String,
|
|
1065
1476
|
name: String,
|
|
1066
|
-
percent_config: Orb::SubscriptionCreateParams::AddPrice::Price::Percent::PercentConfig,
|
|
1067
1477
|
?billable_metric_id: String?,
|
|
1068
1478
|
?billed_in_advance: bool?,
|
|
1069
1479
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1070
1480
|
?conversion_rate: Float?,
|
|
1071
|
-
?conversion_rate_config: Orb::Models::
|
|
1481
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1072
1482
|
?currency: String?,
|
|
1073
1483
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1074
1484
|
?external_price_id: String?,
|
|
@@ -1078,20 +1488,20 @@ module Orb
|
|
|
1078
1488
|
?license_type_id: String?,
|
|
1079
1489
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1080
1490
|
?reference_id: String?,
|
|
1081
|
-
?model_type: :
|
|
1491
|
+
?model_type: :daily_credit_allowance
|
|
1082
1492
|
) -> void
|
|
1083
1493
|
|
|
1084
1494
|
def to_hash: -> {
|
|
1085
|
-
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1495
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::cadence,
|
|
1496
|
+
daily_credit_allowance_config: Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1086
1497
|
item_id: String,
|
|
1087
|
-
model_type: :
|
|
1498
|
+
model_type: :daily_credit_allowance,
|
|
1088
1499
|
name: String,
|
|
1089
|
-
percent_config: Orb::SubscriptionCreateParams::AddPrice::Price::Percent::PercentConfig,
|
|
1090
1500
|
billable_metric_id: String?,
|
|
1091
1501
|
billed_in_advance: bool?,
|
|
1092
1502
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1093
1503
|
conversion_rate: Float?,
|
|
1094
|
-
conversion_rate_config: Orb::Models::
|
|
1504
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1095
1505
|
currency: String?,
|
|
1096
1506
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1097
1507
|
external_price_id: String?,
|
|
@@ -1121,32 +1531,78 @@ module Orb
|
|
|
1121
1531
|
ONE_TIME: :one_time
|
|
1122
1532
|
CUSTOM: :custom
|
|
1123
1533
|
|
|
1124
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1534
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::cadence]
|
|
1125
1535
|
end
|
|
1126
1536
|
|
|
1127
|
-
type
|
|
1537
|
+
type daily_credit_allowance_config =
|
|
1538
|
+
{
|
|
1539
|
+
daily_allowance: String,
|
|
1540
|
+
default_unit_amount: String,
|
|
1541
|
+
dimensions: ::Array[String?],
|
|
1542
|
+
event_day_property: String,
|
|
1543
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1544
|
+
}
|
|
1128
1545
|
|
|
1129
|
-
class
|
|
1130
|
-
attr_accessor
|
|
1546
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1547
|
+
attr_accessor daily_allowance: String
|
|
1131
1548
|
|
|
1132
|
-
|
|
1549
|
+
attr_accessor default_unit_amount: String
|
|
1133
1550
|
|
|
1134
|
-
|
|
1135
|
-
end
|
|
1136
|
-
end
|
|
1551
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1137
1552
|
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1553
|
+
attr_accessor event_day_property: String
|
|
1554
|
+
|
|
1555
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1556
|
+
|
|
1557
|
+
def initialize: (
|
|
1558
|
+
daily_allowance: String,
|
|
1559
|
+
default_unit_amount: String,
|
|
1560
|
+
dimensions: ::Array[String?],
|
|
1561
|
+
event_day_property: String,
|
|
1562
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1563
|
+
) -> void
|
|
1564
|
+
|
|
1565
|
+
def to_hash: -> {
|
|
1566
|
+
daily_allowance: String,
|
|
1567
|
+
default_unit_amount: String,
|
|
1568
|
+
dimensions: ::Array[String?],
|
|
1569
|
+
event_day_property: String,
|
|
1570
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
type matrix_value =
|
|
1574
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
1575
|
+
|
|
1576
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
1577
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
1578
|
+
|
|
1579
|
+
attr_accessor unit_amount: String
|
|
1580
|
+
|
|
1581
|
+
def initialize: (
|
|
1582
|
+
dimension_values: ::Array[String?],
|
|
1583
|
+
unit_amount: String
|
|
1584
|
+
) -> void
|
|
1585
|
+
|
|
1586
|
+
def to_hash: -> {
|
|
1587
|
+
dimension_values: ::Array[String?],
|
|
1588
|
+
unit_amount: String
|
|
1589
|
+
}
|
|
1590
|
+
end
|
|
1591
|
+
end
|
|
1592
|
+
end
|
|
1593
|
+
|
|
1594
|
+
type metered_allowance =
|
|
1595
|
+
{
|
|
1596
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1597
|
+
item_id: String,
|
|
1598
|
+
metered_allowance_config: Orb::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1599
|
+
model_type: :metered_allowance,
|
|
1600
|
+
name: String,
|
|
1145
1601
|
billable_metric_id: String?,
|
|
1146
1602
|
billed_in_advance: bool?,
|
|
1147
1603
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1148
1604
|
conversion_rate: Float?,
|
|
1149
|
-
conversion_rate_config: Orb::Models::
|
|
1605
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1150
1606
|
currency: String?,
|
|
1151
1607
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1152
1608
|
external_price_id: String?,
|
|
@@ -1158,14 +1614,14 @@ module Orb
|
|
|
1158
1614
|
reference_id: String?
|
|
1159
1615
|
}
|
|
1160
1616
|
|
|
1161
|
-
class
|
|
1162
|
-
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1163
|
-
|
|
1164
|
-
attr_accessor event_output_config: Orb::SubscriptionCreateParams::AddPrice::Price::EventOutput::EventOutputConfig
|
|
1617
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
1618
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::cadence
|
|
1165
1619
|
|
|
1166
1620
|
attr_accessor item_id: String
|
|
1167
1621
|
|
|
1168
|
-
attr_accessor
|
|
1622
|
+
attr_accessor metered_allowance_config: Orb::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
1623
|
+
|
|
1624
|
+
attr_accessor model_type: :metered_allowance
|
|
1169
1625
|
|
|
1170
1626
|
attr_accessor name: String
|
|
1171
1627
|
|
|
@@ -1177,7 +1633,7 @@ module Orb
|
|
|
1177
1633
|
|
|
1178
1634
|
attr_accessor conversion_rate: Float?
|
|
1179
1635
|
|
|
1180
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1636
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1181
1637
|
|
|
1182
1638
|
attr_accessor currency: String?
|
|
1183
1639
|
|
|
@@ -1198,15 +1654,15 @@ module Orb
|
|
|
1198
1654
|
attr_accessor reference_id: String?
|
|
1199
1655
|
|
|
1200
1656
|
def initialize: (
|
|
1201
|
-
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1202
|
-
event_output_config: Orb::SubscriptionCreateParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1657
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1203
1658
|
item_id: String,
|
|
1659
|
+
metered_allowance_config: Orb::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1204
1660
|
name: String,
|
|
1205
1661
|
?billable_metric_id: String?,
|
|
1206
1662
|
?billed_in_advance: bool?,
|
|
1207
1663
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1208
1664
|
?conversion_rate: Float?,
|
|
1209
|
-
?conversion_rate_config: Orb::Models::
|
|
1665
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1210
1666
|
?currency: String?,
|
|
1211
1667
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1212
1668
|
?external_price_id: String?,
|
|
@@ -1216,20 +1672,20 @@ module Orb
|
|
|
1216
1672
|
?license_type_id: String?,
|
|
1217
1673
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1218
1674
|
?reference_id: String?,
|
|
1219
|
-
?model_type: :
|
|
1675
|
+
?model_type: :metered_allowance
|
|
1220
1676
|
) -> void
|
|
1221
1677
|
|
|
1222
1678
|
def to_hash: -> {
|
|
1223
|
-
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1224
|
-
event_output_config: Orb::SubscriptionCreateParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1679
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::cadence,
|
|
1225
1680
|
item_id: String,
|
|
1226
|
-
|
|
1681
|
+
metered_allowance_config: Orb::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1682
|
+
model_type: :metered_allowance,
|
|
1227
1683
|
name: String,
|
|
1228
1684
|
billable_metric_id: String?,
|
|
1229
1685
|
billed_in_advance: bool?,
|
|
1230
1686
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1231
1687
|
conversion_rate: Float?,
|
|
1232
|
-
conversion_rate_config: Orb::Models::
|
|
1688
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1233
1689
|
currency: String?,
|
|
1234
1690
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1235
1691
|
external_price_id: String?,
|
|
@@ -1259,222 +1715,68 @@ module Orb
|
|
|
1259
1715
|
ONE_TIME: :one_time
|
|
1260
1716
|
CUSTOM: :custom
|
|
1261
1717
|
|
|
1262
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::
|
|
1718
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::MeteredAllowance::cadence]
|
|
1263
1719
|
end
|
|
1264
1720
|
|
|
1265
|
-
type
|
|
1721
|
+
type metered_allowance_config =
|
|
1266
1722
|
{
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
grouping_key: String
|
|
1723
|
+
allowance_grouping_value: String,
|
|
1724
|
+
consumption_grouping_value: String,
|
|
1725
|
+
grouping_key: String,
|
|
1726
|
+
unit_amount: String,
|
|
1727
|
+
allowance_display_name: String,
|
|
1728
|
+
consumption_display_name: String
|
|
1270
1729
|
}
|
|
1271
1730
|
|
|
1272
|
-
class
|
|
1273
|
-
attr_accessor
|
|
1731
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1732
|
+
attr_accessor allowance_grouping_value: String
|
|
1274
1733
|
|
|
1275
|
-
attr_accessor
|
|
1734
|
+
attr_accessor consumption_grouping_value: String
|
|
1276
1735
|
|
|
1277
|
-
attr_accessor grouping_key: String
|
|
1736
|
+
attr_accessor grouping_key: String
|
|
1737
|
+
|
|
1738
|
+
attr_accessor unit_amount: String
|
|
1739
|
+
|
|
1740
|
+
attr_reader allowance_display_name: String?
|
|
1741
|
+
|
|
1742
|
+
def allowance_display_name=: (String) -> String
|
|
1743
|
+
|
|
1744
|
+
attr_reader consumption_display_name: String?
|
|
1745
|
+
|
|
1746
|
+
def consumption_display_name=: (String) -> String
|
|
1278
1747
|
|
|
1279
1748
|
def initialize: (
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1749
|
+
allowance_grouping_value: String,
|
|
1750
|
+
consumption_grouping_value: String,
|
|
1751
|
+
grouping_key: String,
|
|
1752
|
+
unit_amount: String,
|
|
1753
|
+
?allowance_display_name: String,
|
|
1754
|
+
?consumption_display_name: String
|
|
1283
1755
|
) -> void
|
|
1284
1756
|
|
|
1285
1757
|
def to_hash: -> {
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
grouping_key: String
|
|
1758
|
+
allowance_grouping_value: String,
|
|
1759
|
+
consumption_grouping_value: String,
|
|
1760
|
+
grouping_key: String,
|
|
1761
|
+
unit_amount: String,
|
|
1762
|
+
allowance_display_name: String,
|
|
1763
|
+
consumption_display_name: String
|
|
1289
1764
|
}
|
|
1290
1765
|
end
|
|
1291
1766
|
end
|
|
1292
1767
|
|
|
1293
|
-
|
|
1294
|
-
end
|
|
1295
|
-
end
|
|
1296
|
-
|
|
1297
|
-
type external_marketplace = :google | :aws | :azure
|
|
1298
|
-
|
|
1299
|
-
module ExternalMarketplace
|
|
1300
|
-
extend Orb::Internal::Type::Enum
|
|
1301
|
-
|
|
1302
|
-
GOOGLE: :google
|
|
1303
|
-
AWS: :aws
|
|
1304
|
-
AZURE: :azure
|
|
1305
|
-
|
|
1306
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::external_marketplace]
|
|
1307
|
-
end
|
|
1308
|
-
|
|
1309
|
-
type remove_adjustment = { adjustment_id: String }
|
|
1310
|
-
|
|
1311
|
-
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
1312
|
-
attr_accessor adjustment_id: String
|
|
1313
|
-
|
|
1314
|
-
def initialize: (adjustment_id: String) -> void
|
|
1315
|
-
|
|
1316
|
-
def to_hash: -> { adjustment_id: String }
|
|
1317
|
-
end
|
|
1318
|
-
|
|
1319
|
-
type remove_price = { external_price_id: String?, price_id: String? }
|
|
1320
|
-
|
|
1321
|
-
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
1322
|
-
attr_accessor external_price_id: String?
|
|
1323
|
-
|
|
1324
|
-
attr_accessor price_id: String?
|
|
1325
|
-
|
|
1326
|
-
def initialize: (
|
|
1327
|
-
?external_price_id: String?,
|
|
1328
|
-
?price_id: String?
|
|
1329
|
-
) -> void
|
|
1330
|
-
|
|
1331
|
-
def to_hash: -> { external_price_id: String?, price_id: String? }
|
|
1332
|
-
end
|
|
1333
|
-
|
|
1334
|
-
type replace_adjustment =
|
|
1335
|
-
{
|
|
1336
|
-
adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment,
|
|
1337
|
-
replaces_adjustment_id: String
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
1341
|
-
attr_accessor adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment
|
|
1342
|
-
|
|
1343
|
-
attr_accessor replaces_adjustment_id: String
|
|
1344
|
-
|
|
1345
|
-
def initialize: (
|
|
1346
|
-
adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment,
|
|
1347
|
-
replaces_adjustment_id: String
|
|
1348
|
-
) -> void
|
|
1349
|
-
|
|
1350
|
-
def to_hash: -> {
|
|
1351
|
-
adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment,
|
|
1352
|
-
replaces_adjustment_id: String
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
type adjustment =
|
|
1356
|
-
Orb::NewPercentageDiscount
|
|
1357
|
-
| Orb::NewUsageDiscount
|
|
1358
|
-
| Orb::NewAmountDiscount
|
|
1359
|
-
| Orb::NewMinimum
|
|
1360
|
-
| Orb::NewMaximum
|
|
1361
|
-
|
|
1362
|
-
module Adjustment
|
|
1363
|
-
extend Orb::Internal::Type::Union
|
|
1364
|
-
|
|
1365
|
-
def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment]
|
|
1366
|
-
end
|
|
1367
|
-
end
|
|
1368
|
-
|
|
1369
|
-
type replace_price =
|
|
1370
|
-
{
|
|
1371
|
-
replaces_price_id: String,
|
|
1372
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1373
|
-
discounts: ::Array[Orb::DiscountOverride]?,
|
|
1374
|
-
external_price_id: String?,
|
|
1375
|
-
fixed_price_quantity: Float?,
|
|
1376
|
-
maximum_amount: String?,
|
|
1377
|
-
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1378
|
-
minimum_amount: String?,
|
|
1379
|
-
price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
1380
|
-
price_id: String?
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
1384
|
-
attr_accessor replaces_price_id: String
|
|
1385
|
-
|
|
1386
|
-
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
1387
|
-
|
|
1388
|
-
attr_accessor discounts: ::Array[Orb::DiscountOverride]?
|
|
1389
|
-
|
|
1390
|
-
attr_accessor external_price_id: String?
|
|
1391
|
-
|
|
1392
|
-
attr_accessor fixed_price_quantity: Float?
|
|
1393
|
-
|
|
1394
|
-
attr_accessor maximum_amount: String?
|
|
1395
|
-
|
|
1396
|
-
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
1397
|
-
|
|
1398
|
-
attr_accessor minimum_amount: String?
|
|
1399
|
-
|
|
1400
|
-
attr_accessor price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?
|
|
1401
|
-
|
|
1402
|
-
attr_accessor price_id: String?
|
|
1403
|
-
|
|
1404
|
-
def initialize: (
|
|
1405
|
-
replaces_price_id: String,
|
|
1406
|
-
?allocation_price: Orb::NewAllocationPrice?,
|
|
1407
|
-
?discounts: ::Array[Orb::DiscountOverride]?,
|
|
1408
|
-
?external_price_id: String?,
|
|
1409
|
-
?fixed_price_quantity: Float?,
|
|
1410
|
-
?maximum_amount: String?,
|
|
1411
|
-
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1412
|
-
?minimum_amount: String?,
|
|
1413
|
-
?price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
1414
|
-
?price_id: String?
|
|
1415
|
-
) -> void
|
|
1416
|
-
|
|
1417
|
-
def to_hash: -> {
|
|
1418
|
-
replaces_price_id: String,
|
|
1419
|
-
allocation_price: Orb::NewAllocationPrice?,
|
|
1420
|
-
discounts: ::Array[Orb::DiscountOverride]?,
|
|
1421
|
-
external_price_id: String?,
|
|
1422
|
-
fixed_price_quantity: Float?,
|
|
1423
|
-
maximum_amount: String?,
|
|
1424
|
-
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
1425
|
-
minimum_amount: String?,
|
|
1426
|
-
price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
1427
|
-
price_id: String?
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
type price =
|
|
1431
|
-
Orb::NewSubscriptionUnitPrice
|
|
1432
|
-
| Orb::NewSubscriptionTieredPrice
|
|
1433
|
-
| Orb::NewSubscriptionBulkPrice
|
|
1434
|
-
| Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters
|
|
1435
|
-
| Orb::NewSubscriptionPackagePrice
|
|
1436
|
-
| Orb::NewSubscriptionMatrixPrice
|
|
1437
|
-
| Orb::NewSubscriptionThresholdTotalAmountPrice
|
|
1438
|
-
| Orb::NewSubscriptionTieredPackagePrice
|
|
1439
|
-
| Orb::NewSubscriptionTieredWithMinimumPrice
|
|
1440
|
-
| Orb::NewSubscriptionGroupedTieredPrice
|
|
1441
|
-
| Orb::NewSubscriptionTieredPackageWithMinimumPrice
|
|
1442
|
-
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
1443
|
-
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
1444
|
-
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
1445
|
-
| Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration
|
|
1446
|
-
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
1447
|
-
| Orb::NewSubscriptionGroupedAllocationPrice
|
|
1448
|
-
| Orb::NewSubscriptionBulkWithProrationPrice
|
|
1449
|
-
| Orb::NewSubscriptionGroupedWithProratedMinimumPrice
|
|
1450
|
-
| Orb::NewSubscriptionGroupedWithMeteredMinimumPrice
|
|
1451
|
-
| Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
1452
|
-
| Orb::NewSubscriptionMatrixWithDisplayNamePrice
|
|
1453
|
-
| Orb::NewSubscriptionGroupedTieredPackagePrice
|
|
1454
|
-
| Orb::NewSubscriptionMaxGroupTieredPackagePrice
|
|
1455
|
-
| Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice
|
|
1456
|
-
| Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice
|
|
1457
|
-
| Orb::NewSubscriptionCumulativeGroupedBulkPrice
|
|
1458
|
-
| Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
1459
|
-
| Orb::NewSubscriptionMinimumCompositePrice
|
|
1460
|
-
| Orb::SubscriptionCreateParams::ReplacePrice::Price::Percent
|
|
1461
|
-
| Orb::SubscriptionCreateParams::ReplacePrice::Price::EventOutput
|
|
1462
|
-
|
|
1463
|
-
module Price
|
|
1464
|
-
extend Orb::Internal::Type::Union
|
|
1465
|
-
|
|
1466
|
-
type bulk_with_filters =
|
|
1768
|
+
type percent =
|
|
1467
1769
|
{
|
|
1468
|
-
|
|
1469
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
1770
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Percent::cadence,
|
|
1470
1771
|
item_id: String,
|
|
1471
|
-
model_type: :
|
|
1772
|
+
model_type: :percent,
|
|
1472
1773
|
name: String,
|
|
1774
|
+
percent_config: Orb::SubscriptionCreateParams::AddPrice::Price::Percent::PercentConfig,
|
|
1473
1775
|
billable_metric_id: String?,
|
|
1474
1776
|
billed_in_advance: bool?,
|
|
1475
1777
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1476
1778
|
conversion_rate: Float?,
|
|
1477
|
-
conversion_rate_config: Orb::Models::
|
|
1779
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1478
1780
|
currency: String?,
|
|
1479
1781
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1480
1782
|
external_price_id: String?,
|
|
@@ -1486,17 +1788,17 @@ module Orb
|
|
|
1486
1788
|
reference_id: String?
|
|
1487
1789
|
}
|
|
1488
1790
|
|
|
1489
|
-
class
|
|
1490
|
-
attr_accessor
|
|
1491
|
-
|
|
1492
|
-
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::cadence
|
|
1791
|
+
class Percent < Orb::Internal::Type::BaseModel
|
|
1792
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Percent::cadence
|
|
1493
1793
|
|
|
1494
1794
|
attr_accessor item_id: String
|
|
1495
1795
|
|
|
1496
|
-
attr_accessor model_type: :
|
|
1796
|
+
attr_accessor model_type: :percent
|
|
1497
1797
|
|
|
1498
1798
|
attr_accessor name: String
|
|
1499
1799
|
|
|
1800
|
+
attr_accessor percent_config: Orb::SubscriptionCreateParams::AddPrice::Price::Percent::PercentConfig
|
|
1801
|
+
|
|
1500
1802
|
attr_accessor billable_metric_id: String?
|
|
1501
1803
|
|
|
1502
1804
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1505,7 +1807,7 @@ module Orb
|
|
|
1505
1807
|
|
|
1506
1808
|
attr_accessor conversion_rate: Float?
|
|
1507
1809
|
|
|
1508
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1810
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1509
1811
|
|
|
1510
1812
|
attr_accessor currency: String?
|
|
1511
1813
|
|
|
@@ -1526,15 +1828,1093 @@ module Orb
|
|
|
1526
1828
|
attr_accessor reference_id: String?
|
|
1527
1829
|
|
|
1528
1830
|
def initialize: (
|
|
1529
|
-
|
|
1530
|
-
|
|
1831
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Percent::cadence,
|
|
1832
|
+
item_id: String,
|
|
1833
|
+
name: String,
|
|
1834
|
+
percent_config: Orb::SubscriptionCreateParams::AddPrice::Price::Percent::PercentConfig,
|
|
1835
|
+
?billable_metric_id: String?,
|
|
1836
|
+
?billed_in_advance: bool?,
|
|
1837
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1838
|
+
?conversion_rate: Float?,
|
|
1839
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1840
|
+
?currency: String?,
|
|
1841
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1842
|
+
?external_price_id: String?,
|
|
1843
|
+
?fixed_price_quantity: Float?,
|
|
1844
|
+
?invoice_grouping_key: String?,
|
|
1845
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1846
|
+
?license_type_id: String?,
|
|
1847
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1848
|
+
?reference_id: String?,
|
|
1849
|
+
?model_type: :percent
|
|
1850
|
+
) -> void
|
|
1851
|
+
|
|
1852
|
+
def to_hash: -> {
|
|
1853
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Percent::cadence,
|
|
1854
|
+
item_id: String,
|
|
1855
|
+
model_type: :percent,
|
|
1856
|
+
name: String,
|
|
1857
|
+
percent_config: Orb::SubscriptionCreateParams::AddPrice::Price::Percent::PercentConfig,
|
|
1858
|
+
billable_metric_id: String?,
|
|
1859
|
+
billed_in_advance: bool?,
|
|
1860
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1861
|
+
conversion_rate: Float?,
|
|
1862
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1863
|
+
currency: String?,
|
|
1864
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1865
|
+
external_price_id: String?,
|
|
1866
|
+
fixed_price_quantity: Float?,
|
|
1867
|
+
invoice_grouping_key: String?,
|
|
1868
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1869
|
+
license_type_id: String?,
|
|
1870
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1871
|
+
reference_id: String?
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
type cadence =
|
|
1875
|
+
:annual
|
|
1876
|
+
| :semi_annual
|
|
1877
|
+
| :monthly
|
|
1878
|
+
| :quarterly
|
|
1879
|
+
| :one_time
|
|
1880
|
+
| :custom
|
|
1881
|
+
|
|
1882
|
+
module Cadence
|
|
1883
|
+
extend Orb::Internal::Type::Enum
|
|
1884
|
+
|
|
1885
|
+
ANNUAL: :annual
|
|
1886
|
+
SEMI_ANNUAL: :semi_annual
|
|
1887
|
+
MONTHLY: :monthly
|
|
1888
|
+
QUARTERLY: :quarterly
|
|
1889
|
+
ONE_TIME: :one_time
|
|
1890
|
+
CUSTOM: :custom
|
|
1891
|
+
|
|
1892
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Percent::cadence]
|
|
1893
|
+
end
|
|
1894
|
+
|
|
1895
|
+
type percent_config =
|
|
1896
|
+
{
|
|
1897
|
+
percent: Float,
|
|
1898
|
+
maximum_amount: String?,
|
|
1899
|
+
minimum_amount: String?,
|
|
1900
|
+
prorated: bool
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
1904
|
+
attr_accessor percent: Float
|
|
1905
|
+
|
|
1906
|
+
attr_accessor maximum_amount: String?
|
|
1907
|
+
|
|
1908
|
+
attr_accessor minimum_amount: String?
|
|
1909
|
+
|
|
1910
|
+
attr_reader prorated: bool?
|
|
1911
|
+
|
|
1912
|
+
def prorated=: (bool) -> bool
|
|
1913
|
+
|
|
1914
|
+
def initialize: (
|
|
1915
|
+
percent: Float,
|
|
1916
|
+
?maximum_amount: String?,
|
|
1917
|
+
?minimum_amount: String?,
|
|
1918
|
+
?prorated: bool
|
|
1919
|
+
) -> void
|
|
1920
|
+
|
|
1921
|
+
def to_hash: -> {
|
|
1922
|
+
percent: Float,
|
|
1923
|
+
maximum_amount: String?,
|
|
1924
|
+
minimum_amount: String?,
|
|
1925
|
+
prorated: bool
|
|
1926
|
+
}
|
|
1927
|
+
end
|
|
1928
|
+
end
|
|
1929
|
+
|
|
1930
|
+
type event_output =
|
|
1931
|
+
{
|
|
1932
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::EventOutput::cadence,
|
|
1933
|
+
event_output_config: Orb::SubscriptionCreateParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1934
|
+
item_id: String,
|
|
1935
|
+
model_type: :event_output,
|
|
1936
|
+
name: String,
|
|
1937
|
+
billable_metric_id: String?,
|
|
1938
|
+
billed_in_advance: bool?,
|
|
1939
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1940
|
+
conversion_rate: Float?,
|
|
1941
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1942
|
+
currency: String?,
|
|
1943
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1944
|
+
external_price_id: String?,
|
|
1945
|
+
fixed_price_quantity: Float?,
|
|
1946
|
+
invoice_grouping_key: String?,
|
|
1947
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1948
|
+
license_type_id: String?,
|
|
1949
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1950
|
+
reference_id: String?
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
class EventOutput < Orb::Internal::Type::BaseModel
|
|
1954
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::EventOutput::cadence
|
|
1955
|
+
|
|
1956
|
+
attr_accessor event_output_config: Orb::SubscriptionCreateParams::AddPrice::Price::EventOutput::EventOutputConfig
|
|
1957
|
+
|
|
1958
|
+
attr_accessor item_id: String
|
|
1959
|
+
|
|
1960
|
+
attr_accessor model_type: :event_output
|
|
1961
|
+
|
|
1962
|
+
attr_accessor name: String
|
|
1963
|
+
|
|
1964
|
+
attr_accessor billable_metric_id: String?
|
|
1965
|
+
|
|
1966
|
+
attr_accessor billed_in_advance: bool?
|
|
1967
|
+
|
|
1968
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1969
|
+
|
|
1970
|
+
attr_accessor conversion_rate: Float?
|
|
1971
|
+
|
|
1972
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1973
|
+
|
|
1974
|
+
attr_accessor currency: String?
|
|
1975
|
+
|
|
1976
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1977
|
+
|
|
1978
|
+
attr_accessor external_price_id: String?
|
|
1979
|
+
|
|
1980
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1981
|
+
|
|
1982
|
+
attr_accessor invoice_grouping_key: String?
|
|
1983
|
+
|
|
1984
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1985
|
+
|
|
1986
|
+
attr_accessor license_type_id: String?
|
|
1987
|
+
|
|
1988
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1989
|
+
|
|
1990
|
+
attr_accessor reference_id: String?
|
|
1991
|
+
|
|
1992
|
+
def initialize: (
|
|
1993
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::EventOutput::cadence,
|
|
1994
|
+
event_output_config: Orb::SubscriptionCreateParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
1995
|
+
item_id: String,
|
|
1996
|
+
name: String,
|
|
1997
|
+
?billable_metric_id: String?,
|
|
1998
|
+
?billed_in_advance: bool?,
|
|
1999
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2000
|
+
?conversion_rate: Float?,
|
|
2001
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2002
|
+
?currency: String?,
|
|
2003
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2004
|
+
?external_price_id: String?,
|
|
2005
|
+
?fixed_price_quantity: Float?,
|
|
2006
|
+
?invoice_grouping_key: String?,
|
|
2007
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2008
|
+
?license_type_id: String?,
|
|
2009
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2010
|
+
?reference_id: String?,
|
|
2011
|
+
?model_type: :event_output
|
|
2012
|
+
) -> void
|
|
2013
|
+
|
|
2014
|
+
def to_hash: -> {
|
|
2015
|
+
cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::EventOutput::cadence,
|
|
2016
|
+
event_output_config: Orb::SubscriptionCreateParams::AddPrice::Price::EventOutput::EventOutputConfig,
|
|
2017
|
+
item_id: String,
|
|
2018
|
+
model_type: :event_output,
|
|
2019
|
+
name: String,
|
|
2020
|
+
billable_metric_id: String?,
|
|
2021
|
+
billed_in_advance: bool?,
|
|
2022
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2023
|
+
conversion_rate: Float?,
|
|
2024
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2025
|
+
currency: String?,
|
|
2026
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2027
|
+
external_price_id: String?,
|
|
2028
|
+
fixed_price_quantity: Float?,
|
|
2029
|
+
invoice_grouping_key: String?,
|
|
2030
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2031
|
+
license_type_id: String?,
|
|
2032
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2033
|
+
reference_id: String?
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
type cadence =
|
|
2037
|
+
:annual
|
|
2038
|
+
| :semi_annual
|
|
2039
|
+
| :monthly
|
|
2040
|
+
| :quarterly
|
|
2041
|
+
| :one_time
|
|
2042
|
+
| :custom
|
|
2043
|
+
|
|
2044
|
+
module Cadence
|
|
2045
|
+
extend Orb::Internal::Type::Enum
|
|
2046
|
+
|
|
2047
|
+
ANNUAL: :annual
|
|
2048
|
+
SEMI_ANNUAL: :semi_annual
|
|
2049
|
+
MONTHLY: :monthly
|
|
2050
|
+
QUARTERLY: :quarterly
|
|
2051
|
+
ONE_TIME: :one_time
|
|
2052
|
+
CUSTOM: :custom
|
|
2053
|
+
|
|
2054
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::EventOutput::cadence]
|
|
2055
|
+
end
|
|
2056
|
+
|
|
2057
|
+
type event_output_config =
|
|
2058
|
+
{
|
|
2059
|
+
unit_rating_key: String,
|
|
2060
|
+
default_unit_rate: String?,
|
|
2061
|
+
grouping_key: String?
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
2065
|
+
attr_accessor unit_rating_key: String
|
|
2066
|
+
|
|
2067
|
+
attr_accessor default_unit_rate: String?
|
|
2068
|
+
|
|
2069
|
+
attr_accessor grouping_key: String?
|
|
2070
|
+
|
|
2071
|
+
def initialize: (
|
|
2072
|
+
unit_rating_key: String,
|
|
2073
|
+
?default_unit_rate: String?,
|
|
2074
|
+
?grouping_key: String?
|
|
2075
|
+
) -> void
|
|
2076
|
+
|
|
2077
|
+
def to_hash: -> {
|
|
2078
|
+
unit_rating_key: String,
|
|
2079
|
+
default_unit_rate: String?,
|
|
2080
|
+
grouping_key: String?
|
|
2081
|
+
}
|
|
2082
|
+
end
|
|
2083
|
+
end
|
|
2084
|
+
|
|
2085
|
+
def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::price]
|
|
2086
|
+
end
|
|
2087
|
+
end
|
|
2088
|
+
|
|
2089
|
+
type external_marketplace = :google | :aws | :azure
|
|
2090
|
+
|
|
2091
|
+
module ExternalMarketplace
|
|
2092
|
+
extend Orb::Internal::Type::Enum
|
|
2093
|
+
|
|
2094
|
+
GOOGLE: :google
|
|
2095
|
+
AWS: :aws
|
|
2096
|
+
AZURE: :azure
|
|
2097
|
+
|
|
2098
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::external_marketplace]
|
|
2099
|
+
end
|
|
2100
|
+
|
|
2101
|
+
type remove_adjustment = { adjustment_id: String }
|
|
2102
|
+
|
|
2103
|
+
class RemoveAdjustment < Orb::Internal::Type::BaseModel
|
|
2104
|
+
attr_accessor adjustment_id: String
|
|
2105
|
+
|
|
2106
|
+
def initialize: (adjustment_id: String) -> void
|
|
2107
|
+
|
|
2108
|
+
def to_hash: -> { adjustment_id: String }
|
|
2109
|
+
end
|
|
2110
|
+
|
|
2111
|
+
type remove_price = { external_price_id: String?, price_id: String? }
|
|
2112
|
+
|
|
2113
|
+
class RemovePrice < Orb::Internal::Type::BaseModel
|
|
2114
|
+
attr_accessor external_price_id: String?
|
|
2115
|
+
|
|
2116
|
+
attr_accessor price_id: String?
|
|
2117
|
+
|
|
2118
|
+
def initialize: (
|
|
2119
|
+
?external_price_id: String?,
|
|
2120
|
+
?price_id: String?
|
|
2121
|
+
) -> void
|
|
2122
|
+
|
|
2123
|
+
def to_hash: -> { external_price_id: String?, price_id: String? }
|
|
2124
|
+
end
|
|
2125
|
+
|
|
2126
|
+
type replace_adjustment =
|
|
2127
|
+
{
|
|
2128
|
+
adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment,
|
|
2129
|
+
replaces_adjustment_id: String
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
class ReplaceAdjustment < Orb::Internal::Type::BaseModel
|
|
2133
|
+
attr_accessor adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment
|
|
2134
|
+
|
|
2135
|
+
attr_accessor replaces_adjustment_id: String
|
|
2136
|
+
|
|
2137
|
+
def initialize: (
|
|
2138
|
+
adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment,
|
|
2139
|
+
replaces_adjustment_id: String
|
|
2140
|
+
) -> void
|
|
2141
|
+
|
|
2142
|
+
def to_hash: -> {
|
|
2143
|
+
adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment,
|
|
2144
|
+
replaces_adjustment_id: String
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
type adjustment =
|
|
2148
|
+
Orb::NewPercentageDiscount
|
|
2149
|
+
| Orb::NewUsageDiscount
|
|
2150
|
+
| Orb::NewAmountDiscount
|
|
2151
|
+
| Orb::NewMinimum
|
|
2152
|
+
| Orb::NewMaximum
|
|
2153
|
+
| Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount
|
|
2154
|
+
|
|
2155
|
+
module Adjustment
|
|
2156
|
+
extend Orb::Internal::Type::Union
|
|
2157
|
+
|
|
2158
|
+
type tiered_percentage_discount =
|
|
2159
|
+
{
|
|
2160
|
+
adjustment_type: :tiered_percentage_discount,
|
|
2161
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2162
|
+
applies_to_all: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2163
|
+
applies_to_item_ids: ::Array[String]?,
|
|
2164
|
+
applies_to_price_ids: ::Array[String]?,
|
|
2165
|
+
currency: String?,
|
|
2166
|
+
filters: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2167
|
+
is_invoice_level: bool,
|
|
2168
|
+
price_type: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
2172
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
2173
|
+
|
|
2174
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
2175
|
+
|
|
2176
|
+
attr_accessor applies_to_all: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
2177
|
+
|
|
2178
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
2179
|
+
|
|
2180
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
2181
|
+
|
|
2182
|
+
attr_accessor currency: String?
|
|
2183
|
+
|
|
2184
|
+
attr_accessor filters: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
2185
|
+
|
|
2186
|
+
attr_reader is_invoice_level: bool?
|
|
2187
|
+
|
|
2188
|
+
def is_invoice_level=: (bool) -> bool
|
|
2189
|
+
|
|
2190
|
+
attr_accessor price_type: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2191
|
+
|
|
2192
|
+
def initialize: (
|
|
2193
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2194
|
+
?applies_to_all: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2195
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
2196
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
2197
|
+
?currency: String?,
|
|
2198
|
+
?filters: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2199
|
+
?is_invoice_level: bool,
|
|
2200
|
+
?price_type: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
2201
|
+
?adjustment_type: :tiered_percentage_discount
|
|
2202
|
+
) -> void
|
|
2203
|
+
|
|
2204
|
+
def to_hash: -> {
|
|
2205
|
+
adjustment_type: :tiered_percentage_discount,
|
|
2206
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
2207
|
+
applies_to_all: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
2208
|
+
applies_to_item_ids: ::Array[String]?,
|
|
2209
|
+
applies_to_price_ids: ::Array[String]?,
|
|
2210
|
+
currency: String?,
|
|
2211
|
+
filters: ::Array[Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
2212
|
+
is_invoice_level: bool,
|
|
2213
|
+
price_type: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
type tier =
|
|
2217
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
2218
|
+
|
|
2219
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2220
|
+
attr_accessor lower_bound: Float
|
|
2221
|
+
|
|
2222
|
+
attr_accessor percentage: Float
|
|
2223
|
+
|
|
2224
|
+
attr_accessor upper_bound: Float?
|
|
2225
|
+
|
|
2226
|
+
def initialize: (
|
|
2227
|
+
lower_bound: Float,
|
|
2228
|
+
percentage: Float,
|
|
2229
|
+
?upper_bound: Float?
|
|
2230
|
+
) -> void
|
|
2231
|
+
|
|
2232
|
+
def to_hash: -> {
|
|
2233
|
+
lower_bound: Float,
|
|
2234
|
+
percentage: Float,
|
|
2235
|
+
upper_bound: Float?
|
|
2236
|
+
}
|
|
2237
|
+
end
|
|
2238
|
+
|
|
2239
|
+
type applies_to_all = true
|
|
2240
|
+
|
|
2241
|
+
module AppliesToAll
|
|
2242
|
+
extend Orb::Internal::Type::Enum
|
|
2243
|
+
|
|
2244
|
+
TRUE: true
|
|
2245
|
+
|
|
2246
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
2247
|
+
end
|
|
2248
|
+
|
|
2249
|
+
type filter =
|
|
2250
|
+
{
|
|
2251
|
+
field: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2252
|
+
operator: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2253
|
+
values: ::Array[String]
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2257
|
+
attr_accessor field: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
2258
|
+
|
|
2259
|
+
attr_accessor operator: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
2260
|
+
|
|
2261
|
+
attr_accessor values: ::Array[String]
|
|
2262
|
+
|
|
2263
|
+
def initialize: (
|
|
2264
|
+
field: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2265
|
+
operator: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2266
|
+
values: ::Array[String]
|
|
2267
|
+
) -> void
|
|
2268
|
+
|
|
2269
|
+
def to_hash: -> {
|
|
2270
|
+
field: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2271
|
+
operator: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2272
|
+
values: ::Array[String]
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
type field =
|
|
2276
|
+
:price_id
|
|
2277
|
+
| :item_id
|
|
2278
|
+
| :price_type
|
|
2279
|
+
| :currency
|
|
2280
|
+
| :pricing_unit_id
|
|
2281
|
+
|
|
2282
|
+
module Field
|
|
2283
|
+
extend Orb::Internal::Type::Enum
|
|
2284
|
+
|
|
2285
|
+
PRICE_ID: :price_id
|
|
2286
|
+
ITEM_ID: :item_id
|
|
2287
|
+
PRICE_TYPE: :price_type
|
|
2288
|
+
CURRENCY: :currency
|
|
2289
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
2290
|
+
|
|
2291
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
2292
|
+
end
|
|
2293
|
+
|
|
2294
|
+
type operator = :includes | :excludes
|
|
2295
|
+
|
|
2296
|
+
module Operator
|
|
2297
|
+
extend Orb::Internal::Type::Enum
|
|
2298
|
+
|
|
2299
|
+
INCLUDES: :includes
|
|
2300
|
+
EXCLUDES: :excludes
|
|
2301
|
+
|
|
2302
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
2303
|
+
end
|
|
2304
|
+
end
|
|
2305
|
+
|
|
2306
|
+
type price_type =
|
|
2307
|
+
:usage
|
|
2308
|
+
| :fixed_in_advance
|
|
2309
|
+
| :fixed_in_arrears
|
|
2310
|
+
| :fixed
|
|
2311
|
+
| :in_arrears
|
|
2312
|
+
|
|
2313
|
+
module PriceType
|
|
2314
|
+
extend Orb::Internal::Type::Enum
|
|
2315
|
+
|
|
2316
|
+
USAGE: :usage
|
|
2317
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
2318
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
2319
|
+
FIXED: :fixed
|
|
2320
|
+
IN_ARREARS: :in_arrears
|
|
2321
|
+
|
|
2322
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
2323
|
+
end
|
|
2324
|
+
end
|
|
2325
|
+
|
|
2326
|
+
def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment]
|
|
2327
|
+
end
|
|
2328
|
+
end
|
|
2329
|
+
|
|
2330
|
+
type replace_price =
|
|
2331
|
+
{
|
|
2332
|
+
replaces_price_id: String,
|
|
2333
|
+
allocation_price: Orb::NewAllocationPrice?,
|
|
2334
|
+
discounts: ::Array[Orb::DiscountOverride]?,
|
|
2335
|
+
external_price_id: String?,
|
|
2336
|
+
fixed_price_quantity: Float?,
|
|
2337
|
+
maximum_amount: String?,
|
|
2338
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2339
|
+
minimum_amount: String?,
|
|
2340
|
+
price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
2341
|
+
price_id: String?
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
class ReplacePrice < Orb::Internal::Type::BaseModel
|
|
2345
|
+
attr_accessor replaces_price_id: String
|
|
2346
|
+
|
|
2347
|
+
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
2348
|
+
|
|
2349
|
+
attr_accessor discounts: ::Array[Orb::DiscountOverride]?
|
|
2350
|
+
|
|
2351
|
+
attr_accessor external_price_id: String?
|
|
2352
|
+
|
|
2353
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2354
|
+
|
|
2355
|
+
attr_accessor maximum_amount: String?
|
|
2356
|
+
|
|
2357
|
+
attr_accessor metric_parameter_overrides: ::Hash[Symbol, top]?
|
|
2358
|
+
|
|
2359
|
+
attr_accessor minimum_amount: String?
|
|
2360
|
+
|
|
2361
|
+
attr_accessor price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?
|
|
2362
|
+
|
|
2363
|
+
attr_accessor price_id: String?
|
|
2364
|
+
|
|
2365
|
+
def initialize: (
|
|
2366
|
+
replaces_price_id: String,
|
|
2367
|
+
?allocation_price: Orb::NewAllocationPrice?,
|
|
2368
|
+
?discounts: ::Array[Orb::DiscountOverride]?,
|
|
2369
|
+
?external_price_id: String?,
|
|
2370
|
+
?fixed_price_quantity: Float?,
|
|
2371
|
+
?maximum_amount: String?,
|
|
2372
|
+
?metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2373
|
+
?minimum_amount: String?,
|
|
2374
|
+
?price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
2375
|
+
?price_id: String?
|
|
2376
|
+
) -> void
|
|
2377
|
+
|
|
2378
|
+
def to_hash: -> {
|
|
2379
|
+
replaces_price_id: String,
|
|
2380
|
+
allocation_price: Orb::NewAllocationPrice?,
|
|
2381
|
+
discounts: ::Array[Orb::DiscountOverride]?,
|
|
2382
|
+
external_price_id: String?,
|
|
2383
|
+
fixed_price_quantity: Float?,
|
|
2384
|
+
maximum_amount: String?,
|
|
2385
|
+
metric_parameter_overrides: ::Hash[Symbol, top]?,
|
|
2386
|
+
minimum_amount: String?,
|
|
2387
|
+
price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?,
|
|
2388
|
+
price_id: String?
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
type price =
|
|
2392
|
+
Orb::NewSubscriptionUnitPrice
|
|
2393
|
+
| Orb::NewSubscriptionTieredPrice
|
|
2394
|
+
| Orb::NewSubscriptionBulkPrice
|
|
2395
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters
|
|
2396
|
+
| Orb::NewSubscriptionPackagePrice
|
|
2397
|
+
| Orb::NewSubscriptionMatrixPrice
|
|
2398
|
+
| Orb::NewSubscriptionThresholdTotalAmountPrice
|
|
2399
|
+
| Orb::NewSubscriptionTieredPackagePrice
|
|
2400
|
+
| Orb::NewSubscriptionTieredWithMinimumPrice
|
|
2401
|
+
| Orb::NewSubscriptionGroupedTieredPrice
|
|
2402
|
+
| Orb::NewSubscriptionTieredPackageWithMinimumPrice
|
|
2403
|
+
| Orb::NewSubscriptionPackageWithAllocationPrice
|
|
2404
|
+
| Orb::NewSubscriptionUnitWithPercentPrice
|
|
2405
|
+
| Orb::NewSubscriptionMatrixWithAllocationPrice
|
|
2406
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts
|
|
2407
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration
|
|
2408
|
+
| Orb::NewSubscriptionUnitWithProrationPrice
|
|
2409
|
+
| Orb::NewSubscriptionGroupedAllocationPrice
|
|
2410
|
+
| Orb::NewSubscriptionBulkWithProrationPrice
|
|
2411
|
+
| Orb::NewSubscriptionGroupedWithProratedMinimumPrice
|
|
2412
|
+
| Orb::NewSubscriptionGroupedWithMeteredMinimumPrice
|
|
2413
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds
|
|
2414
|
+
| Orb::NewSubscriptionMatrixWithDisplayNamePrice
|
|
2415
|
+
| Orb::NewSubscriptionGroupedTieredPackagePrice
|
|
2416
|
+
| Orb::NewSubscriptionMaxGroupTieredPackagePrice
|
|
2417
|
+
| Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice
|
|
2418
|
+
| Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice
|
|
2419
|
+
| Orb::NewSubscriptionCumulativeGroupedBulkPrice
|
|
2420
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation
|
|
2421
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance
|
|
2422
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance
|
|
2423
|
+
| Orb::NewSubscriptionMinimumCompositePrice
|
|
2424
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::Percent
|
|
2425
|
+
| Orb::SubscriptionCreateParams::ReplacePrice::Price::EventOutput
|
|
2426
|
+
|
|
2427
|
+
module Price
|
|
2428
|
+
extend Orb::Internal::Type::Union
|
|
2429
|
+
|
|
2430
|
+
type bulk_with_filters =
|
|
2431
|
+
{
|
|
2432
|
+
bulk_with_filters_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2433
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2434
|
+
item_id: String,
|
|
2435
|
+
model_type: :bulk_with_filters,
|
|
2436
|
+
name: String,
|
|
2437
|
+
billable_metric_id: String?,
|
|
2438
|
+
billed_in_advance: bool?,
|
|
2439
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2440
|
+
conversion_rate: Float?,
|
|
2441
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2442
|
+
currency: String?,
|
|
2443
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2444
|
+
external_price_id: String?,
|
|
2445
|
+
fixed_price_quantity: Float?,
|
|
2446
|
+
invoice_grouping_key: String?,
|
|
2447
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2448
|
+
license_type_id: String?,
|
|
2449
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2450
|
+
reference_id: String?
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
2454
|
+
attr_accessor bulk_with_filters_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig
|
|
2455
|
+
|
|
2456
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::cadence
|
|
2457
|
+
|
|
2458
|
+
attr_accessor item_id: String
|
|
2459
|
+
|
|
2460
|
+
attr_accessor model_type: :bulk_with_filters
|
|
2461
|
+
|
|
2462
|
+
attr_accessor name: String
|
|
2463
|
+
|
|
2464
|
+
attr_accessor billable_metric_id: String?
|
|
2465
|
+
|
|
2466
|
+
attr_accessor billed_in_advance: bool?
|
|
2467
|
+
|
|
2468
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2469
|
+
|
|
2470
|
+
attr_accessor conversion_rate: Float?
|
|
2471
|
+
|
|
2472
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2473
|
+
|
|
2474
|
+
attr_accessor currency: String?
|
|
2475
|
+
|
|
2476
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2477
|
+
|
|
2478
|
+
attr_accessor external_price_id: String?
|
|
2479
|
+
|
|
2480
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2481
|
+
|
|
2482
|
+
attr_accessor invoice_grouping_key: String?
|
|
2483
|
+
|
|
2484
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2485
|
+
|
|
2486
|
+
attr_accessor license_type_id: String?
|
|
2487
|
+
|
|
2488
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2489
|
+
|
|
2490
|
+
attr_accessor reference_id: String?
|
|
2491
|
+
|
|
2492
|
+
def initialize: (
|
|
2493
|
+
bulk_with_filters_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2494
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2495
|
+
item_id: String,
|
|
2496
|
+
name: String,
|
|
2497
|
+
?billable_metric_id: String?,
|
|
2498
|
+
?billed_in_advance: bool?,
|
|
2499
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2500
|
+
?conversion_rate: Float?,
|
|
2501
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2502
|
+
?currency: String?,
|
|
2503
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2504
|
+
?external_price_id: String?,
|
|
2505
|
+
?fixed_price_quantity: Float?,
|
|
2506
|
+
?invoice_grouping_key: String?,
|
|
2507
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2508
|
+
?license_type_id: String?,
|
|
2509
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2510
|
+
?reference_id: String?,
|
|
2511
|
+
?model_type: :bulk_with_filters
|
|
2512
|
+
) -> void
|
|
2513
|
+
|
|
2514
|
+
def to_hash: -> {
|
|
2515
|
+
bulk_with_filters_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig,
|
|
2516
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2517
|
+
item_id: String,
|
|
2518
|
+
model_type: :bulk_with_filters,
|
|
2519
|
+
name: String,
|
|
2520
|
+
billable_metric_id: String?,
|
|
2521
|
+
billed_in_advance: bool?,
|
|
2522
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2523
|
+
conversion_rate: Float?,
|
|
2524
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2525
|
+
currency: String?,
|
|
2526
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2527
|
+
external_price_id: String?,
|
|
2528
|
+
fixed_price_quantity: Float?,
|
|
2529
|
+
invoice_grouping_key: String?,
|
|
2530
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2531
|
+
license_type_id: String?,
|
|
2532
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2533
|
+
reference_id: String?
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
type bulk_with_filters_config =
|
|
2537
|
+
{
|
|
2538
|
+
filters: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2539
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
2543
|
+
attr_accessor filters: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter]
|
|
2544
|
+
|
|
2545
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2546
|
+
|
|
2547
|
+
def initialize: (
|
|
2548
|
+
filters: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2549
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2550
|
+
) -> void
|
|
2551
|
+
|
|
2552
|
+
def to_hash: -> {
|
|
2553
|
+
filters: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
2554
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
type filter = { property_key: String, property_value: String }
|
|
2558
|
+
|
|
2559
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2560
|
+
attr_accessor property_key: String
|
|
2561
|
+
|
|
2562
|
+
attr_accessor property_value: String
|
|
2563
|
+
|
|
2564
|
+
def initialize: (
|
|
2565
|
+
property_key: String,
|
|
2566
|
+
property_value: String
|
|
2567
|
+
) -> void
|
|
2568
|
+
|
|
2569
|
+
def to_hash: -> { property_key: String, property_value: String }
|
|
2570
|
+
end
|
|
2571
|
+
|
|
2572
|
+
type tier = { unit_amount: String, tier_lower_bound: String? }
|
|
2573
|
+
|
|
2574
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2575
|
+
attr_accessor unit_amount: String
|
|
2576
|
+
|
|
2577
|
+
attr_accessor tier_lower_bound: String?
|
|
2578
|
+
|
|
2579
|
+
def initialize: (
|
|
2580
|
+
unit_amount: String,
|
|
2581
|
+
?tier_lower_bound: String?
|
|
2582
|
+
) -> void
|
|
2583
|
+
|
|
2584
|
+
def to_hash: -> {
|
|
2585
|
+
unit_amount: String,
|
|
2586
|
+
tier_lower_bound: String?
|
|
2587
|
+
}
|
|
2588
|
+
end
|
|
2589
|
+
end
|
|
2590
|
+
|
|
2591
|
+
type cadence =
|
|
2592
|
+
:annual
|
|
2593
|
+
| :semi_annual
|
|
2594
|
+
| :monthly
|
|
2595
|
+
| :quarterly
|
|
2596
|
+
| :one_time
|
|
2597
|
+
| :custom
|
|
2598
|
+
|
|
2599
|
+
module Cadence
|
|
2600
|
+
extend Orb::Internal::Type::Enum
|
|
2601
|
+
|
|
2602
|
+
ANNUAL: :annual
|
|
2603
|
+
SEMI_ANNUAL: :semi_annual
|
|
2604
|
+
MONTHLY: :monthly
|
|
2605
|
+
QUARTERLY: :quarterly
|
|
2606
|
+
ONE_TIME: :one_time
|
|
2607
|
+
CUSTOM: :custom
|
|
2608
|
+
|
|
2609
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::cadence]
|
|
2610
|
+
end
|
|
2611
|
+
end
|
|
2612
|
+
|
|
2613
|
+
type matrix_with_threshold_discounts =
|
|
2614
|
+
{
|
|
2615
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2616
|
+
item_id: String,
|
|
2617
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2618
|
+
model_type: :matrix_with_threshold_discounts,
|
|
2619
|
+
name: String,
|
|
2620
|
+
billable_metric_id: String?,
|
|
2621
|
+
billed_in_advance: bool?,
|
|
2622
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2623
|
+
conversion_rate: Float?,
|
|
2624
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2625
|
+
currency: String?,
|
|
2626
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2627
|
+
external_price_id: String?,
|
|
2628
|
+
fixed_price_quantity: Float?,
|
|
2629
|
+
invoice_grouping_key: String?,
|
|
2630
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2631
|
+
license_type_id: String?,
|
|
2632
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2633
|
+
reference_id: String?
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
2637
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence
|
|
2638
|
+
|
|
2639
|
+
attr_accessor item_id: String
|
|
2640
|
+
|
|
2641
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
2642
|
+
|
|
2643
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
2644
|
+
|
|
2645
|
+
attr_accessor name: String
|
|
2646
|
+
|
|
2647
|
+
attr_accessor billable_metric_id: String?
|
|
2648
|
+
|
|
2649
|
+
attr_accessor billed_in_advance: bool?
|
|
2650
|
+
|
|
2651
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2652
|
+
|
|
2653
|
+
attr_accessor conversion_rate: Float?
|
|
2654
|
+
|
|
2655
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2656
|
+
|
|
2657
|
+
attr_accessor currency: String?
|
|
2658
|
+
|
|
2659
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2660
|
+
|
|
2661
|
+
attr_accessor external_price_id: String?
|
|
2662
|
+
|
|
2663
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2664
|
+
|
|
2665
|
+
attr_accessor invoice_grouping_key: String?
|
|
2666
|
+
|
|
2667
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2668
|
+
|
|
2669
|
+
attr_accessor license_type_id: String?
|
|
2670
|
+
|
|
2671
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2672
|
+
|
|
2673
|
+
attr_accessor reference_id: String?
|
|
2674
|
+
|
|
2675
|
+
def initialize: (
|
|
2676
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2677
|
+
item_id: String,
|
|
2678
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2679
|
+
name: String,
|
|
2680
|
+
?billable_metric_id: String?,
|
|
2681
|
+
?billed_in_advance: bool?,
|
|
2682
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2683
|
+
?conversion_rate: Float?,
|
|
2684
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2685
|
+
?currency: String?,
|
|
2686
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2687
|
+
?external_price_id: String?,
|
|
2688
|
+
?fixed_price_quantity: Float?,
|
|
2689
|
+
?invoice_grouping_key: String?,
|
|
2690
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2691
|
+
?license_type_id: String?,
|
|
2692
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
2693
|
+
?reference_id: String?,
|
|
2694
|
+
?model_type: :matrix_with_threshold_discounts
|
|
2695
|
+
) -> void
|
|
2696
|
+
|
|
2697
|
+
def to_hash: -> {
|
|
2698
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence,
|
|
2699
|
+
item_id: String,
|
|
2700
|
+
matrix_with_threshold_discounts_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
2701
|
+
model_type: :matrix_with_threshold_discounts,
|
|
2702
|
+
name: String,
|
|
2703
|
+
billable_metric_id: String?,
|
|
2704
|
+
billed_in_advance: bool?,
|
|
2705
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2706
|
+
conversion_rate: Float?,
|
|
2707
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2708
|
+
currency: String?,
|
|
2709
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2710
|
+
external_price_id: String?,
|
|
2711
|
+
fixed_price_quantity: Float?,
|
|
2712
|
+
invoice_grouping_key: String?,
|
|
2713
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2714
|
+
license_type_id: String?,
|
|
2715
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2716
|
+
reference_id: String?
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
type cadence =
|
|
2720
|
+
:annual
|
|
2721
|
+
| :semi_annual
|
|
2722
|
+
| :monthly
|
|
2723
|
+
| :quarterly
|
|
2724
|
+
| :one_time
|
|
2725
|
+
| :custom
|
|
2726
|
+
|
|
2727
|
+
module Cadence
|
|
2728
|
+
extend Orb::Internal::Type::Enum
|
|
2729
|
+
|
|
2730
|
+
ANNUAL: :annual
|
|
2731
|
+
SEMI_ANNUAL: :semi_annual
|
|
2732
|
+
MONTHLY: :monthly
|
|
2733
|
+
QUARTERLY: :quarterly
|
|
2734
|
+
ONE_TIME: :one_time
|
|
2735
|
+
CUSTOM: :custom
|
|
2736
|
+
|
|
2737
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::cadence]
|
|
2738
|
+
end
|
|
2739
|
+
|
|
2740
|
+
type matrix_with_threshold_discounts_config =
|
|
2741
|
+
{
|
|
2742
|
+
default_unit_amount: String,
|
|
2743
|
+
first_dimension: String,
|
|
2744
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2745
|
+
second_dimension: String?,
|
|
2746
|
+
threshold_discount_groups: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
2750
|
+
attr_accessor default_unit_amount: String
|
|
2751
|
+
|
|
2752
|
+
attr_accessor first_dimension: String
|
|
2753
|
+
|
|
2754
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
2755
|
+
|
|
2756
|
+
attr_accessor second_dimension: String?
|
|
2757
|
+
|
|
2758
|
+
attr_reader threshold_discount_groups: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
2759
|
+
|
|
2760
|
+
def threshold_discount_groups=: (
|
|
2761
|
+
::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2762
|
+
) -> ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2763
|
+
|
|
2764
|
+
def initialize: (
|
|
2765
|
+
default_unit_amount: String,
|
|
2766
|
+
first_dimension: String,
|
|
2767
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2768
|
+
?second_dimension: String?,
|
|
2769
|
+
?threshold_discount_groups: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2770
|
+
) -> void
|
|
2771
|
+
|
|
2772
|
+
def to_hash: -> {
|
|
2773
|
+
default_unit_amount: String,
|
|
2774
|
+
first_dimension: String,
|
|
2775
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
2776
|
+
second_dimension: String?,
|
|
2777
|
+
threshold_discount_groups: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
type matrix_value =
|
|
2781
|
+
{
|
|
2782
|
+
first_dimension_value: String,
|
|
2783
|
+
unit_amount: String,
|
|
2784
|
+
second_dimension_value: String?
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
2788
|
+
attr_accessor first_dimension_value: String
|
|
2789
|
+
|
|
2790
|
+
attr_accessor unit_amount: String
|
|
2791
|
+
|
|
2792
|
+
attr_accessor second_dimension_value: String?
|
|
2793
|
+
|
|
2794
|
+
def initialize: (
|
|
2795
|
+
first_dimension_value: String,
|
|
2796
|
+
unit_amount: String,
|
|
2797
|
+
?second_dimension_value: String?
|
|
2798
|
+
) -> void
|
|
2799
|
+
|
|
2800
|
+
def to_hash: -> {
|
|
2801
|
+
first_dimension_value: String,
|
|
2802
|
+
unit_amount: String,
|
|
2803
|
+
second_dimension_value: String?
|
|
2804
|
+
}
|
|
2805
|
+
end
|
|
2806
|
+
|
|
2807
|
+
type threshold_discount_group =
|
|
2808
|
+
{
|
|
2809
|
+
above_threshold_discount_percentage: String,
|
|
2810
|
+
below_threshold_discount_percentage: String,
|
|
2811
|
+
cell_coordinates: String,
|
|
2812
|
+
threshold_amount: String,
|
|
2813
|
+
description: String?
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
2817
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
2818
|
+
|
|
2819
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
2820
|
+
|
|
2821
|
+
attr_accessor cell_coordinates: String
|
|
2822
|
+
|
|
2823
|
+
attr_accessor threshold_amount: String
|
|
2824
|
+
|
|
2825
|
+
attr_accessor description: String?
|
|
2826
|
+
|
|
2827
|
+
def initialize: (
|
|
2828
|
+
above_threshold_discount_percentage: String,
|
|
2829
|
+
below_threshold_discount_percentage: String,
|
|
2830
|
+
cell_coordinates: String,
|
|
2831
|
+
threshold_amount: String,
|
|
2832
|
+
?description: String?
|
|
2833
|
+
) -> void
|
|
2834
|
+
|
|
2835
|
+
def to_hash: -> {
|
|
2836
|
+
above_threshold_discount_percentage: String,
|
|
2837
|
+
below_threshold_discount_percentage: String,
|
|
2838
|
+
cell_coordinates: String,
|
|
2839
|
+
threshold_amount: String,
|
|
2840
|
+
description: String?
|
|
2841
|
+
}
|
|
2842
|
+
end
|
|
2843
|
+
end
|
|
2844
|
+
end
|
|
2845
|
+
|
|
2846
|
+
type tiered_with_proration =
|
|
2847
|
+
{
|
|
2848
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
2849
|
+
item_id: String,
|
|
2850
|
+
model_type: :tiered_with_proration,
|
|
2851
|
+
name: String,
|
|
2852
|
+
tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
2853
|
+
billable_metric_id: String?,
|
|
2854
|
+
billed_in_advance: bool?,
|
|
2855
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2856
|
+
conversion_rate: Float?,
|
|
2857
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2858
|
+
currency: String?,
|
|
2859
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2860
|
+
external_price_id: String?,
|
|
2861
|
+
fixed_price_quantity: Float?,
|
|
2862
|
+
invoice_grouping_key: String?,
|
|
2863
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2864
|
+
license_type_id: String?,
|
|
2865
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
2866
|
+
reference_id: String?
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
class TieredWithProration < Orb::Internal::Type::BaseModel
|
|
2870
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence
|
|
2871
|
+
|
|
2872
|
+
attr_accessor item_id: String
|
|
2873
|
+
|
|
2874
|
+
attr_accessor model_type: :tiered_with_proration
|
|
2875
|
+
|
|
2876
|
+
attr_accessor name: String
|
|
2877
|
+
|
|
2878
|
+
attr_accessor tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
2879
|
+
|
|
2880
|
+
attr_accessor billable_metric_id: String?
|
|
2881
|
+
|
|
2882
|
+
attr_accessor billed_in_advance: bool?
|
|
2883
|
+
|
|
2884
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2885
|
+
|
|
2886
|
+
attr_accessor conversion_rate: Float?
|
|
2887
|
+
|
|
2888
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2889
|
+
|
|
2890
|
+
attr_accessor currency: String?
|
|
2891
|
+
|
|
2892
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
2893
|
+
|
|
2894
|
+
attr_accessor external_price_id: String?
|
|
2895
|
+
|
|
2896
|
+
attr_accessor fixed_price_quantity: Float?
|
|
2897
|
+
|
|
2898
|
+
attr_accessor invoice_grouping_key: String?
|
|
2899
|
+
|
|
2900
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
2901
|
+
|
|
2902
|
+
attr_accessor license_type_id: String?
|
|
2903
|
+
|
|
2904
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
2905
|
+
|
|
2906
|
+
attr_accessor reference_id: String?
|
|
2907
|
+
|
|
2908
|
+
def initialize: (
|
|
2909
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
1531
2910
|
item_id: String,
|
|
1532
2911
|
name: String,
|
|
2912
|
+
tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1533
2913
|
?billable_metric_id: String?,
|
|
1534
2914
|
?billed_in_advance: bool?,
|
|
1535
2915
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1536
2916
|
?conversion_rate: Float?,
|
|
1537
|
-
?conversion_rate_config: Orb::Models::
|
|
2917
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1538
2918
|
?currency: String?,
|
|
1539
2919
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1540
2920
|
?external_price_id: String?,
|
|
@@ -1544,20 +2924,20 @@ module Orb
|
|
|
1544
2924
|
?license_type_id: String?,
|
|
1545
2925
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1546
2926
|
?reference_id: String?,
|
|
1547
|
-
?model_type: :
|
|
2927
|
+
?model_type: :tiered_with_proration
|
|
1548
2928
|
) -> void
|
|
1549
2929
|
|
|
1550
2930
|
def to_hash: -> {
|
|
1551
|
-
|
|
1552
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::cadence,
|
|
2931
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence,
|
|
1553
2932
|
item_id: String,
|
|
1554
|
-
model_type: :
|
|
2933
|
+
model_type: :tiered_with_proration,
|
|
1555
2934
|
name: String,
|
|
2935
|
+
tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1556
2936
|
billable_metric_id: String?,
|
|
1557
2937
|
billed_in_advance: bool?,
|
|
1558
2938
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1559
2939
|
conversion_rate: Float?,
|
|
1560
|
-
conversion_rate_config: Orb::Models::
|
|
2940
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1561
2941
|
currency: String?,
|
|
1562
2942
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1563
2943
|
external_price_id: String?,
|
|
@@ -1569,60 +2949,168 @@ module Orb
|
|
|
1569
2949
|
reference_id: String?
|
|
1570
2950
|
}
|
|
1571
2951
|
|
|
1572
|
-
type
|
|
2952
|
+
type cadence =
|
|
2953
|
+
:annual
|
|
2954
|
+
| :semi_annual
|
|
2955
|
+
| :monthly
|
|
2956
|
+
| :quarterly
|
|
2957
|
+
| :one_time
|
|
2958
|
+
| :custom
|
|
2959
|
+
|
|
2960
|
+
module Cadence
|
|
2961
|
+
extend Orb::Internal::Type::Enum
|
|
2962
|
+
|
|
2963
|
+
ANNUAL: :annual
|
|
2964
|
+
SEMI_ANNUAL: :semi_annual
|
|
2965
|
+
MONTHLY: :monthly
|
|
2966
|
+
QUARTERLY: :quarterly
|
|
2967
|
+
ONE_TIME: :one_time
|
|
2968
|
+
CUSTOM: :custom
|
|
2969
|
+
|
|
2970
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence]
|
|
2971
|
+
end
|
|
2972
|
+
|
|
2973
|
+
type tiered_with_proration_config =
|
|
1573
2974
|
{
|
|
1574
|
-
|
|
1575
|
-
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2975
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1576
2976
|
}
|
|
1577
2977
|
|
|
1578
|
-
class
|
|
1579
|
-
attr_accessor
|
|
1580
|
-
|
|
1581
|
-
attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2978
|
+
class TieredWithProrationConfig < Orb::Internal::Type::BaseModel
|
|
2979
|
+
attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1582
2980
|
|
|
1583
2981
|
def initialize: (
|
|
1584
|
-
|
|
1585
|
-
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2982
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1586
2983
|
) -> void
|
|
1587
2984
|
|
|
1588
2985
|
def to_hash: -> {
|
|
1589
|
-
|
|
1590
|
-
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
2986
|
+
tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier]
|
|
1591
2987
|
}
|
|
1592
2988
|
|
|
1593
|
-
type
|
|
2989
|
+
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1594
2990
|
|
|
1595
|
-
class
|
|
1596
|
-
attr_accessor
|
|
2991
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
2992
|
+
attr_accessor tier_lower_bound: String
|
|
1597
2993
|
|
|
1598
|
-
attr_accessor
|
|
2994
|
+
attr_accessor unit_amount: String
|
|
1599
2995
|
|
|
1600
2996
|
def initialize: (
|
|
1601
|
-
|
|
1602
|
-
|
|
2997
|
+
tier_lower_bound: String,
|
|
2998
|
+
unit_amount: String
|
|
1603
2999
|
) -> void
|
|
1604
3000
|
|
|
1605
|
-
def to_hash: -> {
|
|
3001
|
+
def to_hash: -> {
|
|
3002
|
+
tier_lower_bound: String,
|
|
3003
|
+
unit_amount: String
|
|
3004
|
+
}
|
|
1606
3005
|
end
|
|
3006
|
+
end
|
|
3007
|
+
end
|
|
1607
3008
|
|
|
1608
|
-
|
|
3009
|
+
type grouped_with_min_max_thresholds =
|
|
3010
|
+
{
|
|
3011
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3012
|
+
grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3013
|
+
item_id: String,
|
|
3014
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
3015
|
+
name: String,
|
|
3016
|
+
billable_metric_id: String?,
|
|
3017
|
+
billed_in_advance: bool?,
|
|
3018
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3019
|
+
conversion_rate: Float?,
|
|
3020
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3021
|
+
currency: String?,
|
|
3022
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3023
|
+
external_price_id: String?,
|
|
3024
|
+
fixed_price_quantity: Float?,
|
|
3025
|
+
invoice_grouping_key: String?,
|
|
3026
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3027
|
+
license_type_id: String?,
|
|
3028
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3029
|
+
reference_id: String?
|
|
3030
|
+
}
|
|
1609
3031
|
|
|
1610
|
-
|
|
1611
|
-
|
|
3032
|
+
class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel
|
|
3033
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence
|
|
3034
|
+
|
|
3035
|
+
attr_accessor grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig
|
|
3036
|
+
|
|
3037
|
+
attr_accessor item_id: String
|
|
3038
|
+
|
|
3039
|
+
attr_accessor model_type: :grouped_with_min_max_thresholds
|
|
3040
|
+
|
|
3041
|
+
attr_accessor name: String
|
|
3042
|
+
|
|
3043
|
+
attr_accessor billable_metric_id: String?
|
|
3044
|
+
|
|
3045
|
+
attr_accessor billed_in_advance: bool?
|
|
3046
|
+
|
|
3047
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3048
|
+
|
|
3049
|
+
attr_accessor conversion_rate: Float?
|
|
3050
|
+
|
|
3051
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
3052
|
+
|
|
3053
|
+
attr_accessor currency: String?
|
|
3054
|
+
|
|
3055
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
3056
|
+
|
|
3057
|
+
attr_accessor external_price_id: String?
|
|
3058
|
+
|
|
3059
|
+
attr_accessor fixed_price_quantity: Float?
|
|
3060
|
+
|
|
3061
|
+
attr_accessor invoice_grouping_key: String?
|
|
3062
|
+
|
|
3063
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
3064
|
+
|
|
3065
|
+
attr_accessor license_type_id: String?
|
|
1612
3066
|
|
|
1613
|
-
|
|
3067
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1614
3068
|
|
|
1615
|
-
|
|
1616
|
-
unit_amount: String,
|
|
1617
|
-
?tier_lower_bound: String?
|
|
1618
|
-
) -> void
|
|
3069
|
+
attr_accessor reference_id: String?
|
|
1619
3070
|
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
3071
|
+
def initialize: (
|
|
3072
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3073
|
+
grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3074
|
+
item_id: String,
|
|
3075
|
+
name: String,
|
|
3076
|
+
?billable_metric_id: String?,
|
|
3077
|
+
?billed_in_advance: bool?,
|
|
3078
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3079
|
+
?conversion_rate: Float?,
|
|
3080
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3081
|
+
?currency: String?,
|
|
3082
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3083
|
+
?external_price_id: String?,
|
|
3084
|
+
?fixed_price_quantity: Float?,
|
|
3085
|
+
?invoice_grouping_key: String?,
|
|
3086
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3087
|
+
?license_type_id: String?,
|
|
3088
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
3089
|
+
?reference_id: String?,
|
|
3090
|
+
?model_type: :grouped_with_min_max_thresholds
|
|
3091
|
+
) -> void
|
|
3092
|
+
|
|
3093
|
+
def to_hash: -> {
|
|
3094
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence,
|
|
3095
|
+
grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
3096
|
+
item_id: String,
|
|
3097
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
3098
|
+
name: String,
|
|
3099
|
+
billable_metric_id: String?,
|
|
3100
|
+
billed_in_advance: bool?,
|
|
3101
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3102
|
+
conversion_rate: Float?,
|
|
3103
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
3104
|
+
currency: String?,
|
|
3105
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
3106
|
+
external_price_id: String?,
|
|
3107
|
+
fixed_price_quantity: Float?,
|
|
3108
|
+
invoice_grouping_key: String?,
|
|
3109
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
3110
|
+
license_type_id: String?,
|
|
3111
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
3112
|
+
reference_id: String?
|
|
3113
|
+
}
|
|
1626
3114
|
|
|
1627
3115
|
type cadence =
|
|
1628
3116
|
:annual
|
|
@@ -1642,22 +3130,54 @@ module Orb
|
|
|
1642
3130
|
ONE_TIME: :one_time
|
|
1643
3131
|
CUSTOM: :custom
|
|
1644
3132
|
|
|
1645
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3133
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence]
|
|
3134
|
+
end
|
|
3135
|
+
|
|
3136
|
+
type grouped_with_min_max_thresholds_config =
|
|
3137
|
+
{
|
|
3138
|
+
grouping_key: String,
|
|
3139
|
+
maximum_charge: String,
|
|
3140
|
+
minimum_charge: String,
|
|
3141
|
+
per_unit_rate: String
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
3145
|
+
attr_accessor grouping_key: String
|
|
3146
|
+
|
|
3147
|
+
attr_accessor maximum_charge: String
|
|
3148
|
+
|
|
3149
|
+
attr_accessor minimum_charge: String
|
|
3150
|
+
|
|
3151
|
+
attr_accessor per_unit_rate: String
|
|
3152
|
+
|
|
3153
|
+
def initialize: (
|
|
3154
|
+
grouping_key: String,
|
|
3155
|
+
maximum_charge: String,
|
|
3156
|
+
minimum_charge: String,
|
|
3157
|
+
per_unit_rate: String
|
|
3158
|
+
) -> void
|
|
3159
|
+
|
|
3160
|
+
def to_hash: -> {
|
|
3161
|
+
grouping_key: String,
|
|
3162
|
+
maximum_charge: String,
|
|
3163
|
+
minimum_charge: String,
|
|
3164
|
+
per_unit_rate: String
|
|
3165
|
+
}
|
|
1646
3166
|
end
|
|
1647
3167
|
end
|
|
1648
3168
|
|
|
1649
|
-
type
|
|
3169
|
+
type cumulative_grouped_allocation =
|
|
1650
3170
|
{
|
|
1651
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3171
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3172
|
+
cumulative_grouped_allocation_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1652
3173
|
item_id: String,
|
|
1653
|
-
model_type: :
|
|
3174
|
+
model_type: :cumulative_grouped_allocation,
|
|
1654
3175
|
name: String,
|
|
1655
|
-
tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1656
3176
|
billable_metric_id: String?,
|
|
1657
3177
|
billed_in_advance: bool?,
|
|
1658
3178
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1659
3179
|
conversion_rate: Float?,
|
|
1660
|
-
conversion_rate_config: Orb::Models::
|
|
3180
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1661
3181
|
currency: String?,
|
|
1662
3182
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1663
3183
|
external_price_id: String?,
|
|
@@ -1669,17 +3189,17 @@ module Orb
|
|
|
1669
3189
|
reference_id: String?
|
|
1670
3190
|
}
|
|
1671
3191
|
|
|
1672
|
-
class
|
|
1673
|
-
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3192
|
+
class CumulativeGroupedAllocation < Orb::Internal::Type::BaseModel
|
|
3193
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence
|
|
3194
|
+
|
|
3195
|
+
attr_accessor cumulative_grouped_allocation_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
1674
3196
|
|
|
1675
3197
|
attr_accessor item_id: String
|
|
1676
3198
|
|
|
1677
|
-
attr_accessor model_type: :
|
|
3199
|
+
attr_accessor model_type: :cumulative_grouped_allocation
|
|
1678
3200
|
|
|
1679
3201
|
attr_accessor name: String
|
|
1680
3202
|
|
|
1681
|
-
attr_accessor tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig
|
|
1682
|
-
|
|
1683
3203
|
attr_accessor billable_metric_id: String?
|
|
1684
3204
|
|
|
1685
3205
|
attr_accessor billed_in_advance: bool?
|
|
@@ -1688,7 +3208,7 @@ module Orb
|
|
|
1688
3208
|
|
|
1689
3209
|
attr_accessor conversion_rate: Float?
|
|
1690
3210
|
|
|
1691
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3211
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1692
3212
|
|
|
1693
3213
|
attr_accessor currency: String?
|
|
1694
3214
|
|
|
@@ -1709,15 +3229,15 @@ module Orb
|
|
|
1709
3229
|
attr_accessor reference_id: String?
|
|
1710
3230
|
|
|
1711
3231
|
def initialize: (
|
|
1712
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3232
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3233
|
+
cumulative_grouped_allocation_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1713
3234
|
item_id: String,
|
|
1714
3235
|
name: String,
|
|
1715
|
-
tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1716
3236
|
?billable_metric_id: String?,
|
|
1717
3237
|
?billed_in_advance: bool?,
|
|
1718
3238
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1719
3239
|
?conversion_rate: Float?,
|
|
1720
|
-
?conversion_rate_config: Orb::Models::
|
|
3240
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1721
3241
|
?currency: String?,
|
|
1722
3242
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1723
3243
|
?external_price_id: String?,
|
|
@@ -1727,20 +3247,20 @@ module Orb
|
|
|
1727
3247
|
?license_type_id: String?,
|
|
1728
3248
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1729
3249
|
?reference_id: String?,
|
|
1730
|
-
?model_type: :
|
|
3250
|
+
?model_type: :cumulative_grouped_allocation
|
|
1731
3251
|
) -> void
|
|
1732
3252
|
|
|
1733
3253
|
def to_hash: -> {
|
|
1734
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3254
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence,
|
|
3255
|
+
cumulative_grouped_allocation_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
1735
3256
|
item_id: String,
|
|
1736
|
-
model_type: :
|
|
3257
|
+
model_type: :cumulative_grouped_allocation,
|
|
1737
3258
|
name: String,
|
|
1738
|
-
tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig,
|
|
1739
3259
|
billable_metric_id: String?,
|
|
1740
3260
|
billed_in_advance: bool?,
|
|
1741
3261
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1742
3262
|
conversion_rate: Float?,
|
|
1743
|
-
conversion_rate_config: Orb::Models::
|
|
3263
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1744
3264
|
currency: String?,
|
|
1745
3265
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1746
3266
|
external_price_id: String?,
|
|
@@ -1770,57 +3290,54 @@ module Orb
|
|
|
1770
3290
|
ONE_TIME: :one_time
|
|
1771
3291
|
CUSTOM: :custom
|
|
1772
3292
|
|
|
1773
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3293
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::cadence]
|
|
1774
3294
|
end
|
|
1775
3295
|
|
|
1776
|
-
type
|
|
3296
|
+
type cumulative_grouped_allocation_config =
|
|
1777
3297
|
{
|
|
1778
|
-
|
|
3298
|
+
cumulative_allocation: String,
|
|
3299
|
+
group_allocation: String,
|
|
3300
|
+
grouping_key: String,
|
|
3301
|
+
unit_amount: String
|
|
1779
3302
|
}
|
|
1780
3303
|
|
|
1781
|
-
class
|
|
1782
|
-
attr_accessor
|
|
3304
|
+
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
3305
|
+
attr_accessor cumulative_allocation: String
|
|
3306
|
+
|
|
3307
|
+
attr_accessor group_allocation: String
|
|
3308
|
+
|
|
3309
|
+
attr_accessor grouping_key: String
|
|
3310
|
+
|
|
3311
|
+
attr_accessor unit_amount: String
|
|
1783
3312
|
|
|
1784
3313
|
def initialize: (
|
|
1785
|
-
|
|
3314
|
+
cumulative_allocation: String,
|
|
3315
|
+
group_allocation: String,
|
|
3316
|
+
grouping_key: String,
|
|
3317
|
+
unit_amount: String
|
|
1786
3318
|
) -> void
|
|
1787
3319
|
|
|
1788
3320
|
def to_hash: -> {
|
|
1789
|
-
|
|
3321
|
+
cumulative_allocation: String,
|
|
3322
|
+
group_allocation: String,
|
|
3323
|
+
grouping_key: String,
|
|
3324
|
+
unit_amount: String
|
|
1790
3325
|
}
|
|
1791
|
-
|
|
1792
|
-
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1793
|
-
|
|
1794
|
-
class Tier < Orb::Internal::Type::BaseModel
|
|
1795
|
-
attr_accessor tier_lower_bound: String
|
|
1796
|
-
|
|
1797
|
-
attr_accessor unit_amount: String
|
|
1798
|
-
|
|
1799
|
-
def initialize: (
|
|
1800
|
-
tier_lower_bound: String,
|
|
1801
|
-
unit_amount: String
|
|
1802
|
-
) -> void
|
|
1803
|
-
|
|
1804
|
-
def to_hash: -> {
|
|
1805
|
-
tier_lower_bound: String,
|
|
1806
|
-
unit_amount: String
|
|
1807
|
-
}
|
|
1808
|
-
end
|
|
1809
3326
|
end
|
|
1810
3327
|
end
|
|
1811
3328
|
|
|
1812
|
-
type
|
|
3329
|
+
type daily_credit_allowance =
|
|
1813
3330
|
{
|
|
1814
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
1815
|
-
|
|
3331
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3332
|
+
daily_credit_allowance_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1816
3333
|
item_id: String,
|
|
1817
|
-
model_type: :
|
|
3334
|
+
model_type: :daily_credit_allowance,
|
|
1818
3335
|
name: String,
|
|
1819
3336
|
billable_metric_id: String?,
|
|
1820
3337
|
billed_in_advance: bool?,
|
|
1821
3338
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1822
3339
|
conversion_rate: Float?,
|
|
1823
|
-
conversion_rate_config: Orb::Models::
|
|
3340
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1824
3341
|
currency: String?,
|
|
1825
3342
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1826
3343
|
external_price_id: String?,
|
|
@@ -1832,14 +3349,14 @@ module Orb
|
|
|
1832
3349
|
reference_id: String?
|
|
1833
3350
|
}
|
|
1834
3351
|
|
|
1835
|
-
class
|
|
1836
|
-
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3352
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
3353
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::cadence
|
|
1837
3354
|
|
|
1838
|
-
attr_accessor
|
|
3355
|
+
attr_accessor daily_credit_allowance_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
1839
3356
|
|
|
1840
3357
|
attr_accessor item_id: String
|
|
1841
3358
|
|
|
1842
|
-
attr_accessor model_type: :
|
|
3359
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
1843
3360
|
|
|
1844
3361
|
attr_accessor name: String
|
|
1845
3362
|
|
|
@@ -1851,7 +3368,7 @@ module Orb
|
|
|
1851
3368
|
|
|
1852
3369
|
attr_accessor conversion_rate: Float?
|
|
1853
3370
|
|
|
1854
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3371
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1855
3372
|
|
|
1856
3373
|
attr_accessor currency: String?
|
|
1857
3374
|
|
|
@@ -1872,15 +3389,15 @@ module Orb
|
|
|
1872
3389
|
attr_accessor reference_id: String?
|
|
1873
3390
|
|
|
1874
3391
|
def initialize: (
|
|
1875
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
1876
|
-
|
|
3392
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3393
|
+
daily_credit_allowance_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1877
3394
|
item_id: String,
|
|
1878
3395
|
name: String,
|
|
1879
3396
|
?billable_metric_id: String?,
|
|
1880
3397
|
?billed_in_advance: bool?,
|
|
1881
3398
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1882
3399
|
?conversion_rate: Float?,
|
|
1883
|
-
?conversion_rate_config: Orb::Models::
|
|
3400
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1884
3401
|
?currency: String?,
|
|
1885
3402
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1886
3403
|
?external_price_id: String?,
|
|
@@ -1890,20 +3407,20 @@ module Orb
|
|
|
1890
3407
|
?license_type_id: String?,
|
|
1891
3408
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1892
3409
|
?reference_id: String?,
|
|
1893
|
-
?model_type: :
|
|
3410
|
+
?model_type: :daily_credit_allowance
|
|
1894
3411
|
) -> void
|
|
1895
3412
|
|
|
1896
3413
|
def to_hash: -> {
|
|
1897
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
1898
|
-
|
|
3414
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::cadence,
|
|
3415
|
+
daily_credit_allowance_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
1899
3416
|
item_id: String,
|
|
1900
|
-
model_type: :
|
|
3417
|
+
model_type: :daily_credit_allowance,
|
|
1901
3418
|
name: String,
|
|
1902
3419
|
billable_metric_id: String?,
|
|
1903
3420
|
billed_in_advance: bool?,
|
|
1904
3421
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1905
3422
|
conversion_rate: Float?,
|
|
1906
|
-
conversion_rate_config: Orb::Models::
|
|
3423
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1907
3424
|
currency: String?,
|
|
1908
3425
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1909
3426
|
external_price_id: String?,
|
|
@@ -1933,54 +3450,78 @@ module Orb
|
|
|
1933
3450
|
ONE_TIME: :one_time
|
|
1934
3451
|
CUSTOM: :custom
|
|
1935
3452
|
|
|
1936
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3453
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::cadence]
|
|
1937
3454
|
end
|
|
1938
3455
|
|
|
1939
|
-
type
|
|
3456
|
+
type daily_credit_allowance_config =
|
|
1940
3457
|
{
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
3458
|
+
daily_allowance: String,
|
|
3459
|
+
default_unit_amount: String,
|
|
3460
|
+
dimensions: ::Array[String?],
|
|
3461
|
+
event_day_property: String,
|
|
3462
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1945
3463
|
}
|
|
1946
3464
|
|
|
1947
|
-
class
|
|
1948
|
-
attr_accessor
|
|
3465
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3466
|
+
attr_accessor daily_allowance: String
|
|
1949
3467
|
|
|
1950
|
-
attr_accessor
|
|
3468
|
+
attr_accessor default_unit_amount: String
|
|
1951
3469
|
|
|
1952
|
-
attr_accessor
|
|
3470
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1953
3471
|
|
|
1954
|
-
attr_accessor
|
|
3472
|
+
attr_accessor event_day_property: String
|
|
3473
|
+
|
|
3474
|
+
attr_accessor matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1955
3475
|
|
|
1956
3476
|
def initialize: (
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
3477
|
+
daily_allowance: String,
|
|
3478
|
+
default_unit_amount: String,
|
|
3479
|
+
dimensions: ::Array[String?],
|
|
3480
|
+
event_day_property: String,
|
|
3481
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1961
3482
|
) -> void
|
|
1962
3483
|
|
|
1963
3484
|
def to_hash: -> {
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
3485
|
+
daily_allowance: String,
|
|
3486
|
+
default_unit_amount: String,
|
|
3487
|
+
dimensions: ::Array[String?],
|
|
3488
|
+
event_day_property: String,
|
|
3489
|
+
matrix_values: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1968
3490
|
}
|
|
3491
|
+
|
|
3492
|
+
type matrix_value =
|
|
3493
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
3494
|
+
|
|
3495
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
3496
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
3497
|
+
|
|
3498
|
+
attr_accessor unit_amount: String
|
|
3499
|
+
|
|
3500
|
+
def initialize: (
|
|
3501
|
+
dimension_values: ::Array[String?],
|
|
3502
|
+
unit_amount: String
|
|
3503
|
+
) -> void
|
|
3504
|
+
|
|
3505
|
+
def to_hash: -> {
|
|
3506
|
+
dimension_values: ::Array[String?],
|
|
3507
|
+
unit_amount: String
|
|
3508
|
+
}
|
|
3509
|
+
end
|
|
1969
3510
|
end
|
|
1970
3511
|
end
|
|
1971
3512
|
|
|
1972
|
-
type
|
|
3513
|
+
type metered_allowance =
|
|
1973
3514
|
{
|
|
1974
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
1975
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3515
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
1976
3516
|
item_id: String,
|
|
1977
|
-
|
|
3517
|
+
metered_allowance_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3518
|
+
model_type: :metered_allowance,
|
|
1978
3519
|
name: String,
|
|
1979
3520
|
billable_metric_id: String?,
|
|
1980
3521
|
billed_in_advance: bool?,
|
|
1981
3522
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1982
3523
|
conversion_rate: Float?,
|
|
1983
|
-
conversion_rate_config: Orb::Models::
|
|
3524
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1984
3525
|
currency: String?,
|
|
1985
3526
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1986
3527
|
external_price_id: String?,
|
|
@@ -1992,14 +3533,14 @@ module Orb
|
|
|
1992
3533
|
reference_id: String?
|
|
1993
3534
|
}
|
|
1994
3535
|
|
|
1995
|
-
class
|
|
1996
|
-
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
1997
|
-
|
|
1998
|
-
attr_accessor cumulative_grouped_allocation_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
3536
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
3537
|
+
attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::cadence
|
|
1999
3538
|
|
|
2000
3539
|
attr_accessor item_id: String
|
|
2001
3540
|
|
|
2002
|
-
attr_accessor
|
|
3541
|
+
attr_accessor metered_allowance_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
3542
|
+
|
|
3543
|
+
attr_accessor model_type: :metered_allowance
|
|
2003
3544
|
|
|
2004
3545
|
attr_accessor name: String
|
|
2005
3546
|
|
|
@@ -2011,7 +3552,7 @@ module Orb
|
|
|
2011
3552
|
|
|
2012
3553
|
attr_accessor conversion_rate: Float?
|
|
2013
3554
|
|
|
2014
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3555
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2015
3556
|
|
|
2016
3557
|
attr_accessor currency: String?
|
|
2017
3558
|
|
|
@@ -2032,15 +3573,15 @@ module Orb
|
|
|
2032
3573
|
attr_accessor reference_id: String?
|
|
2033
3574
|
|
|
2034
3575
|
def initialize: (
|
|
2035
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
2036
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3576
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
2037
3577
|
item_id: String,
|
|
3578
|
+
metered_allowance_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
2038
3579
|
name: String,
|
|
2039
3580
|
?billable_metric_id: String?,
|
|
2040
3581
|
?billed_in_advance: bool?,
|
|
2041
3582
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2042
3583
|
?conversion_rate: Float?,
|
|
2043
|
-
?conversion_rate_config: Orb::Models::
|
|
3584
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2044
3585
|
?currency: String?,
|
|
2045
3586
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2046
3587
|
?external_price_id: String?,
|
|
@@ -2050,20 +3591,20 @@ module Orb
|
|
|
2050
3591
|
?license_type_id: String?,
|
|
2051
3592
|
?metadata: ::Hash[Symbol, String?]?,
|
|
2052
3593
|
?reference_id: String?,
|
|
2053
|
-
?model_type: :
|
|
3594
|
+
?model_type: :metered_allowance
|
|
2054
3595
|
) -> void
|
|
2055
3596
|
|
|
2056
3597
|
def to_hash: -> {
|
|
2057
|
-
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
2058
|
-
cumulative_grouped_allocation_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
3598
|
+
cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::cadence,
|
|
2059
3599
|
item_id: String,
|
|
2060
|
-
|
|
3600
|
+
metered_allowance_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
3601
|
+
model_type: :metered_allowance,
|
|
2061
3602
|
name: String,
|
|
2062
3603
|
billable_metric_id: String?,
|
|
2063
3604
|
billed_in_advance: bool?,
|
|
2064
3605
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2065
3606
|
conversion_rate: Float?,
|
|
2066
|
-
conversion_rate_config: Orb::Models::
|
|
3607
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2067
3608
|
currency: String?,
|
|
2068
3609
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2069
3610
|
external_price_id: String?,
|
|
@@ -2093,38 +3634,52 @@ module Orb
|
|
|
2093
3634
|
ONE_TIME: :one_time
|
|
2094
3635
|
CUSTOM: :custom
|
|
2095
3636
|
|
|
2096
|
-
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::
|
|
3637
|
+
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::MeteredAllowance::cadence]
|
|
2097
3638
|
end
|
|
2098
3639
|
|
|
2099
|
-
type
|
|
3640
|
+
type metered_allowance_config =
|
|
2100
3641
|
{
|
|
2101
|
-
|
|
2102
|
-
|
|
3642
|
+
allowance_grouping_value: String,
|
|
3643
|
+
consumption_grouping_value: String,
|
|
2103
3644
|
grouping_key: String,
|
|
2104
|
-
unit_amount: String
|
|
3645
|
+
unit_amount: String,
|
|
3646
|
+
allowance_display_name: String,
|
|
3647
|
+
consumption_display_name: String
|
|
2105
3648
|
}
|
|
2106
3649
|
|
|
2107
|
-
class
|
|
2108
|
-
attr_accessor
|
|
3650
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
3651
|
+
attr_accessor allowance_grouping_value: String
|
|
2109
3652
|
|
|
2110
|
-
attr_accessor
|
|
3653
|
+
attr_accessor consumption_grouping_value: String
|
|
2111
3654
|
|
|
2112
3655
|
attr_accessor grouping_key: String
|
|
2113
3656
|
|
|
2114
3657
|
attr_accessor unit_amount: String
|
|
2115
3658
|
|
|
3659
|
+
attr_reader allowance_display_name: String?
|
|
3660
|
+
|
|
3661
|
+
def allowance_display_name=: (String) -> String
|
|
3662
|
+
|
|
3663
|
+
attr_reader consumption_display_name: String?
|
|
3664
|
+
|
|
3665
|
+
def consumption_display_name=: (String) -> String
|
|
3666
|
+
|
|
2116
3667
|
def initialize: (
|
|
2117
|
-
|
|
2118
|
-
|
|
3668
|
+
allowance_grouping_value: String,
|
|
3669
|
+
consumption_grouping_value: String,
|
|
2119
3670
|
grouping_key: String,
|
|
2120
|
-
unit_amount: String
|
|
3671
|
+
unit_amount: String,
|
|
3672
|
+
?allowance_display_name: String,
|
|
3673
|
+
?consumption_display_name: String
|
|
2121
3674
|
) -> void
|
|
2122
3675
|
|
|
2123
3676
|
def to_hash: -> {
|
|
2124
|
-
|
|
2125
|
-
|
|
3677
|
+
allowance_grouping_value: String,
|
|
3678
|
+
consumption_grouping_value: String,
|
|
2126
3679
|
grouping_key: String,
|
|
2127
|
-
unit_amount: String
|
|
3680
|
+
unit_amount: String,
|
|
3681
|
+
allowance_display_name: String,
|
|
3682
|
+
consumption_display_name: String
|
|
2128
3683
|
}
|
|
2129
3684
|
end
|
|
2130
3685
|
end
|
|
@@ -2140,7 +3695,7 @@ module Orb
|
|
|
2140
3695
|
billed_in_advance: bool?,
|
|
2141
3696
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2142
3697
|
conversion_rate: Float?,
|
|
2143
|
-
conversion_rate_config: Orb::Models::
|
|
3698
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2144
3699
|
currency: String?,
|
|
2145
3700
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2146
3701
|
external_price_id: String?,
|
|
@@ -2171,7 +3726,7 @@ module Orb
|
|
|
2171
3726
|
|
|
2172
3727
|
attr_accessor conversion_rate: Float?
|
|
2173
3728
|
|
|
2174
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3729
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2175
3730
|
|
|
2176
3731
|
attr_accessor currency: String?
|
|
2177
3732
|
|
|
@@ -2200,7 +3755,7 @@ module Orb
|
|
|
2200
3755
|
?billed_in_advance: bool?,
|
|
2201
3756
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2202
3757
|
?conversion_rate: Float?,
|
|
2203
|
-
?conversion_rate_config: Orb::Models::
|
|
3758
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2204
3759
|
?currency: String?,
|
|
2205
3760
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2206
3761
|
?external_price_id: String?,
|
|
@@ -2223,7 +3778,7 @@ module Orb
|
|
|
2223
3778
|
billed_in_advance: bool?,
|
|
2224
3779
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2225
3780
|
conversion_rate: Float?,
|
|
2226
|
-
conversion_rate_config: Orb::Models::
|
|
3781
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2227
3782
|
currency: String?,
|
|
2228
3783
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2229
3784
|
external_price_id: String?,
|
|
@@ -2256,14 +3811,38 @@ module Orb
|
|
|
2256
3811
|
def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Percent::cadence]
|
|
2257
3812
|
end
|
|
2258
3813
|
|
|
2259
|
-
type percent_config =
|
|
3814
|
+
type percent_config =
|
|
3815
|
+
{
|
|
3816
|
+
percent: Float,
|
|
3817
|
+
maximum_amount: String?,
|
|
3818
|
+
minimum_amount: String?,
|
|
3819
|
+
prorated: bool
|
|
3820
|
+
}
|
|
2260
3821
|
|
|
2261
3822
|
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
2262
3823
|
attr_accessor percent: Float
|
|
2263
3824
|
|
|
2264
|
-
|
|
3825
|
+
attr_accessor maximum_amount: String?
|
|
2265
3826
|
|
|
2266
|
-
|
|
3827
|
+
attr_accessor minimum_amount: String?
|
|
3828
|
+
|
|
3829
|
+
attr_reader prorated: bool?
|
|
3830
|
+
|
|
3831
|
+
def prorated=: (bool) -> bool
|
|
3832
|
+
|
|
3833
|
+
def initialize: (
|
|
3834
|
+
percent: Float,
|
|
3835
|
+
?maximum_amount: String?,
|
|
3836
|
+
?minimum_amount: String?,
|
|
3837
|
+
?prorated: bool
|
|
3838
|
+
) -> void
|
|
3839
|
+
|
|
3840
|
+
def to_hash: -> {
|
|
3841
|
+
percent: Float,
|
|
3842
|
+
maximum_amount: String?,
|
|
3843
|
+
minimum_amount: String?,
|
|
3844
|
+
prorated: bool
|
|
3845
|
+
}
|
|
2267
3846
|
end
|
|
2268
3847
|
end
|
|
2269
3848
|
|
|
@@ -2278,7 +3857,7 @@ module Orb
|
|
|
2278
3857
|
billed_in_advance: bool?,
|
|
2279
3858
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2280
3859
|
conversion_rate: Float?,
|
|
2281
|
-
conversion_rate_config: Orb::Models::
|
|
3860
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2282
3861
|
currency: String?,
|
|
2283
3862
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2284
3863
|
external_price_id: String?,
|
|
@@ -2309,7 +3888,7 @@ module Orb
|
|
|
2309
3888
|
|
|
2310
3889
|
attr_accessor conversion_rate: Float?
|
|
2311
3890
|
|
|
2312
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
3891
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
2313
3892
|
|
|
2314
3893
|
attr_accessor currency: String?
|
|
2315
3894
|
|
|
@@ -2338,7 +3917,7 @@ module Orb
|
|
|
2338
3917
|
?billed_in_advance: bool?,
|
|
2339
3918
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2340
3919
|
?conversion_rate: Float?,
|
|
2341
|
-
?conversion_rate_config: Orb::Models::
|
|
3920
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2342
3921
|
?currency: String?,
|
|
2343
3922
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2344
3923
|
?external_price_id: String?,
|
|
@@ -2361,7 +3940,7 @@ module Orb
|
|
|
2361
3940
|
billed_in_advance: bool?,
|
|
2362
3941
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
2363
3942
|
conversion_rate: Float?,
|
|
2364
|
-
conversion_rate_config: Orb::Models::
|
|
3943
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
2365
3944
|
currency: String?,
|
|
2366
3945
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
2367
3946
|
external_price_id: String?,
|