orb-billing 1.35.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 +18 -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,250 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
# Issued when a backfill is closed and its events are reflected into usage.
|
|
6
|
+
module UnwrapWebhookEvent
|
|
7
|
+
extend Orb::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
# Issued when a backfill is closed and its events are reflected into usage.
|
|
10
|
+
variant -> { Orb::BackfillReflectedWebhookEvent }
|
|
11
|
+
|
|
12
|
+
# Issued when a backfill is reverted, removing its events from usage.
|
|
13
|
+
variant -> { Orb::BackfillRevertedWebhookEvent }
|
|
14
|
+
|
|
15
|
+
# Issued when a billable metric is edited.
|
|
16
|
+
variant -> { Orb::BillableMetricEditedWebhookEvent }
|
|
17
|
+
|
|
18
|
+
# Issued when a credit block accounting sync fails.
|
|
19
|
+
variant -> { Orb::CreditBlockAccountingSyncFailedWebhookEvent }
|
|
20
|
+
|
|
21
|
+
# Issued when a credit block accounting sync succeeds.
|
|
22
|
+
variant -> { Orb::CreditBlockAccountingSyncSucceededWebhookEvent }
|
|
23
|
+
|
|
24
|
+
# Issued when a credit note accounting sync fails.
|
|
25
|
+
variant -> { Orb::CreditNoteAccountingSyncFailedWebhookEvent }
|
|
26
|
+
|
|
27
|
+
# Issued when a credit note accounting sync succeeds.
|
|
28
|
+
variant -> { Orb::CreditNoteAccountingSyncSucceededWebhookEvent }
|
|
29
|
+
|
|
30
|
+
# Issued when a credit note is created.
|
|
31
|
+
variant -> { Orb::CreditNoteIssuedWebhookEvent }
|
|
32
|
+
|
|
33
|
+
# Issued when a credit note is marked as void.
|
|
34
|
+
variant -> { Orb::CreditNoteMarkedAsVoidWebhookEvent }
|
|
35
|
+
|
|
36
|
+
# Issued when a customer accounting sync fails.
|
|
37
|
+
variant -> { Orb::CustomerAccountingSyncFailedWebhookEvent }
|
|
38
|
+
|
|
39
|
+
# Issued when a customer accounting sync succeeds.
|
|
40
|
+
variant -> { Orb::CustomerAccountingSyncSucceededWebhookEvent }
|
|
41
|
+
|
|
42
|
+
# Issued when a customer balance transaction is created.
|
|
43
|
+
variant -> { Orb::CustomerBalanceTransactionCreatedWebhookEvent }
|
|
44
|
+
|
|
45
|
+
# Issued when a customer resource is created.
|
|
46
|
+
variant -> { Orb::CustomerCreatedWebhookEvent }
|
|
47
|
+
|
|
48
|
+
# Issued when a customer's prepaid credits balance is depleted.
|
|
49
|
+
variant -> { Orb::CustomerCreditBalanceDepletedWebhookEvent }
|
|
50
|
+
|
|
51
|
+
# Issued when a customer's prepaid credits balance is depleted to a configured threshold.
|
|
52
|
+
variant -> { Orb::CustomerCreditBalanceDroppedWebhookEvent }
|
|
53
|
+
|
|
54
|
+
# Issued when a customer's credit balance recovers from depleted.
|
|
55
|
+
variant -> { Orb::CustomerCreditBalanceRecoveredWebhookEvent }
|
|
56
|
+
|
|
57
|
+
# Issued when a customer's credit ledger is incremented.
|
|
58
|
+
variant -> { Orb::CustomerCreditLedgerIncrementedWebhookEvent }
|
|
59
|
+
|
|
60
|
+
# Issued when a customer is updated.
|
|
61
|
+
variant -> { Orb::CustomerEditedWebhookEvent }
|
|
62
|
+
|
|
63
|
+
# Issued when a data export transfer fails.
|
|
64
|
+
variant -> { Orb::DataExportsTransferErrorWebhookEvent }
|
|
65
|
+
|
|
66
|
+
# Issued when a data export transfer succeeds.
|
|
67
|
+
variant -> { Orb::DataExportsTransferSuccessWebhookEvent }
|
|
68
|
+
|
|
69
|
+
# Issued when an event does not match any customer.
|
|
70
|
+
variant -> { Orb::EventUnmatchedEventWebhookEvent }
|
|
71
|
+
|
|
72
|
+
# Issued when ingestion events reference unmatched customer IDs.
|
|
73
|
+
variant -> { Orb::IngestionUnmatchedCustomerIDsWebhookEvent }
|
|
74
|
+
|
|
75
|
+
# Issued when an invoice accounting sync fails.
|
|
76
|
+
variant -> { Orb::InvoiceAccountingSyncFailedWebhookEvent }
|
|
77
|
+
|
|
78
|
+
# Issued when an invoice accounting sync succeeds.
|
|
79
|
+
variant -> { Orb::InvoiceAccountingSyncSucceededWebhookEvent }
|
|
80
|
+
|
|
81
|
+
# Issued when a collections-automation schedule step is executed for an invoice.
|
|
82
|
+
variant -> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent }
|
|
83
|
+
|
|
84
|
+
# Issued when invoice cost data is exported.
|
|
85
|
+
variant -> { Orb::InvoiceCostDataExportedWebhookEvent }
|
|
86
|
+
|
|
87
|
+
# Issued when a dunning schedule is created for an invoice.
|
|
88
|
+
variant -> { Orb::InvoiceDunningScheduleCreatedWebhookEvent }
|
|
89
|
+
|
|
90
|
+
# Issued when a dunning schedule ends.
|
|
91
|
+
variant -> { Orb::InvoiceDunningScheduleEndedWebhookEvent }
|
|
92
|
+
|
|
93
|
+
# Issued when a dunning schedule is reset.
|
|
94
|
+
variant -> { Orb::InvoiceDunningScheduleResetWebhookEvent }
|
|
95
|
+
|
|
96
|
+
# Issued when a dunning schedule step is executed.
|
|
97
|
+
variant -> { Orb::InvoiceDunningScheduleStepExecutedWebhookEvent }
|
|
98
|
+
|
|
99
|
+
# Issued when a draft invoice has been edited.
|
|
100
|
+
variant -> { Orb::InvoiceEditedWebhookEvent }
|
|
101
|
+
|
|
102
|
+
# Issued when an invoice's invoice date has elapsed.
|
|
103
|
+
variant -> { Orb::InvoiceInvoiceDateElapsedWebhookEvent }
|
|
104
|
+
|
|
105
|
+
# Issued when an invoice issue attempt fails.
|
|
106
|
+
variant -> { Orb::InvoiceIssueFailedWebhookEvent }
|
|
107
|
+
|
|
108
|
+
# Issued when an invoice transitions to the "issued" state.
|
|
109
|
+
variant -> { Orb::InvoiceIssuedWebhookEvent }
|
|
110
|
+
|
|
111
|
+
# A lightweight variant of invoice.issued for accounts configured to receive a summarized invoice payload.
|
|
112
|
+
variant -> { Orb::InvoiceIssuedSummaryWebhookEvent }
|
|
113
|
+
|
|
114
|
+
# Issued when an invoice is manually marked as paid.
|
|
115
|
+
variant -> { Orb::InvoiceManuallyMarkedAsPaidWebhookEvent }
|
|
116
|
+
|
|
117
|
+
# Issued when an invoice is marked as void.
|
|
118
|
+
variant -> { Orb::InvoiceManuallyMarkedAsVoidWebhookEvent }
|
|
119
|
+
|
|
120
|
+
# Issued when automated payment collection for an invoice fails for a configured payment gateway.
|
|
121
|
+
variant -> { Orb::InvoicePaymentFailedWebhookEvent }
|
|
122
|
+
|
|
123
|
+
# Issued when an invoice payment is being processed.
|
|
124
|
+
variant -> { Orb::InvoicePaymentProcessingWebhookEvent }
|
|
125
|
+
|
|
126
|
+
# Issued when automated payment collection for an invoice succeeds for a configured payment gateway.
|
|
127
|
+
variant -> { Orb::InvoicePaymentSucceededWebhookEvent }
|
|
128
|
+
|
|
129
|
+
# Issued when an invoice sync fails.
|
|
130
|
+
variant -> { Orb::InvoiceSyncFailedWebhookEvent }
|
|
131
|
+
|
|
132
|
+
# Issued when an invoice sync succeeds.
|
|
133
|
+
variant -> { Orb::InvoiceSyncSucceededWebhookEvent }
|
|
134
|
+
|
|
135
|
+
# Issued when an invoice is undone from marked as paid.
|
|
136
|
+
variant -> { Orb::InvoiceUndoMarkAsPaidWebhookEvent }
|
|
137
|
+
|
|
138
|
+
# Issued when an invoice due date recalculation is canceled.
|
|
139
|
+
variant -> { Orb::InvoiceDueDateRecalculationCanceledWebhookEvent }
|
|
140
|
+
|
|
141
|
+
# Issued when an invoice due date recalculation is completed.
|
|
142
|
+
variant -> { Orb::InvoiceDueDateRecalculationCompletedWebhookEvent }
|
|
143
|
+
|
|
144
|
+
# Issued when an invoice due date recalculation is started.
|
|
145
|
+
variant -> { Orb::InvoiceDueDateRecalculationStartedWebhookEvent }
|
|
146
|
+
|
|
147
|
+
# Issued when metric events are dropped by watermark threshold.
|
|
148
|
+
variant -> { Orb::MetricEventsDroppedByWatermarkWebhookEvent }
|
|
149
|
+
|
|
150
|
+
# Issued when a payment method is created.
|
|
151
|
+
variant -> { Orb::PaymentMethodCreatedWebhookEvent }
|
|
152
|
+
|
|
153
|
+
# Issued when a payment method is deleted.
|
|
154
|
+
variant -> { Orb::PaymentMethodDeletedWebhookEvent }
|
|
155
|
+
|
|
156
|
+
# Issued when a plan's default version is set.
|
|
157
|
+
variant -> { Orb::PlanDefaultVersionSetWebhookEvent }
|
|
158
|
+
|
|
159
|
+
# Issued when a new plan version is created.
|
|
160
|
+
variant -> { Orb::PlanVersionCreatedWebhookEvent }
|
|
161
|
+
|
|
162
|
+
# Issued when a price is edited.
|
|
163
|
+
variant -> { Orb::PriceEditedWebhookEvent }
|
|
164
|
+
|
|
165
|
+
# Issued when a test webhook is sent.
|
|
166
|
+
variant -> { Orb::ResourceEventTestWebhookEvent }
|
|
167
|
+
|
|
168
|
+
# Issued when a sales order accounting sync fails.
|
|
169
|
+
variant -> { Orb::SalesOrderAccountingSyncFailedWebhookEvent }
|
|
170
|
+
|
|
171
|
+
# Issued when a sales order accounting sync succeeds.
|
|
172
|
+
variant -> { Orb::SalesOrderAccountingSyncSucceededWebhookEvent }
|
|
173
|
+
|
|
174
|
+
# Issued when a subscription accounting sync fails.
|
|
175
|
+
variant -> { Orb::SubscriptionAccountingSyncFailedWebhookEvent }
|
|
176
|
+
|
|
177
|
+
# Issued when a subscription accounting sync succeeds.
|
|
178
|
+
variant -> { Orb::SubscriptionAccountingSyncSucceededWebhookEvent }
|
|
179
|
+
|
|
180
|
+
# Issued when an alert is automatically disabled by the system.
|
|
181
|
+
variant -> { Orb::SubscriptionAlertDisabledWebhookEvent }
|
|
182
|
+
|
|
183
|
+
# Issued when a subscription cancellation is scheduled.
|
|
184
|
+
variant -> { Orb::SubscriptionCancellationScheduledWebhookEvent }
|
|
185
|
+
|
|
186
|
+
# Issued when a scheduled subscription cancellation is unscheduled.
|
|
187
|
+
variant -> { Orb::SubscriptionCancellationUnscheduledWebhookEvent }
|
|
188
|
+
|
|
189
|
+
# Issued when a subscription's cost exceeds a pre-configured amount threshold.
|
|
190
|
+
variant -> { Orb::SubscriptionCostExceededWebhookEvent }
|
|
191
|
+
|
|
192
|
+
# Issued when a subscription resource is created.
|
|
193
|
+
variant -> { Orb::SubscriptionCreatedWebhookEvent }
|
|
194
|
+
|
|
195
|
+
# Issued when a subscription is updated.
|
|
196
|
+
variant -> { Orb::SubscriptionEditedWebhookEvent }
|
|
197
|
+
|
|
198
|
+
# Issued whenever a customer's subscription ends/lapses.
|
|
199
|
+
variant -> { Orb::SubscriptionEndedWebhookEvent }
|
|
200
|
+
|
|
201
|
+
# Issued when a subscription's fixed fee quantity is updated.
|
|
202
|
+
variant -> { Orb::SubscriptionFixedFeeQuantityUpdatedWebhookEvent }
|
|
203
|
+
|
|
204
|
+
# Issued when grouped subscription costs exceed a pre-configured amount threshold.
|
|
205
|
+
variant -> { Orb::SubscriptionGroupedCostExceededWebhookEvent }
|
|
206
|
+
|
|
207
|
+
# Issued when a subscription's invoicing threshold is exceeded and an evaluation is performed.
|
|
208
|
+
variant -> { Orb::SubscriptionInvoicingThresholdExceededWebhookEvent }
|
|
209
|
+
|
|
210
|
+
# Issued when a license allocation is reset.
|
|
211
|
+
variant -> { Orb::SubscriptionLicenseAllocationResetWebhookEvent }
|
|
212
|
+
|
|
213
|
+
# Issued when a license balance threshold is reached.
|
|
214
|
+
variant -> { Orb::SubscriptionLicenseBalanceThresholdReachedWebhookEvent }
|
|
215
|
+
|
|
216
|
+
# Issued when a subscription plan change is scheduled.
|
|
217
|
+
variant -> { Orb::SubscriptionPlanChangeScheduledWebhookEvent }
|
|
218
|
+
|
|
219
|
+
# Issued when a subscription transitions from one plan to a different plan.
|
|
220
|
+
variant -> { Orb::SubscriptionPlanChangedWebhookEvent }
|
|
221
|
+
|
|
222
|
+
# Issued when a subscription plan version change is scheduled.
|
|
223
|
+
variant -> { Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent }
|
|
224
|
+
|
|
225
|
+
# Issued when a subscription plan version has changed.
|
|
226
|
+
variant -> { Orb::SubscriptionPlanVersionChangedWebhookEvent }
|
|
227
|
+
|
|
228
|
+
# Issued when a subscription's rated spend, before credits and adjustments, exceeds a pre-configured amount threshold.
|
|
229
|
+
variant -> { Orb::SubscriptionSpendExceededWebhookEvent }
|
|
230
|
+
|
|
231
|
+
# Issued when a subscription begins.
|
|
232
|
+
variant -> { Orb::SubscriptionStartedWebhookEvent }
|
|
233
|
+
|
|
234
|
+
# Issued when a subscription trial ends.
|
|
235
|
+
variant -> { Orb::SubscriptionTrialEndedWebhookEvent }
|
|
236
|
+
|
|
237
|
+
# Issued when a billable metric in a subscription exceeds a pre-configured quantity threshold.
|
|
238
|
+
variant -> { Orb::SubscriptionUsageExceededWebhookEvent }
|
|
239
|
+
|
|
240
|
+
# Issued when a transaction accounting sync fails.
|
|
241
|
+
variant -> { Orb::TransactionAccountingSyncFailedWebhookEvent }
|
|
242
|
+
|
|
243
|
+
# Issued when a transaction accounting sync succeeds.
|
|
244
|
+
variant -> { Orb::TransactionAccountingSyncSucceededWebhookEvent }
|
|
245
|
+
|
|
246
|
+
# @!method self.variants
|
|
247
|
+
# @return [Array(Orb::Models::BackfillReflectedWebhookEvent, Orb::Models::BackfillRevertedWebhookEvent, Orb::Models::BillableMetricEditedWebhookEvent, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent, Orb::Models::CreditNoteIssuedWebhookEvent, Orb::Models::CreditNoteMarkedAsVoidWebhookEvent, Orb::Models::CustomerAccountingSyncFailedWebhookEvent, Orb::Models::CustomerAccountingSyncSucceededWebhookEvent, Orb::Models::CustomerBalanceTransactionCreatedWebhookEvent, Orb::Models::CustomerCreatedWebhookEvent, Orb::Models::CustomerCreditBalanceDepletedWebhookEvent, Orb::Models::CustomerCreditBalanceDroppedWebhookEvent, Orb::Models::CustomerCreditBalanceRecoveredWebhookEvent, Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent, Orb::Models::CustomerEditedWebhookEvent, Orb::Models::DataExportsTransferErrorWebhookEvent, Orb::Models::DataExportsTransferSuccessWebhookEvent, Orb::Models::EventUnmatchedEventWebhookEvent, Orb::Models::IngestionUnmatchedCustomerIDsWebhookEvent, Orb::Models::InvoiceAccountingSyncFailedWebhookEvent, Orb::Models::InvoiceAccountingSyncSucceededWebhookEvent, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent, Orb::Models::InvoiceCostDataExportedWebhookEvent, Orb::Models::InvoiceDunningScheduleCreatedWebhookEvent, Orb::Models::InvoiceDunningScheduleEndedWebhookEvent, Orb::Models::InvoiceDunningScheduleResetWebhookEvent, Orb::Models::InvoiceDunningScheduleStepExecutedWebhookEvent, Orb::Models::InvoiceEditedWebhookEvent, Orb::Models::InvoiceInvoiceDateElapsedWebhookEvent, Orb::Models::InvoiceIssueFailedWebhookEvent, Orb::Models::InvoiceIssuedWebhookEvent, Orb::Models::InvoiceIssuedSummaryWebhookEvent, Orb::Models::InvoiceManuallyMarkedAsPaidWebhookEvent, Orb::Models::InvoiceManuallyMarkedAsVoidWebhookEvent, Orb::Models::InvoicePaymentFailedWebhookEvent, Orb::Models::InvoicePaymentProcessingWebhookEvent, Orb::Models::InvoicePaymentSucceededWebhookEvent, Orb::Models::InvoiceSyncFailedWebhookEvent, Orb::Models::InvoiceSyncSucceededWebhookEvent, Orb::Models::InvoiceUndoMarkAsPaidWebhookEvent, Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent, Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent, Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent, Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent, Orb::Models::PaymentMethodCreatedWebhookEvent, Orb::Models::PaymentMethodDeletedWebhookEvent, Orb::Models::PlanDefaultVersionSetWebhookEvent, Orb::Models::PlanVersionCreatedWebhookEvent, Orb::Models::PriceEditedWebhookEvent, Orb::Models::ResourceEventTestWebhookEvent, Orb::Models::SalesOrderAccountingSyncFailedWebhookEvent, Orb::Models::SalesOrderAccountingSyncSucceededWebhookEvent, Orb::Models::SubscriptionAccountingSyncFailedWebhookEvent, Orb::Models::SubscriptionAccountingSyncSucceededWebhookEvent, Orb::Models::SubscriptionAlertDisabledWebhookEvent, Orb::Models::SubscriptionCancellationScheduledWebhookEvent, Orb::Models::SubscriptionCancellationUnscheduledWebhookEvent, Orb::Models::SubscriptionCostExceededWebhookEvent, Orb::Models::SubscriptionCreatedWebhookEvent, Orb::Models::SubscriptionEditedWebhookEvent, Orb::Models::SubscriptionEndedWebhookEvent, Orb::Models::SubscriptionFixedFeeQuantityUpdatedWebhookEvent, Orb::Models::SubscriptionGroupedCostExceededWebhookEvent, Orb::Models::SubscriptionInvoicingThresholdExceededWebhookEvent, Orb::Models::SubscriptionLicenseAllocationResetWebhookEvent, Orb::Models::SubscriptionLicenseBalanceThresholdReachedWebhookEvent, Orb::Models::SubscriptionPlanChangeScheduledWebhookEvent, Orb::Models::SubscriptionPlanChangedWebhookEvent, Orb::Models::SubscriptionPlanVersionChangeScheduledWebhookEvent, Orb::Models::SubscriptionPlanVersionChangedWebhookEvent, Orb::Models::SubscriptionSpendExceededWebhookEvent, Orb::Models::SubscriptionStartedWebhookEvent, Orb::Models::SubscriptionTrialEndedWebhookEvent, Orb::Models::SubscriptionUsageExceededWebhookEvent, Orb::Models::TransactionAccountingSyncFailedWebhookEvent, Orb::Models::TransactionAccountingSyncSucceededWebhookEvent)]
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
# @see Orb::Resources::Webhooks#unwrap
|
|
6
|
+
class WebhookUnwrapParams < Orb::Internal::Type::BaseModel
|
|
7
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Orb::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/lib/orb/models.rb
CHANGED
|
@@ -75,6 +75,10 @@ module Orb
|
|
|
75
75
|
|
|
76
76
|
AmountDiscountInterval = Orb::Models::AmountDiscountInterval
|
|
77
77
|
|
|
78
|
+
BackfillReflectedWebhookEvent = Orb::Models::BackfillReflectedWebhookEvent
|
|
79
|
+
|
|
80
|
+
BackfillRevertedWebhookEvent = Orb::Models::BackfillRevertedWebhookEvent
|
|
81
|
+
|
|
78
82
|
Beta = Orb::Models::Beta
|
|
79
83
|
|
|
80
84
|
BetaCreatePlanVersionParams = Orb::Models::BetaCreatePlanVersionParams
|
|
@@ -85,6 +89,8 @@ module Orb
|
|
|
85
89
|
|
|
86
90
|
BillableMetric = Orb::Models::BillableMetric
|
|
87
91
|
|
|
92
|
+
BillableMetricEditedWebhookEvent = Orb::Models::BillableMetricEditedWebhookEvent
|
|
93
|
+
|
|
88
94
|
BillableMetricTiny = Orb::Models::BillableMetricTiny
|
|
89
95
|
|
|
90
96
|
BillingCycleAnchorConfiguration = Orb::Models::BillingCycleAnchorConfiguration
|
|
@@ -121,6 +127,11 @@ module Orb
|
|
|
121
127
|
|
|
122
128
|
Coupons = Orb::Models::Coupons
|
|
123
129
|
|
|
130
|
+
CreditBlockAccountingSyncFailedWebhookEvent = Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent
|
|
131
|
+
|
|
132
|
+
CreditBlockAccountingSyncSucceededWebhookEvent =
|
|
133
|
+
Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent
|
|
134
|
+
|
|
124
135
|
CreditBlockDeleteParams = Orb::Models::CreditBlockDeleteParams
|
|
125
136
|
|
|
126
137
|
CreditBlockListInvoicesParams = Orb::Models::CreditBlockListInvoicesParams
|
|
@@ -129,16 +140,34 @@ module Orb
|
|
|
129
140
|
|
|
130
141
|
CreditNote = Orb::Models::CreditNote
|
|
131
142
|
|
|
143
|
+
CreditNoteAccountingSyncFailedWebhookEvent = Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent
|
|
144
|
+
|
|
145
|
+
CreditNoteAccountingSyncSucceededWebhookEvent =
|
|
146
|
+
Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent
|
|
147
|
+
|
|
132
148
|
CreditNoteCreateParams = Orb::Models::CreditNoteCreateParams
|
|
133
149
|
|
|
134
150
|
CreditNoteFetchParams = Orb::Models::CreditNoteFetchParams
|
|
135
151
|
|
|
152
|
+
CreditNoteIssuedWebhookEvent = Orb::Models::CreditNoteIssuedWebhookEvent
|
|
153
|
+
|
|
136
154
|
CreditNoteListParams = Orb::Models::CreditNoteListParams
|
|
137
155
|
|
|
156
|
+
CreditNoteMarkedAsVoidWebhookEvent = Orb::Models::CreditNoteMarkedAsVoidWebhookEvent
|
|
157
|
+
|
|
138
158
|
CreditNoteTiny = Orb::Models::CreditNoteTiny
|
|
139
159
|
|
|
140
160
|
Customer = Orb::Models::Customer
|
|
141
161
|
|
|
162
|
+
CustomerAccountingSyncFailedWebhookEvent = Orb::Models::CustomerAccountingSyncFailedWebhookEvent
|
|
163
|
+
|
|
164
|
+
CustomerAccountingSyncSucceededWebhookEvent = Orb::Models::CustomerAccountingSyncSucceededWebhookEvent
|
|
165
|
+
|
|
166
|
+
CustomerBalanceTransactionCreatedWebhookEvent =
|
|
167
|
+
Orb::Models::CustomerBalanceTransactionCreatedWebhookEvent
|
|
168
|
+
|
|
169
|
+
CustomerCreatedWebhookEvent = Orb::Models::CustomerCreatedWebhookEvent
|
|
170
|
+
|
|
142
171
|
CustomerCreateParams = Orb::Models::CustomerCreateParams
|
|
143
172
|
|
|
144
173
|
CustomerCreatePortalSessionByExternalIDParams =
|
|
@@ -146,8 +175,18 @@ module Orb
|
|
|
146
175
|
|
|
147
176
|
CustomerCreatePortalSessionParams = Orb::Models::CustomerCreatePortalSessionParams
|
|
148
177
|
|
|
178
|
+
CustomerCreditBalanceDepletedWebhookEvent = Orb::Models::CustomerCreditBalanceDepletedWebhookEvent
|
|
179
|
+
|
|
180
|
+
CustomerCreditBalanceDroppedWebhookEvent = Orb::Models::CustomerCreditBalanceDroppedWebhookEvent
|
|
181
|
+
|
|
182
|
+
CustomerCreditBalanceRecoveredWebhookEvent = Orb::Models::CustomerCreditBalanceRecoveredWebhookEvent
|
|
183
|
+
|
|
184
|
+
CustomerCreditLedgerIncrementedWebhookEvent = Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent
|
|
185
|
+
|
|
149
186
|
CustomerDeleteParams = Orb::Models::CustomerDeleteParams
|
|
150
187
|
|
|
188
|
+
CustomerEditedWebhookEvent = Orb::Models::CustomerEditedWebhookEvent
|
|
189
|
+
|
|
151
190
|
CustomerFetchByExternalIDParams = Orb::Models::CustomerFetchByExternalIDParams
|
|
152
191
|
|
|
153
192
|
CustomerFetchParams = Orb::Models::CustomerFetchParams
|
|
@@ -173,6 +212,10 @@ module Orb
|
|
|
173
212
|
|
|
174
213
|
CustomExpiration = Orb::Models::CustomExpiration
|
|
175
214
|
|
|
215
|
+
DataExportsTransferErrorWebhookEvent = Orb::Models::DataExportsTransferErrorWebhookEvent
|
|
216
|
+
|
|
217
|
+
DataExportsTransferSuccessWebhookEvent = Orb::Models::DataExportsTransferSuccessWebhookEvent
|
|
218
|
+
|
|
176
219
|
DimensionalPriceConfiguration = Orb::Models::DimensionalPriceConfiguration
|
|
177
220
|
|
|
178
221
|
DimensionalPriceGroup = Orb::Models::DimensionalPriceGroup
|
|
@@ -203,22 +246,63 @@ module Orb
|
|
|
203
246
|
|
|
204
247
|
EventSearchParams = Orb::Models::EventSearchParams
|
|
205
248
|
|
|
249
|
+
EventUnmatchedEventWebhookEvent = Orb::Models::EventUnmatchedEventWebhookEvent
|
|
250
|
+
|
|
206
251
|
EventUpdateParams = Orb::Models::EventUpdateParams
|
|
207
252
|
|
|
208
253
|
FixedFeeQuantityScheduleEntry = Orb::Models::FixedFeeQuantityScheduleEntry
|
|
209
254
|
|
|
210
255
|
FixedFeeQuantityTransition = Orb::Models::FixedFeeQuantityTransition
|
|
211
256
|
|
|
257
|
+
IngestionUnmatchedCustomerIDsWebhookEvent = Orb::Models::IngestionUnmatchedCustomerIDsWebhookEvent
|
|
258
|
+
|
|
212
259
|
Invoice = Orb::Models::Invoice
|
|
213
260
|
|
|
261
|
+
InvoiceAccountingSyncFailedWebhookEvent = Orb::Models::InvoiceAccountingSyncFailedWebhookEvent
|
|
262
|
+
|
|
263
|
+
InvoiceAccountingSyncSucceededWebhookEvent = Orb::Models::InvoiceAccountingSyncSucceededWebhookEvent
|
|
264
|
+
|
|
265
|
+
InvoiceAutomationScheduleStepExecutedWebhookEvent =
|
|
266
|
+
Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent
|
|
267
|
+
|
|
268
|
+
InvoiceCostDataExportedWebhookEvent = Orb::Models::InvoiceCostDataExportedWebhookEvent
|
|
269
|
+
|
|
214
270
|
InvoiceCreateParams = Orb::Models::InvoiceCreateParams
|
|
215
271
|
|
|
216
272
|
InvoiceDeleteLineItemParams = Orb::Models::InvoiceDeleteLineItemParams
|
|
217
273
|
|
|
274
|
+
InvoiceDueDateRecalculationCanceledWebhookEvent =
|
|
275
|
+
Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent
|
|
276
|
+
|
|
277
|
+
InvoiceDueDateRecalculationCompletedWebhookEvent =
|
|
278
|
+
Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent
|
|
279
|
+
|
|
280
|
+
InvoiceDueDateRecalculationStartedWebhookEvent =
|
|
281
|
+
Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent
|
|
282
|
+
|
|
283
|
+
InvoiceDunningScheduleCreatedWebhookEvent = Orb::Models::InvoiceDunningScheduleCreatedWebhookEvent
|
|
284
|
+
|
|
285
|
+
InvoiceDunningScheduleEndedWebhookEvent = Orb::Models::InvoiceDunningScheduleEndedWebhookEvent
|
|
286
|
+
|
|
287
|
+
InvoiceDunningScheduleResetWebhookEvent = Orb::Models::InvoiceDunningScheduleResetWebhookEvent
|
|
288
|
+
|
|
289
|
+
InvoiceDunningScheduleStepExecutedWebhookEvent =
|
|
290
|
+
Orb::Models::InvoiceDunningScheduleStepExecutedWebhookEvent
|
|
291
|
+
|
|
292
|
+
InvoiceEditedWebhookEvent = Orb::Models::InvoiceEditedWebhookEvent
|
|
293
|
+
|
|
218
294
|
InvoiceFetchParams = Orb::Models::InvoiceFetchParams
|
|
219
295
|
|
|
220
296
|
InvoiceFetchUpcomingParams = Orb::Models::InvoiceFetchUpcomingParams
|
|
221
297
|
|
|
298
|
+
InvoiceInvoiceDateElapsedWebhookEvent = Orb::Models::InvoiceInvoiceDateElapsedWebhookEvent
|
|
299
|
+
|
|
300
|
+
InvoiceIssuedSummaryWebhookEvent = Orb::Models::InvoiceIssuedSummaryWebhookEvent
|
|
301
|
+
|
|
302
|
+
InvoiceIssuedWebhookEvent = Orb::Models::InvoiceIssuedWebhookEvent
|
|
303
|
+
|
|
304
|
+
InvoiceIssueFailedWebhookEvent = Orb::Models::InvoiceIssueFailedWebhookEvent
|
|
305
|
+
|
|
222
306
|
InvoiceIssueParams = Orb::Models::InvoiceIssueParams
|
|
223
307
|
|
|
224
308
|
InvoiceIssueSummaryParams = Orb::Models::InvoiceIssueSummaryParams
|
|
@@ -231,16 +315,32 @@ module Orb
|
|
|
231
315
|
|
|
232
316
|
InvoiceListSummaryParams = Orb::Models::InvoiceListSummaryParams
|
|
233
317
|
|
|
318
|
+
InvoiceManuallyMarkedAsPaidWebhookEvent = Orb::Models::InvoiceManuallyMarkedAsPaidWebhookEvent
|
|
319
|
+
|
|
320
|
+
InvoiceManuallyMarkedAsVoidWebhookEvent = Orb::Models::InvoiceManuallyMarkedAsVoidWebhookEvent
|
|
321
|
+
|
|
234
322
|
InvoiceMarkPaidParams = Orb::Models::InvoiceMarkPaidParams
|
|
235
323
|
|
|
324
|
+
InvoicePaymentFailedWebhookEvent = Orb::Models::InvoicePaymentFailedWebhookEvent
|
|
325
|
+
|
|
326
|
+
InvoicePaymentProcessingWebhookEvent = Orb::Models::InvoicePaymentProcessingWebhookEvent
|
|
327
|
+
|
|
328
|
+
InvoicePaymentSucceededWebhookEvent = Orb::Models::InvoicePaymentSucceededWebhookEvent
|
|
329
|
+
|
|
236
330
|
InvoicePayParams = Orb::Models::InvoicePayParams
|
|
237
331
|
|
|
238
332
|
InvoiceRegenerateInvoicePdfParams = Orb::Models::InvoiceRegenerateInvoicePdfParams
|
|
239
333
|
|
|
240
334
|
InvoiceRegenerateReceiptPdfParams = Orb::Models::InvoiceRegenerateReceiptPdfParams
|
|
241
335
|
|
|
336
|
+
InvoiceSyncFailedWebhookEvent = Orb::Models::InvoiceSyncFailedWebhookEvent
|
|
337
|
+
|
|
338
|
+
InvoiceSyncSucceededWebhookEvent = Orb::Models::InvoiceSyncSucceededWebhookEvent
|
|
339
|
+
|
|
242
340
|
InvoiceTiny = Orb::Models::InvoiceTiny
|
|
243
341
|
|
|
342
|
+
InvoiceUndoMarkAsPaidWebhookEvent = Orb::Models::InvoiceUndoMarkAsPaidWebhookEvent
|
|
343
|
+
|
|
244
344
|
InvoiceUpdateParams = Orb::Models::InvoiceUpdateParams
|
|
245
345
|
|
|
246
346
|
InvoiceVoidParams = Orb::Models::InvoiceVoidParams
|
|
@@ -291,6 +391,8 @@ module Orb
|
|
|
291
391
|
|
|
292
392
|
MetricCreateParams = Orb::Models::MetricCreateParams
|
|
293
393
|
|
|
394
|
+
MetricEventsDroppedByWatermarkWebhookEvent = Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent
|
|
395
|
+
|
|
294
396
|
MetricFetchParams = Orb::Models::MetricFetchParams
|
|
295
397
|
|
|
296
398
|
MetricListParams = Orb::Models::MetricListParams
|
|
@@ -503,6 +605,10 @@ module Orb
|
|
|
503
605
|
|
|
504
606
|
PaginationMetadata = Orb::Models::PaginationMetadata
|
|
505
607
|
|
|
608
|
+
PaymentMethodCreatedWebhookEvent = Orb::Models::PaymentMethodCreatedWebhookEvent
|
|
609
|
+
|
|
610
|
+
PaymentMethodDeletedWebhookEvent = Orb::Models::PaymentMethodDeletedWebhookEvent
|
|
611
|
+
|
|
506
612
|
PercentageDiscount = Orb::Models::PercentageDiscount
|
|
507
613
|
|
|
508
614
|
PercentageDiscountInterval = Orb::Models::PercentageDiscountInterval
|
|
@@ -513,6 +619,8 @@ module Orb
|
|
|
513
619
|
|
|
514
620
|
PlanCreateParams = Orb::Models::PlanCreateParams
|
|
515
621
|
|
|
622
|
+
PlanDefaultVersionSetWebhookEvent = Orb::Models::PlanDefaultVersionSetWebhookEvent
|
|
623
|
+
|
|
516
624
|
PlanFetchParams = Orb::Models::PlanFetchParams
|
|
517
625
|
|
|
518
626
|
PlanListParams = Orb::Models::PlanListParams
|
|
@@ -533,12 +641,16 @@ module Orb
|
|
|
533
641
|
|
|
534
642
|
PlanVersion = Orb::Models::PlanVersion
|
|
535
643
|
|
|
644
|
+
PlanVersionCreatedWebhookEvent = Orb::Models::PlanVersionCreatedWebhookEvent
|
|
645
|
+
|
|
536
646
|
PlanVersionPhase = Orb::Models::PlanVersionPhase
|
|
537
647
|
|
|
538
648
|
Price = Orb::Models::Price
|
|
539
649
|
|
|
540
650
|
PriceCreateParams = Orb::Models::PriceCreateParams
|
|
541
651
|
|
|
652
|
+
PriceEditedWebhookEvent = Orb::Models::PriceEditedWebhookEvent
|
|
653
|
+
|
|
542
654
|
PriceEvaluateMultipleParams = Orb::Models::PriceEvaluateMultipleParams
|
|
543
655
|
|
|
544
656
|
PriceEvaluateParams = Orb::Models::PriceEvaluateParams
|
|
@@ -555,12 +667,32 @@ module Orb
|
|
|
555
667
|
|
|
556
668
|
PriceUpdateParams = Orb::Models::PriceUpdateParams
|
|
557
669
|
|
|
670
|
+
ResourceEventTestWebhookEvent = Orb::Models::ResourceEventTestWebhookEvent
|
|
671
|
+
|
|
672
|
+
SalesOrderAccountingSyncFailedWebhookEvent = Orb::Models::SalesOrderAccountingSyncFailedWebhookEvent
|
|
673
|
+
|
|
674
|
+
SalesOrderAccountingSyncSucceededWebhookEvent =
|
|
675
|
+
Orb::Models::SalesOrderAccountingSyncSucceededWebhookEvent
|
|
676
|
+
|
|
558
677
|
SubLineItemGrouping = Orb::Models::SubLineItemGrouping
|
|
559
678
|
|
|
560
679
|
SubLineItemMatrixConfig = Orb::Models::SubLineItemMatrixConfig
|
|
561
680
|
|
|
562
681
|
Subscription = Orb::Models::Subscription
|
|
563
682
|
|
|
683
|
+
SubscriptionAccountingSyncFailedWebhookEvent = Orb::Models::SubscriptionAccountingSyncFailedWebhookEvent
|
|
684
|
+
|
|
685
|
+
SubscriptionAccountingSyncSucceededWebhookEvent =
|
|
686
|
+
Orb::Models::SubscriptionAccountingSyncSucceededWebhookEvent
|
|
687
|
+
|
|
688
|
+
SubscriptionAlertDisabledWebhookEvent = Orb::Models::SubscriptionAlertDisabledWebhookEvent
|
|
689
|
+
|
|
690
|
+
SubscriptionCancellationScheduledWebhookEvent =
|
|
691
|
+
Orb::Models::SubscriptionCancellationScheduledWebhookEvent
|
|
692
|
+
|
|
693
|
+
SubscriptionCancellationUnscheduledWebhookEvent =
|
|
694
|
+
Orb::Models::SubscriptionCancellationUnscheduledWebhookEvent
|
|
695
|
+
|
|
564
696
|
SubscriptionCancelParams = Orb::Models::SubscriptionCancelParams
|
|
565
697
|
|
|
566
698
|
SubscriptionChangeApplyParams = Orb::Models::SubscriptionChangeApplyParams
|
|
@@ -573,8 +705,16 @@ module Orb
|
|
|
573
705
|
|
|
574
706
|
SubscriptionChangeRetrieveParams = Orb::Models::SubscriptionChangeRetrieveParams
|
|
575
707
|
|
|
708
|
+
SubscriptionCostExceededWebhookEvent = Orb::Models::SubscriptionCostExceededWebhookEvent
|
|
709
|
+
|
|
710
|
+
SubscriptionCreatedWebhookEvent = Orb::Models::SubscriptionCreatedWebhookEvent
|
|
711
|
+
|
|
576
712
|
SubscriptionCreateParams = Orb::Models::SubscriptionCreateParams
|
|
577
713
|
|
|
714
|
+
SubscriptionEditedWebhookEvent = Orb::Models::SubscriptionEditedWebhookEvent
|
|
715
|
+
|
|
716
|
+
SubscriptionEndedWebhookEvent = Orb::Models::SubscriptionEndedWebhookEvent
|
|
717
|
+
|
|
578
718
|
SubscriptionFetchCostsParams = Orb::Models::SubscriptionFetchCostsParams
|
|
579
719
|
|
|
580
720
|
SubscriptionFetchParams = Orb::Models::SubscriptionFetchParams
|
|
@@ -583,10 +723,33 @@ module Orb
|
|
|
583
723
|
|
|
584
724
|
SubscriptionFetchUsageParams = Orb::Models::SubscriptionFetchUsageParams
|
|
585
725
|
|
|
726
|
+
SubscriptionFixedFeeQuantityUpdatedWebhookEvent =
|
|
727
|
+
Orb::Models::SubscriptionFixedFeeQuantityUpdatedWebhookEvent
|
|
728
|
+
|
|
729
|
+
SubscriptionGroupedCostExceededWebhookEvent = Orb::Models::SubscriptionGroupedCostExceededWebhookEvent
|
|
730
|
+
|
|
731
|
+
SubscriptionInvoicingThresholdExceededWebhookEvent =
|
|
732
|
+
Orb::Models::SubscriptionInvoicingThresholdExceededWebhookEvent
|
|
733
|
+
|
|
734
|
+
SubscriptionLicenseAllocationResetWebhookEvent =
|
|
735
|
+
Orb::Models::SubscriptionLicenseAllocationResetWebhookEvent
|
|
736
|
+
|
|
737
|
+
SubscriptionLicenseBalanceThresholdReachedWebhookEvent =
|
|
738
|
+
Orb::Models::SubscriptionLicenseBalanceThresholdReachedWebhookEvent
|
|
739
|
+
|
|
586
740
|
SubscriptionListParams = Orb::Models::SubscriptionListParams
|
|
587
741
|
|
|
588
742
|
SubscriptionMinified = Orb::Models::SubscriptionMinified
|
|
589
743
|
|
|
744
|
+
SubscriptionPlanChangedWebhookEvent = Orb::Models::SubscriptionPlanChangedWebhookEvent
|
|
745
|
+
|
|
746
|
+
SubscriptionPlanChangeScheduledWebhookEvent = Orb::Models::SubscriptionPlanChangeScheduledWebhookEvent
|
|
747
|
+
|
|
748
|
+
SubscriptionPlanVersionChangedWebhookEvent = Orb::Models::SubscriptionPlanVersionChangedWebhookEvent
|
|
749
|
+
|
|
750
|
+
SubscriptionPlanVersionChangeScheduledWebhookEvent =
|
|
751
|
+
Orb::Models::SubscriptionPlanVersionChangeScheduledWebhookEvent
|
|
752
|
+
|
|
590
753
|
SubscriptionPriceIntervalsParams = Orb::Models::SubscriptionPriceIntervalsParams
|
|
591
754
|
|
|
592
755
|
SubscriptionRedeemCouponParams = Orb::Models::SubscriptionRedeemCouponParams
|
|
@@ -595,6 +758,12 @@ module Orb
|
|
|
595
758
|
|
|
596
759
|
SubscriptionSchedulePlanChangeParams = Orb::Models::SubscriptionSchedulePlanChangeParams
|
|
597
760
|
|
|
761
|
+
SubscriptionSpendExceededWebhookEvent = Orb::Models::SubscriptionSpendExceededWebhookEvent
|
|
762
|
+
|
|
763
|
+
SubscriptionStartedWebhookEvent = Orb::Models::SubscriptionStartedWebhookEvent
|
|
764
|
+
|
|
765
|
+
SubscriptionTrialEndedWebhookEvent = Orb::Models::SubscriptionTrialEndedWebhookEvent
|
|
766
|
+
|
|
598
767
|
SubscriptionTrialInfo = Orb::Models::SubscriptionTrialInfo
|
|
599
768
|
|
|
600
769
|
SubscriptionTriggerPhaseParams = Orb::Models::SubscriptionTriggerPhaseParams
|
|
@@ -615,6 +784,8 @@ module Orb
|
|
|
615
784
|
|
|
616
785
|
SubscriptionUsage = Orb::Models::SubscriptionUsage
|
|
617
786
|
|
|
787
|
+
SubscriptionUsageExceededWebhookEvent = Orb::Models::SubscriptionUsageExceededWebhookEvent
|
|
788
|
+
|
|
618
789
|
TaxAmount = Orb::Models::TaxAmount
|
|
619
790
|
|
|
620
791
|
Threshold = Orb::Models::Threshold
|
|
@@ -629,13 +800,22 @@ module Orb
|
|
|
629
800
|
|
|
630
801
|
TopLevelPingParams = Orb::Models::TopLevelPingParams
|
|
631
802
|
|
|
803
|
+
TransactionAccountingSyncFailedWebhookEvent = Orb::Models::TransactionAccountingSyncFailedWebhookEvent
|
|
804
|
+
|
|
805
|
+
TransactionAccountingSyncSucceededWebhookEvent =
|
|
806
|
+
Orb::Models::TransactionAccountingSyncSucceededWebhookEvent
|
|
807
|
+
|
|
632
808
|
TrialDiscount = Orb::Models::TrialDiscount
|
|
633
809
|
|
|
634
810
|
UnitConfig = Orb::Models::UnitConfig
|
|
635
811
|
|
|
636
812
|
UnitConversionRateConfig = Orb::Models::UnitConversionRateConfig
|
|
637
813
|
|
|
814
|
+
UnwrapWebhookEvent = Orb::Models::UnwrapWebhookEvent
|
|
815
|
+
|
|
638
816
|
UsageDiscount = Orb::Models::UsageDiscount
|
|
639
817
|
|
|
640
818
|
UsageDiscountInterval = Orb::Models::UsageDiscountInterval
|
|
819
|
+
|
|
820
|
+
WebhookUnwrapParams = Orb::Models::WebhookUnwrapParams
|
|
641
821
|
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Resources
|
|
5
|
+
class Webhooks
|
|
6
|
+
# @param payload [String] The raw webhook payload as a string
|
|
7
|
+
#
|
|
8
|
+
# @return [Orb::Models::BackfillReflectedWebhookEvent, Orb::Models::BackfillRevertedWebhookEvent, Orb::Models::BillableMetricEditedWebhookEvent, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent, Orb::Models::CreditNoteIssuedWebhookEvent, Orb::Models::CreditNoteMarkedAsVoidWebhookEvent, Orb::Models::CustomerAccountingSyncFailedWebhookEvent, Orb::Models::CustomerAccountingSyncSucceededWebhookEvent, Orb::Models::CustomerBalanceTransactionCreatedWebhookEvent, Orb::Models::CustomerCreatedWebhookEvent, Orb::Models::CustomerCreditBalanceDepletedWebhookEvent, Orb::Models::CustomerCreditBalanceDroppedWebhookEvent, Orb::Models::CustomerCreditBalanceRecoveredWebhookEvent, Orb::Models::CustomerCreditLedgerIncrementedWebhookEvent, Orb::Models::CustomerEditedWebhookEvent, Orb::Models::DataExportsTransferErrorWebhookEvent, Orb::Models::DataExportsTransferSuccessWebhookEvent, Orb::Models::EventUnmatchedEventWebhookEvent, Orb::Models::IngestionUnmatchedCustomerIDsWebhookEvent, Orb::Models::InvoiceAccountingSyncFailedWebhookEvent, Orb::Models::InvoiceAccountingSyncSucceededWebhookEvent, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent, Orb::Models::InvoiceCostDataExportedWebhookEvent, Orb::Models::InvoiceDunningScheduleCreatedWebhookEvent, Orb::Models::InvoiceDunningScheduleEndedWebhookEvent, Orb::Models::InvoiceDunningScheduleResetWebhookEvent, Orb::Models::InvoiceDunningScheduleStepExecutedWebhookEvent, Orb::Models::InvoiceEditedWebhookEvent, Orb::Models::InvoiceInvoiceDateElapsedWebhookEvent, Orb::Models::InvoiceIssueFailedWebhookEvent, Orb::Models::InvoiceIssuedWebhookEvent, Orb::Models::InvoiceIssuedSummaryWebhookEvent, Orb::Models::InvoiceManuallyMarkedAsPaidWebhookEvent, Orb::Models::InvoiceManuallyMarkedAsVoidWebhookEvent, Orb::Models::InvoicePaymentFailedWebhookEvent, Orb::Models::InvoicePaymentProcessingWebhookEvent, Orb::Models::InvoicePaymentSucceededWebhookEvent, Orb::Models::InvoiceSyncFailedWebhookEvent, Orb::Models::InvoiceSyncSucceededWebhookEvent, Orb::Models::InvoiceUndoMarkAsPaidWebhookEvent, Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent, Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent, Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent, Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent, Orb::Models::PaymentMethodCreatedWebhookEvent, Orb::Models::PaymentMethodDeletedWebhookEvent, Orb::Models::PlanDefaultVersionSetWebhookEvent, Orb::Models::PlanVersionCreatedWebhookEvent, Orb::Models::PriceEditedWebhookEvent, Orb::Models::ResourceEventTestWebhookEvent, Orb::Models::SalesOrderAccountingSyncFailedWebhookEvent, Orb::Models::SalesOrderAccountingSyncSucceededWebhookEvent, Orb::Models::SubscriptionAccountingSyncFailedWebhookEvent, Orb::Models::SubscriptionAccountingSyncSucceededWebhookEvent, Orb::Models::SubscriptionAlertDisabledWebhookEvent, Orb::Models::SubscriptionCancellationScheduledWebhookEvent, Orb::Models::SubscriptionCancellationUnscheduledWebhookEvent, Orb::Models::SubscriptionCostExceededWebhookEvent, Orb::Models::SubscriptionCreatedWebhookEvent, Orb::Models::SubscriptionEditedWebhookEvent, Orb::Models::SubscriptionEndedWebhookEvent, Orb::Models::SubscriptionFixedFeeQuantityUpdatedWebhookEvent, Orb::Models::SubscriptionGroupedCostExceededWebhookEvent, Orb::Models::SubscriptionInvoicingThresholdExceededWebhookEvent, Orb::Models::SubscriptionLicenseAllocationResetWebhookEvent, Orb::Models::SubscriptionLicenseBalanceThresholdReachedWebhookEvent, Orb::Models::SubscriptionPlanChangeScheduledWebhookEvent, Orb::Models::SubscriptionPlanChangedWebhookEvent, Orb::Models::SubscriptionPlanVersionChangeScheduledWebhookEvent, Orb::Models::SubscriptionPlanVersionChangedWebhookEvent, Orb::Models::SubscriptionSpendExceededWebhookEvent, Orb::Models::SubscriptionStartedWebhookEvent, Orb::Models::SubscriptionTrialEndedWebhookEvent, Orb::Models::SubscriptionUsageExceededWebhookEvent, Orb::Models::TransactionAccountingSyncFailedWebhookEvent, Orb::Models::TransactionAccountingSyncSucceededWebhookEvent]
|
|
9
|
+
def unwrap(payload)
|
|
10
|
+
parsed = JSON.parse(payload, symbolize_names: true)
|
|
11
|
+
Orb::Internal::Type::Converter.coerce(Orb::Models::UnwrapWebhookEvent, parsed)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# @api private
|
|
15
|
+
#
|
|
16
|
+
# @param client [Orb::Client]
|
|
17
|
+
def initialize(client:)
|
|
18
|
+
@client = client
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
data/lib/orb/version.rb
CHANGED