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
data/lib/orb/models/alert.rb
CHANGED
|
@@ -74,13 +74,36 @@ module Orb
|
|
|
74
74
|
-> { Orb::Internal::Type::ArrayOf[Orb::Alert::BalanceAlertStatus] },
|
|
75
75
|
nil?: true
|
|
76
76
|
|
|
77
|
+
# @!attribute grouping_keys
|
|
78
|
+
# The property keys to group cost alerts by. Only present for cost alerts with
|
|
79
|
+
# grouping enabled.
|
|
80
|
+
#
|
|
81
|
+
# @return [Array<String>, nil]
|
|
82
|
+
optional :grouping_keys, Orb::Internal::Type::ArrayOf[String], nil?: true
|
|
83
|
+
|
|
77
84
|
# @!attribute license_type
|
|
78
85
|
# Minified license type for alert serialization.
|
|
79
86
|
#
|
|
80
87
|
# @return [Orb::Models::Alert::LicenseType, nil]
|
|
81
88
|
optional :license_type, -> { Orb::Alert::LicenseType }, nil?: true
|
|
82
89
|
|
|
83
|
-
# @!
|
|
90
|
+
# @!attribute price_filters
|
|
91
|
+
# Filters scoping which prices are included in grouped cost alert evaluation.
|
|
92
|
+
#
|
|
93
|
+
# @return [Array<Orb::Models::Alert::PriceFilter>, nil]
|
|
94
|
+
optional :price_filters, -> { Orb::Internal::Type::ArrayOf[Orb::Alert::PriceFilter] }, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute threshold_overrides
|
|
97
|
+
# Per-group threshold overrides. Each override maps a specific combination of
|
|
98
|
+
# grouping_keys values to a replacement threshold list. Only present for grouped
|
|
99
|
+
# cost alerts that have at least one override.
|
|
100
|
+
#
|
|
101
|
+
# @return [Array<Orb::Models::Alert::ThresholdOverride>, nil]
|
|
102
|
+
optional :threshold_overrides,
|
|
103
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::Alert::ThresholdOverride] },
|
|
104
|
+
nil?: true
|
|
105
|
+
|
|
106
|
+
# @!method initialize(id:, created_at:, currency:, customer:, enabled:, metric:, plan:, subscription:, thresholds:, type:, balance_alert_status: nil, grouping_keys: nil, license_type: nil, price_filters: nil, threshold_overrides: nil)
|
|
84
107
|
# Some parameter documentations has been truncated, see {Orb::Models::Alert} for
|
|
85
108
|
# more details.
|
|
86
109
|
#
|
|
@@ -112,7 +135,13 @@ module Orb
|
|
|
112
135
|
#
|
|
113
136
|
# @param balance_alert_status [Array<Orb::Models::Alert::BalanceAlertStatus>, nil] The current status of the alert. This field is only present for credit balance a
|
|
114
137
|
#
|
|
138
|
+
# @param grouping_keys [Array<String>, nil] The property keys to group cost alerts by. Only present for cost alerts with gro
|
|
139
|
+
#
|
|
115
140
|
# @param license_type [Orb::Models::Alert::LicenseType, nil] Minified license type for alert serialization.
|
|
141
|
+
#
|
|
142
|
+
# @param price_filters [Array<Orb::Models::Alert::PriceFilter>, nil] Filters scoping which prices are included in grouped cost alert evaluation.
|
|
143
|
+
#
|
|
144
|
+
# @param threshold_overrides [Array<Orb::Models::Alert::ThresholdOverride>, nil] Per-group threshold overrides. Each override maps a specific combination of grou
|
|
116
145
|
|
|
117
146
|
# @see Orb::Models::Alert#metric
|
|
118
147
|
class Metric < Orb::Internal::Type::BaseModel
|
|
@@ -217,6 +246,90 @@ module Orb
|
|
|
217
246
|
#
|
|
218
247
|
# @param id [String]
|
|
219
248
|
end
|
|
249
|
+
|
|
250
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
251
|
+
# @!attribute field
|
|
252
|
+
# The property of the price to filter on.
|
|
253
|
+
#
|
|
254
|
+
# @return [Symbol, Orb::Models::Alert::PriceFilter::Field]
|
|
255
|
+
required :field, enum: -> { Orb::Alert::PriceFilter::Field }
|
|
256
|
+
|
|
257
|
+
# @!attribute operator
|
|
258
|
+
# Should prices that match the filter be included or excluded.
|
|
259
|
+
#
|
|
260
|
+
# @return [Symbol, Orb::Models::Alert::PriceFilter::Operator]
|
|
261
|
+
required :operator, enum: -> { Orb::Alert::PriceFilter::Operator }
|
|
262
|
+
|
|
263
|
+
# @!attribute values
|
|
264
|
+
# The IDs or values that match this filter.
|
|
265
|
+
#
|
|
266
|
+
# @return [Array<String>]
|
|
267
|
+
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
268
|
+
|
|
269
|
+
# @!method initialize(field:, operator:, values:)
|
|
270
|
+
# @param field [Symbol, Orb::Models::Alert::PriceFilter::Field] The property of the price to filter on.
|
|
271
|
+
#
|
|
272
|
+
# @param operator [Symbol, Orb::Models::Alert::PriceFilter::Operator] Should prices that match the filter be included or excluded.
|
|
273
|
+
#
|
|
274
|
+
# @param values [Array<String>] The IDs or values that match this filter.
|
|
275
|
+
|
|
276
|
+
# The property of the price to filter on.
|
|
277
|
+
#
|
|
278
|
+
# @see Orb::Models::Alert::PriceFilter#field
|
|
279
|
+
module Field
|
|
280
|
+
extend Orb::Internal::Type::Enum
|
|
281
|
+
|
|
282
|
+
PRICE_ID = :price_id
|
|
283
|
+
ITEM_ID = :item_id
|
|
284
|
+
PRICE_TYPE = :price_type
|
|
285
|
+
CURRENCY = :currency
|
|
286
|
+
PRICING_UNIT_ID = :pricing_unit_id
|
|
287
|
+
|
|
288
|
+
# @!method self.values
|
|
289
|
+
# @return [Array<Symbol>]
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Should prices that match the filter be included or excluded.
|
|
293
|
+
#
|
|
294
|
+
# @see Orb::Models::Alert::PriceFilter#operator
|
|
295
|
+
module Operator
|
|
296
|
+
extend Orb::Internal::Type::Enum
|
|
297
|
+
|
|
298
|
+
INCLUDES = :includes
|
|
299
|
+
EXCLUDES = :excludes
|
|
300
|
+
|
|
301
|
+
# @!method self.values
|
|
302
|
+
# @return [Array<Symbol>]
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
class ThresholdOverride < Orb::Internal::Type::BaseModel
|
|
307
|
+
# @!attribute group_values
|
|
308
|
+
# The values of the grouping keys that identify this group. The list length
|
|
309
|
+
# matches the alert's grouping_keys.
|
|
310
|
+
#
|
|
311
|
+
# @return [Array<String>]
|
|
312
|
+
required :group_values, Orb::Internal::Type::ArrayOf[String]
|
|
313
|
+
|
|
314
|
+
# @!attribute thresholds
|
|
315
|
+
# The thresholds applied to this group. An empty list means the group is silenced.
|
|
316
|
+
#
|
|
317
|
+
# @return [Array<Orb::Models::Threshold>]
|
|
318
|
+
required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }
|
|
319
|
+
|
|
320
|
+
# @!method initialize(group_values:, thresholds:)
|
|
321
|
+
# Some parameter documentations has been truncated, see
|
|
322
|
+
# {Orb::Models::Alert::ThresholdOverride} for more details.
|
|
323
|
+
#
|
|
324
|
+
# A per-group threshold override on a grouped cost alert.
|
|
325
|
+
#
|
|
326
|
+
# An empty `thresholds` list means the group is silenced (never fires). A
|
|
327
|
+
# non-empty list fully replaces the default thresholds for that group.
|
|
328
|
+
#
|
|
329
|
+
# @param group_values [Array<String>] The values of the grouping keys that identify this group. The list length matche
|
|
330
|
+
#
|
|
331
|
+
# @param thresholds [Array<Orb::Models::Threshold>] The thresholds applied to this group. An empty list means the group is silenced.
|
|
332
|
+
end
|
|
220
333
|
end
|
|
221
334
|
end
|
|
222
335
|
end
|
|
@@ -7,6 +7,11 @@ module Orb
|
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute customer_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :customer_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute currency
|
|
11
16
|
# The case sensitive currency or custom pricing unit to use for this alert.
|
|
12
17
|
#
|
|
@@ -25,7 +30,9 @@ module Orb
|
|
|
25
30
|
# @return [Array<Orb::Models::Threshold>, nil]
|
|
26
31
|
optional :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }, nil?: true
|
|
27
32
|
|
|
28
|
-
# @!method initialize(currency:, type:, thresholds: nil, request_options: {})
|
|
33
|
+
# @!method initialize(customer_id:, currency:, type:, thresholds: nil, request_options: {})
|
|
34
|
+
# @param customer_id [String]
|
|
35
|
+
#
|
|
29
36
|
# @param currency [String] The case sensitive currency or custom pricing unit to use for this alert.
|
|
30
37
|
#
|
|
31
38
|
# @param type [Symbol, Orb::Models::AlertCreateForCustomerParams::Type] The type of alert to create. This must be a valid alert type.
|
|
@@ -7,6 +7,11 @@ module Orb
|
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute external_customer_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :external_customer_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute currency
|
|
11
16
|
# The case sensitive currency or custom pricing unit to use for this alert.
|
|
12
17
|
#
|
|
@@ -25,7 +30,9 @@ module Orb
|
|
|
25
30
|
# @return [Array<Orb::Models::Threshold>, nil]
|
|
26
31
|
optional :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }, nil?: true
|
|
27
32
|
|
|
28
|
-
# @!method initialize(currency:, type:, thresholds: nil, request_options: {})
|
|
33
|
+
# @!method initialize(external_customer_id:, currency:, type:, thresholds: nil, request_options: {})
|
|
34
|
+
# @param external_customer_id [String]
|
|
35
|
+
#
|
|
29
36
|
# @param currency [String] The case sensitive currency or custom pricing unit to use for this alert.
|
|
30
37
|
#
|
|
31
38
|
# @param type [Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type] The type of alert to create. This must be a valid alert type.
|
|
@@ -7,6 +7,11 @@ module Orb
|
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute subscription_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :subscription_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute thresholds
|
|
11
16
|
# The thresholds that define the values at which the alert will be triggered.
|
|
12
17
|
#
|
|
@@ -19,19 +24,68 @@ module Orb
|
|
|
19
24
|
# @return [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type]
|
|
20
25
|
required :type, enum: -> { Orb::AlertCreateForSubscriptionParams::Type }
|
|
21
26
|
|
|
27
|
+
# @!attribute currency
|
|
28
|
+
# The case sensitive currency or custom pricing unit to use for grouped cost
|
|
29
|
+
# alerts. Required when grouping_keys is set.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :currency, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute grouping_keys
|
|
35
|
+
# The property keys to group cost alerts by. Only applicable for cost_exceeded
|
|
36
|
+
# alerts.
|
|
37
|
+
#
|
|
38
|
+
# @return [Array<String>, nil]
|
|
39
|
+
optional :grouping_keys, Orb::Internal::Type::ArrayOf[String], nil?: true
|
|
40
|
+
|
|
22
41
|
# @!attribute metric_id
|
|
23
42
|
# The metric to track usage for.
|
|
24
43
|
#
|
|
25
44
|
# @return [String, nil]
|
|
26
45
|
optional :metric_id, String, nil?: true
|
|
27
46
|
|
|
28
|
-
# @!
|
|
47
|
+
# @!attribute price_filters
|
|
48
|
+
# Filters to scope which prices are included in grouped cost alert evaluation.
|
|
49
|
+
# Supports filtering by price_id, item_id, or price_type with includes/excludes
|
|
50
|
+
# operators. Only applicable when grouping_keys is set.
|
|
51
|
+
#
|
|
52
|
+
# @return [Array<Orb::Models::AlertCreateForSubscriptionParams::PriceFilter>, nil]
|
|
53
|
+
optional :price_filters,
|
|
54
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::AlertCreateForSubscriptionParams::PriceFilter] },
|
|
55
|
+
nil?: true
|
|
56
|
+
|
|
57
|
+
# @!attribute threshold_overrides
|
|
58
|
+
# Per-group threshold overrides. Each override maps a specific combination of
|
|
59
|
+
# grouping_keys values to a list of thresholds that fully replaces the default
|
|
60
|
+
# thresholds for that group. An empty thresholds list silences the group. Groups
|
|
61
|
+
# without an override use the default thresholds. Only applicable when
|
|
62
|
+
# grouping_keys is set.
|
|
63
|
+
#
|
|
64
|
+
# @return [Array<Orb::Models::AlertCreateForSubscriptionParams::ThresholdOverride>, nil]
|
|
65
|
+
optional :threshold_overrides,
|
|
66
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::AlertCreateForSubscriptionParams::ThresholdOverride] },
|
|
67
|
+
nil?: true
|
|
68
|
+
|
|
69
|
+
# @!method initialize(subscription_id:, thresholds:, type:, currency: nil, grouping_keys: nil, metric_id: nil, price_filters: nil, threshold_overrides: nil, request_options: {})
|
|
70
|
+
# Some parameter documentations has been truncated, see
|
|
71
|
+
# {Orb::Models::AlertCreateForSubscriptionParams} for more details.
|
|
72
|
+
#
|
|
73
|
+
# @param subscription_id [String]
|
|
74
|
+
#
|
|
29
75
|
# @param thresholds [Array<Orb::Models::Threshold>] The thresholds that define the values at which the alert will be triggered.
|
|
30
76
|
#
|
|
31
77
|
# @param type [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type] The type of alert to create. This must be a valid alert type.
|
|
32
78
|
#
|
|
79
|
+
# @param currency [String, nil] The case sensitive currency or custom pricing unit to use for grouped cost alert
|
|
80
|
+
#
|
|
81
|
+
# @param grouping_keys [Array<String>, nil] The property keys to group cost alerts by. Only applicable for cost_exceeded ale
|
|
82
|
+
#
|
|
33
83
|
# @param metric_id [String, nil] The metric to track usage for.
|
|
34
84
|
#
|
|
85
|
+
# @param price_filters [Array<Orb::Models::AlertCreateForSubscriptionParams::PriceFilter>, nil] Filters to scope which prices are included in grouped cost alert evaluation. Sup
|
|
86
|
+
#
|
|
87
|
+
# @param threshold_overrides [Array<Orb::Models::AlertCreateForSubscriptionParams::ThresholdOverride>, nil] Per-group threshold overrides. Each override maps a specific combination of grou
|
|
88
|
+
#
|
|
35
89
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
36
90
|
|
|
37
91
|
# The type of alert to create. This must be a valid alert type.
|
|
@@ -44,6 +98,93 @@ module Orb
|
|
|
44
98
|
# @!method self.values
|
|
45
99
|
# @return [Array<Symbol>]
|
|
46
100
|
end
|
|
101
|
+
|
|
102
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
103
|
+
# @!attribute field
|
|
104
|
+
# The property of the price to filter on.
|
|
105
|
+
#
|
|
106
|
+
# @return [Symbol, Orb::Models::AlertCreateForSubscriptionParams::PriceFilter::Field]
|
|
107
|
+
required :field, enum: -> { Orb::AlertCreateForSubscriptionParams::PriceFilter::Field }
|
|
108
|
+
|
|
109
|
+
# @!attribute operator
|
|
110
|
+
# Should prices that match the filter be included or excluded.
|
|
111
|
+
#
|
|
112
|
+
# @return [Symbol, Orb::Models::AlertCreateForSubscriptionParams::PriceFilter::Operator]
|
|
113
|
+
required :operator, enum: -> { Orb::AlertCreateForSubscriptionParams::PriceFilter::Operator }
|
|
114
|
+
|
|
115
|
+
# @!attribute values
|
|
116
|
+
# The IDs or values that match this filter.
|
|
117
|
+
#
|
|
118
|
+
# @return [Array<String>]
|
|
119
|
+
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
120
|
+
|
|
121
|
+
# @!method initialize(field:, operator:, values:)
|
|
122
|
+
# @param field [Symbol, Orb::Models::AlertCreateForSubscriptionParams::PriceFilter::Field] The property of the price to filter on.
|
|
123
|
+
#
|
|
124
|
+
# @param operator [Symbol, Orb::Models::AlertCreateForSubscriptionParams::PriceFilter::Operator] Should prices that match the filter be included or excluded.
|
|
125
|
+
#
|
|
126
|
+
# @param values [Array<String>] The IDs or values that match this filter.
|
|
127
|
+
|
|
128
|
+
# The property of the price to filter on.
|
|
129
|
+
#
|
|
130
|
+
# @see Orb::Models::AlertCreateForSubscriptionParams::PriceFilter#field
|
|
131
|
+
module Field
|
|
132
|
+
extend Orb::Internal::Type::Enum
|
|
133
|
+
|
|
134
|
+
PRICE_ID = :price_id
|
|
135
|
+
ITEM_ID = :item_id
|
|
136
|
+
PRICE_TYPE = :price_type
|
|
137
|
+
CURRENCY = :currency
|
|
138
|
+
PRICING_UNIT_ID = :pricing_unit_id
|
|
139
|
+
|
|
140
|
+
# @!method self.values
|
|
141
|
+
# @return [Array<Symbol>]
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Should prices that match the filter be included or excluded.
|
|
145
|
+
#
|
|
146
|
+
# @see Orb::Models::AlertCreateForSubscriptionParams::PriceFilter#operator
|
|
147
|
+
module Operator
|
|
148
|
+
extend Orb::Internal::Type::Enum
|
|
149
|
+
|
|
150
|
+
INCLUDES = :includes
|
|
151
|
+
EXCLUDES = :excludes
|
|
152
|
+
|
|
153
|
+
# @!method self.values
|
|
154
|
+
# @return [Array<Symbol>]
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
class ThresholdOverride < Orb::Internal::Type::BaseModel
|
|
159
|
+
# @!attribute group_values
|
|
160
|
+
# The values of the grouping keys that identify this group. The list length must
|
|
161
|
+
# match the alert's grouping_keys, and values appear in the same order as
|
|
162
|
+
# grouping_keys.
|
|
163
|
+
#
|
|
164
|
+
# @return [Array<String>]
|
|
165
|
+
required :group_values, Orb::Internal::Type::ArrayOf[String]
|
|
166
|
+
|
|
167
|
+
# @!attribute thresholds
|
|
168
|
+
# The thresholds to apply to this group. An empty list silences alerts for this
|
|
169
|
+
# group. A non-empty list fully replaces the default thresholds for this group.
|
|
170
|
+
#
|
|
171
|
+
# @return [Array<Orb::Models::Threshold>]
|
|
172
|
+
required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }
|
|
173
|
+
|
|
174
|
+
# @!method initialize(group_values:, thresholds:)
|
|
175
|
+
# Some parameter documentations has been truncated, see
|
|
176
|
+
# {Orb::Models::AlertCreateForSubscriptionParams::ThresholdOverride} for more
|
|
177
|
+
# details.
|
|
178
|
+
#
|
|
179
|
+
# Per-group threshold override on a grouped cost alert.
|
|
180
|
+
#
|
|
181
|
+
# - An empty `thresholds` list silences alerts for this group (never fires).
|
|
182
|
+
# - A non-empty list fully replaces the default thresholds for this group.
|
|
183
|
+
#
|
|
184
|
+
# @param group_values [Array<String>] The values of the grouping keys that identify this group. The list length must m
|
|
185
|
+
#
|
|
186
|
+
# @param thresholds [Array<Orb::Models::Threshold>] The thresholds to apply to this group. An empty list silences alerts for this gr
|
|
187
|
+
end
|
|
47
188
|
end
|
|
48
189
|
end
|
|
49
190
|
end
|
|
@@ -7,13 +7,20 @@ module Orb
|
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute alert_configuration_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :alert_configuration_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute subscription_id
|
|
11
16
|
# Used to update the status of a plan alert scoped to this subscription_id
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
14
19
|
optional :subscription_id, String, nil?: true
|
|
15
20
|
|
|
16
|
-
# @!method initialize(subscription_id: nil, request_options: {})
|
|
21
|
+
# @!method initialize(alert_configuration_id:, subscription_id: nil, request_options: {})
|
|
22
|
+
# @param alert_configuration_id [String]
|
|
23
|
+
#
|
|
17
24
|
# @param subscription_id [String, nil] Used to update the status of a plan alert scoped to this subscription_id
|
|
18
25
|
#
|
|
19
26
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -7,13 +7,20 @@ module Orb
|
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute alert_configuration_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :alert_configuration_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute subscription_id
|
|
11
16
|
# Used to update the status of a plan alert scoped to this subscription_id
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
14
19
|
optional :subscription_id, String, nil?: true
|
|
15
20
|
|
|
16
|
-
# @!method initialize(subscription_id: nil, request_options: {})
|
|
21
|
+
# @!method initialize(alert_configuration_id:, subscription_id: nil, request_options: {})
|
|
22
|
+
# @param alert_configuration_id [String]
|
|
23
|
+
#
|
|
17
24
|
# @param subscription_id [String, nil] Used to update the status of a plan alert scoped to this subscription_id
|
|
18
25
|
#
|
|
19
26
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -7,7 +7,13 @@ module Orb
|
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute alert_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :alert_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(alert_id:, request_options: {})
|
|
16
|
+
# @param alert_id [String]
|
|
11
17
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -7,16 +7,135 @@ module Orb
|
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute alert_configuration_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :alert_configuration_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute thresholds
|
|
11
16
|
# The thresholds that define the values at which the alert will be triggered.
|
|
12
17
|
#
|
|
13
18
|
# @return [Array<Orb::Models::Threshold>]
|
|
14
19
|
required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }
|
|
15
20
|
|
|
16
|
-
# @!
|
|
21
|
+
# @!attribute price_filters
|
|
22
|
+
# Replaces the price filters on a grouped cost alert; an empty list clears them.
|
|
23
|
+
# Only applicable to cost alerts with grouping_keys. Omit to leave unchanged.
|
|
24
|
+
#
|
|
25
|
+
# @return [Array<Orb::Models::AlertUpdateParams::PriceFilter>, nil]
|
|
26
|
+
optional :price_filters,
|
|
27
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::AlertUpdateParams::PriceFilter] },
|
|
28
|
+
nil?: true
|
|
29
|
+
|
|
30
|
+
# @!attribute threshold_overrides
|
|
31
|
+
# Replaces the per-group threshold overrides on a grouped cost alert; an empty
|
|
32
|
+
# list clears them. Only applicable to cost alerts with grouping_keys. Omit to
|
|
33
|
+
# leave unchanged.
|
|
34
|
+
#
|
|
35
|
+
# @return [Array<Orb::Models::AlertUpdateParams::ThresholdOverride>, nil]
|
|
36
|
+
optional :threshold_overrides,
|
|
37
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::AlertUpdateParams::ThresholdOverride] },
|
|
38
|
+
nil?: true
|
|
39
|
+
|
|
40
|
+
# @!method initialize(alert_configuration_id:, thresholds:, price_filters: nil, threshold_overrides: nil, request_options: {})
|
|
41
|
+
# Some parameter documentations has been truncated, see
|
|
42
|
+
# {Orb::Models::AlertUpdateParams} for more details.
|
|
43
|
+
#
|
|
44
|
+
# @param alert_configuration_id [String]
|
|
45
|
+
#
|
|
17
46
|
# @param thresholds [Array<Orb::Models::Threshold>] The thresholds that define the values at which the alert will be triggered.
|
|
18
47
|
#
|
|
48
|
+
# @param price_filters [Array<Orb::Models::AlertUpdateParams::PriceFilter>, nil] Replaces the price filters on a grouped cost alert; an empty list clears them. O
|
|
49
|
+
#
|
|
50
|
+
# @param threshold_overrides [Array<Orb::Models::AlertUpdateParams::ThresholdOverride>, nil] Replaces the per-group threshold overrides on a grouped cost alert; an empty lis
|
|
51
|
+
#
|
|
19
52
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
53
|
+
|
|
54
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
55
|
+
# @!attribute field
|
|
56
|
+
# The property of the price to filter on.
|
|
57
|
+
#
|
|
58
|
+
# @return [Symbol, Orb::Models::AlertUpdateParams::PriceFilter::Field]
|
|
59
|
+
required :field, enum: -> { Orb::AlertUpdateParams::PriceFilter::Field }
|
|
60
|
+
|
|
61
|
+
# @!attribute operator
|
|
62
|
+
# Should prices that match the filter be included or excluded.
|
|
63
|
+
#
|
|
64
|
+
# @return [Symbol, Orb::Models::AlertUpdateParams::PriceFilter::Operator]
|
|
65
|
+
required :operator, enum: -> { Orb::AlertUpdateParams::PriceFilter::Operator }
|
|
66
|
+
|
|
67
|
+
# @!attribute values
|
|
68
|
+
# The IDs or values that match this filter.
|
|
69
|
+
#
|
|
70
|
+
# @return [Array<String>]
|
|
71
|
+
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
72
|
+
|
|
73
|
+
# @!method initialize(field:, operator:, values:)
|
|
74
|
+
# @param field [Symbol, Orb::Models::AlertUpdateParams::PriceFilter::Field] The property of the price to filter on.
|
|
75
|
+
#
|
|
76
|
+
# @param operator [Symbol, Orb::Models::AlertUpdateParams::PriceFilter::Operator] Should prices that match the filter be included or excluded.
|
|
77
|
+
#
|
|
78
|
+
# @param values [Array<String>] The IDs or values that match this filter.
|
|
79
|
+
|
|
80
|
+
# The property of the price to filter on.
|
|
81
|
+
#
|
|
82
|
+
# @see Orb::Models::AlertUpdateParams::PriceFilter#field
|
|
83
|
+
module Field
|
|
84
|
+
extend Orb::Internal::Type::Enum
|
|
85
|
+
|
|
86
|
+
PRICE_ID = :price_id
|
|
87
|
+
ITEM_ID = :item_id
|
|
88
|
+
PRICE_TYPE = :price_type
|
|
89
|
+
CURRENCY = :currency
|
|
90
|
+
PRICING_UNIT_ID = :pricing_unit_id
|
|
91
|
+
|
|
92
|
+
# @!method self.values
|
|
93
|
+
# @return [Array<Symbol>]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Should prices that match the filter be included or excluded.
|
|
97
|
+
#
|
|
98
|
+
# @see Orb::Models::AlertUpdateParams::PriceFilter#operator
|
|
99
|
+
module Operator
|
|
100
|
+
extend Orb::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
INCLUDES = :includes
|
|
103
|
+
EXCLUDES = :excludes
|
|
104
|
+
|
|
105
|
+
# @!method self.values
|
|
106
|
+
# @return [Array<Symbol>]
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
class ThresholdOverride < Orb::Internal::Type::BaseModel
|
|
111
|
+
# @!attribute group_values
|
|
112
|
+
# The values of the grouping keys that identify this group. The list length must
|
|
113
|
+
# match the alert's grouping_keys, and values appear in the same order as
|
|
114
|
+
# grouping_keys.
|
|
115
|
+
#
|
|
116
|
+
# @return [Array<String>]
|
|
117
|
+
required :group_values, Orb::Internal::Type::ArrayOf[String]
|
|
118
|
+
|
|
119
|
+
# @!attribute thresholds
|
|
120
|
+
# The thresholds to apply to this group. An empty list silences alerts for this
|
|
121
|
+
# group. A non-empty list fully replaces the default thresholds for this group.
|
|
122
|
+
#
|
|
123
|
+
# @return [Array<Orb::Models::Threshold>]
|
|
124
|
+
required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }
|
|
125
|
+
|
|
126
|
+
# @!method initialize(group_values:, thresholds:)
|
|
127
|
+
# Some parameter documentations has been truncated, see
|
|
128
|
+
# {Orb::Models::AlertUpdateParams::ThresholdOverride} for more details.
|
|
129
|
+
#
|
|
130
|
+
# Per-group threshold override on a grouped cost alert.
|
|
131
|
+
#
|
|
132
|
+
# - An empty `thresholds` list silences alerts for this group (never fires).
|
|
133
|
+
# - A non-empty list fully replaces the default thresholds for this group.
|
|
134
|
+
#
|
|
135
|
+
# @param group_values [Array<String>] The values of the grouping keys that identify this group. The list length must m
|
|
136
|
+
#
|
|
137
|
+
# @param thresholds [Array<Orb::Models::Threshold>] The thresholds to apply to this group. An empty list silences alerts for this gr
|
|
138
|
+
end
|
|
20
139
|
end
|
|
21
140
|
end
|
|
22
141
|
end
|