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,841 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class InvoiceIssuedSummaryWebhookEvent < 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
|
+
# #InvoiceApiResourceWithoutLineItems
|
|
20
|
+
#
|
|
21
|
+
# @return [Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice]
|
|
22
|
+
required :invoice, -> { Orb::InvoiceIssuedSummaryWebhookEvent::Invoice }
|
|
23
|
+
|
|
24
|
+
# @!attribute properties
|
|
25
|
+
#
|
|
26
|
+
# @return [Orb::Models::InvoiceIssuedSummaryWebhookEvent::Properties]
|
|
27
|
+
required :properties, -> { Orb::InvoiceIssuedSummaryWebhookEvent::Properties }
|
|
28
|
+
|
|
29
|
+
# @!attribute type
|
|
30
|
+
# The event this payload describes.
|
|
31
|
+
#
|
|
32
|
+
# @return [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Type]
|
|
33
|
+
required :type, enum: -> { Orb::InvoiceIssuedSummaryWebhookEvent::Type }
|
|
34
|
+
|
|
35
|
+
# @!method initialize(id:, created_at:, invoice:, properties:, type:)
|
|
36
|
+
# A lightweight variant of invoice.issued for accounts configured to receive a
|
|
37
|
+
# summarized invoice payload.
|
|
38
|
+
#
|
|
39
|
+
# @param id [String] The ID of this webhook event.
|
|
40
|
+
#
|
|
41
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
42
|
+
#
|
|
43
|
+
# @param invoice [Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice] #InvoiceApiResourceWithoutLineItems
|
|
44
|
+
#
|
|
45
|
+
# @param properties [Orb::Models::InvoiceIssuedSummaryWebhookEvent::Properties]
|
|
46
|
+
#
|
|
47
|
+
# @param type [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Type] The event this payload describes.
|
|
48
|
+
|
|
49
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent#invoice
|
|
50
|
+
class Invoice < Orb::Internal::Type::BaseModel
|
|
51
|
+
# @!attribute id
|
|
52
|
+
#
|
|
53
|
+
# @return [String]
|
|
54
|
+
required :id, String
|
|
55
|
+
|
|
56
|
+
# @!attribute amount_due
|
|
57
|
+
# This is the final amount required to be charged to the customer and reflects the
|
|
58
|
+
# application of the customer balance to the `total` of the invoice.
|
|
59
|
+
#
|
|
60
|
+
# @return [String]
|
|
61
|
+
required :amount_due, String
|
|
62
|
+
|
|
63
|
+
# @!attribute auto_collection
|
|
64
|
+
#
|
|
65
|
+
# @return [Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::AutoCollection]
|
|
66
|
+
required :auto_collection, -> { Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::AutoCollection }
|
|
67
|
+
|
|
68
|
+
# @!attribute billing_address
|
|
69
|
+
#
|
|
70
|
+
# @return [Orb::Models::Address, nil]
|
|
71
|
+
required :billing_address, -> { Orb::Address }, nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute created_at
|
|
74
|
+
# The creation time of the resource in Orb.
|
|
75
|
+
#
|
|
76
|
+
# @return [Time]
|
|
77
|
+
required :created_at, Time
|
|
78
|
+
|
|
79
|
+
# @!attribute credit_notes
|
|
80
|
+
# A list of credit notes associated with the invoice
|
|
81
|
+
#
|
|
82
|
+
# @return [Array<Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CreditNote>]
|
|
83
|
+
required :credit_notes,
|
|
84
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::CreditNote] }
|
|
85
|
+
|
|
86
|
+
# @!attribute currency
|
|
87
|
+
# An ISO 4217 currency string or `credits`
|
|
88
|
+
#
|
|
89
|
+
# @return [String]
|
|
90
|
+
required :currency, String
|
|
91
|
+
|
|
92
|
+
# @!attribute customer
|
|
93
|
+
#
|
|
94
|
+
# @return [Orb::Models::CustomerMinified]
|
|
95
|
+
required :customer, -> { Orb::CustomerMinified }
|
|
96
|
+
|
|
97
|
+
# @!attribute customer_balance_transactions
|
|
98
|
+
#
|
|
99
|
+
# @return [Array<Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction>]
|
|
100
|
+
required :customer_balance_transactions,
|
|
101
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction] }
|
|
102
|
+
|
|
103
|
+
# @!attribute customer_tax_id
|
|
104
|
+
# Tax IDs are commonly required to be displayed on customer invoices, which are
|
|
105
|
+
# added to the headers of invoices.
|
|
106
|
+
#
|
|
107
|
+
# ### Supported Tax ID Countries and Types
|
|
108
|
+
#
|
|
109
|
+
# | Country | Type | Description |
|
|
110
|
+
# | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
|
|
111
|
+
# | Albania | `al_tin` | Albania Tax Identification Number |
|
|
112
|
+
# | Andorra | `ad_nrt` | Andorran NRT Number |
|
|
113
|
+
# | Angola | `ao_tin` | Angola Tax Identification Number |
|
|
114
|
+
# | Argentina | `ar_cuit` | Argentinian Tax ID Number |
|
|
115
|
+
# | Armenia | `am_tin` | Armenia Tax Identification Number |
|
|
116
|
+
# | Aruba | `aw_tin` | Aruba Tax Identification Number |
|
|
117
|
+
# | Australia | `au_abn` | Australian Business Number (AU ABN) |
|
|
118
|
+
# | Australia | `au_arn` | Australian Taxation Office Reference Number |
|
|
119
|
+
# | Austria | `eu_vat` | European VAT Number |
|
|
120
|
+
# | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
|
|
121
|
+
# | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
|
|
122
|
+
# | Bahrain | `bh_vat` | Bahraini VAT Number |
|
|
123
|
+
# | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
|
|
124
|
+
# | Barbados | `bb_tin` | Barbados Tax Identification Number |
|
|
125
|
+
# | Belarus | `by_tin` | Belarus TIN Number |
|
|
126
|
+
# | Belgium | `eu_vat` | European VAT Number |
|
|
127
|
+
# | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
|
|
128
|
+
# | Bolivia | `bo_tin` | Bolivian Tax ID |
|
|
129
|
+
# | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
|
|
130
|
+
# | Brazil | `br_cnpj` | Brazilian CNPJ Number |
|
|
131
|
+
# | Brazil | `br_cpf` | Brazilian CPF Number |
|
|
132
|
+
# | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
|
|
133
|
+
# | Bulgaria | `eu_vat` | European VAT Number |
|
|
134
|
+
# | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
|
|
135
|
+
# | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
|
|
136
|
+
# | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
|
|
137
|
+
# | Canada | `ca_bn` | Canadian BN |
|
|
138
|
+
# | Canada | `ca_gst_hst` | Canadian GST/HST Number |
|
|
139
|
+
# | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
|
|
140
|
+
# | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
|
|
141
|
+
# | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
|
|
142
|
+
# | Canada | `ca_qst` | Canadian QST Number (Québec) |
|
|
143
|
+
# | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
|
|
144
|
+
# | Chile | `cl_tin` | Chilean TIN |
|
|
145
|
+
# | China | `cn_tin` | Chinese Tax ID |
|
|
146
|
+
# | Colombia | `co_nit` | Colombian NIT Number |
|
|
147
|
+
# | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
|
|
148
|
+
# | Costa Rica | `cr_tin` | Costa Rican Tax ID |
|
|
149
|
+
# | Croatia | `eu_vat` | European VAT Number |
|
|
150
|
+
# | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
|
|
151
|
+
# | Cyprus | `eu_vat` | European VAT Number |
|
|
152
|
+
# | Czech Republic | `eu_vat` | European VAT Number |
|
|
153
|
+
# | Denmark | `eu_vat` | European VAT Number |
|
|
154
|
+
# | Dominican Republic | `do_rcn` | Dominican RCN Number |
|
|
155
|
+
# | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
|
|
156
|
+
# | Egypt | `eg_tin` | Egyptian Tax Identification Number |
|
|
157
|
+
# | El Salvador | `sv_nit` | El Salvadorian NIT Number |
|
|
158
|
+
# | Estonia | `eu_vat` | European VAT Number |
|
|
159
|
+
# | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
|
|
160
|
+
# | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
|
|
161
|
+
# | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
|
|
162
|
+
# | Finland | `eu_vat` | European VAT Number |
|
|
163
|
+
# | France | `eu_vat` | European VAT Number |
|
|
164
|
+
# | Georgia | `ge_vat` | Georgian VAT |
|
|
165
|
+
# | Germany | `de_stn` | German Tax Number (Steuernummer) |
|
|
166
|
+
# | Germany | `eu_vat` | European VAT Number |
|
|
167
|
+
# | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
|
|
168
|
+
# | Greece | `eu_vat` | European VAT Number |
|
|
169
|
+
# | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
|
|
170
|
+
# | Hong Kong | `hk_br` | Hong Kong BR Number |
|
|
171
|
+
# | Hungary | `eu_vat` | European VAT Number |
|
|
172
|
+
# | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
|
|
173
|
+
# | Iceland | `is_vat` | Icelandic VAT |
|
|
174
|
+
# | India | `in_gst` | Indian GST Number |
|
|
175
|
+
# | Indonesia | `id_npwp` | Indonesian NPWP Number |
|
|
176
|
+
# | Ireland | `eu_vat` | European VAT Number |
|
|
177
|
+
# | Israel | `il_vat` | Israel VAT |
|
|
178
|
+
# | Italy | `eu_vat` | European VAT Number |
|
|
179
|
+
# | Italy | `it_cf` | Italian Codice Fiscale Number |
|
|
180
|
+
# | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
|
|
181
|
+
# | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
|
|
182
|
+
# | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
|
|
183
|
+
# | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
|
|
184
|
+
# | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
|
|
185
|
+
# | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
|
|
186
|
+
# | Laos | `la_tin` | Laos Tax Identification Number |
|
|
187
|
+
# | Latvia | `eu_vat` | European VAT Number |
|
|
188
|
+
# | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
|
|
189
|
+
# | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
|
|
190
|
+
# | Lithuania | `eu_vat` | European VAT Number |
|
|
191
|
+
# | Luxembourg | `eu_vat` | European VAT Number |
|
|
192
|
+
# | Malaysia | `my_frp` | Malaysian FRP Number |
|
|
193
|
+
# | Malaysia | `my_itn` | Malaysian ITN |
|
|
194
|
+
# | Malaysia | `my_sst` | Malaysian SST Number |
|
|
195
|
+
# | Malta | `eu_vat` | European VAT Number |
|
|
196
|
+
# | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
|
|
197
|
+
# | Mexico | `mx_rfc` | Mexican RFC Number |
|
|
198
|
+
# | Moldova | `md_vat` | Moldova VAT Number |
|
|
199
|
+
# | Montenegro | `me_pib` | Montenegro PIB Number |
|
|
200
|
+
# | Morocco | `ma_vat` | Morocco VAT Number |
|
|
201
|
+
# | Nepal | `np_pan` | Nepal PAN Number |
|
|
202
|
+
# | Netherlands | `eu_vat` | European VAT Number |
|
|
203
|
+
# | New Zealand | `nz_gst` | New Zealand GST Number |
|
|
204
|
+
# | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
|
|
205
|
+
# | North Macedonia | `mk_vat` | North Macedonia VAT Number |
|
|
206
|
+
# | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
|
|
207
|
+
# | Norway | `no_vat` | Norwegian VAT Number |
|
|
208
|
+
# | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
|
|
209
|
+
# | Oman | `om_vat` | Omani VAT Number |
|
|
210
|
+
# | Paraguay | `py_ruc` | Paraguayan RUC Number |
|
|
211
|
+
# | Peru | `pe_ruc` | Peruvian RUC Number |
|
|
212
|
+
# | Philippines | `ph_tin` | Philippines Tax Identification Number |
|
|
213
|
+
# | Poland | `eu_vat` | European VAT Number |
|
|
214
|
+
# | Poland | `pl_nip` | Polish Tax ID Number |
|
|
215
|
+
# | Portugal | `eu_vat` | European VAT Number |
|
|
216
|
+
# | Romania | `eu_vat` | European VAT Number |
|
|
217
|
+
# | Romania | `ro_tin` | Romanian Tax ID Number |
|
|
218
|
+
# | Russia | `ru_inn` | Russian INN |
|
|
219
|
+
# | Russia | `ru_kpp` | Russian KPP |
|
|
220
|
+
# | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
|
|
221
|
+
# | Senegal | `sn_ninea` | Senegal NINEA Number |
|
|
222
|
+
# | Serbia | `rs_pib` | Serbian PIB Number |
|
|
223
|
+
# | Singapore | `sg_gst` | Singaporean GST |
|
|
224
|
+
# | Singapore | `sg_uen` | Singaporean UEN |
|
|
225
|
+
# | Slovakia | `eu_vat` | European VAT Number |
|
|
226
|
+
# | Slovenia | `eu_vat` | European VAT Number |
|
|
227
|
+
# | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
|
|
228
|
+
# | South Africa | `za_vat` | South African VAT Number |
|
|
229
|
+
# | South Korea | `kr_brn` | Korean BRN |
|
|
230
|
+
# | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
|
|
231
|
+
# | Spain | `eu_vat` | European VAT Number |
|
|
232
|
+
# | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
|
|
233
|
+
# | Suriname | `sr_fin` | Suriname FIN Number |
|
|
234
|
+
# | Sweden | `eu_vat` | European VAT Number |
|
|
235
|
+
# | Switzerland | `ch_uid` | Switzerland UID Number |
|
|
236
|
+
# | Switzerland | `ch_vat` | Switzerland VAT Number |
|
|
237
|
+
# | Taiwan | `tw_vat` | Taiwanese VAT |
|
|
238
|
+
# | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
|
|
239
|
+
# | Tanzania | `tz_vat` | Tanzania VAT Number |
|
|
240
|
+
# | Thailand | `th_vat` | Thai VAT |
|
|
241
|
+
# | Turkey | `tr_tin` | Turkish Tax Identification Number |
|
|
242
|
+
# | Uganda | `ug_tin` | Uganda Tax Identification Number |
|
|
243
|
+
# | Ukraine | `ua_vat` | Ukrainian VAT |
|
|
244
|
+
# | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
|
|
245
|
+
# | United Kingdom | `gb_vat` | United Kingdom VAT Number |
|
|
246
|
+
# | United States | `us_ein` | United States EIN |
|
|
247
|
+
# | Uruguay | `uy_ruc` | Uruguayan RUC Number |
|
|
248
|
+
# | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
|
|
249
|
+
# | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
|
|
250
|
+
# | Venezuela | `ve_rif` | Venezuelan RIF Number |
|
|
251
|
+
# | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
|
252
|
+
# | Zambia | `zm_tin` | Zambia Tax Identification Number |
|
|
253
|
+
# | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
|
|
254
|
+
#
|
|
255
|
+
# @return [Orb::Models::CustomerTaxID, nil]
|
|
256
|
+
required :customer_tax_id, -> { Orb::CustomerTaxID }, nil?: true
|
|
257
|
+
|
|
258
|
+
# @!attribute due_date
|
|
259
|
+
# When the invoice payment is due. The due date is null if the invoice is not yet
|
|
260
|
+
# finalized.
|
|
261
|
+
#
|
|
262
|
+
# @return [Time, nil]
|
|
263
|
+
required :due_date, Time, nil?: true
|
|
264
|
+
|
|
265
|
+
# @!attribute eligible_to_issue_at
|
|
266
|
+
# If the invoice has a status of `draft`, this will be the time that the invoice
|
|
267
|
+
# will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is
|
|
268
|
+
# true, the invoice will automatically begin issuing at this time.
|
|
269
|
+
#
|
|
270
|
+
# @return [Time, nil]
|
|
271
|
+
required :eligible_to_issue_at, Time, nil?: true
|
|
272
|
+
|
|
273
|
+
# @!attribute hosted_invoice_url
|
|
274
|
+
# A URL for the customer-facing invoice portal. This URL expires 60 days after the
|
|
275
|
+
# link is generated, or 30 days after the invoice's due date — whichever is later.
|
|
276
|
+
#
|
|
277
|
+
# @return [String, nil]
|
|
278
|
+
required :hosted_invoice_url, String, nil?: true
|
|
279
|
+
|
|
280
|
+
# @!attribute invoice_date
|
|
281
|
+
# The scheduled date of the invoice
|
|
282
|
+
#
|
|
283
|
+
# @return [Time]
|
|
284
|
+
required :invoice_date, Time
|
|
285
|
+
|
|
286
|
+
# @!attribute invoice_number
|
|
287
|
+
# Automatically generated invoice number to help track and reconcile invoices.
|
|
288
|
+
# Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per
|
|
289
|
+
# account or customer.
|
|
290
|
+
#
|
|
291
|
+
# @return [String]
|
|
292
|
+
required :invoice_number, String
|
|
293
|
+
|
|
294
|
+
# @!attribute invoice_pdf
|
|
295
|
+
# The link to download the PDF representation of the `Invoice`.
|
|
296
|
+
#
|
|
297
|
+
# @return [String, nil]
|
|
298
|
+
required :invoice_pdf, String, nil?: true
|
|
299
|
+
|
|
300
|
+
# @!attribute invoice_source
|
|
301
|
+
#
|
|
302
|
+
# @return [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::InvoiceSource]
|
|
303
|
+
required :invoice_source, enum: -> { Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::InvoiceSource }
|
|
304
|
+
|
|
305
|
+
# @!attribute issue_failed_at
|
|
306
|
+
# If the invoice failed to issue, this will be the last time it failed to issue
|
|
307
|
+
# (even if it is now in a different state.)
|
|
308
|
+
#
|
|
309
|
+
# @return [Time, nil]
|
|
310
|
+
required :issue_failed_at, Time, nil?: true
|
|
311
|
+
|
|
312
|
+
# @!attribute issued_at
|
|
313
|
+
# If the invoice has been issued, this will be the time it transitioned to
|
|
314
|
+
# `issued` (even if it is now in a different state.)
|
|
315
|
+
#
|
|
316
|
+
# @return [Time, nil]
|
|
317
|
+
required :issued_at, Time, nil?: true
|
|
318
|
+
|
|
319
|
+
# @!attribute memo
|
|
320
|
+
# Free-form text which is available on the invoice PDF and the Orb invoice portal.
|
|
321
|
+
#
|
|
322
|
+
# @return [String, nil]
|
|
323
|
+
required :memo, String, nil?: true
|
|
324
|
+
|
|
325
|
+
# @!attribute metadata
|
|
326
|
+
# User specified key-value pairs for the resource. If not present, this defaults
|
|
327
|
+
# to an empty dictionary. Individual keys can be removed by setting the value to
|
|
328
|
+
# `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
329
|
+
# `null`.
|
|
330
|
+
#
|
|
331
|
+
# @return [Hash{Symbol=>String}]
|
|
332
|
+
required :metadata, Orb::Internal::Type::HashOf[String]
|
|
333
|
+
|
|
334
|
+
# @!attribute paid_at
|
|
335
|
+
# If the invoice has a status of `paid`, this gives a timestamp when the invoice
|
|
336
|
+
# was paid.
|
|
337
|
+
#
|
|
338
|
+
# @return [Time, nil]
|
|
339
|
+
required :paid_at, Time, nil?: true
|
|
340
|
+
|
|
341
|
+
# @!attribute payment_attempts
|
|
342
|
+
# A list of payment attempts associated with the invoice
|
|
343
|
+
#
|
|
344
|
+
# @return [Array<Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::PaymentAttempt>]
|
|
345
|
+
required :payment_attempts,
|
|
346
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::PaymentAttempt] }
|
|
347
|
+
|
|
348
|
+
# @!attribute payment_failed_at
|
|
349
|
+
# If payment was attempted on this invoice but failed, this will be the time of
|
|
350
|
+
# the most recent attempt.
|
|
351
|
+
#
|
|
352
|
+
# @return [Time, nil]
|
|
353
|
+
required :payment_failed_at, Time, nil?: true
|
|
354
|
+
|
|
355
|
+
# @!attribute payment_started_at
|
|
356
|
+
# If payment was attempted on this invoice, this will be the start time of the
|
|
357
|
+
# most recent attempt. This field is especially useful for delayed-notification
|
|
358
|
+
# payment mechanisms (like bank transfers), where payment can take 3 days or more.
|
|
359
|
+
#
|
|
360
|
+
# @return [Time, nil]
|
|
361
|
+
required :payment_started_at, Time, nil?: true
|
|
362
|
+
|
|
363
|
+
# @!attribute scheduled_issue_at
|
|
364
|
+
# If the invoice is in draft, this timestamp will reflect when the invoice is
|
|
365
|
+
# scheduled to be issued.
|
|
366
|
+
#
|
|
367
|
+
# @return [Time, nil]
|
|
368
|
+
required :scheduled_issue_at, Time, nil?: true
|
|
369
|
+
|
|
370
|
+
# @!attribute shipping_address
|
|
371
|
+
#
|
|
372
|
+
# @return [Orb::Models::Address, nil]
|
|
373
|
+
required :shipping_address, -> { Orb::Address }, nil?: true
|
|
374
|
+
|
|
375
|
+
# @!attribute status
|
|
376
|
+
#
|
|
377
|
+
# @return [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::Status]
|
|
378
|
+
required :status, enum: -> { Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::Status }
|
|
379
|
+
|
|
380
|
+
# @!attribute subscription
|
|
381
|
+
#
|
|
382
|
+
# @return [Orb::Models::SubscriptionMinified, nil]
|
|
383
|
+
required :subscription, -> { Orb::SubscriptionMinified }, nil?: true
|
|
384
|
+
|
|
385
|
+
# @!attribute sync_failed_at
|
|
386
|
+
# If the invoice failed to sync, this will be the last time an external invoicing
|
|
387
|
+
# provider sync was attempted. This field will always be `null` for invoices using
|
|
388
|
+
# Orb Invoicing.
|
|
389
|
+
#
|
|
390
|
+
# @return [Time, nil]
|
|
391
|
+
required :sync_failed_at, Time, nil?: true
|
|
392
|
+
|
|
393
|
+
# @!attribute total
|
|
394
|
+
# The total after any minimums and discounts have been applied.
|
|
395
|
+
#
|
|
396
|
+
# @return [String]
|
|
397
|
+
required :total, String
|
|
398
|
+
|
|
399
|
+
# @!attribute voided_at
|
|
400
|
+
# If the invoice has a status of `void`, this gives a timestamp when the invoice
|
|
401
|
+
# was voided.
|
|
402
|
+
#
|
|
403
|
+
# @return [Time, nil]
|
|
404
|
+
required :voided_at, Time, nil?: true
|
|
405
|
+
|
|
406
|
+
# @!attribute will_auto_issue
|
|
407
|
+
# This is true if the invoice will be automatically issued in the future, and
|
|
408
|
+
# false otherwise.
|
|
409
|
+
#
|
|
410
|
+
# @return [Boolean]
|
|
411
|
+
required :will_auto_issue, Orb::Internal::Type::Boolean
|
|
412
|
+
|
|
413
|
+
# @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, issue_failed_at:, issued_at:, memo:, metadata:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
|
|
414
|
+
# Some parameter documentations has been truncated, see
|
|
415
|
+
# {Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice} for more details.
|
|
416
|
+
#
|
|
417
|
+
# #InvoiceApiResourceWithoutLineItems
|
|
418
|
+
#
|
|
419
|
+
# @param id [String]
|
|
420
|
+
#
|
|
421
|
+
# @param amount_due [String] This is the final amount required to be charged to the customer and reflects the
|
|
422
|
+
#
|
|
423
|
+
# @param auto_collection [Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::AutoCollection]
|
|
424
|
+
#
|
|
425
|
+
# @param billing_address [Orb::Models::Address, nil]
|
|
426
|
+
#
|
|
427
|
+
# @param created_at [Time] The creation time of the resource in Orb.
|
|
428
|
+
#
|
|
429
|
+
# @param credit_notes [Array<Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CreditNote>] A list of credit notes associated with the invoice
|
|
430
|
+
#
|
|
431
|
+
# @param currency [String] An ISO 4217 currency string or `credits`
|
|
432
|
+
#
|
|
433
|
+
# @param customer [Orb::Models::CustomerMinified]
|
|
434
|
+
#
|
|
435
|
+
# @param customer_balance_transactions [Array<Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction>]
|
|
436
|
+
#
|
|
437
|
+
# @param customer_tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
|
|
438
|
+
#
|
|
439
|
+
# @param due_date [Time, nil] When the invoice payment is due. The due date is null if the invoice is not yet
|
|
440
|
+
#
|
|
441
|
+
# @param eligible_to_issue_at [Time, nil] If the invoice has a status of `draft`, this will be the time that the invoice w
|
|
442
|
+
#
|
|
443
|
+
# @param hosted_invoice_url [String, nil] A URL for the customer-facing invoice portal. This URL expires 60 days after the
|
|
444
|
+
#
|
|
445
|
+
# @param invoice_date [Time] The scheduled date of the invoice
|
|
446
|
+
#
|
|
447
|
+
# @param invoice_number [String] Automatically generated invoice number to help track and reconcile invoices. Inv
|
|
448
|
+
#
|
|
449
|
+
# @param invoice_pdf [String, nil] The link to download the PDF representation of the `Invoice`.
|
|
450
|
+
#
|
|
451
|
+
# @param invoice_source [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::InvoiceSource]
|
|
452
|
+
#
|
|
453
|
+
# @param issue_failed_at [Time, nil] If the invoice failed to issue, this will be the last time it failed to issue (e
|
|
454
|
+
#
|
|
455
|
+
# @param issued_at [Time, nil] If the invoice has been issued, this will be the time it transitioned to `issued
|
|
456
|
+
#
|
|
457
|
+
# @param memo [String, nil] Free-form text which is available on the invoice PDF and the Orb invoice portal.
|
|
458
|
+
#
|
|
459
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
|
460
|
+
#
|
|
461
|
+
# @param paid_at [Time, nil] If the invoice has a status of `paid`, this gives a timestamp when the invoice w
|
|
462
|
+
#
|
|
463
|
+
# @param payment_attempts [Array<Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::PaymentAttempt>] A list of payment attempts associated with the invoice
|
|
464
|
+
#
|
|
465
|
+
# @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th
|
|
466
|
+
#
|
|
467
|
+
# @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos
|
|
468
|
+
#
|
|
469
|
+
# @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
|
|
470
|
+
#
|
|
471
|
+
# @param shipping_address [Orb::Models::Address, nil]
|
|
472
|
+
#
|
|
473
|
+
# @param status [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::Status]
|
|
474
|
+
#
|
|
475
|
+
# @param subscription [Orb::Models::SubscriptionMinified, nil]
|
|
476
|
+
#
|
|
477
|
+
# @param sync_failed_at [Time, nil] If the invoice failed to sync, this will be the last time an external invoicing
|
|
478
|
+
#
|
|
479
|
+
# @param total [String] The total after any minimums and discounts have been applied.
|
|
480
|
+
#
|
|
481
|
+
# @param voided_at [Time, nil] If the invoice has a status of `void`, this gives a timestamp when the invoice w
|
|
482
|
+
#
|
|
483
|
+
# @param will_auto_issue [Boolean] This is true if the invoice will be automatically issued in the future, and fals
|
|
484
|
+
|
|
485
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice#auto_collection
|
|
486
|
+
class AutoCollection < Orb::Internal::Type::BaseModel
|
|
487
|
+
# @!attribute enabled
|
|
488
|
+
# True only if auto-collection is enabled for this invoice.
|
|
489
|
+
#
|
|
490
|
+
# @return [Boolean, nil]
|
|
491
|
+
required :enabled, Orb::Internal::Type::Boolean, nil?: true
|
|
492
|
+
|
|
493
|
+
# @!attribute next_attempt_at
|
|
494
|
+
# If the invoice is scheduled for auto-collection, this field will reflect when
|
|
495
|
+
# the next attempt will occur. If dunning has been exhausted, or auto-collection
|
|
496
|
+
# is not enabled for this invoice, this field will be `null`.
|
|
497
|
+
#
|
|
498
|
+
# @return [Time, nil]
|
|
499
|
+
required :next_attempt_at, Time, nil?: true
|
|
500
|
+
|
|
501
|
+
# @!attribute num_attempts
|
|
502
|
+
# Number of auto-collection payment attempts.
|
|
503
|
+
#
|
|
504
|
+
# @return [Integer, nil]
|
|
505
|
+
required :num_attempts, Integer, nil?: true
|
|
506
|
+
|
|
507
|
+
# @!attribute previously_attempted_at
|
|
508
|
+
# If Orb has ever attempted payment auto-collection for this invoice, this field
|
|
509
|
+
# will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
|
510
|
+
# this can be used to tell whether the invoice is currently in dunning (that is,
|
|
511
|
+
# `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
|
|
512
|
+
# dunning has been exhausted (`previously_attempted_at` is non-null, but
|
|
513
|
+
# `next_attempt_at` is null).
|
|
514
|
+
#
|
|
515
|
+
# @return [Time, nil]
|
|
516
|
+
required :previously_attempted_at, Time, nil?: true
|
|
517
|
+
|
|
518
|
+
# @!method initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:)
|
|
519
|
+
# Some parameter documentations has been truncated, see
|
|
520
|
+
# {Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::AutoCollection} for
|
|
521
|
+
# more details.
|
|
522
|
+
#
|
|
523
|
+
# @param enabled [Boolean, nil] True only if auto-collection is enabled for this invoice.
|
|
524
|
+
#
|
|
525
|
+
# @param next_attempt_at [Time, nil] If the invoice is scheduled for auto-collection, this field will reflect when th
|
|
526
|
+
#
|
|
527
|
+
# @param num_attempts [Integer, nil] Number of auto-collection payment attempts.
|
|
528
|
+
#
|
|
529
|
+
# @param previously_attempted_at [Time, nil] If Orb has ever attempted payment auto-collection for this invoice, this field w
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
class CreditNote < Orb::Internal::Type::BaseModel
|
|
533
|
+
# @!attribute id
|
|
534
|
+
#
|
|
535
|
+
# @return [String]
|
|
536
|
+
required :id, String
|
|
537
|
+
|
|
538
|
+
# @!attribute credit_note_number
|
|
539
|
+
#
|
|
540
|
+
# @return [String]
|
|
541
|
+
required :credit_note_number, String
|
|
542
|
+
|
|
543
|
+
# @!attribute memo
|
|
544
|
+
# An optional memo supplied on the credit note.
|
|
545
|
+
#
|
|
546
|
+
# @return [String, nil]
|
|
547
|
+
required :memo, String, nil?: true
|
|
548
|
+
|
|
549
|
+
# @!attribute reason
|
|
550
|
+
#
|
|
551
|
+
# @return [String]
|
|
552
|
+
required :reason, String
|
|
553
|
+
|
|
554
|
+
# @!attribute total
|
|
555
|
+
#
|
|
556
|
+
# @return [String]
|
|
557
|
+
required :total, String
|
|
558
|
+
|
|
559
|
+
# @!attribute type
|
|
560
|
+
#
|
|
561
|
+
# @return [String]
|
|
562
|
+
required :type, String
|
|
563
|
+
|
|
564
|
+
# @!attribute voided_at
|
|
565
|
+
# If the credit note has a status of `void`, this gives a timestamp when the
|
|
566
|
+
# credit note was voided.
|
|
567
|
+
#
|
|
568
|
+
# @return [Time, nil]
|
|
569
|
+
required :voided_at, Time, nil?: true
|
|
570
|
+
|
|
571
|
+
# @!method initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:)
|
|
572
|
+
# Some parameter documentations has been truncated, see
|
|
573
|
+
# {Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CreditNote} for more
|
|
574
|
+
# details.
|
|
575
|
+
#
|
|
576
|
+
# @param id [String]
|
|
577
|
+
#
|
|
578
|
+
# @param credit_note_number [String]
|
|
579
|
+
#
|
|
580
|
+
# @param memo [String, nil] An optional memo supplied on the credit note.
|
|
581
|
+
#
|
|
582
|
+
# @param reason [String]
|
|
583
|
+
#
|
|
584
|
+
# @param total [String]
|
|
585
|
+
#
|
|
586
|
+
# @param type [String]
|
|
587
|
+
#
|
|
588
|
+
# @param voided_at [Time, nil] If the credit note has a status of `void`, this gives a timestamp when the credi
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel
|
|
592
|
+
# @!attribute id
|
|
593
|
+
# A unique id for this transaction.
|
|
594
|
+
#
|
|
595
|
+
# @return [String]
|
|
596
|
+
required :id, String
|
|
597
|
+
|
|
598
|
+
# @!attribute action
|
|
599
|
+
#
|
|
600
|
+
# @return [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction::Action]
|
|
601
|
+
required :action,
|
|
602
|
+
enum: -> { Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction::Action }
|
|
603
|
+
|
|
604
|
+
# @!attribute amount
|
|
605
|
+
# The value of the amount changed in the transaction.
|
|
606
|
+
#
|
|
607
|
+
# @return [String]
|
|
608
|
+
required :amount, String
|
|
609
|
+
|
|
610
|
+
# @!attribute created_at
|
|
611
|
+
# The creation time of this transaction.
|
|
612
|
+
#
|
|
613
|
+
# @return [Time]
|
|
614
|
+
required :created_at, Time
|
|
615
|
+
|
|
616
|
+
# @!attribute credit_note
|
|
617
|
+
#
|
|
618
|
+
# @return [Orb::Models::CreditNoteTiny, nil]
|
|
619
|
+
required :credit_note, -> { Orb::CreditNoteTiny }, nil?: true
|
|
620
|
+
|
|
621
|
+
# @!attribute description
|
|
622
|
+
# An optional description provided for manual customer balance adjustments.
|
|
623
|
+
#
|
|
624
|
+
# @return [String, nil]
|
|
625
|
+
required :description, String, nil?: true
|
|
626
|
+
|
|
627
|
+
# @!attribute ending_balance
|
|
628
|
+
# The new value of the customer's balance prior to the transaction, in the
|
|
629
|
+
# customer's currency.
|
|
630
|
+
#
|
|
631
|
+
# @return [String]
|
|
632
|
+
required :ending_balance, String
|
|
633
|
+
|
|
634
|
+
# @!attribute invoice
|
|
635
|
+
#
|
|
636
|
+
# @return [Orb::Models::InvoiceTiny, nil]
|
|
637
|
+
required :invoice, -> { Orb::InvoiceTiny }, nil?: true
|
|
638
|
+
|
|
639
|
+
# @!attribute starting_balance
|
|
640
|
+
# The original value of the customer's balance prior to the transaction, in the
|
|
641
|
+
# customer's currency.
|
|
642
|
+
#
|
|
643
|
+
# @return [String]
|
|
644
|
+
required :starting_balance, String
|
|
645
|
+
|
|
646
|
+
# @!attribute type
|
|
647
|
+
#
|
|
648
|
+
# @return [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction::Type]
|
|
649
|
+
required :type,
|
|
650
|
+
enum: -> { Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction::Type }
|
|
651
|
+
|
|
652
|
+
# @!method initialize(id:, action:, amount:, created_at:, credit_note:, description:, ending_balance:, invoice:, starting_balance:, type:)
|
|
653
|
+
# Some parameter documentations has been truncated, see
|
|
654
|
+
# {Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction}
|
|
655
|
+
# for more details.
|
|
656
|
+
#
|
|
657
|
+
# @param id [String] A unique id for this transaction.
|
|
658
|
+
#
|
|
659
|
+
# @param action [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction::Action]
|
|
660
|
+
#
|
|
661
|
+
# @param amount [String] The value of the amount changed in the transaction.
|
|
662
|
+
#
|
|
663
|
+
# @param created_at [Time] The creation time of this transaction.
|
|
664
|
+
#
|
|
665
|
+
# @param credit_note [Orb::Models::CreditNoteTiny, nil]
|
|
666
|
+
#
|
|
667
|
+
# @param description [String, nil] An optional description provided for manual customer balance adjustments.
|
|
668
|
+
#
|
|
669
|
+
# @param ending_balance [String] The new value of the customer's balance prior to the transaction, in the custome
|
|
670
|
+
#
|
|
671
|
+
# @param invoice [Orb::Models::InvoiceTiny, nil]
|
|
672
|
+
#
|
|
673
|
+
# @param starting_balance [String] The original value of the customer's balance prior to the transaction, in the cu
|
|
674
|
+
#
|
|
675
|
+
# @param type [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction::Type]
|
|
676
|
+
|
|
677
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction#action
|
|
678
|
+
module Action
|
|
679
|
+
extend Orb::Internal::Type::Enum
|
|
680
|
+
|
|
681
|
+
APPLIED_TO_INVOICE = :applied_to_invoice
|
|
682
|
+
MANUAL_ADJUSTMENT = :manual_adjustment
|
|
683
|
+
PRORATED_REFUND = :prorated_refund
|
|
684
|
+
REVERT_PRORATED_REFUND = :revert_prorated_refund
|
|
685
|
+
RETURN_FROM_VOIDING = :return_from_voiding
|
|
686
|
+
CREDIT_NOTE_APPLIED = :credit_note_applied
|
|
687
|
+
CREDIT_NOTE_VOIDED = :credit_note_voided
|
|
688
|
+
OVERPAYMENT_REFUND = :overpayment_refund
|
|
689
|
+
EXTERNAL_PAYMENT = :external_payment
|
|
690
|
+
SMALL_INVOICE_CARRYOVER = :small_invoice_carryover
|
|
691
|
+
PREPAID_COMMIT_CANCEL = :prepaid_commit_cancel
|
|
692
|
+
|
|
693
|
+
# @!method self.values
|
|
694
|
+
# @return [Array<Symbol>]
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::CustomerBalanceTransaction#type
|
|
698
|
+
module Type
|
|
699
|
+
extend Orb::Internal::Type::Enum
|
|
700
|
+
|
|
701
|
+
INCREMENT = :increment
|
|
702
|
+
DECREMENT = :decrement
|
|
703
|
+
|
|
704
|
+
# @!method self.values
|
|
705
|
+
# @return [Array<Symbol>]
|
|
706
|
+
end
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice#invoice_source
|
|
710
|
+
module InvoiceSource
|
|
711
|
+
extend Orb::Internal::Type::Enum
|
|
712
|
+
|
|
713
|
+
SUBSCRIPTION = :subscription
|
|
714
|
+
PARTIAL = :partial
|
|
715
|
+
ONE_OFF = :one_off
|
|
716
|
+
|
|
717
|
+
# @!method self.values
|
|
718
|
+
# @return [Array<Symbol>]
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
class PaymentAttempt < Orb::Internal::Type::BaseModel
|
|
722
|
+
# @!attribute id
|
|
723
|
+
# The ID of the payment attempt.
|
|
724
|
+
#
|
|
725
|
+
# @return [String]
|
|
726
|
+
required :id, String
|
|
727
|
+
|
|
728
|
+
# @!attribute amount
|
|
729
|
+
# The amount of the payment attempt.
|
|
730
|
+
#
|
|
731
|
+
# @return [String]
|
|
732
|
+
required :amount, String
|
|
733
|
+
|
|
734
|
+
# @!attribute created_at
|
|
735
|
+
# The time at which the payment attempt was created.
|
|
736
|
+
#
|
|
737
|
+
# @return [Time]
|
|
738
|
+
required :created_at, Time
|
|
739
|
+
|
|
740
|
+
# @!attribute payment_provider
|
|
741
|
+
# The payment provider that attempted to collect the payment.
|
|
742
|
+
#
|
|
743
|
+
# @return [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::PaymentAttempt::PaymentProvider, nil]
|
|
744
|
+
required :payment_provider,
|
|
745
|
+
enum: -> {
|
|
746
|
+
Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::PaymentAttempt::PaymentProvider
|
|
747
|
+
},
|
|
748
|
+
nil?: true
|
|
749
|
+
|
|
750
|
+
# @!attribute payment_provider_id
|
|
751
|
+
# The ID of the payment attempt in the payment provider.
|
|
752
|
+
#
|
|
753
|
+
# @return [String, nil]
|
|
754
|
+
required :payment_provider_id, String, nil?: true
|
|
755
|
+
|
|
756
|
+
# @!attribute receipt_pdf
|
|
757
|
+
# URL to the downloadable PDF version of the receipt. This field will be `null`
|
|
758
|
+
# for payment attempts that did not succeed.
|
|
759
|
+
#
|
|
760
|
+
# @return [String, nil]
|
|
761
|
+
required :receipt_pdf, String, nil?: true
|
|
762
|
+
|
|
763
|
+
# @!attribute succeeded
|
|
764
|
+
# Whether the payment attempt succeeded.
|
|
765
|
+
#
|
|
766
|
+
# @return [Boolean]
|
|
767
|
+
required :succeeded, Orb::Internal::Type::Boolean
|
|
768
|
+
|
|
769
|
+
# @!method initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, receipt_pdf:, succeeded:)
|
|
770
|
+
# Some parameter documentations has been truncated, see
|
|
771
|
+
# {Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::PaymentAttempt} for
|
|
772
|
+
# more details.
|
|
773
|
+
#
|
|
774
|
+
# @param id [String] The ID of the payment attempt.
|
|
775
|
+
#
|
|
776
|
+
# @param amount [String] The amount of the payment attempt.
|
|
777
|
+
#
|
|
778
|
+
# @param created_at [Time] The time at which the payment attempt was created.
|
|
779
|
+
#
|
|
780
|
+
# @param payment_provider [Symbol, Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::PaymentAttempt::PaymentProvider, nil] The payment provider that attempted to collect the payment.
|
|
781
|
+
#
|
|
782
|
+
# @param payment_provider_id [String, nil] The ID of the payment attempt in the payment provider.
|
|
783
|
+
#
|
|
784
|
+
# @param receipt_pdf [String, nil] URL to the downloadable PDF version of the receipt. This field will be `null` fo
|
|
785
|
+
#
|
|
786
|
+
# @param succeeded [Boolean] Whether the payment attempt succeeded.
|
|
787
|
+
|
|
788
|
+
# The payment provider that attempted to collect the payment.
|
|
789
|
+
#
|
|
790
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice::PaymentAttempt#payment_provider
|
|
791
|
+
module PaymentProvider
|
|
792
|
+
extend Orb::Internal::Type::Enum
|
|
793
|
+
|
|
794
|
+
STRIPE = :stripe
|
|
795
|
+
ADYEN = :adyen
|
|
796
|
+
|
|
797
|
+
# @!method self.values
|
|
798
|
+
# @return [Array<Symbol>]
|
|
799
|
+
end
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent::Invoice#status
|
|
803
|
+
module Status
|
|
804
|
+
extend Orb::Internal::Type::Enum
|
|
805
|
+
|
|
806
|
+
ISSUED = :issued
|
|
807
|
+
PAID = :paid
|
|
808
|
+
SYNCED = :synced
|
|
809
|
+
VOID = :void
|
|
810
|
+
DRAFT = :draft
|
|
811
|
+
|
|
812
|
+
# @!method self.values
|
|
813
|
+
# @return [Array<Symbol>]
|
|
814
|
+
end
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent#properties
|
|
818
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
819
|
+
# @!attribute automatically_marked_as_paid
|
|
820
|
+
#
|
|
821
|
+
# @return [Boolean]
|
|
822
|
+
required :automatically_marked_as_paid, Orb::Internal::Type::Boolean
|
|
823
|
+
|
|
824
|
+
# @!method initialize(automatically_marked_as_paid:)
|
|
825
|
+
# @param automatically_marked_as_paid [Boolean]
|
|
826
|
+
end
|
|
827
|
+
|
|
828
|
+
# The event this payload describes.
|
|
829
|
+
#
|
|
830
|
+
# @see Orb::Models::InvoiceIssuedSummaryWebhookEvent#type
|
|
831
|
+
module Type
|
|
832
|
+
extend Orb::Internal::Type::Enum
|
|
833
|
+
|
|
834
|
+
INVOICE_ISSUED_SUMMARY = :"invoice.issued_summary"
|
|
835
|
+
|
|
836
|
+
# @!method self.values
|
|
837
|
+
# @return [Array<Symbol>]
|
|
838
|
+
end
|
|
839
|
+
end
|
|
840
|
+
end
|
|
841
|
+
end
|