@@ -75,27 +75,6 @@ public required string Currency
7575 set { this . BodyProperties [ "line_items" ] = Json ::JsonSerializer . SerializeToElement ( value ) ; }
7676 }
7777
78- /// <summary>
79- /// Determines the difference between the invoice issue date for subscription invoices
80- /// as the date that they are due. A value of '0' here represents that the invoice
81- /// is due on issue, whereas a value of 30 represents that the customer has 30 days
82- /// to pay the invoice.
83- /// </summary>
84- public required long NetTerms
85- {
86- get
87- {
88- if ( ! this . BodyProperties . TryGetValue ( "net_terms" , out Json ::JsonElement element ) )
89- throw new System ::ArgumentOutOfRangeException (
90- "net_terms" ,
91- "Missing required argument"
92- ) ;
93-
94- return Json ::JsonSerializer . Deserialize < long > ( element ) ;
95- }
96- set { this . BodyProperties [ "net_terms" ] = Json ::JsonSerializer . SerializeToElement ( value ) ; }
97- }
98-
9978 /// <summary>
10079 /// The id of the `Customer` to create this invoice for. One of `customer_id` and
10180 /// `external_customer_id` are required.
@@ -185,6 +164,24 @@ public string? Memo
185164 set { this . BodyProperties [ "metadata" ] = Json ::JsonSerializer . SerializeToElement ( value ) ; }
186165 }
187166
167+ /// <summary>
168+ /// Determines the difference between the invoice issue date for subscription invoices
169+ /// as the date that they are due. A value of '0' here represents that the invoice
170+ /// is due on issue, whereas a value of 30 represents that the customer has 30 days
171+ /// to pay the invoice.
172+ /// </summary>
173+ public long ? NetTerms
174+ {
175+ get
176+ {
177+ if ( ! this . BodyProperties . TryGetValue ( "net_terms" , out Json ::JsonElement element ) )
178+ return null ;
179+
180+ return Json ::JsonSerializer . Deserialize < long ? > ( element ) ;
181+ }
182+ set { this . BodyProperties [ "net_terms" ] = Json ::JsonSerializer . SerializeToElement ( value ) ; }
183+ }
184+
188185 /// <summary>
189186 /// When true, this invoice will be submitted for issuance upon creation. When false,
190187 /// the resulting invoice will require manual review to issue. Defaulted to false.
0 commit comments