Class: Stripe::Checkout::SessionService::CreateParams::AfterExpiration::Recovery
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionService::CreateParams::AfterExpiration::Recovery
- Defined in:
- lib/stripe/services/checkout/session_service.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.
110 111 112 113 |
# File 'lib/stripe/services/checkout/session_service.rb', line 110 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`
104 105 106 |
# File 'lib/stripe/services/checkout/session_service.rb', line 104 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.
108 109 110 |
# File 'lib/stripe/services/checkout/session_service.rb', line 108 def enabled @enabled end |