orb-billing 1.44.0 → 1.46.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 +19 -0
- data/README.md +1 -1
- data/lib/orb/models/backfill_reflected_webhook_event.rb +24 -1
- data/lib/orb/models/backfill_reverted_webhook_event.rb +24 -1
- data/lib/orb/models/billable_metric_edited_webhook_event.rb +24 -1
- data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +27 -1
- data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +27 -1
- data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_issued_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +24 -1
- data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +24 -1
- data/lib/orb/models/customer_created_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +24 -1
- data/lib/orb/models/customer_edited_webhook_event.rb +24 -1
- data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +27 -1
- data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +27 -1
- data/lib/orb/models/event_unmatched_event_webhook_event.rb +27 -1
- data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +28 -1
- data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_edited_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_issue_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_issued_summary_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_issued_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_processing_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +24 -1
- data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +24 -1
- data/lib/orb/models/payment_method_created_webhook_event.rb +24 -1
- data/lib/orb/models/payment_method_deleted_webhook_event.rb +24 -1
- data/lib/orb/models/plan_created_webhook_event.rb +27 -1
- data/lib/orb/models/plan_default_version_set_webhook_event.rb +27 -1
- data/lib/orb/models/plan_edited_webhook_event.rb +24 -1
- data/lib/orb/models/plan_version_created_webhook_event.rb +27 -1
- data/lib/orb/models/price_edited_webhook_event.rb +24 -1
- data/lib/orb/models/resource_event_test_webhook_event.rb +27 -1
- data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_created_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_edited_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_ended_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_plan_changed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_started_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_trial_ended_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +27 -1
- data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +27 -1
- data/lib/orb/models/webhooks/backfill_reflected_standard_webhook_event.rb +206 -0
- data/lib/orb/models/webhooks/backfill_reverted_standard_webhook_event.rb +206 -0
- data/lib/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rb +131 -0
- data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +537 -0
- data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +531 -0
- data/lib/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rb +188 -0
- data/lib/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rb +183 -0
- data/lib/orb/models/webhooks/credit_note_issued_standard_webhook_event.rb +90 -0
- data/lib/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rb +92 -0
- data/lib/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rb +198 -0
- data/lib/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rb +193 -0
- data/lib/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rb +240 -0
- data/lib/orb/models/webhooks/customer_created_standard_webhook_event.rb +106 -0
- data/lib/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rb +597 -0
- data/lib/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rb +603 -0
- data/lib/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rb +597 -0
- data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +509 -0
- data/lib/orb/models/webhooks/customer_edited_standard_webhook_event.rb +371 -0
- data/lib/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rb +130 -0
- data/lib/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rb +124 -0
- data/lib/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rb +134 -0
- data/lib/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rb +94 -0
- data/lib/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rb +972 -0
- data/lib/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rb +966 -0
- data/lib/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rb +367 -0
- data/lib/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rb +113 -0
- data/lib/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rb +101 -0
- data/lib/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rb +101 -0
- data/lib/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rb +95 -0
- data/lib/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rb +994 -0
- data/lib/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rb +988 -0
- data/lib/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rb +992 -0
- data/lib/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rb +942 -0
- data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +1365 -0
- data/lib/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rb +151 -0
- data/lib/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rb +885 -0
- data/lib/orb/models/webhooks/invoice_issued_standard_webhook_event.rb +884 -0
- data/lib/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rb +887 -0
- data/lib/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rb +899 -0
- data/lib/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rb +876 -0
- data/lib/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rb +899 -0
- data/lib/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rb +893 -0
- data/lib/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rb +908 -0
- data/lib/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rb +890 -0
- data/lib/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rb +892 -0
- data/lib/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rb +875 -0
- data/lib/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rb +125 -0
- data/lib/orb/models/webhooks/payment_method_created_standard_webhook_event.rb +184 -0
- data/lib/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rb +184 -0
- data/lib/orb/models/webhooks/plan_created_standard_webhook_event.rb +119 -0
- data/lib/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rb +139 -0
- data/lib/orb/models/webhooks/plan_edited_standard_webhook_event.rb +159 -0
- data/lib/orb/models/webhooks/plan_version_created_standard_webhook_event.rb +138 -0
- data/lib/orb/models/webhooks/price_edited_standard_webhook_event.rb +132 -0
- data/lib/orb/models/webhooks/resource_event_test_standard_webhook_event.rb +92 -0
- data/lib/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rb +972 -0
- data/lib/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rb +967 -0
- data/lib/orb/models/webhooks/standard_unwrap_standard_params.rb +16 -0
- data/lib/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rb +322 -0
- data/lib/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rb +316 -0
- data/lib/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rb +667 -0
- data/lib/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rb +237 -0
- data/lib/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rb +237 -0
- data/lib/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rb +692 -0
- data/lib/orb/models/webhooks/subscription_created_standard_webhook_event.rb +221 -0
- data/lib/orb/models/webhooks/subscription_edited_standard_webhook_event.rb +273 -0
- data/lib/orb/models/webhooks/subscription_ended_standard_webhook_event.rb +219 -0
- data/lib/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rb +255 -0
- data/lib/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rb +693 -0
- data/lib/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rb +222 -0
- data/lib/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rb +244 -0
- data/lib/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rb +687 -0
- data/lib/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rb +249 -0
- data/lib/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rb +233 -0
- data/lib/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rb +250 -0
- data/lib/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rb +248 -0
- data/lib/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rb +693 -0
- data/lib/orb/models/webhooks/subscription_started_standard_webhook_event.rb +221 -0
- data/lib/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rb +222 -0
- data/lib/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rb +700 -0
- data/lib/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rb +270 -0
- data/lib/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rb +264 -0
- data/lib/orb/models/webhooks/unwrap_standard_webhook_event.rb +258 -0
- data/lib/orb/models.rb +2 -0
- data/lib/orb/resources/webhooks/standard.rb +24 -0
- data/lib/orb/resources/webhooks.rb +4 -0
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +84 -0
- data/rbi/orb/models/backfill_reflected_webhook_event.rbi +47 -0
- data/rbi/orb/models/backfill_reverted_webhook_event.rbi +47 -0
- data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +49 -0
- data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_issued_webhook_event.rbi +47 -0
- data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +49 -0
- data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_created_webhook_event.rbi +47 -0
- data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_edited_webhook_event.rbi +47 -0
- data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +52 -0
- data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +52 -0
- data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +49 -0
- data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_edited_webhook_event.rbi +44 -0
- data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +47 -0
- data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_issued_webhook_event.rbi +44 -0
- data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +47 -0
- data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +49 -0
- data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +52 -0
- data/rbi/orb/models/payment_method_created_webhook_event.rbi +49 -0
- data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +49 -0
- data/rbi/orb/models/plan_created_webhook_event.rbi +42 -0
- data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +49 -0
- data/rbi/orb/models/plan_edited_webhook_event.rbi +42 -0
- data/rbi/orb/models/plan_version_created_webhook_event.rbi +47 -0
- data/rbi/orb/models/price_edited_webhook_event.rbi +42 -0
- data/rbi/orb/models/resource_event_test_webhook_event.rbi +47 -0
- data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_created_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_edited_webhook_event.rbi +47 -0
- data/rbi/orb/models/subscription_ended_webhook_event.rbi +47 -0
- data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_started_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/webhooks/backfill_reflected_standard_webhook_event.rbi +349 -0
- data/rbi/orb/models/webhooks/backfill_reverted_standard_webhook_event.rbi +347 -0
- data/rbi/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbi +273 -0
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +1106 -0
- data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +1095 -0
- data/rbi/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rbi +377 -0
- data/rbi/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rbi +366 -0
- data/rbi/orb/models/webhooks/credit_note_issued_standard_webhook_event.rbi +166 -0
- data/rbi/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rbi +166 -0
- data/rbi/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rbi +403 -0
- data/rbi/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rbi +392 -0
- data/rbi/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rbi +493 -0
- data/rbi/orb/models/webhooks/customer_created_standard_webhook_event.rbi +198 -0
- data/rbi/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rbi +1151 -0
- data/rbi/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rbi +1158 -0
- data/rbi/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rbi +1151 -0
- data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +1044 -0
- data/rbi/orb/models/webhooks/customer_edited_standard_webhook_event.rbi +678 -0
- data/rbi/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rbi +236 -0
- data/rbi/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rbi +230 -0
- data/rbi/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rbi +275 -0
- data/rbi/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rbi +192 -0
- data/rbi/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbi +1705 -0
- data/rbi/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbi +1694 -0
- data/rbi/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rbi +670 -0
- data/rbi/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rbi +210 -0
- data/rbi/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rbi +195 -0
- data/rbi/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rbi +195 -0
- data/rbi/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rbi +188 -0
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbi +1713 -0
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbi +1708 -0
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbi +1713 -0
- data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi +1628 -0
- data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +2337 -0
- data/rbi/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rbi +324 -0
- data/rbi/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbi +1529 -0
- data/rbi/orb/models/webhooks/invoice_issued_standard_webhook_event.rbi +1529 -0
- data/rbi/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbi +1534 -0
- data/rbi/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbi +1549 -0
- data/rbi/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbi +1494 -0
- data/rbi/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbi +1554 -0
- data/rbi/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbi +1547 -0
- data/rbi/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbi +1563 -0
- data/rbi/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbi +1542 -0
- data/rbi/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbi +1544 -0
- data/rbi/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbi +1494 -0
- data/rbi/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rbi +233 -0
- data/rbi/orb/models/webhooks/payment_method_created_standard_webhook_event.rbi +331 -0
- data/rbi/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rbi +331 -0
- data/rbi/orb/models/webhooks/plan_created_standard_webhook_event.rbi +216 -0
- data/rbi/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rbi +277 -0
- data/rbi/orb/models/webhooks/plan_edited_standard_webhook_event.rbi +337 -0
- data/rbi/orb/models/webhooks/plan_version_created_standard_webhook_event.rbi +271 -0
- data/rbi/orb/models/webhooks/price_edited_standard_webhook_event.rbi +311 -0
- data/rbi/orb/models/webhooks/resource_event_test_standard_webhook_event.rbi +191 -0
- data/rbi/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbi +1705 -0
- data/rbi/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbi +1694 -0
- data/rbi/orb/models/webhooks/standard_unwrap_standard_params.rbi +32 -0
- data/rbi/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbi +609 -0
- data/rbi/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbi +598 -0
- data/rbi/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbi +1302 -0
- data/rbi/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbi +433 -0
- data/rbi/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbi +435 -0
- data/rbi/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbi +1298 -0
- data/rbi/orb/models/webhooks/subscription_created_standard_webhook_event.rbi +398 -0
- data/rbi/orb/models/webhooks/subscription_edited_standard_webhook_event.rbi +520 -0
- data/rbi/orb/models/webhooks/subscription_ended_standard_webhook_event.rbi +398 -0
- data/rbi/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbi +458 -0
- data/rbi/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbi +1321 -0
- data/rbi/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbi +428 -0
- data/rbi/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbi +477 -0
- data/rbi/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbi +1319 -0
- data/rbi/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbi +453 -0
- data/rbi/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbi +433 -0
- data/rbi/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbi +457 -0
- data/rbi/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbi +457 -0
- data/rbi/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbi +1299 -0
- data/rbi/orb/models/webhooks/subscription_started_standard_webhook_event.rbi +398 -0
- data/rbi/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbi +398 -0
- data/rbi/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbi +1305 -0
- data/rbi/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rbi +516 -0
- data/rbi/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbi +505 -0
- data/rbi/orb/models/webhooks/unwrap_standard_webhook_event.rbi +107 -0
- data/rbi/orb/models.rbi +2 -0
- data/rbi/orb/resources/webhooks/standard.rbi +107 -0
- data/rbi/orb/resources/webhooks.rbi +3 -0
- data/sig/orb/models/backfill_reflected_webhook_event.rbs +16 -0
- data/sig/orb/models/backfill_reverted_webhook_event.rbs +16 -0
- data/sig/orb/models/billable_metric_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_issued_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_created_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +16 -0
- data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +16 -0
- data/sig/orb/models/event_unmatched_event_webhook_event.rbs +16 -0
- data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issued_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +16 -0
- data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +16 -0
- data/sig/orb/models/payment_method_created_webhook_event.rbs +16 -0
- data/sig/orb/models/payment_method_deleted_webhook_event.rbs +16 -0
- data/sig/orb/models/plan_created_webhook_event.rbs +16 -0
- data/sig/orb/models/plan_default_version_set_webhook_event.rbs +16 -0
- data/sig/orb/models/plan_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/plan_version_created_webhook_event.rbs +16 -0
- data/sig/orb/models/price_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/resource_event_test_webhook_event.rbs +16 -0
- data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_created_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_started_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/webhooks/backfill_reflected_standard_webhook_event.rbs +148 -0
- data/sig/orb/models/webhooks/backfill_reverted_standard_webhook_event.rbs +148 -0
- data/sig/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbs +112 -0
- data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +435 -0
- data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +430 -0
- data/sig/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rbs +165 -0
- data/sig/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rbs +160 -0
- data/sig/orb/models/webhooks/credit_note_issued_standard_webhook_event.rbs +68 -0
- data/sig/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rbs +68 -0
- data/sig/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rbs +160 -0
- data/sig/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rbs +155 -0
- data/sig/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rbs +189 -0
- data/sig/orb/models/webhooks/customer_created_standard_webhook_event.rbs +68 -0
- data/sig/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rbs +396 -0
- data/sig/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rbs +401 -0
- data/sig/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rbs +396 -0
- data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +386 -0
- data/sig/orb/models/webhooks/customer_edited_standard_webhook_event.rbs +157 -0
- data/sig/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rbs +110 -0
- data/sig/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rbs +105 -0
- data/sig/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rbs +122 -0
- data/sig/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rbs +73 -0
- data/sig/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbs +614 -0
- data/sig/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbs +609 -0
- data/sig/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rbs +331 -0
- data/sig/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rbs +91 -0
- data/sig/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rbs +75 -0
- data/sig/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rbs +75 -0
- data/sig/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rbs +73 -0
- data/sig/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbs +638 -0
- data/sig/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbs +633 -0
- data/sig/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbs +623 -0
- data/sig/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbs +586 -0
- data/sig/orb/models/webhooks/invoice_edited_standard_webhook_event.rbs +859 -0
- data/sig/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rbs +129 -0
- data/sig/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbs +527 -0
- data/sig/orb/models/webhooks/invoice_issued_standard_webhook_event.rbs +527 -0
- data/sig/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbs +527 -0
- data/sig/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbs +540 -0
- data/sig/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbs +517 -0
- data/sig/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbs +544 -0
- data/sig/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbs +538 -0
- data/sig/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbs +549 -0
- data/sig/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbs +536 -0
- data/sig/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbs +536 -0
- data/sig/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbs +517 -0
- data/sig/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rbs +100 -0
- data/sig/orb/models/webhooks/payment_method_created_standard_webhook_event.rbs +130 -0
- data/sig/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rbs +130 -0
- data/sig/orb/models/webhooks/plan_created_standard_webhook_event.rbs +90 -0
- data/sig/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rbs +112 -0
- data/sig/orb/models/webhooks/plan_edited_standard_webhook_event.rbs +134 -0
- data/sig/orb/models/webhooks/plan_version_created_standard_webhook_event.rbs +109 -0
- data/sig/orb/models/webhooks/price_edited_standard_webhook_event.rbs +95 -0
- data/sig/orb/models/webhooks/resource_event_test_standard_webhook_event.rbs +75 -0
- data/sig/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbs +614 -0
- data/sig/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbs +609 -0
- data/sig/orb/models/webhooks/standard_unwrap_standard_params.rbs +17 -0
- data/sig/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbs +256 -0
- data/sig/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbs +251 -0
- data/sig/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbs +466 -0
- data/sig/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbs +169 -0
- data/sig/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbs +169 -0
- data/sig/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbs +475 -0
- data/sig/orb/models/webhooks/subscription_created_standard_webhook_event.rbs +159 -0
- data/sig/orb/models/webhooks/subscription_edited_standard_webhook_event.rbs +218 -0
- data/sig/orb/models/webhooks/subscription_ended_standard_webhook_event.rbs +159 -0
- data/sig/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbs +191 -0
- data/sig/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbs +487 -0
- data/sig/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbs +176 -0
- data/sig/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbs +198 -0
- data/sig/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbs +482 -0
- data/sig/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbs +182 -0
- data/sig/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbs +169 -0
- data/sig/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbs +186 -0
- data/sig/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbs +186 -0
- data/sig/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbs +475 -0
- data/sig/orb/models/webhooks/subscription_started_standard_webhook_event.rbs +159 -0
- data/sig/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbs +159 -0
- data/sig/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbs +480 -0
- data/sig/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rbs +223 -0
- data/sig/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbs +218 -0
- data/sig/orb/models/webhooks/unwrap_standard_webhook_event.rbs +94 -0
- data/sig/orb/models.rbs +2 -0
- data/sig/orb/resources/webhooks/standard.rbs +93 -0
- data/sig/orb/resources/webhooks.rbs +2 -0
- metadata +253 -1
|
@@ -0,0 +1,1305 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
class SubscriptionUsageExceededStandardWebhookEvent < Orb::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent,
|
|
11
|
+
Orb::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# The ID of this webhook event.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# The time at which this event was created, to the second.
|
|
20
|
+
sig { returns(Time) }
|
|
21
|
+
attr_accessor :created_at
|
|
22
|
+
|
|
23
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
24
|
+
# endpoint.
|
|
25
|
+
sig do
|
|
26
|
+
returns(
|
|
27
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
attr_accessor :payload_style
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
returns(
|
|
34
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
attr_reader :properties
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
properties:
|
|
42
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::OrHash
|
|
43
|
+
).void
|
|
44
|
+
end
|
|
45
|
+
attr_writer :properties
|
|
46
|
+
|
|
47
|
+
# The subscription in a standard webhook payload: the fields readable without
|
|
48
|
+
# to_subscription_params(), which every interval, billing period and plan phase
|
|
49
|
+
# depends on.
|
|
50
|
+
sig do
|
|
51
|
+
returns(
|
|
52
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
attr_reader :subscription
|
|
56
|
+
|
|
57
|
+
sig do
|
|
58
|
+
params(
|
|
59
|
+
subscription:
|
|
60
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::OrHash
|
|
61
|
+
).void
|
|
62
|
+
end
|
|
63
|
+
attr_writer :subscription
|
|
64
|
+
|
|
65
|
+
# The event this payload describes.
|
|
66
|
+
sig do
|
|
67
|
+
returns(
|
|
68
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Type::TaggedSymbol
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
attr_accessor :type
|
|
72
|
+
|
|
73
|
+
# Issued when a billable metric in a subscription exceeds a pre-configured
|
|
74
|
+
# quantity threshold.
|
|
75
|
+
sig do
|
|
76
|
+
params(
|
|
77
|
+
id: String,
|
|
78
|
+
created_at: Time,
|
|
79
|
+
payload_style:
|
|
80
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::PayloadStyle::OrSymbol,
|
|
81
|
+
properties:
|
|
82
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::OrHash,
|
|
83
|
+
subscription:
|
|
84
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::OrHash,
|
|
85
|
+
type:
|
|
86
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Type::OrSymbol
|
|
87
|
+
).returns(T.attached_class)
|
|
88
|
+
end
|
|
89
|
+
def self.new(
|
|
90
|
+
# The ID of this webhook event.
|
|
91
|
+
id:,
|
|
92
|
+
# The time at which this event was created, to the second.
|
|
93
|
+
created_at:,
|
|
94
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
95
|
+
# endpoint.
|
|
96
|
+
payload_style:,
|
|
97
|
+
properties:,
|
|
98
|
+
# The subscription in a standard webhook payload: the fields readable without
|
|
99
|
+
# to_subscription_params(), which every interval, billing period and plan phase
|
|
100
|
+
# depends on.
|
|
101
|
+
subscription:,
|
|
102
|
+
# The event this payload describes.
|
|
103
|
+
type:
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
sig do
|
|
108
|
+
override.returns(
|
|
109
|
+
{
|
|
110
|
+
id: String,
|
|
111
|
+
created_at: Time,
|
|
112
|
+
payload_style:
|
|
113
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
114
|
+
properties:
|
|
115
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties,
|
|
116
|
+
subscription:
|
|
117
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription,
|
|
118
|
+
type:
|
|
119
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Type::TaggedSymbol
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
def to_hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
127
|
+
# endpoint.
|
|
128
|
+
module PayloadStyle
|
|
129
|
+
extend Orb::Internal::Type::Enum
|
|
130
|
+
|
|
131
|
+
TaggedSymbol =
|
|
132
|
+
T.type_alias do
|
|
133
|
+
T.all(
|
|
134
|
+
Symbol,
|
|
135
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::PayloadStyle
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
139
|
+
|
|
140
|
+
EXPANDED =
|
|
141
|
+
T.let(
|
|
142
|
+
:expanded,
|
|
143
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
144
|
+
)
|
|
145
|
+
STANDARD =
|
|
146
|
+
T.let(
|
|
147
|
+
:standard,
|
|
148
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
sig do
|
|
152
|
+
override.returns(
|
|
153
|
+
T::Array[
|
|
154
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
155
|
+
]
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
def self.values
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
163
|
+
OrHash =
|
|
164
|
+
T.type_alias do
|
|
165
|
+
T.any(
|
|
166
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties,
|
|
167
|
+
Orb::Internal::AnyHash
|
|
168
|
+
)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
172
|
+
# usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
173
|
+
#
|
|
174
|
+
# Alerts created through the API can be scoped to either customers or
|
|
175
|
+
# subscriptions.
|
|
176
|
+
sig do
|
|
177
|
+
returns(
|
|
178
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration
|
|
179
|
+
)
|
|
180
|
+
end
|
|
181
|
+
attr_reader :alert_configuration
|
|
182
|
+
|
|
183
|
+
sig do
|
|
184
|
+
params(
|
|
185
|
+
alert_configuration:
|
|
186
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::OrHash
|
|
187
|
+
).void
|
|
188
|
+
end
|
|
189
|
+
attr_writer :alert_configuration
|
|
190
|
+
|
|
191
|
+
sig { returns(String) }
|
|
192
|
+
attr_accessor :billable_metric_id
|
|
193
|
+
|
|
194
|
+
sig { returns(T.nilable(Float)) }
|
|
195
|
+
attr_accessor :evaluated_quantity
|
|
196
|
+
|
|
197
|
+
sig { returns(T.nilable(Float)) }
|
|
198
|
+
attr_accessor :quantity_threshold
|
|
199
|
+
|
|
200
|
+
sig { returns(Time) }
|
|
201
|
+
attr_accessor :timeframe_end
|
|
202
|
+
|
|
203
|
+
sig { returns(Time) }
|
|
204
|
+
attr_accessor :timeframe_start
|
|
205
|
+
|
|
206
|
+
sig do
|
|
207
|
+
params(
|
|
208
|
+
alert_configuration:
|
|
209
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::OrHash,
|
|
210
|
+
billable_metric_id: String,
|
|
211
|
+
evaluated_quantity: T.nilable(Float),
|
|
212
|
+
quantity_threshold: T.nilable(Float),
|
|
213
|
+
timeframe_end: Time,
|
|
214
|
+
timeframe_start: Time
|
|
215
|
+
).returns(T.attached_class)
|
|
216
|
+
end
|
|
217
|
+
def self.new(
|
|
218
|
+
# [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
219
|
+
# usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
220
|
+
#
|
|
221
|
+
# Alerts created through the API can be scoped to either customers or
|
|
222
|
+
# subscriptions.
|
|
223
|
+
alert_configuration:,
|
|
224
|
+
billable_metric_id:,
|
|
225
|
+
evaluated_quantity:,
|
|
226
|
+
quantity_threshold:,
|
|
227
|
+
timeframe_end:,
|
|
228
|
+
timeframe_start:
|
|
229
|
+
)
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
sig do
|
|
233
|
+
override.returns(
|
|
234
|
+
{
|
|
235
|
+
alert_configuration:
|
|
236
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration,
|
|
237
|
+
billable_metric_id: String,
|
|
238
|
+
evaluated_quantity: T.nilable(Float),
|
|
239
|
+
quantity_threshold: T.nilable(Float),
|
|
240
|
+
timeframe_end: Time,
|
|
241
|
+
timeframe_start: Time
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
end
|
|
245
|
+
def to_hash
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
class AlertConfiguration < Orb::Internal::Type::BaseModel
|
|
249
|
+
OrHash =
|
|
250
|
+
T.type_alias do
|
|
251
|
+
T.any(
|
|
252
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration,
|
|
253
|
+
Orb::Internal::AnyHash
|
|
254
|
+
)
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Also referred to as alert_id in this documentation.
|
|
258
|
+
sig { returns(String) }
|
|
259
|
+
attr_accessor :id
|
|
260
|
+
|
|
261
|
+
# The creation time of the resource in Orb.
|
|
262
|
+
sig { returns(Time) }
|
|
263
|
+
attr_accessor :created_at
|
|
264
|
+
|
|
265
|
+
# The name of the currency the credit balance or invoice cost is denominated in.
|
|
266
|
+
sig { returns(T.nilable(String)) }
|
|
267
|
+
attr_accessor :currency
|
|
268
|
+
|
|
269
|
+
# The customer the alert applies to.
|
|
270
|
+
sig { returns(T.nilable(Orb::CustomerMinified)) }
|
|
271
|
+
attr_reader :customer
|
|
272
|
+
|
|
273
|
+
sig do
|
|
274
|
+
params(customer: T.nilable(Orb::CustomerMinified::OrHash)).void
|
|
275
|
+
end
|
|
276
|
+
attr_writer :customer
|
|
277
|
+
|
|
278
|
+
# Whether the alert is enabled or disabled.
|
|
279
|
+
sig { returns(T::Boolean) }
|
|
280
|
+
attr_accessor :enabled
|
|
281
|
+
|
|
282
|
+
# The metric the alert applies to.
|
|
283
|
+
sig do
|
|
284
|
+
returns(
|
|
285
|
+
T.nilable(
|
|
286
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Metric
|
|
287
|
+
)
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
attr_reader :metric
|
|
291
|
+
|
|
292
|
+
sig do
|
|
293
|
+
params(
|
|
294
|
+
metric:
|
|
295
|
+
T.nilable(
|
|
296
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Metric::OrHash
|
|
297
|
+
)
|
|
298
|
+
).void
|
|
299
|
+
end
|
|
300
|
+
attr_writer :metric
|
|
301
|
+
|
|
302
|
+
# The plan the alert applies to.
|
|
303
|
+
sig do
|
|
304
|
+
returns(
|
|
305
|
+
T.nilable(
|
|
306
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Plan
|
|
307
|
+
)
|
|
308
|
+
)
|
|
309
|
+
end
|
|
310
|
+
attr_reader :plan
|
|
311
|
+
|
|
312
|
+
sig do
|
|
313
|
+
params(
|
|
314
|
+
plan:
|
|
315
|
+
T.nilable(
|
|
316
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Plan::OrHash
|
|
317
|
+
)
|
|
318
|
+
).void
|
|
319
|
+
end
|
|
320
|
+
attr_writer :plan
|
|
321
|
+
|
|
322
|
+
# The subscription the alert applies to.
|
|
323
|
+
sig { returns(T.nilable(Orb::SubscriptionMinified)) }
|
|
324
|
+
attr_reader :subscription
|
|
325
|
+
|
|
326
|
+
sig do
|
|
327
|
+
params(
|
|
328
|
+
subscription: T.nilable(Orb::SubscriptionMinified::OrHash)
|
|
329
|
+
).void
|
|
330
|
+
end
|
|
331
|
+
attr_writer :subscription
|
|
332
|
+
|
|
333
|
+
# The thresholds that define the conditions under which the alert will be
|
|
334
|
+
# triggered.
|
|
335
|
+
sig do
|
|
336
|
+
returns(
|
|
337
|
+
T.nilable(
|
|
338
|
+
T::Array[
|
|
339
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Threshold
|
|
340
|
+
]
|
|
341
|
+
)
|
|
342
|
+
)
|
|
343
|
+
end
|
|
344
|
+
attr_accessor :thresholds
|
|
345
|
+
|
|
346
|
+
# The type of alert. This must be a valid alert type.
|
|
347
|
+
sig do
|
|
348
|
+
returns(
|
|
349
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
350
|
+
)
|
|
351
|
+
end
|
|
352
|
+
attr_accessor :type
|
|
353
|
+
|
|
354
|
+
# The current status of the alert. This field is only present for credit balance
|
|
355
|
+
# alerts.
|
|
356
|
+
sig do
|
|
357
|
+
returns(
|
|
358
|
+
T.nilable(
|
|
359
|
+
T::Array[
|
|
360
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus
|
|
361
|
+
]
|
|
362
|
+
)
|
|
363
|
+
)
|
|
364
|
+
end
|
|
365
|
+
attr_accessor :balance_alert_status
|
|
366
|
+
|
|
367
|
+
# The property keys to group cost alerts by. Only present for cost alerts with
|
|
368
|
+
# grouping enabled.
|
|
369
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
370
|
+
attr_accessor :grouping_keys
|
|
371
|
+
|
|
372
|
+
# Minified license type for alert serialization.
|
|
373
|
+
sig do
|
|
374
|
+
returns(
|
|
375
|
+
T.nilable(
|
|
376
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::LicenseType
|
|
377
|
+
)
|
|
378
|
+
)
|
|
379
|
+
end
|
|
380
|
+
attr_reader :license_type
|
|
381
|
+
|
|
382
|
+
sig do
|
|
383
|
+
params(
|
|
384
|
+
license_type:
|
|
385
|
+
T.nilable(
|
|
386
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::LicenseType::OrHash
|
|
387
|
+
)
|
|
388
|
+
).void
|
|
389
|
+
end
|
|
390
|
+
attr_writer :license_type
|
|
391
|
+
|
|
392
|
+
# Filters scoping which prices are included in spend and grouped cost alert
|
|
393
|
+
# evaluation. Alerts use the price_id, item_id, and price_type fields only; the
|
|
394
|
+
# alert's pricing unit is reported by currency.
|
|
395
|
+
sig do
|
|
396
|
+
returns(
|
|
397
|
+
T.nilable(
|
|
398
|
+
T::Array[
|
|
399
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter
|
|
400
|
+
]
|
|
401
|
+
)
|
|
402
|
+
)
|
|
403
|
+
end
|
|
404
|
+
attr_accessor :price_filters
|
|
405
|
+
|
|
406
|
+
# Per-group threshold overrides. Each override maps a specific combination of
|
|
407
|
+
# grouping_keys values to a replacement threshold list. Only present for grouped
|
|
408
|
+
# cost alerts that have at least one override.
|
|
409
|
+
sig do
|
|
410
|
+
returns(
|
|
411
|
+
T.nilable(
|
|
412
|
+
T::Array[
|
|
413
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride
|
|
414
|
+
]
|
|
415
|
+
)
|
|
416
|
+
)
|
|
417
|
+
end
|
|
418
|
+
attr_accessor :threshold_overrides
|
|
419
|
+
|
|
420
|
+
# [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
421
|
+
# usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
422
|
+
#
|
|
423
|
+
# Alerts created through the API can be scoped to either customers or
|
|
424
|
+
# subscriptions.
|
|
425
|
+
sig do
|
|
426
|
+
params(
|
|
427
|
+
id: String,
|
|
428
|
+
created_at: Time,
|
|
429
|
+
currency: T.nilable(String),
|
|
430
|
+
customer: T.nilable(Orb::CustomerMinified::OrHash),
|
|
431
|
+
enabled: T::Boolean,
|
|
432
|
+
metric:
|
|
433
|
+
T.nilable(
|
|
434
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Metric::OrHash
|
|
435
|
+
),
|
|
436
|
+
plan:
|
|
437
|
+
T.nilable(
|
|
438
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Plan::OrHash
|
|
439
|
+
),
|
|
440
|
+
subscription: T.nilable(Orb::SubscriptionMinified::OrHash),
|
|
441
|
+
thresholds:
|
|
442
|
+
T.nilable(
|
|
443
|
+
T::Array[
|
|
444
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Threshold::OrHash
|
|
445
|
+
]
|
|
446
|
+
),
|
|
447
|
+
type:
|
|
448
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::OrSymbol,
|
|
449
|
+
balance_alert_status:
|
|
450
|
+
T.nilable(
|
|
451
|
+
T::Array[
|
|
452
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus::OrHash
|
|
453
|
+
]
|
|
454
|
+
),
|
|
455
|
+
grouping_keys: T.nilable(T::Array[String]),
|
|
456
|
+
license_type:
|
|
457
|
+
T.nilable(
|
|
458
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::LicenseType::OrHash
|
|
459
|
+
),
|
|
460
|
+
price_filters:
|
|
461
|
+
T.nilable(
|
|
462
|
+
T::Array[
|
|
463
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::OrHash
|
|
464
|
+
]
|
|
465
|
+
),
|
|
466
|
+
threshold_overrides:
|
|
467
|
+
T.nilable(
|
|
468
|
+
T::Array[
|
|
469
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::OrHash
|
|
470
|
+
]
|
|
471
|
+
)
|
|
472
|
+
).returns(T.attached_class)
|
|
473
|
+
end
|
|
474
|
+
def self.new(
|
|
475
|
+
# Also referred to as alert_id in this documentation.
|
|
476
|
+
id:,
|
|
477
|
+
# The creation time of the resource in Orb.
|
|
478
|
+
created_at:,
|
|
479
|
+
# The name of the currency the credit balance or invoice cost is denominated in.
|
|
480
|
+
currency:,
|
|
481
|
+
# The customer the alert applies to.
|
|
482
|
+
customer:,
|
|
483
|
+
# Whether the alert is enabled or disabled.
|
|
484
|
+
enabled:,
|
|
485
|
+
# The metric the alert applies to.
|
|
486
|
+
metric:,
|
|
487
|
+
# The plan the alert applies to.
|
|
488
|
+
plan:,
|
|
489
|
+
# The subscription the alert applies to.
|
|
490
|
+
subscription:,
|
|
491
|
+
# The thresholds that define the conditions under which the alert will be
|
|
492
|
+
# triggered.
|
|
493
|
+
thresholds:,
|
|
494
|
+
# The type of alert. This must be a valid alert type.
|
|
495
|
+
type:,
|
|
496
|
+
# The current status of the alert. This field is only present for credit balance
|
|
497
|
+
# alerts.
|
|
498
|
+
balance_alert_status: nil,
|
|
499
|
+
# The property keys to group cost alerts by. Only present for cost alerts with
|
|
500
|
+
# grouping enabled.
|
|
501
|
+
grouping_keys: nil,
|
|
502
|
+
# Minified license type for alert serialization.
|
|
503
|
+
license_type: nil,
|
|
504
|
+
# Filters scoping which prices are included in spend and grouped cost alert
|
|
505
|
+
# evaluation. Alerts use the price_id, item_id, and price_type fields only; the
|
|
506
|
+
# alert's pricing unit is reported by currency.
|
|
507
|
+
price_filters: nil,
|
|
508
|
+
# Per-group threshold overrides. Each override maps a specific combination of
|
|
509
|
+
# grouping_keys values to a replacement threshold list. Only present for grouped
|
|
510
|
+
# cost alerts that have at least one override.
|
|
511
|
+
threshold_overrides: nil
|
|
512
|
+
)
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
sig do
|
|
516
|
+
override.returns(
|
|
517
|
+
{
|
|
518
|
+
id: String,
|
|
519
|
+
created_at: Time,
|
|
520
|
+
currency: T.nilable(String),
|
|
521
|
+
customer: T.nilable(Orb::CustomerMinified),
|
|
522
|
+
enabled: T::Boolean,
|
|
523
|
+
metric:
|
|
524
|
+
T.nilable(
|
|
525
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Metric
|
|
526
|
+
),
|
|
527
|
+
plan:
|
|
528
|
+
T.nilable(
|
|
529
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Plan
|
|
530
|
+
),
|
|
531
|
+
subscription: T.nilable(Orb::SubscriptionMinified),
|
|
532
|
+
thresholds:
|
|
533
|
+
T.nilable(
|
|
534
|
+
T::Array[
|
|
535
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Threshold
|
|
536
|
+
]
|
|
537
|
+
),
|
|
538
|
+
type:
|
|
539
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol,
|
|
540
|
+
balance_alert_status:
|
|
541
|
+
T.nilable(
|
|
542
|
+
T::Array[
|
|
543
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus
|
|
544
|
+
]
|
|
545
|
+
),
|
|
546
|
+
grouping_keys: T.nilable(T::Array[String]),
|
|
547
|
+
license_type:
|
|
548
|
+
T.nilable(
|
|
549
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::LicenseType
|
|
550
|
+
),
|
|
551
|
+
price_filters:
|
|
552
|
+
T.nilable(
|
|
553
|
+
T::Array[
|
|
554
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter
|
|
555
|
+
]
|
|
556
|
+
),
|
|
557
|
+
threshold_overrides:
|
|
558
|
+
T.nilable(
|
|
559
|
+
T::Array[
|
|
560
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride
|
|
561
|
+
]
|
|
562
|
+
)
|
|
563
|
+
}
|
|
564
|
+
)
|
|
565
|
+
end
|
|
566
|
+
def to_hash
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
class Metric < Orb::Internal::Type::BaseModel
|
|
570
|
+
OrHash =
|
|
571
|
+
T.type_alias do
|
|
572
|
+
T.any(
|
|
573
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Metric,
|
|
574
|
+
Orb::Internal::AnyHash
|
|
575
|
+
)
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
sig { returns(String) }
|
|
579
|
+
attr_accessor :id
|
|
580
|
+
|
|
581
|
+
# The metric the alert applies to.
|
|
582
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
583
|
+
def self.new(id:)
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
sig { override.returns({ id: String }) }
|
|
587
|
+
def to_hash
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
class Plan < Orb::Internal::Type::BaseModel
|
|
592
|
+
OrHash =
|
|
593
|
+
T.type_alias do
|
|
594
|
+
T.any(
|
|
595
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Plan,
|
|
596
|
+
Orb::Internal::AnyHash
|
|
597
|
+
)
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
sig { returns(T.nilable(String)) }
|
|
601
|
+
attr_accessor :id
|
|
602
|
+
|
|
603
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
604
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
605
|
+
# identifier in your system.
|
|
606
|
+
sig { returns(T.nilable(String)) }
|
|
607
|
+
attr_accessor :external_plan_id
|
|
608
|
+
|
|
609
|
+
sig { returns(T.nilable(String)) }
|
|
610
|
+
attr_accessor :name
|
|
611
|
+
|
|
612
|
+
sig { returns(String) }
|
|
613
|
+
attr_accessor :plan_version
|
|
614
|
+
|
|
615
|
+
# The plan the alert applies to.
|
|
616
|
+
sig do
|
|
617
|
+
params(
|
|
618
|
+
id: T.nilable(String),
|
|
619
|
+
external_plan_id: T.nilable(String),
|
|
620
|
+
name: T.nilable(String),
|
|
621
|
+
plan_version: String
|
|
622
|
+
).returns(T.attached_class)
|
|
623
|
+
end
|
|
624
|
+
def self.new(
|
|
625
|
+
id:,
|
|
626
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
627
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
628
|
+
# identifier in your system.
|
|
629
|
+
external_plan_id:,
|
|
630
|
+
name:,
|
|
631
|
+
plan_version:
|
|
632
|
+
)
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
sig do
|
|
636
|
+
override.returns(
|
|
637
|
+
{
|
|
638
|
+
id: T.nilable(String),
|
|
639
|
+
external_plan_id: T.nilable(String),
|
|
640
|
+
name: T.nilable(String),
|
|
641
|
+
plan_version: String
|
|
642
|
+
}
|
|
643
|
+
)
|
|
644
|
+
end
|
|
645
|
+
def to_hash
|
|
646
|
+
end
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
class Threshold < Orb::Internal::Type::BaseModel
|
|
650
|
+
OrHash =
|
|
651
|
+
T.type_alias do
|
|
652
|
+
T.any(
|
|
653
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Threshold,
|
|
654
|
+
Orb::Internal::AnyHash
|
|
655
|
+
)
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
# The value at which an alert will fire. For credit balance alerts, the alert will
|
|
659
|
+
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
|
660
|
+
# or above this value.
|
|
661
|
+
sig { returns(String) }
|
|
662
|
+
attr_accessor :value
|
|
663
|
+
|
|
664
|
+
# Thresholds are used to define the conditions under which an alert will be
|
|
665
|
+
# triggered.
|
|
666
|
+
sig { params(value: String).returns(T.attached_class) }
|
|
667
|
+
def self.new(
|
|
668
|
+
# The value at which an alert will fire. For credit balance alerts, the alert will
|
|
669
|
+
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
|
670
|
+
# or above this value.
|
|
671
|
+
value:
|
|
672
|
+
)
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
sig { override.returns({ value: String }) }
|
|
676
|
+
def to_hash
|
|
677
|
+
end
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
# The type of alert. This must be a valid alert type.
|
|
681
|
+
module Type
|
|
682
|
+
extend Orb::Internal::Type::Enum
|
|
683
|
+
|
|
684
|
+
TaggedSymbol =
|
|
685
|
+
T.type_alias do
|
|
686
|
+
T.all(
|
|
687
|
+
Symbol,
|
|
688
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type
|
|
689
|
+
)
|
|
690
|
+
end
|
|
691
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
692
|
+
|
|
693
|
+
CREDIT_BALANCE_DEPLETED =
|
|
694
|
+
T.let(
|
|
695
|
+
:credit_balance_depleted,
|
|
696
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
697
|
+
)
|
|
698
|
+
CREDIT_BALANCE_DROPPED =
|
|
699
|
+
T.let(
|
|
700
|
+
:credit_balance_dropped,
|
|
701
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
702
|
+
)
|
|
703
|
+
CREDIT_BALANCE_RECOVERED =
|
|
704
|
+
T.let(
|
|
705
|
+
:credit_balance_recovered,
|
|
706
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
707
|
+
)
|
|
708
|
+
USAGE_EXCEEDED =
|
|
709
|
+
T.let(
|
|
710
|
+
:usage_exceeded,
|
|
711
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
712
|
+
)
|
|
713
|
+
COST_EXCEEDED =
|
|
714
|
+
T.let(
|
|
715
|
+
:cost_exceeded,
|
|
716
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
717
|
+
)
|
|
718
|
+
SPEND_EXCEEDED =
|
|
719
|
+
T.let(
|
|
720
|
+
:spend_exceeded,
|
|
721
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
722
|
+
)
|
|
723
|
+
LICENSE_BALANCE_THRESHOLD_REACHED =
|
|
724
|
+
T.let(
|
|
725
|
+
:license_balance_threshold_reached,
|
|
726
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
727
|
+
)
|
|
728
|
+
|
|
729
|
+
sig do
|
|
730
|
+
override.returns(
|
|
731
|
+
T::Array[
|
|
732
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
|
|
733
|
+
]
|
|
734
|
+
)
|
|
735
|
+
end
|
|
736
|
+
def self.values
|
|
737
|
+
end
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
class BalanceAlertStatus < Orb::Internal::Type::BaseModel
|
|
741
|
+
OrHash =
|
|
742
|
+
T.type_alias do
|
|
743
|
+
T.any(
|
|
744
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus,
|
|
745
|
+
Orb::Internal::AnyHash
|
|
746
|
+
)
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
# Whether the alert is currently in-alert or not.
|
|
750
|
+
sig { returns(T::Boolean) }
|
|
751
|
+
attr_accessor :in_alert
|
|
752
|
+
|
|
753
|
+
# The value of the threshold that defines the alert status.
|
|
754
|
+
sig { returns(String) }
|
|
755
|
+
attr_accessor :threshold_value
|
|
756
|
+
|
|
757
|
+
# Alert status is used to determine if an alert is currently in-alert or not.
|
|
758
|
+
sig do
|
|
759
|
+
params(in_alert: T::Boolean, threshold_value: String).returns(
|
|
760
|
+
T.attached_class
|
|
761
|
+
)
|
|
762
|
+
end
|
|
763
|
+
def self.new(
|
|
764
|
+
# Whether the alert is currently in-alert or not.
|
|
765
|
+
in_alert:,
|
|
766
|
+
# The value of the threshold that defines the alert status.
|
|
767
|
+
threshold_value:
|
|
768
|
+
)
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
sig do
|
|
772
|
+
override.returns(
|
|
773
|
+
{ in_alert: T::Boolean, threshold_value: String }
|
|
774
|
+
)
|
|
775
|
+
end
|
|
776
|
+
def to_hash
|
|
777
|
+
end
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
class LicenseType < Orb::Internal::Type::BaseModel
|
|
781
|
+
OrHash =
|
|
782
|
+
T.type_alias do
|
|
783
|
+
T.any(
|
|
784
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::LicenseType,
|
|
785
|
+
Orb::Internal::AnyHash
|
|
786
|
+
)
|
|
787
|
+
end
|
|
788
|
+
|
|
789
|
+
sig { returns(String) }
|
|
790
|
+
attr_accessor :id
|
|
791
|
+
|
|
792
|
+
# Minified license type for alert serialization.
|
|
793
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
794
|
+
def self.new(id:)
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
sig { override.returns({ id: String }) }
|
|
798
|
+
def to_hash
|
|
799
|
+
end
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
803
|
+
OrHash =
|
|
804
|
+
T.type_alias do
|
|
805
|
+
T.any(
|
|
806
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter,
|
|
807
|
+
Orb::Internal::AnyHash
|
|
808
|
+
)
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
# The property of the price to filter on.
|
|
812
|
+
sig do
|
|
813
|
+
returns(
|
|
814
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
|
|
815
|
+
)
|
|
816
|
+
end
|
|
817
|
+
attr_accessor :field
|
|
818
|
+
|
|
819
|
+
# Should prices that match the filter be included or excluded.
|
|
820
|
+
sig do
|
|
821
|
+
returns(
|
|
822
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol
|
|
823
|
+
)
|
|
824
|
+
end
|
|
825
|
+
attr_accessor :operator
|
|
826
|
+
|
|
827
|
+
# The IDs or values that match this filter.
|
|
828
|
+
sig { returns(T::Array[String]) }
|
|
829
|
+
attr_accessor :values
|
|
830
|
+
|
|
831
|
+
sig do
|
|
832
|
+
params(
|
|
833
|
+
field:
|
|
834
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::OrSymbol,
|
|
835
|
+
operator:
|
|
836
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::OrSymbol,
|
|
837
|
+
values: T::Array[String]
|
|
838
|
+
).returns(T.attached_class)
|
|
839
|
+
end
|
|
840
|
+
def self.new(
|
|
841
|
+
# The property of the price to filter on.
|
|
842
|
+
field:,
|
|
843
|
+
# Should prices that match the filter be included or excluded.
|
|
844
|
+
operator:,
|
|
845
|
+
# The IDs or values that match this filter.
|
|
846
|
+
values:
|
|
847
|
+
)
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
sig do
|
|
851
|
+
override.returns(
|
|
852
|
+
{
|
|
853
|
+
field:
|
|
854
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol,
|
|
855
|
+
operator:
|
|
856
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol,
|
|
857
|
+
values: T::Array[String]
|
|
858
|
+
}
|
|
859
|
+
)
|
|
860
|
+
end
|
|
861
|
+
def to_hash
|
|
862
|
+
end
|
|
863
|
+
|
|
864
|
+
# The property of the price to filter on.
|
|
865
|
+
module Field
|
|
866
|
+
extend Orb::Internal::Type::Enum
|
|
867
|
+
|
|
868
|
+
TaggedSymbol =
|
|
869
|
+
T.type_alias do
|
|
870
|
+
T.all(
|
|
871
|
+
Symbol,
|
|
872
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field
|
|
873
|
+
)
|
|
874
|
+
end
|
|
875
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
876
|
+
|
|
877
|
+
PRICE_ID =
|
|
878
|
+
T.let(
|
|
879
|
+
:price_id,
|
|
880
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
|
|
881
|
+
)
|
|
882
|
+
ITEM_ID =
|
|
883
|
+
T.let(
|
|
884
|
+
:item_id,
|
|
885
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
|
|
886
|
+
)
|
|
887
|
+
PRICE_TYPE =
|
|
888
|
+
T.let(
|
|
889
|
+
:price_type,
|
|
890
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
|
|
891
|
+
)
|
|
892
|
+
CURRENCY =
|
|
893
|
+
T.let(
|
|
894
|
+
:currency,
|
|
895
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
|
|
896
|
+
)
|
|
897
|
+
PRICING_UNIT_ID =
|
|
898
|
+
T.let(
|
|
899
|
+
:pricing_unit_id,
|
|
900
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
|
|
901
|
+
)
|
|
902
|
+
|
|
903
|
+
sig do
|
|
904
|
+
override.returns(
|
|
905
|
+
T::Array[
|
|
906
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
|
|
907
|
+
]
|
|
908
|
+
)
|
|
909
|
+
end
|
|
910
|
+
def self.values
|
|
911
|
+
end
|
|
912
|
+
end
|
|
913
|
+
|
|
914
|
+
# Should prices that match the filter be included or excluded.
|
|
915
|
+
module Operator
|
|
916
|
+
extend Orb::Internal::Type::Enum
|
|
917
|
+
|
|
918
|
+
TaggedSymbol =
|
|
919
|
+
T.type_alias do
|
|
920
|
+
T.all(
|
|
921
|
+
Symbol,
|
|
922
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator
|
|
923
|
+
)
|
|
924
|
+
end
|
|
925
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
926
|
+
|
|
927
|
+
INCLUDES =
|
|
928
|
+
T.let(
|
|
929
|
+
:includes,
|
|
930
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol
|
|
931
|
+
)
|
|
932
|
+
EXCLUDES =
|
|
933
|
+
T.let(
|
|
934
|
+
:excludes,
|
|
935
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol
|
|
936
|
+
)
|
|
937
|
+
|
|
938
|
+
sig do
|
|
939
|
+
override.returns(
|
|
940
|
+
T::Array[
|
|
941
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol
|
|
942
|
+
]
|
|
943
|
+
)
|
|
944
|
+
end
|
|
945
|
+
def self.values
|
|
946
|
+
end
|
|
947
|
+
end
|
|
948
|
+
end
|
|
949
|
+
|
|
950
|
+
class ThresholdOverride < Orb::Internal::Type::BaseModel
|
|
951
|
+
OrHash =
|
|
952
|
+
T.type_alias do
|
|
953
|
+
T.any(
|
|
954
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride,
|
|
955
|
+
Orb::Internal::AnyHash
|
|
956
|
+
)
|
|
957
|
+
end
|
|
958
|
+
|
|
959
|
+
# The values identifying this group, ordered to match group_keys when set and the
|
|
960
|
+
# alert's grouping_keys otherwise.
|
|
961
|
+
sig { returns(T::Array[String]) }
|
|
962
|
+
attr_accessor :group_values
|
|
963
|
+
|
|
964
|
+
# The thresholds applied to this group. An empty list means the group is silenced.
|
|
965
|
+
sig do
|
|
966
|
+
returns(
|
|
967
|
+
T::Array[
|
|
968
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::Threshold
|
|
969
|
+
]
|
|
970
|
+
)
|
|
971
|
+
end
|
|
972
|
+
attr_accessor :thresholds
|
|
973
|
+
|
|
974
|
+
# The subset of the alert's grouping_keys this override binds. Null when the
|
|
975
|
+
# override targets one exact group across every grouping key.
|
|
976
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
977
|
+
attr_accessor :group_keys
|
|
978
|
+
|
|
979
|
+
# A per-group threshold override on a grouped cost alert.
|
|
980
|
+
#
|
|
981
|
+
# An empty `thresholds` list means the group is silenced (never fires). A
|
|
982
|
+
# non-empty list fully replaces the default thresholds for that group.
|
|
983
|
+
sig do
|
|
984
|
+
params(
|
|
985
|
+
group_values: T::Array[String],
|
|
986
|
+
thresholds:
|
|
987
|
+
T::Array[
|
|
988
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::Threshold::OrHash
|
|
989
|
+
],
|
|
990
|
+
group_keys: T.nilable(T::Array[String])
|
|
991
|
+
).returns(T.attached_class)
|
|
992
|
+
end
|
|
993
|
+
def self.new(
|
|
994
|
+
# The values identifying this group, ordered to match group_keys when set and the
|
|
995
|
+
# alert's grouping_keys otherwise.
|
|
996
|
+
group_values:,
|
|
997
|
+
# The thresholds applied to this group. An empty list means the group is silenced.
|
|
998
|
+
thresholds:,
|
|
999
|
+
# The subset of the alert's grouping_keys this override binds. Null when the
|
|
1000
|
+
# override targets one exact group across every grouping key.
|
|
1001
|
+
group_keys: nil
|
|
1002
|
+
)
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
sig do
|
|
1006
|
+
override.returns(
|
|
1007
|
+
{
|
|
1008
|
+
group_values: T::Array[String],
|
|
1009
|
+
thresholds:
|
|
1010
|
+
T::Array[
|
|
1011
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::Threshold
|
|
1012
|
+
],
|
|
1013
|
+
group_keys: T.nilable(T::Array[String])
|
|
1014
|
+
}
|
|
1015
|
+
)
|
|
1016
|
+
end
|
|
1017
|
+
def to_hash
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
class Threshold < Orb::Internal::Type::BaseModel
|
|
1021
|
+
OrHash =
|
|
1022
|
+
T.type_alias do
|
|
1023
|
+
T.any(
|
|
1024
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::Threshold,
|
|
1025
|
+
Orb::Internal::AnyHash
|
|
1026
|
+
)
|
|
1027
|
+
end
|
|
1028
|
+
|
|
1029
|
+
# The value at which an alert will fire. For credit balance alerts, the alert will
|
|
1030
|
+
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
|
1031
|
+
# or above this value.
|
|
1032
|
+
sig { returns(String) }
|
|
1033
|
+
attr_accessor :value
|
|
1034
|
+
|
|
1035
|
+
# Thresholds are used to define the conditions under which an alert will be
|
|
1036
|
+
# triggered.
|
|
1037
|
+
sig { params(value: String).returns(T.attached_class) }
|
|
1038
|
+
def self.new(
|
|
1039
|
+
# The value at which an alert will fire. For credit balance alerts, the alert will
|
|
1040
|
+
# fire at or below this value. For usage and cost alerts, the alert will fire at
|
|
1041
|
+
# or above this value.
|
|
1042
|
+
value:
|
|
1043
|
+
)
|
|
1044
|
+
end
|
|
1045
|
+
|
|
1046
|
+
sig { override.returns({ value: String }) }
|
|
1047
|
+
def to_hash
|
|
1048
|
+
end
|
|
1049
|
+
end
|
|
1050
|
+
end
|
|
1051
|
+
end
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
class Subscription < Orb::Internal::Type::BaseModel
|
|
1055
|
+
OrHash =
|
|
1056
|
+
T.type_alias do
|
|
1057
|
+
T.any(
|
|
1058
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription,
|
|
1059
|
+
Orb::Internal::AnyHash
|
|
1060
|
+
)
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
sig { returns(String) }
|
|
1064
|
+
attr_accessor :id
|
|
1065
|
+
|
|
1066
|
+
sig { returns(Time) }
|
|
1067
|
+
attr_accessor :created_at
|
|
1068
|
+
|
|
1069
|
+
sig { returns(Orb::CustomerMinified) }
|
|
1070
|
+
attr_reader :customer
|
|
1071
|
+
|
|
1072
|
+
sig { params(customer: Orb::CustomerMinified::OrHash).void }
|
|
1073
|
+
attr_writer :customer
|
|
1074
|
+
|
|
1075
|
+
# The date Orb stops billing for this subscription.
|
|
1076
|
+
sig { returns(T.nilable(Time)) }
|
|
1077
|
+
attr_accessor :end_date
|
|
1078
|
+
|
|
1079
|
+
# User specified key-value pairs for the resource. If not present, this defaults
|
|
1080
|
+
# to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1081
|
+
# `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1082
|
+
# `null`.
|
|
1083
|
+
sig { returns(T::Hash[Symbol, String]) }
|
|
1084
|
+
attr_accessor :metadata
|
|
1085
|
+
|
|
1086
|
+
# The name of the subscription.
|
|
1087
|
+
sig { returns(String) }
|
|
1088
|
+
attr_accessor :name
|
|
1089
|
+
|
|
1090
|
+
sig do
|
|
1091
|
+
returns(
|
|
1092
|
+
T.nilable(
|
|
1093
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Plan
|
|
1094
|
+
)
|
|
1095
|
+
)
|
|
1096
|
+
end
|
|
1097
|
+
attr_reader :plan
|
|
1098
|
+
|
|
1099
|
+
sig do
|
|
1100
|
+
params(
|
|
1101
|
+
plan:
|
|
1102
|
+
T.nilable(
|
|
1103
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Plan::OrHash
|
|
1104
|
+
)
|
|
1105
|
+
).void
|
|
1106
|
+
end
|
|
1107
|
+
attr_writer :plan
|
|
1108
|
+
|
|
1109
|
+
# The date Orb starts billing for this subscription.
|
|
1110
|
+
sig { returns(Time) }
|
|
1111
|
+
attr_accessor :start_date
|
|
1112
|
+
|
|
1113
|
+
sig do
|
|
1114
|
+
returns(
|
|
1115
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Status::TaggedSymbol
|
|
1116
|
+
)
|
|
1117
|
+
end
|
|
1118
|
+
attr_accessor :status
|
|
1119
|
+
|
|
1120
|
+
# The subscription in a standard webhook payload: the fields readable without
|
|
1121
|
+
# to_subscription_params(), which every interval, billing period and plan phase
|
|
1122
|
+
# depends on.
|
|
1123
|
+
sig do
|
|
1124
|
+
params(
|
|
1125
|
+
id: String,
|
|
1126
|
+
created_at: Time,
|
|
1127
|
+
customer: Orb::CustomerMinified::OrHash,
|
|
1128
|
+
end_date: T.nilable(Time),
|
|
1129
|
+
metadata: T::Hash[Symbol, String],
|
|
1130
|
+
name: String,
|
|
1131
|
+
plan:
|
|
1132
|
+
T.nilable(
|
|
1133
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Plan::OrHash
|
|
1134
|
+
),
|
|
1135
|
+
start_date: Time,
|
|
1136
|
+
status:
|
|
1137
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Status::OrSymbol
|
|
1138
|
+
).returns(T.attached_class)
|
|
1139
|
+
end
|
|
1140
|
+
def self.new(
|
|
1141
|
+
id:,
|
|
1142
|
+
created_at:,
|
|
1143
|
+
customer:,
|
|
1144
|
+
# The date Orb stops billing for this subscription.
|
|
1145
|
+
end_date:,
|
|
1146
|
+
# User specified key-value pairs for the resource. If not present, this defaults
|
|
1147
|
+
# to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1148
|
+
# `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1149
|
+
# `null`.
|
|
1150
|
+
metadata:,
|
|
1151
|
+
# The name of the subscription.
|
|
1152
|
+
name:,
|
|
1153
|
+
plan:,
|
|
1154
|
+
# The date Orb starts billing for this subscription.
|
|
1155
|
+
start_date:,
|
|
1156
|
+
status:
|
|
1157
|
+
)
|
|
1158
|
+
end
|
|
1159
|
+
|
|
1160
|
+
sig do
|
|
1161
|
+
override.returns(
|
|
1162
|
+
{
|
|
1163
|
+
id: String,
|
|
1164
|
+
created_at: Time,
|
|
1165
|
+
customer: Orb::CustomerMinified,
|
|
1166
|
+
end_date: T.nilable(Time),
|
|
1167
|
+
metadata: T::Hash[Symbol, String],
|
|
1168
|
+
name: String,
|
|
1169
|
+
plan:
|
|
1170
|
+
T.nilable(
|
|
1171
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Plan
|
|
1172
|
+
),
|
|
1173
|
+
start_date: Time,
|
|
1174
|
+
status:
|
|
1175
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Status::TaggedSymbol
|
|
1176
|
+
}
|
|
1177
|
+
)
|
|
1178
|
+
end
|
|
1179
|
+
def to_hash
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
class Plan < Orb::Internal::Type::BaseModel
|
|
1183
|
+
OrHash =
|
|
1184
|
+
T.type_alias do
|
|
1185
|
+
T.any(
|
|
1186
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Plan,
|
|
1187
|
+
Orb::Internal::AnyHash
|
|
1188
|
+
)
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1191
|
+
sig { returns(T.nilable(String)) }
|
|
1192
|
+
attr_accessor :id
|
|
1193
|
+
|
|
1194
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
1195
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
1196
|
+
# identifier in your system.
|
|
1197
|
+
sig { returns(T.nilable(String)) }
|
|
1198
|
+
attr_accessor :external_plan_id
|
|
1199
|
+
|
|
1200
|
+
sig { returns(T.nilable(String)) }
|
|
1201
|
+
attr_accessor :name
|
|
1202
|
+
|
|
1203
|
+
sig do
|
|
1204
|
+
params(
|
|
1205
|
+
id: T.nilable(String),
|
|
1206
|
+
external_plan_id: T.nilable(String),
|
|
1207
|
+
name: T.nilable(String)
|
|
1208
|
+
).returns(T.attached_class)
|
|
1209
|
+
end
|
|
1210
|
+
def self.new(
|
|
1211
|
+
id:,
|
|
1212
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
1213
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
1214
|
+
# identifier in your system.
|
|
1215
|
+
external_plan_id:,
|
|
1216
|
+
name:
|
|
1217
|
+
)
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
sig do
|
|
1221
|
+
override.returns(
|
|
1222
|
+
{
|
|
1223
|
+
id: T.nilable(String),
|
|
1224
|
+
external_plan_id: T.nilable(String),
|
|
1225
|
+
name: T.nilable(String)
|
|
1226
|
+
}
|
|
1227
|
+
)
|
|
1228
|
+
end
|
|
1229
|
+
def to_hash
|
|
1230
|
+
end
|
|
1231
|
+
end
|
|
1232
|
+
|
|
1233
|
+
module Status
|
|
1234
|
+
extend Orb::Internal::Type::Enum
|
|
1235
|
+
|
|
1236
|
+
TaggedSymbol =
|
|
1237
|
+
T.type_alias do
|
|
1238
|
+
T.all(
|
|
1239
|
+
Symbol,
|
|
1240
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Status
|
|
1241
|
+
)
|
|
1242
|
+
end
|
|
1243
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1244
|
+
|
|
1245
|
+
ACTIVE =
|
|
1246
|
+
T.let(
|
|
1247
|
+
:active,
|
|
1248
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Status::TaggedSymbol
|
|
1249
|
+
)
|
|
1250
|
+
ENDED =
|
|
1251
|
+
T.let(
|
|
1252
|
+
:ended,
|
|
1253
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Status::TaggedSymbol
|
|
1254
|
+
)
|
|
1255
|
+
UPCOMING =
|
|
1256
|
+
T.let(
|
|
1257
|
+
:upcoming,
|
|
1258
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Status::TaggedSymbol
|
|
1259
|
+
)
|
|
1260
|
+
|
|
1261
|
+
sig do
|
|
1262
|
+
override.returns(
|
|
1263
|
+
T::Array[
|
|
1264
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Subscription::Status::TaggedSymbol
|
|
1265
|
+
]
|
|
1266
|
+
)
|
|
1267
|
+
end
|
|
1268
|
+
def self.values
|
|
1269
|
+
end
|
|
1270
|
+
end
|
|
1271
|
+
end
|
|
1272
|
+
|
|
1273
|
+
# The event this payload describes.
|
|
1274
|
+
module Type
|
|
1275
|
+
extend Orb::Internal::Type::Enum
|
|
1276
|
+
|
|
1277
|
+
TaggedSymbol =
|
|
1278
|
+
T.type_alias do
|
|
1279
|
+
T.all(
|
|
1280
|
+
Symbol,
|
|
1281
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Type
|
|
1282
|
+
)
|
|
1283
|
+
end
|
|
1284
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1285
|
+
|
|
1286
|
+
SUBSCRIPTION_USAGE_EXCEEDED =
|
|
1287
|
+
T.let(
|
|
1288
|
+
:"subscription.usage_exceeded",
|
|
1289
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Type::TaggedSymbol
|
|
1290
|
+
)
|
|
1291
|
+
|
|
1292
|
+
sig do
|
|
1293
|
+
override.returns(
|
|
1294
|
+
T::Array[
|
|
1295
|
+
Orb::Webhooks::SubscriptionUsageExceededStandardWebhookEvent::Type::TaggedSymbol
|
|
1296
|
+
]
|
|
1297
|
+
)
|
|
1298
|
+
end
|
|
1299
|
+
def self.values
|
|
1300
|
+
end
|
|
1301
|
+
end
|
|
1302
|
+
end
|
|
1303
|
+
end
|
|
1304
|
+
end
|
|
1305
|
+
end
|