@@ -15,21 +15,32 @@ module Orb
1515 sig { returns ( T . nilable ( String ) ) }
1616 attr_accessor :description
1717
18- # Amount already collected to apply to the customer's balance.
18+ # Mark all pending invoices that are payable as paid. If amount is also provided,
19+ # mark as paid and credit the difference to the customer's balance.
20+ sig { returns ( T . nilable ( T ::Boolean ) ) }
21+ attr_accessor :mark_as_paid
22+
23+ # Amount already collected to apply to the customer's balance. If mark_as_paid is
24+ # also provided, credit the difference to the customer's balance.
1925 sig { returns ( T . nilable ( String ) ) }
2026 attr_accessor :previously_collected_amount
2127
2228 sig do
2329 params (
2430 description : T . nilable ( String ) ,
31+ mark_as_paid : T . nilable ( T ::Boolean ) ,
2532 previously_collected_amount : T . nilable ( String ) ,
2633 request_options : Orb ::RequestOptions ::OrHash
2734 ) . returns ( T . attached_class )
2835 end
2936 def self . new (
3037 # Description to apply to the balance transaction representing this credit.
3138 description : nil ,
32- # Amount already collected to apply to the customer's balance.
39+ # Mark all pending invoices that are payable as paid. If amount is also provided,
40+ # mark as paid and credit the difference to the customer's balance.
41+ mark_as_paid : nil ,
42+ # Amount already collected to apply to the customer's balance. If mark_as_paid is
43+ # also provided, credit the difference to the customer's balance.
3344 previously_collected_amount : nil ,
3445 request_options : { }
3546 )
@@ -39,6 +50,7 @@ module Orb
3950 override . returns (
4051 {
4152 description : T . nilable ( String ) ,
53+ mark_as_paid : T . nilable ( T ::Boolean ) ,
4254 previously_collected_amount : T . nilable ( String ) ,
4355 request_options : Orb ::RequestOptions
4456 }
0 commit comments