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,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class InvoiceUndoMarkAsPaidWebhookEvent < 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
|
+
# An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity,
|
|
20
|
+
# representing the request for payment for a single subscription. This includes a
|
|
21
|
+
# set of line items, which correspond to prices in the subscription's plan and can
|
|
22
|
+
# represent fixed recurring fees or usage-based fees. They are generated at the
|
|
23
|
+
# end of a billing period, or as the result of an action, such as a cancellation.
|
|
24
|
+
#
|
|
25
|
+
# @return [Orb::Models::Invoice]
|
|
26
|
+
required :invoice, -> { Orb::Invoice }
|
|
27
|
+
|
|
28
|
+
# @!attribute properties
|
|
29
|
+
#
|
|
30
|
+
# @return [Object]
|
|
31
|
+
required :properties, Orb::Internal::Type::Unknown
|
|
32
|
+
|
|
33
|
+
# @!attribute type
|
|
34
|
+
# The event this payload describes.
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, Orb::Models::InvoiceUndoMarkAsPaidWebhookEvent::Type]
|
|
37
|
+
required :type, enum: -> { Orb::InvoiceUndoMarkAsPaidWebhookEvent::Type }
|
|
38
|
+
|
|
39
|
+
# @!method initialize(id:, created_at:, invoice:, properties:, type:)
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Orb::Models::InvoiceUndoMarkAsPaidWebhookEvent} for more details.
|
|
42
|
+
#
|
|
43
|
+
# Issued when an invoice is undone from marked as paid.
|
|
44
|
+
#
|
|
45
|
+
# @param id [String] The ID of this webhook event.
|
|
46
|
+
#
|
|
47
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
48
|
+
#
|
|
49
|
+
# @param invoice [Orb::Models::Invoice] An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, represen
|
|
50
|
+
#
|
|
51
|
+
# @param properties [Object]
|
|
52
|
+
#
|
|
53
|
+
# @param type [Symbol, Orb::Models::InvoiceUndoMarkAsPaidWebhookEvent::Type] The event this payload describes.
|
|
54
|
+
|
|
55
|
+
# The event this payload describes.
|
|
56
|
+
#
|
|
57
|
+
# @see Orb::Models::InvoiceUndoMarkAsPaidWebhookEvent#type
|
|
58
|
+
module Type
|
|
59
|
+
extend Orb::Internal::Type::Enum
|
|
60
|
+
|
|
61
|
+
INVOICE_UNDO_MARK_AS_PAID = :"invoice.undo_mark_as_paid"
|
|
62
|
+
|
|
63
|
+
# @!method self.values
|
|
64
|
+
# @return [Array<Symbol>]
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class MetricEventsDroppedByWatermarkWebhookEvent < 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
|
+
# `window_start` and `window_end` are ISO-8601 strings rather than datetimes: the
|
|
20
|
+
# untyped message called `.isoformat()` on them, so they keep microseconds where
|
|
21
|
+
# the webhook JSON provider would have truncated them.
|
|
22
|
+
#
|
|
23
|
+
# @return [Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent::Properties]
|
|
24
|
+
required :properties, -> { Orb::MetricEventsDroppedByWatermarkWebhookEvent::Properties }
|
|
25
|
+
|
|
26
|
+
# @!attribute type
|
|
27
|
+
# The event this payload describes.
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent::Type]
|
|
30
|
+
required :type, enum: -> { Orb::MetricEventsDroppedByWatermarkWebhookEvent::Type }
|
|
31
|
+
|
|
32
|
+
# @!method initialize(id:, created_at:, properties:, type:)
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent} for more details.
|
|
35
|
+
#
|
|
36
|
+
# Issued when metric events are dropped by watermark threshold.
|
|
37
|
+
#
|
|
38
|
+
# @param id [String] The ID of this webhook event.
|
|
39
|
+
#
|
|
40
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
41
|
+
#
|
|
42
|
+
# @param properties [Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent::Properties] `window_start` and `window_end` are ISO-8601 strings rather than datetimes: the
|
|
43
|
+
#
|
|
44
|
+
# @param type [Symbol, Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent::Type] The event this payload describes.
|
|
45
|
+
|
|
46
|
+
# @see Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent#properties
|
|
47
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
48
|
+
# @!attribute dropped
|
|
49
|
+
#
|
|
50
|
+
# @return [Integer]
|
|
51
|
+
required :dropped, Integer
|
|
52
|
+
|
|
53
|
+
# @!attribute event_name
|
|
54
|
+
#
|
|
55
|
+
# @return [String]
|
|
56
|
+
required :event_name, String
|
|
57
|
+
|
|
58
|
+
# @!attribute total
|
|
59
|
+
#
|
|
60
|
+
# @return [Integer]
|
|
61
|
+
required :total, Integer
|
|
62
|
+
|
|
63
|
+
# @!attribute window_end
|
|
64
|
+
#
|
|
65
|
+
# @return [String]
|
|
66
|
+
required :window_end, String
|
|
67
|
+
|
|
68
|
+
# @!attribute window_start
|
|
69
|
+
#
|
|
70
|
+
# @return [String]
|
|
71
|
+
required :window_start, String
|
|
72
|
+
|
|
73
|
+
# @!method initialize(dropped:, event_name:, total:, window_end:, window_start:)
|
|
74
|
+
# `window_start` and `window_end` are ISO-8601 strings rather than datetimes: the
|
|
75
|
+
# untyped message called `.isoformat()` on them, so they keep microseconds where
|
|
76
|
+
# the webhook JSON provider would have truncated them.
|
|
77
|
+
#
|
|
78
|
+
# @param dropped [Integer]
|
|
79
|
+
# @param event_name [String]
|
|
80
|
+
# @param total [Integer]
|
|
81
|
+
# @param window_end [String]
|
|
82
|
+
# @param window_start [String]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# The event this payload describes.
|
|
86
|
+
#
|
|
87
|
+
# @see Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent#type
|
|
88
|
+
module Type
|
|
89
|
+
extend Orb::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
METRIC_EVENTS_DROPPED_BY_WATERMARK = :"metric.events_dropped_by_watermark"
|
|
92
|
+
|
|
93
|
+
# @!method self.values
|
|
94
|
+
# @return [Array<Symbol>]
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class PaymentMethodCreatedWebhookEvent < 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 payment_method
|
|
19
|
+
# A payment method represents a customer's stored payment instrument held with an
|
|
20
|
+
# external payment provider (such as Adyen or Stripe).
|
|
21
|
+
#
|
|
22
|
+
# The serialization is intentionally minimal for now; provider-pulled details
|
|
23
|
+
# (e.g. card display metadata) will be added over time.
|
|
24
|
+
#
|
|
25
|
+
# @return [Orb::Models::PaymentMethodCreatedWebhookEvent::PaymentMethod]
|
|
26
|
+
required :payment_method, -> { Orb::PaymentMethodCreatedWebhookEvent::PaymentMethod }
|
|
27
|
+
|
|
28
|
+
# @!attribute properties
|
|
29
|
+
#
|
|
30
|
+
# @return [Object]
|
|
31
|
+
required :properties, Orb::Internal::Type::Unknown
|
|
32
|
+
|
|
33
|
+
# @!attribute type
|
|
34
|
+
# The event this payload describes.
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, Orb::Models::PaymentMethodCreatedWebhookEvent::Type]
|
|
37
|
+
required :type, enum: -> { Orb::PaymentMethodCreatedWebhookEvent::Type }
|
|
38
|
+
|
|
39
|
+
# @!method initialize(id:, created_at:, payment_method:, properties:, type:)
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Orb::Models::PaymentMethodCreatedWebhookEvent} for more details.
|
|
42
|
+
#
|
|
43
|
+
# Issued when a payment method is created.
|
|
44
|
+
#
|
|
45
|
+
# @param id [String] The ID of this webhook event.
|
|
46
|
+
#
|
|
47
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
48
|
+
#
|
|
49
|
+
# @param payment_method [Orb::Models::PaymentMethodCreatedWebhookEvent::PaymentMethod] A payment method represents a customer's stored payment instrument held with an
|
|
50
|
+
#
|
|
51
|
+
# @param properties [Object]
|
|
52
|
+
#
|
|
53
|
+
# @param type [Symbol, Orb::Models::PaymentMethodCreatedWebhookEvent::Type] The event this payload describes.
|
|
54
|
+
|
|
55
|
+
# @see Orb::Models::PaymentMethodCreatedWebhookEvent#payment_method
|
|
56
|
+
class PaymentMethod < Orb::Internal::Type::BaseModel
|
|
57
|
+
# @!attribute id
|
|
58
|
+
# The Orb-assigned unique identifier for the payment method.
|
|
59
|
+
#
|
|
60
|
+
# @return [String]
|
|
61
|
+
required :id, String
|
|
62
|
+
|
|
63
|
+
# @!attribute created_at
|
|
64
|
+
# The time at which the payment method was created.
|
|
65
|
+
#
|
|
66
|
+
# @return [Time]
|
|
67
|
+
required :created_at, Time
|
|
68
|
+
|
|
69
|
+
# @!attribute customer_id
|
|
70
|
+
# The ID of the Orb customer this payment method is attached to.
|
|
71
|
+
#
|
|
72
|
+
# @return [String]
|
|
73
|
+
required :customer_id, String
|
|
74
|
+
|
|
75
|
+
# @!attribute default
|
|
76
|
+
# Whether this is the customer's default payment method.
|
|
77
|
+
#
|
|
78
|
+
# @return [Boolean]
|
|
79
|
+
required :default, Orb::Internal::Type::Boolean
|
|
80
|
+
|
|
81
|
+
# @!attribute external_payment_method_id
|
|
82
|
+
# The identifier of this payment method in the external payment provider.
|
|
83
|
+
#
|
|
84
|
+
# @return [String]
|
|
85
|
+
required :external_payment_method_id, String
|
|
86
|
+
|
|
87
|
+
# @!attribute payment_method_type
|
|
88
|
+
# The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
89
|
+
#
|
|
90
|
+
# @return [Symbol, Orb::Models::PaymentMethodCreatedWebhookEvent::PaymentMethod::PaymentMethodType]
|
|
91
|
+
required :payment_method_type,
|
|
92
|
+
enum: -> { Orb::PaymentMethodCreatedWebhookEvent::PaymentMethod::PaymentMethodType }
|
|
93
|
+
|
|
94
|
+
# @!attribute provider_type
|
|
95
|
+
# The external payment provider this method belongs to, derived from the linked
|
|
96
|
+
# payment gateway connection (e.g. `adyen` or `stripe`). Null if the connection
|
|
97
|
+
# has been removed.
|
|
98
|
+
#
|
|
99
|
+
# @return [String, nil]
|
|
100
|
+
required :provider_type, String, nil?: true
|
|
101
|
+
|
|
102
|
+
# @!method initialize(id:, created_at:, customer_id:, default:, external_payment_method_id:, payment_method_type:, provider_type:)
|
|
103
|
+
# Some parameter documentations has been truncated, see
|
|
104
|
+
# {Orb::Models::PaymentMethodCreatedWebhookEvent::PaymentMethod} for more details.
|
|
105
|
+
#
|
|
106
|
+
# A payment method represents a customer's stored payment instrument held with an
|
|
107
|
+
# external payment provider (such as Adyen or Stripe).
|
|
108
|
+
#
|
|
109
|
+
# The serialization is intentionally minimal for now; provider-pulled details
|
|
110
|
+
# (e.g. card display metadata) will be added over time.
|
|
111
|
+
#
|
|
112
|
+
# @param id [String] The Orb-assigned unique identifier for the payment method.
|
|
113
|
+
#
|
|
114
|
+
# @param created_at [Time] The time at which the payment method was created.
|
|
115
|
+
#
|
|
116
|
+
# @param customer_id [String] The ID of the Orb customer this payment method is attached to.
|
|
117
|
+
#
|
|
118
|
+
# @param default [Boolean] Whether this is the customer's default payment method.
|
|
119
|
+
#
|
|
120
|
+
# @param external_payment_method_id [String] The identifier of this payment method in the external payment provider.
|
|
121
|
+
#
|
|
122
|
+
# @param payment_method_type [Symbol, Orb::Models::PaymentMethodCreatedWebhookEvent::PaymentMethod::PaymentMethodType] The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
123
|
+
#
|
|
124
|
+
# @param provider_type [String, nil] The external payment provider this method belongs to, derived from the linked pa
|
|
125
|
+
|
|
126
|
+
# The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
127
|
+
#
|
|
128
|
+
# @see Orb::Models::PaymentMethodCreatedWebhookEvent::PaymentMethod#payment_method_type
|
|
129
|
+
module PaymentMethodType
|
|
130
|
+
extend Orb::Internal::Type::Enum
|
|
131
|
+
|
|
132
|
+
CARD = :card
|
|
133
|
+
US_BANK_ACCOUNT = :us_bank_account
|
|
134
|
+
LINK = :link
|
|
135
|
+
AMAZON_PAY = :amazon_pay
|
|
136
|
+
CRYPTO = :crypto
|
|
137
|
+
|
|
138
|
+
# @!method self.values
|
|
139
|
+
# @return [Array<Symbol>]
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# The event this payload describes.
|
|
144
|
+
#
|
|
145
|
+
# @see Orb::Models::PaymentMethodCreatedWebhookEvent#type
|
|
146
|
+
module Type
|
|
147
|
+
extend Orb::Internal::Type::Enum
|
|
148
|
+
|
|
149
|
+
PAYMENT_METHOD_CREATED = :"payment_method.created"
|
|
150
|
+
|
|
151
|
+
# @!method self.values
|
|
152
|
+
# @return [Array<Symbol>]
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class PaymentMethodDeletedWebhookEvent < 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 payment_method
|
|
19
|
+
# A payment method represents a customer's stored payment instrument held with an
|
|
20
|
+
# external payment provider (such as Adyen or Stripe).
|
|
21
|
+
#
|
|
22
|
+
# The serialization is intentionally minimal for now; provider-pulled details
|
|
23
|
+
# (e.g. card display metadata) will be added over time.
|
|
24
|
+
#
|
|
25
|
+
# @return [Orb::Models::PaymentMethodDeletedWebhookEvent::PaymentMethod]
|
|
26
|
+
required :payment_method, -> { Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod }
|
|
27
|
+
|
|
28
|
+
# @!attribute properties
|
|
29
|
+
#
|
|
30
|
+
# @return [Object]
|
|
31
|
+
required :properties, Orb::Internal::Type::Unknown
|
|
32
|
+
|
|
33
|
+
# @!attribute type
|
|
34
|
+
# The event this payload describes.
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, Orb::Models::PaymentMethodDeletedWebhookEvent::Type]
|
|
37
|
+
required :type, enum: -> { Orb::PaymentMethodDeletedWebhookEvent::Type }
|
|
38
|
+
|
|
39
|
+
# @!method initialize(id:, created_at:, payment_method:, properties:, type:)
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {Orb::Models::PaymentMethodDeletedWebhookEvent} for more details.
|
|
42
|
+
#
|
|
43
|
+
# Issued when a payment method is deleted.
|
|
44
|
+
#
|
|
45
|
+
# @param id [String] The ID of this webhook event.
|
|
46
|
+
#
|
|
47
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
48
|
+
#
|
|
49
|
+
# @param payment_method [Orb::Models::PaymentMethodDeletedWebhookEvent::PaymentMethod] A payment method represents a customer's stored payment instrument held with an
|
|
50
|
+
#
|
|
51
|
+
# @param properties [Object]
|
|
52
|
+
#
|
|
53
|
+
# @param type [Symbol, Orb::Models::PaymentMethodDeletedWebhookEvent::Type] The event this payload describes.
|
|
54
|
+
|
|
55
|
+
# @see Orb::Models::PaymentMethodDeletedWebhookEvent#payment_method
|
|
56
|
+
class PaymentMethod < Orb::Internal::Type::BaseModel
|
|
57
|
+
# @!attribute id
|
|
58
|
+
# The Orb-assigned unique identifier for the payment method.
|
|
59
|
+
#
|
|
60
|
+
# @return [String]
|
|
61
|
+
required :id, String
|
|
62
|
+
|
|
63
|
+
# @!attribute created_at
|
|
64
|
+
# The time at which the payment method was created.
|
|
65
|
+
#
|
|
66
|
+
# @return [Time]
|
|
67
|
+
required :created_at, Time
|
|
68
|
+
|
|
69
|
+
# @!attribute customer_id
|
|
70
|
+
# The ID of the Orb customer this payment method is attached to.
|
|
71
|
+
#
|
|
72
|
+
# @return [String]
|
|
73
|
+
required :customer_id, String
|
|
74
|
+
|
|
75
|
+
# @!attribute default
|
|
76
|
+
# Whether this is the customer's default payment method.
|
|
77
|
+
#
|
|
78
|
+
# @return [Boolean]
|
|
79
|
+
required :default, Orb::Internal::Type::Boolean
|
|
80
|
+
|
|
81
|
+
# @!attribute external_payment_method_id
|
|
82
|
+
# The identifier of this payment method in the external payment provider.
|
|
83
|
+
#
|
|
84
|
+
# @return [String]
|
|
85
|
+
required :external_payment_method_id, String
|
|
86
|
+
|
|
87
|
+
# @!attribute payment_method_type
|
|
88
|
+
# The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
89
|
+
#
|
|
90
|
+
# @return [Symbol, Orb::Models::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType]
|
|
91
|
+
required :payment_method_type,
|
|
92
|
+
enum: -> { Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType }
|
|
93
|
+
|
|
94
|
+
# @!attribute provider_type
|
|
95
|
+
# The external payment provider this method belongs to, derived from the linked
|
|
96
|
+
# payment gateway connection (e.g. `adyen` or `stripe`). Null if the connection
|
|
97
|
+
# has been removed.
|
|
98
|
+
#
|
|
99
|
+
# @return [String, nil]
|
|
100
|
+
required :provider_type, String, nil?: true
|
|
101
|
+
|
|
102
|
+
# @!method initialize(id:, created_at:, customer_id:, default:, external_payment_method_id:, payment_method_type:, provider_type:)
|
|
103
|
+
# Some parameter documentations has been truncated, see
|
|
104
|
+
# {Orb::Models::PaymentMethodDeletedWebhookEvent::PaymentMethod} for more details.
|
|
105
|
+
#
|
|
106
|
+
# A payment method represents a customer's stored payment instrument held with an
|
|
107
|
+
# external payment provider (such as Adyen or Stripe).
|
|
108
|
+
#
|
|
109
|
+
# The serialization is intentionally minimal for now; provider-pulled details
|
|
110
|
+
# (e.g. card display metadata) will be added over time.
|
|
111
|
+
#
|
|
112
|
+
# @param id [String] The Orb-assigned unique identifier for the payment method.
|
|
113
|
+
#
|
|
114
|
+
# @param created_at [Time] The time at which the payment method was created.
|
|
115
|
+
#
|
|
116
|
+
# @param customer_id [String] The ID of the Orb customer this payment method is attached to.
|
|
117
|
+
#
|
|
118
|
+
# @param default [Boolean] Whether this is the customer's default payment method.
|
|
119
|
+
#
|
|
120
|
+
# @param external_payment_method_id [String] The identifier of this payment method in the external payment provider.
|
|
121
|
+
#
|
|
122
|
+
# @param payment_method_type [Symbol, Orb::Models::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType] The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
123
|
+
#
|
|
124
|
+
# @param provider_type [String, nil] The external payment provider this method belongs to, derived from the linked pa
|
|
125
|
+
|
|
126
|
+
# The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
127
|
+
#
|
|
128
|
+
# @see Orb::Models::PaymentMethodDeletedWebhookEvent::PaymentMethod#payment_method_type
|
|
129
|
+
module PaymentMethodType
|
|
130
|
+
extend Orb::Internal::Type::Enum
|
|
131
|
+
|
|
132
|
+
CARD = :card
|
|
133
|
+
US_BANK_ACCOUNT = :us_bank_account
|
|
134
|
+
LINK = :link
|
|
135
|
+
AMAZON_PAY = :amazon_pay
|
|
136
|
+
CRYPTO = :crypto
|
|
137
|
+
|
|
138
|
+
# @!method self.values
|
|
139
|
+
# @return [Array<Symbol>]
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# The event this payload describes.
|
|
144
|
+
#
|
|
145
|
+
# @see Orb::Models::PaymentMethodDeletedWebhookEvent#type
|
|
146
|
+
module Type
|
|
147
|
+
extend Orb::Internal::Type::Enum
|
|
148
|
+
|
|
149
|
+
PAYMENT_METHOD_DELETED = :"payment_method.deleted"
|
|
150
|
+
|
|
151
|
+
# @!method self.values
|
|
152
|
+
# @return [Array<Symbol>]
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class PlanDefaultVersionSetWebhookEvent < 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 plan
|
|
19
|
+
#
|
|
20
|
+
# @return [Orb::Models::PlanDefaultVersionSetWebhookEvent::Plan]
|
|
21
|
+
required :plan, -> { Orb::PlanDefaultVersionSetWebhookEvent::Plan }
|
|
22
|
+
|
|
23
|
+
# @!attribute properties
|
|
24
|
+
#
|
|
25
|
+
# @return [Orb::Models::PlanDefaultVersionSetWebhookEvent::Properties]
|
|
26
|
+
required :properties, -> { Orb::PlanDefaultVersionSetWebhookEvent::Properties }
|
|
27
|
+
|
|
28
|
+
# @!attribute type
|
|
29
|
+
# The event this payload describes.
|
|
30
|
+
#
|
|
31
|
+
# @return [Symbol, Orb::Models::PlanDefaultVersionSetWebhookEvent::Type]
|
|
32
|
+
required :type, enum: -> { Orb::PlanDefaultVersionSetWebhookEvent::Type }
|
|
33
|
+
|
|
34
|
+
# @!method initialize(id:, created_at:, plan:, properties:, type:)
|
|
35
|
+
# Issued when a plan's default version is set.
|
|
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 plan [Orb::Models::PlanDefaultVersionSetWebhookEvent::Plan]
|
|
42
|
+
#
|
|
43
|
+
# @param properties [Orb::Models::PlanDefaultVersionSetWebhookEvent::Properties]
|
|
44
|
+
#
|
|
45
|
+
# @param type [Symbol, Orb::Models::PlanDefaultVersionSetWebhookEvent::Type] The event this payload describes.
|
|
46
|
+
|
|
47
|
+
# @see Orb::Models::PlanDefaultVersionSetWebhookEvent#plan
|
|
48
|
+
class Plan < Orb::Internal::Type::BaseModel
|
|
49
|
+
# @!attribute id
|
|
50
|
+
#
|
|
51
|
+
# @return [String, nil]
|
|
52
|
+
required :id, String, nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute external_plan_id
|
|
55
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
56
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
57
|
+
# identifier in your system.
|
|
58
|
+
#
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
required :external_plan_id, String, nil?: true
|
|
61
|
+
|
|
62
|
+
# @!attribute name
|
|
63
|
+
#
|
|
64
|
+
# @return [String, nil]
|
|
65
|
+
required :name, String, nil?: true
|
|
66
|
+
|
|
67
|
+
# @!method initialize(id:, external_plan_id:, name:)
|
|
68
|
+
# Some parameter documentations has been truncated, see
|
|
69
|
+
# {Orb::Models::PlanDefaultVersionSetWebhookEvent::Plan} for more details.
|
|
70
|
+
#
|
|
71
|
+
# @param id [String, nil]
|
|
72
|
+
#
|
|
73
|
+
# @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a
|
|
74
|
+
#
|
|
75
|
+
# @param name [String, nil]
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# @see Orb::Models::PlanDefaultVersionSetWebhookEvent#properties
|
|
79
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
80
|
+
# @!attribute new_default_version_number
|
|
81
|
+
#
|
|
82
|
+
# @return [Integer]
|
|
83
|
+
required :new_default_version_number, Integer
|
|
84
|
+
|
|
85
|
+
# @!attribute previous_default_version_number
|
|
86
|
+
#
|
|
87
|
+
# @return [Integer]
|
|
88
|
+
required :previous_default_version_number, Integer
|
|
89
|
+
|
|
90
|
+
# @!method initialize(new_default_version_number:, previous_default_version_number:)
|
|
91
|
+
# @param new_default_version_number [Integer]
|
|
92
|
+
# @param previous_default_version_number [Integer]
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# The event this payload describes.
|
|
96
|
+
#
|
|
97
|
+
# @see Orb::Models::PlanDefaultVersionSetWebhookEvent#type
|
|
98
|
+
module Type
|
|
99
|
+
extend Orb::Internal::Type::Enum
|
|
100
|
+
|
|
101
|
+
PLAN_DEFAULT_VERSION_SET = :"plan.default_version_set"
|
|
102
|
+
|
|
103
|
+
# @!method self.values
|
|
104
|
+
# @return [Array<Symbol>]
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class PlanVersionCreatedWebhookEvent < 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 plan
|
|
19
|
+
#
|
|
20
|
+
# @return [Orb::Models::PlanVersionCreatedWebhookEvent::Plan]
|
|
21
|
+
required :plan, -> { Orb::PlanVersionCreatedWebhookEvent::Plan }
|
|
22
|
+
|
|
23
|
+
# @!attribute properties
|
|
24
|
+
#
|
|
25
|
+
# @return [Orb::Models::PlanVersionCreatedWebhookEvent::Properties]
|
|
26
|
+
required :properties, -> { Orb::PlanVersionCreatedWebhookEvent::Properties }
|
|
27
|
+
|
|
28
|
+
# @!attribute type
|
|
29
|
+
# The event this payload describes.
|
|
30
|
+
#
|
|
31
|
+
# @return [Symbol, Orb::Models::PlanVersionCreatedWebhookEvent::Type]
|
|
32
|
+
required :type, enum: -> { Orb::PlanVersionCreatedWebhookEvent::Type }
|
|
33
|
+
|
|
34
|
+
# @!method initialize(id:, created_at:, plan:, properties:, type:)
|
|
35
|
+
# Issued when a new plan version is created.
|
|
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 plan [Orb::Models::PlanVersionCreatedWebhookEvent::Plan]
|
|
42
|
+
#
|
|
43
|
+
# @param properties [Orb::Models::PlanVersionCreatedWebhookEvent::Properties]
|
|
44
|
+
#
|
|
45
|
+
# @param type [Symbol, Orb::Models::PlanVersionCreatedWebhookEvent::Type] The event this payload describes.
|
|
46
|
+
|
|
47
|
+
# @see Orb::Models::PlanVersionCreatedWebhookEvent#plan
|
|
48
|
+
class Plan < Orb::Internal::Type::BaseModel
|
|
49
|
+
# @!attribute id
|
|
50
|
+
#
|
|
51
|
+
# @return [String, nil]
|
|
52
|
+
required :id, String, nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute external_plan_id
|
|
55
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
56
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
57
|
+
# identifier in your system.
|
|
58
|
+
#
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
required :external_plan_id, String, nil?: true
|
|
61
|
+
|
|
62
|
+
# @!attribute name
|
|
63
|
+
#
|
|
64
|
+
# @return [String, nil]
|
|
65
|
+
required :name, String, nil?: true
|
|
66
|
+
|
|
67
|
+
# @!method initialize(id:, external_plan_id:, name:)
|
|
68
|
+
# Some parameter documentations has been truncated, see
|
|
69
|
+
# {Orb::Models::PlanVersionCreatedWebhookEvent::Plan} for more details.
|
|
70
|
+
#
|
|
71
|
+
# @param id [String, nil]
|
|
72
|
+
#
|
|
73
|
+
# @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a
|
|
74
|
+
#
|
|
75
|
+
# @param name [String, nil]
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# @see Orb::Models::PlanVersionCreatedWebhookEvent#properties
|
|
79
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
80
|
+
# @!attribute plan_version_description
|
|
81
|
+
#
|
|
82
|
+
# @return [String, nil]
|
|
83
|
+
required :plan_version_description, String, nil?: true
|
|
84
|
+
|
|
85
|
+
# @!attribute plan_version_number
|
|
86
|
+
#
|
|
87
|
+
# @return [Integer]
|
|
88
|
+
required :plan_version_number, Integer
|
|
89
|
+
|
|
90
|
+
# @!method initialize(plan_version_description:, plan_version_number:)
|
|
91
|
+
# @param plan_version_description [String, nil]
|
|
92
|
+
# @param plan_version_number [Integer]
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# The event this payload describes.
|
|
96
|
+
#
|
|
97
|
+
# @see Orb::Models::PlanVersionCreatedWebhookEvent#type
|
|
98
|
+
module Type
|
|
99
|
+
extend Orb::Internal::Type::Enum
|
|
100
|
+
|
|
101
|
+
PLAN_VERSION_CREATED = :"plan.version_created"
|
|
102
|
+
|
|
103
|
+
# @!method self.values
|
|
104
|
+
# @return [Array<Symbol>]
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|