@@ -16,10 +16,6 @@ module Orb
1616 end
1717 attr_accessor :change_option
1818
19- # Coupon ID to be redeemed for this subscription.
20- sig { returns ( String ) }
21- attr_accessor :coupon_id
22-
2319 # If false, this request will fail if it would void an issued invoice or create a
2420 # credit note. Consider using this as a safety mechanism if you do not expect
2521 # existing invoices to be changed.
@@ -31,27 +27,38 @@ module Orb
3127 sig { returns ( T . nilable ( Time ) ) }
3228 attr_accessor :change_date
3329
30+ # Coupon ID to be redeemed for this subscription.
31+ sig { returns ( T . nilable ( String ) ) }
32+ attr_accessor :coupon_id
33+
34+ # Redemption code of the coupon to be redeemed for this subscription.
35+ sig { returns ( T . nilable ( String ) ) }
36+ attr_accessor :coupon_redemption_code
37+
3438 sig do
3539 params (
3640 change_option :
3741 Orb ::SubscriptionRedeemCouponParams ::ChangeOption ::OrSymbol ,
38- coupon_id : String ,
3942 allow_invoice_credit_or_void : T . nilable ( T ::Boolean ) ,
4043 change_date : T . nilable ( Time ) ,
44+ coupon_id : T . nilable ( String ) ,
45+ coupon_redemption_code : T . nilable ( String ) ,
4146 request_options : Orb ::RequestOptions ::OrHash
4247 ) . returns ( T . attached_class )
4348 end
4449 def self . new (
4550 change_option :,
46- # Coupon ID to be redeemed for this subscription.
47- coupon_id :,
4851 # If false, this request will fail if it would void an issued invoice or create a
4952 # credit note. Consider using this as a safety mechanism if you do not expect
5053 # existing invoices to be changed.
5154 allow_invoice_credit_or_void : nil ,
5255 # The date that the coupon discount should take effect. This parameter can only be
5356 # passed if the `change_option` is `requested_date`.
5457 change_date : nil ,
58+ # Coupon ID to be redeemed for this subscription.
59+ coupon_id : nil ,
60+ # Redemption code of the coupon to be redeemed for this subscription.
61+ coupon_redemption_code : nil ,
5562 request_options : { }
5663 )
5764 end
@@ -61,9 +68,10 @@ module Orb
6168 {
6269 change_option :
6370 Orb ::SubscriptionRedeemCouponParams ::ChangeOption ::OrSymbol ,
64- coupon_id : String ,
6571 allow_invoice_credit_or_void : T . nilable ( T ::Boolean ) ,
6672 change_date : T . nilable ( Time ) ,
73+ coupon_id : T . nilable ( String ) ,
74+ coupon_redemption_code : T . nilable ( String ) ,
6775 request_options : Orb ::RequestOptions
6876 }
6977 )
0 commit comments