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
|
@@ -7,6 +7,7 @@ module Orb
|
|
|
7
7
|
prices: ::Array[Orb::PlanCreateParams::Price],
|
|
8
8
|
adjustments: ::Array[Orb::PlanCreateParams::Adjustment]?,
|
|
9
9
|
default_invoice_memo: String?,
|
|
10
|
+
description: String?,
|
|
10
11
|
external_plan_id: String?,
|
|
11
12
|
metadata: ::Hash[Symbol, String?]?,
|
|
12
13
|
net_terms: Integer?,
|
|
@@ -29,6 +30,8 @@ module Orb
|
|
|
29
30
|
|
|
30
31
|
attr_accessor default_invoice_memo: String?
|
|
31
32
|
|
|
33
|
+
attr_accessor description: String?
|
|
34
|
+
|
|
32
35
|
attr_accessor external_plan_id: String?
|
|
33
36
|
|
|
34
37
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
@@ -49,6 +52,7 @@ module Orb
|
|
|
49
52
|
prices: ::Array[Orb::PlanCreateParams::Price],
|
|
50
53
|
?adjustments: ::Array[Orb::PlanCreateParams::Adjustment]?,
|
|
51
54
|
?default_invoice_memo: String?,
|
|
55
|
+
?description: String?,
|
|
52
56
|
?external_plan_id: String?,
|
|
53
57
|
?metadata: ::Hash[Symbol, String?]?,
|
|
54
58
|
?net_terms: Integer?,
|
|
@@ -63,6 +67,7 @@ module Orb
|
|
|
63
67
|
prices: ::Array[Orb::PlanCreateParams::Price],
|
|
64
68
|
adjustments: ::Array[Orb::PlanCreateParams::Adjustment]?,
|
|
65
69
|
default_invoice_memo: String?,
|
|
70
|
+
description: String?,
|
|
66
71
|
external_plan_id: String?,
|
|
67
72
|
metadata: ::Hash[Symbol, String?]?,
|
|
68
73
|
net_terms: Integer?,
|
|
@@ -74,6 +79,7 @@ module Orb
|
|
|
74
79
|
type price =
|
|
75
80
|
{
|
|
76
81
|
allocation_price: Orb::NewAllocationPrice?,
|
|
82
|
+
license_allocation_price: Orb::PlanCreateParams::Price::LicenseAllocationPrice?,
|
|
77
83
|
plan_phase_order: Integer?,
|
|
78
84
|
price: Orb::Models::PlanCreateParams::Price::price?
|
|
79
85
|
}
|
|
@@ -81,22 +87,187 @@ module Orb
|
|
|
81
87
|
class Price < Orb::Internal::Type::BaseModel
|
|
82
88
|
attr_accessor allocation_price: Orb::NewAllocationPrice?
|
|
83
89
|
|
|
90
|
+
attr_accessor license_allocation_price: Orb::PlanCreateParams::Price::LicenseAllocationPrice?
|
|
91
|
+
|
|
84
92
|
attr_accessor plan_phase_order: Integer?
|
|
85
93
|
|
|
86
94
|
attr_accessor price: Orb::Models::PlanCreateParams::Price::price?
|
|
87
95
|
|
|
88
96
|
def initialize: (
|
|
89
97
|
?allocation_price: Orb::NewAllocationPrice?,
|
|
98
|
+
?license_allocation_price: Orb::PlanCreateParams::Price::LicenseAllocationPrice?,
|
|
90
99
|
?plan_phase_order: Integer?,
|
|
91
100
|
?price: Orb::Models::PlanCreateParams::Price::price?
|
|
92
101
|
) -> void
|
|
93
102
|
|
|
94
103
|
def to_hash: -> {
|
|
95
104
|
allocation_price: Orb::NewAllocationPrice?,
|
|
105
|
+
license_allocation_price: Orb::PlanCreateParams::Price::LicenseAllocationPrice?,
|
|
96
106
|
plan_phase_order: Integer?,
|
|
97
107
|
price: Orb::Models::PlanCreateParams::Price::price?
|
|
98
108
|
}
|
|
99
109
|
|
|
110
|
+
type license_allocation_price =
|
|
111
|
+
{
|
|
112
|
+
cadence: Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::cadence,
|
|
113
|
+
item_id: String,
|
|
114
|
+
license_allocations: ::Array[Orb::PlanCreateParams::Price::LicenseAllocationPrice::LicenseAllocation],
|
|
115
|
+
model_type: Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::model_type,
|
|
116
|
+
name: String,
|
|
117
|
+
unit_config: Orb::UnitConfig,
|
|
118
|
+
billable_metric_id: String?,
|
|
119
|
+
billed_in_advance: bool?,
|
|
120
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
121
|
+
conversion_rate: Float?,
|
|
122
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
123
|
+
currency: String?,
|
|
124
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
125
|
+
external_price_id: String?,
|
|
126
|
+
fixed_price_quantity: Float?,
|
|
127
|
+
invoice_grouping_key: String?,
|
|
128
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
129
|
+
license_type_id: String?,
|
|
130
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
131
|
+
reference_id: String?
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
class LicenseAllocationPrice < Orb::Internal::Type::BaseModel
|
|
135
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::cadence
|
|
136
|
+
|
|
137
|
+
attr_accessor item_id: String
|
|
138
|
+
|
|
139
|
+
attr_accessor license_allocations: ::Array[Orb::PlanCreateParams::Price::LicenseAllocationPrice::LicenseAllocation]
|
|
140
|
+
|
|
141
|
+
attr_accessor model_type: Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::model_type
|
|
142
|
+
|
|
143
|
+
attr_accessor name: String
|
|
144
|
+
|
|
145
|
+
attr_accessor unit_config: Orb::UnitConfig
|
|
146
|
+
|
|
147
|
+
attr_accessor billable_metric_id: String?
|
|
148
|
+
|
|
149
|
+
attr_accessor billed_in_advance: bool?
|
|
150
|
+
|
|
151
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
152
|
+
|
|
153
|
+
attr_accessor conversion_rate: Float?
|
|
154
|
+
|
|
155
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
156
|
+
|
|
157
|
+
attr_accessor currency: String?
|
|
158
|
+
|
|
159
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
160
|
+
|
|
161
|
+
attr_accessor external_price_id: String?
|
|
162
|
+
|
|
163
|
+
attr_accessor fixed_price_quantity: Float?
|
|
164
|
+
|
|
165
|
+
attr_accessor invoice_grouping_key: String?
|
|
166
|
+
|
|
167
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
168
|
+
|
|
169
|
+
attr_accessor license_type_id: String?
|
|
170
|
+
|
|
171
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
172
|
+
|
|
173
|
+
attr_accessor reference_id: String?
|
|
174
|
+
|
|
175
|
+
def initialize: (
|
|
176
|
+
cadence: Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::cadence,
|
|
177
|
+
item_id: String,
|
|
178
|
+
license_allocations: ::Array[Orb::PlanCreateParams::Price::LicenseAllocationPrice::LicenseAllocation],
|
|
179
|
+
model_type: Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::model_type,
|
|
180
|
+
name: String,
|
|
181
|
+
unit_config: Orb::UnitConfig,
|
|
182
|
+
?billable_metric_id: String?,
|
|
183
|
+
?billed_in_advance: bool?,
|
|
184
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
185
|
+
?conversion_rate: Float?,
|
|
186
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
187
|
+
?currency: String?,
|
|
188
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
189
|
+
?external_price_id: String?,
|
|
190
|
+
?fixed_price_quantity: Float?,
|
|
191
|
+
?invoice_grouping_key: String?,
|
|
192
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
193
|
+
?license_type_id: String?,
|
|
194
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
195
|
+
?reference_id: String?
|
|
196
|
+
) -> void
|
|
197
|
+
|
|
198
|
+
def to_hash: -> {
|
|
199
|
+
cadence: Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::cadence,
|
|
200
|
+
item_id: String,
|
|
201
|
+
license_allocations: ::Array[Orb::PlanCreateParams::Price::LicenseAllocationPrice::LicenseAllocation],
|
|
202
|
+
model_type: Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::model_type,
|
|
203
|
+
name: String,
|
|
204
|
+
unit_config: Orb::UnitConfig,
|
|
205
|
+
billable_metric_id: String?,
|
|
206
|
+
billed_in_advance: bool?,
|
|
207
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
208
|
+
conversion_rate: Float?,
|
|
209
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
210
|
+
currency: String?,
|
|
211
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
212
|
+
external_price_id: String?,
|
|
213
|
+
fixed_price_quantity: Float?,
|
|
214
|
+
invoice_grouping_key: String?,
|
|
215
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
216
|
+
license_type_id: String?,
|
|
217
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
218
|
+
reference_id: String?
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
type cadence =
|
|
222
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
223
|
+
|
|
224
|
+
module Cadence
|
|
225
|
+
extend Orb::Internal::Type::Enum
|
|
226
|
+
|
|
227
|
+
ANNUAL: :annual
|
|
228
|
+
SEMI_ANNUAL: :semi_annual
|
|
229
|
+
MONTHLY: :monthly
|
|
230
|
+
QUARTERLY: :quarterly
|
|
231
|
+
ONE_TIME: :one_time
|
|
232
|
+
CUSTOM: :custom
|
|
233
|
+
|
|
234
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::cadence]
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
type license_allocation =
|
|
238
|
+
{ amount: String, currency: String, write_off_overage: bool? }
|
|
239
|
+
|
|
240
|
+
class LicenseAllocation < Orb::Internal::Type::BaseModel
|
|
241
|
+
attr_accessor amount: String
|
|
242
|
+
|
|
243
|
+
attr_accessor currency: String
|
|
244
|
+
|
|
245
|
+
attr_accessor write_off_overage: bool?
|
|
246
|
+
|
|
247
|
+
def initialize: (
|
|
248
|
+
amount: String,
|
|
249
|
+
currency: String,
|
|
250
|
+
?write_off_overage: bool?
|
|
251
|
+
) -> void
|
|
252
|
+
|
|
253
|
+
def to_hash: -> {
|
|
254
|
+
amount: String,
|
|
255
|
+
currency: String,
|
|
256
|
+
write_off_overage: bool?
|
|
257
|
+
}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
type model_type = :unit
|
|
261
|
+
|
|
262
|
+
module ModelType
|
|
263
|
+
extend Orb::Internal::Type::Enum
|
|
264
|
+
|
|
265
|
+
UNIT: :unit
|
|
266
|
+
|
|
267
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::LicenseAllocationPrice::model_type]
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
|
|
100
271
|
type price =
|
|
101
272
|
Orb::NewPlanUnitPrice
|
|
102
273
|
| Orb::NewPlanTieredPrice
|
|
@@ -112,6 +283,7 @@ module Orb
|
|
|
112
283
|
| Orb::NewPlanPackageWithAllocationPrice
|
|
113
284
|
| Orb::NewPlanUnitWithPercentPrice
|
|
114
285
|
| Orb::NewPlanMatrixWithAllocationPrice
|
|
286
|
+
| Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts
|
|
115
287
|
| Orb::PlanCreateParams::Price::Price::TieredWithProration
|
|
116
288
|
| Orb::NewPlanUnitWithProrationPrice
|
|
117
289
|
| Orb::NewPlanGroupedAllocationPrice
|
|
@@ -126,6 +298,8 @@ module Orb
|
|
|
126
298
|
| Orb::NewPlanScalableMatrixWithTieredPricingPrice
|
|
127
299
|
| Orb::NewPlanCumulativeGroupedBulkPrice
|
|
128
300
|
| Orb::PlanCreateParams::Price::Price::CumulativeGroupedAllocation
|
|
301
|
+
| Orb::PlanCreateParams::Price::Price::DailyCreditAllowance
|
|
302
|
+
| Orb::PlanCreateParams::Price::Price::MeteredAllowance
|
|
129
303
|
| Orb::NewPlanMinimumCompositePrice
|
|
130
304
|
| Orb::PlanCreateParams::Price::Price::Percent
|
|
131
305
|
| Orb::PlanCreateParams::Price::Price::EventOutput
|
|
@@ -144,7 +318,7 @@ module Orb
|
|
|
144
318
|
billed_in_advance: bool?,
|
|
145
319
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
146
320
|
conversion_rate: Float?,
|
|
147
|
-
conversion_rate_config: Orb::Models::
|
|
321
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
148
322
|
currency: String?,
|
|
149
323
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
150
324
|
external_price_id: String?,
|
|
@@ -175,7 +349,7 @@ module Orb
|
|
|
175
349
|
|
|
176
350
|
attr_accessor conversion_rate: Float?
|
|
177
351
|
|
|
178
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
352
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
179
353
|
|
|
180
354
|
attr_accessor currency: String?
|
|
181
355
|
|
|
@@ -204,7 +378,7 @@ module Orb
|
|
|
204
378
|
?billed_in_advance: bool?,
|
|
205
379
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
206
380
|
?conversion_rate: Float?,
|
|
207
|
-
?conversion_rate_config: Orb::Models::
|
|
381
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
208
382
|
?currency: String?,
|
|
209
383
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
210
384
|
?external_price_id: String?,
|
|
@@ -227,7 +401,7 @@ module Orb
|
|
|
227
401
|
billed_in_advance: bool?,
|
|
228
402
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
229
403
|
conversion_rate: Float?,
|
|
230
|
-
conversion_rate_config: Orb::Models::
|
|
404
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
231
405
|
currency: String?,
|
|
232
406
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
233
407
|
external_price_id: String?,
|
|
@@ -316,6 +490,239 @@ module Orb
|
|
|
316
490
|
end
|
|
317
491
|
end
|
|
318
492
|
|
|
493
|
+
type matrix_with_threshold_discounts =
|
|
494
|
+
{
|
|
495
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::cadence,
|
|
496
|
+
item_id: String,
|
|
497
|
+
matrix_with_threshold_discounts_config: Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
498
|
+
model_type: :matrix_with_threshold_discounts,
|
|
499
|
+
name: String,
|
|
500
|
+
billable_metric_id: String?,
|
|
501
|
+
billed_in_advance: bool?,
|
|
502
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
503
|
+
conversion_rate: Float?,
|
|
504
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
505
|
+
currency: String?,
|
|
506
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
507
|
+
external_price_id: String?,
|
|
508
|
+
fixed_price_quantity: Float?,
|
|
509
|
+
invoice_grouping_key: String?,
|
|
510
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
511
|
+
license_type_id: String?,
|
|
512
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
513
|
+
reference_id: String?
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
517
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::cadence
|
|
518
|
+
|
|
519
|
+
attr_accessor item_id: String
|
|
520
|
+
|
|
521
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
522
|
+
|
|
523
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
524
|
+
|
|
525
|
+
attr_accessor name: String
|
|
526
|
+
|
|
527
|
+
attr_accessor billable_metric_id: String?
|
|
528
|
+
|
|
529
|
+
attr_accessor billed_in_advance: bool?
|
|
530
|
+
|
|
531
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
532
|
+
|
|
533
|
+
attr_accessor conversion_rate: Float?
|
|
534
|
+
|
|
535
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
536
|
+
|
|
537
|
+
attr_accessor currency: String?
|
|
538
|
+
|
|
539
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
540
|
+
|
|
541
|
+
attr_accessor external_price_id: String?
|
|
542
|
+
|
|
543
|
+
attr_accessor fixed_price_quantity: Float?
|
|
544
|
+
|
|
545
|
+
attr_accessor invoice_grouping_key: String?
|
|
546
|
+
|
|
547
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
548
|
+
|
|
549
|
+
attr_accessor license_type_id: String?
|
|
550
|
+
|
|
551
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
552
|
+
|
|
553
|
+
attr_accessor reference_id: String?
|
|
554
|
+
|
|
555
|
+
def initialize: (
|
|
556
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::cadence,
|
|
557
|
+
item_id: String,
|
|
558
|
+
matrix_with_threshold_discounts_config: Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
559
|
+
name: String,
|
|
560
|
+
?billable_metric_id: String?,
|
|
561
|
+
?billed_in_advance: bool?,
|
|
562
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
563
|
+
?conversion_rate: Float?,
|
|
564
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
565
|
+
?currency: String?,
|
|
566
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
567
|
+
?external_price_id: String?,
|
|
568
|
+
?fixed_price_quantity: Float?,
|
|
569
|
+
?invoice_grouping_key: String?,
|
|
570
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
571
|
+
?license_type_id: String?,
|
|
572
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
573
|
+
?reference_id: String?,
|
|
574
|
+
?model_type: :matrix_with_threshold_discounts
|
|
575
|
+
) -> void
|
|
576
|
+
|
|
577
|
+
def to_hash: -> {
|
|
578
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::cadence,
|
|
579
|
+
item_id: String,
|
|
580
|
+
matrix_with_threshold_discounts_config: Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
581
|
+
model_type: :matrix_with_threshold_discounts,
|
|
582
|
+
name: String,
|
|
583
|
+
billable_metric_id: String?,
|
|
584
|
+
billed_in_advance: bool?,
|
|
585
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
586
|
+
conversion_rate: Float?,
|
|
587
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
588
|
+
currency: String?,
|
|
589
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
590
|
+
external_price_id: String?,
|
|
591
|
+
fixed_price_quantity: Float?,
|
|
592
|
+
invoice_grouping_key: String?,
|
|
593
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
594
|
+
license_type_id: String?,
|
|
595
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
596
|
+
reference_id: String?
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
type cadence =
|
|
600
|
+
:annual
|
|
601
|
+
| :semi_annual
|
|
602
|
+
| :monthly
|
|
603
|
+
| :quarterly
|
|
604
|
+
| :one_time
|
|
605
|
+
| :custom
|
|
606
|
+
|
|
607
|
+
module Cadence
|
|
608
|
+
extend Orb::Internal::Type::Enum
|
|
609
|
+
|
|
610
|
+
ANNUAL: :annual
|
|
611
|
+
SEMI_ANNUAL: :semi_annual
|
|
612
|
+
MONTHLY: :monthly
|
|
613
|
+
QUARTERLY: :quarterly
|
|
614
|
+
ONE_TIME: :one_time
|
|
615
|
+
CUSTOM: :custom
|
|
616
|
+
|
|
617
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::cadence]
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
type matrix_with_threshold_discounts_config =
|
|
621
|
+
{
|
|
622
|
+
default_unit_amount: String,
|
|
623
|
+
first_dimension: String,
|
|
624
|
+
matrix_values: ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
625
|
+
second_dimension: String?,
|
|
626
|
+
threshold_discount_groups: ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
630
|
+
attr_accessor default_unit_amount: String
|
|
631
|
+
|
|
632
|
+
attr_accessor first_dimension: String
|
|
633
|
+
|
|
634
|
+
attr_accessor matrix_values: ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
635
|
+
|
|
636
|
+
attr_accessor second_dimension: String?
|
|
637
|
+
|
|
638
|
+
attr_reader threshold_discount_groups: ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
639
|
+
|
|
640
|
+
def threshold_discount_groups=: (
|
|
641
|
+
::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
642
|
+
) -> ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
643
|
+
|
|
644
|
+
def initialize: (
|
|
645
|
+
default_unit_amount: String,
|
|
646
|
+
first_dimension: String,
|
|
647
|
+
matrix_values: ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
648
|
+
?second_dimension: String?,
|
|
649
|
+
?threshold_discount_groups: ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
650
|
+
) -> void
|
|
651
|
+
|
|
652
|
+
def to_hash: -> {
|
|
653
|
+
default_unit_amount: String,
|
|
654
|
+
first_dimension: String,
|
|
655
|
+
matrix_values: ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
656
|
+
second_dimension: String?,
|
|
657
|
+
threshold_discount_groups: ::Array[Orb::PlanCreateParams::Price::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
type matrix_value =
|
|
661
|
+
{
|
|
662
|
+
first_dimension_value: String,
|
|
663
|
+
unit_amount: String,
|
|
664
|
+
second_dimension_value: String?
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
668
|
+
attr_accessor first_dimension_value: String
|
|
669
|
+
|
|
670
|
+
attr_accessor unit_amount: String
|
|
671
|
+
|
|
672
|
+
attr_accessor second_dimension_value: String?
|
|
673
|
+
|
|
674
|
+
def initialize: (
|
|
675
|
+
first_dimension_value: String,
|
|
676
|
+
unit_amount: String,
|
|
677
|
+
?second_dimension_value: String?
|
|
678
|
+
) -> void
|
|
679
|
+
|
|
680
|
+
def to_hash: -> {
|
|
681
|
+
first_dimension_value: String,
|
|
682
|
+
unit_amount: String,
|
|
683
|
+
second_dimension_value: String?
|
|
684
|
+
}
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
type threshold_discount_group =
|
|
688
|
+
{
|
|
689
|
+
above_threshold_discount_percentage: String,
|
|
690
|
+
below_threshold_discount_percentage: String,
|
|
691
|
+
cell_coordinates: String,
|
|
692
|
+
threshold_amount: String,
|
|
693
|
+
description: String?
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
697
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
698
|
+
|
|
699
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
700
|
+
|
|
701
|
+
attr_accessor cell_coordinates: String
|
|
702
|
+
|
|
703
|
+
attr_accessor threshold_amount: String
|
|
704
|
+
|
|
705
|
+
attr_accessor description: String?
|
|
706
|
+
|
|
707
|
+
def initialize: (
|
|
708
|
+
above_threshold_discount_percentage: String,
|
|
709
|
+
below_threshold_discount_percentage: String,
|
|
710
|
+
cell_coordinates: String,
|
|
711
|
+
threshold_amount: String,
|
|
712
|
+
?description: String?
|
|
713
|
+
) -> void
|
|
714
|
+
|
|
715
|
+
def to_hash: -> {
|
|
716
|
+
above_threshold_discount_percentage: String,
|
|
717
|
+
below_threshold_discount_percentage: String,
|
|
718
|
+
cell_coordinates: String,
|
|
719
|
+
threshold_amount: String,
|
|
720
|
+
description: String?
|
|
721
|
+
}
|
|
722
|
+
end
|
|
723
|
+
end
|
|
724
|
+
end
|
|
725
|
+
|
|
319
726
|
type tiered_with_proration =
|
|
320
727
|
{
|
|
321
728
|
cadence: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::cadence,
|
|
@@ -327,7 +734,7 @@ module Orb
|
|
|
327
734
|
billed_in_advance: bool?,
|
|
328
735
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
329
736
|
conversion_rate: Float?,
|
|
330
|
-
conversion_rate_config: Orb::Models::
|
|
737
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
331
738
|
currency: String?,
|
|
332
739
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
333
740
|
external_price_id: String?,
|
|
@@ -358,7 +765,7 @@ module Orb
|
|
|
358
765
|
|
|
359
766
|
attr_accessor conversion_rate: Float?
|
|
360
767
|
|
|
361
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
768
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
362
769
|
|
|
363
770
|
attr_accessor currency: String?
|
|
364
771
|
|
|
@@ -387,7 +794,7 @@ module Orb
|
|
|
387
794
|
?billed_in_advance: bool?,
|
|
388
795
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
389
796
|
?conversion_rate: Float?,
|
|
390
|
-
?conversion_rate_config: Orb::Models::
|
|
797
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
391
798
|
?currency: String?,
|
|
392
799
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
393
800
|
?external_price_id: String?,
|
|
@@ -410,7 +817,7 @@ module Orb
|
|
|
410
817
|
billed_in_advance: bool?,
|
|
411
818
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
412
819
|
conversion_rate: Float?,
|
|
413
|
-
conversion_rate_config: Orb::Models::
|
|
820
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
414
821
|
currency: String?,
|
|
415
822
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
416
823
|
external_price_id: String?,
|
|
@@ -490,7 +897,7 @@ module Orb
|
|
|
490
897
|
billed_in_advance: bool?,
|
|
491
898
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
492
899
|
conversion_rate: Float?,
|
|
493
|
-
conversion_rate_config: Orb::Models::
|
|
900
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
494
901
|
currency: String?,
|
|
495
902
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
496
903
|
external_price_id: String?,
|
|
@@ -521,7 +928,7 @@ module Orb
|
|
|
521
928
|
|
|
522
929
|
attr_accessor conversion_rate: Float?
|
|
523
930
|
|
|
524
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
931
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
525
932
|
|
|
526
933
|
attr_accessor currency: String?
|
|
527
934
|
|
|
@@ -550,7 +957,7 @@ module Orb
|
|
|
550
957
|
?billed_in_advance: bool?,
|
|
551
958
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
552
959
|
?conversion_rate: Float?,
|
|
553
|
-
?conversion_rate_config: Orb::Models::
|
|
960
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
554
961
|
?currency: String?,
|
|
555
962
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
556
963
|
?external_price_id: String?,
|
|
@@ -573,7 +980,7 @@ module Orb
|
|
|
573
980
|
billed_in_advance: bool?,
|
|
574
981
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
575
982
|
conversion_rate: Float?,
|
|
576
|
-
conversion_rate_config: Orb::Models::
|
|
983
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
577
984
|
currency: String?,
|
|
578
985
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
579
986
|
external_price_id: String?,
|
|
@@ -650,7 +1057,7 @@ module Orb
|
|
|
650
1057
|
billed_in_advance: bool?,
|
|
651
1058
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
652
1059
|
conversion_rate: Float?,
|
|
653
|
-
conversion_rate_config: Orb::Models::
|
|
1060
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
654
1061
|
currency: String?,
|
|
655
1062
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
656
1063
|
external_price_id: String?,
|
|
@@ -681,7 +1088,7 @@ module Orb
|
|
|
681
1088
|
|
|
682
1089
|
attr_accessor conversion_rate: Float?
|
|
683
1090
|
|
|
684
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1091
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
685
1092
|
|
|
686
1093
|
attr_accessor currency: String?
|
|
687
1094
|
|
|
@@ -710,7 +1117,7 @@ module Orb
|
|
|
710
1117
|
?billed_in_advance: bool?,
|
|
711
1118
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
712
1119
|
?conversion_rate: Float?,
|
|
713
|
-
?conversion_rate_config: Orb::Models::
|
|
1120
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
714
1121
|
?currency: String?,
|
|
715
1122
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
716
1123
|
?external_price_id: String?,
|
|
@@ -733,7 +1140,7 @@ module Orb
|
|
|
733
1140
|
billed_in_advance: bool?,
|
|
734
1141
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
735
1142
|
conversion_rate: Float?,
|
|
736
|
-
conversion_rate_config: Orb::Models::
|
|
1143
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
737
1144
|
currency: String?,
|
|
738
1145
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
739
1146
|
external_price_id: String?,
|
|
@@ -799,18 +1206,18 @@ module Orb
|
|
|
799
1206
|
end
|
|
800
1207
|
end
|
|
801
1208
|
|
|
802
|
-
type
|
|
1209
|
+
type daily_credit_allowance =
|
|
803
1210
|
{
|
|
804
|
-
cadence: Orb::Models::PlanCreateParams::Price::Price::
|
|
1211
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance::cadence,
|
|
1212
|
+
daily_credit_allowance_config: Orb::PlanCreateParams::Price::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
805
1213
|
item_id: String,
|
|
806
|
-
model_type: :
|
|
1214
|
+
model_type: :daily_credit_allowance,
|
|
807
1215
|
name: String,
|
|
808
|
-
percent_config: Orb::PlanCreateParams::Price::Price::Percent::PercentConfig,
|
|
809
1216
|
billable_metric_id: String?,
|
|
810
1217
|
billed_in_advance: bool?,
|
|
811
1218
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
812
1219
|
conversion_rate: Float?,
|
|
813
|
-
conversion_rate_config: Orb::Models::
|
|
1220
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
814
1221
|
currency: String?,
|
|
815
1222
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
816
1223
|
external_price_id: String?,
|
|
@@ -822,17 +1229,17 @@ module Orb
|
|
|
822
1229
|
reference_id: String?
|
|
823
1230
|
}
|
|
824
1231
|
|
|
825
|
-
class
|
|
826
|
-
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::
|
|
1232
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
1233
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance::cadence
|
|
1234
|
+
|
|
1235
|
+
attr_accessor daily_credit_allowance_config: Orb::PlanCreateParams::Price::Price::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
827
1236
|
|
|
828
1237
|
attr_accessor item_id: String
|
|
829
1238
|
|
|
830
|
-
attr_accessor model_type: :
|
|
1239
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
831
1240
|
|
|
832
1241
|
attr_accessor name: String
|
|
833
1242
|
|
|
834
|
-
attr_accessor percent_config: Orb::PlanCreateParams::Price::Price::Percent::PercentConfig
|
|
835
|
-
|
|
836
1243
|
attr_accessor billable_metric_id: String?
|
|
837
1244
|
|
|
838
1245
|
attr_accessor billed_in_advance: bool?
|
|
@@ -841,7 +1248,7 @@ module Orb
|
|
|
841
1248
|
|
|
842
1249
|
attr_accessor conversion_rate: Float?
|
|
843
1250
|
|
|
844
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1251
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
845
1252
|
|
|
846
1253
|
attr_accessor currency: String?
|
|
847
1254
|
|
|
@@ -862,15 +1269,15 @@ module Orb
|
|
|
862
1269
|
attr_accessor reference_id: String?
|
|
863
1270
|
|
|
864
1271
|
def initialize: (
|
|
865
|
-
cadence: Orb::Models::PlanCreateParams::Price::Price::
|
|
1272
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance::cadence,
|
|
1273
|
+
daily_credit_allowance_config: Orb::PlanCreateParams::Price::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
866
1274
|
item_id: String,
|
|
867
1275
|
name: String,
|
|
868
|
-
percent_config: Orb::PlanCreateParams::Price::Price::Percent::PercentConfig,
|
|
869
1276
|
?billable_metric_id: String?,
|
|
870
1277
|
?billed_in_advance: bool?,
|
|
871
1278
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
872
1279
|
?conversion_rate: Float?,
|
|
873
|
-
?conversion_rate_config: Orb::Models::
|
|
1280
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
874
1281
|
?currency: String?,
|
|
875
1282
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
876
1283
|
?external_price_id: String?,
|
|
@@ -880,20 +1287,20 @@ module Orb
|
|
|
880
1287
|
?license_type_id: String?,
|
|
881
1288
|
?metadata: ::Hash[Symbol, String?]?,
|
|
882
1289
|
?reference_id: String?,
|
|
883
|
-
?model_type: :
|
|
1290
|
+
?model_type: :daily_credit_allowance
|
|
884
1291
|
) -> void
|
|
885
1292
|
|
|
886
1293
|
def to_hash: -> {
|
|
887
|
-
cadence: Orb::Models::PlanCreateParams::Price::Price::
|
|
1294
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance::cadence,
|
|
1295
|
+
daily_credit_allowance_config: Orb::PlanCreateParams::Price::Price::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
888
1296
|
item_id: String,
|
|
889
|
-
model_type: :
|
|
1297
|
+
model_type: :daily_credit_allowance,
|
|
890
1298
|
name: String,
|
|
891
|
-
percent_config: Orb::PlanCreateParams::Price::Price::Percent::PercentConfig,
|
|
892
1299
|
billable_metric_id: String?,
|
|
893
1300
|
billed_in_advance: bool?,
|
|
894
1301
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
895
1302
|
conversion_rate: Float?,
|
|
896
|
-
conversion_rate_config: Orb::Models::
|
|
1303
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
897
1304
|
currency: String?,
|
|
898
1305
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
899
1306
|
external_price_id: String?,
|
|
@@ -923,32 +1330,78 @@ module Orb
|
|
|
923
1330
|
ONE_TIME: :one_time
|
|
924
1331
|
CUSTOM: :custom
|
|
925
1332
|
|
|
926
|
-
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::
|
|
1333
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::DailyCreditAllowance::cadence]
|
|
927
1334
|
end
|
|
928
1335
|
|
|
929
|
-
type
|
|
1336
|
+
type daily_credit_allowance_config =
|
|
1337
|
+
{
|
|
1338
|
+
daily_allowance: String,
|
|
1339
|
+
default_unit_amount: String,
|
|
1340
|
+
dimensions: ::Array[String?],
|
|
1341
|
+
event_day_property: String,
|
|
1342
|
+
matrix_values: ::Array[Orb::PlanCreateParams::Price::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1346
|
+
attr_accessor daily_allowance: String
|
|
930
1347
|
|
|
931
|
-
|
|
932
|
-
|
|
1348
|
+
attr_accessor default_unit_amount: String
|
|
1349
|
+
|
|
1350
|
+
attr_accessor dimensions: ::Array[String?]
|
|
1351
|
+
|
|
1352
|
+
attr_accessor event_day_property: String
|
|
1353
|
+
|
|
1354
|
+
attr_accessor matrix_values: ::Array[Orb::PlanCreateParams::Price::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1355
|
+
|
|
1356
|
+
def initialize: (
|
|
1357
|
+
daily_allowance: String,
|
|
1358
|
+
default_unit_amount: String,
|
|
1359
|
+
dimensions: ::Array[String?],
|
|
1360
|
+
event_day_property: String,
|
|
1361
|
+
matrix_values: ::Array[Orb::PlanCreateParams::Price::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1362
|
+
) -> void
|
|
1363
|
+
|
|
1364
|
+
def to_hash: -> {
|
|
1365
|
+
daily_allowance: String,
|
|
1366
|
+
default_unit_amount: String,
|
|
1367
|
+
dimensions: ::Array[String?],
|
|
1368
|
+
event_day_property: String,
|
|
1369
|
+
matrix_values: ::Array[Orb::PlanCreateParams::Price::Price::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
1370
|
+
}
|
|
933
1371
|
|
|
934
|
-
|
|
1372
|
+
type matrix_value =
|
|
1373
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
935
1374
|
|
|
936
|
-
|
|
1375
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
1376
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
1377
|
+
|
|
1378
|
+
attr_accessor unit_amount: String
|
|
1379
|
+
|
|
1380
|
+
def initialize: (
|
|
1381
|
+
dimension_values: ::Array[String?],
|
|
1382
|
+
unit_amount: String
|
|
1383
|
+
) -> void
|
|
1384
|
+
|
|
1385
|
+
def to_hash: -> {
|
|
1386
|
+
dimension_values: ::Array[String?],
|
|
1387
|
+
unit_amount: String
|
|
1388
|
+
}
|
|
1389
|
+
end
|
|
937
1390
|
end
|
|
938
1391
|
end
|
|
939
1392
|
|
|
940
|
-
type
|
|
1393
|
+
type metered_allowance =
|
|
941
1394
|
{
|
|
942
|
-
cadence: Orb::Models::PlanCreateParams::Price::Price::
|
|
943
|
-
event_output_config: Orb::PlanCreateParams::Price::Price::EventOutput::EventOutputConfig,
|
|
1395
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance::cadence,
|
|
944
1396
|
item_id: String,
|
|
945
|
-
|
|
1397
|
+
metered_allowance_config: Orb::PlanCreateParams::Price::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1398
|
+
model_type: :metered_allowance,
|
|
946
1399
|
name: String,
|
|
947
1400
|
billable_metric_id: String?,
|
|
948
1401
|
billed_in_advance: bool?,
|
|
949
1402
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
950
1403
|
conversion_rate: Float?,
|
|
951
|
-
conversion_rate_config: Orb::Models::
|
|
1404
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
952
1405
|
currency: String?,
|
|
953
1406
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
954
1407
|
external_price_id: String?,
|
|
@@ -960,14 +1413,14 @@ module Orb
|
|
|
960
1413
|
reference_id: String?
|
|
961
1414
|
}
|
|
962
1415
|
|
|
963
|
-
class
|
|
964
|
-
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::
|
|
965
|
-
|
|
966
|
-
attr_accessor event_output_config: Orb::PlanCreateParams::Price::Price::EventOutput::EventOutputConfig
|
|
1416
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
1417
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance::cadence
|
|
967
1418
|
|
|
968
1419
|
attr_accessor item_id: String
|
|
969
1420
|
|
|
970
|
-
attr_accessor
|
|
1421
|
+
attr_accessor metered_allowance_config: Orb::PlanCreateParams::Price::Price::MeteredAllowance::MeteredAllowanceConfig
|
|
1422
|
+
|
|
1423
|
+
attr_accessor model_type: :metered_allowance
|
|
971
1424
|
|
|
972
1425
|
attr_accessor name: String
|
|
973
1426
|
|
|
@@ -979,7 +1432,7 @@ module Orb
|
|
|
979
1432
|
|
|
980
1433
|
attr_accessor conversion_rate: Float?
|
|
981
1434
|
|
|
982
|
-
attr_accessor conversion_rate_config: Orb::Models::
|
|
1435
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
983
1436
|
|
|
984
1437
|
attr_accessor currency: String?
|
|
985
1438
|
|
|
@@ -1000,15 +1453,15 @@ module Orb
|
|
|
1000
1453
|
attr_accessor reference_id: String?
|
|
1001
1454
|
|
|
1002
1455
|
def initialize: (
|
|
1003
|
-
cadence: Orb::Models::PlanCreateParams::Price::Price::
|
|
1004
|
-
event_output_config: Orb::PlanCreateParams::Price::Price::EventOutput::EventOutputConfig,
|
|
1456
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance::cadence,
|
|
1005
1457
|
item_id: String,
|
|
1458
|
+
metered_allowance_config: Orb::PlanCreateParams::Price::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1006
1459
|
name: String,
|
|
1007
1460
|
?billable_metric_id: String?,
|
|
1008
1461
|
?billed_in_advance: bool?,
|
|
1009
1462
|
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1010
1463
|
?conversion_rate: Float?,
|
|
1011
|
-
?conversion_rate_config: Orb::Models::
|
|
1464
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1012
1465
|
?currency: String?,
|
|
1013
1466
|
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1014
1467
|
?external_price_id: String?,
|
|
@@ -1018,20 +1471,20 @@ module Orb
|
|
|
1018
1471
|
?license_type_id: String?,
|
|
1019
1472
|
?metadata: ::Hash[Symbol, String?]?,
|
|
1020
1473
|
?reference_id: String?,
|
|
1021
|
-
?model_type: :
|
|
1474
|
+
?model_type: :metered_allowance
|
|
1022
1475
|
) -> void
|
|
1023
1476
|
|
|
1024
1477
|
def to_hash: -> {
|
|
1025
|
-
cadence: Orb::Models::PlanCreateParams::Price::Price::
|
|
1026
|
-
event_output_config: Orb::PlanCreateParams::Price::Price::EventOutput::EventOutputConfig,
|
|
1478
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance::cadence,
|
|
1027
1479
|
item_id: String,
|
|
1028
|
-
|
|
1480
|
+
metered_allowance_config: Orb::PlanCreateParams::Price::Price::MeteredAllowance::MeteredAllowanceConfig,
|
|
1481
|
+
model_type: :metered_allowance,
|
|
1029
1482
|
name: String,
|
|
1030
1483
|
billable_metric_id: String?,
|
|
1031
1484
|
billed_in_advance: bool?,
|
|
1032
1485
|
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1033
1486
|
conversion_rate: Float?,
|
|
1034
|
-
conversion_rate_config: Orb::Models::
|
|
1487
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1035
1488
|
currency: String?,
|
|
1036
1489
|
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1037
1490
|
external_price_id: String?,
|
|
@@ -1061,27 +1514,363 @@ module Orb
|
|
|
1061
1514
|
ONE_TIME: :one_time
|
|
1062
1515
|
CUSTOM: :custom
|
|
1063
1516
|
|
|
1064
|
-
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::
|
|
1517
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::MeteredAllowance::cadence]
|
|
1065
1518
|
end
|
|
1066
1519
|
|
|
1067
|
-
type
|
|
1520
|
+
type metered_allowance_config =
|
|
1068
1521
|
{
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
grouping_key: String
|
|
1522
|
+
allowance_grouping_value: String,
|
|
1523
|
+
consumption_grouping_value: String,
|
|
1524
|
+
grouping_key: String,
|
|
1525
|
+
unit_amount: String,
|
|
1526
|
+
allowance_display_name: String,
|
|
1527
|
+
consumption_display_name: String
|
|
1072
1528
|
}
|
|
1073
1529
|
|
|
1074
|
-
class
|
|
1075
|
-
attr_accessor
|
|
1530
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1531
|
+
attr_accessor allowance_grouping_value: String
|
|
1076
1532
|
|
|
1077
|
-
attr_accessor
|
|
1533
|
+
attr_accessor consumption_grouping_value: String
|
|
1078
1534
|
|
|
1079
|
-
attr_accessor grouping_key: String
|
|
1535
|
+
attr_accessor grouping_key: String
|
|
1536
|
+
|
|
1537
|
+
attr_accessor unit_amount: String
|
|
1538
|
+
|
|
1539
|
+
attr_reader allowance_display_name: String?
|
|
1540
|
+
|
|
1541
|
+
def allowance_display_name=: (String) -> String
|
|
1542
|
+
|
|
1543
|
+
attr_reader consumption_display_name: String?
|
|
1544
|
+
|
|
1545
|
+
def consumption_display_name=: (String) -> String
|
|
1080
1546
|
|
|
1081
1547
|
def initialize: (
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1548
|
+
allowance_grouping_value: String,
|
|
1549
|
+
consumption_grouping_value: String,
|
|
1550
|
+
grouping_key: String,
|
|
1551
|
+
unit_amount: String,
|
|
1552
|
+
?allowance_display_name: String,
|
|
1553
|
+
?consumption_display_name: String
|
|
1554
|
+
) -> void
|
|
1555
|
+
|
|
1556
|
+
def to_hash: -> {
|
|
1557
|
+
allowance_grouping_value: String,
|
|
1558
|
+
consumption_grouping_value: String,
|
|
1559
|
+
grouping_key: String,
|
|
1560
|
+
unit_amount: String,
|
|
1561
|
+
allowance_display_name: String,
|
|
1562
|
+
consumption_display_name: String
|
|
1563
|
+
}
|
|
1564
|
+
end
|
|
1565
|
+
end
|
|
1566
|
+
|
|
1567
|
+
type percent =
|
|
1568
|
+
{
|
|
1569
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::Percent::cadence,
|
|
1570
|
+
item_id: String,
|
|
1571
|
+
model_type: :percent,
|
|
1572
|
+
name: String,
|
|
1573
|
+
percent_config: Orb::PlanCreateParams::Price::Price::Percent::PercentConfig,
|
|
1574
|
+
billable_metric_id: String?,
|
|
1575
|
+
billed_in_advance: bool?,
|
|
1576
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1577
|
+
conversion_rate: Float?,
|
|
1578
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1579
|
+
currency: String?,
|
|
1580
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1581
|
+
external_price_id: String?,
|
|
1582
|
+
fixed_price_quantity: Float?,
|
|
1583
|
+
invoice_grouping_key: String?,
|
|
1584
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1585
|
+
license_type_id: String?,
|
|
1586
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1587
|
+
reference_id: String?
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
class Percent < Orb::Internal::Type::BaseModel
|
|
1591
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::Percent::cadence
|
|
1592
|
+
|
|
1593
|
+
attr_accessor item_id: String
|
|
1594
|
+
|
|
1595
|
+
attr_accessor model_type: :percent
|
|
1596
|
+
|
|
1597
|
+
attr_accessor name: String
|
|
1598
|
+
|
|
1599
|
+
attr_accessor percent_config: Orb::PlanCreateParams::Price::Price::Percent::PercentConfig
|
|
1600
|
+
|
|
1601
|
+
attr_accessor billable_metric_id: String?
|
|
1602
|
+
|
|
1603
|
+
attr_accessor billed_in_advance: bool?
|
|
1604
|
+
|
|
1605
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1606
|
+
|
|
1607
|
+
attr_accessor conversion_rate: Float?
|
|
1608
|
+
|
|
1609
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1610
|
+
|
|
1611
|
+
attr_accessor currency: String?
|
|
1612
|
+
|
|
1613
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1614
|
+
|
|
1615
|
+
attr_accessor external_price_id: String?
|
|
1616
|
+
|
|
1617
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1618
|
+
|
|
1619
|
+
attr_accessor invoice_grouping_key: String?
|
|
1620
|
+
|
|
1621
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1622
|
+
|
|
1623
|
+
attr_accessor license_type_id: String?
|
|
1624
|
+
|
|
1625
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1626
|
+
|
|
1627
|
+
attr_accessor reference_id: String?
|
|
1628
|
+
|
|
1629
|
+
def initialize: (
|
|
1630
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::Percent::cadence,
|
|
1631
|
+
item_id: String,
|
|
1632
|
+
name: String,
|
|
1633
|
+
percent_config: Orb::PlanCreateParams::Price::Price::Percent::PercentConfig,
|
|
1634
|
+
?billable_metric_id: String?,
|
|
1635
|
+
?billed_in_advance: bool?,
|
|
1636
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1637
|
+
?conversion_rate: Float?,
|
|
1638
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1639
|
+
?currency: String?,
|
|
1640
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1641
|
+
?external_price_id: String?,
|
|
1642
|
+
?fixed_price_quantity: Float?,
|
|
1643
|
+
?invoice_grouping_key: String?,
|
|
1644
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1645
|
+
?license_type_id: String?,
|
|
1646
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1647
|
+
?reference_id: String?,
|
|
1648
|
+
?model_type: :percent
|
|
1649
|
+
) -> void
|
|
1650
|
+
|
|
1651
|
+
def to_hash: -> {
|
|
1652
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::Percent::cadence,
|
|
1653
|
+
item_id: String,
|
|
1654
|
+
model_type: :percent,
|
|
1655
|
+
name: String,
|
|
1656
|
+
percent_config: Orb::PlanCreateParams::Price::Price::Percent::PercentConfig,
|
|
1657
|
+
billable_metric_id: String?,
|
|
1658
|
+
billed_in_advance: bool?,
|
|
1659
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1660
|
+
conversion_rate: Float?,
|
|
1661
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1662
|
+
currency: String?,
|
|
1663
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1664
|
+
external_price_id: String?,
|
|
1665
|
+
fixed_price_quantity: Float?,
|
|
1666
|
+
invoice_grouping_key: String?,
|
|
1667
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1668
|
+
license_type_id: String?,
|
|
1669
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1670
|
+
reference_id: String?
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
type cadence =
|
|
1674
|
+
:annual
|
|
1675
|
+
| :semi_annual
|
|
1676
|
+
| :monthly
|
|
1677
|
+
| :quarterly
|
|
1678
|
+
| :one_time
|
|
1679
|
+
| :custom
|
|
1680
|
+
|
|
1681
|
+
module Cadence
|
|
1682
|
+
extend Orb::Internal::Type::Enum
|
|
1683
|
+
|
|
1684
|
+
ANNUAL: :annual
|
|
1685
|
+
SEMI_ANNUAL: :semi_annual
|
|
1686
|
+
MONTHLY: :monthly
|
|
1687
|
+
QUARTERLY: :quarterly
|
|
1688
|
+
ONE_TIME: :one_time
|
|
1689
|
+
CUSTOM: :custom
|
|
1690
|
+
|
|
1691
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::Percent::cadence]
|
|
1692
|
+
end
|
|
1693
|
+
|
|
1694
|
+
type percent_config =
|
|
1695
|
+
{
|
|
1696
|
+
percent: Float,
|
|
1697
|
+
maximum_amount: String?,
|
|
1698
|
+
minimum_amount: String?,
|
|
1699
|
+
prorated: bool
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
1703
|
+
attr_accessor percent: Float
|
|
1704
|
+
|
|
1705
|
+
attr_accessor maximum_amount: String?
|
|
1706
|
+
|
|
1707
|
+
attr_accessor minimum_amount: String?
|
|
1708
|
+
|
|
1709
|
+
attr_reader prorated: bool?
|
|
1710
|
+
|
|
1711
|
+
def prorated=: (bool) -> bool
|
|
1712
|
+
|
|
1713
|
+
def initialize: (
|
|
1714
|
+
percent: Float,
|
|
1715
|
+
?maximum_amount: String?,
|
|
1716
|
+
?minimum_amount: String?,
|
|
1717
|
+
?prorated: bool
|
|
1718
|
+
) -> void
|
|
1719
|
+
|
|
1720
|
+
def to_hash: -> {
|
|
1721
|
+
percent: Float,
|
|
1722
|
+
maximum_amount: String?,
|
|
1723
|
+
minimum_amount: String?,
|
|
1724
|
+
prorated: bool
|
|
1725
|
+
}
|
|
1726
|
+
end
|
|
1727
|
+
end
|
|
1728
|
+
|
|
1729
|
+
type event_output =
|
|
1730
|
+
{
|
|
1731
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::EventOutput::cadence,
|
|
1732
|
+
event_output_config: Orb::PlanCreateParams::Price::Price::EventOutput::EventOutputConfig,
|
|
1733
|
+
item_id: String,
|
|
1734
|
+
model_type: :event_output,
|
|
1735
|
+
name: String,
|
|
1736
|
+
billable_metric_id: String?,
|
|
1737
|
+
billed_in_advance: bool?,
|
|
1738
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1739
|
+
conversion_rate: Float?,
|
|
1740
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1741
|
+
currency: String?,
|
|
1742
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1743
|
+
external_price_id: String?,
|
|
1744
|
+
fixed_price_quantity: Float?,
|
|
1745
|
+
invoice_grouping_key: String?,
|
|
1746
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1747
|
+
license_type_id: String?,
|
|
1748
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1749
|
+
reference_id: String?
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
class EventOutput < Orb::Internal::Type::BaseModel
|
|
1753
|
+
attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::EventOutput::cadence
|
|
1754
|
+
|
|
1755
|
+
attr_accessor event_output_config: Orb::PlanCreateParams::Price::Price::EventOutput::EventOutputConfig
|
|
1756
|
+
|
|
1757
|
+
attr_accessor item_id: String
|
|
1758
|
+
|
|
1759
|
+
attr_accessor model_type: :event_output
|
|
1760
|
+
|
|
1761
|
+
attr_accessor name: String
|
|
1762
|
+
|
|
1763
|
+
attr_accessor billable_metric_id: String?
|
|
1764
|
+
|
|
1765
|
+
attr_accessor billed_in_advance: bool?
|
|
1766
|
+
|
|
1767
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1768
|
+
|
|
1769
|
+
attr_accessor conversion_rate: Float?
|
|
1770
|
+
|
|
1771
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1772
|
+
|
|
1773
|
+
attr_accessor currency: String?
|
|
1774
|
+
|
|
1775
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1776
|
+
|
|
1777
|
+
attr_accessor external_price_id: String?
|
|
1778
|
+
|
|
1779
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1780
|
+
|
|
1781
|
+
attr_accessor invoice_grouping_key: String?
|
|
1782
|
+
|
|
1783
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1784
|
+
|
|
1785
|
+
attr_accessor license_type_id: String?
|
|
1786
|
+
|
|
1787
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1788
|
+
|
|
1789
|
+
attr_accessor reference_id: String?
|
|
1790
|
+
|
|
1791
|
+
def initialize: (
|
|
1792
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::EventOutput::cadence,
|
|
1793
|
+
event_output_config: Orb::PlanCreateParams::Price::Price::EventOutput::EventOutputConfig,
|
|
1794
|
+
item_id: String,
|
|
1795
|
+
name: String,
|
|
1796
|
+
?billable_metric_id: String?,
|
|
1797
|
+
?billed_in_advance: bool?,
|
|
1798
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1799
|
+
?conversion_rate: Float?,
|
|
1800
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1801
|
+
?currency: String?,
|
|
1802
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1803
|
+
?external_price_id: String?,
|
|
1804
|
+
?fixed_price_quantity: Float?,
|
|
1805
|
+
?invoice_grouping_key: String?,
|
|
1806
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1807
|
+
?license_type_id: String?,
|
|
1808
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1809
|
+
?reference_id: String?,
|
|
1810
|
+
?model_type: :event_output
|
|
1811
|
+
) -> void
|
|
1812
|
+
|
|
1813
|
+
def to_hash: -> {
|
|
1814
|
+
cadence: Orb::Models::PlanCreateParams::Price::Price::EventOutput::cadence,
|
|
1815
|
+
event_output_config: Orb::PlanCreateParams::Price::Price::EventOutput::EventOutputConfig,
|
|
1816
|
+
item_id: String,
|
|
1817
|
+
model_type: :event_output,
|
|
1818
|
+
name: String,
|
|
1819
|
+
billable_metric_id: String?,
|
|
1820
|
+
billed_in_advance: bool?,
|
|
1821
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1822
|
+
conversion_rate: Float?,
|
|
1823
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1824
|
+
currency: String?,
|
|
1825
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1826
|
+
external_price_id: String?,
|
|
1827
|
+
fixed_price_quantity: Float?,
|
|
1828
|
+
invoice_grouping_key: String?,
|
|
1829
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1830
|
+
license_type_id: String?,
|
|
1831
|
+
metadata: ::Hash[Symbol, String?]?,
|
|
1832
|
+
reference_id: String?
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
type cadence =
|
|
1836
|
+
:annual
|
|
1837
|
+
| :semi_annual
|
|
1838
|
+
| :monthly
|
|
1839
|
+
| :quarterly
|
|
1840
|
+
| :one_time
|
|
1841
|
+
| :custom
|
|
1842
|
+
|
|
1843
|
+
module Cadence
|
|
1844
|
+
extend Orb::Internal::Type::Enum
|
|
1845
|
+
|
|
1846
|
+
ANNUAL: :annual
|
|
1847
|
+
SEMI_ANNUAL: :semi_annual
|
|
1848
|
+
MONTHLY: :monthly
|
|
1849
|
+
QUARTERLY: :quarterly
|
|
1850
|
+
ONE_TIME: :one_time
|
|
1851
|
+
CUSTOM: :custom
|
|
1852
|
+
|
|
1853
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::EventOutput::cadence]
|
|
1854
|
+
end
|
|
1855
|
+
|
|
1856
|
+
type event_output_config =
|
|
1857
|
+
{
|
|
1858
|
+
unit_rating_key: String,
|
|
1859
|
+
default_unit_rate: String?,
|
|
1860
|
+
grouping_key: String?
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
1864
|
+
attr_accessor unit_rating_key: String
|
|
1865
|
+
|
|
1866
|
+
attr_accessor default_unit_rate: String?
|
|
1867
|
+
|
|
1868
|
+
attr_accessor grouping_key: String?
|
|
1869
|
+
|
|
1870
|
+
def initialize: (
|
|
1871
|
+
unit_rating_key: String,
|
|
1872
|
+
?default_unit_rate: String?,
|
|
1873
|
+
?grouping_key: String?
|
|
1085
1874
|
) -> void
|
|
1086
1875
|
|
|
1087
1876
|
def to_hash: -> {
|
|
@@ -1123,10 +1912,179 @@ module Orb
|
|
|
1123
1912
|
| Orb::NewAmountDiscount
|
|
1124
1913
|
| Orb::NewMinimum
|
|
1125
1914
|
| Orb::NewMaximum
|
|
1915
|
+
| Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount
|
|
1126
1916
|
|
|
1127
1917
|
module Adjustment
|
|
1128
1918
|
extend Orb::Internal::Type::Union
|
|
1129
1919
|
|
|
1920
|
+
type tiered_percentage_discount =
|
|
1921
|
+
{
|
|
1922
|
+
adjustment_type: :tiered_percentage_discount,
|
|
1923
|
+
tiers: ::Array[Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
1924
|
+
applies_to_all: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
1925
|
+
applies_to_item_ids: ::Array[String]?,
|
|
1926
|
+
applies_to_price_ids: ::Array[String]?,
|
|
1927
|
+
currency: String?,
|
|
1928
|
+
filters: ::Array[Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
1929
|
+
is_invoice_level: bool,
|
|
1930
|
+
price_type: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
class TieredPercentageDiscount < Orb::Internal::Type::BaseModel
|
|
1934
|
+
attr_accessor adjustment_type: :tiered_percentage_discount
|
|
1935
|
+
|
|
1936
|
+
attr_accessor tiers: ::Array[Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Tier]
|
|
1937
|
+
|
|
1938
|
+
attr_accessor applies_to_all: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::applies_to_all?
|
|
1939
|
+
|
|
1940
|
+
attr_accessor applies_to_item_ids: ::Array[String]?
|
|
1941
|
+
|
|
1942
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
|
1943
|
+
|
|
1944
|
+
attr_accessor currency: String?
|
|
1945
|
+
|
|
1946
|
+
attr_accessor filters: ::Array[Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter]?
|
|
1947
|
+
|
|
1948
|
+
attr_reader is_invoice_level: bool?
|
|
1949
|
+
|
|
1950
|
+
def is_invoice_level=: (bool) -> bool
|
|
1951
|
+
|
|
1952
|
+
attr_accessor price_type: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
1953
|
+
|
|
1954
|
+
def initialize: (
|
|
1955
|
+
tiers: ::Array[Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
1956
|
+
?applies_to_all: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
1957
|
+
?applies_to_item_ids: ::Array[String]?,
|
|
1958
|
+
?applies_to_price_ids: ::Array[String]?,
|
|
1959
|
+
?currency: String?,
|
|
1960
|
+
?filters: ::Array[Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
1961
|
+
?is_invoice_level: bool,
|
|
1962
|
+
?price_type: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::price_type?,
|
|
1963
|
+
?adjustment_type: :tiered_percentage_discount
|
|
1964
|
+
) -> void
|
|
1965
|
+
|
|
1966
|
+
def to_hash: -> {
|
|
1967
|
+
adjustment_type: :tiered_percentage_discount,
|
|
1968
|
+
tiers: ::Array[Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Tier],
|
|
1969
|
+
applies_to_all: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::applies_to_all?,
|
|
1970
|
+
applies_to_item_ids: ::Array[String]?,
|
|
1971
|
+
applies_to_price_ids: ::Array[String]?,
|
|
1972
|
+
currency: String?,
|
|
1973
|
+
filters: ::Array[Orb::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter]?,
|
|
1974
|
+
is_invoice_level: bool,
|
|
1975
|
+
price_type: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::price_type?
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
type tier =
|
|
1979
|
+
{ lower_bound: Float, percentage: Float, upper_bound: Float? }
|
|
1980
|
+
|
|
1981
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
1982
|
+
attr_accessor lower_bound: Float
|
|
1983
|
+
|
|
1984
|
+
attr_accessor percentage: Float
|
|
1985
|
+
|
|
1986
|
+
attr_accessor upper_bound: Float?
|
|
1987
|
+
|
|
1988
|
+
def initialize: (
|
|
1989
|
+
lower_bound: Float,
|
|
1990
|
+
percentage: Float,
|
|
1991
|
+
?upper_bound: Float?
|
|
1992
|
+
) -> void
|
|
1993
|
+
|
|
1994
|
+
def to_hash: -> {
|
|
1995
|
+
lower_bound: Float,
|
|
1996
|
+
percentage: Float,
|
|
1997
|
+
upper_bound: Float?
|
|
1998
|
+
}
|
|
1999
|
+
end
|
|
2000
|
+
|
|
2001
|
+
type applies_to_all = true
|
|
2002
|
+
|
|
2003
|
+
module AppliesToAll
|
|
2004
|
+
extend Orb::Internal::Type::Enum
|
|
2005
|
+
|
|
2006
|
+
TRUE: true
|
|
2007
|
+
|
|
2008
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::applies_to_all]
|
|
2009
|
+
end
|
|
2010
|
+
|
|
2011
|
+
type filter =
|
|
2012
|
+
{
|
|
2013
|
+
field: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2014
|
+
operator: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2015
|
+
values: ::Array[String]
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
2019
|
+
attr_accessor field: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::field
|
|
2020
|
+
|
|
2021
|
+
attr_accessor operator: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::operator
|
|
2022
|
+
|
|
2023
|
+
attr_accessor values: ::Array[String]
|
|
2024
|
+
|
|
2025
|
+
def initialize: (
|
|
2026
|
+
field: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2027
|
+
operator: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2028
|
+
values: ::Array[String]
|
|
2029
|
+
) -> void
|
|
2030
|
+
|
|
2031
|
+
def to_hash: -> {
|
|
2032
|
+
field: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::field,
|
|
2033
|
+
operator: Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::operator,
|
|
2034
|
+
values: ::Array[String]
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
type field =
|
|
2038
|
+
:price_id
|
|
2039
|
+
| :item_id
|
|
2040
|
+
| :price_type
|
|
2041
|
+
| :currency
|
|
2042
|
+
| :pricing_unit_id
|
|
2043
|
+
|
|
2044
|
+
module Field
|
|
2045
|
+
extend Orb::Internal::Type::Enum
|
|
2046
|
+
|
|
2047
|
+
PRICE_ID: :price_id
|
|
2048
|
+
ITEM_ID: :item_id
|
|
2049
|
+
PRICE_TYPE: :price_type
|
|
2050
|
+
CURRENCY: :currency
|
|
2051
|
+
PRICING_UNIT_ID: :pricing_unit_id
|
|
2052
|
+
|
|
2053
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::field]
|
|
2054
|
+
end
|
|
2055
|
+
|
|
2056
|
+
type operator = :includes | :excludes
|
|
2057
|
+
|
|
2058
|
+
module Operator
|
|
2059
|
+
extend Orb::Internal::Type::Enum
|
|
2060
|
+
|
|
2061
|
+
INCLUDES: :includes
|
|
2062
|
+
EXCLUDES: :excludes
|
|
2063
|
+
|
|
2064
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::Filter::operator]
|
|
2065
|
+
end
|
|
2066
|
+
end
|
|
2067
|
+
|
|
2068
|
+
type price_type =
|
|
2069
|
+
:usage
|
|
2070
|
+
| :fixed_in_advance
|
|
2071
|
+
| :fixed_in_arrears
|
|
2072
|
+
| :fixed
|
|
2073
|
+
| :in_arrears
|
|
2074
|
+
|
|
2075
|
+
module PriceType
|
|
2076
|
+
extend Orb::Internal::Type::Enum
|
|
2077
|
+
|
|
2078
|
+
USAGE: :usage
|
|
2079
|
+
FIXED_IN_ADVANCE: :fixed_in_advance
|
|
2080
|
+
FIXED_IN_ARREARS: :fixed_in_arrears
|
|
2081
|
+
FIXED: :fixed
|
|
2082
|
+
IN_ARREARS: :in_arrears
|
|
2083
|
+
|
|
2084
|
+
def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Adjustment::Adjustment::TieredPercentageDiscount::price_type]
|
|
2085
|
+
end
|
|
2086
|
+
end
|
|
2087
|
+
|
|
1130
2088
|
def self?.variants: -> ::Array[Orb::Models::PlanCreateParams::Adjustment::adjustment]
|
|
1131
2089
|
end
|
|
1132
2090
|
end
|