Class: Stripe::Checkout::SessionCreateParams::AfterExpiration::Recovery

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(allow_promotion_codes: nil, enabled: nil) ⇒ Recovery

Returns a new instance of Recovery.



25
26
27
28
# File 'lib/stripe/params/checkout/session_create_params.rb', line 25

def initialize(allow_promotion_codes: nil, enabled: nil)
  @allow_promotion_codes = allow_promotion_codes
  @enabled = enabled
end

Instance Attribute Details

#allow_promotion_codesObject

Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to ‘false`



19
20
21
# File 'lib/stripe/params/checkout/session_create_params.rb', line 19

def allow_promotion_codes
  @allow_promotion_codes
end

#enabledObject

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.



23
24
25
# File 'lib/stripe/params/checkout/session_create_params.rb', line 23

def enabled
  @enabled
end