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,338 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class InvoiceAutomationScheduleStepExecutedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of this webhook event.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# The time at which this event was created, to the second.
|
|
14
|
+
#
|
|
15
|
+
# @return [Time]
|
|
16
|
+
required :created_at, Time
|
|
17
|
+
|
|
18
|
+
# @!attribute invoice
|
|
19
|
+
# The invoice fields a consumer needs to run their own notification flows without
|
|
20
|
+
# a follow-up API call, mirroring the variables Orb's own automation emails render
|
|
21
|
+
# against.
|
|
22
|
+
#
|
|
23
|
+
# @return [Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Invoice]
|
|
24
|
+
required :invoice, -> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Invoice }
|
|
25
|
+
|
|
26
|
+
# @!attribute properties
|
|
27
|
+
#
|
|
28
|
+
# @return [Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties]
|
|
29
|
+
required :properties, -> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties }
|
|
30
|
+
|
|
31
|
+
# @!attribute type
|
|
32
|
+
# The event this payload describes.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Type]
|
|
35
|
+
required :type, enum: -> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Type }
|
|
36
|
+
|
|
37
|
+
# @!method initialize(id:, created_at:, invoice:, properties:, type:)
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent} for more
|
|
40
|
+
# details.
|
|
41
|
+
#
|
|
42
|
+
# Issued when a collections-automation schedule step is executed for an invoice.
|
|
43
|
+
#
|
|
44
|
+
# @param id [String] The ID of this webhook event.
|
|
45
|
+
#
|
|
46
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
47
|
+
#
|
|
48
|
+
# @param invoice [Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Invoice] The invoice fields a consumer needs to run their own notification flows without
|
|
49
|
+
#
|
|
50
|
+
# @param properties [Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties]
|
|
51
|
+
#
|
|
52
|
+
# @param type [Symbol, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Type] The event this payload describes.
|
|
53
|
+
|
|
54
|
+
# @see Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent#invoice
|
|
55
|
+
class Invoice < Orb::Internal::Type::BaseModel
|
|
56
|
+
# @!attribute id
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
required :id, String
|
|
60
|
+
|
|
61
|
+
# @!attribute amount_due
|
|
62
|
+
#
|
|
63
|
+
# @return [String]
|
|
64
|
+
required :amount_due, String
|
|
65
|
+
|
|
66
|
+
# @!attribute currency
|
|
67
|
+
#
|
|
68
|
+
# @return [String]
|
|
69
|
+
required :currency, String
|
|
70
|
+
|
|
71
|
+
# @!attribute customer_id
|
|
72
|
+
#
|
|
73
|
+
# @return [String]
|
|
74
|
+
required :customer_id, String
|
|
75
|
+
|
|
76
|
+
# @!attribute customer_name
|
|
77
|
+
#
|
|
78
|
+
# @return [String]
|
|
79
|
+
required :customer_name, String
|
|
80
|
+
|
|
81
|
+
# @!attribute due_date
|
|
82
|
+
#
|
|
83
|
+
# @return [Date, nil]
|
|
84
|
+
required :due_date, Date, nil?: true
|
|
85
|
+
|
|
86
|
+
# @!attribute external_customer_id
|
|
87
|
+
#
|
|
88
|
+
# @return [String, nil]
|
|
89
|
+
required :external_customer_id, String, nil?: true
|
|
90
|
+
|
|
91
|
+
# @!attribute hosted_invoice_url
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
required :hosted_invoice_url, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute invoice_date
|
|
97
|
+
#
|
|
98
|
+
# @return [Time]
|
|
99
|
+
required :invoice_date, Time
|
|
100
|
+
|
|
101
|
+
# @!attribute invoice_number
|
|
102
|
+
#
|
|
103
|
+
# @return [String]
|
|
104
|
+
required :invoice_number, String
|
|
105
|
+
|
|
106
|
+
# @!attribute issued_at
|
|
107
|
+
#
|
|
108
|
+
# @return [Time, nil]
|
|
109
|
+
required :issued_at, Time, nil?: true
|
|
110
|
+
|
|
111
|
+
# @!attribute memo
|
|
112
|
+
#
|
|
113
|
+
# @return [String, nil]
|
|
114
|
+
required :memo, String, nil?: true
|
|
115
|
+
|
|
116
|
+
# @!attribute payment_method_last_four_digits
|
|
117
|
+
#
|
|
118
|
+
# @return [String, nil]
|
|
119
|
+
required :payment_method_last_four_digits, String, nil?: true
|
|
120
|
+
|
|
121
|
+
# @!attribute status
|
|
122
|
+
#
|
|
123
|
+
# @return [String]
|
|
124
|
+
required :status, String
|
|
125
|
+
|
|
126
|
+
# @!attribute subscription_id
|
|
127
|
+
#
|
|
128
|
+
# @return [String, nil]
|
|
129
|
+
required :subscription_id, String, nil?: true
|
|
130
|
+
|
|
131
|
+
# @!method initialize(id:, amount_due:, currency:, customer_id:, customer_name:, due_date:, external_customer_id:, hosted_invoice_url:, invoice_date:, invoice_number:, issued_at:, memo:, payment_method_last_four_digits:, status:, subscription_id:)
|
|
132
|
+
# The invoice fields a consumer needs to run their own notification flows without
|
|
133
|
+
# a follow-up API call, mirroring the variables Orb's own automation emails render
|
|
134
|
+
# against.
|
|
135
|
+
#
|
|
136
|
+
# @param id [String]
|
|
137
|
+
# @param amount_due [String]
|
|
138
|
+
# @param currency [String]
|
|
139
|
+
# @param customer_id [String]
|
|
140
|
+
# @param customer_name [String]
|
|
141
|
+
# @param due_date [Date, nil]
|
|
142
|
+
# @param external_customer_id [String, nil]
|
|
143
|
+
# @param hosted_invoice_url [String, nil]
|
|
144
|
+
# @param invoice_date [Time]
|
|
145
|
+
# @param invoice_number [String]
|
|
146
|
+
# @param issued_at [Time, nil]
|
|
147
|
+
# @param memo [String, nil]
|
|
148
|
+
# @param payment_method_last_four_digits [String, nil]
|
|
149
|
+
# @param status [String]
|
|
150
|
+
# @param subscription_id [String, nil]
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# @see Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent#properties
|
|
154
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
155
|
+
# @!attribute actions
|
|
156
|
+
#
|
|
157
|
+
# @return [Array<Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::SendEmail, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment>]
|
|
158
|
+
required :actions,
|
|
159
|
+
-> { Orb::Internal::Type::ArrayOf[union: Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action] }
|
|
160
|
+
|
|
161
|
+
# @!attribute automation_schedule_template_id
|
|
162
|
+
#
|
|
163
|
+
# @return [String, nil]
|
|
164
|
+
required :automation_schedule_template_id, String, nil?: true
|
|
165
|
+
|
|
166
|
+
# @!attribute automation_schedule_template_name
|
|
167
|
+
#
|
|
168
|
+
# @return [String, nil]
|
|
169
|
+
required :automation_schedule_template_name, String, nil?: true
|
|
170
|
+
|
|
171
|
+
# @!attribute executed_at
|
|
172
|
+
#
|
|
173
|
+
# @return [Time]
|
|
174
|
+
required :executed_at, Time
|
|
175
|
+
|
|
176
|
+
# @!attribute label
|
|
177
|
+
#
|
|
178
|
+
# @return [String]
|
|
179
|
+
required :label, String
|
|
180
|
+
|
|
181
|
+
# @!attribute scheduled_at
|
|
182
|
+
#
|
|
183
|
+
# @return [Time]
|
|
184
|
+
required :scheduled_at, Time
|
|
185
|
+
|
|
186
|
+
# @!attribute step_id
|
|
187
|
+
#
|
|
188
|
+
# @return [String]
|
|
189
|
+
required :step_id, String
|
|
190
|
+
|
|
191
|
+
# @!method initialize(actions:, automation_schedule_template_id:, automation_schedule_template_name:, executed_at:, label:, scheduled_at:, step_id:)
|
|
192
|
+
# @param actions [Array<Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::SendEmail, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment>]
|
|
193
|
+
# @param automation_schedule_template_id [String, nil]
|
|
194
|
+
# @param automation_schedule_template_name [String, nil]
|
|
195
|
+
# @param executed_at [Time]
|
|
196
|
+
# @param label [String]
|
|
197
|
+
# @param scheduled_at [Time]
|
|
198
|
+
# @param step_id [String]
|
|
199
|
+
|
|
200
|
+
module Action
|
|
201
|
+
extend Orb::Internal::Type::Union
|
|
202
|
+
|
|
203
|
+
discriminator :action_type
|
|
204
|
+
|
|
205
|
+
variant :send_email,
|
|
206
|
+
-> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::SendEmail }
|
|
207
|
+
|
|
208
|
+
variant :retry_payment,
|
|
209
|
+
-> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment }
|
|
210
|
+
|
|
211
|
+
class SendEmail < Orb::Internal::Type::BaseModel
|
|
212
|
+
# @!attribute recipient
|
|
213
|
+
#
|
|
214
|
+
# @return [String, nil]
|
|
215
|
+
required :recipient, String, nil?: true
|
|
216
|
+
|
|
217
|
+
# @!attribute sent
|
|
218
|
+
#
|
|
219
|
+
# @return [Boolean]
|
|
220
|
+
required :sent, Orb::Internal::Type::Boolean
|
|
221
|
+
|
|
222
|
+
# @!attribute action_type
|
|
223
|
+
#
|
|
224
|
+
# @return [Symbol, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::SendEmail::ActionType, nil]
|
|
225
|
+
optional :action_type,
|
|
226
|
+
enum: -> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::SendEmail::ActionType }
|
|
227
|
+
|
|
228
|
+
# @!method initialize(recipient:, sent:, action_type: nil)
|
|
229
|
+
# @param recipient [String, nil]
|
|
230
|
+
# @param sent [Boolean]
|
|
231
|
+
# @param action_type [Symbol, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::SendEmail::ActionType]
|
|
232
|
+
|
|
233
|
+
# @see Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::SendEmail#action_type
|
|
234
|
+
module ActionType
|
|
235
|
+
extend Orb::Internal::Type::Enum
|
|
236
|
+
|
|
237
|
+
SEND_EMAIL = :send_email
|
|
238
|
+
|
|
239
|
+
# @!method self.values
|
|
240
|
+
# @return [Array<Symbol>]
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
class RetryPayment < Orb::Internal::Type::BaseModel
|
|
245
|
+
# @!attribute amount_attempted
|
|
246
|
+
#
|
|
247
|
+
# @return [String, nil]
|
|
248
|
+
required :amount_attempted, String, nil?: true
|
|
249
|
+
|
|
250
|
+
# @!attribute currency
|
|
251
|
+
#
|
|
252
|
+
# @return [String, nil]
|
|
253
|
+
required :currency, String, nil?: true
|
|
254
|
+
|
|
255
|
+
# @!attribute failure_reason
|
|
256
|
+
#
|
|
257
|
+
# @return [String, nil]
|
|
258
|
+
required :failure_reason, String, nil?: true
|
|
259
|
+
|
|
260
|
+
# @!attribute outcome
|
|
261
|
+
#
|
|
262
|
+
# @return [Symbol, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment::Outcome]
|
|
263
|
+
required :outcome,
|
|
264
|
+
enum: -> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment::Outcome }
|
|
265
|
+
|
|
266
|
+
# @!attribute payment_provider
|
|
267
|
+
#
|
|
268
|
+
# @return [String, nil]
|
|
269
|
+
required :payment_provider, String, nil?: true
|
|
270
|
+
|
|
271
|
+
# @!attribute payment_provider_transaction_id
|
|
272
|
+
#
|
|
273
|
+
# @return [String, nil]
|
|
274
|
+
required :payment_provider_transaction_id, String, nil?: true
|
|
275
|
+
|
|
276
|
+
# @!attribute payment_transaction_record_id
|
|
277
|
+
#
|
|
278
|
+
# @return [String, nil]
|
|
279
|
+
required :payment_transaction_record_id, String, nil?: true
|
|
280
|
+
|
|
281
|
+
# @!attribute action_type
|
|
282
|
+
#
|
|
283
|
+
# @return [Symbol, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment::ActionType, nil]
|
|
284
|
+
optional :action_type,
|
|
285
|
+
enum: -> { Orb::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment::ActionType }
|
|
286
|
+
|
|
287
|
+
# @!method initialize(amount_attempted:, currency:, failure_reason:, outcome:, payment_provider:, payment_provider_transaction_id:, payment_transaction_record_id:, action_type: nil)
|
|
288
|
+
# @param amount_attempted [String, nil]
|
|
289
|
+
# @param currency [String, nil]
|
|
290
|
+
# @param failure_reason [String, nil]
|
|
291
|
+
# @param outcome [Symbol, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment::Outcome]
|
|
292
|
+
# @param payment_provider [String, nil]
|
|
293
|
+
# @param payment_provider_transaction_id [String, nil]
|
|
294
|
+
# @param payment_transaction_record_id [String, nil]
|
|
295
|
+
# @param action_type [Symbol, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment::ActionType]
|
|
296
|
+
|
|
297
|
+
# @see Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment#outcome
|
|
298
|
+
module Outcome
|
|
299
|
+
extend Orb::Internal::Type::Enum
|
|
300
|
+
|
|
301
|
+
SUCCEEDED = :succeeded
|
|
302
|
+
FAILED = :failed
|
|
303
|
+
SKIPPED = :skipped
|
|
304
|
+
|
|
305
|
+
# @!method self.values
|
|
306
|
+
# @return [Array<Symbol>]
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# @see Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment#action_type
|
|
310
|
+
module ActionType
|
|
311
|
+
extend Orb::Internal::Type::Enum
|
|
312
|
+
|
|
313
|
+
RETRY_PAYMENT = :retry_payment
|
|
314
|
+
|
|
315
|
+
# @!method self.values
|
|
316
|
+
# @return [Array<Symbol>]
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# @!method self.variants
|
|
321
|
+
# @return [Array(Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::SendEmail, Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent::Properties::Action::RetryPayment)]
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# The event this payload describes.
|
|
326
|
+
#
|
|
327
|
+
# @see Orb::Models::InvoiceAutomationScheduleStepExecutedWebhookEvent#type
|
|
328
|
+
module Type
|
|
329
|
+
extend Orb::Internal::Type::Enum
|
|
330
|
+
|
|
331
|
+
INVOICE_AUTOMATION_SCHEDULE_STEP_EXECUTED = :"invoice.automation_schedule_step_executed"
|
|
332
|
+
|
|
333
|
+
# @!method self.values
|
|
334
|
+
# @return [Array<Symbol>]
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class InvoiceCostDataExportedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of this webhook event.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# The time at which this event was created, to the second.
|
|
14
|
+
#
|
|
15
|
+
# @return [Time]
|
|
16
|
+
required :created_at, Time
|
|
17
|
+
|
|
18
|
+
# @!attribute invoice
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :invoice, String
|
|
22
|
+
|
|
23
|
+
# @!attribute properties
|
|
24
|
+
#
|
|
25
|
+
# @return [Orb::Models::InvoiceCostDataExportedWebhookEvent::Properties]
|
|
26
|
+
required :properties, -> { Orb::InvoiceCostDataExportedWebhookEvent::Properties }
|
|
27
|
+
|
|
28
|
+
# @!attribute type
|
|
29
|
+
# The event this payload describes.
|
|
30
|
+
#
|
|
31
|
+
# @return [Symbol, Orb::Models::InvoiceCostDataExportedWebhookEvent::Type]
|
|
32
|
+
required :type, enum: -> { Orb::InvoiceCostDataExportedWebhookEvent::Type }
|
|
33
|
+
|
|
34
|
+
# @!method initialize(id:, created_at:, invoice:, properties:, type:)
|
|
35
|
+
# Issued when invoice cost data is exported.
|
|
36
|
+
#
|
|
37
|
+
# @param id [String] The ID of this webhook event.
|
|
38
|
+
#
|
|
39
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
40
|
+
#
|
|
41
|
+
# @param invoice [String]
|
|
42
|
+
#
|
|
43
|
+
# @param properties [Orb::Models::InvoiceCostDataExportedWebhookEvent::Properties]
|
|
44
|
+
#
|
|
45
|
+
# @param type [Symbol, Orb::Models::InvoiceCostDataExportedWebhookEvent::Type] The event this payload describes.
|
|
46
|
+
|
|
47
|
+
# @see Orb::Models::InvoiceCostDataExportedWebhookEvent#properties
|
|
48
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
49
|
+
# @!attribute exported_date
|
|
50
|
+
#
|
|
51
|
+
# @return [Time]
|
|
52
|
+
required :exported_date, Time
|
|
53
|
+
|
|
54
|
+
# @!attribute s3_bucket
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
required :s3_bucket, String
|
|
58
|
+
|
|
59
|
+
# @!attribute s3_key
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
required :s3_key, String
|
|
63
|
+
|
|
64
|
+
# @!method initialize(exported_date:, s3_bucket:, s3_key:)
|
|
65
|
+
# @param exported_date [Time]
|
|
66
|
+
# @param s3_bucket [String]
|
|
67
|
+
# @param s3_key [String]
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# The event this payload describes.
|
|
71
|
+
#
|
|
72
|
+
# @see Orb::Models::InvoiceCostDataExportedWebhookEvent#type
|
|
73
|
+
module Type
|
|
74
|
+
extend Orb::Internal::Type::Enum
|
|
75
|
+
|
|
76
|
+
INVOICE_COST_DATA_EXPORTED = :"invoice.cost_data_exported"
|
|
77
|
+
|
|
78
|
+
# @!method self.values
|
|
79
|
+
# @return [Array<Symbol>]
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class InvoiceDueDateRecalculationCanceledWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of this webhook event.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# The time at which this event was created, to the second.
|
|
14
|
+
#
|
|
15
|
+
# @return [Time]
|
|
16
|
+
required :created_at, Time
|
|
17
|
+
|
|
18
|
+
# @!attribute properties
|
|
19
|
+
#
|
|
20
|
+
# @return [Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent::Properties]
|
|
21
|
+
required :properties, -> { Orb::InvoiceDueDateRecalculationCanceledWebhookEvent::Properties }
|
|
22
|
+
|
|
23
|
+
# @!attribute type
|
|
24
|
+
# The event this payload describes.
|
|
25
|
+
#
|
|
26
|
+
# @return [Symbol, Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent::Type]
|
|
27
|
+
required :type, enum: -> { Orb::InvoiceDueDateRecalculationCanceledWebhookEvent::Type }
|
|
28
|
+
|
|
29
|
+
# @!method initialize(id:, created_at:, properties:, type:)
|
|
30
|
+
# Issued when an invoice due date recalculation is canceled.
|
|
31
|
+
#
|
|
32
|
+
# @param id [String] The ID of this webhook event.
|
|
33
|
+
#
|
|
34
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
35
|
+
#
|
|
36
|
+
# @param properties [Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent::Properties]
|
|
37
|
+
#
|
|
38
|
+
# @param type [Symbol, Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent::Type] The event this payload describes.
|
|
39
|
+
|
|
40
|
+
# @see Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent#properties
|
|
41
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
42
|
+
# @!attribute canceled_at
|
|
43
|
+
#
|
|
44
|
+
# @return [Time]
|
|
45
|
+
required :canceled_at, Time
|
|
46
|
+
|
|
47
|
+
# @!attribute started_at
|
|
48
|
+
#
|
|
49
|
+
# @return [Time]
|
|
50
|
+
required :started_at, Time
|
|
51
|
+
|
|
52
|
+
# @!method initialize(canceled_at:, started_at:)
|
|
53
|
+
# @param canceled_at [Time]
|
|
54
|
+
# @param started_at [Time]
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# The event this payload describes.
|
|
58
|
+
#
|
|
59
|
+
# @see Orb::Models::InvoiceDueDateRecalculationCanceledWebhookEvent#type
|
|
60
|
+
module Type
|
|
61
|
+
extend Orb::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
INVOICE_DUE_DATE_RECALCULATION_CANCELED = :"invoice_due_date_recalculation.canceled"
|
|
64
|
+
|
|
65
|
+
# @!method self.values
|
|
66
|
+
# @return [Array<Symbol>]
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class InvoiceDueDateRecalculationCompletedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of this webhook event.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# The time at which this event was created, to the second.
|
|
14
|
+
#
|
|
15
|
+
# @return [Time]
|
|
16
|
+
required :created_at, Time
|
|
17
|
+
|
|
18
|
+
# @!attribute properties
|
|
19
|
+
#
|
|
20
|
+
# @return [Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent::Properties]
|
|
21
|
+
required :properties, -> { Orb::InvoiceDueDateRecalculationCompletedWebhookEvent::Properties }
|
|
22
|
+
|
|
23
|
+
# @!attribute type
|
|
24
|
+
# The event this payload describes.
|
|
25
|
+
#
|
|
26
|
+
# @return [Symbol, Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent::Type]
|
|
27
|
+
required :type, enum: -> { Orb::InvoiceDueDateRecalculationCompletedWebhookEvent::Type }
|
|
28
|
+
|
|
29
|
+
# @!method initialize(id:, created_at:, properties:, type:)
|
|
30
|
+
# Issued when an invoice due date recalculation is completed.
|
|
31
|
+
#
|
|
32
|
+
# @param id [String] The ID of this webhook event.
|
|
33
|
+
#
|
|
34
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
35
|
+
#
|
|
36
|
+
# @param properties [Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent::Properties]
|
|
37
|
+
#
|
|
38
|
+
# @param type [Symbol, Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent::Type] The event this payload describes.
|
|
39
|
+
|
|
40
|
+
# @see Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent#properties
|
|
41
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
42
|
+
# @!attribute completed_at
|
|
43
|
+
#
|
|
44
|
+
# @return [Time]
|
|
45
|
+
required :completed_at, Time
|
|
46
|
+
|
|
47
|
+
# @!attribute started_at
|
|
48
|
+
#
|
|
49
|
+
# @return [Time]
|
|
50
|
+
required :started_at, Time
|
|
51
|
+
|
|
52
|
+
# @!method initialize(completed_at:, started_at:)
|
|
53
|
+
# @param completed_at [Time]
|
|
54
|
+
# @param started_at [Time]
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# The event this payload describes.
|
|
58
|
+
#
|
|
59
|
+
# @see Orb::Models::InvoiceDueDateRecalculationCompletedWebhookEvent#type
|
|
60
|
+
module Type
|
|
61
|
+
extend Orb::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
INVOICE_DUE_DATE_RECALCULATION_COMPLETED = :"invoice_due_date_recalculation.completed"
|
|
64
|
+
|
|
65
|
+
# @!method self.values
|
|
66
|
+
# @return [Array<Symbol>]
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class InvoiceDueDateRecalculationStartedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of this webhook event.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# The time at which this event was created, to the second.
|
|
14
|
+
#
|
|
15
|
+
# @return [Time]
|
|
16
|
+
required :created_at, Time
|
|
17
|
+
|
|
18
|
+
# @!attribute properties
|
|
19
|
+
#
|
|
20
|
+
# @return [Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent::Properties]
|
|
21
|
+
required :properties, -> { Orb::InvoiceDueDateRecalculationStartedWebhookEvent::Properties }
|
|
22
|
+
|
|
23
|
+
# @!attribute type
|
|
24
|
+
# The event this payload describes.
|
|
25
|
+
#
|
|
26
|
+
# @return [Symbol, Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent::Type]
|
|
27
|
+
required :type, enum: -> { Orb::InvoiceDueDateRecalculationStartedWebhookEvent::Type }
|
|
28
|
+
|
|
29
|
+
# @!method initialize(id:, created_at:, properties:, type:)
|
|
30
|
+
# Issued when an invoice due date recalculation is started.
|
|
31
|
+
#
|
|
32
|
+
# @param id [String] The ID of this webhook event.
|
|
33
|
+
#
|
|
34
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
35
|
+
#
|
|
36
|
+
# @param properties [Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent::Properties]
|
|
37
|
+
#
|
|
38
|
+
# @param type [Symbol, Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent::Type] The event this payload describes.
|
|
39
|
+
|
|
40
|
+
# @see Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent#properties
|
|
41
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
42
|
+
# @!attribute started_at
|
|
43
|
+
#
|
|
44
|
+
# @return [Time]
|
|
45
|
+
required :started_at, Time
|
|
46
|
+
|
|
47
|
+
# @!method initialize(started_at:)
|
|
48
|
+
# @param started_at [Time]
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# The event this payload describes.
|
|
52
|
+
#
|
|
53
|
+
# @see Orb::Models::InvoiceDueDateRecalculationStartedWebhookEvent#type
|
|
54
|
+
module Type
|
|
55
|
+
extend Orb::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
INVOICE_DUE_DATE_RECALCULATION_STARTED = :"invoice_due_date_recalculation.started"
|
|
58
|
+
|
|
59
|
+
# @!method self.values
|
|
60
|
+
# @return [Array<Symbol>]
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|