orb-billing 1.49.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 (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -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/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rb +21 -1
  15. data/lib/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rb +21 -1
  16. data/lib/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rb +21 -1
  17. data/lib/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rb +21 -1
  18. data/lib/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rb +21 -1
  19. data/lib/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rb +21 -1
  20. data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +21 -1
  21. data/lib/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rb +21 -1
  22. data/lib/orb/models/webhooks/invoice_issued_standard_webhook_event.rb +21 -1
  23. data/lib/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rb +21 -1
  24. data/lib/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rb +21 -1
  25. data/lib/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rb +21 -1
  26. data/lib/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rb +21 -1
  27. data/lib/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rb +21 -1
  28. data/lib/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rb +21 -1
  29. data/lib/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rb +21 -1
  30. data/lib/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rb +21 -1
  31. data/lib/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rb +21 -1
  32. data/lib/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rb +21 -1
  33. data/lib/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rb +21 -1
  34. data/lib/orb/resources/customers/credits.rb +76 -0
  35. data/lib/orb/version.rb +1 -1
  36. data/lib/orb.rb +4 -0
  37. data/rbi/orb/models/changed_subscription_resources.rbi +24 -0
  38. data/rbi/orb/models/customers/credit_fetch_balance_by_external_id_params.rbi +54 -0
  39. data/rbi/orb/models/customers/credit_fetch_balance_by_external_id_response.rbi +86 -0
  40. data/rbi/orb/models/customers/credit_fetch_balance_params.rbi +54 -0
  41. data/rbi/orb/models/customers/credit_fetch_balance_response.rbi +86 -0
  42. data/rbi/orb/models/invoice.rbi +24 -0
  43. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +24 -0
  44. data/rbi/orb/models/invoice_issue_summary_response.rbi +24 -0
  45. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +24 -0
  46. data/rbi/orb/models/invoice_list_summary_response.rbi +24 -0
  47. data/rbi/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbi +24 -0
  48. data/rbi/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbi +24 -0
  49. data/rbi/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbi +24 -0
  50. data/rbi/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbi +24 -0
  51. data/rbi/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbi +24 -0
  52. data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi +24 -0
  53. data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +24 -0
  54. data/rbi/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbi +24 -0
  55. data/rbi/orb/models/webhooks/invoice_issued_standard_webhook_event.rbi +24 -0
  56. data/rbi/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbi +24 -0
  57. data/rbi/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbi +24 -0
  58. data/rbi/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbi +24 -0
  59. data/rbi/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbi +24 -0
  60. data/rbi/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbi +24 -0
  61. data/rbi/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbi +24 -0
  62. data/rbi/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbi +24 -0
  63. data/rbi/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbi +24 -0
  64. data/rbi/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbi +24 -0
  65. data/rbi/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbi +24 -0
  66. data/rbi/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbi +24 -0
  67. data/rbi/orb/resources/customers/credits.rbi +60 -0
  68. data/sig/orb/models/changed_subscription_resources.rbs +10 -0
  69. data/sig/orb/models/customers/credit_fetch_balance_by_external_id_params.rbs +30 -0
  70. data/sig/orb/models/customers/credit_fetch_balance_by_external_id_response.rbs +42 -0
  71. data/sig/orb/models/customers/credit_fetch_balance_params.rbs +30 -0
  72. data/sig/orb/models/customers/credit_fetch_balance_response.rbs +42 -0
  73. data/sig/orb/models/invoice.rbs +10 -0
  74. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +10 -0
  75. data/sig/orb/models/invoice_issue_summary_response.rbs +10 -0
  76. data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +10 -0
  77. data/sig/orb/models/invoice_list_summary_response.rbs +10 -0
  78. data/sig/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbs +10 -0
  79. data/sig/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbs +10 -0
  80. data/sig/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbs +10 -0
  81. data/sig/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbs +10 -0
  82. data/sig/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbs +10 -0
  83. data/sig/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbs +10 -0
  84. data/sig/orb/models/webhooks/invoice_edited_standard_webhook_event.rbs +10 -0
  85. data/sig/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbs +10 -0
  86. data/sig/orb/models/webhooks/invoice_issued_standard_webhook_event.rbs +10 -0
  87. data/sig/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbs +10 -0
  88. data/sig/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbs +10 -0
  89. data/sig/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbs +10 -0
  90. data/sig/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbs +10 -0
  91. data/sig/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbs +10 -0
  92. data/sig/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbs +10 -0
  93. data/sig/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbs +10 -0
  94. data/sig/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbs +10 -0
  95. data/sig/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbs +10 -0
  96. data/sig/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbs +10 -0
  97. data/sig/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbs +10 -0
  98. data/sig/orb/resources/customers/credits.rbs +12 -0
  99. metadata +13 -1
@@ -319,6 +319,18 @@ module Orb
319
319
  sig { returns(T.nilable(Time)) }
320
320
  attr_accessor :scheduled_issue_at
321
321
 
322
+ # The latest `end_date` of the invoice's line items, including any line items
323
+ # hidden because they have zero quantity. This is `null` when the invoice has no
324
+ # line items.
325
+ sig { returns(T.nilable(Time)) }
326
+ attr_accessor :service_period_end
327
+
328
+ # The earliest `start_date` of the invoice's line items, including any line items
329
+ # hidden because they have zero quantity. This is `null` when the invoice has no
330
+ # line items.
331
+ sig { returns(T.nilable(Time)) }
332
+ attr_accessor :service_period_start
333
+
322
334
  sig { returns(T.nilable(Orb::Address)) }
323
335
  attr_reader :shipping_address
324
336
 
@@ -400,6 +412,8 @@ module Orb
400
412
  payment_received_at: T.nilable(Time),
401
413
  payment_started_at: T.nilable(Time),
402
414
  scheduled_issue_at: T.nilable(Time),
415
+ service_period_end: T.nilable(Time),
416
+ service_period_start: T.nilable(Time),
403
417
  shipping_address: T.nilable(Orb::Address::OrHash),
404
418
  status: Orb::Models::InvoiceIssueSummaryResponse::Status::OrSymbol,
405
419
  subscription: T.nilable(Orb::SubscriptionMinified::OrHash),
@@ -629,6 +643,14 @@ module Orb
629
643
  # If the invoice is in draft, this timestamp will reflect when the invoice is
630
644
  # scheduled to be issued.
631
645
  scheduled_issue_at:,
646
+ # The latest `end_date` of the invoice's line items, including any line items
647
+ # hidden because they have zero quantity. This is `null` when the invoice has no
648
+ # line items.
649
+ service_period_end:,
650
+ # The earliest `start_date` of the invoice's line items, including any line items
651
+ # hidden because they have zero quantity. This is `null` when the invoice has no
652
+ # line items.
653
+ service_period_start:,
632
654
  shipping_address:,
633
655
  status:,
634
656
  subscription:,
@@ -686,6 +708,8 @@ module Orb
686
708
  payment_received_at: T.nilable(Time),
687
709
  payment_started_at: T.nilable(Time),
688
710
  scheduled_issue_at: T.nilable(Time),
711
+ service_period_end: T.nilable(Time),
712
+ service_period_start: T.nilable(Time),
689
713
  shipping_address: T.nilable(Orb::Address),
690
714
  status:
691
715
  Orb::Models::InvoiceIssueSummaryResponse::Status::TaggedSymbol,
@@ -422,6 +422,18 @@ module Orb
422
422
  sig { returns(T.nilable(Time)) }
423
423
  attr_accessor :scheduled_issue_at
424
424
 
425
+ # The latest `end_date` of the invoice's line items, including any line items
426
+ # hidden because they have zero quantity. This is `null` when the invoice has no
427
+ # line items.
428
+ sig { returns(T.nilable(Time)) }
429
+ attr_accessor :service_period_end
430
+
431
+ # The earliest `start_date` of the invoice's line items, including any line items
432
+ # hidden because they have zero quantity. This is `null` when the invoice has no
433
+ # line items.
434
+ sig { returns(T.nilable(Time)) }
435
+ attr_accessor :service_period_start
436
+
425
437
  sig { returns(T.nilable(Orb::Address)) }
426
438
  attr_reader :shipping_address
427
439
 
@@ -507,6 +519,8 @@ module Orb
507
519
  payment_received_at: T.nilable(Time),
508
520
  payment_started_at: T.nilable(Time),
509
521
  scheduled_issue_at: T.nilable(Time),
522
+ service_period_end: T.nilable(Time),
523
+ service_period_start: T.nilable(Time),
510
524
  shipping_address: T.nilable(Orb::Address::OrHash),
511
525
  status:
512
526
  Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::Status::OrSymbol,
@@ -737,6 +751,14 @@ module Orb
737
751
  # If the invoice is in draft, this timestamp will reflect when the invoice is
738
752
  # scheduled to be issued.
739
753
  scheduled_issue_at:,
754
+ # The latest `end_date` of the invoice's line items, including any line items
755
+ # hidden because they have zero quantity. This is `null` when the invoice has no
756
+ # line items.
757
+ service_period_end:,
758
+ # The earliest `start_date` of the invoice's line items, including any line items
759
+ # hidden because they have zero quantity. This is `null` when the invoice has no
760
+ # line items.
761
+ service_period_start:,
740
762
  shipping_address:,
741
763
  status:,
742
764
  subscription:,
@@ -796,6 +818,8 @@ module Orb
796
818
  payment_received_at: T.nilable(Time),
797
819
  payment_started_at: T.nilable(Time),
798
820
  scheduled_issue_at: T.nilable(Time),
821
+ service_period_end: T.nilable(Time),
822
+ service_period_start: T.nilable(Time),
799
823
  shipping_address: T.nilable(Orb::Address),
800
824
  status:
801
825
  Orb::InvoiceIssuedSummaryWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -316,6 +316,18 @@ module Orb
316
316
  sig { returns(T.nilable(Time)) }
317
317
  attr_accessor :scheduled_issue_at
318
318
 
319
+ # The latest `end_date` of the invoice's line items, including any line items
320
+ # hidden because they have zero quantity. This is `null` when the invoice has no
321
+ # line items.
322
+ sig { returns(T.nilable(Time)) }
323
+ attr_accessor :service_period_end
324
+
325
+ # The earliest `start_date` of the invoice's line items, including any line items
326
+ # hidden because they have zero quantity. This is `null` when the invoice has no
327
+ # line items.
328
+ sig { returns(T.nilable(Time)) }
329
+ attr_accessor :service_period_start
330
+
319
331
  sig { returns(T.nilable(Orb::Address)) }
320
332
  attr_reader :shipping_address
321
333
 
@@ -397,6 +409,8 @@ module Orb
397
409
  payment_received_at: T.nilable(Time),
398
410
  payment_started_at: T.nilable(Time),
399
411
  scheduled_issue_at: T.nilable(Time),
412
+ service_period_end: T.nilable(Time),
413
+ service_period_start: T.nilable(Time),
400
414
  shipping_address: T.nilable(Orb::Address::OrHash),
401
415
  status: Orb::Models::InvoiceListSummaryResponse::Status::OrSymbol,
402
416
  subscription: T.nilable(Orb::SubscriptionMinified::OrHash),
@@ -626,6 +640,14 @@ module Orb
626
640
  # If the invoice is in draft, this timestamp will reflect when the invoice is
627
641
  # scheduled to be issued.
628
642
  scheduled_issue_at:,
643
+ # The latest `end_date` of the invoice's line items, including any line items
644
+ # hidden because they have zero quantity. This is `null` when the invoice has no
645
+ # line items.
646
+ service_period_end:,
647
+ # The earliest `start_date` of the invoice's line items, including any line items
648
+ # hidden because they have zero quantity. This is `null` when the invoice has no
649
+ # line items.
650
+ service_period_start:,
629
651
  shipping_address:,
630
652
  status:,
631
653
  subscription:,
@@ -681,6 +703,8 @@ module Orb
681
703
  payment_received_at: T.nilable(Time),
682
704
  payment_started_at: T.nilable(Time),
683
705
  scheduled_issue_at: T.nilable(Time),
706
+ service_period_end: T.nilable(Time),
707
+ service_period_start: T.nilable(Time),
684
708
  shipping_address: T.nilable(Orb::Address),
685
709
  status:
686
710
  Orb::Models::InvoiceListSummaryResponse::Status::TaggedSymbol,
@@ -612,6 +612,18 @@ module Orb
612
612
  sig { returns(T.nilable(Time)) }
613
613
  attr_accessor :scheduled_issue_at
614
614
 
615
+ # The latest `end_date` of the invoice's line items, including any line items
616
+ # hidden because they have zero quantity. This is `null` when the invoice has no
617
+ # line items.
618
+ sig { returns(T.nilable(Time)) }
619
+ attr_accessor :service_period_end
620
+
621
+ # The earliest `start_date` of the invoice's line items, including any line items
622
+ # hidden because they have zero quantity. This is `null` when the invoice has no
623
+ # line items.
624
+ sig { returns(T.nilable(Time)) }
625
+ attr_accessor :service_period_start
626
+
615
627
  sig { returns(T.nilable(Orb::Address)) }
616
628
  attr_reader :shipping_address
617
629
 
@@ -697,6 +709,8 @@ module Orb
697
709
  payment_received_at: T.nilable(Time),
698
710
  payment_started_at: T.nilable(Time),
699
711
  scheduled_issue_at: T.nilable(Time),
712
+ service_period_end: T.nilable(Time),
713
+ service_period_start: T.nilable(Time),
700
714
  shipping_address: T.nilable(Orb::Address::OrHash),
701
715
  status:
702
716
  Orb::Webhooks::InvoiceAccountingSyncFailedStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -927,6 +941,14 @@ module Orb
927
941
  # If the invoice is in draft, this timestamp will reflect when the invoice is
928
942
  # scheduled to be issued.
929
943
  scheduled_issue_at:,
944
+ # The latest `end_date` of the invoice's line items, including any line items
945
+ # hidden because they have zero quantity. This is `null` when the invoice has no
946
+ # line items.
947
+ service_period_end:,
948
+ # The earliest `start_date` of the invoice's line items, including any line items
949
+ # hidden because they have zero quantity. This is `null` when the invoice has no
950
+ # line items.
951
+ service_period_start:,
930
952
  shipping_address:,
931
953
  status:,
932
954
  subscription:,
@@ -986,6 +1008,8 @@ module Orb
986
1008
  payment_received_at: T.nilable(Time),
987
1009
  payment_started_at: T.nilable(Time),
988
1010
  scheduled_issue_at: T.nilable(Time),
1011
+ service_period_end: T.nilable(Time),
1012
+ service_period_start: T.nilable(Time),
989
1013
  shipping_address: T.nilable(Orb::Address),
990
1014
  status:
991
1015
  Orb::Webhooks::InvoiceAccountingSyncFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -612,6 +612,18 @@ module Orb
612
612
  sig { returns(T.nilable(Time)) }
613
613
  attr_accessor :scheduled_issue_at
614
614
 
615
+ # The latest `end_date` of the invoice's line items, including any line items
616
+ # hidden because they have zero quantity. This is `null` when the invoice has no
617
+ # line items.
618
+ sig { returns(T.nilable(Time)) }
619
+ attr_accessor :service_period_end
620
+
621
+ # The earliest `start_date` of the invoice's line items, including any line items
622
+ # hidden because they have zero quantity. This is `null` when the invoice has no
623
+ # line items.
624
+ sig { returns(T.nilable(Time)) }
625
+ attr_accessor :service_period_start
626
+
615
627
  sig { returns(T.nilable(Orb::Address)) }
616
628
  attr_reader :shipping_address
617
629
 
@@ -697,6 +709,8 @@ module Orb
697
709
  payment_received_at: T.nilable(Time),
698
710
  payment_started_at: T.nilable(Time),
699
711
  scheduled_issue_at: T.nilable(Time),
712
+ service_period_end: T.nilable(Time),
713
+ service_period_start: T.nilable(Time),
700
714
  shipping_address: T.nilable(Orb::Address::OrHash),
701
715
  status:
702
716
  Orb::Webhooks::InvoiceAccountingSyncSucceededStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -927,6 +941,14 @@ module Orb
927
941
  # If the invoice is in draft, this timestamp will reflect when the invoice is
928
942
  # scheduled to be issued.
929
943
  scheduled_issue_at:,
944
+ # The latest `end_date` of the invoice's line items, including any line items
945
+ # hidden because they have zero quantity. This is `null` when the invoice has no
946
+ # line items.
947
+ service_period_end:,
948
+ # The earliest `start_date` of the invoice's line items, including any line items
949
+ # hidden because they have zero quantity. This is `null` when the invoice has no
950
+ # line items.
951
+ service_period_start:,
930
952
  shipping_address:,
931
953
  status:,
932
954
  subscription:,
@@ -986,6 +1008,8 @@ module Orb
986
1008
  payment_received_at: T.nilable(Time),
987
1009
  payment_started_at: T.nilable(Time),
988
1010
  scheduled_issue_at: T.nilable(Time),
1011
+ service_period_end: T.nilable(Time),
1012
+ service_period_start: T.nilable(Time),
989
1013
  shipping_address: T.nilable(Orb::Address),
990
1014
  status:
991
1015
  Orb::Webhooks::InvoiceAccountingSyncSucceededStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -447,6 +447,18 @@ module Orb
447
447
  sig { returns(T.nilable(Time)) }
448
448
  attr_accessor :scheduled_issue_at
449
449
 
450
+ # The latest `end_date` of the invoice's line items, including any line items
451
+ # hidden because they have zero quantity. This is `null` when the invoice has no
452
+ # line items.
453
+ sig { returns(T.nilable(Time)) }
454
+ attr_accessor :service_period_end
455
+
456
+ # The earliest `start_date` of the invoice's line items, including any line items
457
+ # hidden because they have zero quantity. This is `null` when the invoice has no
458
+ # line items.
459
+ sig { returns(T.nilable(Time)) }
460
+ attr_accessor :service_period_start
461
+
450
462
  sig { returns(T.nilable(Orb::Address)) }
451
463
  attr_reader :shipping_address
452
464
 
@@ -532,6 +544,8 @@ module Orb
532
544
  payment_received_at: T.nilable(Time),
533
545
  payment_started_at: T.nilable(Time),
534
546
  scheduled_issue_at: T.nilable(Time),
547
+ service_period_end: T.nilable(Time),
548
+ service_period_start: T.nilable(Time),
535
549
  shipping_address: T.nilable(Orb::Address::OrHash),
536
550
  status:
537
551
  Orb::Webhooks::InvoiceDunningScheduleCreatedStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -762,6 +776,14 @@ module Orb
762
776
  # If the invoice is in draft, this timestamp will reflect when the invoice is
763
777
  # scheduled to be issued.
764
778
  scheduled_issue_at:,
779
+ # The latest `end_date` of the invoice's line items, including any line items
780
+ # hidden because they have zero quantity. This is `null` when the invoice has no
781
+ # line items.
782
+ service_period_end:,
783
+ # The earliest `start_date` of the invoice's line items, including any line items
784
+ # hidden because they have zero quantity. This is `null` when the invoice has no
785
+ # line items.
786
+ service_period_start:,
765
787
  shipping_address:,
766
788
  status:,
767
789
  subscription:,
@@ -821,6 +843,8 @@ module Orb
821
843
  payment_received_at: T.nilable(Time),
822
844
  payment_started_at: T.nilable(Time),
823
845
  scheduled_issue_at: T.nilable(Time),
846
+ service_period_end: T.nilable(Time),
847
+ service_period_start: T.nilable(Time),
824
848
  shipping_address: T.nilable(Orb::Address),
825
849
  status:
826
850
  Orb::Webhooks::InvoiceDunningScheduleCreatedStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -447,6 +447,18 @@ module Orb
447
447
  sig { returns(T.nilable(Time)) }
448
448
  attr_accessor :scheduled_issue_at
449
449
 
450
+ # The latest `end_date` of the invoice's line items, including any line items
451
+ # hidden because they have zero quantity. This is `null` when the invoice has no
452
+ # line items.
453
+ sig { returns(T.nilable(Time)) }
454
+ attr_accessor :service_period_end
455
+
456
+ # The earliest `start_date` of the invoice's line items, including any line items
457
+ # hidden because they have zero quantity. This is `null` when the invoice has no
458
+ # line items.
459
+ sig { returns(T.nilable(Time)) }
460
+ attr_accessor :service_period_start
461
+
450
462
  sig { returns(T.nilable(Orb::Address)) }
451
463
  attr_reader :shipping_address
452
464
 
@@ -532,6 +544,8 @@ module Orb
532
544
  payment_received_at: T.nilable(Time),
533
545
  payment_started_at: T.nilable(Time),
534
546
  scheduled_issue_at: T.nilable(Time),
547
+ service_period_end: T.nilable(Time),
548
+ service_period_start: T.nilable(Time),
535
549
  shipping_address: T.nilable(Orb::Address::OrHash),
536
550
  status:
537
551
  Orb::Webhooks::InvoiceDunningScheduleEndedStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -762,6 +776,14 @@ module Orb
762
776
  # If the invoice is in draft, this timestamp will reflect when the invoice is
763
777
  # scheduled to be issued.
764
778
  scheduled_issue_at:,
779
+ # The latest `end_date` of the invoice's line items, including any line items
780
+ # hidden because they have zero quantity. This is `null` when the invoice has no
781
+ # line items.
782
+ service_period_end:,
783
+ # The earliest `start_date` of the invoice's line items, including any line items
784
+ # hidden because they have zero quantity. This is `null` when the invoice has no
785
+ # line items.
786
+ service_period_start:,
765
787
  shipping_address:,
766
788
  status:,
767
789
  subscription:,
@@ -821,6 +843,8 @@ module Orb
821
843
  payment_received_at: T.nilable(Time),
822
844
  payment_started_at: T.nilable(Time),
823
845
  scheduled_issue_at: T.nilable(Time),
846
+ service_period_end: T.nilable(Time),
847
+ service_period_start: T.nilable(Time),
824
848
  shipping_address: T.nilable(Orb::Address),
825
849
  status:
826
850
  Orb::Webhooks::InvoiceDunningScheduleEndedStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -447,6 +447,18 @@ module Orb
447
447
  sig { returns(T.nilable(Time)) }
448
448
  attr_accessor :scheduled_issue_at
449
449
 
450
+ # The latest `end_date` of the invoice's line items, including any line items
451
+ # hidden because they have zero quantity. This is `null` when the invoice has no
452
+ # line items.
453
+ sig { returns(T.nilable(Time)) }
454
+ attr_accessor :service_period_end
455
+
456
+ # The earliest `start_date` of the invoice's line items, including any line items
457
+ # hidden because they have zero quantity. This is `null` when the invoice has no
458
+ # line items.
459
+ sig { returns(T.nilable(Time)) }
460
+ attr_accessor :service_period_start
461
+
450
462
  sig { returns(T.nilable(Orb::Address)) }
451
463
  attr_reader :shipping_address
452
464
 
@@ -532,6 +544,8 @@ module Orb
532
544
  payment_received_at: T.nilable(Time),
533
545
  payment_started_at: T.nilable(Time),
534
546
  scheduled_issue_at: T.nilable(Time),
547
+ service_period_end: T.nilable(Time),
548
+ service_period_start: T.nilable(Time),
535
549
  shipping_address: T.nilable(Orb::Address::OrHash),
536
550
  status:
537
551
  Orb::Webhooks::InvoiceDunningScheduleResetStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -762,6 +776,14 @@ module Orb
762
776
  # If the invoice is in draft, this timestamp will reflect when the invoice is
763
777
  # scheduled to be issued.
764
778
  scheduled_issue_at:,
779
+ # The latest `end_date` of the invoice's line items, including any line items
780
+ # hidden because they have zero quantity. This is `null` when the invoice has no
781
+ # line items.
782
+ service_period_end:,
783
+ # The earliest `start_date` of the invoice's line items, including any line items
784
+ # hidden because they have zero quantity. This is `null` when the invoice has no
785
+ # line items.
786
+ service_period_start:,
765
787
  shipping_address:,
766
788
  status:,
767
789
  subscription:,
@@ -821,6 +843,8 @@ module Orb
821
843
  payment_received_at: T.nilable(Time),
822
844
  payment_started_at: T.nilable(Time),
823
845
  scheduled_issue_at: T.nilable(Time),
846
+ service_period_end: T.nilable(Time),
847
+ service_period_start: T.nilable(Time),
824
848
  shipping_address: T.nilable(Orb::Address),
825
849
  status:
826
850
  Orb::Webhooks::InvoiceDunningScheduleResetStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -447,6 +447,18 @@ module Orb
447
447
  sig { returns(T.nilable(Time)) }
448
448
  attr_accessor :scheduled_issue_at
449
449
 
450
+ # The latest `end_date` of the invoice's line items, including any line items
451
+ # hidden because they have zero quantity. This is `null` when the invoice has no
452
+ # line items.
453
+ sig { returns(T.nilable(Time)) }
454
+ attr_accessor :service_period_end
455
+
456
+ # The earliest `start_date` of the invoice's line items, including any line items
457
+ # hidden because they have zero quantity. This is `null` when the invoice has no
458
+ # line items.
459
+ sig { returns(T.nilable(Time)) }
460
+ attr_accessor :service_period_start
461
+
450
462
  sig { returns(T.nilable(Orb::Address)) }
451
463
  attr_reader :shipping_address
452
464
 
@@ -532,6 +544,8 @@ module Orb
532
544
  payment_received_at: T.nilable(Time),
533
545
  payment_started_at: T.nilable(Time),
534
546
  scheduled_issue_at: T.nilable(Time),
547
+ service_period_end: T.nilable(Time),
548
+ service_period_start: T.nilable(Time),
535
549
  shipping_address: T.nilable(Orb::Address::OrHash),
536
550
  status:
537
551
  Orb::Webhooks::InvoiceDunningScheduleStepExecutedStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -762,6 +776,14 @@ module Orb
762
776
  # If the invoice is in draft, this timestamp will reflect when the invoice is
763
777
  # scheduled to be issued.
764
778
  scheduled_issue_at:,
779
+ # The latest `end_date` of the invoice's line items, including any line items
780
+ # hidden because they have zero quantity. This is `null` when the invoice has no
781
+ # line items.
782
+ service_period_end:,
783
+ # The earliest `start_date` of the invoice's line items, including any line items
784
+ # hidden because they have zero quantity. This is `null` when the invoice has no
785
+ # line items.
786
+ service_period_start:,
765
787
  shipping_address:,
766
788
  status:,
767
789
  subscription:,
@@ -821,6 +843,8 @@ module Orb
821
843
  payment_received_at: T.nilable(Time),
822
844
  payment_started_at: T.nilable(Time),
823
845
  scheduled_issue_at: T.nilable(Time),
846
+ service_period_end: T.nilable(Time),
847
+ service_period_start: T.nilable(Time),
824
848
  shipping_address: T.nilable(Orb::Address),
825
849
  status:
826
850
  Orb::Webhooks::InvoiceDunningScheduleStepExecutedStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -443,6 +443,18 @@ module Orb
443
443
  sig { returns(T.nilable(Time)) }
444
444
  attr_accessor :scheduled_issue_at
445
445
 
446
+ # The latest `end_date` of the invoice's line items, including any line items
447
+ # hidden because they have zero quantity. This is `null` when the invoice has no
448
+ # line items.
449
+ sig { returns(T.nilable(Time)) }
450
+ attr_accessor :service_period_end
451
+
452
+ # The earliest `start_date` of the invoice's line items, including any line items
453
+ # hidden because they have zero quantity. This is `null` when the invoice has no
454
+ # line items.
455
+ sig { returns(T.nilable(Time)) }
456
+ attr_accessor :service_period_start
457
+
446
458
  sig { returns(T.nilable(Orb::Address)) }
447
459
  attr_reader :shipping_address
448
460
 
@@ -528,6 +540,8 @@ module Orb
528
540
  payment_received_at: T.nilable(Time),
529
541
  payment_started_at: T.nilable(Time),
530
542
  scheduled_issue_at: T.nilable(Time),
543
+ service_period_end: T.nilable(Time),
544
+ service_period_start: T.nilable(Time),
531
545
  shipping_address: T.nilable(Orb::Address::OrHash),
532
546
  status:
533
547
  Orb::Webhooks::InvoiceEditedStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -758,6 +772,14 @@ module Orb
758
772
  # If the invoice is in draft, this timestamp will reflect when the invoice is
759
773
  # scheduled to be issued.
760
774
  scheduled_issue_at:,
775
+ # The latest `end_date` of the invoice's line items, including any line items
776
+ # hidden because they have zero quantity. This is `null` when the invoice has no
777
+ # line items.
778
+ service_period_end:,
779
+ # The earliest `start_date` of the invoice's line items, including any line items
780
+ # hidden because they have zero quantity. This is `null` when the invoice has no
781
+ # line items.
782
+ service_period_start:,
761
783
  shipping_address:,
762
784
  status:,
763
785
  subscription:,
@@ -817,6 +839,8 @@ module Orb
817
839
  payment_received_at: T.nilable(Time),
818
840
  payment_started_at: T.nilable(Time),
819
841
  scheduled_issue_at: T.nilable(Time),
842
+ service_period_end: T.nilable(Time),
843
+ service_period_start: T.nilable(Time),
820
844
  shipping_address: T.nilable(Orb::Address),
821
845
  status:
822
846
  Orb::Webhooks::InvoiceEditedStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -447,6 +447,18 @@ module Orb
447
447
  sig { returns(T.nilable(Time)) }
448
448
  attr_accessor :scheduled_issue_at
449
449
 
450
+ # The latest `end_date` of the invoice's line items, including any line items
451
+ # hidden because they have zero quantity. This is `null` when the invoice has no
452
+ # line items.
453
+ sig { returns(T.nilable(Time)) }
454
+ attr_accessor :service_period_end
455
+
456
+ # The earliest `start_date` of the invoice's line items, including any line items
457
+ # hidden because they have zero quantity. This is `null` when the invoice has no
458
+ # line items.
459
+ sig { returns(T.nilable(Time)) }
460
+ attr_accessor :service_period_start
461
+
450
462
  sig { returns(T.nilable(Orb::Address)) }
451
463
  attr_reader :shipping_address
452
464
 
@@ -532,6 +544,8 @@ module Orb
532
544
  payment_received_at: T.nilable(Time),
533
545
  payment_started_at: T.nilable(Time),
534
546
  scheduled_issue_at: T.nilable(Time),
547
+ service_period_end: T.nilable(Time),
548
+ service_period_start: T.nilable(Time),
535
549
  shipping_address: T.nilable(Orb::Address::OrHash),
536
550
  status:
537
551
  Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -762,6 +776,14 @@ module Orb
762
776
  # If the invoice is in draft, this timestamp will reflect when the invoice is
763
777
  # scheduled to be issued.
764
778
  scheduled_issue_at:,
779
+ # The latest `end_date` of the invoice's line items, including any line items
780
+ # hidden because they have zero quantity. This is `null` when the invoice has no
781
+ # line items.
782
+ service_period_end:,
783
+ # The earliest `start_date` of the invoice's line items, including any line items
784
+ # hidden because they have zero quantity. This is `null` when the invoice has no
785
+ # line items.
786
+ service_period_start:,
765
787
  shipping_address:,
766
788
  status:,
767
789
  subscription:,
@@ -821,6 +843,8 @@ module Orb
821
843
  payment_received_at: T.nilable(Time),
822
844
  payment_started_at: T.nilable(Time),
823
845
  scheduled_issue_at: T.nilable(Time),
846
+ service_period_end: T.nilable(Time),
847
+ service_period_start: T.nilable(Time),
824
848
  shipping_address: T.nilable(Orb::Address),
825
849
  status:
826
850
  Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -443,6 +443,18 @@ module Orb
443
443
  sig { returns(T.nilable(Time)) }
444
444
  attr_accessor :scheduled_issue_at
445
445
 
446
+ # The latest `end_date` of the invoice's line items, including any line items
447
+ # hidden because they have zero quantity. This is `null` when the invoice has no
448
+ # line items.
449
+ sig { returns(T.nilable(Time)) }
450
+ attr_accessor :service_period_end
451
+
452
+ # The earliest `start_date` of the invoice's line items, including any line items
453
+ # hidden because they have zero quantity. This is `null` when the invoice has no
454
+ # line items.
455
+ sig { returns(T.nilable(Time)) }
456
+ attr_accessor :service_period_start
457
+
446
458
  sig { returns(T.nilable(Orb::Address)) }
447
459
  attr_reader :shipping_address
448
460
 
@@ -528,6 +540,8 @@ module Orb
528
540
  payment_received_at: T.nilable(Time),
529
541
  payment_started_at: T.nilable(Time),
530
542
  scheduled_issue_at: T.nilable(Time),
543
+ service_period_end: T.nilable(Time),
544
+ service_period_start: T.nilable(Time),
531
545
  shipping_address: T.nilable(Orb::Address::OrHash),
532
546
  status:
533
547
  Orb::Webhooks::InvoiceIssuedStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -758,6 +772,14 @@ module Orb
758
772
  # If the invoice is in draft, this timestamp will reflect when the invoice is
759
773
  # scheduled to be issued.
760
774
  scheduled_issue_at:,
775
+ # The latest `end_date` of the invoice's line items, including any line items
776
+ # hidden because they have zero quantity. This is `null` when the invoice has no
777
+ # line items.
778
+ service_period_end:,
779
+ # The earliest `start_date` of the invoice's line items, including any line items
780
+ # hidden because they have zero quantity. This is `null` when the invoice has no
781
+ # line items.
782
+ service_period_start:,
761
783
  shipping_address:,
762
784
  status:,
763
785
  subscription:,
@@ -817,6 +839,8 @@ module Orb
817
839
  payment_received_at: T.nilable(Time),
818
840
  payment_started_at: T.nilable(Time),
819
841
  scheduled_issue_at: T.nilable(Time),
842
+ service_period_end: T.nilable(Time),
843
+ service_period_start: T.nilable(Time),
820
844
  shipping_address: T.nilable(Orb::Address),
821
845
  status:
822
846
  Orb::Webhooks::InvoiceIssuedStandardWebhookEvent::Invoice::Status::TaggedSymbol,
@@ -448,6 +448,18 @@ module Orb
448
448
  sig { returns(T.nilable(Time)) }
449
449
  attr_accessor :scheduled_issue_at
450
450
 
451
+ # The latest `end_date` of the invoice's line items, including any line items
452
+ # hidden because they have zero quantity. This is `null` when the invoice has no
453
+ # line items.
454
+ sig { returns(T.nilable(Time)) }
455
+ attr_accessor :service_period_end
456
+
457
+ # The earliest `start_date` of the invoice's line items, including any line items
458
+ # hidden because they have zero quantity. This is `null` when the invoice has no
459
+ # line items.
460
+ sig { returns(T.nilable(Time)) }
461
+ attr_accessor :service_period_start
462
+
451
463
  sig { returns(T.nilable(Orb::Address)) }
452
464
  attr_reader :shipping_address
453
465
 
@@ -533,6 +545,8 @@ module Orb
533
545
  payment_received_at: T.nilable(Time),
534
546
  payment_started_at: T.nilable(Time),
535
547
  scheduled_issue_at: T.nilable(Time),
548
+ service_period_end: T.nilable(Time),
549
+ service_period_start: T.nilable(Time),
536
550
  shipping_address: T.nilable(Orb::Address::OrHash),
537
551
  status:
538
552
  Orb::Webhooks::InvoiceIssuedSummaryStandardWebhookEvent::Invoice::Status::OrSymbol,
@@ -763,6 +777,14 @@ module Orb
763
777
  # If the invoice is in draft, this timestamp will reflect when the invoice is
764
778
  # scheduled to be issued.
765
779
  scheduled_issue_at:,
780
+ # The latest `end_date` of the invoice's line items, including any line items
781
+ # hidden because they have zero quantity. This is `null` when the invoice has no
782
+ # line items.
783
+ service_period_end:,
784
+ # The earliest `start_date` of the invoice's line items, including any line items
785
+ # hidden because they have zero quantity. This is `null` when the invoice has no
786
+ # line items.
787
+ service_period_start:,
766
788
  shipping_address:,
767
789
  status:,
768
790
  subscription:,
@@ -822,6 +844,8 @@ module Orb
822
844
  payment_received_at: T.nilable(Time),
823
845
  payment_started_at: T.nilable(Time),
824
846
  scheduled_issue_at: T.nilable(Time),
847
+ service_period_end: T.nilable(Time),
848
+ service_period_start: T.nilable(Time),
825
849
  shipping_address: T.nilable(Orb::Address),
826
850
  status:
827
851
  Orb::Webhooks::InvoiceIssuedSummaryStandardWebhookEvent::Invoice::Status::TaggedSymbol,