orb-billing 1.35.0 → 1.37.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 +35 -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/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/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 +247 -1
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class BackfillRevertedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Orb::BackfillRevertedWebhookEvent, 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::BackfillRevertedWebhookEvent::Backfill) }
|
|
18
|
+
attr_reader :backfill
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
backfill: Orb::BackfillRevertedWebhookEvent::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::BackfillRevertedWebhookEvent::Type::TaggedSymbol) }
|
|
36
|
+
attr_accessor :type
|
|
37
|
+
|
|
38
|
+
# Issued when a backfill is reverted, removing its events from usage.
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
id: String,
|
|
42
|
+
backfill: Orb::BackfillRevertedWebhookEvent::Backfill::OrHash,
|
|
43
|
+
created_at: Time,
|
|
44
|
+
properties: T.anything,
|
|
45
|
+
type: Orb::BackfillRevertedWebhookEvent::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::BackfillRevertedWebhookEvent::Backfill,
|
|
67
|
+
created_at: Time,
|
|
68
|
+
properties: T.anything,
|
|
69
|
+
type: Orb::BackfillRevertedWebhookEvent::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::BackfillRevertedWebhookEvent::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::BackfillRevertedWebhookEvent::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::BackfillRevertedWebhookEvent::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::BackfillRevertedWebhookEvent::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(Symbol, Orb::BackfillRevertedWebhookEvent::Backfill::Status)
|
|
209
|
+
end
|
|
210
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
211
|
+
|
|
212
|
+
PENDING =
|
|
213
|
+
T.let(
|
|
214
|
+
:pending,
|
|
215
|
+
Orb::BackfillRevertedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
216
|
+
)
|
|
217
|
+
REFLECTED =
|
|
218
|
+
T.let(
|
|
219
|
+
:reflected,
|
|
220
|
+
Orb::BackfillRevertedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
221
|
+
)
|
|
222
|
+
PENDING_REVERT =
|
|
223
|
+
T.let(
|
|
224
|
+
:pending_revert,
|
|
225
|
+
Orb::BackfillRevertedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
226
|
+
)
|
|
227
|
+
REVERTED =
|
|
228
|
+
T.let(
|
|
229
|
+
:reverted,
|
|
230
|
+
Orb::BackfillRevertedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
sig do
|
|
234
|
+
override.returns(
|
|
235
|
+
T::Array[
|
|
236
|
+
Orb::BackfillRevertedWebhookEvent::Backfill::Status::TaggedSymbol
|
|
237
|
+
]
|
|
238
|
+
)
|
|
239
|
+
end
|
|
240
|
+
def self.values
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# The event this payload describes.
|
|
246
|
+
module Type
|
|
247
|
+
extend Orb::Internal::Type::Enum
|
|
248
|
+
|
|
249
|
+
TaggedSymbol =
|
|
250
|
+
T.type_alias do
|
|
251
|
+
T.all(Symbol, Orb::BackfillRevertedWebhookEvent::Type)
|
|
252
|
+
end
|
|
253
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
254
|
+
|
|
255
|
+
BACKFILL_REVERTED =
|
|
256
|
+
T.let(
|
|
257
|
+
:"backfill.reverted",
|
|
258
|
+
Orb::BackfillRevertedWebhookEvent::Type::TaggedSymbol
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
sig do
|
|
262
|
+
override.returns(
|
|
263
|
+
T::Array[Orb::BackfillRevertedWebhookEvent::Type::TaggedSymbol]
|
|
264
|
+
)
|
|
265
|
+
end
|
|
266
|
+
def self.values
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
end
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class BillableMetricEditedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Orb::BillableMetricEditedWebhookEvent, Orb::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The ID of this webhook event.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# The Metric resource represents a calculation of a quantity based on events.
|
|
16
|
+
# Metrics are defined by the query that transforms raw usage events into
|
|
17
|
+
# meaningful values for your customers.
|
|
18
|
+
sig { returns(Orb::BillableMetric) }
|
|
19
|
+
attr_reader :billable_metric
|
|
20
|
+
|
|
21
|
+
sig { params(billable_metric: Orb::BillableMetric::OrHash).void }
|
|
22
|
+
attr_writer :billable_metric
|
|
23
|
+
|
|
24
|
+
# The time at which this event was created, to the second.
|
|
25
|
+
sig { returns(Time) }
|
|
26
|
+
attr_accessor :created_at
|
|
27
|
+
|
|
28
|
+
sig { returns(Orb::BillableMetricEditedWebhookEvent::Properties) }
|
|
29
|
+
attr_reader :properties
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
properties: Orb::BillableMetricEditedWebhookEvent::Properties::OrHash
|
|
34
|
+
).void
|
|
35
|
+
end
|
|
36
|
+
attr_writer :properties
|
|
37
|
+
|
|
38
|
+
# The event this payload describes.
|
|
39
|
+
sig { returns(Orb::BillableMetricEditedWebhookEvent::Type::TaggedSymbol) }
|
|
40
|
+
attr_accessor :type
|
|
41
|
+
|
|
42
|
+
# Issued when a billable metric is edited.
|
|
43
|
+
sig do
|
|
44
|
+
params(
|
|
45
|
+
id: String,
|
|
46
|
+
billable_metric: Orb::BillableMetric::OrHash,
|
|
47
|
+
created_at: Time,
|
|
48
|
+
properties: Orb::BillableMetricEditedWebhookEvent::Properties::OrHash,
|
|
49
|
+
type: Orb::BillableMetricEditedWebhookEvent::Type::OrSymbol
|
|
50
|
+
).returns(T.attached_class)
|
|
51
|
+
end
|
|
52
|
+
def self.new(
|
|
53
|
+
# The ID of this webhook event.
|
|
54
|
+
id:,
|
|
55
|
+
# The Metric resource represents a calculation of a quantity based on events.
|
|
56
|
+
# Metrics are defined by the query that transforms raw usage events into
|
|
57
|
+
# meaningful values for your customers.
|
|
58
|
+
billable_metric:,
|
|
59
|
+
# The time at which this event was created, to the second.
|
|
60
|
+
created_at:,
|
|
61
|
+
properties:,
|
|
62
|
+
# The event this payload describes.
|
|
63
|
+
type:
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
override.returns(
|
|
69
|
+
{
|
|
70
|
+
id: String,
|
|
71
|
+
billable_metric: Orb::BillableMetric,
|
|
72
|
+
created_at: Time,
|
|
73
|
+
properties: Orb::BillableMetricEditedWebhookEvent::Properties,
|
|
74
|
+
type: Orb::BillableMetricEditedWebhookEvent::Type::TaggedSymbol
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
def to_hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
82
|
+
OrHash =
|
|
83
|
+
T.type_alias do
|
|
84
|
+
T.any(
|
|
85
|
+
Orb::BillableMetricEditedWebhookEvent::Properties,
|
|
86
|
+
Orb::Internal::AnyHash
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# metadata values are non-null on the wire, as on the price event.
|
|
91
|
+
sig do
|
|
92
|
+
returns(
|
|
93
|
+
Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
attr_reader :previous_attributes
|
|
97
|
+
|
|
98
|
+
sig do
|
|
99
|
+
params(
|
|
100
|
+
previous_attributes:
|
|
101
|
+
Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes::OrHash
|
|
102
|
+
).void
|
|
103
|
+
end
|
|
104
|
+
attr_writer :previous_attributes
|
|
105
|
+
|
|
106
|
+
sig do
|
|
107
|
+
params(
|
|
108
|
+
previous_attributes:
|
|
109
|
+
Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes::OrHash
|
|
110
|
+
).returns(T.attached_class)
|
|
111
|
+
end
|
|
112
|
+
def self.new(
|
|
113
|
+
# metadata values are non-null on the wire, as on the price event.
|
|
114
|
+
previous_attributes:
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
sig do
|
|
119
|
+
override.returns(
|
|
120
|
+
{
|
|
121
|
+
previous_attributes:
|
|
122
|
+
Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
end
|
|
126
|
+
def to_hash
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
class PreviousAttributes < Orb::Internal::Type::BaseModel
|
|
130
|
+
OrHash =
|
|
131
|
+
T.type_alias do
|
|
132
|
+
T.any(
|
|
133
|
+
Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes,
|
|
134
|
+
Orb::Internal::AnyHash
|
|
135
|
+
)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
sig { returns(T.nilable(String)) }
|
|
139
|
+
attr_accessor :description
|
|
140
|
+
|
|
141
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
142
|
+
attr_accessor :metadata
|
|
143
|
+
|
|
144
|
+
sig { returns(T.nilable(String)) }
|
|
145
|
+
attr_accessor :name
|
|
146
|
+
|
|
147
|
+
# metadata values are non-null on the wire, as on the price event.
|
|
148
|
+
sig do
|
|
149
|
+
params(
|
|
150
|
+
description: T.nilable(String),
|
|
151
|
+
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
152
|
+
name: T.nilable(String)
|
|
153
|
+
).returns(T.attached_class)
|
|
154
|
+
end
|
|
155
|
+
def self.new(description: nil, metadata: nil, name: nil)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
sig do
|
|
159
|
+
override.returns(
|
|
160
|
+
{
|
|
161
|
+
description: T.nilable(String),
|
|
162
|
+
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
163
|
+
name: T.nilable(String)
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
end
|
|
167
|
+
def to_hash
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# The event this payload describes.
|
|
173
|
+
module Type
|
|
174
|
+
extend Orb::Internal::Type::Enum
|
|
175
|
+
|
|
176
|
+
TaggedSymbol =
|
|
177
|
+
T.type_alias do
|
|
178
|
+
T.all(Symbol, Orb::BillableMetricEditedWebhookEvent::Type)
|
|
179
|
+
end
|
|
180
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
181
|
+
|
|
182
|
+
BILLABLE_METRIC_EDITED =
|
|
183
|
+
T.let(
|
|
184
|
+
:"billable_metric.edited",
|
|
185
|
+
Orb::BillableMetricEditedWebhookEvent::Type::TaggedSymbol
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
sig do
|
|
189
|
+
override.returns(
|
|
190
|
+
T::Array[Orb::BillableMetricEditedWebhookEvent::Type::TaggedSymbol]
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
def self.values
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|