Class: Stripe::DelegatedCheckout::RequestedSession::Discounts::Applied

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/delegated_checkout/requested_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?, field_encodings, #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

#amount_offObject (readonly)

The amount off provided by this discount.



126
127
128
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 126

def amount_off
  @amount_off
end

#codeObject (readonly)

The discount code.



128
129
130
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 128

def code
  @code
end

#currencyObject (readonly)

The currency of the discount amount.



130
131
132
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 130

def currency
  @currency
end

#keyObject (readonly)

The unique key of the applied discount.



132
133
134
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 132

def key
  @key
end

#nameObject (readonly)

The display name of the discount.



134
135
136
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 134

def name
  @name
end

#percent_offObject (readonly)

The percentage off provided by this discount.



136
137
138
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 136

def percent_off
  @percent_off
end

#typeObject (readonly)

The type of discount.



138
139
140
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 138

def type
  @type
end

Class Method Details

.field_remappingsObject



144
145
146
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 144

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



140
141
142
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 140

def self.inner_class_types
  @inner_class_types = {}
end