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

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, 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`



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

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.



50
51
52
# File 'lib/stripe/resources/checkout/session.rb', line 50

def enabled
  @enabled
end

#expires_atObject (readonly)

The timestamp at which the recovery URL will expire.



52
53
54
# File 'lib/stripe/resources/checkout/session.rb', line 52

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



54
55
56
# File 'lib/stripe/resources/checkout/session.rb', line 54

def url
  @url
end

Class Method Details

.field_remappingsObject



60
61
62
# File 'lib/stripe/resources/checkout/session.rb', line 60

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



56
57
58
# File 'lib/stripe/resources/checkout/session.rb', line 56

def self.inner_class_types
  @inner_class_types = {}
end