Class: Stripe::QuoteLine::Action

Inherits:
StripeObject show all
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

Attributes inherited from StripeObject

#last_response

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_discountObject (readonly)

Details for the ‘add_discount` type.



145
146
147
# File 'lib/stripe/resources/quote_line.rb', line 145

def add_discount
  @add_discount
end

#add_itemObject (readonly)

Details for the ‘add_item` type.



147
148
149
# File 'lib/stripe/resources/quote_line.rb', line 147

def add_item
  @add_item
end

#add_metadataObject (readonly)

Details for the ‘add_metadata` type: specify a hash of key-value pairs.



149
150
151
# File 'lib/stripe/resources/quote_line.rb', line 149

def 
  @add_metadata
end

#remove_discountObject (readonly)

Details for the ‘remove_discount` type.



151
152
153
# File 'lib/stripe/resources/quote_line.rb', line 151

def remove_discount
  @remove_discount
end

#remove_itemObject (readonly)

Details for the ‘remove_item` type.



153
154
155
# File 'lib/stripe/resources/quote_line.rb', line 153

def remove_item
  @remove_item
end

#remove_metadataObject (readonly)

Details for the ‘remove_metadata` type: specify an array of metadata keys.



155
156
157
# File 'lib/stripe/resources/quote_line.rb', line 155

def 
  @remove_metadata
end

#set_discountsObject (readonly)

Details for the ‘set_discounts` type.



157
158
159
# File 'lib/stripe/resources/quote_line.rb', line 157

def set_discounts
  @set_discounts
end

#set_itemsObject (readonly)

Details for the ‘set_items` type.



159
160
161
# File 'lib/stripe/resources/quote_line.rb', line 159

def set_items
  @set_items
end

#set_metadataObject (readonly)

Details for the ‘set_metadata` type: specify an array of key-value pairs.



161
162
163
# File 'lib/stripe/resources/quote_line.rb', line 161

def 
  @set_metadata
end

#typeObject (readonly)

The type of action the quote line performs.



163
164
165
# File 'lib/stripe/resources/quote_line.rb', line 163

def type
  @type
end