Class: Stripe::QuoteLine::Action
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::QuoteLine::Action
- Defined in:
- lib/stripe/resources/quote_line.rb
Defined Under Namespace
Classes: AddDiscount, AddItem, RemoveDiscount, RemoveItem, SetDiscount, SetItem
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#add_discount ⇒ Object
readonly
Details for the ‘add_discount` type.
-
#add_item ⇒ Object
readonly
Details for the ‘add_item` type.
-
#add_metadata ⇒ Object
readonly
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
-
#remove_discount ⇒ Object
readonly
Details for the ‘remove_discount` type.
-
#remove_item ⇒ Object
readonly
Details for the ‘remove_item` type.
-
#remove_metadata ⇒ Object
readonly
Details for the ‘remove_metadata` type: specify an array of metadata keys.
-
#set_discounts ⇒ Object
readonly
Details for the ‘set_discounts` type.
-
#set_items ⇒ Object
readonly
Details for the ‘set_items` type.
-
#set_metadata ⇒ Object
readonly
Details for the ‘set_metadata` type: specify an array of key-value pairs.
-
#type ⇒ Object
readonly
The type of action the quote line performs.
Attributes inherited from StripeObject
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
#add_discount ⇒ Object (readonly)
Details for the ‘add_discount` type.
177 178 179 |
# File 'lib/stripe/resources/quote_line.rb', line 177 def add_discount @add_discount end |
#add_item ⇒ Object (readonly)
Details for the ‘add_item` type.
180 181 182 |
# File 'lib/stripe/resources/quote_line.rb', line 180 def add_item @add_item end |
#add_metadata ⇒ Object (readonly)
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
183 184 185 |
# File 'lib/stripe/resources/quote_line.rb', line 183 def @add_metadata end |
#remove_discount ⇒ Object (readonly)
Details for the ‘remove_discount` type.
186 187 188 |
# File 'lib/stripe/resources/quote_line.rb', line 186 def remove_discount @remove_discount end |
#remove_item ⇒ Object (readonly)
Details for the ‘remove_item` type.
189 190 191 |
# File 'lib/stripe/resources/quote_line.rb', line 189 def remove_item @remove_item end |
#remove_metadata ⇒ Object (readonly)
Details for the ‘remove_metadata` type: specify an array of metadata keys.
192 193 194 |
# File 'lib/stripe/resources/quote_line.rb', line 192 def @remove_metadata end |
#set_discounts ⇒ Object (readonly)
Details for the ‘set_discounts` type.
195 196 197 |
# File 'lib/stripe/resources/quote_line.rb', line 195 def set_discounts @set_discounts end |
#set_items ⇒ Object (readonly)
Details for the ‘set_items` type.
198 199 200 |
# File 'lib/stripe/resources/quote_line.rb', line 198 def set_items @set_items end |
#set_metadata ⇒ Object (readonly)
Details for the ‘set_metadata` type: specify an array of key-value pairs.
201 202 203 |
# File 'lib/stripe/resources/quote_line.rb', line 201 def @set_metadata end |
#type ⇒ Object (readonly)
The type of action the quote line performs.
204 205 206 |
# File 'lib/stripe/resources/quote_line.rb', line 204 def type @type end |