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
|
@@ -11,6 +11,9 @@ module Orb
|
|
|
11
11
|
T.any(Orb::AlertCreateForSubscriptionParams, Orb::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :subscription_id
|
|
16
|
+
|
|
14
17
|
# The thresholds that define the values at which the alert will be triggered.
|
|
15
18
|
sig { returns(T::Array[Orb::Threshold]) }
|
|
16
19
|
attr_accessor :thresholds
|
|
@@ -19,25 +22,93 @@ module Orb
|
|
|
19
22
|
sig { returns(Orb::AlertCreateForSubscriptionParams::Type::OrSymbol) }
|
|
20
23
|
attr_accessor :type
|
|
21
24
|
|
|
25
|
+
# The case sensitive currency or custom pricing unit to use for grouped cost
|
|
26
|
+
# alerts. Required when grouping_keys is set.
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_accessor :currency
|
|
29
|
+
|
|
30
|
+
# The property keys to group cost alerts by. Only applicable for cost_exceeded
|
|
31
|
+
# alerts.
|
|
32
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
33
|
+
attr_accessor :grouping_keys
|
|
34
|
+
|
|
22
35
|
# The metric to track usage for.
|
|
23
36
|
sig { returns(T.nilable(String)) }
|
|
24
37
|
attr_accessor :metric_id
|
|
25
38
|
|
|
39
|
+
# Filters to scope which prices are included in grouped cost alert evaluation.
|
|
40
|
+
# Supports filtering by price_id, item_id, or price_type with includes/excludes
|
|
41
|
+
# operators. Only applicable when grouping_keys is set.
|
|
42
|
+
sig do
|
|
43
|
+
returns(
|
|
44
|
+
T.nilable(
|
|
45
|
+
T::Array[Orb::AlertCreateForSubscriptionParams::PriceFilter]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
attr_accessor :price_filters
|
|
50
|
+
|
|
51
|
+
# Per-group threshold overrides. Each override maps a specific combination of
|
|
52
|
+
# grouping_keys values to a list of thresholds that fully replaces the default
|
|
53
|
+
# thresholds for that group. An empty thresholds list silences the group. Groups
|
|
54
|
+
# without an override use the default thresholds. Only applicable when
|
|
55
|
+
# grouping_keys is set.
|
|
56
|
+
sig do
|
|
57
|
+
returns(
|
|
58
|
+
T.nilable(
|
|
59
|
+
T::Array[Orb::AlertCreateForSubscriptionParams::ThresholdOverride]
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
attr_accessor :threshold_overrides
|
|
64
|
+
|
|
26
65
|
sig do
|
|
27
66
|
params(
|
|
67
|
+
subscription_id: String,
|
|
28
68
|
thresholds: T::Array[Orb::Threshold::OrHash],
|
|
29
69
|
type: Orb::AlertCreateForSubscriptionParams::Type::OrSymbol,
|
|
70
|
+
currency: T.nilable(String),
|
|
71
|
+
grouping_keys: T.nilable(T::Array[String]),
|
|
30
72
|
metric_id: T.nilable(String),
|
|
73
|
+
price_filters:
|
|
74
|
+
T.nilable(
|
|
75
|
+
T::Array[
|
|
76
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::OrHash
|
|
77
|
+
]
|
|
78
|
+
),
|
|
79
|
+
threshold_overrides:
|
|
80
|
+
T.nilable(
|
|
81
|
+
T::Array[
|
|
82
|
+
Orb::AlertCreateForSubscriptionParams::ThresholdOverride::OrHash
|
|
83
|
+
]
|
|
84
|
+
),
|
|
31
85
|
request_options: Orb::RequestOptions::OrHash
|
|
32
86
|
).returns(T.attached_class)
|
|
33
87
|
end
|
|
34
88
|
def self.new(
|
|
89
|
+
subscription_id:,
|
|
35
90
|
# The thresholds that define the values at which the alert will be triggered.
|
|
36
91
|
thresholds:,
|
|
37
92
|
# The type of alert to create. This must be a valid alert type.
|
|
38
93
|
type:,
|
|
94
|
+
# The case sensitive currency or custom pricing unit to use for grouped cost
|
|
95
|
+
# alerts. Required when grouping_keys is set.
|
|
96
|
+
currency: nil,
|
|
97
|
+
# The property keys to group cost alerts by. Only applicable for cost_exceeded
|
|
98
|
+
# alerts.
|
|
99
|
+
grouping_keys: nil,
|
|
39
100
|
# The metric to track usage for.
|
|
40
101
|
metric_id: nil,
|
|
102
|
+
# Filters to scope which prices are included in grouped cost alert evaluation.
|
|
103
|
+
# Supports filtering by price_id, item_id, or price_type with includes/excludes
|
|
104
|
+
# operators. Only applicable when grouping_keys is set.
|
|
105
|
+
price_filters: nil,
|
|
106
|
+
# Per-group threshold overrides. Each override maps a specific combination of
|
|
107
|
+
# grouping_keys values to a list of thresholds that fully replaces the default
|
|
108
|
+
# thresholds for that group. An empty thresholds list silences the group. Groups
|
|
109
|
+
# without an override use the default thresholds. Only applicable when
|
|
110
|
+
# grouping_keys is set.
|
|
111
|
+
threshold_overrides: nil,
|
|
41
112
|
request_options: {}
|
|
42
113
|
)
|
|
43
114
|
end
|
|
@@ -45,9 +116,22 @@ module Orb
|
|
|
45
116
|
sig do
|
|
46
117
|
override.returns(
|
|
47
118
|
{
|
|
119
|
+
subscription_id: String,
|
|
48
120
|
thresholds: T::Array[Orb::Threshold],
|
|
49
121
|
type: Orb::AlertCreateForSubscriptionParams::Type::OrSymbol,
|
|
122
|
+
currency: T.nilable(String),
|
|
123
|
+
grouping_keys: T.nilable(T::Array[String]),
|
|
50
124
|
metric_id: T.nilable(String),
|
|
125
|
+
price_filters:
|
|
126
|
+
T.nilable(
|
|
127
|
+
T::Array[Orb::AlertCreateForSubscriptionParams::PriceFilter]
|
|
128
|
+
),
|
|
129
|
+
threshold_overrides:
|
|
130
|
+
T.nilable(
|
|
131
|
+
T::Array[
|
|
132
|
+
Orb::AlertCreateForSubscriptionParams::ThresholdOverride
|
|
133
|
+
]
|
|
134
|
+
),
|
|
51
135
|
request_options: Orb::RequestOptions
|
|
52
136
|
}
|
|
53
137
|
)
|
|
@@ -84,6 +168,207 @@ module Orb
|
|
|
84
168
|
def self.values
|
|
85
169
|
end
|
|
86
170
|
end
|
|
171
|
+
|
|
172
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
173
|
+
OrHash =
|
|
174
|
+
T.type_alias do
|
|
175
|
+
T.any(
|
|
176
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter,
|
|
177
|
+
Orb::Internal::AnyHash
|
|
178
|
+
)
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# The property of the price to filter on.
|
|
182
|
+
sig do
|
|
183
|
+
returns(
|
|
184
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::OrSymbol
|
|
185
|
+
)
|
|
186
|
+
end
|
|
187
|
+
attr_accessor :field
|
|
188
|
+
|
|
189
|
+
# Should prices that match the filter be included or excluded.
|
|
190
|
+
sig do
|
|
191
|
+
returns(
|
|
192
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Operator::OrSymbol
|
|
193
|
+
)
|
|
194
|
+
end
|
|
195
|
+
attr_accessor :operator
|
|
196
|
+
|
|
197
|
+
# The IDs or values that match this filter.
|
|
198
|
+
sig { returns(T::Array[String]) }
|
|
199
|
+
attr_accessor :values
|
|
200
|
+
|
|
201
|
+
sig do
|
|
202
|
+
params(
|
|
203
|
+
field:
|
|
204
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::OrSymbol,
|
|
205
|
+
operator:
|
|
206
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Operator::OrSymbol,
|
|
207
|
+
values: T::Array[String]
|
|
208
|
+
).returns(T.attached_class)
|
|
209
|
+
end
|
|
210
|
+
def self.new(
|
|
211
|
+
# The property of the price to filter on.
|
|
212
|
+
field:,
|
|
213
|
+
# Should prices that match the filter be included or excluded.
|
|
214
|
+
operator:,
|
|
215
|
+
# The IDs or values that match this filter.
|
|
216
|
+
values:
|
|
217
|
+
)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
sig do
|
|
221
|
+
override.returns(
|
|
222
|
+
{
|
|
223
|
+
field:
|
|
224
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::OrSymbol,
|
|
225
|
+
operator:
|
|
226
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Operator::OrSymbol,
|
|
227
|
+
values: T::Array[String]
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
end
|
|
231
|
+
def to_hash
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# The property of the price to filter on.
|
|
235
|
+
module Field
|
|
236
|
+
extend Orb::Internal::Type::Enum
|
|
237
|
+
|
|
238
|
+
TaggedSymbol =
|
|
239
|
+
T.type_alias do
|
|
240
|
+
T.all(
|
|
241
|
+
Symbol,
|
|
242
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field
|
|
243
|
+
)
|
|
244
|
+
end
|
|
245
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
246
|
+
|
|
247
|
+
PRICE_ID =
|
|
248
|
+
T.let(
|
|
249
|
+
:price_id,
|
|
250
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::TaggedSymbol
|
|
251
|
+
)
|
|
252
|
+
ITEM_ID =
|
|
253
|
+
T.let(
|
|
254
|
+
:item_id,
|
|
255
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::TaggedSymbol
|
|
256
|
+
)
|
|
257
|
+
PRICE_TYPE =
|
|
258
|
+
T.let(
|
|
259
|
+
:price_type,
|
|
260
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::TaggedSymbol
|
|
261
|
+
)
|
|
262
|
+
CURRENCY =
|
|
263
|
+
T.let(
|
|
264
|
+
:currency,
|
|
265
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::TaggedSymbol
|
|
266
|
+
)
|
|
267
|
+
PRICING_UNIT_ID =
|
|
268
|
+
T.let(
|
|
269
|
+
:pricing_unit_id,
|
|
270
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::TaggedSymbol
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
sig do
|
|
274
|
+
override.returns(
|
|
275
|
+
T::Array[
|
|
276
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Field::TaggedSymbol
|
|
277
|
+
]
|
|
278
|
+
)
|
|
279
|
+
end
|
|
280
|
+
def self.values
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Should prices that match the filter be included or excluded.
|
|
285
|
+
module Operator
|
|
286
|
+
extend Orb::Internal::Type::Enum
|
|
287
|
+
|
|
288
|
+
TaggedSymbol =
|
|
289
|
+
T.type_alias do
|
|
290
|
+
T.all(
|
|
291
|
+
Symbol,
|
|
292
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Operator
|
|
293
|
+
)
|
|
294
|
+
end
|
|
295
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
296
|
+
|
|
297
|
+
INCLUDES =
|
|
298
|
+
T.let(
|
|
299
|
+
:includes,
|
|
300
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Operator::TaggedSymbol
|
|
301
|
+
)
|
|
302
|
+
EXCLUDES =
|
|
303
|
+
T.let(
|
|
304
|
+
:excludes,
|
|
305
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Operator::TaggedSymbol
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
sig do
|
|
309
|
+
override.returns(
|
|
310
|
+
T::Array[
|
|
311
|
+
Orb::AlertCreateForSubscriptionParams::PriceFilter::Operator::TaggedSymbol
|
|
312
|
+
]
|
|
313
|
+
)
|
|
314
|
+
end
|
|
315
|
+
def self.values
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
class ThresholdOverride < Orb::Internal::Type::BaseModel
|
|
321
|
+
OrHash =
|
|
322
|
+
T.type_alias do
|
|
323
|
+
T.any(
|
|
324
|
+
Orb::AlertCreateForSubscriptionParams::ThresholdOverride,
|
|
325
|
+
Orb::Internal::AnyHash
|
|
326
|
+
)
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# The values of the grouping keys that identify this group. The list length must
|
|
330
|
+
# match the alert's grouping_keys, and values appear in the same order as
|
|
331
|
+
# grouping_keys.
|
|
332
|
+
sig { returns(T::Array[String]) }
|
|
333
|
+
attr_accessor :group_values
|
|
334
|
+
|
|
335
|
+
# The thresholds to apply to this group. An empty list silences alerts for this
|
|
336
|
+
# group. A non-empty list fully replaces the default thresholds for this group.
|
|
337
|
+
sig { returns(T::Array[Orb::Threshold]) }
|
|
338
|
+
attr_accessor :thresholds
|
|
339
|
+
|
|
340
|
+
# Per-group threshold override on a grouped cost alert.
|
|
341
|
+
#
|
|
342
|
+
# - An empty `thresholds` list silences alerts for this group (never fires).
|
|
343
|
+
# - A non-empty list fully replaces the default thresholds for this group.
|
|
344
|
+
sig do
|
|
345
|
+
params(
|
|
346
|
+
group_values: T::Array[String],
|
|
347
|
+
thresholds: T::Array[Orb::Threshold::OrHash]
|
|
348
|
+
).returns(T.attached_class)
|
|
349
|
+
end
|
|
350
|
+
def self.new(
|
|
351
|
+
# The values of the grouping keys that identify this group. The list length must
|
|
352
|
+
# match the alert's grouping_keys, and values appear in the same order as
|
|
353
|
+
# grouping_keys.
|
|
354
|
+
group_values:,
|
|
355
|
+
# The thresholds to apply to this group. An empty list silences alerts for this
|
|
356
|
+
# group. A non-empty list fully replaces the default thresholds for this group.
|
|
357
|
+
thresholds:
|
|
358
|
+
)
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
sig do
|
|
362
|
+
override.returns(
|
|
363
|
+
{
|
|
364
|
+
group_values: T::Array[String],
|
|
365
|
+
thresholds: T::Array[Orb::Threshold]
|
|
366
|
+
}
|
|
367
|
+
)
|
|
368
|
+
end
|
|
369
|
+
def to_hash
|
|
370
|
+
end
|
|
371
|
+
end
|
|
87
372
|
end
|
|
88
373
|
end
|
|
89
374
|
end
|
|
@@ -9,17 +9,22 @@ module Orb
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias { T.any(Orb::AlertDisableParams, Orb::Internal::AnyHash) }
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :alert_configuration_id
|
|
14
|
+
|
|
12
15
|
# Used to update the status of a plan alert scoped to this subscription_id
|
|
13
16
|
sig { returns(T.nilable(String)) }
|
|
14
17
|
attr_accessor :subscription_id
|
|
15
18
|
|
|
16
19
|
sig do
|
|
17
20
|
params(
|
|
21
|
+
alert_configuration_id: String,
|
|
18
22
|
subscription_id: T.nilable(String),
|
|
19
23
|
request_options: Orb::RequestOptions::OrHash
|
|
20
24
|
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
26
|
def self.new(
|
|
27
|
+
alert_configuration_id:,
|
|
23
28
|
# Used to update the status of a plan alert scoped to this subscription_id
|
|
24
29
|
subscription_id: nil,
|
|
25
30
|
request_options: {}
|
|
@@ -29,6 +34,7 @@ module Orb
|
|
|
29
34
|
sig do
|
|
30
35
|
override.returns(
|
|
31
36
|
{
|
|
37
|
+
alert_configuration_id: String,
|
|
32
38
|
subscription_id: T.nilable(String),
|
|
33
39
|
request_options: Orb::RequestOptions
|
|
34
40
|
}
|
|
@@ -9,17 +9,22 @@ module Orb
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias { T.any(Orb::AlertEnableParams, Orb::Internal::AnyHash) }
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :alert_configuration_id
|
|
14
|
+
|
|
12
15
|
# Used to update the status of a plan alert scoped to this subscription_id
|
|
13
16
|
sig { returns(T.nilable(String)) }
|
|
14
17
|
attr_accessor :subscription_id
|
|
15
18
|
|
|
16
19
|
sig do
|
|
17
20
|
params(
|
|
21
|
+
alert_configuration_id: String,
|
|
18
22
|
subscription_id: T.nilable(String),
|
|
19
23
|
request_options: Orb::RequestOptions::OrHash
|
|
20
24
|
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
26
|
def self.new(
|
|
27
|
+
alert_configuration_id:,
|
|
23
28
|
# Used to update the status of a plan alert scoped to this subscription_id
|
|
24
29
|
subscription_id: nil,
|
|
25
30
|
request_options: {}
|
|
@@ -29,6 +34,7 @@ module Orb
|
|
|
29
34
|
sig do
|
|
30
35
|
override.returns(
|
|
31
36
|
{
|
|
37
|
+
alert_configuration_id: String,
|
|
32
38
|
subscription_id: T.nilable(String),
|
|
33
39
|
request_options: Orb::RequestOptions
|
|
34
40
|
}
|
|
@@ -9,15 +9,23 @@ module Orb
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias { T.any(Orb::AlertRetrieveParams, Orb::Internal::AnyHash) }
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :alert_id
|
|
14
|
+
|
|
12
15
|
sig do
|
|
13
|
-
params(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
params(
|
|
17
|
+
alert_id: String,
|
|
18
|
+
request_options: Orb::RequestOptions::OrHash
|
|
19
|
+
).returns(T.attached_class)
|
|
16
20
|
end
|
|
17
|
-
def self.new(request_options: {})
|
|
21
|
+
def self.new(alert_id:, request_options: {})
|
|
18
22
|
end
|
|
19
23
|
|
|
20
|
-
sig
|
|
24
|
+
sig do
|
|
25
|
+
override.returns(
|
|
26
|
+
{ alert_id: String, request_options: Orb::RequestOptions }
|
|
27
|
+
)
|
|
28
|
+
end
|
|
21
29
|
def to_hash
|
|
22
30
|
end
|
|
23
31
|
end
|
|
@@ -9,19 +9,50 @@ module Orb
|
|
|
9
9
|
OrHash =
|
|
10
10
|
T.type_alias { T.any(Orb::AlertUpdateParams, Orb::Internal::AnyHash) }
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :alert_configuration_id
|
|
14
|
+
|
|
12
15
|
# The thresholds that define the values at which the alert will be triggered.
|
|
13
16
|
sig { returns(T::Array[Orb::Threshold]) }
|
|
14
17
|
attr_accessor :thresholds
|
|
15
18
|
|
|
19
|
+
# Replaces the price filters on a grouped cost alert; an empty list clears them.
|
|
20
|
+
# Only applicable to cost alerts with grouping_keys. Omit to leave unchanged.
|
|
21
|
+
sig { returns(T.nilable(T::Array[Orb::AlertUpdateParams::PriceFilter])) }
|
|
22
|
+
attr_accessor :price_filters
|
|
23
|
+
|
|
24
|
+
# Replaces the per-group threshold overrides on a grouped cost alert; an empty
|
|
25
|
+
# list clears them. Only applicable to cost alerts with grouping_keys. Omit to
|
|
26
|
+
# leave unchanged.
|
|
27
|
+
sig do
|
|
28
|
+
returns(T.nilable(T::Array[Orb::AlertUpdateParams::ThresholdOverride]))
|
|
29
|
+
end
|
|
30
|
+
attr_accessor :threshold_overrides
|
|
31
|
+
|
|
16
32
|
sig do
|
|
17
33
|
params(
|
|
34
|
+
alert_configuration_id: String,
|
|
18
35
|
thresholds: T::Array[Orb::Threshold::OrHash],
|
|
36
|
+
price_filters:
|
|
37
|
+
T.nilable(T::Array[Orb::AlertUpdateParams::PriceFilter::OrHash]),
|
|
38
|
+
threshold_overrides:
|
|
39
|
+
T.nilable(
|
|
40
|
+
T::Array[Orb::AlertUpdateParams::ThresholdOverride::OrHash]
|
|
41
|
+
),
|
|
19
42
|
request_options: Orb::RequestOptions::OrHash
|
|
20
43
|
).returns(T.attached_class)
|
|
21
44
|
end
|
|
22
45
|
def self.new(
|
|
46
|
+
alert_configuration_id:,
|
|
23
47
|
# The thresholds that define the values at which the alert will be triggered.
|
|
24
48
|
thresholds:,
|
|
49
|
+
# Replaces the price filters on a grouped cost alert; an empty list clears them.
|
|
50
|
+
# Only applicable to cost alerts with grouping_keys. Omit to leave unchanged.
|
|
51
|
+
price_filters: nil,
|
|
52
|
+
# Replaces the per-group threshold overrides on a grouped cost alert; an empty
|
|
53
|
+
# list clears them. Only applicable to cost alerts with grouping_keys. Omit to
|
|
54
|
+
# leave unchanged.
|
|
55
|
+
threshold_overrides: nil,
|
|
25
56
|
request_options: {}
|
|
26
57
|
)
|
|
27
58
|
end
|
|
@@ -29,13 +60,196 @@ module Orb
|
|
|
29
60
|
sig do
|
|
30
61
|
override.returns(
|
|
31
62
|
{
|
|
63
|
+
alert_configuration_id: String,
|
|
32
64
|
thresholds: T::Array[Orb::Threshold],
|
|
65
|
+
price_filters:
|
|
66
|
+
T.nilable(T::Array[Orb::AlertUpdateParams::PriceFilter]),
|
|
67
|
+
threshold_overrides:
|
|
68
|
+
T.nilable(T::Array[Orb::AlertUpdateParams::ThresholdOverride]),
|
|
33
69
|
request_options: Orb::RequestOptions
|
|
34
70
|
}
|
|
35
71
|
)
|
|
36
72
|
end
|
|
37
73
|
def to_hash
|
|
38
74
|
end
|
|
75
|
+
|
|
76
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
77
|
+
OrHash =
|
|
78
|
+
T.type_alias do
|
|
79
|
+
T.any(Orb::AlertUpdateParams::PriceFilter, Orb::Internal::AnyHash)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# The property of the price to filter on.
|
|
83
|
+
sig { returns(Orb::AlertUpdateParams::PriceFilter::Field::OrSymbol) }
|
|
84
|
+
attr_accessor :field
|
|
85
|
+
|
|
86
|
+
# Should prices that match the filter be included or excluded.
|
|
87
|
+
sig { returns(Orb::AlertUpdateParams::PriceFilter::Operator::OrSymbol) }
|
|
88
|
+
attr_accessor :operator
|
|
89
|
+
|
|
90
|
+
# The IDs or values that match this filter.
|
|
91
|
+
sig { returns(T::Array[String]) }
|
|
92
|
+
attr_accessor :values
|
|
93
|
+
|
|
94
|
+
sig do
|
|
95
|
+
params(
|
|
96
|
+
field: Orb::AlertUpdateParams::PriceFilter::Field::OrSymbol,
|
|
97
|
+
operator: Orb::AlertUpdateParams::PriceFilter::Operator::OrSymbol,
|
|
98
|
+
values: T::Array[String]
|
|
99
|
+
).returns(T.attached_class)
|
|
100
|
+
end
|
|
101
|
+
def self.new(
|
|
102
|
+
# The property of the price to filter on.
|
|
103
|
+
field:,
|
|
104
|
+
# Should prices that match the filter be included or excluded.
|
|
105
|
+
operator:,
|
|
106
|
+
# The IDs or values that match this filter.
|
|
107
|
+
values:
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
sig do
|
|
112
|
+
override.returns(
|
|
113
|
+
{
|
|
114
|
+
field: Orb::AlertUpdateParams::PriceFilter::Field::OrSymbol,
|
|
115
|
+
operator: Orb::AlertUpdateParams::PriceFilter::Operator::OrSymbol,
|
|
116
|
+
values: T::Array[String]
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
def to_hash
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# The property of the price to filter on.
|
|
124
|
+
module Field
|
|
125
|
+
extend Orb::Internal::Type::Enum
|
|
126
|
+
|
|
127
|
+
TaggedSymbol =
|
|
128
|
+
T.type_alias do
|
|
129
|
+
T.all(Symbol, Orb::AlertUpdateParams::PriceFilter::Field)
|
|
130
|
+
end
|
|
131
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
132
|
+
|
|
133
|
+
PRICE_ID =
|
|
134
|
+
T.let(
|
|
135
|
+
:price_id,
|
|
136
|
+
Orb::AlertUpdateParams::PriceFilter::Field::TaggedSymbol
|
|
137
|
+
)
|
|
138
|
+
ITEM_ID =
|
|
139
|
+
T.let(
|
|
140
|
+
:item_id,
|
|
141
|
+
Orb::AlertUpdateParams::PriceFilter::Field::TaggedSymbol
|
|
142
|
+
)
|
|
143
|
+
PRICE_TYPE =
|
|
144
|
+
T.let(
|
|
145
|
+
:price_type,
|
|
146
|
+
Orb::AlertUpdateParams::PriceFilter::Field::TaggedSymbol
|
|
147
|
+
)
|
|
148
|
+
CURRENCY =
|
|
149
|
+
T.let(
|
|
150
|
+
:currency,
|
|
151
|
+
Orb::AlertUpdateParams::PriceFilter::Field::TaggedSymbol
|
|
152
|
+
)
|
|
153
|
+
PRICING_UNIT_ID =
|
|
154
|
+
T.let(
|
|
155
|
+
:pricing_unit_id,
|
|
156
|
+
Orb::AlertUpdateParams::PriceFilter::Field::TaggedSymbol
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
sig do
|
|
160
|
+
override.returns(
|
|
161
|
+
T::Array[Orb::AlertUpdateParams::PriceFilter::Field::TaggedSymbol]
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
def self.values
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Should prices that match the filter be included or excluded.
|
|
169
|
+
module Operator
|
|
170
|
+
extend Orb::Internal::Type::Enum
|
|
171
|
+
|
|
172
|
+
TaggedSymbol =
|
|
173
|
+
T.type_alias do
|
|
174
|
+
T.all(Symbol, Orb::AlertUpdateParams::PriceFilter::Operator)
|
|
175
|
+
end
|
|
176
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
177
|
+
|
|
178
|
+
INCLUDES =
|
|
179
|
+
T.let(
|
|
180
|
+
:includes,
|
|
181
|
+
Orb::AlertUpdateParams::PriceFilter::Operator::TaggedSymbol
|
|
182
|
+
)
|
|
183
|
+
EXCLUDES =
|
|
184
|
+
T.let(
|
|
185
|
+
:excludes,
|
|
186
|
+
Orb::AlertUpdateParams::PriceFilter::Operator::TaggedSymbol
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
sig do
|
|
190
|
+
override.returns(
|
|
191
|
+
T::Array[
|
|
192
|
+
Orb::AlertUpdateParams::PriceFilter::Operator::TaggedSymbol
|
|
193
|
+
]
|
|
194
|
+
)
|
|
195
|
+
end
|
|
196
|
+
def self.values
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
class ThresholdOverride < Orb::Internal::Type::BaseModel
|
|
202
|
+
OrHash =
|
|
203
|
+
T.type_alias do
|
|
204
|
+
T.any(
|
|
205
|
+
Orb::AlertUpdateParams::ThresholdOverride,
|
|
206
|
+
Orb::Internal::AnyHash
|
|
207
|
+
)
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# The values of the grouping keys that identify this group. The list length must
|
|
211
|
+
# match the alert's grouping_keys, and values appear in the same order as
|
|
212
|
+
# grouping_keys.
|
|
213
|
+
sig { returns(T::Array[String]) }
|
|
214
|
+
attr_accessor :group_values
|
|
215
|
+
|
|
216
|
+
# The thresholds to apply to this group. An empty list silences alerts for this
|
|
217
|
+
# group. A non-empty list fully replaces the default thresholds for this group.
|
|
218
|
+
sig { returns(T::Array[Orb::Threshold]) }
|
|
219
|
+
attr_accessor :thresholds
|
|
220
|
+
|
|
221
|
+
# Per-group threshold override on a grouped cost alert.
|
|
222
|
+
#
|
|
223
|
+
# - An empty `thresholds` list silences alerts for this group (never fires).
|
|
224
|
+
# - A non-empty list fully replaces the default thresholds for this group.
|
|
225
|
+
sig do
|
|
226
|
+
params(
|
|
227
|
+
group_values: T::Array[String],
|
|
228
|
+
thresholds: T::Array[Orb::Threshold::OrHash]
|
|
229
|
+
).returns(T.attached_class)
|
|
230
|
+
end
|
|
231
|
+
def self.new(
|
|
232
|
+
# The values of the grouping keys that identify this group. The list length must
|
|
233
|
+
# match the alert's grouping_keys, and values appear in the same order as
|
|
234
|
+
# grouping_keys.
|
|
235
|
+
group_values:,
|
|
236
|
+
# The thresholds to apply to this group. An empty list silences alerts for this
|
|
237
|
+
# group. A non-empty list fully replaces the default thresholds for this group.
|
|
238
|
+
thresholds:
|
|
239
|
+
)
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
sig do
|
|
243
|
+
override.returns(
|
|
244
|
+
{
|
|
245
|
+
group_values: T::Array[String],
|
|
246
|
+
thresholds: T::Array[Orb::Threshold]
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
end
|
|
250
|
+
def to_hash
|
|
251
|
+
end
|
|
252
|
+
end
|
|
39
253
|
end
|
|
40
254
|
end
|
|
41
255
|
end
|