@@ -14,6 +14,12 @@ module Orb
1414 sig { returns ( T . nilable ( Orb ::InvoiceUpdateParams ::DueDate ::Variants ) ) }
1515 attr_accessor :due_date
1616
17+ # The date of the invoice. Can only be modified for one-off draft invoices.
18+ sig do
19+ returns ( T . nilable ( Orb ::InvoiceUpdateParams ::InvoiceDate ::Variants ) )
20+ end
21+ attr_accessor :invoice_date
22+
1723 # User-specified key/value pairs for the resource. Individual keys can be removed
1824 # by setting the value to `null`, and the entire metadata mapping can be cleared
1925 # by setting `metadata` to `null`.
@@ -31,6 +37,8 @@ module Orb
3137 sig do
3238 params (
3339 due_date : T . nilable ( Orb ::InvoiceUpdateParams ::DueDate ::Variants ) ,
40+ invoice_date :
41+ T . nilable ( Orb ::InvoiceUpdateParams ::InvoiceDate ::Variants ) ,
3442 metadata : T . nilable ( T ::Hash [ Symbol , T . nilable ( String ) ] ) ,
3543 net_terms : T . nilable ( Integer ) ,
3644 request_options : Orb ::RequestOptions ::OrHash
@@ -40,6 +48,8 @@ module Orb
4048 # An optional custom due date for the invoice. If not set, the due date will be
4149 # calculated based on the `net_terms` value.
4250 due_date : nil ,
51+ # The date of the invoice. Can only be modified for one-off draft invoices.
52+ invoice_date : nil ,
4353 # User-specified key/value pairs for the resource. Individual keys can be removed
4454 # by setting the value to `null`, and the entire metadata mapping can be cleared
4555 # by setting `metadata` to `null`.
@@ -58,6 +68,8 @@ module Orb
5868 override . returns (
5969 {
6070 due_date : T . nilable ( Orb ::InvoiceUpdateParams ::DueDate ::Variants ) ,
71+ invoice_date :
72+ T . nilable ( Orb ::InvoiceUpdateParams ::InvoiceDate ::Variants ) ,
6173 metadata : T . nilable ( T ::Hash [ Symbol , T . nilable ( String ) ] ) ,
6274 net_terms : T . nilable ( Integer ) ,
6375 request_options : Orb ::RequestOptions
@@ -82,6 +94,21 @@ module Orb
8294 def self . variants
8395 end
8496 end
97+
98+ # The date of the invoice. Can only be modified for one-off draft invoices.
99+ module InvoiceDate
100+ extend Orb ::Internal ::Type ::Union
101+
102+ Variants = T . type_alias { T . any ( Date , Time ) }
103+
104+ sig do
105+ override . returns (
106+ T ::Array [ Orb ::InvoiceUpdateParams ::InvoiceDate ::Variants ]
107+ )
108+ end
109+ def self . variants
110+ end
111+ end
85112 end
86113 end
87114end
0 commit comments