Class: Stripe::Checkout::Session::AfterExpiration::Recovery

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/checkout/session.rb

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Method Summary

Methods inherited from StripeObject

#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#allow_promotion_codesObject (readonly)

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



38
39
40
# File 'lib/stripe/resources/checkout/session.rb', line 38

def allow_promotion_codes
  @allow_promotion_codes
end

#enabledObject (readonly)

If ‘true`, a recovery url will be generated to recover this Checkout Session if it expires before a transaction is completed. It will be attached to the Checkout Session object upon expiration.



42
43
44
# File 'lib/stripe/resources/checkout/session.rb', line 42

def enabled
  @enabled
end

#expires_atObject (readonly)

The timestamp at which the recovery URL will expire.



44
45
46
# File 'lib/stripe/resources/checkout/session.rb', line 44

def expires_at
  @expires_at
end

#urlObject (readonly)

URL that creates a new Checkout Session when clicked that is a copy of this expired Checkout Session



46
47
48
# File 'lib/stripe/resources/checkout/session.rb', line 46

def url
  @url
end