orb-billing 1.45.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 +13 -1
- data/README.md +1 -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/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/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,349 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
class BackfillReflectedStandardWebhookEvent < Orb::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent,
|
|
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
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
20
|
+
# events in a timeframe.
|
|
21
|
+
sig do
|
|
22
|
+
returns(
|
|
23
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_reader :backfill
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(
|
|
30
|
+
backfill:
|
|
31
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::OrHash
|
|
32
|
+
).void
|
|
33
|
+
end
|
|
34
|
+
attr_writer :backfill
|
|
35
|
+
|
|
36
|
+
# The time at which this event was created, to the second.
|
|
37
|
+
sig { returns(Time) }
|
|
38
|
+
attr_accessor :created_at
|
|
39
|
+
|
|
40
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
41
|
+
# endpoint.
|
|
42
|
+
sig do
|
|
43
|
+
returns(
|
|
44
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
attr_accessor :payload_style
|
|
48
|
+
|
|
49
|
+
sig { returns(T.anything) }
|
|
50
|
+
attr_accessor :properties
|
|
51
|
+
|
|
52
|
+
# The event this payload describes.
|
|
53
|
+
sig do
|
|
54
|
+
returns(
|
|
55
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Type::TaggedSymbol
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
attr_accessor :type
|
|
59
|
+
|
|
60
|
+
# Issued when a backfill is closed and its events are reflected into usage.
|
|
61
|
+
sig do
|
|
62
|
+
params(
|
|
63
|
+
id: String,
|
|
64
|
+
backfill:
|
|
65
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::OrHash,
|
|
66
|
+
created_at: Time,
|
|
67
|
+
payload_style:
|
|
68
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::PayloadStyle::OrSymbol,
|
|
69
|
+
properties: T.anything,
|
|
70
|
+
type:
|
|
71
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Type::OrSymbol
|
|
72
|
+
).returns(T.attached_class)
|
|
73
|
+
end
|
|
74
|
+
def self.new(
|
|
75
|
+
# The ID of this webhook event.
|
|
76
|
+
id:,
|
|
77
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
78
|
+
# events in a timeframe.
|
|
79
|
+
backfill:,
|
|
80
|
+
# The time at which this event was created, to the second.
|
|
81
|
+
created_at:,
|
|
82
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
83
|
+
# endpoint.
|
|
84
|
+
payload_style:,
|
|
85
|
+
properties:,
|
|
86
|
+
# The event this payload describes.
|
|
87
|
+
type:
|
|
88
|
+
)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
sig do
|
|
92
|
+
override.returns(
|
|
93
|
+
{
|
|
94
|
+
id: String,
|
|
95
|
+
backfill:
|
|
96
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill,
|
|
97
|
+
created_at: Time,
|
|
98
|
+
payload_style:
|
|
99
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
100
|
+
properties: T.anything,
|
|
101
|
+
type:
|
|
102
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Type::TaggedSymbol
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
def to_hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class Backfill < Orb::Internal::Type::BaseModel
|
|
110
|
+
OrHash =
|
|
111
|
+
T.type_alias do
|
|
112
|
+
T.any(
|
|
113
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill,
|
|
114
|
+
Orb::Internal::AnyHash
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
sig { returns(String) }
|
|
119
|
+
attr_accessor :id
|
|
120
|
+
|
|
121
|
+
# If in the future, the time at which the backfill will automatically close. If in
|
|
122
|
+
# the past, the time at which the backfill was closed.
|
|
123
|
+
sig { returns(T.nilable(Time)) }
|
|
124
|
+
attr_accessor :close_time
|
|
125
|
+
|
|
126
|
+
sig { returns(Time) }
|
|
127
|
+
attr_accessor :created_at
|
|
128
|
+
|
|
129
|
+
# The Orb-generated ID of the customer to which this backfill is scoped. If
|
|
130
|
+
# `null`, this backfill is scoped to all customers.
|
|
131
|
+
sig { returns(T.nilable(String)) }
|
|
132
|
+
attr_accessor :customer_id
|
|
133
|
+
|
|
134
|
+
# The number of events ingested in this backfill.
|
|
135
|
+
sig { returns(Integer) }
|
|
136
|
+
attr_accessor :events_ingested
|
|
137
|
+
|
|
138
|
+
# If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
139
|
+
# newly ingested events associated with the backfill. If `false`, newly ingested
|
|
140
|
+
# events will be added to the existing events.
|
|
141
|
+
sig { returns(T::Boolean) }
|
|
142
|
+
attr_accessor :replace_existing_events
|
|
143
|
+
|
|
144
|
+
# The time at which this backfill was reverted.
|
|
145
|
+
sig { returns(T.nilable(Time)) }
|
|
146
|
+
attr_accessor :reverted_at
|
|
147
|
+
|
|
148
|
+
# The status of the backfill.
|
|
149
|
+
sig do
|
|
150
|
+
returns(
|
|
151
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
152
|
+
)
|
|
153
|
+
end
|
|
154
|
+
attr_accessor :status
|
|
155
|
+
|
|
156
|
+
sig { returns(Time) }
|
|
157
|
+
attr_accessor :timeframe_end
|
|
158
|
+
|
|
159
|
+
sig { returns(Time) }
|
|
160
|
+
attr_accessor :timeframe_start
|
|
161
|
+
|
|
162
|
+
# A boolean
|
|
163
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
164
|
+
# filter the set of events to deprecate
|
|
165
|
+
sig { returns(T.nilable(String)) }
|
|
166
|
+
attr_accessor :deprecation_filter
|
|
167
|
+
|
|
168
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
169
|
+
# events in a timeframe.
|
|
170
|
+
sig do
|
|
171
|
+
params(
|
|
172
|
+
id: String,
|
|
173
|
+
close_time: T.nilable(Time),
|
|
174
|
+
created_at: Time,
|
|
175
|
+
customer_id: T.nilable(String),
|
|
176
|
+
events_ingested: Integer,
|
|
177
|
+
replace_existing_events: T::Boolean,
|
|
178
|
+
reverted_at: T.nilable(Time),
|
|
179
|
+
status:
|
|
180
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status::OrSymbol,
|
|
181
|
+
timeframe_end: Time,
|
|
182
|
+
timeframe_start: Time,
|
|
183
|
+
deprecation_filter: T.nilable(String)
|
|
184
|
+
).returns(T.attached_class)
|
|
185
|
+
end
|
|
186
|
+
def self.new(
|
|
187
|
+
id:,
|
|
188
|
+
# If in the future, the time at which the backfill will automatically close. If in
|
|
189
|
+
# the past, the time at which the backfill was closed.
|
|
190
|
+
close_time:,
|
|
191
|
+
created_at:,
|
|
192
|
+
# The Orb-generated ID of the customer to which this backfill is scoped. If
|
|
193
|
+
# `null`, this backfill is scoped to all customers.
|
|
194
|
+
customer_id:,
|
|
195
|
+
# The number of events ingested in this backfill.
|
|
196
|
+
events_ingested:,
|
|
197
|
+
# If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
198
|
+
# newly ingested events associated with the backfill. If `false`, newly ingested
|
|
199
|
+
# events will be added to the existing events.
|
|
200
|
+
replace_existing_events:,
|
|
201
|
+
# The time at which this backfill was reverted.
|
|
202
|
+
reverted_at:,
|
|
203
|
+
# The status of the backfill.
|
|
204
|
+
status:,
|
|
205
|
+
timeframe_end:,
|
|
206
|
+
timeframe_start:,
|
|
207
|
+
# A boolean
|
|
208
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
209
|
+
# filter the set of events to deprecate
|
|
210
|
+
deprecation_filter: nil
|
|
211
|
+
)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
sig do
|
|
215
|
+
override.returns(
|
|
216
|
+
{
|
|
217
|
+
id: String,
|
|
218
|
+
close_time: T.nilable(Time),
|
|
219
|
+
created_at: Time,
|
|
220
|
+
customer_id: T.nilable(String),
|
|
221
|
+
events_ingested: Integer,
|
|
222
|
+
replace_existing_events: T::Boolean,
|
|
223
|
+
reverted_at: T.nilable(Time),
|
|
224
|
+
status:
|
|
225
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status::TaggedSymbol,
|
|
226
|
+
timeframe_end: Time,
|
|
227
|
+
timeframe_start: Time,
|
|
228
|
+
deprecation_filter: T.nilable(String)
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
end
|
|
232
|
+
def to_hash
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# The status of the backfill.
|
|
236
|
+
module Status
|
|
237
|
+
extend Orb::Internal::Type::Enum
|
|
238
|
+
|
|
239
|
+
TaggedSymbol =
|
|
240
|
+
T.type_alias do
|
|
241
|
+
T.all(
|
|
242
|
+
Symbol,
|
|
243
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status
|
|
244
|
+
)
|
|
245
|
+
end
|
|
246
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
247
|
+
|
|
248
|
+
PENDING =
|
|
249
|
+
T.let(
|
|
250
|
+
:pending,
|
|
251
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
252
|
+
)
|
|
253
|
+
REFLECTED =
|
|
254
|
+
T.let(
|
|
255
|
+
:reflected,
|
|
256
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
257
|
+
)
|
|
258
|
+
PENDING_REVERT =
|
|
259
|
+
T.let(
|
|
260
|
+
:pending_revert,
|
|
261
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
262
|
+
)
|
|
263
|
+
REVERTED =
|
|
264
|
+
T.let(
|
|
265
|
+
:reverted,
|
|
266
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
sig do
|
|
270
|
+
override.returns(
|
|
271
|
+
T::Array[
|
|
272
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
273
|
+
]
|
|
274
|
+
)
|
|
275
|
+
end
|
|
276
|
+
def self.values
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
282
|
+
# endpoint.
|
|
283
|
+
module PayloadStyle
|
|
284
|
+
extend Orb::Internal::Type::Enum
|
|
285
|
+
|
|
286
|
+
TaggedSymbol =
|
|
287
|
+
T.type_alias do
|
|
288
|
+
T.all(
|
|
289
|
+
Symbol,
|
|
290
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::PayloadStyle
|
|
291
|
+
)
|
|
292
|
+
end
|
|
293
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
294
|
+
|
|
295
|
+
EXPANDED =
|
|
296
|
+
T.let(
|
|
297
|
+
:expanded,
|
|
298
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
299
|
+
)
|
|
300
|
+
STANDARD =
|
|
301
|
+
T.let(
|
|
302
|
+
:standard,
|
|
303
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
304
|
+
)
|
|
305
|
+
|
|
306
|
+
sig do
|
|
307
|
+
override.returns(
|
|
308
|
+
T::Array[
|
|
309
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
310
|
+
]
|
|
311
|
+
)
|
|
312
|
+
end
|
|
313
|
+
def self.values
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# The event this payload describes.
|
|
318
|
+
module Type
|
|
319
|
+
extend Orb::Internal::Type::Enum
|
|
320
|
+
|
|
321
|
+
TaggedSymbol =
|
|
322
|
+
T.type_alias do
|
|
323
|
+
T.all(
|
|
324
|
+
Symbol,
|
|
325
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Type
|
|
326
|
+
)
|
|
327
|
+
end
|
|
328
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
329
|
+
|
|
330
|
+
BACKFILL_REFLECTED =
|
|
331
|
+
T.let(
|
|
332
|
+
:"backfill.reflected",
|
|
333
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Type::TaggedSymbol
|
|
334
|
+
)
|
|
335
|
+
|
|
336
|
+
sig do
|
|
337
|
+
override.returns(
|
|
338
|
+
T::Array[
|
|
339
|
+
Orb::Webhooks::BackfillReflectedStandardWebhookEvent::Type::TaggedSymbol
|
|
340
|
+
]
|
|
341
|
+
)
|
|
342
|
+
end
|
|
343
|
+
def self.values
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
end
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
module Webhooks
|
|
6
|
+
class BackfillRevertedStandardWebhookEvent < Orb::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent,
|
|
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
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
20
|
+
# events in a timeframe.
|
|
21
|
+
sig do
|
|
22
|
+
returns(Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill)
|
|
23
|
+
end
|
|
24
|
+
attr_reader :backfill
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
backfill:
|
|
29
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::OrHash
|
|
30
|
+
).void
|
|
31
|
+
end
|
|
32
|
+
attr_writer :backfill
|
|
33
|
+
|
|
34
|
+
# The time at which this event was created, to the second.
|
|
35
|
+
sig { returns(Time) }
|
|
36
|
+
attr_accessor :created_at
|
|
37
|
+
|
|
38
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
39
|
+
# endpoint.
|
|
40
|
+
sig do
|
|
41
|
+
returns(
|
|
42
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
attr_accessor :payload_style
|
|
46
|
+
|
|
47
|
+
sig { returns(T.anything) }
|
|
48
|
+
attr_accessor :properties
|
|
49
|
+
|
|
50
|
+
# The event this payload describes.
|
|
51
|
+
sig do
|
|
52
|
+
returns(
|
|
53
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Type::TaggedSymbol
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
attr_accessor :type
|
|
57
|
+
|
|
58
|
+
# Issued when a backfill is reverted, removing its events from usage.
|
|
59
|
+
sig do
|
|
60
|
+
params(
|
|
61
|
+
id: String,
|
|
62
|
+
backfill:
|
|
63
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::OrHash,
|
|
64
|
+
created_at: Time,
|
|
65
|
+
payload_style:
|
|
66
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::PayloadStyle::OrSymbol,
|
|
67
|
+
properties: T.anything,
|
|
68
|
+
type:
|
|
69
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Type::OrSymbol
|
|
70
|
+
).returns(T.attached_class)
|
|
71
|
+
end
|
|
72
|
+
def self.new(
|
|
73
|
+
# The ID of this webhook event.
|
|
74
|
+
id:,
|
|
75
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
76
|
+
# events in a timeframe.
|
|
77
|
+
backfill:,
|
|
78
|
+
# The time at which this event was created, to the second.
|
|
79
|
+
created_at:,
|
|
80
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
81
|
+
# endpoint.
|
|
82
|
+
payload_style:,
|
|
83
|
+
properties:,
|
|
84
|
+
# The event this payload describes.
|
|
85
|
+
type:
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
sig do
|
|
90
|
+
override.returns(
|
|
91
|
+
{
|
|
92
|
+
id: String,
|
|
93
|
+
backfill:
|
|
94
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill,
|
|
95
|
+
created_at: Time,
|
|
96
|
+
payload_style:
|
|
97
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
98
|
+
properties: T.anything,
|
|
99
|
+
type:
|
|
100
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Type::TaggedSymbol
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
end
|
|
104
|
+
def to_hash
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
class Backfill < Orb::Internal::Type::BaseModel
|
|
108
|
+
OrHash =
|
|
109
|
+
T.type_alias do
|
|
110
|
+
T.any(
|
|
111
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill,
|
|
112
|
+
Orb::Internal::AnyHash
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
sig { returns(String) }
|
|
117
|
+
attr_accessor :id
|
|
118
|
+
|
|
119
|
+
# If in the future, the time at which the backfill will automatically close. If in
|
|
120
|
+
# the past, the time at which the backfill was closed.
|
|
121
|
+
sig { returns(T.nilable(Time)) }
|
|
122
|
+
attr_accessor :close_time
|
|
123
|
+
|
|
124
|
+
sig { returns(Time) }
|
|
125
|
+
attr_accessor :created_at
|
|
126
|
+
|
|
127
|
+
# The Orb-generated ID of the customer to which this backfill is scoped. If
|
|
128
|
+
# `null`, this backfill is scoped to all customers.
|
|
129
|
+
sig { returns(T.nilable(String)) }
|
|
130
|
+
attr_accessor :customer_id
|
|
131
|
+
|
|
132
|
+
# The number of events ingested in this backfill.
|
|
133
|
+
sig { returns(Integer) }
|
|
134
|
+
attr_accessor :events_ingested
|
|
135
|
+
|
|
136
|
+
# If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
137
|
+
# newly ingested events associated with the backfill. If `false`, newly ingested
|
|
138
|
+
# events will be added to the existing events.
|
|
139
|
+
sig { returns(T::Boolean) }
|
|
140
|
+
attr_accessor :replace_existing_events
|
|
141
|
+
|
|
142
|
+
# The time at which this backfill was reverted.
|
|
143
|
+
sig { returns(T.nilable(Time)) }
|
|
144
|
+
attr_accessor :reverted_at
|
|
145
|
+
|
|
146
|
+
# The status of the backfill.
|
|
147
|
+
sig do
|
|
148
|
+
returns(
|
|
149
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
150
|
+
)
|
|
151
|
+
end
|
|
152
|
+
attr_accessor :status
|
|
153
|
+
|
|
154
|
+
sig { returns(Time) }
|
|
155
|
+
attr_accessor :timeframe_end
|
|
156
|
+
|
|
157
|
+
sig { returns(Time) }
|
|
158
|
+
attr_accessor :timeframe_start
|
|
159
|
+
|
|
160
|
+
# A boolean
|
|
161
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
162
|
+
# filter the set of events to deprecate
|
|
163
|
+
sig { returns(T.nilable(String)) }
|
|
164
|
+
attr_accessor :deprecation_filter
|
|
165
|
+
|
|
166
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
167
|
+
# events in a timeframe.
|
|
168
|
+
sig do
|
|
169
|
+
params(
|
|
170
|
+
id: String,
|
|
171
|
+
close_time: T.nilable(Time),
|
|
172
|
+
created_at: Time,
|
|
173
|
+
customer_id: T.nilable(String),
|
|
174
|
+
events_ingested: Integer,
|
|
175
|
+
replace_existing_events: T::Boolean,
|
|
176
|
+
reverted_at: T.nilable(Time),
|
|
177
|
+
status:
|
|
178
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status::OrSymbol,
|
|
179
|
+
timeframe_end: Time,
|
|
180
|
+
timeframe_start: Time,
|
|
181
|
+
deprecation_filter: T.nilable(String)
|
|
182
|
+
).returns(T.attached_class)
|
|
183
|
+
end
|
|
184
|
+
def self.new(
|
|
185
|
+
id:,
|
|
186
|
+
# If in the future, the time at which the backfill will automatically close. If in
|
|
187
|
+
# the past, the time at which the backfill was closed.
|
|
188
|
+
close_time:,
|
|
189
|
+
created_at:,
|
|
190
|
+
# The Orb-generated ID of the customer to which this backfill is scoped. If
|
|
191
|
+
# `null`, this backfill is scoped to all customers.
|
|
192
|
+
customer_id:,
|
|
193
|
+
# The number of events ingested in this backfill.
|
|
194
|
+
events_ingested:,
|
|
195
|
+
# If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
196
|
+
# newly ingested events associated with the backfill. If `false`, newly ingested
|
|
197
|
+
# events will be added to the existing events.
|
|
198
|
+
replace_existing_events:,
|
|
199
|
+
# The time at which this backfill was reverted.
|
|
200
|
+
reverted_at:,
|
|
201
|
+
# The status of the backfill.
|
|
202
|
+
status:,
|
|
203
|
+
timeframe_end:,
|
|
204
|
+
timeframe_start:,
|
|
205
|
+
# A boolean
|
|
206
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
207
|
+
# filter the set of events to deprecate
|
|
208
|
+
deprecation_filter: nil
|
|
209
|
+
)
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
sig do
|
|
213
|
+
override.returns(
|
|
214
|
+
{
|
|
215
|
+
id: String,
|
|
216
|
+
close_time: T.nilable(Time),
|
|
217
|
+
created_at: Time,
|
|
218
|
+
customer_id: T.nilable(String),
|
|
219
|
+
events_ingested: Integer,
|
|
220
|
+
replace_existing_events: T::Boolean,
|
|
221
|
+
reverted_at: T.nilable(Time),
|
|
222
|
+
status:
|
|
223
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status::TaggedSymbol,
|
|
224
|
+
timeframe_end: Time,
|
|
225
|
+
timeframe_start: Time,
|
|
226
|
+
deprecation_filter: T.nilable(String)
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
end
|
|
230
|
+
def to_hash
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# The status of the backfill.
|
|
234
|
+
module Status
|
|
235
|
+
extend Orb::Internal::Type::Enum
|
|
236
|
+
|
|
237
|
+
TaggedSymbol =
|
|
238
|
+
T.type_alias do
|
|
239
|
+
T.all(
|
|
240
|
+
Symbol,
|
|
241
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status
|
|
242
|
+
)
|
|
243
|
+
end
|
|
244
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
245
|
+
|
|
246
|
+
PENDING =
|
|
247
|
+
T.let(
|
|
248
|
+
:pending,
|
|
249
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
250
|
+
)
|
|
251
|
+
REFLECTED =
|
|
252
|
+
T.let(
|
|
253
|
+
:reflected,
|
|
254
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
255
|
+
)
|
|
256
|
+
PENDING_REVERT =
|
|
257
|
+
T.let(
|
|
258
|
+
:pending_revert,
|
|
259
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
260
|
+
)
|
|
261
|
+
REVERTED =
|
|
262
|
+
T.let(
|
|
263
|
+
:reverted,
|
|
264
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
265
|
+
)
|
|
266
|
+
|
|
267
|
+
sig do
|
|
268
|
+
override.returns(
|
|
269
|
+
T::Array[
|
|
270
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Backfill::Status::TaggedSymbol
|
|
271
|
+
]
|
|
272
|
+
)
|
|
273
|
+
end
|
|
274
|
+
def self.values
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
280
|
+
# endpoint.
|
|
281
|
+
module PayloadStyle
|
|
282
|
+
extend Orb::Internal::Type::Enum
|
|
283
|
+
|
|
284
|
+
TaggedSymbol =
|
|
285
|
+
T.type_alias do
|
|
286
|
+
T.all(
|
|
287
|
+
Symbol,
|
|
288
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::PayloadStyle
|
|
289
|
+
)
|
|
290
|
+
end
|
|
291
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
292
|
+
|
|
293
|
+
EXPANDED =
|
|
294
|
+
T.let(
|
|
295
|
+
:expanded,
|
|
296
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
297
|
+
)
|
|
298
|
+
STANDARD =
|
|
299
|
+
T.let(
|
|
300
|
+
:standard,
|
|
301
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
sig do
|
|
305
|
+
override.returns(
|
|
306
|
+
T::Array[
|
|
307
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::PayloadStyle::TaggedSymbol
|
|
308
|
+
]
|
|
309
|
+
)
|
|
310
|
+
end
|
|
311
|
+
def self.values
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# The event this payload describes.
|
|
316
|
+
module Type
|
|
317
|
+
extend Orb::Internal::Type::Enum
|
|
318
|
+
|
|
319
|
+
TaggedSymbol =
|
|
320
|
+
T.type_alias do
|
|
321
|
+
T.all(
|
|
322
|
+
Symbol,
|
|
323
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Type
|
|
324
|
+
)
|
|
325
|
+
end
|
|
326
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
327
|
+
|
|
328
|
+
BACKFILL_REVERTED =
|
|
329
|
+
T.let(
|
|
330
|
+
:"backfill.reverted",
|
|
331
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Type::TaggedSymbol
|
|
332
|
+
)
|
|
333
|
+
|
|
334
|
+
sig do
|
|
335
|
+
override.returns(
|
|
336
|
+
T::Array[
|
|
337
|
+
Orb::Webhooks::BackfillRevertedStandardWebhookEvent::Type::TaggedSymbol
|
|
338
|
+
]
|
|
339
|
+
)
|
|
340
|
+
end
|
|
341
|
+
def self.values
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
end
|