@@ -161,6 +161,29 @@ out JsonElement element
161161 }
162162 }
163163
164+ /// <summary>
165+ /// If true, ending an in-arrears price interval mid-cycle will defer billing
166+ /// the final line itemuntil the next scheduled invoice. If false, it will be
167+ /// billed on its end date. If not provided, behaviorwill follow account default.
168+ /// </summary>
169+ public bool ? CanDeferBilling
170+ {
171+ get
172+ {
173+ if ( ! this . _bodyProperties . TryGetValue ( "can_defer_billing" , out JsonElement element ) )
174+ return null ;
175+
176+ return JsonSerializer . Deserialize < bool ? > ( element , ModelBase . SerializerOptions ) ;
177+ }
178+ init
179+ {
180+ this . _bodyProperties [ "can_defer_billing" ] = JsonSerializer . SerializeToElement (
181+ value ,
182+ ModelBase . SerializerOptions
183+ ) ;
184+ }
185+ }
186+
164187 /// <summary>
165188 /// A list of price intervals to edit on the subscription.
166189 /// </summary>
@@ -8335,6 +8358,29 @@ public long? BillingCycleDay
83358358 }
83368359 }
83378360
8361+ /// <summary>
8362+ /// If true, ending an in-arrears price interval mid-cycle will defer billing
8363+ /// the final line itemuntil the next scheduled invoice. If false, it will be
8364+ /// billed on its end date. If not provided, behaviorwill follow account default.
8365+ /// </summary>
8366+ public bool ? CanDeferBilling
8367+ {
8368+ get
8369+ {
8370+ if ( ! this . _properties . TryGetValue ( "can_defer_billing" , out JsonElement element ) )
8371+ return null ;
8372+
8373+ return JsonSerializer . Deserialize < bool ? > ( element , ModelBase . SerializerOptions ) ;
8374+ }
8375+ init
8376+ {
8377+ this . _properties [ "can_defer_billing" ] = JsonSerializer . SerializeToElement (
8378+ value ,
8379+ ModelBase . SerializerOptions
8380+ ) ;
8381+ }
8382+ }
8383+
83388384 /// <summary>
83398385 /// The updated end date of this price interval. If not specified, the end date
83408386 /// will not be updated.
@@ -8463,6 +8509,7 @@ public override void Validate()
84638509 {
84648510 _ = this . PriceIntervalID ;
84658511 _ = this . BillingCycleDay ;
8512+ _ = this . CanDeferBilling ;
84668513 this . EndDate ? . Validate ( ) ;
84678514 _ = this . Filter ;
84688515 foreach ( var item in this . FixedFeeQuantityTransitions ?? [ ] )
0 commit comments