orb-billing 1.48.0 → 1.50.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.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/orb/models/changed_subscription_resources.rb +21 -1
  5. data/lib/orb/models/customers/credit_fetch_balance_by_external_id_params.rb +31 -0
  6. data/lib/orb/models/customers/credit_fetch_balance_by_external_id_response.rb +61 -0
  7. data/lib/orb/models/customers/credit_fetch_balance_params.rb +31 -0
  8. data/lib/orb/models/customers/credit_fetch_balance_response.rb +60 -0
  9. data/lib/orb/models/invoice.rb +21 -1
  10. data/lib/orb/models/invoice_fetch_upcoming_response.rb +21 -1
  11. data/lib/orb/models/invoice_issue_summary_response.rb +21 -1
  12. data/lib/orb/models/invoice_issued_summary_webhook_event.rb +21 -1
  13. data/lib/orb/models/invoice_list_summary_response.rb +21 -1
  14. data/lib/orb/models/subscription_list_summary_params.rb +108 -0
  15. data/lib/orb/models/subscription_list_summary_response.rb +130 -0
  16. data/lib/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rb +21 -1
  17. data/lib/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rb +21 -1
  18. data/lib/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rb +21 -1
  19. data/lib/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rb +21 -1
  20. data/lib/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rb +21 -1
  21. data/lib/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rb +21 -1
  22. data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +21 -1
  23. data/lib/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rb +21 -1
  24. data/lib/orb/models/webhooks/invoice_issued_standard_webhook_event.rb +21 -1
  25. data/lib/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rb +21 -1
  26. data/lib/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rb +21 -1
  27. data/lib/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rb +21 -1
  28. data/lib/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rb +21 -1
  29. data/lib/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rb +21 -1
  30. data/lib/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rb +21 -1
  31. data/lib/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rb +21 -1
  32. data/lib/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rb +21 -1
  33. data/lib/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rb +21 -1
  34. data/lib/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rb +21 -1
  35. data/lib/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rb +21 -1
  36. data/lib/orb/models.rb +2 -0
  37. data/lib/orb/resources/alerts.rb +7 -4
  38. data/lib/orb/resources/customers/credits.rb +76 -0
  39. data/lib/orb/resources/subscriptions.rb +60 -0
  40. data/lib/orb/version.rb +1 -1
  41. data/lib/orb.rb +6 -0
  42. data/rbi/orb/models/changed_subscription_resources.rbi +24 -0
  43. data/rbi/orb/models/customers/credit_fetch_balance_by_external_id_params.rbi +54 -0
  44. data/rbi/orb/models/customers/credit_fetch_balance_by_external_id_response.rbi +86 -0
  45. data/rbi/orb/models/customers/credit_fetch_balance_params.rbi +54 -0
  46. data/rbi/orb/models/customers/credit_fetch_balance_response.rbi +86 -0
  47. data/rbi/orb/models/invoice.rbi +24 -0
  48. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +24 -0
  49. data/rbi/orb/models/invoice_issue_summary_response.rbi +24 -0
  50. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +24 -0
  51. data/rbi/orb/models/invoice_list_summary_response.rbi +24 -0
  52. data/rbi/orb/models/subscription_list_summary_params.rbi +148 -0
  53. data/rbi/orb/models/subscription_list_summary_response.rbi +214 -0
  54. data/rbi/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbi +24 -0
  55. data/rbi/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbi +24 -0
  56. data/rbi/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbi +24 -0
  57. data/rbi/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbi +24 -0
  58. data/rbi/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbi +24 -0
  59. data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi +24 -0
  60. data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +24 -0
  61. data/rbi/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbi +24 -0
  62. data/rbi/orb/models/webhooks/invoice_issued_standard_webhook_event.rbi +24 -0
  63. data/rbi/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbi +24 -0
  64. data/rbi/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbi +24 -0
  65. data/rbi/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbi +24 -0
  66. data/rbi/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbi +24 -0
  67. data/rbi/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbi +24 -0
  68. data/rbi/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbi +24 -0
  69. data/rbi/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbi +24 -0
  70. data/rbi/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbi +24 -0
  71. data/rbi/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbi +24 -0
  72. data/rbi/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbi +24 -0
  73. data/rbi/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbi +24 -0
  74. data/rbi/orb/models.rbi +2 -0
  75. data/rbi/orb/resources/alerts.rbi +7 -4
  76. data/rbi/orb/resources/customers/credits.rbi +60 -0
  77. data/rbi/orb/resources/subscriptions.rbi +47 -0
  78. data/sig/orb/models/changed_subscription_resources.rbs +10 -0
  79. data/sig/orb/models/customers/credit_fetch_balance_by_external_id_params.rbs +30 -0
  80. data/sig/orb/models/customers/credit_fetch_balance_by_external_id_response.rbs +42 -0
  81. data/sig/orb/models/customers/credit_fetch_balance_params.rbs +30 -0
  82. data/sig/orb/models/customers/credit_fetch_balance_response.rbs +42 -0
  83. data/sig/orb/models/invoice.rbs +10 -0
  84. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +10 -0
  85. data/sig/orb/models/invoice_issue_summary_response.rbs +10 -0
  86. data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +10 -0
  87. data/sig/orb/models/invoice_list_summary_response.rbs +10 -0
  88. data/sig/orb/models/subscription_list_summary_params.rbs +90 -0
  89. data/sig/orb/models/subscription_list_summary_response.rbs +94 -0
  90. data/sig/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbs +10 -0
  91. data/sig/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbs +10 -0
  92. data/sig/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbs +10 -0
  93. data/sig/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbs +10 -0
  94. data/sig/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbs +10 -0
  95. data/sig/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbs +10 -0
  96. data/sig/orb/models/webhooks/invoice_edited_standard_webhook_event.rbs +10 -0
  97. data/sig/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbs +10 -0
  98. data/sig/orb/models/webhooks/invoice_issued_standard_webhook_event.rbs +10 -0
  99. data/sig/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbs +10 -0
  100. data/sig/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbs +10 -0
  101. data/sig/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbs +10 -0
  102. data/sig/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbs +10 -0
  103. data/sig/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbs +10 -0
  104. data/sig/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbs +10 -0
  105. data/sig/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbs +10 -0
  106. data/sig/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbs +10 -0
  107. data/sig/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbs +10 -0
  108. data/sig/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbs +10 -0
  109. data/sig/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbs +10 -0
  110. data/sig/orb/models.rbs +2 -0
  111. data/sig/orb/resources/customers/credits.rbs +12 -0
  112. data/sig/orb/resources/subscriptions.rbs +15 -0
  113. metadata +19 -1
@@ -0,0 +1,130 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orb
4
+ module Models
5
+ # @see Orb::Resources::Subscriptions#list_summary
6
+ class SubscriptionListSummaryResponse < Orb::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute created_at
13
+ #
14
+ # @return [Time]
15
+ required :created_at, Time
16
+
17
+ # @!attribute customer
18
+ #
19
+ # @return [Orb::Models::CustomerMinified]
20
+ required :customer, -> { Orb::CustomerMinified }
21
+
22
+ # @!attribute end_date
23
+ # The date Orb stops billing for this subscription.
24
+ #
25
+ # @return [Time, nil]
26
+ required :end_date, Time, nil?: true
27
+
28
+ # @!attribute metadata
29
+ # User specified key-value pairs for the resource. If not present, this defaults
30
+ # to an empty dictionary. Individual keys can be removed by setting the value to
31
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
32
+ # `null`.
33
+ #
34
+ # @return [Hash{Symbol=>String}]
35
+ required :metadata, Orb::Internal::Type::HashOf[String]
36
+
37
+ # @!attribute name
38
+ # The name of the subscription.
39
+ #
40
+ # @return [String]
41
+ required :name, String
42
+
43
+ # @!attribute plan
44
+ #
45
+ # @return [Orb::Models::SubscriptionListSummaryResponse::Plan, nil]
46
+ required :plan, -> { Orb::Models::SubscriptionListSummaryResponse::Plan }, nil?: true
47
+
48
+ # @!attribute start_date
49
+ # The date Orb starts billing for this subscription.
50
+ #
51
+ # @return [Time]
52
+ required :start_date, Time
53
+
54
+ # @!attribute status
55
+ #
56
+ # @return [Symbol, Orb::Models::SubscriptionListSummaryResponse::Status]
57
+ required :status, enum: -> { Orb::Models::SubscriptionListSummaryResponse::Status }
58
+
59
+ # @!method initialize(id:, created_at:, customer:, end_date:, metadata:, name:, plan:, start_date:, status:)
60
+ # Some parameter documentations has been truncated, see
61
+ # {Orb::Models::SubscriptionListSummaryResponse} for more details.
62
+ #
63
+ # A subscription's own fields, with its plan and customer as references, as listed
64
+ # by List subscription summaries and carried in standard webhook payloads. Fetch
65
+ # the subscription for its price intervals, billing periods, plan phases and other
66
+ # derived fields.
67
+ #
68
+ # @param id [String]
69
+ #
70
+ # @param created_at [Time]
71
+ #
72
+ # @param customer [Orb::Models::CustomerMinified]
73
+ #
74
+ # @param end_date [Time, nil] The date Orb stops billing for this subscription.
75
+ #
76
+ # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
77
+ #
78
+ # @param name [String] The name of the subscription.
79
+ #
80
+ # @param plan [Orb::Models::SubscriptionListSummaryResponse::Plan, nil]
81
+ #
82
+ # @param start_date [Time] The date Orb starts billing for this subscription.
83
+ #
84
+ # @param status [Symbol, Orb::Models::SubscriptionListSummaryResponse::Status]
85
+
86
+ # @see Orb::Models::SubscriptionListSummaryResponse#plan
87
+ class Plan < Orb::Internal::Type::BaseModel
88
+ # @!attribute id
89
+ #
90
+ # @return [String, nil]
91
+ required :id, String, nil?: true
92
+
93
+ # @!attribute external_plan_id
94
+ # An optional user-defined ID for this plan resource, used throughout the system
95
+ # as an alias for this Plan. Use this field to identify a plan by an existing
96
+ # identifier in your system.
97
+ #
98
+ # @return [String, nil]
99
+ required :external_plan_id, String, nil?: true
100
+
101
+ # @!attribute name
102
+ #
103
+ # @return [String, nil]
104
+ required :name, String, nil?: true
105
+
106
+ # @!method initialize(id:, external_plan_id:, name:)
107
+ # Some parameter documentations has been truncated, see
108
+ # {Orb::Models::SubscriptionListSummaryResponse::Plan} for more details.
109
+ #
110
+ # @param id [String, nil]
111
+ #
112
+ # @param external_plan_id [String, nil] An optional user-defined ID for this plan resource, used throughout the system a
113
+ #
114
+ # @param name [String, nil]
115
+ end
116
+
117
+ # @see Orb::Models::SubscriptionListSummaryResponse#status
118
+ module Status
119
+ extend Orb::Internal::Type::Enum
120
+
121
+ ACTIVE = :active
122
+ ENDED = :ended
123
+ UPCOMING = :upcoming
124
+
125
+ # @!method self.values
126
+ # @return [Array<Symbol>]
127
+ end
128
+ end
129
+ end
130
+ end
@@ -474,6 +474,22 @@ module Orb
474
474
  # @return [Time, nil]
475
475
  required :scheduled_issue_at, Time, nil?: true
476
476
 
477
+ # @!attribute service_period_end
478
+ # The latest `end_date` of the invoice's line items, including any line items
479
+ # hidden because they have zero quantity. This is `null` when the invoice has no
480
+ # line items.
481
+ #
482
+ # @return [Time, nil]
483
+ required :service_period_end, Time, nil?: true
484
+
485
+ # @!attribute service_period_start
486
+ # The earliest `start_date` of the invoice's line items, including any line items
487
+ # hidden because they have zero quantity. This is `null` when the invoice has no
488
+ # line items.
489
+ #
490
+ # @return [Time, nil]
491
+ required :service_period_start, Time, nil?: true
492
+
477
493
  # @!attribute shipping_address
478
494
  #
479
495
  # @return [Orb::Models::Address, nil]
@@ -518,7 +534,7 @@ module Orb
518
534
  # @return [Boolean]
519
535
  required :will_auto_issue, Orb::Internal::Type::Boolean
520
536
 
521
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
537
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
522
538
  # Some parameter documentations has been truncated, see
523
539
  # {Orb::Models::Webhooks::InvoiceAccountingSyncFailedStandardWebhookEvent::Invoice}
524
540
  # for more details.
@@ -580,6 +596,10 @@ module Orb
580
596
  #
581
597
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
582
598
  #
599
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
600
+ #
601
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
602
+ #
583
603
  # @param shipping_address [Orb::Models::Address, nil]
584
604
  #
585
605
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceAccountingSyncFailedStandardWebhookEvent::Invoice::Status]
@@ -474,6 +474,22 @@ module Orb
474
474
  # @return [Time, nil]
475
475
  required :scheduled_issue_at, Time, nil?: true
476
476
 
477
+ # @!attribute service_period_end
478
+ # The latest `end_date` of the invoice's line items, including any line items
479
+ # hidden because they have zero quantity. This is `null` when the invoice has no
480
+ # line items.
481
+ #
482
+ # @return [Time, nil]
483
+ required :service_period_end, Time, nil?: true
484
+
485
+ # @!attribute service_period_start
486
+ # The earliest `start_date` of the invoice's line items, including any line items
487
+ # hidden because they have zero quantity. This is `null` when the invoice has no
488
+ # line items.
489
+ #
490
+ # @return [Time, nil]
491
+ required :service_period_start, Time, nil?: true
492
+
477
493
  # @!attribute shipping_address
478
494
  #
479
495
  # @return [Orb::Models::Address, nil]
@@ -518,7 +534,7 @@ module Orb
518
534
  # @return [Boolean]
519
535
  required :will_auto_issue, Orb::Internal::Type::Boolean
520
536
 
521
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
537
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
522
538
  # Some parameter documentations has been truncated, see
523
539
  # {Orb::Models::Webhooks::InvoiceAccountingSyncSucceededStandardWebhookEvent::Invoice}
524
540
  # for more details.
@@ -580,6 +596,10 @@ module Orb
580
596
  #
581
597
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
582
598
  #
599
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
600
+ #
601
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
602
+ #
583
603
  # @param shipping_address [Orb::Models::Address, nil]
584
604
  #
585
605
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceAccountingSyncSucceededStandardWebhookEvent::Invoice::Status]
@@ -395,6 +395,22 @@ module Orb
395
395
  # @return [Time, nil]
396
396
  required :scheduled_issue_at, Time, nil?: true
397
397
 
398
+ # @!attribute service_period_end
399
+ # The latest `end_date` of the invoice's line items, including any line items
400
+ # hidden because they have zero quantity. This is `null` when the invoice has no
401
+ # line items.
402
+ #
403
+ # @return [Time, nil]
404
+ required :service_period_end, Time, nil?: true
405
+
406
+ # @!attribute service_period_start
407
+ # The earliest `start_date` of the invoice's line items, including any line items
408
+ # hidden because they have zero quantity. This is `null` when the invoice has no
409
+ # line items.
410
+ #
411
+ # @return [Time, nil]
412
+ required :service_period_start, Time, nil?: true
413
+
398
414
  # @!attribute shipping_address
399
415
  #
400
416
  # @return [Orb::Models::Address, nil]
@@ -439,7 +455,7 @@ module Orb
439
455
  # @return [Boolean]
440
456
  required :will_auto_issue, Orb::Internal::Type::Boolean
441
457
 
442
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
458
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
443
459
  # Some parameter documentations has been truncated, see
444
460
  # {Orb::Models::Webhooks::InvoiceDunningScheduleCreatedStandardWebhookEvent::Invoice}
445
461
  # for more details.
@@ -501,6 +517,10 @@ module Orb
501
517
  #
502
518
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
503
519
  #
520
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
521
+ #
522
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
523
+ #
504
524
  # @param shipping_address [Orb::Models::Address, nil]
505
525
  #
506
526
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceDunningScheduleCreatedStandardWebhookEvent::Invoice::Status]
@@ -395,6 +395,22 @@ module Orb
395
395
  # @return [Time, nil]
396
396
  required :scheduled_issue_at, Time, nil?: true
397
397
 
398
+ # @!attribute service_period_end
399
+ # The latest `end_date` of the invoice's line items, including any line items
400
+ # hidden because they have zero quantity. This is `null` when the invoice has no
401
+ # line items.
402
+ #
403
+ # @return [Time, nil]
404
+ required :service_period_end, Time, nil?: true
405
+
406
+ # @!attribute service_period_start
407
+ # The earliest `start_date` of the invoice's line items, including any line items
408
+ # hidden because they have zero quantity. This is `null` when the invoice has no
409
+ # line items.
410
+ #
411
+ # @return [Time, nil]
412
+ required :service_period_start, Time, nil?: true
413
+
398
414
  # @!attribute shipping_address
399
415
  #
400
416
  # @return [Orb::Models::Address, nil]
@@ -439,7 +455,7 @@ module Orb
439
455
  # @return [Boolean]
440
456
  required :will_auto_issue, Orb::Internal::Type::Boolean
441
457
 
442
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
458
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
443
459
  # Some parameter documentations has been truncated, see
444
460
  # {Orb::Models::Webhooks::InvoiceDunningScheduleEndedStandardWebhookEvent::Invoice}
445
461
  # for more details.
@@ -501,6 +517,10 @@ module Orb
501
517
  #
502
518
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
503
519
  #
520
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
521
+ #
522
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
523
+ #
504
524
  # @param shipping_address [Orb::Models::Address, nil]
505
525
  #
506
526
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceDunningScheduleEndedStandardWebhookEvent::Invoice::Status]
@@ -395,6 +395,22 @@ module Orb
395
395
  # @return [Time, nil]
396
396
  required :scheduled_issue_at, Time, nil?: true
397
397
 
398
+ # @!attribute service_period_end
399
+ # The latest `end_date` of the invoice's line items, including any line items
400
+ # hidden because they have zero quantity. This is `null` when the invoice has no
401
+ # line items.
402
+ #
403
+ # @return [Time, nil]
404
+ required :service_period_end, Time, nil?: true
405
+
406
+ # @!attribute service_period_start
407
+ # The earliest `start_date` of the invoice's line items, including any line items
408
+ # hidden because they have zero quantity. This is `null` when the invoice has no
409
+ # line items.
410
+ #
411
+ # @return [Time, nil]
412
+ required :service_period_start, Time, nil?: true
413
+
398
414
  # @!attribute shipping_address
399
415
  #
400
416
  # @return [Orb::Models::Address, nil]
@@ -439,7 +455,7 @@ module Orb
439
455
  # @return [Boolean]
440
456
  required :will_auto_issue, Orb::Internal::Type::Boolean
441
457
 
442
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
458
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
443
459
  # Some parameter documentations has been truncated, see
444
460
  # {Orb::Models::Webhooks::InvoiceDunningScheduleResetStandardWebhookEvent::Invoice}
445
461
  # for more details.
@@ -501,6 +517,10 @@ module Orb
501
517
  #
502
518
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
503
519
  #
520
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
521
+ #
522
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
523
+ #
504
524
  # @param shipping_address [Orb::Models::Address, nil]
505
525
  #
506
526
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceDunningScheduleResetStandardWebhookEvent::Invoice::Status]
@@ -396,6 +396,22 @@ module Orb
396
396
  # @return [Time, nil]
397
397
  required :scheduled_issue_at, Time, nil?: true
398
398
 
399
+ # @!attribute service_period_end
400
+ # The latest `end_date` of the invoice's line items, including any line items
401
+ # hidden because they have zero quantity. This is `null` when the invoice has no
402
+ # line items.
403
+ #
404
+ # @return [Time, nil]
405
+ required :service_period_end, Time, nil?: true
406
+
407
+ # @!attribute service_period_start
408
+ # The earliest `start_date` of the invoice's line items, including any line items
409
+ # hidden because they have zero quantity. This is `null` when the invoice has no
410
+ # line items.
411
+ #
412
+ # @return [Time, nil]
413
+ required :service_period_start, Time, nil?: true
414
+
399
415
  # @!attribute shipping_address
400
416
  #
401
417
  # @return [Orb::Models::Address, nil]
@@ -440,7 +456,7 @@ module Orb
440
456
  # @return [Boolean]
441
457
  required :will_auto_issue, Orb::Internal::Type::Boolean
442
458
 
443
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
459
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
444
460
  # Some parameter documentations has been truncated, see
445
461
  # {Orb::Models::Webhooks::InvoiceDunningScheduleStepExecutedStandardWebhookEvent::Invoice}
446
462
  # for more details.
@@ -502,6 +518,10 @@ module Orb
502
518
  #
503
519
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
504
520
  #
521
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
522
+ #
523
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
524
+ #
505
525
  # @param shipping_address [Orb::Models::Address, nil]
506
526
  #
507
527
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceDunningScheduleStepExecutedStandardWebhookEvent::Invoice::Status]
@@ -393,6 +393,22 @@ module Orb
393
393
  # @return [Time, nil]
394
394
  required :scheduled_issue_at, Time, nil?: true
395
395
 
396
+ # @!attribute service_period_end
397
+ # The latest `end_date` of the invoice's line items, including any line items
398
+ # hidden because they have zero quantity. This is `null` when the invoice has no
399
+ # line items.
400
+ #
401
+ # @return [Time, nil]
402
+ required :service_period_end, Time, nil?: true
403
+
404
+ # @!attribute service_period_start
405
+ # The earliest `start_date` of the invoice's line items, including any line items
406
+ # hidden because they have zero quantity. This is `null` when the invoice has no
407
+ # line items.
408
+ #
409
+ # @return [Time, nil]
410
+ required :service_period_start, Time, nil?: true
411
+
396
412
  # @!attribute shipping_address
397
413
  #
398
414
  # @return [Orb::Models::Address, nil]
@@ -436,7 +452,7 @@ module Orb
436
452
  # @return [Boolean]
437
453
  required :will_auto_issue, Orb::Internal::Type::Boolean
438
454
 
439
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
455
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
440
456
  # Some parameter documentations has been truncated, see
441
457
  # {Orb::Models::Webhooks::InvoiceEditedStandardWebhookEvent::Invoice} for more
442
458
  # details.
@@ -498,6 +514,10 @@ module Orb
498
514
  #
499
515
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
500
516
  #
517
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
518
+ #
519
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
520
+ #
501
521
  # @param shipping_address [Orb::Models::Address, nil]
502
522
  #
503
523
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceEditedStandardWebhookEvent::Invoice::Status]
@@ -394,6 +394,22 @@ module Orb
394
394
  # @return [Time, nil]
395
395
  required :scheduled_issue_at, Time, nil?: true
396
396
 
397
+ # @!attribute service_period_end
398
+ # The latest `end_date` of the invoice's line items, including any line items
399
+ # hidden because they have zero quantity. This is `null` when the invoice has no
400
+ # line items.
401
+ #
402
+ # @return [Time, nil]
403
+ required :service_period_end, Time, nil?: true
404
+
405
+ # @!attribute service_period_start
406
+ # The earliest `start_date` of the invoice's line items, including any line items
407
+ # hidden because they have zero quantity. This is `null` when the invoice has no
408
+ # line items.
409
+ #
410
+ # @return [Time, nil]
411
+ required :service_period_start, Time, nil?: true
412
+
397
413
  # @!attribute shipping_address
398
414
  #
399
415
  # @return [Orb::Models::Address, nil]
@@ -437,7 +453,7 @@ module Orb
437
453
  # @return [Boolean]
438
454
  required :will_auto_issue, Orb::Internal::Type::Boolean
439
455
 
440
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
456
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
441
457
  # Some parameter documentations has been truncated, see
442
458
  # {Orb::Models::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice} for
443
459
  # more details.
@@ -499,6 +515,10 @@ module Orb
499
515
  #
500
516
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
501
517
  #
518
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
519
+ #
520
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
521
+ #
502
522
  # @param shipping_address [Orb::Models::Address, nil]
503
523
  #
504
524
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status]
@@ -393,6 +393,22 @@ module Orb
393
393
  # @return [Time, nil]
394
394
  required :scheduled_issue_at, Time, nil?: true
395
395
 
396
+ # @!attribute service_period_end
397
+ # The latest `end_date` of the invoice's line items, including any line items
398
+ # hidden because they have zero quantity. This is `null` when the invoice has no
399
+ # line items.
400
+ #
401
+ # @return [Time, nil]
402
+ required :service_period_end, Time, nil?: true
403
+
404
+ # @!attribute service_period_start
405
+ # The earliest `start_date` of the invoice's line items, including any line items
406
+ # hidden because they have zero quantity. This is `null` when the invoice has no
407
+ # line items.
408
+ #
409
+ # @return [Time, nil]
410
+ required :service_period_start, Time, nil?: true
411
+
396
412
  # @!attribute shipping_address
397
413
  #
398
414
  # @return [Orb::Models::Address, nil]
@@ -436,7 +452,7 @@ module Orb
436
452
  # @return [Boolean]
437
453
  required :will_auto_issue, Orb::Internal::Type::Boolean
438
454
 
439
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
455
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
440
456
  # Some parameter documentations has been truncated, see
441
457
  # {Orb::Models::Webhooks::InvoiceIssuedStandardWebhookEvent::Invoice} for more
442
458
  # details.
@@ -498,6 +514,10 @@ module Orb
498
514
  #
499
515
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
500
516
  #
517
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
518
+ #
519
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
520
+ #
501
521
  # @param shipping_address [Orb::Models::Address, nil]
502
522
  #
503
523
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceIssuedStandardWebhookEvent::Invoice::Status]
@@ -396,6 +396,22 @@ module Orb
396
396
  # @return [Time, nil]
397
397
  required :scheduled_issue_at, Time, nil?: true
398
398
 
399
+ # @!attribute service_period_end
400
+ # The latest `end_date` of the invoice's line items, including any line items
401
+ # hidden because they have zero quantity. This is `null` when the invoice has no
402
+ # line items.
403
+ #
404
+ # @return [Time, nil]
405
+ required :service_period_end, Time, nil?: true
406
+
407
+ # @!attribute service_period_start
408
+ # The earliest `start_date` of the invoice's line items, including any line items
409
+ # hidden because they have zero quantity. This is `null` when the invoice has no
410
+ # line items.
411
+ #
412
+ # @return [Time, nil]
413
+ required :service_period_start, Time, nil?: true
414
+
399
415
  # @!attribute shipping_address
400
416
  #
401
417
  # @return [Orb::Models::Address, nil]
@@ -439,7 +455,7 @@ module Orb
439
455
  # @return [Boolean]
440
456
  required :will_auto_issue, Orb::Internal::Type::Boolean
441
457
 
442
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
458
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
443
459
  # Some parameter documentations has been truncated, see
444
460
  # {Orb::Models::Webhooks::InvoiceIssuedSummaryStandardWebhookEvent::Invoice} for
445
461
  # more details.
@@ -501,6 +517,10 @@ module Orb
501
517
  #
502
518
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
503
519
  #
520
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
521
+ #
522
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
523
+ #
504
524
  # @param shipping_address [Orb::Models::Address, nil]
505
525
  #
506
526
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceIssuedSummaryStandardWebhookEvent::Invoice::Status]
@@ -395,6 +395,22 @@ module Orb
395
395
  # @return [Time, nil]
396
396
  required :scheduled_issue_at, Time, nil?: true
397
397
 
398
+ # @!attribute service_period_end
399
+ # The latest `end_date` of the invoice's line items, including any line items
400
+ # hidden because they have zero quantity. This is `null` when the invoice has no
401
+ # line items.
402
+ #
403
+ # @return [Time, nil]
404
+ required :service_period_end, Time, nil?: true
405
+
406
+ # @!attribute service_period_start
407
+ # The earliest `start_date` of the invoice's line items, including any line items
408
+ # hidden because they have zero quantity. This is `null` when the invoice has no
409
+ # line items.
410
+ #
411
+ # @return [Time, nil]
412
+ required :service_period_start, Time, nil?: true
413
+
398
414
  # @!attribute shipping_address
399
415
  #
400
416
  # @return [Orb::Models::Address, nil]
@@ -439,7 +455,7 @@ module Orb
439
455
  # @return [Boolean]
440
456
  required :will_auto_issue, Orb::Internal::Type::Boolean
441
457
 
442
- # @!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_received_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
458
+ # @!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_received_at:, payment_started_at:, scheduled_issue_at:, service_period_end:, service_period_start:, shipping_address:, status:, subscription:, sync_failed_at:, total:, voided_at:, will_auto_issue:)
443
459
  # Some parameter documentations has been truncated, see
444
460
  # {Orb::Models::Webhooks::InvoiceManuallyMarkedAsPaidStandardWebhookEvent::Invoice}
445
461
  # for more details.
@@ -501,6 +517,10 @@ module Orb
501
517
  #
502
518
  # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche
503
519
  #
520
+ # @param service_period_end [Time, nil] The latest `end_date` of the invoice's line items, including any line items hidd
521
+ #
522
+ # @param service_period_start [Time, nil] The earliest `start_date` of the invoice's line items, including any line items
523
+ #
504
524
  # @param shipping_address [Orb::Models::Address, nil]
505
525
  #
506
526
  # @param status [Symbol, Orb::Models::Webhooks::InvoiceManuallyMarkedAsPaidStandardWebhookEvent::Invoice::Status]