Class: Stripe::Checkout::Session::CreateParams::AfterExpiration::Recovery
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::Session::CreateParams::AfterExpiration::Recovery
- Defined in:
- lib/stripe/resources/checkout/session.rb
Instance Attribute Summary collapse
-
#allow_promotion_codes ⇒ Object
Enables user redeemable promotion codes on the recovered Checkout Sessions.
-
#enabled ⇒ Object
If ‘true`, a recovery URL will be generated to recover this Checkout Session if it expires before a successful transaction is completed.
Instance Method Summary collapse
-
#initialize(allow_promotion_codes: nil, enabled: nil) ⇒ Recovery
constructor
A new instance of Recovery.
Methods inherited from RequestParams
Constructor Details
#initialize(allow_promotion_codes: nil, enabled: nil) ⇒ Recovery
Returns a new instance of Recovery.
1109 1110 1111 1112 |
# File 'lib/stripe/resources/checkout/session.rb', line 1109 def initialize(allow_promotion_codes: nil, enabled: nil) @allow_promotion_codes = allow_promotion_codes @enabled = enabled end |
Instance Attribute Details
#allow_promotion_codes ⇒ Object
Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to ‘false`
1103 1104 1105 |
# File 'lib/stripe/resources/checkout/session.rb', line 1103 def allow_promotion_codes @allow_promotion_codes end |
#enabled ⇒ Object
If ‘true`, a recovery URL will be generated to recover this Checkout Session if it expires before a successful transaction is completed. It will be attached to the Checkout Session object upon expiration.
1107 1108 1109 |
# File 'lib/stripe/resources/checkout/session.rb', line 1107 def enabled @enabled end |