@@ -1368,9 +1368,10 @@ def redeem_coupon(
13681368 subscription_id : str ,
13691369 * ,
13701370 change_option : Literal ["requested_date" , "end_of_subscription_term" , "immediate" ],
1371- coupon_id : str ,
13721371 allow_invoice_credit_or_void : Optional [bool ] | NotGiven = NOT_GIVEN ,
13731372 change_date : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
1373+ coupon_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1374+ coupon_redemption_code : Optional [str ] | NotGiven = NOT_GIVEN ,
13741375 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
13751376 # The extra values given here take precedence over values defined on the client or passed to this method.
13761377 extra_headers : Headers | None = None ,
@@ -1383,15 +1384,17 @@ def redeem_coupon(
13831384 Redeem a coupon effective at a given time.
13841385
13851386 Args:
1386- coupon_id: Coupon ID to be redeemed for this subscription.
1387-
13881387 allow_invoice_credit_or_void: If false, this request will fail if it would void an issued invoice or create a
13891388 credit note. Consider using this as a safety mechanism if you do not expect
13901389 existing invoices to be changed.
13911390
13921391 change_date: The date that the coupon discount should take effect. This parameter can only be
13931392 passed if the `change_option` is `requested_date`.
13941393
1394+ coupon_id: Coupon ID to be redeemed for this subscription.
1395+
1396+ coupon_redemption_code: Redemption code of the coupon to be redeemed for this subscription.
1397+
13951398 extra_headers: Send extra headers
13961399
13971400 extra_query: Add additional query parameters to the request
@@ -1409,9 +1412,10 @@ def redeem_coupon(
14091412 body = maybe_transform (
14101413 {
14111414 "change_option" : change_option ,
1412- "coupon_id" : coupon_id ,
14131415 "allow_invoice_credit_or_void" : allow_invoice_credit_or_void ,
14141416 "change_date" : change_date ,
1417+ "coupon_id" : coupon_id ,
1418+ "coupon_redemption_code" : coupon_redemption_code ,
14151419 },
14161420 subscription_redeem_coupon_params .SubscriptionRedeemCouponParams ,
14171421 ),
@@ -3454,9 +3458,10 @@ async def redeem_coupon(
34543458 subscription_id : str ,
34553459 * ,
34563460 change_option : Literal ["requested_date" , "end_of_subscription_term" , "immediate" ],
3457- coupon_id : str ,
34583461 allow_invoice_credit_or_void : Optional [bool ] | NotGiven = NOT_GIVEN ,
34593462 change_date : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
3463+ coupon_id : Optional [str ] | NotGiven = NOT_GIVEN ,
3464+ coupon_redemption_code : Optional [str ] | NotGiven = NOT_GIVEN ,
34603465 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
34613466 # The extra values given here take precedence over values defined on the client or passed to this method.
34623467 extra_headers : Headers | None = None ,
@@ -3469,15 +3474,17 @@ async def redeem_coupon(
34693474 Redeem a coupon effective at a given time.
34703475
34713476 Args:
3472- coupon_id: Coupon ID to be redeemed for this subscription.
3473-
34743477 allow_invoice_credit_or_void: If false, this request will fail if it would void an issued invoice or create a
34753478 credit note. Consider using this as a safety mechanism if you do not expect
34763479 existing invoices to be changed.
34773480
34783481 change_date: The date that the coupon discount should take effect. This parameter can only be
34793482 passed if the `change_option` is `requested_date`.
34803483
3484+ coupon_id: Coupon ID to be redeemed for this subscription.
3485+
3486+ coupon_redemption_code: Redemption code of the coupon to be redeemed for this subscription.
3487+
34813488 extra_headers: Send extra headers
34823489
34833490 extra_query: Add additional query parameters to the request
@@ -3495,9 +3502,10 @@ async def redeem_coupon(
34953502 body = await async_maybe_transform (
34963503 {
34973504 "change_option" : change_option ,
3498- "coupon_id" : coupon_id ,
34993505 "allow_invoice_credit_or_void" : allow_invoice_credit_or_void ,
35003506 "change_date" : change_date ,
3507+ "coupon_id" : coupon_id ,
3508+ "coupon_redemption_code" : coupon_redemption_code ,
35013509 },
35023510 subscription_redeem_coupon_params .SubscriptionRedeemCouponParams ,
35033511 ),
0 commit comments