@@ -20,6 +20,20 @@ module Orb
2020 sig { returns ( T . nilable ( T ::Boolean ) ) }
2121 attr_accessor :mark_as_paid
2222
23+ # An optional external ID to associate with the payment. Only applicable when
24+ # mark_as_paid is true.
25+ sig { returns ( T . nilable ( String ) ) }
26+ attr_accessor :payment_external_id
27+
28+ # Optional notes about the payment. Only applicable when mark_as_paid is true.
29+ sig { returns ( T . nilable ( String ) ) }
30+ attr_accessor :payment_notes
31+
32+ # A date string to specify the date the payment was received. Only applicable when
33+ # mark_as_paid is true. If not provided, defaults to the current date.
34+ sig { returns ( T . nilable ( Date ) ) }
35+ attr_accessor :payment_received_date
36+
2337 # Amount already collected to apply to the customer's balance. If mark_as_paid is
2438 # also provided, credit the difference to the customer's balance.
2539 sig { returns ( T . nilable ( String ) ) }
@@ -29,6 +43,9 @@ module Orb
2943 params (
3044 description : T . nilable ( String ) ,
3145 mark_as_paid : T . nilable ( T ::Boolean ) ,
46+ payment_external_id : T . nilable ( String ) ,
47+ payment_notes : T . nilable ( String ) ,
48+ payment_received_date : T . nilable ( Date ) ,
3249 previously_collected_amount : T . nilable ( String ) ,
3350 request_options : Orb ::RequestOptions ::OrHash
3451 ) . returns ( T . attached_class )
@@ -39,6 +56,14 @@ module Orb
3956 # Mark all pending invoices that are payable as paid. If amount is also provided,
4057 # mark as paid and credit the difference to the customer's balance.
4158 mark_as_paid : nil ,
59+ # An optional external ID to associate with the payment. Only applicable when
60+ # mark_as_paid is true.
61+ payment_external_id : nil ,
62+ # Optional notes about the payment. Only applicable when mark_as_paid is true.
63+ payment_notes : nil ,
64+ # A date string to specify the date the payment was received. Only applicable when
65+ # mark_as_paid is true. If not provided, defaults to the current date.
66+ payment_received_date : nil ,
4267 # Amount already collected to apply to the customer's balance. If mark_as_paid is
4368 # also provided, credit the difference to the customer's balance.
4469 previously_collected_amount : nil ,
@@ -51,6 +76,9 @@ module Orb
5176 {
5277 description : T . nilable ( String ) ,
5378 mark_as_paid : T . nilable ( T ::Boolean ) ,
79+ payment_external_id : T . nilable ( String ) ,
80+ payment_notes : T . nilable ( String ) ,
81+ payment_received_date : T . nilable ( Date ) ,
5482 previously_collected_amount : T . nilable ( String ) ,
5583 request_options : Orb ::RequestOptions
5684 }
0 commit comments