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
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
#add_discount ⇒ Object (readonly)
Details for the ‘add_discount` type.
269 270 271 |
# File 'lib/stripe/resources/quote_line.rb', line 269 def add_discount @add_discount end |
#add_item ⇒ Object (readonly)
Details for the ‘add_item` type.
271 272 273 |
# File 'lib/stripe/resources/quote_line.rb', line 271 def add_item @add_item end |
#add_metadata ⇒ Object (readonly)
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
273 274 275 |
# File 'lib/stripe/resources/quote_line.rb', line 273 def @add_metadata end |
#remove_discount ⇒ Object (readonly)
Details for the ‘remove_discount` type.
275 276 277 |
# File 'lib/stripe/resources/quote_line.rb', line 275 def remove_discount @remove_discount end |
#remove_item ⇒ Object (readonly)
Details for the ‘remove_item` type.
277 278 279 |
# File 'lib/stripe/resources/quote_line.rb', line 277 def remove_item @remove_item end |
#remove_metadata ⇒ Object (readonly)
Details for the ‘remove_metadata` type: specify an array of metadata keys.
279 280 281 |
# File 'lib/stripe/resources/quote_line.rb', line 279 def @remove_metadata end |
#set_discounts ⇒ Object (readonly)
Details for the ‘set_discounts` type.
281 282 283 |
# File 'lib/stripe/resources/quote_line.rb', line 281 def set_discounts @set_discounts end |
#set_items ⇒ Object (readonly)
Details for the ‘set_items` type.
283 284 285 |
# File 'lib/stripe/resources/quote_line.rb', line 283 def set_items @set_items end |
#set_metadata ⇒ Object (readonly)
Details for the ‘set_metadata` type: specify an array of key-value pairs.
285 286 287 |
# File 'lib/stripe/resources/quote_line.rb', line 285 def @set_metadata end |
#type ⇒ Object (readonly)
The type of action the quote line performs.
287 288 289 |
# File 'lib/stripe/resources/quote_line.rb', line 287 def type @type end |
Class Method Details
.field_remappings ⇒ Object
300 301 302 |
# File 'lib/stripe/resources/quote_line.rb', line 300 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
289 290 291 292 293 294 295 296 297 298 |
# File 'lib/stripe/resources/quote_line.rb', line 289 def self.inner_class_types @inner_class_types = { add_discount: AddDiscount, add_item: AddItem, remove_discount: RemoveDiscount, remove_item: RemoveItem, set_discounts: SetDiscount, set_items: SetItem, } end |