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
|
@@ -1,1200 +1,1393 @@
|
|
|
1
1
|
module Orb
|
|
2
2
|
module Models
|
|
3
3
|
type price_create_params =
|
|
4
|
-
{
|
|
5
|
-
cadence: Orb::Models::PriceCreateParams::cadence,
|
|
6
|
-
currency: String,
|
|
7
|
-
item_id: String,
|
|
8
|
-
model_type: Orb::Models::PriceCreateParams::model_type,
|
|
9
|
-
name: String,
|
|
10
|
-
unit_config: Orb::UnitConfig,
|
|
11
|
-
billable_metric_id: String?,
|
|
12
|
-
billed_in_advance: bool?,
|
|
13
|
-
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
14
|
-
conversion_rate: Float?,
|
|
15
|
-
conversion_rate_config: Orb::Models::PriceCreateParams::conversion_rate_config?,
|
|
16
|
-
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
17
|
-
external_price_id: String?,
|
|
18
|
-
fixed_price_quantity: Float?,
|
|
19
|
-
invoice_grouping_key: String?,
|
|
20
|
-
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
21
|
-
license_type_id: String?,
|
|
22
|
-
metadata: ::Hash[Symbol, String?]?,
|
|
23
|
-
tiered_config: Orb::TieredConfig,
|
|
24
|
-
bulk_config: Orb::BulkConfig,
|
|
25
|
-
bulk_with_filters_config: Orb::PriceCreateParams::BulkWithFiltersConfig,
|
|
26
|
-
package_config: Orb::PackageConfig,
|
|
27
|
-
matrix_config: Orb::MatrixConfig,
|
|
28
|
-
threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig,
|
|
29
|
-
tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig,
|
|
30
|
-
tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig,
|
|
31
|
-
grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig,
|
|
32
|
-
tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig,
|
|
33
|
-
package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig,
|
|
34
|
-
unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig,
|
|
35
|
-
matrix_with_allocation_config: Orb::MatrixWithAllocationConfig,
|
|
36
|
-
tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig,
|
|
37
|
-
unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig,
|
|
38
|
-
grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig,
|
|
39
|
-
bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig,
|
|
40
|
-
grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig,
|
|
41
|
-
grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig,
|
|
42
|
-
grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig,
|
|
43
|
-
matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig,
|
|
44
|
-
grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig,
|
|
45
|
-
max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig,
|
|
46
|
-
scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig,
|
|
47
|
-
scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig,
|
|
48
|
-
cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig,
|
|
49
|
-
cumulative_grouped_allocation_config: Orb::PriceCreateParams::CumulativeGroupedAllocationConfig,
|
|
50
|
-
minimum_composite_config: Orb::PriceCreateParams::MinimumCompositeConfig,
|
|
51
|
-
percent_config: Orb::PriceCreateParams::PercentConfig,
|
|
52
|
-
event_output_config: Orb::PriceCreateParams::EventOutputConfig
|
|
53
|
-
}
|
|
4
|
+
{ body: Orb::Models::PriceCreateParams::body }
|
|
54
5
|
& Orb::Internal::Type::request_parameters
|
|
55
6
|
|
|
56
7
|
class PriceCreateParams < Orb::Internal::Type::BaseModel
|
|
57
8
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
58
9
|
include Orb::Internal::Type::RequestParameters
|
|
59
10
|
|
|
60
|
-
attr_accessor
|
|
61
|
-
|
|
62
|
-
attr_accessor currency: String
|
|
63
|
-
|
|
64
|
-
attr_accessor item_id: String
|
|
65
|
-
|
|
66
|
-
attr_accessor model_type: Orb::Models::PriceCreateParams::model_type
|
|
67
|
-
|
|
68
|
-
attr_accessor name: String
|
|
69
|
-
|
|
70
|
-
attr_accessor unit_config: Orb::UnitConfig
|
|
71
|
-
|
|
72
|
-
attr_accessor billable_metric_id: String?
|
|
73
|
-
|
|
74
|
-
attr_accessor billed_in_advance: bool?
|
|
75
|
-
|
|
76
|
-
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
77
|
-
|
|
78
|
-
attr_accessor conversion_rate: Float?
|
|
79
|
-
|
|
80
|
-
attr_accessor conversion_rate_config: Orb::Models::PriceCreateParams::conversion_rate_config?
|
|
81
|
-
|
|
82
|
-
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
83
|
-
|
|
84
|
-
attr_accessor external_price_id: String?
|
|
85
|
-
|
|
86
|
-
attr_accessor fixed_price_quantity: Float?
|
|
87
|
-
|
|
88
|
-
attr_accessor invoice_grouping_key: String?
|
|
89
|
-
|
|
90
|
-
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
91
|
-
|
|
92
|
-
attr_accessor license_type_id: String?
|
|
93
|
-
|
|
94
|
-
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
95
|
-
|
|
96
|
-
attr_accessor tiered_config: Orb::TieredConfig
|
|
97
|
-
|
|
98
|
-
attr_accessor bulk_config: Orb::BulkConfig
|
|
99
|
-
|
|
100
|
-
attr_accessor bulk_with_filters_config: Orb::PriceCreateParams::BulkWithFiltersConfig
|
|
101
|
-
|
|
102
|
-
attr_accessor package_config: Orb::PackageConfig
|
|
103
|
-
|
|
104
|
-
attr_accessor matrix_config: Orb::MatrixConfig
|
|
105
|
-
|
|
106
|
-
attr_accessor threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig
|
|
107
|
-
|
|
108
|
-
attr_accessor tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig
|
|
109
|
-
|
|
110
|
-
attr_accessor tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig
|
|
111
|
-
|
|
112
|
-
attr_accessor grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig
|
|
113
|
-
|
|
114
|
-
attr_accessor tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig
|
|
115
|
-
|
|
116
|
-
attr_accessor package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig
|
|
117
|
-
|
|
118
|
-
attr_accessor unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig
|
|
119
|
-
|
|
120
|
-
attr_accessor matrix_with_allocation_config: Orb::MatrixWithAllocationConfig
|
|
121
|
-
|
|
122
|
-
attr_accessor tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig
|
|
123
|
-
|
|
124
|
-
attr_accessor unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig
|
|
125
|
-
|
|
126
|
-
attr_accessor grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig
|
|
127
|
-
|
|
128
|
-
attr_accessor bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig
|
|
129
|
-
|
|
130
|
-
attr_accessor grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig
|
|
131
|
-
|
|
132
|
-
attr_accessor grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig
|
|
133
|
-
|
|
134
|
-
attr_accessor grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig
|
|
135
|
-
|
|
136
|
-
attr_accessor matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig
|
|
137
|
-
|
|
138
|
-
attr_accessor grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig
|
|
139
|
-
|
|
140
|
-
attr_accessor max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig
|
|
141
|
-
|
|
142
|
-
attr_accessor scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig
|
|
143
|
-
|
|
144
|
-
attr_accessor scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig
|
|
145
|
-
|
|
146
|
-
attr_accessor cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig
|
|
147
|
-
|
|
148
|
-
attr_accessor cumulative_grouped_allocation_config: Orb::PriceCreateParams::CumulativeGroupedAllocationConfig
|
|
149
|
-
|
|
150
|
-
attr_accessor minimum_composite_config: Orb::PriceCreateParams::MinimumCompositeConfig
|
|
151
|
-
|
|
152
|
-
attr_accessor percent_config: Orb::PriceCreateParams::PercentConfig
|
|
153
|
-
|
|
154
|
-
attr_accessor event_output_config: Orb::PriceCreateParams::EventOutputConfig
|
|
11
|
+
attr_accessor body: Orb::Models::PriceCreateParams::body
|
|
155
12
|
|
|
156
13
|
def initialize: (
|
|
157
|
-
|
|
158
|
-
currency: String,
|
|
159
|
-
item_id: String,
|
|
160
|
-
model_type: Orb::Models::PriceCreateParams::model_type,
|
|
161
|
-
name: String,
|
|
162
|
-
unit_config: Orb::UnitConfig,
|
|
163
|
-
tiered_config: Orb::TieredConfig,
|
|
164
|
-
bulk_config: Orb::BulkConfig,
|
|
165
|
-
bulk_with_filters_config: Orb::PriceCreateParams::BulkWithFiltersConfig,
|
|
166
|
-
package_config: Orb::PackageConfig,
|
|
167
|
-
matrix_config: Orb::MatrixConfig,
|
|
168
|
-
threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig,
|
|
169
|
-
tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig,
|
|
170
|
-
tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig,
|
|
171
|
-
grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig,
|
|
172
|
-
tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig,
|
|
173
|
-
package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig,
|
|
174
|
-
unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig,
|
|
175
|
-
matrix_with_allocation_config: Orb::MatrixWithAllocationConfig,
|
|
176
|
-
tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig,
|
|
177
|
-
unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig,
|
|
178
|
-
grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig,
|
|
179
|
-
bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig,
|
|
180
|
-
grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig,
|
|
181
|
-
grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig,
|
|
182
|
-
grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig,
|
|
183
|
-
matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig,
|
|
184
|
-
grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig,
|
|
185
|
-
max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig,
|
|
186
|
-
scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig,
|
|
187
|
-
scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig,
|
|
188
|
-
cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig,
|
|
189
|
-
cumulative_grouped_allocation_config: Orb::PriceCreateParams::CumulativeGroupedAllocationConfig,
|
|
190
|
-
minimum_composite_config: Orb::PriceCreateParams::MinimumCompositeConfig,
|
|
191
|
-
percent_config: Orb::PriceCreateParams::PercentConfig,
|
|
192
|
-
event_output_config: Orb::PriceCreateParams::EventOutputConfig,
|
|
193
|
-
?billable_metric_id: String?,
|
|
194
|
-
?billed_in_advance: bool?,
|
|
195
|
-
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
196
|
-
?conversion_rate: Float?,
|
|
197
|
-
?conversion_rate_config: Orb::Models::PriceCreateParams::conversion_rate_config?,
|
|
198
|
-
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
199
|
-
?external_price_id: String?,
|
|
200
|
-
?fixed_price_quantity: Float?,
|
|
201
|
-
?invoice_grouping_key: String?,
|
|
202
|
-
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
203
|
-
?license_type_id: String?,
|
|
204
|
-
?metadata: ::Hash[Symbol, String?]?,
|
|
14
|
+
body: Orb::Models::PriceCreateParams::body,
|
|
205
15
|
?request_options: Orb::request_opts
|
|
206
16
|
) -> void
|
|
207
17
|
|
|
208
18
|
def to_hash: -> {
|
|
209
|
-
|
|
210
|
-
currency: String,
|
|
211
|
-
item_id: String,
|
|
212
|
-
model_type: Orb::Models::PriceCreateParams::model_type,
|
|
213
|
-
name: String,
|
|
214
|
-
unit_config: Orb::UnitConfig,
|
|
215
|
-
billable_metric_id: String?,
|
|
216
|
-
billed_in_advance: bool?,
|
|
217
|
-
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
218
|
-
conversion_rate: Float?,
|
|
219
|
-
conversion_rate_config: Orb::Models::PriceCreateParams::conversion_rate_config?,
|
|
220
|
-
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
221
|
-
external_price_id: String?,
|
|
222
|
-
fixed_price_quantity: Float?,
|
|
223
|
-
invoice_grouping_key: String?,
|
|
224
|
-
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
225
|
-
license_type_id: String?,
|
|
226
|
-
metadata: ::Hash[Symbol, String?]?,
|
|
227
|
-
tiered_config: Orb::TieredConfig,
|
|
228
|
-
bulk_config: Orb::BulkConfig,
|
|
229
|
-
bulk_with_filters_config: Orb::PriceCreateParams::BulkWithFiltersConfig,
|
|
230
|
-
package_config: Orb::PackageConfig,
|
|
231
|
-
matrix_config: Orb::MatrixConfig,
|
|
232
|
-
threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig,
|
|
233
|
-
tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig,
|
|
234
|
-
tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig,
|
|
235
|
-
grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig,
|
|
236
|
-
tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig,
|
|
237
|
-
package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig,
|
|
238
|
-
unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig,
|
|
239
|
-
matrix_with_allocation_config: Orb::MatrixWithAllocationConfig,
|
|
240
|
-
tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig,
|
|
241
|
-
unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig,
|
|
242
|
-
grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig,
|
|
243
|
-
bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig,
|
|
244
|
-
grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig,
|
|
245
|
-
grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig,
|
|
246
|
-
grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig,
|
|
247
|
-
matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig,
|
|
248
|
-
grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig,
|
|
249
|
-
max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig,
|
|
250
|
-
scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig,
|
|
251
|
-
scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig,
|
|
252
|
-
cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig,
|
|
253
|
-
cumulative_grouped_allocation_config: Orb::PriceCreateParams::CumulativeGroupedAllocationConfig,
|
|
254
|
-
minimum_composite_config: Orb::PriceCreateParams::MinimumCompositeConfig,
|
|
255
|
-
percent_config: Orb::PriceCreateParams::PercentConfig,
|
|
256
|
-
event_output_config: Orb::PriceCreateParams::EventOutputConfig,
|
|
19
|
+
body: Orb::Models::PriceCreateParams::body,
|
|
257
20
|
request_options: Orb::RequestOptions
|
|
258
21
|
}
|
|
259
22
|
|
|
260
|
-
type
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
23
|
+
type body =
|
|
24
|
+
Orb::NewFloatingUnitPrice
|
|
25
|
+
| Orb::NewFloatingTieredPrice
|
|
26
|
+
| Orb::NewFloatingBulkPrice
|
|
27
|
+
| Orb::PriceCreateParams::Body::BulkWithFilters
|
|
28
|
+
| Orb::NewFloatingPackagePrice
|
|
29
|
+
| Orb::NewFloatingMatrixPrice
|
|
30
|
+
| Orb::NewFloatingThresholdTotalAmountPrice
|
|
31
|
+
| Orb::NewFloatingTieredPackagePrice
|
|
32
|
+
| Orb::NewFloatingTieredWithMinimumPrice
|
|
33
|
+
| Orb::NewFloatingGroupedTieredPrice
|
|
34
|
+
| Orb::NewFloatingTieredPackageWithMinimumPrice
|
|
35
|
+
| Orb::NewFloatingPackageWithAllocationPrice
|
|
36
|
+
| Orb::NewFloatingUnitWithPercentPrice
|
|
37
|
+
| Orb::NewFloatingMatrixWithAllocationPrice
|
|
38
|
+
| Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts
|
|
39
|
+
| Orb::NewFloatingTieredWithProrationPrice
|
|
40
|
+
| Orb::NewFloatingUnitWithProrationPrice
|
|
41
|
+
| Orb::NewFloatingGroupedAllocationPrice
|
|
42
|
+
| Orb::NewFloatingBulkWithProrationPrice
|
|
43
|
+
| Orb::NewFloatingGroupedWithProratedMinimumPrice
|
|
44
|
+
| Orb::NewFloatingGroupedWithMeteredMinimumPrice
|
|
45
|
+
| Orb::PriceCreateParams::Body::GroupedWithMinMaxThresholds
|
|
46
|
+
| Orb::NewFloatingMatrixWithDisplayNamePrice
|
|
47
|
+
| Orb::NewFloatingGroupedTieredPackagePrice
|
|
48
|
+
| Orb::NewFloatingMaxGroupTieredPackagePrice
|
|
49
|
+
| Orb::NewFloatingScalableMatrixWithUnitPricingPrice
|
|
50
|
+
| Orb::NewFloatingScalableMatrixWithTieredPricingPrice
|
|
51
|
+
| Orb::NewFloatingCumulativeGroupedBulkPrice
|
|
52
|
+
| Orb::PriceCreateParams::Body::CumulativeGroupedAllocation
|
|
53
|
+
| Orb::PriceCreateParams::Body::DailyCreditAllowance
|
|
54
|
+
| Orb::PriceCreateParams::Body::MeteredAllowance
|
|
55
|
+
| Orb::NewFloatingMinimumCompositePrice
|
|
56
|
+
| Orb::PriceCreateParams::Body::Percent
|
|
57
|
+
| Orb::PriceCreateParams::Body::EventOutput
|
|
58
|
+
|
|
59
|
+
module Body
|
|
60
|
+
extend Orb::Internal::Type::Union
|
|
61
|
+
|
|
62
|
+
type bulk_with_filters =
|
|
63
|
+
{
|
|
64
|
+
bulk_with_filters_config: Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig,
|
|
65
|
+
cadence: Orb::Models::PriceCreateParams::Body::BulkWithFilters::cadence,
|
|
66
|
+
currency: String,
|
|
67
|
+
item_id: String,
|
|
68
|
+
model_type: :bulk_with_filters,
|
|
69
|
+
name: String,
|
|
70
|
+
billable_metric_id: String?,
|
|
71
|
+
billed_in_advance: bool?,
|
|
72
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
73
|
+
conversion_rate: Float?,
|
|
74
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
75
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
76
|
+
external_price_id: String?,
|
|
77
|
+
fixed_price_quantity: Float?,
|
|
78
|
+
invoice_grouping_key: String?,
|
|
79
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
80
|
+
license_type_id: String?,
|
|
81
|
+
metadata: ::Hash[Symbol, String?]?
|
|
82
|
+
}
|
|
272
83
|
|
|
273
|
-
|
|
274
|
-
|
|
84
|
+
class BulkWithFilters < Orb::Internal::Type::BaseModel
|
|
85
|
+
attr_accessor bulk_with_filters_config: Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig
|
|
275
86
|
|
|
276
|
-
|
|
87
|
+
attr_accessor cadence: Orb::Models::PriceCreateParams::Body::BulkWithFilters::cadence
|
|
277
88
|
|
|
278
|
-
|
|
279
|
-
extend Orb::Internal::Type::Enum
|
|
89
|
+
attr_accessor currency: String
|
|
280
90
|
|
|
281
|
-
|
|
91
|
+
attr_accessor item_id: String
|
|
282
92
|
|
|
283
|
-
|
|
284
|
-
end
|
|
93
|
+
attr_accessor model_type: :bulk_with_filters
|
|
285
94
|
|
|
286
|
-
|
|
287
|
-
{
|
|
288
|
-
filters: ::Array[Orb::PriceCreateParams::BulkWithFiltersConfig::Filter],
|
|
289
|
-
tiers: ::Array[Orb::PriceCreateParams::BulkWithFiltersConfig::Tier]
|
|
290
|
-
}
|
|
95
|
+
attr_accessor name: String
|
|
291
96
|
|
|
292
|
-
|
|
293
|
-
attr_accessor filters: ::Array[Orb::PriceCreateParams::BulkWithFiltersConfig::Filter]
|
|
97
|
+
attr_accessor billable_metric_id: String?
|
|
294
98
|
|
|
295
|
-
|
|
99
|
+
attr_accessor billed_in_advance: bool?
|
|
296
100
|
|
|
297
|
-
|
|
298
|
-
filters: ::Array[Orb::PriceCreateParams::BulkWithFiltersConfig::Filter],
|
|
299
|
-
tiers: ::Array[Orb::PriceCreateParams::BulkWithFiltersConfig::Tier]
|
|
300
|
-
) -> void
|
|
101
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
301
102
|
|
|
302
|
-
|
|
303
|
-
filters: ::Array[Orb::PriceCreateParams::BulkWithFiltersConfig::Filter],
|
|
304
|
-
tiers: ::Array[Orb::PriceCreateParams::BulkWithFiltersConfig::Tier]
|
|
305
|
-
}
|
|
103
|
+
attr_accessor conversion_rate: Float?
|
|
306
104
|
|
|
307
|
-
|
|
105
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
308
106
|
|
|
309
|
-
|
|
310
|
-
attr_accessor property_key: String
|
|
107
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
311
108
|
|
|
312
|
-
attr_accessor
|
|
109
|
+
attr_accessor external_price_id: String?
|
|
313
110
|
|
|
314
|
-
|
|
111
|
+
attr_accessor fixed_price_quantity: Float?
|
|
315
112
|
|
|
316
|
-
|
|
317
|
-
end
|
|
113
|
+
attr_accessor invoice_grouping_key: String?
|
|
318
114
|
|
|
319
|
-
|
|
115
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
320
116
|
|
|
321
|
-
|
|
322
|
-
attr_accessor unit_amount: String
|
|
117
|
+
attr_accessor license_type_id: String?
|
|
323
118
|
|
|
324
|
-
attr_accessor
|
|
119
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
325
120
|
|
|
326
121
|
def initialize: (
|
|
327
|
-
|
|
328
|
-
|
|
122
|
+
bulk_with_filters_config: Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig,
|
|
123
|
+
cadence: Orb::Models::PriceCreateParams::Body::BulkWithFilters::cadence,
|
|
124
|
+
currency: String,
|
|
125
|
+
item_id: String,
|
|
126
|
+
name: String,
|
|
127
|
+
?billable_metric_id: String?,
|
|
128
|
+
?billed_in_advance: bool?,
|
|
129
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
130
|
+
?conversion_rate: Float?,
|
|
131
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
132
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
133
|
+
?external_price_id: String?,
|
|
134
|
+
?fixed_price_quantity: Float?,
|
|
135
|
+
?invoice_grouping_key: String?,
|
|
136
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
137
|
+
?license_type_id: String?,
|
|
138
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
139
|
+
?model_type: :bulk_with_filters
|
|
329
140
|
) -> void
|
|
330
141
|
|
|
331
|
-
def to_hash: -> {
|
|
332
|
-
|
|
333
|
-
|
|
142
|
+
def to_hash: -> {
|
|
143
|
+
bulk_with_filters_config: Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig,
|
|
144
|
+
cadence: Orb::Models::PriceCreateParams::Body::BulkWithFilters::cadence,
|
|
145
|
+
currency: String,
|
|
146
|
+
item_id: String,
|
|
147
|
+
model_type: :bulk_with_filters,
|
|
148
|
+
name: String,
|
|
149
|
+
billable_metric_id: String?,
|
|
150
|
+
billed_in_advance: bool?,
|
|
151
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
152
|
+
conversion_rate: Float?,
|
|
153
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
154
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
155
|
+
external_price_id: String?,
|
|
156
|
+
fixed_price_quantity: Float?,
|
|
157
|
+
invoice_grouping_key: String?,
|
|
158
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
159
|
+
license_type_id: String?,
|
|
160
|
+
metadata: ::Hash[Symbol, String?]?
|
|
161
|
+
}
|
|
334
162
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
163
|
+
type bulk_with_filters_config =
|
|
164
|
+
{
|
|
165
|
+
filters: ::Array[Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
166
|
+
tiers: ::Array[Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
167
|
+
}
|
|
340
168
|
|
|
341
|
-
|
|
342
|
-
|
|
169
|
+
class BulkWithFiltersConfig < Orb::Internal::Type::BaseModel
|
|
170
|
+
attr_accessor filters: ::Array[Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig::Filter]
|
|
343
171
|
|
|
344
|
-
|
|
172
|
+
attr_accessor tiers: ::Array[Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
345
173
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
174
|
+
def initialize: (
|
|
175
|
+
filters: ::Array[Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
176
|
+
tiers: ::Array[Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
177
|
+
) -> void
|
|
350
178
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
179
|
+
def to_hash: -> {
|
|
180
|
+
filters: ::Array[Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig::Filter],
|
|
181
|
+
tiers: ::Array[Orb::PriceCreateParams::Body::BulkWithFilters::BulkWithFiltersConfig::Tier]
|
|
182
|
+
}
|
|
355
183
|
|
|
356
|
-
|
|
184
|
+
type filter = { property_key: String, property_value: String }
|
|
357
185
|
|
|
358
|
-
|
|
359
|
-
|
|
186
|
+
class Filter < Orb::Internal::Type::BaseModel
|
|
187
|
+
attr_accessor property_key: String
|
|
360
188
|
|
|
361
|
-
|
|
189
|
+
attr_accessor property_value: String
|
|
362
190
|
|
|
363
|
-
|
|
191
|
+
def initialize: (
|
|
192
|
+
property_key: String,
|
|
193
|
+
property_value: String
|
|
194
|
+
) -> void
|
|
364
195
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
end
|
|
196
|
+
def to_hash: -> { property_key: String, property_value: String }
|
|
197
|
+
end
|
|
368
198
|
|
|
369
|
-
|
|
370
|
-
{
|
|
371
|
-
package_size: String,
|
|
372
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredPackageConfig::Tier]
|
|
373
|
-
}
|
|
199
|
+
type tier = { unit_amount: String, tier_lower_bound: String? }
|
|
374
200
|
|
|
375
|
-
|
|
376
|
-
|
|
201
|
+
class Tier < Orb::Internal::Type::BaseModel
|
|
202
|
+
attr_accessor unit_amount: String
|
|
377
203
|
|
|
378
|
-
|
|
204
|
+
attr_accessor tier_lower_bound: String?
|
|
379
205
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
206
|
+
def initialize: (
|
|
207
|
+
unit_amount: String,
|
|
208
|
+
?tier_lower_bound: String?
|
|
209
|
+
) -> void
|
|
384
210
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}
|
|
211
|
+
def to_hash: -> { unit_amount: String, tier_lower_bound: String? }
|
|
212
|
+
end
|
|
213
|
+
end
|
|
389
214
|
|
|
390
|
-
|
|
215
|
+
type cadence =
|
|
216
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
391
217
|
|
|
392
|
-
|
|
393
|
-
|
|
218
|
+
module Cadence
|
|
219
|
+
extend Orb::Internal::Type::Enum
|
|
394
220
|
|
|
395
|
-
|
|
221
|
+
ANNUAL: :annual
|
|
222
|
+
SEMI_ANNUAL: :semi_annual
|
|
223
|
+
MONTHLY: :monthly
|
|
224
|
+
QUARTERLY: :quarterly
|
|
225
|
+
ONE_TIME: :one_time
|
|
226
|
+
CUSTOM: :custom
|
|
396
227
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
def to_hash: -> { per_unit: String, tier_lower_bound: String }
|
|
228
|
+
def self?.values: -> ::Array[Orb::Models::PriceCreateParams::Body::BulkWithFilters::cadence]
|
|
229
|
+
end
|
|
400
230
|
end
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
type tiered_with_minimum_config =
|
|
404
|
-
{
|
|
405
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier],
|
|
406
|
-
hide_zero_amount_tiers: bool,
|
|
407
|
-
prorate: bool
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel
|
|
411
|
-
attr_accessor tiers: ::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier]
|
|
412
|
-
|
|
413
|
-
attr_reader hide_zero_amount_tiers: bool?
|
|
414
231
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
attr_reader prorate: bool?
|
|
418
|
-
|
|
419
|
-
def prorate=: (bool) -> bool
|
|
420
|
-
|
|
421
|
-
def initialize: (
|
|
422
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier],
|
|
423
|
-
?hide_zero_amount_tiers: bool,
|
|
424
|
-
?prorate: bool
|
|
425
|
-
) -> void
|
|
426
|
-
|
|
427
|
-
def to_hash: -> {
|
|
428
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier],
|
|
429
|
-
hide_zero_amount_tiers: bool,
|
|
430
|
-
prorate: bool
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
type tier =
|
|
232
|
+
type matrix_with_threshold_discounts =
|
|
434
233
|
{
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
def to_hash: -> {
|
|
454
|
-
minimum_amount: String,
|
|
455
|
-
tier_lower_bound: String,
|
|
456
|
-
unit_amount: String
|
|
234
|
+
cadence: Orb::Models::PriceCreateParams::Body::MatrixWithThresholdDiscounts::cadence,
|
|
235
|
+
currency: String,
|
|
236
|
+
item_id: String,
|
|
237
|
+
matrix_with_threshold_discounts_config: Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
238
|
+
model_type: :matrix_with_threshold_discounts,
|
|
239
|
+
name: String,
|
|
240
|
+
billable_metric_id: String?,
|
|
241
|
+
billed_in_advance: bool?,
|
|
242
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
243
|
+
conversion_rate: Float?,
|
|
244
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
245
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
246
|
+
external_price_id: String?,
|
|
247
|
+
fixed_price_quantity: Float?,
|
|
248
|
+
invoice_grouping_key: String?,
|
|
249
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
250
|
+
license_type_id: String?,
|
|
251
|
+
metadata: ::Hash[Symbol, String?]?
|
|
457
252
|
}
|
|
458
|
-
end
|
|
459
|
-
end
|
|
460
253
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
grouping_key: String,
|
|
464
|
-
tiers: ::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier]
|
|
465
|
-
}
|
|
254
|
+
class MatrixWithThresholdDiscounts < Orb::Internal::Type::BaseModel
|
|
255
|
+
attr_accessor cadence: Orb::Models::PriceCreateParams::Body::MatrixWithThresholdDiscounts::cadence
|
|
466
256
|
|
|
467
|
-
|
|
468
|
-
attr_accessor grouping_key: String
|
|
257
|
+
attr_accessor currency: String
|
|
469
258
|
|
|
470
|
-
|
|
259
|
+
attr_accessor item_id: String
|
|
471
260
|
|
|
472
|
-
|
|
473
|
-
grouping_key: String,
|
|
474
|
-
tiers: ::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier]
|
|
475
|
-
) -> void
|
|
261
|
+
attr_accessor matrix_with_threshold_discounts_config: Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig
|
|
476
262
|
|
|
477
|
-
|
|
478
|
-
grouping_key: String,
|
|
479
|
-
tiers: ::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier]
|
|
480
|
-
}
|
|
263
|
+
attr_accessor model_type: :matrix_with_threshold_discounts
|
|
481
264
|
|
|
482
|
-
|
|
265
|
+
attr_accessor name: String
|
|
483
266
|
|
|
484
|
-
|
|
485
|
-
attr_accessor tier_lower_bound: String
|
|
267
|
+
attr_accessor billable_metric_id: String?
|
|
486
268
|
|
|
487
|
-
attr_accessor
|
|
269
|
+
attr_accessor billed_in_advance: bool?
|
|
488
270
|
|
|
489
|
-
|
|
490
|
-
tier_lower_bound: String,
|
|
491
|
-
unit_amount: String
|
|
492
|
-
) -> void
|
|
271
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
493
272
|
|
|
494
|
-
|
|
495
|
-
end
|
|
496
|
-
end
|
|
273
|
+
attr_accessor conversion_rate: Float?
|
|
497
274
|
|
|
498
|
-
|
|
499
|
-
{
|
|
500
|
-
package_size: Float,
|
|
501
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier]
|
|
502
|
-
}
|
|
275
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
503
276
|
|
|
504
|
-
|
|
505
|
-
attr_accessor package_size: Float
|
|
277
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
506
278
|
|
|
507
|
-
|
|
279
|
+
attr_accessor external_price_id: String?
|
|
508
280
|
|
|
509
|
-
|
|
510
|
-
package_size: Float,
|
|
511
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier]
|
|
512
|
-
) -> void
|
|
281
|
+
attr_accessor fixed_price_quantity: Float?
|
|
513
282
|
|
|
514
|
-
|
|
515
|
-
package_size: Float,
|
|
516
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier]
|
|
517
|
-
}
|
|
283
|
+
attr_accessor invoice_grouping_key: String?
|
|
518
284
|
|
|
519
|
-
|
|
520
|
-
{ minimum_amount: String, per_unit: String, tier_lower_bound: String }
|
|
285
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
521
286
|
|
|
522
|
-
|
|
523
|
-
attr_accessor minimum_amount: String
|
|
287
|
+
attr_accessor license_type_id: String?
|
|
524
288
|
|
|
525
|
-
attr_accessor
|
|
526
|
-
|
|
527
|
-
attr_accessor tier_lower_bound: String
|
|
289
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
528
290
|
|
|
529
291
|
def initialize: (
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
292
|
+
cadence: Orb::Models::PriceCreateParams::Body::MatrixWithThresholdDiscounts::cadence,
|
|
293
|
+
currency: String,
|
|
294
|
+
item_id: String,
|
|
295
|
+
matrix_with_threshold_discounts_config: Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
296
|
+
name: String,
|
|
297
|
+
?billable_metric_id: String?,
|
|
298
|
+
?billed_in_advance: bool?,
|
|
299
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
300
|
+
?conversion_rate: Float?,
|
|
301
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
302
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
303
|
+
?external_price_id: String?,
|
|
304
|
+
?fixed_price_quantity: Float?,
|
|
305
|
+
?invoice_grouping_key: String?,
|
|
306
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
307
|
+
?license_type_id: String?,
|
|
308
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
309
|
+
?model_type: :matrix_with_threshold_discounts
|
|
533
310
|
) -> void
|
|
534
311
|
|
|
535
312
|
def to_hash: -> {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
313
|
+
cadence: Orb::Models::PriceCreateParams::Body::MatrixWithThresholdDiscounts::cadence,
|
|
314
|
+
currency: String,
|
|
315
|
+
item_id: String,
|
|
316
|
+
matrix_with_threshold_discounts_config: Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig,
|
|
317
|
+
model_type: :matrix_with_threshold_discounts,
|
|
318
|
+
name: String,
|
|
319
|
+
billable_metric_id: String?,
|
|
320
|
+
billed_in_advance: bool?,
|
|
321
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
322
|
+
conversion_rate: Float?,
|
|
323
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
324
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
325
|
+
external_price_id: String?,
|
|
326
|
+
fixed_price_quantity: Float?,
|
|
327
|
+
invoice_grouping_key: String?,
|
|
328
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
329
|
+
license_type_id: String?,
|
|
330
|
+
metadata: ::Hash[Symbol, String?]?
|
|
539
331
|
}
|
|
332
|
+
|
|
333
|
+
type cadence =
|
|
334
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
335
|
+
|
|
336
|
+
module Cadence
|
|
337
|
+
extend Orb::Internal::Type::Enum
|
|
338
|
+
|
|
339
|
+
ANNUAL: :annual
|
|
340
|
+
SEMI_ANNUAL: :semi_annual
|
|
341
|
+
MONTHLY: :monthly
|
|
342
|
+
QUARTERLY: :quarterly
|
|
343
|
+
ONE_TIME: :one_time
|
|
344
|
+
CUSTOM: :custom
|
|
345
|
+
|
|
346
|
+
def self?.values: -> ::Array[Orb::Models::PriceCreateParams::Body::MatrixWithThresholdDiscounts::cadence]
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
type matrix_with_threshold_discounts_config =
|
|
350
|
+
{
|
|
351
|
+
default_unit_amount: String,
|
|
352
|
+
first_dimension: String,
|
|
353
|
+
matrix_values: ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
354
|
+
second_dimension: String?,
|
|
355
|
+
threshold_discount_groups: ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
class MatrixWithThresholdDiscountsConfig < Orb::Internal::Type::BaseModel
|
|
359
|
+
attr_accessor default_unit_amount: String
|
|
360
|
+
|
|
361
|
+
attr_accessor first_dimension: String
|
|
362
|
+
|
|
363
|
+
attr_accessor matrix_values: ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue]
|
|
364
|
+
|
|
365
|
+
attr_accessor second_dimension: String?
|
|
366
|
+
|
|
367
|
+
attr_reader threshold_discount_groups: ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]?
|
|
368
|
+
|
|
369
|
+
def threshold_discount_groups=: (
|
|
370
|
+
::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
371
|
+
) -> ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
372
|
+
|
|
373
|
+
def initialize: (
|
|
374
|
+
default_unit_amount: String,
|
|
375
|
+
first_dimension: String,
|
|
376
|
+
matrix_values: ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
377
|
+
?second_dimension: String?,
|
|
378
|
+
?threshold_discount_groups: ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
379
|
+
) -> void
|
|
380
|
+
|
|
381
|
+
def to_hash: -> {
|
|
382
|
+
default_unit_amount: String,
|
|
383
|
+
first_dimension: String,
|
|
384
|
+
matrix_values: ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue],
|
|
385
|
+
second_dimension: String?,
|
|
386
|
+
threshold_discount_groups: ::Array[Orb::PriceCreateParams::Body::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::ThresholdDiscountGroup]
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
type matrix_value =
|
|
390
|
+
{
|
|
391
|
+
first_dimension_value: String,
|
|
392
|
+
unit_amount: String,
|
|
393
|
+
second_dimension_value: String?
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
397
|
+
attr_accessor first_dimension_value: String
|
|
398
|
+
|
|
399
|
+
attr_accessor unit_amount: String
|
|
400
|
+
|
|
401
|
+
attr_accessor second_dimension_value: String?
|
|
402
|
+
|
|
403
|
+
def initialize: (
|
|
404
|
+
first_dimension_value: String,
|
|
405
|
+
unit_amount: String,
|
|
406
|
+
?second_dimension_value: String?
|
|
407
|
+
) -> void
|
|
408
|
+
|
|
409
|
+
def to_hash: -> {
|
|
410
|
+
first_dimension_value: String,
|
|
411
|
+
unit_amount: String,
|
|
412
|
+
second_dimension_value: String?
|
|
413
|
+
}
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
type threshold_discount_group =
|
|
417
|
+
{
|
|
418
|
+
above_threshold_discount_percentage: String,
|
|
419
|
+
below_threshold_discount_percentage: String,
|
|
420
|
+
cell_coordinates: String,
|
|
421
|
+
threshold_amount: String,
|
|
422
|
+
description: String?
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
class ThresholdDiscountGroup < Orb::Internal::Type::BaseModel
|
|
426
|
+
attr_accessor above_threshold_discount_percentage: String
|
|
427
|
+
|
|
428
|
+
attr_accessor below_threshold_discount_percentage: String
|
|
429
|
+
|
|
430
|
+
attr_accessor cell_coordinates: String
|
|
431
|
+
|
|
432
|
+
attr_accessor threshold_amount: String
|
|
433
|
+
|
|
434
|
+
attr_accessor description: String?
|
|
435
|
+
|
|
436
|
+
def initialize: (
|
|
437
|
+
above_threshold_discount_percentage: String,
|
|
438
|
+
below_threshold_discount_percentage: String,
|
|
439
|
+
cell_coordinates: String,
|
|
440
|
+
threshold_amount: String,
|
|
441
|
+
?description: String?
|
|
442
|
+
) -> void
|
|
443
|
+
|
|
444
|
+
def to_hash: -> {
|
|
445
|
+
above_threshold_discount_percentage: String,
|
|
446
|
+
below_threshold_discount_percentage: String,
|
|
447
|
+
cell_coordinates: String,
|
|
448
|
+
threshold_amount: String,
|
|
449
|
+
description: String?
|
|
450
|
+
}
|
|
451
|
+
end
|
|
452
|
+
end
|
|
540
453
|
end
|
|
541
|
-
end
|
|
542
454
|
|
|
543
|
-
|
|
544
|
-
|
|
455
|
+
type grouped_with_min_max_thresholds =
|
|
456
|
+
{
|
|
457
|
+
cadence: Orb::Models::PriceCreateParams::Body::GroupedWithMinMaxThresholds::cadence,
|
|
458
|
+
currency: String,
|
|
459
|
+
grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::Body::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
460
|
+
item_id: String,
|
|
461
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
462
|
+
name: String,
|
|
463
|
+
billable_metric_id: String?,
|
|
464
|
+
billed_in_advance: bool?,
|
|
465
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
466
|
+
conversion_rate: Float?,
|
|
467
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
468
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
469
|
+
external_price_id: String?,
|
|
470
|
+
fixed_price_quantity: Float?,
|
|
471
|
+
invoice_grouping_key: String?,
|
|
472
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
473
|
+
license_type_id: String?,
|
|
474
|
+
metadata: ::Hash[Symbol, String?]?
|
|
475
|
+
}
|
|
545
476
|
|
|
546
|
-
|
|
547
|
-
|
|
477
|
+
class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel
|
|
478
|
+
attr_accessor cadence: Orb::Models::PriceCreateParams::Body::GroupedWithMinMaxThresholds::cadence
|
|
548
479
|
|
|
549
|
-
|
|
480
|
+
attr_accessor currency: String
|
|
550
481
|
|
|
551
|
-
|
|
482
|
+
attr_accessor grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::Body::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig
|
|
552
483
|
|
|
553
|
-
|
|
554
|
-
allocation: String,
|
|
555
|
-
package_amount: String,
|
|
556
|
-
package_size: String
|
|
557
|
-
) -> void
|
|
484
|
+
attr_accessor item_id: String
|
|
558
485
|
|
|
559
|
-
|
|
560
|
-
allocation: String,
|
|
561
|
-
package_amount: String,
|
|
562
|
-
package_size: String
|
|
563
|
-
}
|
|
564
|
-
end
|
|
486
|
+
attr_accessor model_type: :grouped_with_min_max_thresholds
|
|
565
487
|
|
|
566
|
-
|
|
488
|
+
attr_accessor name: String
|
|
567
489
|
|
|
568
|
-
|
|
569
|
-
attr_accessor percent: String
|
|
490
|
+
attr_accessor billable_metric_id: String?
|
|
570
491
|
|
|
571
|
-
|
|
492
|
+
attr_accessor billed_in_advance: bool?
|
|
572
493
|
|
|
573
|
-
|
|
494
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
574
495
|
|
|
575
|
-
|
|
576
|
-
|
|
496
|
+
attr_accessor conversion_rate: Float?
|
|
497
|
+
|
|
498
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
577
499
|
|
|
578
|
-
|
|
579
|
-
{
|
|
580
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier]
|
|
581
|
-
}
|
|
500
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
582
501
|
|
|
583
|
-
|
|
584
|
-
attr_accessor tiers: ::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier]
|
|
502
|
+
attr_accessor external_price_id: String?
|
|
585
503
|
|
|
586
|
-
|
|
587
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier]
|
|
588
|
-
) -> void
|
|
504
|
+
attr_accessor fixed_price_quantity: Float?
|
|
589
505
|
|
|
590
|
-
|
|
591
|
-
tiers: ::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier]
|
|
592
|
-
}
|
|
506
|
+
attr_accessor invoice_grouping_key: String?
|
|
593
507
|
|
|
594
|
-
|
|
508
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
595
509
|
|
|
596
|
-
|
|
597
|
-
attr_accessor tier_lower_bound: String
|
|
510
|
+
attr_accessor license_type_id: String?
|
|
598
511
|
|
|
599
|
-
attr_accessor
|
|
512
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
600
513
|
|
|
601
514
|
def initialize: (
|
|
602
|
-
|
|
603
|
-
|
|
515
|
+
cadence: Orb::Models::PriceCreateParams::Body::GroupedWithMinMaxThresholds::cadence,
|
|
516
|
+
currency: String,
|
|
517
|
+
grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::Body::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
518
|
+
item_id: String,
|
|
519
|
+
name: String,
|
|
520
|
+
?billable_metric_id: String?,
|
|
521
|
+
?billed_in_advance: bool?,
|
|
522
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
523
|
+
?conversion_rate: Float?,
|
|
524
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
525
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
526
|
+
?external_price_id: String?,
|
|
527
|
+
?fixed_price_quantity: Float?,
|
|
528
|
+
?invoice_grouping_key: String?,
|
|
529
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
530
|
+
?license_type_id: String?,
|
|
531
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
532
|
+
?model_type: :grouped_with_min_max_thresholds
|
|
604
533
|
) -> void
|
|
605
534
|
|
|
606
|
-
def to_hash: -> {
|
|
535
|
+
def to_hash: -> {
|
|
536
|
+
cadence: Orb::Models::PriceCreateParams::Body::GroupedWithMinMaxThresholds::cadence,
|
|
537
|
+
currency: String,
|
|
538
|
+
grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::Body::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig,
|
|
539
|
+
item_id: String,
|
|
540
|
+
model_type: :grouped_with_min_max_thresholds,
|
|
541
|
+
name: String,
|
|
542
|
+
billable_metric_id: String?,
|
|
543
|
+
billed_in_advance: bool?,
|
|
544
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
545
|
+
conversion_rate: Float?,
|
|
546
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
547
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
548
|
+
external_price_id: String?,
|
|
549
|
+
fixed_price_quantity: Float?,
|
|
550
|
+
invoice_grouping_key: String?,
|
|
551
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
552
|
+
license_type_id: String?,
|
|
553
|
+
metadata: ::Hash[Symbol, String?]?
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
type cadence =
|
|
557
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
558
|
+
|
|
559
|
+
module Cadence
|
|
560
|
+
extend Orb::Internal::Type::Enum
|
|
561
|
+
|
|
562
|
+
ANNUAL: :annual
|
|
563
|
+
SEMI_ANNUAL: :semi_annual
|
|
564
|
+
MONTHLY: :monthly
|
|
565
|
+
QUARTERLY: :quarterly
|
|
566
|
+
ONE_TIME: :one_time
|
|
567
|
+
CUSTOM: :custom
|
|
568
|
+
|
|
569
|
+
def self?.values: -> ::Array[Orb::Models::PriceCreateParams::Body::GroupedWithMinMaxThresholds::cadence]
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
type grouped_with_min_max_thresholds_config =
|
|
573
|
+
{
|
|
574
|
+
grouping_key: String,
|
|
575
|
+
maximum_charge: String,
|
|
576
|
+
minimum_charge: String,
|
|
577
|
+
per_unit_rate: String
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel
|
|
581
|
+
attr_accessor grouping_key: String
|
|
582
|
+
|
|
583
|
+
attr_accessor maximum_charge: String
|
|
584
|
+
|
|
585
|
+
attr_accessor minimum_charge: String
|
|
586
|
+
|
|
587
|
+
attr_accessor per_unit_rate: String
|
|
588
|
+
|
|
589
|
+
def initialize: (
|
|
590
|
+
grouping_key: String,
|
|
591
|
+
maximum_charge: String,
|
|
592
|
+
minimum_charge: String,
|
|
593
|
+
per_unit_rate: String
|
|
594
|
+
) -> void
|
|
595
|
+
|
|
596
|
+
def to_hash: -> {
|
|
597
|
+
grouping_key: String,
|
|
598
|
+
maximum_charge: String,
|
|
599
|
+
minimum_charge: String,
|
|
600
|
+
per_unit_rate: String
|
|
601
|
+
}
|
|
602
|
+
end
|
|
607
603
|
end
|
|
608
|
-
end
|
|
609
604
|
|
|
610
|
-
|
|
605
|
+
type cumulative_grouped_allocation =
|
|
606
|
+
{
|
|
607
|
+
cadence: Orb::Models::PriceCreateParams::Body::CumulativeGroupedAllocation::cadence,
|
|
608
|
+
cumulative_grouped_allocation_config: Orb::PriceCreateParams::Body::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
609
|
+
currency: String,
|
|
610
|
+
item_id: String,
|
|
611
|
+
model_type: :cumulative_grouped_allocation,
|
|
612
|
+
name: String,
|
|
613
|
+
billable_metric_id: String?,
|
|
614
|
+
billed_in_advance: bool?,
|
|
615
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
616
|
+
conversion_rate: Float?,
|
|
617
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
618
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
619
|
+
external_price_id: String?,
|
|
620
|
+
fixed_price_quantity: Float?,
|
|
621
|
+
invoice_grouping_key: String?,
|
|
622
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
623
|
+
license_type_id: String?,
|
|
624
|
+
metadata: ::Hash[Symbol, String?]?
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
class CumulativeGroupedAllocation < Orb::Internal::Type::BaseModel
|
|
628
|
+
attr_accessor cadence: Orb::Models::PriceCreateParams::Body::CumulativeGroupedAllocation::cadence
|
|
611
629
|
|
|
612
|
-
|
|
613
|
-
attr_accessor unit_amount: String
|
|
630
|
+
attr_accessor cumulative_grouped_allocation_config: Orb::PriceCreateParams::Body::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig
|
|
614
631
|
|
|
615
|
-
|
|
632
|
+
attr_accessor currency: String
|
|
616
633
|
|
|
617
|
-
|
|
618
|
-
end
|
|
634
|
+
attr_accessor item_id: String
|
|
619
635
|
|
|
620
|
-
|
|
621
|
-
{ allocation: String, grouping_key: String, overage_unit_rate: String }
|
|
636
|
+
attr_accessor model_type: :cumulative_grouped_allocation
|
|
622
637
|
|
|
623
|
-
|
|
624
|
-
attr_accessor allocation: String
|
|
638
|
+
attr_accessor name: String
|
|
625
639
|
|
|
626
|
-
|
|
640
|
+
attr_accessor billable_metric_id: String?
|
|
627
641
|
|
|
628
|
-
|
|
642
|
+
attr_accessor billed_in_advance: bool?
|
|
629
643
|
|
|
630
|
-
|
|
631
|
-
allocation: String,
|
|
632
|
-
grouping_key: String,
|
|
633
|
-
overage_unit_rate: String
|
|
634
|
-
) -> void
|
|
644
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
635
645
|
|
|
636
|
-
|
|
637
|
-
allocation: String,
|
|
638
|
-
grouping_key: String,
|
|
639
|
-
overage_unit_rate: String
|
|
640
|
-
}
|
|
641
|
-
end
|
|
646
|
+
attr_accessor conversion_rate: Float?
|
|
642
647
|
|
|
643
|
-
|
|
644
|
-
{
|
|
645
|
-
tiers: ::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier]
|
|
646
|
-
}
|
|
648
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
647
649
|
|
|
648
|
-
|
|
649
|
-
attr_accessor tiers: ::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier]
|
|
650
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
650
651
|
|
|
651
|
-
|
|
652
|
-
tiers: ::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier]
|
|
653
|
-
) -> void
|
|
652
|
+
attr_accessor external_price_id: String?
|
|
654
653
|
|
|
655
|
-
|
|
656
|
-
tiers: ::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier]
|
|
657
|
-
}
|
|
654
|
+
attr_accessor fixed_price_quantity: Float?
|
|
658
655
|
|
|
659
|
-
|
|
656
|
+
attr_accessor invoice_grouping_key: String?
|
|
660
657
|
|
|
661
|
-
|
|
662
|
-
attr_accessor unit_amount: String
|
|
658
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
663
659
|
|
|
664
|
-
attr_accessor
|
|
660
|
+
attr_accessor license_type_id: String?
|
|
661
|
+
|
|
662
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
665
663
|
|
|
666
664
|
def initialize: (
|
|
667
|
-
|
|
668
|
-
|
|
665
|
+
cadence: Orb::Models::PriceCreateParams::Body::CumulativeGroupedAllocation::cadence,
|
|
666
|
+
cumulative_grouped_allocation_config: Orb::PriceCreateParams::Body::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
667
|
+
currency: String,
|
|
668
|
+
item_id: String,
|
|
669
|
+
name: String,
|
|
670
|
+
?billable_metric_id: String?,
|
|
671
|
+
?billed_in_advance: bool?,
|
|
672
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
673
|
+
?conversion_rate: Float?,
|
|
674
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
675
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
676
|
+
?external_price_id: String?,
|
|
677
|
+
?fixed_price_quantity: Float?,
|
|
678
|
+
?invoice_grouping_key: String?,
|
|
679
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
680
|
+
?license_type_id: String?,
|
|
681
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
682
|
+
?model_type: :cumulative_grouped_allocation
|
|
669
683
|
) -> void
|
|
670
684
|
|
|
671
|
-
def to_hash: -> {
|
|
685
|
+
def to_hash: -> {
|
|
686
|
+
cadence: Orb::Models::PriceCreateParams::Body::CumulativeGroupedAllocation::cadence,
|
|
687
|
+
cumulative_grouped_allocation_config: Orb::PriceCreateParams::Body::CumulativeGroupedAllocation::CumulativeGroupedAllocationConfig,
|
|
688
|
+
currency: String,
|
|
689
|
+
item_id: String,
|
|
690
|
+
model_type: :cumulative_grouped_allocation,
|
|
691
|
+
name: String,
|
|
692
|
+
billable_metric_id: String?,
|
|
693
|
+
billed_in_advance: bool?,
|
|
694
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
695
|
+
conversion_rate: Float?,
|
|
696
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
697
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
698
|
+
external_price_id: String?,
|
|
699
|
+
fixed_price_quantity: Float?,
|
|
700
|
+
invoice_grouping_key: String?,
|
|
701
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
702
|
+
license_type_id: String?,
|
|
703
|
+
metadata: ::Hash[Symbol, String?]?
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
type cadence =
|
|
707
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
708
|
+
|
|
709
|
+
module Cadence
|
|
710
|
+
extend Orb::Internal::Type::Enum
|
|
711
|
+
|
|
712
|
+
ANNUAL: :annual
|
|
713
|
+
SEMI_ANNUAL: :semi_annual
|
|
714
|
+
MONTHLY: :monthly
|
|
715
|
+
QUARTERLY: :quarterly
|
|
716
|
+
ONE_TIME: :one_time
|
|
717
|
+
CUSTOM: :custom
|
|
718
|
+
|
|
719
|
+
def self?.values: -> ::Array[Orb::Models::PriceCreateParams::Body::CumulativeGroupedAllocation::cadence]
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
type cumulative_grouped_allocation_config =
|
|
723
|
+
{
|
|
724
|
+
cumulative_allocation: String,
|
|
725
|
+
group_allocation: String,
|
|
726
|
+
grouping_key: String,
|
|
727
|
+
unit_amount: String
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
class CumulativeGroupedAllocationConfig < Orb::Internal::Type::BaseModel
|
|
731
|
+
attr_accessor cumulative_allocation: String
|
|
732
|
+
|
|
733
|
+
attr_accessor group_allocation: String
|
|
734
|
+
|
|
735
|
+
attr_accessor grouping_key: String
|
|
736
|
+
|
|
737
|
+
attr_accessor unit_amount: String
|
|
738
|
+
|
|
739
|
+
def initialize: (
|
|
740
|
+
cumulative_allocation: String,
|
|
741
|
+
group_allocation: String,
|
|
742
|
+
grouping_key: String,
|
|
743
|
+
unit_amount: String
|
|
744
|
+
) -> void
|
|
745
|
+
|
|
746
|
+
def to_hash: -> {
|
|
747
|
+
cumulative_allocation: String,
|
|
748
|
+
group_allocation: String,
|
|
749
|
+
grouping_key: String,
|
|
750
|
+
unit_amount: String
|
|
751
|
+
}
|
|
752
|
+
end
|
|
672
753
|
end
|
|
673
|
-
end
|
|
674
754
|
|
|
675
|
-
|
|
676
|
-
|
|
755
|
+
type daily_credit_allowance =
|
|
756
|
+
{
|
|
757
|
+
cadence: Orb::Models::PriceCreateParams::Body::DailyCreditAllowance::cadence,
|
|
758
|
+
currency: String,
|
|
759
|
+
daily_credit_allowance_config: Orb::PriceCreateParams::Body::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
760
|
+
item_id: String,
|
|
761
|
+
model_type: :daily_credit_allowance,
|
|
762
|
+
name: String,
|
|
763
|
+
billable_metric_id: String?,
|
|
764
|
+
billed_in_advance: bool?,
|
|
765
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
766
|
+
conversion_rate: Float?,
|
|
767
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
768
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
769
|
+
external_price_id: String?,
|
|
770
|
+
fixed_price_quantity: Float?,
|
|
771
|
+
invoice_grouping_key: String?,
|
|
772
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
773
|
+
license_type_id: String?,
|
|
774
|
+
metadata: ::Hash[Symbol, String?]?
|
|
775
|
+
}
|
|
677
776
|
|
|
678
|
-
|
|
679
|
-
|
|
777
|
+
class DailyCreditAllowance < Orb::Internal::Type::BaseModel
|
|
778
|
+
attr_accessor cadence: Orb::Models::PriceCreateParams::Body::DailyCreditAllowance::cadence
|
|
680
779
|
|
|
681
|
-
|
|
780
|
+
attr_accessor currency: String
|
|
682
781
|
|
|
683
|
-
|
|
782
|
+
attr_accessor daily_credit_allowance_config: Orb::PriceCreateParams::Body::DailyCreditAllowance::DailyCreditAllowanceConfig
|
|
684
783
|
|
|
685
|
-
|
|
686
|
-
grouping_key: String,
|
|
687
|
-
minimum: String,
|
|
688
|
-
unit_rate: String
|
|
689
|
-
) -> void
|
|
784
|
+
attr_accessor item_id: String
|
|
690
785
|
|
|
691
|
-
|
|
692
|
-
grouping_key: String,
|
|
693
|
-
minimum: String,
|
|
694
|
-
unit_rate: String
|
|
695
|
-
}
|
|
696
|
-
end
|
|
786
|
+
attr_accessor model_type: :daily_credit_allowance
|
|
697
787
|
|
|
698
|
-
|
|
699
|
-
{
|
|
700
|
-
grouping_key: String,
|
|
701
|
-
minimum_unit_amount: String,
|
|
702
|
-
pricing_key: String,
|
|
703
|
-
scaling_factors: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor],
|
|
704
|
-
scaling_key: String,
|
|
705
|
-
unit_amounts: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount]
|
|
706
|
-
}
|
|
788
|
+
attr_accessor name: String
|
|
707
789
|
|
|
708
|
-
|
|
709
|
-
attr_accessor grouping_key: String
|
|
790
|
+
attr_accessor billable_metric_id: String?
|
|
710
791
|
|
|
711
|
-
|
|
792
|
+
attr_accessor billed_in_advance: bool?
|
|
712
793
|
|
|
713
|
-
|
|
794
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
714
795
|
|
|
715
|
-
|
|
796
|
+
attr_accessor conversion_rate: Float?
|
|
716
797
|
|
|
717
|
-
|
|
798
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
718
799
|
|
|
719
|
-
|
|
800
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
720
801
|
|
|
721
|
-
|
|
722
|
-
grouping_key: String,
|
|
723
|
-
minimum_unit_amount: String,
|
|
724
|
-
pricing_key: String,
|
|
725
|
-
scaling_factors: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor],
|
|
726
|
-
scaling_key: String,
|
|
727
|
-
unit_amounts: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount]
|
|
728
|
-
) -> void
|
|
802
|
+
attr_accessor external_price_id: String?
|
|
729
803
|
|
|
730
|
-
|
|
731
|
-
grouping_key: String,
|
|
732
|
-
minimum_unit_amount: String,
|
|
733
|
-
pricing_key: String,
|
|
734
|
-
scaling_factors: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor],
|
|
735
|
-
scaling_key: String,
|
|
736
|
-
unit_amounts: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount]
|
|
737
|
-
}
|
|
804
|
+
attr_accessor fixed_price_quantity: Float?
|
|
738
805
|
|
|
739
|
-
|
|
806
|
+
attr_accessor invoice_grouping_key: String?
|
|
740
807
|
|
|
741
|
-
|
|
742
|
-
attr_accessor scaling_factor: String
|
|
808
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
743
809
|
|
|
744
|
-
attr_accessor
|
|
810
|
+
attr_accessor license_type_id: String?
|
|
811
|
+
|
|
812
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
745
813
|
|
|
746
814
|
def initialize: (
|
|
747
|
-
|
|
748
|
-
|
|
815
|
+
cadence: Orb::Models::PriceCreateParams::Body::DailyCreditAllowance::cadence,
|
|
816
|
+
currency: String,
|
|
817
|
+
daily_credit_allowance_config: Orb::PriceCreateParams::Body::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
818
|
+
item_id: String,
|
|
819
|
+
name: String,
|
|
820
|
+
?billable_metric_id: String?,
|
|
821
|
+
?billed_in_advance: bool?,
|
|
822
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
823
|
+
?conversion_rate: Float?,
|
|
824
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
825
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
826
|
+
?external_price_id: String?,
|
|
827
|
+
?fixed_price_quantity: Float?,
|
|
828
|
+
?invoice_grouping_key: String?,
|
|
829
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
830
|
+
?license_type_id: String?,
|
|
831
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
832
|
+
?model_type: :daily_credit_allowance
|
|
749
833
|
) -> void
|
|
750
834
|
|
|
751
|
-
def to_hash: -> {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
835
|
+
def to_hash: -> {
|
|
836
|
+
cadence: Orb::Models::PriceCreateParams::Body::DailyCreditAllowance::cadence,
|
|
837
|
+
currency: String,
|
|
838
|
+
daily_credit_allowance_config: Orb::PriceCreateParams::Body::DailyCreditAllowance::DailyCreditAllowanceConfig,
|
|
839
|
+
item_id: String,
|
|
840
|
+
model_type: :daily_credit_allowance,
|
|
841
|
+
name: String,
|
|
842
|
+
billable_metric_id: String?,
|
|
843
|
+
billed_in_advance: bool?,
|
|
844
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
845
|
+
conversion_rate: Float?,
|
|
846
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
847
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
848
|
+
external_price_id: String?,
|
|
849
|
+
fixed_price_quantity: Float?,
|
|
850
|
+
invoice_grouping_key: String?,
|
|
851
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
852
|
+
license_type_id: String?,
|
|
853
|
+
metadata: ::Hash[Symbol, String?]?
|
|
854
|
+
}
|
|
755
855
|
|
|
756
|
-
|
|
757
|
-
|
|
856
|
+
type cadence =
|
|
857
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
858
|
+
|
|
859
|
+
module Cadence
|
|
860
|
+
extend Orb::Internal::Type::Enum
|
|
861
|
+
|
|
862
|
+
ANNUAL: :annual
|
|
863
|
+
SEMI_ANNUAL: :semi_annual
|
|
864
|
+
MONTHLY: :monthly
|
|
865
|
+
QUARTERLY: :quarterly
|
|
866
|
+
ONE_TIME: :one_time
|
|
867
|
+
CUSTOM: :custom
|
|
868
|
+
|
|
869
|
+
def self?.values: -> ::Array[Orb::Models::PriceCreateParams::Body::DailyCreditAllowance::cadence]
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
type daily_credit_allowance_config =
|
|
873
|
+
{
|
|
874
|
+
daily_allowance: String,
|
|
875
|
+
default_unit_amount: String,
|
|
876
|
+
dimensions: ::Array[String?],
|
|
877
|
+
event_day_property: String,
|
|
878
|
+
matrix_values: ::Array[Orb::PriceCreateParams::Body::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
class DailyCreditAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
882
|
+
attr_accessor daily_allowance: String
|
|
883
|
+
|
|
884
|
+
attr_accessor default_unit_amount: String
|
|
885
|
+
|
|
886
|
+
attr_accessor dimensions: ::Array[String?]
|
|
887
|
+
|
|
888
|
+
attr_accessor event_day_property: String
|
|
889
|
+
|
|
890
|
+
attr_accessor matrix_values: ::Array[Orb::PriceCreateParams::Body::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
891
|
+
|
|
892
|
+
def initialize: (
|
|
893
|
+
daily_allowance: String,
|
|
894
|
+
default_unit_amount: String,
|
|
895
|
+
dimensions: ::Array[String?],
|
|
896
|
+
event_day_property: String,
|
|
897
|
+
matrix_values: ::Array[Orb::PriceCreateParams::Body::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
898
|
+
) -> void
|
|
899
|
+
|
|
900
|
+
def to_hash: -> {
|
|
901
|
+
daily_allowance: String,
|
|
902
|
+
default_unit_amount: String,
|
|
903
|
+
dimensions: ::Array[String?],
|
|
904
|
+
event_day_property: String,
|
|
905
|
+
matrix_values: ::Array[Orb::PriceCreateParams::Body::DailyCreditAllowance::DailyCreditAllowanceConfig::MatrixValue]
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
type matrix_value =
|
|
909
|
+
{ dimension_values: ::Array[String?], unit_amount: String }
|
|
910
|
+
|
|
911
|
+
class MatrixValue < Orb::Internal::Type::BaseModel
|
|
912
|
+
attr_accessor dimension_values: ::Array[String?]
|
|
913
|
+
|
|
914
|
+
attr_accessor unit_amount: String
|
|
915
|
+
|
|
916
|
+
def initialize: (
|
|
917
|
+
dimension_values: ::Array[String?],
|
|
918
|
+
unit_amount: String
|
|
919
|
+
) -> void
|
|
920
|
+
|
|
921
|
+
def to_hash: -> {
|
|
922
|
+
dimension_values: ::Array[String?],
|
|
923
|
+
unit_amount: String
|
|
924
|
+
}
|
|
925
|
+
end
|
|
926
|
+
end
|
|
927
|
+
end
|
|
758
928
|
|
|
759
|
-
|
|
929
|
+
type metered_allowance =
|
|
930
|
+
{
|
|
931
|
+
cadence: Orb::Models::PriceCreateParams::Body::MeteredAllowance::cadence,
|
|
932
|
+
currency: String,
|
|
933
|
+
item_id: String,
|
|
934
|
+
metered_allowance_config: Orb::PriceCreateParams::Body::MeteredAllowance::MeteredAllowanceConfig,
|
|
935
|
+
model_type: :metered_allowance,
|
|
936
|
+
name: String,
|
|
937
|
+
billable_metric_id: String?,
|
|
938
|
+
billed_in_advance: bool?,
|
|
939
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
940
|
+
conversion_rate: Float?,
|
|
941
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
942
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
943
|
+
external_price_id: String?,
|
|
944
|
+
fixed_price_quantity: Float?,
|
|
945
|
+
invoice_grouping_key: String?,
|
|
946
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
947
|
+
license_type_id: String?,
|
|
948
|
+
metadata: ::Hash[Symbol, String?]?
|
|
949
|
+
}
|
|
760
950
|
|
|
761
|
-
|
|
951
|
+
class MeteredAllowance < Orb::Internal::Type::BaseModel
|
|
952
|
+
attr_accessor cadence: Orb::Models::PriceCreateParams::Body::MeteredAllowance::cadence
|
|
762
953
|
|
|
763
|
-
|
|
764
|
-
end
|
|
765
|
-
end
|
|
954
|
+
attr_accessor currency: String
|
|
766
955
|
|
|
767
|
-
|
|
768
|
-
{
|
|
769
|
-
grouping_key: String,
|
|
770
|
-
maximum_charge: String,
|
|
771
|
-
minimum_charge: String,
|
|
772
|
-
per_unit_rate: String
|
|
773
|
-
}
|
|
956
|
+
attr_accessor item_id: String
|
|
774
957
|
|
|
775
|
-
|
|
776
|
-
attr_accessor grouping_key: String
|
|
958
|
+
attr_accessor metered_allowance_config: Orb::PriceCreateParams::Body::MeteredAllowance::MeteredAllowanceConfig
|
|
777
959
|
|
|
778
|
-
|
|
960
|
+
attr_accessor model_type: :metered_allowance
|
|
779
961
|
|
|
780
|
-
|
|
962
|
+
attr_accessor name: String
|
|
781
963
|
|
|
782
|
-
|
|
964
|
+
attr_accessor billable_metric_id: String?
|
|
783
965
|
|
|
784
|
-
|
|
785
|
-
grouping_key: String,
|
|
786
|
-
maximum_charge: String,
|
|
787
|
-
minimum_charge: String,
|
|
788
|
-
per_unit_rate: String
|
|
789
|
-
) -> void
|
|
966
|
+
attr_accessor billed_in_advance: bool?
|
|
790
967
|
|
|
791
|
-
|
|
792
|
-
grouping_key: String,
|
|
793
|
-
maximum_charge: String,
|
|
794
|
-
minimum_charge: String,
|
|
795
|
-
per_unit_rate: String
|
|
796
|
-
}
|
|
797
|
-
end
|
|
968
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
798
969
|
|
|
799
|
-
|
|
800
|
-
{
|
|
801
|
-
dimension: String,
|
|
802
|
-
unit_amounts: ::Array[Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount]
|
|
803
|
-
}
|
|
970
|
+
attr_accessor conversion_rate: Float?
|
|
804
971
|
|
|
805
|
-
|
|
806
|
-
attr_accessor dimension: String
|
|
972
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
807
973
|
|
|
808
|
-
|
|
974
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
809
975
|
|
|
810
|
-
|
|
811
|
-
dimension: String,
|
|
812
|
-
unit_amounts: ::Array[Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount]
|
|
813
|
-
) -> void
|
|
976
|
+
attr_accessor external_price_id: String?
|
|
814
977
|
|
|
815
|
-
|
|
816
|
-
dimension: String,
|
|
817
|
-
unit_amounts: ::Array[Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount]
|
|
818
|
-
}
|
|
978
|
+
attr_accessor fixed_price_quantity: Float?
|
|
819
979
|
|
|
820
|
-
|
|
821
|
-
{ dimension_value: String, display_name: String, unit_amount: String }
|
|
980
|
+
attr_accessor invoice_grouping_key: String?
|
|
822
981
|
|
|
823
|
-
|
|
824
|
-
attr_accessor dimension_value: String
|
|
982
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
825
983
|
|
|
826
|
-
attr_accessor
|
|
984
|
+
attr_accessor license_type_id: String?
|
|
827
985
|
|
|
828
|
-
attr_accessor
|
|
986
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
829
987
|
|
|
830
988
|
def initialize: (
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
989
|
+
cadence: Orb::Models::PriceCreateParams::Body::MeteredAllowance::cadence,
|
|
990
|
+
currency: String,
|
|
991
|
+
item_id: String,
|
|
992
|
+
metered_allowance_config: Orb::PriceCreateParams::Body::MeteredAllowance::MeteredAllowanceConfig,
|
|
993
|
+
name: String,
|
|
994
|
+
?billable_metric_id: String?,
|
|
995
|
+
?billed_in_advance: bool?,
|
|
996
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
997
|
+
?conversion_rate: Float?,
|
|
998
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
999
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1000
|
+
?external_price_id: String?,
|
|
1001
|
+
?fixed_price_quantity: Float?,
|
|
1002
|
+
?invoice_grouping_key: String?,
|
|
1003
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1004
|
+
?license_type_id: String?,
|
|
1005
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1006
|
+
?model_type: :metered_allowance
|
|
834
1007
|
) -> void
|
|
835
1008
|
|
|
836
1009
|
def to_hash: -> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
1010
|
+
cadence: Orb::Models::PriceCreateParams::Body::MeteredAllowance::cadence,
|
|
1011
|
+
currency: String,
|
|
1012
|
+
item_id: String,
|
|
1013
|
+
metered_allowance_config: Orb::PriceCreateParams::Body::MeteredAllowance::MeteredAllowanceConfig,
|
|
1014
|
+
model_type: :metered_allowance,
|
|
1015
|
+
name: String,
|
|
1016
|
+
billable_metric_id: String?,
|
|
1017
|
+
billed_in_advance: bool?,
|
|
1018
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1019
|
+
conversion_rate: Float?,
|
|
1020
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1021
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1022
|
+
external_price_id: String?,
|
|
1023
|
+
fixed_price_quantity: Float?,
|
|
1024
|
+
invoice_grouping_key: String?,
|
|
1025
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1026
|
+
license_type_id: String?,
|
|
1027
|
+
metadata: ::Hash[Symbol, String?]?
|
|
840
1028
|
}
|
|
841
|
-
end
|
|
842
|
-
end
|
|
843
1029
|
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
grouping_key: String,
|
|
847
|
-
package_size: String,
|
|
848
|
-
tiers: ::Array[Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier]
|
|
849
|
-
}
|
|
1030
|
+
type cadence =
|
|
1031
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
850
1032
|
|
|
851
|
-
|
|
852
|
-
|
|
1033
|
+
module Cadence
|
|
1034
|
+
extend Orb::Internal::Type::Enum
|
|
853
1035
|
|
|
854
|
-
|
|
1036
|
+
ANNUAL: :annual
|
|
1037
|
+
SEMI_ANNUAL: :semi_annual
|
|
1038
|
+
MONTHLY: :monthly
|
|
1039
|
+
QUARTERLY: :quarterly
|
|
1040
|
+
ONE_TIME: :one_time
|
|
1041
|
+
CUSTOM: :custom
|
|
855
1042
|
|
|
856
|
-
|
|
1043
|
+
def self?.values: -> ::Array[Orb::Models::PriceCreateParams::Body::MeteredAllowance::cadence]
|
|
1044
|
+
end
|
|
857
1045
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
1046
|
+
type metered_allowance_config =
|
|
1047
|
+
{
|
|
1048
|
+
allowance_grouping_value: String,
|
|
1049
|
+
consumption_grouping_value: String,
|
|
1050
|
+
grouping_key: String,
|
|
1051
|
+
unit_amount: String,
|
|
1052
|
+
allowance_display_name: String,
|
|
1053
|
+
consumption_display_name: String
|
|
1054
|
+
}
|
|
863
1055
|
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
package_size: String,
|
|
867
|
-
tiers: ::Array[Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier]
|
|
868
|
-
}
|
|
1056
|
+
class MeteredAllowanceConfig < Orb::Internal::Type::BaseModel
|
|
1057
|
+
attr_accessor allowance_grouping_value: String
|
|
869
1058
|
|
|
870
|
-
|
|
1059
|
+
attr_accessor consumption_grouping_value: String
|
|
871
1060
|
|
|
872
|
-
|
|
873
|
-
attr_accessor per_unit: String
|
|
1061
|
+
attr_accessor grouping_key: String
|
|
874
1062
|
|
|
875
|
-
|
|
1063
|
+
attr_accessor unit_amount: String
|
|
876
1064
|
|
|
877
|
-
|
|
1065
|
+
attr_reader allowance_display_name: String?
|
|
878
1066
|
|
|
879
|
-
|
|
880
|
-
end
|
|
881
|
-
end
|
|
882
|
-
|
|
883
|
-
type max_group_tiered_package_config =
|
|
884
|
-
{
|
|
885
|
-
grouping_key: String,
|
|
886
|
-
package_size: String,
|
|
887
|
-
tiers: ::Array[Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier]
|
|
888
|
-
}
|
|
1067
|
+
def allowance_display_name=: (String) -> String
|
|
889
1068
|
|
|
890
|
-
|
|
891
|
-
attr_accessor grouping_key: String
|
|
1069
|
+
attr_reader consumption_display_name: String?
|
|
892
1070
|
|
|
893
|
-
|
|
1071
|
+
def consumption_display_name=: (String) -> String
|
|
894
1072
|
|
|
895
|
-
|
|
1073
|
+
def initialize: (
|
|
1074
|
+
allowance_grouping_value: String,
|
|
1075
|
+
consumption_grouping_value: String,
|
|
1076
|
+
grouping_key: String,
|
|
1077
|
+
unit_amount: String,
|
|
1078
|
+
?allowance_display_name: String,
|
|
1079
|
+
?consumption_display_name: String
|
|
1080
|
+
) -> void
|
|
896
1081
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
1082
|
+
def to_hash: -> {
|
|
1083
|
+
allowance_grouping_value: String,
|
|
1084
|
+
consumption_grouping_value: String,
|
|
1085
|
+
grouping_key: String,
|
|
1086
|
+
unit_amount: String,
|
|
1087
|
+
allowance_display_name: String,
|
|
1088
|
+
consumption_display_name: String
|
|
1089
|
+
}
|
|
1090
|
+
end
|
|
1091
|
+
end
|
|
902
1092
|
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
1093
|
+
type percent =
|
|
1094
|
+
{
|
|
1095
|
+
cadence: Orb::Models::PriceCreateParams::Body::Percent::cadence,
|
|
1096
|
+
currency: String,
|
|
1097
|
+
item_id: String,
|
|
1098
|
+
model_type: :percent,
|
|
1099
|
+
name: String,
|
|
1100
|
+
percent_config: Orb::PriceCreateParams::Body::Percent::PercentConfig,
|
|
1101
|
+
billable_metric_id: String?,
|
|
1102
|
+
billed_in_advance: bool?,
|
|
1103
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1104
|
+
conversion_rate: Float?,
|
|
1105
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1106
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1107
|
+
external_price_id: String?,
|
|
1108
|
+
fixed_price_quantity: Float?,
|
|
1109
|
+
invoice_grouping_key: String?,
|
|
1110
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1111
|
+
license_type_id: String?,
|
|
1112
|
+
metadata: ::Hash[Symbol, String?]?
|
|
1113
|
+
}
|
|
908
1114
|
|
|
909
|
-
|
|
1115
|
+
class Percent < Orb::Internal::Type::BaseModel
|
|
1116
|
+
attr_accessor cadence: Orb::Models::PriceCreateParams::Body::Percent::cadence
|
|
910
1117
|
|
|
911
|
-
|
|
912
|
-
attr_accessor tier_lower_bound: String
|
|
1118
|
+
attr_accessor currency: String
|
|
913
1119
|
|
|
914
|
-
attr_accessor
|
|
1120
|
+
attr_accessor item_id: String
|
|
915
1121
|
|
|
916
|
-
|
|
917
|
-
tier_lower_bound: String,
|
|
918
|
-
unit_amount: String
|
|
919
|
-
) -> void
|
|
1122
|
+
attr_accessor model_type: :percent
|
|
920
1123
|
|
|
921
|
-
|
|
922
|
-
end
|
|
923
|
-
end
|
|
1124
|
+
attr_accessor name: String
|
|
924
1125
|
|
|
925
|
-
|
|
926
|
-
{
|
|
927
|
-
first_dimension: String,
|
|
928
|
-
matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
929
|
-
unit_price: String,
|
|
930
|
-
grouping_key: String?,
|
|
931
|
-
prorate: bool?,
|
|
932
|
-
second_dimension: String?
|
|
933
|
-
}
|
|
1126
|
+
attr_accessor percent_config: Orb::PriceCreateParams::Body::Percent::PercentConfig
|
|
934
1127
|
|
|
935
|
-
|
|
936
|
-
attr_accessor first_dimension: String
|
|
1128
|
+
attr_accessor billable_metric_id: String?
|
|
937
1129
|
|
|
938
|
-
|
|
1130
|
+
attr_accessor billed_in_advance: bool?
|
|
939
1131
|
|
|
940
|
-
|
|
1132
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
941
1133
|
|
|
942
|
-
|
|
1134
|
+
attr_accessor conversion_rate: Float?
|
|
943
1135
|
|
|
944
|
-
|
|
1136
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
945
1137
|
|
|
946
|
-
|
|
1138
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
947
1139
|
|
|
948
|
-
|
|
949
|
-
first_dimension: String,
|
|
950
|
-
matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
951
|
-
unit_price: String,
|
|
952
|
-
?grouping_key: String?,
|
|
953
|
-
?prorate: bool?,
|
|
954
|
-
?second_dimension: String?
|
|
955
|
-
) -> void
|
|
1140
|
+
attr_accessor external_price_id: String?
|
|
956
1141
|
|
|
957
|
-
|
|
958
|
-
first_dimension: String,
|
|
959
|
-
matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor],
|
|
960
|
-
unit_price: String,
|
|
961
|
-
grouping_key: String?,
|
|
962
|
-
prorate: bool?,
|
|
963
|
-
second_dimension: String?
|
|
964
|
-
}
|
|
1142
|
+
attr_accessor fixed_price_quantity: Float?
|
|
965
1143
|
|
|
966
|
-
|
|
967
|
-
{
|
|
968
|
-
first_dimension_value: String,
|
|
969
|
-
scaling_factor: String,
|
|
970
|
-
second_dimension_value: String?
|
|
971
|
-
}
|
|
1144
|
+
attr_accessor invoice_grouping_key: String?
|
|
972
1145
|
|
|
973
|
-
|
|
974
|
-
attr_accessor first_dimension_value: String
|
|
1146
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
975
1147
|
|
|
976
|
-
attr_accessor
|
|
1148
|
+
attr_accessor license_type_id: String?
|
|
977
1149
|
|
|
978
|
-
attr_accessor
|
|
1150
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
979
1151
|
|
|
980
1152
|
def initialize: (
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1153
|
+
cadence: Orb::Models::PriceCreateParams::Body::Percent::cadence,
|
|
1154
|
+
currency: String,
|
|
1155
|
+
item_id: String,
|
|
1156
|
+
name: String,
|
|
1157
|
+
percent_config: Orb::PriceCreateParams::Body::Percent::PercentConfig,
|
|
1158
|
+
?billable_metric_id: String?,
|
|
1159
|
+
?billed_in_advance: bool?,
|
|
1160
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1161
|
+
?conversion_rate: Float?,
|
|
1162
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1163
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1164
|
+
?external_price_id: String?,
|
|
1165
|
+
?fixed_price_quantity: Float?,
|
|
1166
|
+
?invoice_grouping_key: String?,
|
|
1167
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1168
|
+
?license_type_id: String?,
|
|
1169
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1170
|
+
?model_type: :percent
|
|
984
1171
|
) -> void
|
|
985
1172
|
|
|
986
1173
|
def to_hash: -> {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1174
|
+
cadence: Orb::Models::PriceCreateParams::Body::Percent::cadence,
|
|
1175
|
+
currency: String,
|
|
1176
|
+
item_id: String,
|
|
1177
|
+
model_type: :percent,
|
|
1178
|
+
name: String,
|
|
1179
|
+
percent_config: Orb::PriceCreateParams::Body::Percent::PercentConfig,
|
|
1180
|
+
billable_metric_id: String?,
|
|
1181
|
+
billed_in_advance: bool?,
|
|
1182
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1183
|
+
conversion_rate: Float?,
|
|
1184
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1185
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1186
|
+
external_price_id: String?,
|
|
1187
|
+
fixed_price_quantity: Float?,
|
|
1188
|
+
invoice_grouping_key: String?,
|
|
1189
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1190
|
+
license_type_id: String?,
|
|
1191
|
+
metadata: ::Hash[Symbol, String?]?
|
|
990
1192
|
}
|
|
991
|
-
end
|
|
992
|
-
end
|
|
993
|
-
|
|
994
|
-
type scalable_matrix_with_tiered_pricing_config =
|
|
995
|
-
{
|
|
996
|
-
first_dimension: String,
|
|
997
|
-
matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor],
|
|
998
|
-
tiers: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier],
|
|
999
|
-
second_dimension: String?
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel
|
|
1003
|
-
attr_accessor first_dimension: String
|
|
1004
|
-
|
|
1005
|
-
attr_accessor matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor]
|
|
1006
1193
|
|
|
1007
|
-
|
|
1194
|
+
type cadence =
|
|
1195
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
1008
1196
|
|
|
1009
|
-
|
|
1197
|
+
module Cadence
|
|
1198
|
+
extend Orb::Internal::Type::Enum
|
|
1010
1199
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1200
|
+
ANNUAL: :annual
|
|
1201
|
+
SEMI_ANNUAL: :semi_annual
|
|
1202
|
+
MONTHLY: :monthly
|
|
1203
|
+
QUARTERLY: :quarterly
|
|
1204
|
+
ONE_TIME: :one_time
|
|
1205
|
+
CUSTOM: :custom
|
|
1017
1206
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor],
|
|
1021
|
-
tiers: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier],
|
|
1022
|
-
second_dimension: String?
|
|
1023
|
-
}
|
|
1207
|
+
def self?.values: -> ::Array[Orb::Models::PriceCreateParams::Body::Percent::cadence]
|
|
1208
|
+
end
|
|
1024
1209
|
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1210
|
+
type percent_config =
|
|
1211
|
+
{
|
|
1212
|
+
percent: Float,
|
|
1213
|
+
maximum_amount: String?,
|
|
1214
|
+
minimum_amount: String?,
|
|
1215
|
+
prorated: bool
|
|
1216
|
+
}
|
|
1031
1217
|
|
|
1032
|
-
|
|
1033
|
-
|
|
1218
|
+
class PercentConfig < Orb::Internal::Type::BaseModel
|
|
1219
|
+
attr_accessor percent: Float
|
|
1034
1220
|
|
|
1035
|
-
|
|
1221
|
+
attr_accessor maximum_amount: String?
|
|
1036
1222
|
|
|
1037
|
-
|
|
1223
|
+
attr_accessor minimum_amount: String?
|
|
1038
1224
|
|
|
1039
|
-
|
|
1040
|
-
first_dimension_value: String,
|
|
1041
|
-
scaling_factor: String,
|
|
1042
|
-
?second_dimension_value: String?
|
|
1043
|
-
) -> void
|
|
1225
|
+
attr_reader prorated: bool?
|
|
1044
1226
|
|
|
1045
|
-
|
|
1046
|
-
first_dimension_value: String,
|
|
1047
|
-
scaling_factor: String,
|
|
1048
|
-
second_dimension_value: String?
|
|
1049
|
-
}
|
|
1050
|
-
end
|
|
1051
|
-
|
|
1052
|
-
type tier = { tier_lower_bound: String, unit_amount: String }
|
|
1053
|
-
|
|
1054
|
-
class Tier < Orb::Internal::Type::BaseModel
|
|
1055
|
-
attr_accessor tier_lower_bound: String
|
|
1227
|
+
def prorated=: (bool) -> bool
|
|
1056
1228
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1229
|
+
def initialize: (
|
|
1230
|
+
percent: Float,
|
|
1231
|
+
?maximum_amount: String?,
|
|
1232
|
+
?minimum_amount: String?,
|
|
1233
|
+
?prorated: bool
|
|
1234
|
+
) -> void
|
|
1063
1235
|
|
|
1064
|
-
|
|
1236
|
+
def to_hash: -> {
|
|
1237
|
+
percent: Float,
|
|
1238
|
+
maximum_amount: String?,
|
|
1239
|
+
minimum_amount: String?,
|
|
1240
|
+
prorated: bool
|
|
1241
|
+
}
|
|
1242
|
+
end
|
|
1065
1243
|
end
|
|
1066
|
-
end
|
|
1067
1244
|
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1245
|
+
type event_output =
|
|
1246
|
+
{
|
|
1247
|
+
cadence: Orb::Models::PriceCreateParams::Body::EventOutput::cadence,
|
|
1248
|
+
currency: String,
|
|
1249
|
+
event_output_config: Orb::PriceCreateParams::Body::EventOutput::EventOutputConfig,
|
|
1250
|
+
item_id: String,
|
|
1251
|
+
model_type: :event_output,
|
|
1252
|
+
name: String,
|
|
1253
|
+
billable_metric_id: String?,
|
|
1254
|
+
billed_in_advance: bool?,
|
|
1255
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1256
|
+
conversion_rate: Float?,
|
|
1257
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1258
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1259
|
+
external_price_id: String?,
|
|
1260
|
+
fixed_price_quantity: Float?,
|
|
1261
|
+
invoice_grouping_key: String?,
|
|
1262
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1263
|
+
license_type_id: String?,
|
|
1264
|
+
metadata: ::Hash[Symbol, String?]?
|
|
1265
|
+
}
|
|
1073
1266
|
|
|
1074
|
-
|
|
1075
|
-
|
|
1267
|
+
class EventOutput < Orb::Internal::Type::BaseModel
|
|
1268
|
+
attr_accessor cadence: Orb::Models::PriceCreateParams::Body::EventOutput::cadence
|
|
1076
1269
|
|
|
1077
|
-
|
|
1270
|
+
attr_accessor currency: String
|
|
1078
1271
|
|
|
1079
|
-
|
|
1080
|
-
dimension_values: ::Array[Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue],
|
|
1081
|
-
group: String
|
|
1082
|
-
) -> void
|
|
1272
|
+
attr_accessor event_output_config: Orb::PriceCreateParams::Body::EventOutput::EventOutputConfig
|
|
1083
1273
|
|
|
1084
|
-
|
|
1085
|
-
dimension_values: ::Array[Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue],
|
|
1086
|
-
group: String
|
|
1087
|
-
}
|
|
1274
|
+
attr_accessor item_id: String
|
|
1088
1275
|
|
|
1089
|
-
|
|
1090
|
-
{
|
|
1091
|
-
grouping_key: String,
|
|
1092
|
-
tier_lower_bound: String,
|
|
1093
|
-
unit_amount: String
|
|
1094
|
-
}
|
|
1276
|
+
attr_accessor model_type: :event_output
|
|
1095
1277
|
|
|
1096
|
-
|
|
1097
|
-
attr_accessor grouping_key: String
|
|
1278
|
+
attr_accessor name: String
|
|
1098
1279
|
|
|
1099
|
-
attr_accessor
|
|
1280
|
+
attr_accessor billable_metric_id: String?
|
|
1100
1281
|
|
|
1101
|
-
attr_accessor
|
|
1102
|
-
|
|
1103
|
-
def initialize: (
|
|
1104
|
-
grouping_key: String,
|
|
1105
|
-
tier_lower_bound: String,
|
|
1106
|
-
unit_amount: String
|
|
1107
|
-
) -> void
|
|
1108
|
-
|
|
1109
|
-
def to_hash: -> {
|
|
1110
|
-
grouping_key: String,
|
|
1111
|
-
tier_lower_bound: String,
|
|
1112
|
-
unit_amount: String
|
|
1113
|
-
}
|
|
1114
|
-
end
|
|
1115
|
-
end
|
|
1282
|
+
attr_accessor billed_in_advance: bool?
|
|
1116
1283
|
|
|
1117
|
-
|
|
1118
|
-
{
|
|
1119
|
-
cumulative_allocation: String,
|
|
1120
|
-
group_allocation: String,
|
|
1121
|
-
grouping_key: String,
|
|
1122
|
-
unit_amount: String
|
|
1123
|
-
}
|
|
1284
|
+
attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1124
1285
|
|
|
1125
|
-
|
|
1126
|
-
attr_accessor cumulative_allocation: String
|
|
1286
|
+
attr_accessor conversion_rate: Float?
|
|
1127
1287
|
|
|
1128
|
-
|
|
1288
|
+
attr_accessor conversion_rate_config: Orb::Models::conversion_rate_config?
|
|
1129
1289
|
|
|
1130
|
-
|
|
1290
|
+
attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?
|
|
1131
1291
|
|
|
1132
|
-
|
|
1292
|
+
attr_accessor external_price_id: String?
|
|
1133
1293
|
|
|
1134
|
-
|
|
1135
|
-
cumulative_allocation: String,
|
|
1136
|
-
group_allocation: String,
|
|
1137
|
-
grouping_key: String,
|
|
1138
|
-
unit_amount: String
|
|
1139
|
-
) -> void
|
|
1294
|
+
attr_accessor fixed_price_quantity: Float?
|
|
1140
1295
|
|
|
1141
|
-
|
|
1142
|
-
cumulative_allocation: String,
|
|
1143
|
-
group_allocation: String,
|
|
1144
|
-
grouping_key: String,
|
|
1145
|
-
unit_amount: String
|
|
1146
|
-
}
|
|
1147
|
-
end
|
|
1296
|
+
attr_accessor invoice_grouping_key: String?
|
|
1148
1297
|
|
|
1149
|
-
|
|
1298
|
+
attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?
|
|
1150
1299
|
|
|
1151
|
-
|
|
1152
|
-
attr_accessor minimum_amount: String
|
|
1300
|
+
attr_accessor license_type_id: String?
|
|
1153
1301
|
|
|
1154
|
-
|
|
1302
|
+
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
1155
1303
|
|
|
1156
|
-
|
|
1304
|
+
def initialize: (
|
|
1305
|
+
cadence: Orb::Models::PriceCreateParams::Body::EventOutput::cadence,
|
|
1306
|
+
currency: String,
|
|
1307
|
+
event_output_config: Orb::PriceCreateParams::Body::EventOutput::EventOutputConfig,
|
|
1308
|
+
item_id: String,
|
|
1309
|
+
name: String,
|
|
1310
|
+
?billable_metric_id: String?,
|
|
1311
|
+
?billed_in_advance: bool?,
|
|
1312
|
+
?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1313
|
+
?conversion_rate: Float?,
|
|
1314
|
+
?conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1315
|
+
?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1316
|
+
?external_price_id: String?,
|
|
1317
|
+
?fixed_price_quantity: Float?,
|
|
1318
|
+
?invoice_grouping_key: String?,
|
|
1319
|
+
?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1320
|
+
?license_type_id: String?,
|
|
1321
|
+
?metadata: ::Hash[Symbol, String?]?,
|
|
1322
|
+
?model_type: :event_output
|
|
1323
|
+
) -> void
|
|
1157
1324
|
|
|
1158
|
-
|
|
1325
|
+
def to_hash: -> {
|
|
1326
|
+
cadence: Orb::Models::PriceCreateParams::Body::EventOutput::cadence,
|
|
1327
|
+
currency: String,
|
|
1328
|
+
event_output_config: Orb::PriceCreateParams::Body::EventOutput::EventOutputConfig,
|
|
1329
|
+
item_id: String,
|
|
1330
|
+
model_type: :event_output,
|
|
1331
|
+
name: String,
|
|
1332
|
+
billable_metric_id: String?,
|
|
1333
|
+
billed_in_advance: bool?,
|
|
1334
|
+
billing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1335
|
+
conversion_rate: Float?,
|
|
1336
|
+
conversion_rate_config: Orb::Models::conversion_rate_config?,
|
|
1337
|
+
dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?,
|
|
1338
|
+
external_price_id: String?,
|
|
1339
|
+
fixed_price_quantity: Float?,
|
|
1340
|
+
invoice_grouping_key: String?,
|
|
1341
|
+
invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?,
|
|
1342
|
+
license_type_id: String?,
|
|
1343
|
+
metadata: ::Hash[Symbol, String?]?
|
|
1344
|
+
}
|
|
1159
1345
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1346
|
+
type cadence =
|
|
1347
|
+
:annual | :semi_annual | :monthly | :quarterly | :one_time | :custom
|
|
1162
1348
|
|
|
1163
|
-
|
|
1349
|
+
module Cadence
|
|
1350
|
+
extend Orb::Internal::Type::Enum
|
|
1164
1351
|
|
|
1165
|
-
|
|
1166
|
-
|
|
1352
|
+
ANNUAL: :annual
|
|
1353
|
+
SEMI_ANNUAL: :semi_annual
|
|
1354
|
+
MONTHLY: :monthly
|
|
1355
|
+
QUARTERLY: :quarterly
|
|
1356
|
+
ONE_TIME: :one_time
|
|
1357
|
+
CUSTOM: :custom
|
|
1167
1358
|
|
|
1168
|
-
|
|
1359
|
+
def self?.values: -> ::Array[Orb::Models::PriceCreateParams::Body::EventOutput::cadence]
|
|
1360
|
+
end
|
|
1169
1361
|
|
|
1170
|
-
|
|
1171
|
-
|
|
1362
|
+
type event_output_config =
|
|
1363
|
+
{
|
|
1364
|
+
unit_rating_key: String,
|
|
1365
|
+
default_unit_rate: String?,
|
|
1366
|
+
grouping_key: String?
|
|
1367
|
+
}
|
|
1172
1368
|
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
unit_rating_key: String,
|
|
1176
|
-
default_unit_rate: String?,
|
|
1177
|
-
grouping_key: String?
|
|
1178
|
-
}
|
|
1369
|
+
class EventOutputConfig < Orb::Internal::Type::BaseModel
|
|
1370
|
+
attr_accessor unit_rating_key: String
|
|
1179
1371
|
|
|
1180
|
-
|
|
1181
|
-
attr_accessor unit_rating_key: String
|
|
1372
|
+
attr_accessor default_unit_rate: String?
|
|
1182
1373
|
|
|
1183
|
-
|
|
1374
|
+
attr_accessor grouping_key: String?
|
|
1184
1375
|
|
|
1185
|
-
|
|
1376
|
+
def initialize: (
|
|
1377
|
+
unit_rating_key: String,
|
|
1378
|
+
?default_unit_rate: String?,
|
|
1379
|
+
?grouping_key: String?
|
|
1380
|
+
) -> void
|
|
1186
1381
|
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1382
|
+
def to_hash: -> {
|
|
1383
|
+
unit_rating_key: String,
|
|
1384
|
+
default_unit_rate: String?,
|
|
1385
|
+
grouping_key: String?
|
|
1386
|
+
}
|
|
1387
|
+
end
|
|
1388
|
+
end
|
|
1192
1389
|
|
|
1193
|
-
def
|
|
1194
|
-
unit_rating_key: String,
|
|
1195
|
-
default_unit_rate: String?,
|
|
1196
|
-
grouping_key: String?
|
|
1197
|
-
}
|
|
1390
|
+
def self?.variants: -> ::Array[Orb::Models::PriceCreateParams::body]
|
|
1198
1391
|
end
|
|
1199
1392
|
end
|
|
1200
1393
|
end
|