@@ -89,6 +89,7 @@ def apply(
8989 subscription_change_id : str ,
9090 * ,
9191 description : Optional [str ] | Omit = omit ,
92+ mark_as_paid : Optional [bool ] | Omit = omit ,
9293 previously_collected_amount : Optional [str ] | Omit = omit ,
9394 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9495 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -107,7 +108,11 @@ def apply(
107108 Args:
108109 description: Description to apply to the balance transaction representing this credit.
109110
110- previously_collected_amount: Amount already collected to apply to the customer's balance.
111+ mark_as_paid: Mark all pending invoices that are payable as paid. If amount is also provided,
112+ mark as paid and credit the difference to the customer's balance.
113+
114+ previously_collected_amount: Amount already collected to apply to the customer's balance. If mark_as_paid is
115+ also provided, credit the difference to the customer's balance.
111116
112117 extra_headers: Send extra headers
113118
@@ -128,6 +133,7 @@ def apply(
128133 body = maybe_transform (
129134 {
130135 "description" : description ,
136+ "mark_as_paid" : mark_as_paid ,
131137 "previously_collected_amount" : previously_collected_amount ,
132138 },
133139 subscription_change_apply_params .SubscriptionChangeApplyParams ,
@@ -256,6 +262,7 @@ async def apply(
256262 subscription_change_id : str ,
257263 * ,
258264 description : Optional [str ] | Omit = omit ,
265+ mark_as_paid : Optional [bool ] | Omit = omit ,
259266 previously_collected_amount : Optional [str ] | Omit = omit ,
260267 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
261268 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -274,7 +281,11 @@ async def apply(
274281 Args:
275282 description: Description to apply to the balance transaction representing this credit.
276283
277- previously_collected_amount: Amount already collected to apply to the customer's balance.
284+ mark_as_paid: Mark all pending invoices that are payable as paid. If amount is also provided,
285+ mark as paid and credit the difference to the customer's balance.
286+
287+ previously_collected_amount: Amount already collected to apply to the customer's balance. If mark_as_paid is
288+ also provided, credit the difference to the customer's balance.
278289
279290 extra_headers: Send extra headers
280291
@@ -295,6 +306,7 @@ async def apply(
295306 body = await async_maybe_transform (
296307 {
297308 "description" : description ,
309+ "mark_as_paid" : mark_as_paid ,
298310 "previously_collected_amount" : previously_collected_amount ,
299311 },
300312 subscription_change_apply_params .SubscriptionChangeApplyParams ,
0 commit comments