orb-billing 1.34.0 → 1.36.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 +25 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +4 -0
- data/lib/orb/models/backfill_reflected_webhook_event.rb +180 -0
- data/lib/orb/models/backfill_reverted_webhook_event.rb +180 -0
- data/lib/orb/models/billable_metric_edited_webhook_event.rb +104 -0
- data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +499 -0
- data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +494 -0
- data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +161 -0
- data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +155 -0
- data/lib/orb/models/credit_note_issued_webhook_event.rb +65 -0
- data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +65 -0
- data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +171 -0
- data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +165 -0
- data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +212 -0
- data/lib/orb/models/customer_created_webhook_event.rb +81 -0
- data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +560 -0
- data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +566 -0
- data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +560 -0
- data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +474 -0
- data/lib/orb/models/customer_edited_webhook_event.rb +344 -0
- data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +100 -0
- data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +94 -0
- data/lib/orb/models/event_unmatched_event_webhook_event.rb +105 -0
- data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +64 -0
- data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +164 -0
- data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +158 -0
- data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +338 -0
- data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +83 -0
- data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +70 -0
- data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +70 -0
- data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +64 -0
- data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +186 -0
- data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +180 -0
- data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +184 -0
- data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +133 -0
- data/lib/orb/models/invoice_edited_webhook_event.rb +550 -0
- data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +120 -0
- data/lib/orb/models/invoice_issue_failed_webhook_event.rb +79 -0
- data/lib/orb/models/invoice_issued_summary_webhook_event.rb +841 -0
- data/lib/orb/models/invoice_issued_webhook_event.rb +79 -0
- data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +91 -0
- data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +68 -0
- data/lib/orb/models/invoice_payment_failed_webhook_event.rb +92 -0
- data/lib/orb/models/invoice_payment_processing_webhook_event.rb +85 -0
- data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +101 -0
- data/lib/orb/models/invoice_sync_failed_webhook_event.rb +85 -0
- data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +85 -0
- data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +68 -0
- data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +98 -0
- data/lib/orb/models/payment_method_created_webhook_event.rb +156 -0
- data/lib/orb/models/payment_method_deleted_webhook_event.rb +156 -0
- data/lib/orb/models/plan_default_version_set_webhook_event.rb +108 -0
- data/lib/orb/models/plan_version_created_webhook_event.rb +108 -0
- data/lib/orb/models/price_edited_webhook_event.rb +105 -0
- data/lib/orb/models/resource_event_test_webhook_event.rb +64 -0
- data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +164 -0
- data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +158 -0
- data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +178 -0
- data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +172 -0
- data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +624 -0
- data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +93 -0
- data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +93 -0
- data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +540 -0
- data/lib/orb/models/subscription_created_webhook_event.rb +82 -0
- data/lib/orb/models/subscription_edited_webhook_event.rb +134 -0
- data/lib/orb/models/subscription_ended_webhook_event.rb +82 -0
- data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +111 -0
- data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +655 -0
- data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +191 -0
- data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +214 -0
- data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +652 -0
- data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +105 -0
- data/lib/orb/models/subscription_plan_changed_webhook_event.rb +93 -0
- data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +106 -0
- data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +105 -0
- data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +541 -0
- data/lib/orb/models/subscription_started_webhook_event.rb +82 -0
- data/lib/orb/models/subscription_trial_ended_webhook_event.rb +82 -0
- data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +548 -0
- data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +236 -0
- data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +232 -0
- data/lib/orb/models/unwrap_webhook_event.rb +250 -0
- data/lib/orb/models/webhook_unwrap_params.rb +14 -0
- data/lib/orb/models.rb +180 -0
- data/lib/orb/resources/subscriptions.rb +13 -0
- data/lib/orb/resources/webhooks.rb +22 -0
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +82 -0
- data/rbi/orb/client.rbi +3 -0
- data/rbi/orb/models/backfill_reflected_webhook_event.rbi +274 -0
- data/rbi/orb/models/backfill_reverted_webhook_event.rbi +271 -0
- data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +198 -0
- data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +1039 -0
- data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +1034 -0
- data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +315 -0
- data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +310 -0
- data/rbi/orb/models/credit_note_issued_webhook_event.rbi +98 -0
- data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +102 -0
- data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +339 -0
- data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +335 -0
- data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +437 -0
- data/rbi/orb/models/customer_created_webhook_event.rbi +128 -0
- data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +1091 -0
- data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +1096 -0
- data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +1091 -0
- data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +987 -0
- data/rbi/orb/models/customer_edited_webhook_event.rbi +599 -0
- data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +170 -0
- data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +165 -0
- data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +193 -0
- data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +132 -0
- data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +319 -0
- data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +312 -0
- data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +614 -0
- data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +144 -0
- data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +139 -0
- data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +139 -0
- data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +132 -0
- data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +331 -0
- data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +324 -0
- data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +329 -0
- data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +250 -0
- data/rbi/orb/models/invoice_edited_webhook_event.rbi +942 -0
- data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +251 -0
- data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +132 -0
- data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +1432 -0
- data/rbi/orb/models/invoice_issued_webhook_event.rbi +134 -0
- data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +165 -0
- data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +114 -0
- data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +157 -0
- data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +156 -0
- data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +175 -0
- data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +147 -0
- data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +147 -0
- data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +106 -0
- data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +167 -0
- data/rbi/orb/models/payment_method_created_webhook_event.rbi +259 -0
- data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +259 -0
- data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +196 -0
- data/rbi/orb/models/plan_version_created_webhook_event.rbi +190 -0
- data/rbi/orb/models/price_edited_webhook_event.rbi +235 -0
- data/rbi/orb/models/resource_event_test_webhook_event.rbi +116 -0
- data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +321 -0
- data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +316 -0
- data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +353 -0
- data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +346 -0
- data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +1232 -0
- data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +179 -0
- data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +183 -0
- data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +1034 -0
- data/rbi/orb/models/subscription_created_webhook_event.rbi +132 -0
- data/rbi/orb/models/subscription_edited_webhook_event.rbi +247 -0
- data/rbi/orb/models/subscription_ended_webhook_event.rbi +132 -0
- data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +206 -0
- data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +1262 -0
- data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +374 -0
- data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +421 -0
- data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +1265 -0
- data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +198 -0
- data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +169 -0
- data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +205 -0
- data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +199 -0
- data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +1035 -0
- data/rbi/orb/models/subscription_started_webhook_event.rbi +132 -0
- data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +136 -0
- data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +1041 -0
- data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +455 -0
- data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +449 -0
- data/rbi/orb/models/unwrap_webhook_event.rbi +99 -0
- data/rbi/orb/models/webhook_unwrap_params.rbi +25 -0
- data/rbi/orb/models.rbi +224 -0
- data/rbi/orb/resources/subscriptions.rbi +13 -0
- data/rbi/orb/resources/webhooks.rbi +103 -0
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/models/backfill_reflected_webhook_event.rbs +130 -0
- data/sig/orb/models/backfill_reverted_webhook_event.rbs +130 -0
- data/sig/orb/models/billable_metric_edited_webhook_event.rbs +94 -0
- data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +412 -0
- data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +407 -0
- data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +147 -0
- data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +142 -0
- data/sig/orb/models/credit_note_issued_webhook_event.rbs +50 -0
- data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +50 -0
- data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +142 -0
- data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +137 -0
- data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +171 -0
- data/sig/orb/models/customer_created_webhook_event.rbs +50 -0
- data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +374 -0
- data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +379 -0
- data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +374 -0
- data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +364 -0
- data/sig/orb/models/customer_edited_webhook_event.rbs +139 -0
- data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +92 -0
- data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +87 -0
- data/sig/orb/models/event_unmatched_event_webhook_event.rbs +102 -0
- data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +55 -0
- data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +147 -0
- data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +142 -0
- data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +313 -0
- data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +73 -0
- data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +57 -0
- data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +57 -0
- data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +55 -0
- data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +171 -0
- data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +166 -0
- data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +156 -0
- data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +119 -0
- data/sig/orb/models/invoice_edited_webhook_event.rbs +388 -0
- data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +111 -0
- data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +60 -0
- data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +504 -0
- data/sig/orb/models/invoice_issued_webhook_event.rbs +60 -0
- data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +73 -0
- data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +50 -0
- data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +77 -0
- data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +71 -0
- data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +82 -0
- data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +69 -0
- data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +69 -0
- data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +50 -0
- data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +82 -0
- data/sig/orb/models/payment_method_created_webhook_event.rbs +112 -0
- data/sig/orb/models/payment_method_deleted_webhook_event.rbs +112 -0
- data/sig/orb/models/plan_default_version_set_webhook_event.rbs +94 -0
- data/sig/orb/models/plan_version_created_webhook_event.rbs +91 -0
- data/sig/orb/models/price_edited_webhook_event.rbs +77 -0
- data/sig/orb/models/resource_event_test_webhook_event.rbs +57 -0
- data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +147 -0
- data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +142 -0
- data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +147 -0
- data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +142 -0
- data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +444 -0
- data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +60 -0
- data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +60 -0
- data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +362 -0
- data/sig/orb/models/subscription_created_webhook_event.rbs +50 -0
- data/sig/orb/models/subscription_edited_webhook_event.rbs +109 -0
- data/sig/orb/models/subscription_ended_webhook_event.rbs +50 -0
- data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +82 -0
- data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +465 -0
- data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +158 -0
- data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +180 -0
- data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +460 -0
- data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +73 -0
- data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +60 -0
- data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +77 -0
- data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +77 -0
- data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +362 -0
- data/sig/orb/models/subscription_started_webhook_event.rbs +50 -0
- data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +50 -0
- data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +367 -0
- data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +205 -0
- data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +200 -0
- data/sig/orb/models/unwrap_webhook_event.rbs +90 -0
- data/sig/orb/models/webhook_unwrap_params.rbs +14 -0
- data/sig/orb/models.rbs +162 -0
- data/sig/orb/resources/webhooks.rbs +89 -0
- metadata +248 -2
data/lib/orb/version.rb
CHANGED
data/lib/orb.rb
CHANGED
|
@@ -71,6 +71,8 @@ require_relative "orb/models/alert_update_params"
|
|
|
71
71
|
require_relative "orb/models/allocation"
|
|
72
72
|
require_relative "orb/models/amount_discount"
|
|
73
73
|
require_relative "orb/models/amount_discount_interval"
|
|
74
|
+
require_relative "orb/models/backfill_reflected_webhook_event"
|
|
75
|
+
require_relative "orb/models/backfill_reverted_webhook_event"
|
|
74
76
|
require_relative "orb/models/beta/external_plan_id_create_plan_version_params"
|
|
75
77
|
require_relative "orb/models/beta/external_plan_id_fetch_plan_version_params"
|
|
76
78
|
require_relative "orb/models/beta/external_plan_id_set_default_plan_version_params"
|
|
@@ -78,6 +80,7 @@ require_relative "orb/models/beta_create_plan_version_params"
|
|
|
78
80
|
require_relative "orb/models/beta_fetch_plan_version_params"
|
|
79
81
|
require_relative "orb/models/beta_set_default_plan_version_params"
|
|
80
82
|
require_relative "orb/models/billable_metric"
|
|
83
|
+
require_relative "orb/models/billable_metric_edited_webhook_event"
|
|
81
84
|
require_relative "orb/models/billable_metric_tiny"
|
|
82
85
|
require_relative "orb/models/billing_cycle_anchor_configuration"
|
|
83
86
|
require_relative "orb/models/billing_cycle_configuration"
|
|
@@ -96,23 +99,38 @@ require_relative "orb/models/coupon_fetch_params"
|
|
|
96
99
|
require_relative "orb/models/coupon_list_params"
|
|
97
100
|
require_relative "orb/models/coupon_redemption"
|
|
98
101
|
require_relative "orb/models/coupons/subscription_list_params"
|
|
102
|
+
require_relative "orb/models/credit_block_accounting_sync_failed_webhook_event"
|
|
103
|
+
require_relative "orb/models/credit_block_accounting_sync_succeeded_webhook_event"
|
|
99
104
|
require_relative "orb/models/credit_block_delete_params"
|
|
100
105
|
require_relative "orb/models/credit_block_list_invoices_params"
|
|
101
106
|
require_relative "orb/models/credit_block_list_invoices_response"
|
|
102
107
|
require_relative "orb/models/credit_block_retrieve_params"
|
|
103
108
|
require_relative "orb/models/credit_block_retrieve_response"
|
|
104
109
|
require_relative "orb/models/credit_note"
|
|
110
|
+
require_relative "orb/models/credit_note_accounting_sync_failed_webhook_event"
|
|
111
|
+
require_relative "orb/models/credit_note_accounting_sync_succeeded_webhook_event"
|
|
105
112
|
require_relative "orb/models/credit_note_create_params"
|
|
106
113
|
require_relative "orb/models/credit_note_fetch_params"
|
|
114
|
+
require_relative "orb/models/credit_note_issued_webhook_event"
|
|
107
115
|
require_relative "orb/models/credit_note_list_params"
|
|
116
|
+
require_relative "orb/models/credit_note_marked_as_void_webhook_event"
|
|
108
117
|
require_relative "orb/models/credit_note_tiny"
|
|
109
118
|
require_relative "orb/models/customer"
|
|
119
|
+
require_relative "orb/models/customer_accounting_sync_failed_webhook_event"
|
|
120
|
+
require_relative "orb/models/customer_accounting_sync_succeeded_webhook_event"
|
|
121
|
+
require_relative "orb/models/customer_balance_transaction_created_webhook_event"
|
|
122
|
+
require_relative "orb/models/customer_created_webhook_event"
|
|
110
123
|
require_relative "orb/models/customer_create_params"
|
|
111
124
|
require_relative "orb/models/customer_create_portal_session_by_external_id_params"
|
|
112
125
|
require_relative "orb/models/customer_create_portal_session_by_external_id_response"
|
|
113
126
|
require_relative "orb/models/customer_create_portal_session_params"
|
|
114
127
|
require_relative "orb/models/customer_create_portal_session_response"
|
|
128
|
+
require_relative "orb/models/customer_credit_balance_depleted_webhook_event"
|
|
129
|
+
require_relative "orb/models/customer_credit_balance_dropped_webhook_event"
|
|
130
|
+
require_relative "orb/models/customer_credit_balance_recovered_webhook_event"
|
|
131
|
+
require_relative "orb/models/customer_credit_ledger_incremented_webhook_event"
|
|
115
132
|
require_relative "orb/models/customer_delete_params"
|
|
133
|
+
require_relative "orb/models/customer_edited_webhook_event"
|
|
116
134
|
require_relative "orb/models/customer_fetch_by_external_id_params"
|
|
117
135
|
require_relative "orb/models/customer_fetch_params"
|
|
118
136
|
require_relative "orb/models/customer_hierarchy_config"
|
|
@@ -163,6 +181,8 @@ require_relative "orb/models/customer_tax_id"
|
|
|
163
181
|
require_relative "orb/models/customer_update_by_external_id_params"
|
|
164
182
|
require_relative "orb/models/customer_update_params"
|
|
165
183
|
require_relative "orb/models/custom_expiration"
|
|
184
|
+
require_relative "orb/models/data_exports_transfer_error_webhook_event"
|
|
185
|
+
require_relative "orb/models/data_exports_transfer_success_webhook_event"
|
|
166
186
|
require_relative "orb/models/dimensional_price_configuration"
|
|
167
187
|
require_relative "orb/models/dimensional_price_group"
|
|
168
188
|
require_relative "orb/models/dimensional_price_group_create_params"
|
|
@@ -193,16 +213,34 @@ require_relative "orb/models/events/event_volumes"
|
|
|
193
213
|
require_relative "orb/models/events/volume_list_params"
|
|
194
214
|
require_relative "orb/models/event_search_params"
|
|
195
215
|
require_relative "orb/models/event_search_response"
|
|
216
|
+
require_relative "orb/models/event_unmatched_event_webhook_event"
|
|
196
217
|
require_relative "orb/models/event_update_params"
|
|
197
218
|
require_relative "orb/models/event_update_response"
|
|
198
219
|
require_relative "orb/models/fixed_fee_quantity_schedule_entry"
|
|
199
220
|
require_relative "orb/models/fixed_fee_quantity_transition"
|
|
221
|
+
require_relative "orb/models/ingestion_unmatched_customer_ids_webhook_event"
|
|
200
222
|
require_relative "orb/models/invoice"
|
|
223
|
+
require_relative "orb/models/invoice_accounting_sync_failed_webhook_event"
|
|
224
|
+
require_relative "orb/models/invoice_accounting_sync_succeeded_webhook_event"
|
|
225
|
+
require_relative "orb/models/invoice_automation_schedule_step_executed_webhook_event"
|
|
226
|
+
require_relative "orb/models/invoice_cost_data_exported_webhook_event"
|
|
201
227
|
require_relative "orb/models/invoice_create_params"
|
|
202
228
|
require_relative "orb/models/invoice_delete_line_item_params"
|
|
229
|
+
require_relative "orb/models/invoice_due_date_recalculation_canceled_webhook_event"
|
|
230
|
+
require_relative "orb/models/invoice_due_date_recalculation_completed_webhook_event"
|
|
231
|
+
require_relative "orb/models/invoice_due_date_recalculation_started_webhook_event"
|
|
232
|
+
require_relative "orb/models/invoice_dunning_schedule_created_webhook_event"
|
|
233
|
+
require_relative "orb/models/invoice_dunning_schedule_ended_webhook_event"
|
|
234
|
+
require_relative "orb/models/invoice_dunning_schedule_reset_webhook_event"
|
|
235
|
+
require_relative "orb/models/invoice_dunning_schedule_step_executed_webhook_event"
|
|
236
|
+
require_relative "orb/models/invoice_edited_webhook_event"
|
|
203
237
|
require_relative "orb/models/invoice_fetch_params"
|
|
204
238
|
require_relative "orb/models/invoice_fetch_upcoming_params"
|
|
205
239
|
require_relative "orb/models/invoice_fetch_upcoming_response"
|
|
240
|
+
require_relative "orb/models/invoice_invoice_date_elapsed_webhook_event"
|
|
241
|
+
require_relative "orb/models/invoice_issued_summary_webhook_event"
|
|
242
|
+
require_relative "orb/models/invoice_issued_webhook_event"
|
|
243
|
+
require_relative "orb/models/invoice_issue_failed_webhook_event"
|
|
206
244
|
require_relative "orb/models/invoice_issue_params"
|
|
207
245
|
require_relative "orb/models/invoice_issue_summary_params"
|
|
208
246
|
require_relative "orb/models/invoice_issue_summary_response"
|
|
@@ -212,11 +250,19 @@ require_relative "orb/models/invoice_line_item_create_response"
|
|
|
212
250
|
require_relative "orb/models/invoice_list_params"
|
|
213
251
|
require_relative "orb/models/invoice_list_summary_params"
|
|
214
252
|
require_relative "orb/models/invoice_list_summary_response"
|
|
253
|
+
require_relative "orb/models/invoice_manually_marked_as_paid_webhook_event"
|
|
254
|
+
require_relative "orb/models/invoice_manually_marked_as_void_webhook_event"
|
|
215
255
|
require_relative "orb/models/invoice_mark_paid_params"
|
|
256
|
+
require_relative "orb/models/invoice_payment_failed_webhook_event"
|
|
257
|
+
require_relative "orb/models/invoice_payment_processing_webhook_event"
|
|
258
|
+
require_relative "orb/models/invoice_payment_succeeded_webhook_event"
|
|
216
259
|
require_relative "orb/models/invoice_pay_params"
|
|
217
260
|
require_relative "orb/models/invoice_regenerate_invoice_pdf_params"
|
|
218
261
|
require_relative "orb/models/invoice_regenerate_receipt_pdf_params"
|
|
262
|
+
require_relative "orb/models/invoice_sync_failed_webhook_event"
|
|
263
|
+
require_relative "orb/models/invoice_sync_succeeded_webhook_event"
|
|
219
264
|
require_relative "orb/models/invoice_tiny"
|
|
265
|
+
require_relative "orb/models/invoice_undo_mark_as_paid_webhook_event"
|
|
220
266
|
require_relative "orb/models/invoice_update_params"
|
|
221
267
|
require_relative "orb/models/invoice_void_params"
|
|
222
268
|
require_relative "orb/models/item"
|
|
@@ -255,6 +301,7 @@ require_relative "orb/models/matrix_with_allocation_config"
|
|
|
255
301
|
require_relative "orb/models/maximum"
|
|
256
302
|
require_relative "orb/models/maximum_interval"
|
|
257
303
|
require_relative "orb/models/metric_create_params"
|
|
304
|
+
require_relative "orb/models/metric_events_dropped_by_watermark_webhook_event"
|
|
258
305
|
require_relative "orb/models/metric_fetch_params"
|
|
259
306
|
require_relative "orb/models/metric_list_params"
|
|
260
307
|
require_relative "orb/models/metric_update_params"
|
|
@@ -358,11 +405,14 @@ require_relative "orb/models/new_usage_discount"
|
|
|
358
405
|
require_relative "orb/models/other_sub_line_item"
|
|
359
406
|
require_relative "orb/models/package_config"
|
|
360
407
|
require_relative "orb/models/pagination_metadata"
|
|
408
|
+
require_relative "orb/models/payment_method_created_webhook_event"
|
|
409
|
+
require_relative "orb/models/payment_method_deleted_webhook_event"
|
|
361
410
|
require_relative "orb/models/percentage_discount"
|
|
362
411
|
require_relative "orb/models/percentage_discount_interval"
|
|
363
412
|
require_relative "orb/models/per_price_cost"
|
|
364
413
|
require_relative "orb/models/plan"
|
|
365
414
|
require_relative "orb/models/plan_create_params"
|
|
415
|
+
require_relative "orb/models/plan_default_version_set_webhook_event"
|
|
366
416
|
require_relative "orb/models/plan_fetch_params"
|
|
367
417
|
require_relative "orb/models/plan_list_params"
|
|
368
418
|
require_relative "orb/models/plan_phase_amount_discount_adjustment"
|
|
@@ -380,9 +430,11 @@ require_relative "orb/models/plans/migration_retrieve_params"
|
|
|
380
430
|
require_relative "orb/models/plans/migration_retrieve_response"
|
|
381
431
|
require_relative "orb/models/plan_update_params"
|
|
382
432
|
require_relative "orb/models/plan_version"
|
|
433
|
+
require_relative "orb/models/plan_version_created_webhook_event"
|
|
383
434
|
require_relative "orb/models/plan_version_phase"
|
|
384
435
|
require_relative "orb/models/price"
|
|
385
436
|
require_relative "orb/models/price_create_params"
|
|
437
|
+
require_relative "orb/models/price_edited_webhook_event"
|
|
386
438
|
require_relative "orb/models/price_evaluate_multiple_params"
|
|
387
439
|
require_relative "orb/models/price_evaluate_multiple_response"
|
|
388
440
|
require_relative "orb/models/price_evaluate_params"
|
|
@@ -395,9 +447,17 @@ require_relative "orb/models/price_list_params"
|
|
|
395
447
|
require_relative "orb/models/prices/external_price_id_fetch_params"
|
|
396
448
|
require_relative "orb/models/prices/external_price_id_update_params"
|
|
397
449
|
require_relative "orb/models/price_update_params"
|
|
450
|
+
require_relative "orb/models/resource_event_test_webhook_event"
|
|
451
|
+
require_relative "orb/models/sales_order_accounting_sync_failed_webhook_event"
|
|
452
|
+
require_relative "orb/models/sales_order_accounting_sync_succeeded_webhook_event"
|
|
398
453
|
require_relative "orb/models/sub_line_item_grouping"
|
|
399
454
|
require_relative "orb/models/sub_line_item_matrix_config"
|
|
400
455
|
require_relative "orb/models/subscription"
|
|
456
|
+
require_relative "orb/models/subscription_accounting_sync_failed_webhook_event"
|
|
457
|
+
require_relative "orb/models/subscription_accounting_sync_succeeded_webhook_event"
|
|
458
|
+
require_relative "orb/models/subscription_alert_disabled_webhook_event"
|
|
459
|
+
require_relative "orb/models/subscription_cancellation_scheduled_webhook_event"
|
|
460
|
+
require_relative "orb/models/subscription_cancellation_unscheduled_webhook_event"
|
|
401
461
|
require_relative "orb/models/subscription_cancel_params"
|
|
402
462
|
require_relative "orb/models/subscription_change_apply_params"
|
|
403
463
|
require_relative "orb/models/subscription_change_apply_response"
|
|
@@ -408,19 +468,35 @@ require_relative "orb/models/subscription_change_list_response"
|
|
|
408
468
|
require_relative "orb/models/subscription_change_minified"
|
|
409
469
|
require_relative "orb/models/subscription_change_retrieve_params"
|
|
410
470
|
require_relative "orb/models/subscription_change_retrieve_response"
|
|
471
|
+
require_relative "orb/models/subscription_cost_exceeded_webhook_event"
|
|
472
|
+
require_relative "orb/models/subscription_created_webhook_event"
|
|
411
473
|
require_relative "orb/models/subscription_create_params"
|
|
474
|
+
require_relative "orb/models/subscription_edited_webhook_event"
|
|
475
|
+
require_relative "orb/models/subscription_ended_webhook_event"
|
|
412
476
|
require_relative "orb/models/subscription_fetch_costs_params"
|
|
413
477
|
require_relative "orb/models/subscription_fetch_costs_response"
|
|
414
478
|
require_relative "orb/models/subscription_fetch_params"
|
|
415
479
|
require_relative "orb/models/subscription_fetch_schedule_params"
|
|
416
480
|
require_relative "orb/models/subscription_fetch_schedule_response"
|
|
417
481
|
require_relative "orb/models/subscription_fetch_usage_params"
|
|
482
|
+
require_relative "orb/models/subscription_fixed_fee_quantity_updated_webhook_event"
|
|
483
|
+
require_relative "orb/models/subscription_grouped_cost_exceeded_webhook_event"
|
|
484
|
+
require_relative "orb/models/subscription_invoicing_threshold_exceeded_webhook_event"
|
|
485
|
+
require_relative "orb/models/subscription_license_allocation_reset_webhook_event"
|
|
486
|
+
require_relative "orb/models/subscription_license_balance_threshold_reached_webhook_event"
|
|
418
487
|
require_relative "orb/models/subscription_list_params"
|
|
419
488
|
require_relative "orb/models/subscription_minified"
|
|
489
|
+
require_relative "orb/models/subscription_plan_changed_webhook_event"
|
|
490
|
+
require_relative "orb/models/subscription_plan_change_scheduled_webhook_event"
|
|
491
|
+
require_relative "orb/models/subscription_plan_version_changed_webhook_event"
|
|
492
|
+
require_relative "orb/models/subscription_plan_version_change_scheduled_webhook_event"
|
|
420
493
|
require_relative "orb/models/subscription_price_intervals_params"
|
|
421
494
|
require_relative "orb/models/subscription_redeem_coupon_params"
|
|
422
495
|
require_relative "orb/models/subscriptions"
|
|
423
496
|
require_relative "orb/models/subscription_schedule_plan_change_params"
|
|
497
|
+
require_relative "orb/models/subscription_spend_exceeded_webhook_event"
|
|
498
|
+
require_relative "orb/models/subscription_started_webhook_event"
|
|
499
|
+
require_relative "orb/models/subscription_trial_ended_webhook_event"
|
|
424
500
|
require_relative "orb/models/subscription_trial_info"
|
|
425
501
|
require_relative "orb/models/subscription_trigger_phase_params"
|
|
426
502
|
require_relative "orb/models/subscription_unschedule_cancellation_params"
|
|
@@ -430,6 +506,7 @@ require_relative "orb/models/subscription_update_fixed_fee_quantity_params"
|
|
|
430
506
|
require_relative "orb/models/subscription_update_params"
|
|
431
507
|
require_relative "orb/models/subscription_update_trial_params"
|
|
432
508
|
require_relative "orb/models/subscription_usage"
|
|
509
|
+
require_relative "orb/models/subscription_usage_exceeded_webhook_event"
|
|
433
510
|
require_relative "orb/models/tax_amount"
|
|
434
511
|
require_relative "orb/models/threshold"
|
|
435
512
|
require_relative "orb/models/tier"
|
|
@@ -438,11 +515,15 @@ require_relative "orb/models/tiered_conversion_rate_config"
|
|
|
438
515
|
require_relative "orb/models/tier_sub_line_item"
|
|
439
516
|
require_relative "orb/models/top_level_ping_params"
|
|
440
517
|
require_relative "orb/models/top_level_ping_response"
|
|
518
|
+
require_relative "orb/models/transaction_accounting_sync_failed_webhook_event"
|
|
519
|
+
require_relative "orb/models/transaction_accounting_sync_succeeded_webhook_event"
|
|
441
520
|
require_relative "orb/models/trial_discount"
|
|
442
521
|
require_relative "orb/models/unit_config"
|
|
443
522
|
require_relative "orb/models/unit_conversion_rate_config"
|
|
523
|
+
require_relative "orb/models/unwrap_webhook_event"
|
|
444
524
|
require_relative "orb/models/usage_discount"
|
|
445
525
|
require_relative "orb/models/usage_discount_interval"
|
|
526
|
+
require_relative "orb/models/webhook_unwrap_params"
|
|
446
527
|
require_relative "orb/models"
|
|
447
528
|
require_relative "orb/resources/alerts"
|
|
448
529
|
require_relative "orb/resources/beta"
|
|
@@ -478,3 +559,4 @@ require_relative "orb/resources/prices/external_price_id"
|
|
|
478
559
|
require_relative "orb/resources/subscription_changes"
|
|
479
560
|
require_relative "orb/resources/subscriptions"
|
|
480
561
|
require_relative "orb/resources/top_level"
|
|
562
|
+
require_relative "orb/resources/webhooks"
|
data/rbi/orb/client.rbi
CHANGED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class BackfillReflectedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Orb::BackfillReflectedWebhookEvent, Orb::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The ID of this webhook event.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
16
|
+
# events in a timeframe.
|
|
17
|
+
sig { returns(Orb::BackfillReflectedWebhookEvent::Backfill) }
|
|
18
|
+
attr_reader :backfill
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
backfill: Orb::BackfillReflectedWebhookEvent::Backfill::OrHash
|
|
23
|
+
).void
|
|
24
|
+
end
|
|
25
|
+
attr_writer :backfill
|
|
26
|
+
|
|
27
|
+
# The time at which this event was created, to the second.
|
|
28
|
+
sig { returns(Time) }
|
|
29
|
+
attr_accessor :created_at
|
|
30
|
+
|
|
31
|
+
sig { returns(T.anything) }
|
|
32
|
+
attr_accessor :properties
|
|
33
|
+
|
|
34
|
+
# The event this payload describes.
|
|
35
|
+
sig { returns(Orb::BackfillReflectedWebhookEvent::Type::TaggedSymbol) }
|
|
36
|
+
attr_accessor :type
|
|
37
|
+
|
|
38
|
+
# Issued when a backfill is closed and its events are reflected into usage.
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
id: String,
|
|
42
|
+
backfill: Orb::BackfillReflectedWebhookEvent::Backfill::OrHash,
|
|
43
|
+
created_at: Time,
|
|
44
|
+
properties: T.anything,
|
|
45
|
+
type: Orb::BackfillReflectedWebhookEvent::Type::OrSymbol
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
# The ID of this webhook event.
|
|
50
|
+
id:,
|
|
51
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
52
|
+
# events in a timeframe.
|
|
53
|
+
backfill:,
|
|
54
|
+
# The time at which this event was created, to the second.
|
|
55
|
+
created_at:,
|
|
56
|
+
properties:,
|
|
57
|
+
# The event this payload describes.
|
|
58
|
+
type:
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
sig do
|
|
63
|
+
override.returns(
|
|
64
|
+
{
|
|
65
|
+
id: String,
|
|
66
|
+
backfill: Orb::BackfillReflectedWebhookEvent::Backfill,
|
|
67
|
+
created_at: Time,
|
|
68
|
+
properties: T.anything,
|
|
69
|
+
type: Orb::BackfillReflectedWebhookEvent::Type::TaggedSymbol
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
def to_hash
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class Backfill < Orb::Internal::Type::BaseModel
|
|
77
|
+
OrHash =
|
|
78
|
+
T.type_alias do
|
|
79
|
+
T.any(
|
|
80
|
+
Orb::BackfillReflectedWebhookEvent::Backfill,
|
|
81
|
+
Orb::Internal::AnyHash
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
sig { returns(String) }
|
|
86
|
+
attr_accessor :id
|
|
87
|
+
|
|
88
|
+
# If in the future, the time at which the backfill will automatically close. If in
|
|
89
|
+
# the past, the time at which the backfill was closed.
|
|
90
|
+
sig { returns(T.nilable(Time)) }
|
|
91
|
+
attr_accessor :close_time
|
|
92
|
+
|
|
93
|
+
sig { returns(Time) }
|
|
94
|
+
attr_accessor :created_at
|
|
95
|
+
|
|
96
|
+
# The Orb-generated ID of the customer to which this backfill is scoped. If
|
|
97
|
+
# `null`, this backfill is scoped to all customers.
|
|
98
|
+
sig { returns(T.nilable(String)) }
|
|
99
|
+
attr_accessor :customer_id
|
|
100
|
+
|
|
101
|
+
# The number of events ingested in this backfill.
|
|
102
|
+
sig { returns(Integer) }
|
|
103
|
+
attr_accessor :events_ingested
|
|
104
|
+
|
|
105
|
+
# If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
106
|
+
# newly ingested events associated with the backfill. If `false`, newly ingested
|
|
107
|
+
# events will be added to the existing events.
|
|
108
|
+
sig { returns(T::Boolean) }
|
|
109
|
+
attr_accessor :replace_existing_events
|
|
110
|
+
|
|
111
|
+
# The time at which this backfill was reverted.
|
|
112
|
+
sig { returns(T.nilable(Time)) }
|
|
113
|
+
attr_accessor :reverted_at
|
|
114
|
+
|
|
115
|
+
# The status of the backfill.
|
|
116
|
+
sig do
|
|
117
|
+
returns(
|
|
118
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
attr_accessor :status
|
|
122
|
+
|
|
123
|
+
sig { returns(Time) }
|
|
124
|
+
attr_accessor :timeframe_end
|
|
125
|
+
|
|
126
|
+
sig { returns(Time) }
|
|
127
|
+
attr_accessor :timeframe_start
|
|
128
|
+
|
|
129
|
+
# A boolean
|
|
130
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
131
|
+
# filter the set of events to deprecate
|
|
132
|
+
sig { returns(T.nilable(String)) }
|
|
133
|
+
attr_accessor :deprecation_filter
|
|
134
|
+
|
|
135
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
136
|
+
# events in a timeframe.
|
|
137
|
+
sig do
|
|
138
|
+
params(
|
|
139
|
+
id: String,
|
|
140
|
+
close_time: T.nilable(Time),
|
|
141
|
+
created_at: Time,
|
|
142
|
+
customer_id: T.nilable(String),
|
|
143
|
+
events_ingested: Integer,
|
|
144
|
+
replace_existing_events: T::Boolean,
|
|
145
|
+
reverted_at: T.nilable(Time),
|
|
146
|
+
status:
|
|
147
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status::OrSymbol,
|
|
148
|
+
timeframe_end: Time,
|
|
149
|
+
timeframe_start: Time,
|
|
150
|
+
deprecation_filter: T.nilable(String)
|
|
151
|
+
).returns(T.attached_class)
|
|
152
|
+
end
|
|
153
|
+
def self.new(
|
|
154
|
+
id:,
|
|
155
|
+
# If in the future, the time at which the backfill will automatically close. If in
|
|
156
|
+
# the past, the time at which the backfill was closed.
|
|
157
|
+
close_time:,
|
|
158
|
+
created_at:,
|
|
159
|
+
# The Orb-generated ID of the customer to which this backfill is scoped. If
|
|
160
|
+
# `null`, this backfill is scoped to all customers.
|
|
161
|
+
customer_id:,
|
|
162
|
+
# The number of events ingested in this backfill.
|
|
163
|
+
events_ingested:,
|
|
164
|
+
# If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
165
|
+
# newly ingested events associated with the backfill. If `false`, newly ingested
|
|
166
|
+
# events will be added to the existing events.
|
|
167
|
+
replace_existing_events:,
|
|
168
|
+
# The time at which this backfill was reverted.
|
|
169
|
+
reverted_at:,
|
|
170
|
+
# The status of the backfill.
|
|
171
|
+
status:,
|
|
172
|
+
timeframe_end:,
|
|
173
|
+
timeframe_start:,
|
|
174
|
+
# A boolean
|
|
175
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
176
|
+
# filter the set of events to deprecate
|
|
177
|
+
deprecation_filter: nil
|
|
178
|
+
)
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
sig do
|
|
182
|
+
override.returns(
|
|
183
|
+
{
|
|
184
|
+
id: String,
|
|
185
|
+
close_time: T.nilable(Time),
|
|
186
|
+
created_at: Time,
|
|
187
|
+
customer_id: T.nilable(String),
|
|
188
|
+
events_ingested: Integer,
|
|
189
|
+
replace_existing_events: T::Boolean,
|
|
190
|
+
reverted_at: T.nilable(Time),
|
|
191
|
+
status:
|
|
192
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status::TaggedSymbol,
|
|
193
|
+
timeframe_end: Time,
|
|
194
|
+
timeframe_start: Time,
|
|
195
|
+
deprecation_filter: T.nilable(String)
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
end
|
|
199
|
+
def to_hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# The status of the backfill.
|
|
203
|
+
module Status
|
|
204
|
+
extend Orb::Internal::Type::Enum
|
|
205
|
+
|
|
206
|
+
TaggedSymbol =
|
|
207
|
+
T.type_alias do
|
|
208
|
+
T.all(
|
|
209
|
+
Symbol,
|
|
210
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status
|
|
211
|
+
)
|
|
212
|
+
end
|
|
213
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
214
|
+
|
|
215
|
+
PENDING =
|
|
216
|
+
T.let(
|
|
217
|
+
:pending,
|
|
218
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
219
|
+
)
|
|
220
|
+
REFLECTED =
|
|
221
|
+
T.let(
|
|
222
|
+
:reflected,
|
|
223
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
224
|
+
)
|
|
225
|
+
PENDING_REVERT =
|
|
226
|
+
T.let(
|
|
227
|
+
:pending_revert,
|
|
228
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
229
|
+
)
|
|
230
|
+
REVERTED =
|
|
231
|
+
T.let(
|
|
232
|
+
:reverted,
|
|
233
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
sig do
|
|
237
|
+
override.returns(
|
|
238
|
+
T::Array[
|
|
239
|
+
Orb::BackfillReflectedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
240
|
+
]
|
|
241
|
+
)
|
|
242
|
+
end
|
|
243
|
+
def self.values
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# The event this payload describes.
|
|
249
|
+
module Type
|
|
250
|
+
extend Orb::Internal::Type::Enum
|
|
251
|
+
|
|
252
|
+
TaggedSymbol =
|
|
253
|
+
T.type_alias do
|
|
254
|
+
T.all(Symbol, Orb::BackfillReflectedWebhookEvent::Type)
|
|
255
|
+
end
|
|
256
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
257
|
+
|
|
258
|
+
BACKFILL_REFLECTED =
|
|
259
|
+
T.let(
|
|
260
|
+
:"backfill.reflected",
|
|
261
|
+
Orb::BackfillReflectedWebhookEvent::Type::TaggedSymbol
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
sig do
|
|
265
|
+
override.returns(
|
|
266
|
+
T::Array[Orb::BackfillReflectedWebhookEvent::Type::TaggedSymbol]
|
|
267
|
+
)
|
|
268
|
+
end
|
|
269
|
+
def self.values
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
end
|