Class: Mercadopago::Order::Request::ItemRequest

Inherits:
Data
  • Object
show all
Includes:
HashConversion
Defined in:
lib/mercadopago/resources/order/request.rb

Overview

F. items ==

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashConversion

#to_hash

Constructor Details

#initialize(title: nil, type: nil, warranty: nil, event_date: nil, unit_price: nil, external_code: nil, category_id: nil, description: nil, picture_url: nil, quantity: nil) ⇒ ItemRequest

Returns a new instance of ItemRequest.



306
307
308
309
310
311
312
# File 'lib/mercadopago/resources/order/request.rb', line 306

def initialize(
  title: nil, type: nil, warranty: nil, event_date: nil, unit_price: nil,
  external_code: nil, category_id: nil, description: nil, picture_url: nil,
  quantity: nil
)
  super
end

Instance Attribute Details

#category_idObject (readonly)

Returns the value of attribute category_id

Returns:

  • (Object)

    the current value of category_id



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def category_id
  @category_id
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def description
  @description
end

#event_dateObject (readonly)

Returns the value of attribute event_date

Returns:

  • (Object)

    the current value of event_date



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def event_date
  @event_date
end

#external_codeObject (readonly)

Returns the value of attribute external_code

Returns:

  • (Object)

    the current value of external_code



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def external_code
  @external_code
end

#picture_urlObject (readonly)

Returns the value of attribute picture_url

Returns:

  • (Object)

    the current value of picture_url



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def picture_url
  @picture_url
end

#quantityObject (readonly)

Returns the value of attribute quantity

Returns:

  • (Object)

    the current value of quantity



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def quantity
  @quantity
end

#titleObject (readonly)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def type
  @type
end

#unit_priceObject (readonly)

Returns the value of attribute unit_price

Returns:

  • (Object)

    the current value of unit_price



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def unit_price
  @unit_price
end

#warrantyObject (readonly)

Returns the value of attribute warranty

Returns:

  • (Object)

    the current value of warranty



292
293
294
# File 'lib/mercadopago/resources/order/request.rb', line 292

def warranty
  @warranty
end