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,259 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class PaymentMethodDeletedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Orb::PaymentMethodDeletedWebhookEvent, Orb::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The ID of this webhook event.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# The time at which this event was created, to the second.
|
|
16
|
+
sig { returns(Time) }
|
|
17
|
+
attr_accessor :created_at
|
|
18
|
+
|
|
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
|
+
sig { returns(Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod) }
|
|
25
|
+
attr_reader :payment_method
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
payment_method:
|
|
30
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::OrHash
|
|
31
|
+
).void
|
|
32
|
+
end
|
|
33
|
+
attr_writer :payment_method
|
|
34
|
+
|
|
35
|
+
sig { returns(T.anything) }
|
|
36
|
+
attr_accessor :properties
|
|
37
|
+
|
|
38
|
+
# The event this payload describes.
|
|
39
|
+
sig { returns(Orb::PaymentMethodDeletedWebhookEvent::Type::TaggedSymbol) }
|
|
40
|
+
attr_accessor :type
|
|
41
|
+
|
|
42
|
+
# Issued when a payment method is deleted.
|
|
43
|
+
sig do
|
|
44
|
+
params(
|
|
45
|
+
id: String,
|
|
46
|
+
created_at: Time,
|
|
47
|
+
payment_method:
|
|
48
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::OrHash,
|
|
49
|
+
properties: T.anything,
|
|
50
|
+
type: Orb::PaymentMethodDeletedWebhookEvent::Type::OrSymbol
|
|
51
|
+
).returns(T.attached_class)
|
|
52
|
+
end
|
|
53
|
+
def self.new(
|
|
54
|
+
# The ID of this webhook event.
|
|
55
|
+
id:,
|
|
56
|
+
# The time at which this event was created, to the second.
|
|
57
|
+
created_at:,
|
|
58
|
+
# A payment method represents a customer's stored payment instrument held with an
|
|
59
|
+
# external payment provider (such as Adyen or Stripe).
|
|
60
|
+
#
|
|
61
|
+
# The serialization is intentionally minimal for now; provider-pulled details
|
|
62
|
+
# (e.g. card display metadata) will be added over time.
|
|
63
|
+
payment_method:,
|
|
64
|
+
properties:,
|
|
65
|
+
# The event this payload describes.
|
|
66
|
+
type:
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
sig do
|
|
71
|
+
override.returns(
|
|
72
|
+
{
|
|
73
|
+
id: String,
|
|
74
|
+
created_at: Time,
|
|
75
|
+
payment_method:
|
|
76
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod,
|
|
77
|
+
properties: T.anything,
|
|
78
|
+
type: Orb::PaymentMethodDeletedWebhookEvent::Type::TaggedSymbol
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
def to_hash
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class PaymentMethod < Orb::Internal::Type::BaseModel
|
|
86
|
+
OrHash =
|
|
87
|
+
T.type_alias do
|
|
88
|
+
T.any(
|
|
89
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod,
|
|
90
|
+
Orb::Internal::AnyHash
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# The Orb-assigned unique identifier for the payment method.
|
|
95
|
+
sig { returns(String) }
|
|
96
|
+
attr_accessor :id
|
|
97
|
+
|
|
98
|
+
# The time at which the payment method was created.
|
|
99
|
+
sig { returns(Time) }
|
|
100
|
+
attr_accessor :created_at
|
|
101
|
+
|
|
102
|
+
# The ID of the Orb customer this payment method is attached to.
|
|
103
|
+
sig { returns(String) }
|
|
104
|
+
attr_accessor :customer_id
|
|
105
|
+
|
|
106
|
+
# Whether this is the customer's default payment method.
|
|
107
|
+
sig { returns(T::Boolean) }
|
|
108
|
+
attr_accessor :default
|
|
109
|
+
|
|
110
|
+
# The identifier of this payment method in the external payment provider.
|
|
111
|
+
sig { returns(String) }
|
|
112
|
+
attr_accessor :external_payment_method_id
|
|
113
|
+
|
|
114
|
+
# The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
115
|
+
sig do
|
|
116
|
+
returns(
|
|
117
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::TaggedSymbol
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
attr_accessor :payment_method_type
|
|
121
|
+
|
|
122
|
+
# The external payment provider this method belongs to, derived from the linked
|
|
123
|
+
# payment gateway connection (e.g. `adyen` or `stripe`). Null if the connection
|
|
124
|
+
# has been removed.
|
|
125
|
+
sig { returns(T.nilable(String)) }
|
|
126
|
+
attr_accessor :provider_type
|
|
127
|
+
|
|
128
|
+
# A payment method represents a customer's stored payment instrument held with an
|
|
129
|
+
# external payment provider (such as Adyen or Stripe).
|
|
130
|
+
#
|
|
131
|
+
# The serialization is intentionally minimal for now; provider-pulled details
|
|
132
|
+
# (e.g. card display metadata) will be added over time.
|
|
133
|
+
sig do
|
|
134
|
+
params(
|
|
135
|
+
id: String,
|
|
136
|
+
created_at: Time,
|
|
137
|
+
customer_id: String,
|
|
138
|
+
default: T::Boolean,
|
|
139
|
+
external_payment_method_id: String,
|
|
140
|
+
payment_method_type:
|
|
141
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::OrSymbol,
|
|
142
|
+
provider_type: T.nilable(String)
|
|
143
|
+
).returns(T.attached_class)
|
|
144
|
+
end
|
|
145
|
+
def self.new(
|
|
146
|
+
# The Orb-assigned unique identifier for the payment method.
|
|
147
|
+
id:,
|
|
148
|
+
# The time at which the payment method was created.
|
|
149
|
+
created_at:,
|
|
150
|
+
# The ID of the Orb customer this payment method is attached to.
|
|
151
|
+
customer_id:,
|
|
152
|
+
# Whether this is the customer's default payment method.
|
|
153
|
+
default:,
|
|
154
|
+
# The identifier of this payment method in the external payment provider.
|
|
155
|
+
external_payment_method_id:,
|
|
156
|
+
# The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
157
|
+
payment_method_type:,
|
|
158
|
+
# The external payment provider this method belongs to, derived from the linked
|
|
159
|
+
# payment gateway connection (e.g. `adyen` or `stripe`). Null if the connection
|
|
160
|
+
# has been removed.
|
|
161
|
+
provider_type:
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
sig do
|
|
166
|
+
override.returns(
|
|
167
|
+
{
|
|
168
|
+
id: String,
|
|
169
|
+
created_at: Time,
|
|
170
|
+
customer_id: String,
|
|
171
|
+
default: T::Boolean,
|
|
172
|
+
external_payment_method_id: String,
|
|
173
|
+
payment_method_type:
|
|
174
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::TaggedSymbol,
|
|
175
|
+
provider_type: T.nilable(String)
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
end
|
|
179
|
+
def to_hash
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
|
|
183
|
+
module PaymentMethodType
|
|
184
|
+
extend Orb::Internal::Type::Enum
|
|
185
|
+
|
|
186
|
+
TaggedSymbol =
|
|
187
|
+
T.type_alias do
|
|
188
|
+
T.all(
|
|
189
|
+
Symbol,
|
|
190
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
194
|
+
|
|
195
|
+
CARD =
|
|
196
|
+
T.let(
|
|
197
|
+
:card,
|
|
198
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::TaggedSymbol
|
|
199
|
+
)
|
|
200
|
+
US_BANK_ACCOUNT =
|
|
201
|
+
T.let(
|
|
202
|
+
:us_bank_account,
|
|
203
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::TaggedSymbol
|
|
204
|
+
)
|
|
205
|
+
LINK =
|
|
206
|
+
T.let(
|
|
207
|
+
:link,
|
|
208
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::TaggedSymbol
|
|
209
|
+
)
|
|
210
|
+
AMAZON_PAY =
|
|
211
|
+
T.let(
|
|
212
|
+
:amazon_pay,
|
|
213
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::TaggedSymbol
|
|
214
|
+
)
|
|
215
|
+
CRYPTO =
|
|
216
|
+
T.let(
|
|
217
|
+
:crypto,
|
|
218
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::TaggedSymbol
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
sig do
|
|
222
|
+
override.returns(
|
|
223
|
+
T::Array[
|
|
224
|
+
Orb::PaymentMethodDeletedWebhookEvent::PaymentMethod::PaymentMethodType::TaggedSymbol
|
|
225
|
+
]
|
|
226
|
+
)
|
|
227
|
+
end
|
|
228
|
+
def self.values
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# The event this payload describes.
|
|
234
|
+
module Type
|
|
235
|
+
extend Orb::Internal::Type::Enum
|
|
236
|
+
|
|
237
|
+
TaggedSymbol =
|
|
238
|
+
T.type_alias do
|
|
239
|
+
T.all(Symbol, Orb::PaymentMethodDeletedWebhookEvent::Type)
|
|
240
|
+
end
|
|
241
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
242
|
+
|
|
243
|
+
PAYMENT_METHOD_DELETED =
|
|
244
|
+
T.let(
|
|
245
|
+
:"payment_method.deleted",
|
|
246
|
+
Orb::PaymentMethodDeletedWebhookEvent::Type::TaggedSymbol
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
sig do
|
|
250
|
+
override.returns(
|
|
251
|
+
T::Array[Orb::PaymentMethodDeletedWebhookEvent::Type::TaggedSymbol]
|
|
252
|
+
)
|
|
253
|
+
end
|
|
254
|
+
def self.values
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class PlanDefaultVersionSetWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Orb::PlanDefaultVersionSetWebhookEvent, Orb::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The ID of this webhook event.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# The time at which this event was created, to the second.
|
|
16
|
+
sig { returns(Time) }
|
|
17
|
+
attr_accessor :created_at
|
|
18
|
+
|
|
19
|
+
sig { returns(Orb::PlanDefaultVersionSetWebhookEvent::Plan) }
|
|
20
|
+
attr_reader :plan
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(plan: Orb::PlanDefaultVersionSetWebhookEvent::Plan::OrHash).void
|
|
24
|
+
end
|
|
25
|
+
attr_writer :plan
|
|
26
|
+
|
|
27
|
+
sig { returns(Orb::PlanDefaultVersionSetWebhookEvent::Properties) }
|
|
28
|
+
attr_reader :properties
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
properties: Orb::PlanDefaultVersionSetWebhookEvent::Properties::OrHash
|
|
33
|
+
).void
|
|
34
|
+
end
|
|
35
|
+
attr_writer :properties
|
|
36
|
+
|
|
37
|
+
# The event this payload describes.
|
|
38
|
+
sig do
|
|
39
|
+
returns(Orb::PlanDefaultVersionSetWebhookEvent::Type::TaggedSymbol)
|
|
40
|
+
end
|
|
41
|
+
attr_accessor :type
|
|
42
|
+
|
|
43
|
+
# Issued when a plan's default version is set.
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
id: String,
|
|
47
|
+
created_at: Time,
|
|
48
|
+
plan: Orb::PlanDefaultVersionSetWebhookEvent::Plan::OrHash,
|
|
49
|
+
properties:
|
|
50
|
+
Orb::PlanDefaultVersionSetWebhookEvent::Properties::OrHash,
|
|
51
|
+
type: Orb::PlanDefaultVersionSetWebhookEvent::Type::OrSymbol
|
|
52
|
+
).returns(T.attached_class)
|
|
53
|
+
end
|
|
54
|
+
def self.new(
|
|
55
|
+
# The ID of this webhook event.
|
|
56
|
+
id:,
|
|
57
|
+
# The time at which this event was created, to the second.
|
|
58
|
+
created_at:,
|
|
59
|
+
plan:,
|
|
60
|
+
properties:,
|
|
61
|
+
# The event this payload describes.
|
|
62
|
+
type:
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
sig do
|
|
67
|
+
override.returns(
|
|
68
|
+
{
|
|
69
|
+
id: String,
|
|
70
|
+
created_at: Time,
|
|
71
|
+
plan: Orb::PlanDefaultVersionSetWebhookEvent::Plan,
|
|
72
|
+
properties: Orb::PlanDefaultVersionSetWebhookEvent::Properties,
|
|
73
|
+
type: Orb::PlanDefaultVersionSetWebhookEvent::Type::TaggedSymbol
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
def to_hash
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
class Plan < Orb::Internal::Type::BaseModel
|
|
81
|
+
OrHash =
|
|
82
|
+
T.type_alias do
|
|
83
|
+
T.any(
|
|
84
|
+
Orb::PlanDefaultVersionSetWebhookEvent::Plan,
|
|
85
|
+
Orb::Internal::AnyHash
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
sig { returns(T.nilable(String)) }
|
|
90
|
+
attr_accessor :id
|
|
91
|
+
|
|
92
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
93
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
94
|
+
# identifier in your system.
|
|
95
|
+
sig { returns(T.nilable(String)) }
|
|
96
|
+
attr_accessor :external_plan_id
|
|
97
|
+
|
|
98
|
+
sig { returns(T.nilable(String)) }
|
|
99
|
+
attr_accessor :name
|
|
100
|
+
|
|
101
|
+
sig do
|
|
102
|
+
params(
|
|
103
|
+
id: T.nilable(String),
|
|
104
|
+
external_plan_id: T.nilable(String),
|
|
105
|
+
name: T.nilable(String)
|
|
106
|
+
).returns(T.attached_class)
|
|
107
|
+
end
|
|
108
|
+
def self.new(
|
|
109
|
+
id:,
|
|
110
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
111
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
112
|
+
# identifier in your system.
|
|
113
|
+
external_plan_id:,
|
|
114
|
+
name:
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
sig do
|
|
119
|
+
override.returns(
|
|
120
|
+
{
|
|
121
|
+
id: T.nilable(String),
|
|
122
|
+
external_plan_id: T.nilable(String),
|
|
123
|
+
name: T.nilable(String)
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
def to_hash
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
132
|
+
OrHash =
|
|
133
|
+
T.type_alias do
|
|
134
|
+
T.any(
|
|
135
|
+
Orb::PlanDefaultVersionSetWebhookEvent::Properties,
|
|
136
|
+
Orb::Internal::AnyHash
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
sig { returns(Integer) }
|
|
141
|
+
attr_accessor :new_default_version_number
|
|
142
|
+
|
|
143
|
+
sig { returns(Integer) }
|
|
144
|
+
attr_accessor :previous_default_version_number
|
|
145
|
+
|
|
146
|
+
sig do
|
|
147
|
+
params(
|
|
148
|
+
new_default_version_number: Integer,
|
|
149
|
+
previous_default_version_number: Integer
|
|
150
|
+
).returns(T.attached_class)
|
|
151
|
+
end
|
|
152
|
+
def self.new(
|
|
153
|
+
new_default_version_number:,
|
|
154
|
+
previous_default_version_number:
|
|
155
|
+
)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
sig do
|
|
159
|
+
override.returns(
|
|
160
|
+
{
|
|
161
|
+
new_default_version_number: Integer,
|
|
162
|
+
previous_default_version_number: Integer
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
end
|
|
166
|
+
def to_hash
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# The event this payload describes.
|
|
171
|
+
module Type
|
|
172
|
+
extend Orb::Internal::Type::Enum
|
|
173
|
+
|
|
174
|
+
TaggedSymbol =
|
|
175
|
+
T.type_alias do
|
|
176
|
+
T.all(Symbol, Orb::PlanDefaultVersionSetWebhookEvent::Type)
|
|
177
|
+
end
|
|
178
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
179
|
+
|
|
180
|
+
PLAN_DEFAULT_VERSION_SET =
|
|
181
|
+
T.let(
|
|
182
|
+
:"plan.default_version_set",
|
|
183
|
+
Orb::PlanDefaultVersionSetWebhookEvent::Type::TaggedSymbol
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
sig do
|
|
187
|
+
override.returns(
|
|
188
|
+
T::Array[Orb::PlanDefaultVersionSetWebhookEvent::Type::TaggedSymbol]
|
|
189
|
+
)
|
|
190
|
+
end
|
|
191
|
+
def self.values
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class PlanVersionCreatedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Orb::PlanVersionCreatedWebhookEvent, Orb::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The ID of this webhook event.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# The time at which this event was created, to the second.
|
|
16
|
+
sig { returns(Time) }
|
|
17
|
+
attr_accessor :created_at
|
|
18
|
+
|
|
19
|
+
sig { returns(Orb::PlanVersionCreatedWebhookEvent::Plan) }
|
|
20
|
+
attr_reader :plan
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(plan: Orb::PlanVersionCreatedWebhookEvent::Plan::OrHash).void
|
|
24
|
+
end
|
|
25
|
+
attr_writer :plan
|
|
26
|
+
|
|
27
|
+
sig { returns(Orb::PlanVersionCreatedWebhookEvent::Properties) }
|
|
28
|
+
attr_reader :properties
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
properties: Orb::PlanVersionCreatedWebhookEvent::Properties::OrHash
|
|
33
|
+
).void
|
|
34
|
+
end
|
|
35
|
+
attr_writer :properties
|
|
36
|
+
|
|
37
|
+
# The event this payload describes.
|
|
38
|
+
sig { returns(Orb::PlanVersionCreatedWebhookEvent::Type::TaggedSymbol) }
|
|
39
|
+
attr_accessor :type
|
|
40
|
+
|
|
41
|
+
# Issued when a new plan version is created.
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
id: String,
|
|
45
|
+
created_at: Time,
|
|
46
|
+
plan: Orb::PlanVersionCreatedWebhookEvent::Plan::OrHash,
|
|
47
|
+
properties: Orb::PlanVersionCreatedWebhookEvent::Properties::OrHash,
|
|
48
|
+
type: Orb::PlanVersionCreatedWebhookEvent::Type::OrSymbol
|
|
49
|
+
).returns(T.attached_class)
|
|
50
|
+
end
|
|
51
|
+
def self.new(
|
|
52
|
+
# The ID of this webhook event.
|
|
53
|
+
id:,
|
|
54
|
+
# The time at which this event was created, to the second.
|
|
55
|
+
created_at:,
|
|
56
|
+
plan:,
|
|
57
|
+
properties:,
|
|
58
|
+
# The event this payload describes.
|
|
59
|
+
type:
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
sig do
|
|
64
|
+
override.returns(
|
|
65
|
+
{
|
|
66
|
+
id: String,
|
|
67
|
+
created_at: Time,
|
|
68
|
+
plan: Orb::PlanVersionCreatedWebhookEvent::Plan,
|
|
69
|
+
properties: Orb::PlanVersionCreatedWebhookEvent::Properties,
|
|
70
|
+
type: Orb::PlanVersionCreatedWebhookEvent::Type::TaggedSymbol
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
def to_hash
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
class Plan < Orb::Internal::Type::BaseModel
|
|
78
|
+
OrHash =
|
|
79
|
+
T.type_alias do
|
|
80
|
+
T.any(
|
|
81
|
+
Orb::PlanVersionCreatedWebhookEvent::Plan,
|
|
82
|
+
Orb::Internal::AnyHash
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
sig { returns(T.nilable(String)) }
|
|
87
|
+
attr_accessor :id
|
|
88
|
+
|
|
89
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
90
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
91
|
+
# identifier in your system.
|
|
92
|
+
sig { returns(T.nilable(String)) }
|
|
93
|
+
attr_accessor :external_plan_id
|
|
94
|
+
|
|
95
|
+
sig { returns(T.nilable(String)) }
|
|
96
|
+
attr_accessor :name
|
|
97
|
+
|
|
98
|
+
sig do
|
|
99
|
+
params(
|
|
100
|
+
id: T.nilable(String),
|
|
101
|
+
external_plan_id: T.nilable(String),
|
|
102
|
+
name: T.nilable(String)
|
|
103
|
+
).returns(T.attached_class)
|
|
104
|
+
end
|
|
105
|
+
def self.new(
|
|
106
|
+
id:,
|
|
107
|
+
# An optional user-defined ID for this plan resource, used throughout the system
|
|
108
|
+
# as an alias for this Plan. Use this field to identify a plan by an existing
|
|
109
|
+
# identifier in your system.
|
|
110
|
+
external_plan_id:,
|
|
111
|
+
name:
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
sig do
|
|
116
|
+
override.returns(
|
|
117
|
+
{
|
|
118
|
+
id: T.nilable(String),
|
|
119
|
+
external_plan_id: T.nilable(String),
|
|
120
|
+
name: T.nilable(String)
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
end
|
|
124
|
+
def to_hash
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
129
|
+
OrHash =
|
|
130
|
+
T.type_alias do
|
|
131
|
+
T.any(
|
|
132
|
+
Orb::PlanVersionCreatedWebhookEvent::Properties,
|
|
133
|
+
Orb::Internal::AnyHash
|
|
134
|
+
)
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
sig { returns(T.nilable(String)) }
|
|
138
|
+
attr_accessor :plan_version_description
|
|
139
|
+
|
|
140
|
+
sig { returns(Integer) }
|
|
141
|
+
attr_accessor :plan_version_number
|
|
142
|
+
|
|
143
|
+
sig do
|
|
144
|
+
params(
|
|
145
|
+
plan_version_description: T.nilable(String),
|
|
146
|
+
plan_version_number: Integer
|
|
147
|
+
).returns(T.attached_class)
|
|
148
|
+
end
|
|
149
|
+
def self.new(plan_version_description:, plan_version_number:)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
sig do
|
|
153
|
+
override.returns(
|
|
154
|
+
{
|
|
155
|
+
plan_version_description: T.nilable(String),
|
|
156
|
+
plan_version_number: Integer
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
end
|
|
160
|
+
def to_hash
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# The event this payload describes.
|
|
165
|
+
module Type
|
|
166
|
+
extend Orb::Internal::Type::Enum
|
|
167
|
+
|
|
168
|
+
TaggedSymbol =
|
|
169
|
+
T.type_alias do
|
|
170
|
+
T.all(Symbol, Orb::PlanVersionCreatedWebhookEvent::Type)
|
|
171
|
+
end
|
|
172
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
173
|
+
|
|
174
|
+
PLAN_VERSION_CREATED =
|
|
175
|
+
T.let(
|
|
176
|
+
:"plan.version_created",
|
|
177
|
+
Orb::PlanVersionCreatedWebhookEvent::Type::TaggedSymbol
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
sig do
|
|
181
|
+
override.returns(
|
|
182
|
+
T::Array[Orb::PlanVersionCreatedWebhookEvent::Type::TaggedSymbol]
|
|
183
|
+
)
|
|
184
|
+
end
|
|
185
|
+
def self.values
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
end
|