Class: Stripe::DelegatedCheckout::RequestedSession::Discounts::Applied
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::DelegatedCheckout::RequestedSession::Discounts::Applied
- Defined in:
- lib/stripe/resources/delegated_checkout/requested_session.rb
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#amount_off ⇒ Object
readonly
The amount off provided by this discount.
-
#code ⇒ Object
readonly
The discount code.
-
#currency ⇒ Object
readonly
The currency of the discount amount.
-
#key ⇒ Object
readonly
The unique key of the applied discount.
-
#name ⇒ Object
readonly
The display name of the discount.
-
#percent_off ⇒ Object
readonly
The percentage off provided by this discount.
-
#type ⇒ Object
readonly
The type of discount.
Attributes inherited from StripeObject
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_off ⇒ Object (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 |
#code ⇒ Object (readonly)
The discount code.
128 129 130 |
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 128 def code @code end |
#currency ⇒ Object (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 |
#key ⇒ Object (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 |
#name ⇒ Object (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_off ⇒ Object (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 |
#type ⇒ Object (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_remappings ⇒ Object
144 145 146 |
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 144 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
140 141 142 |
# File 'lib/stripe/resources/delegated_checkout/requested_session.rb', line 140 def self.inner_class_types @inner_class_types = {} end |