Class: Mercadopago::Order::Request::CreateRequest

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

Overview

A. Order root ==

Root of the Orders API create request body.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashConversion

#to_hash

Constructor Details

#initialize(type: nil, external_reference: nil, total_amount: nil, currency: nil, capture_mode: nil, processing_mode: nil, description: nil, marketplace: nil, marketplace_fee: nil, expiration_time: nil, checkout_available_at: nil, transactions: nil, payer: nil, items: nil, config: nil, shipment: nil, additional_info: nil, integration_data: nil) ⇒ CreateRequest

Returns a new instance of CreateRequest.



103
104
105
106
107
108
109
110
111
# File 'lib/mercadopago/resources/order/request.rb', line 103

def initialize(
  type: nil, external_reference: nil, total_amount: nil, currency: nil,
  capture_mode: nil, processing_mode: nil, description: nil, marketplace: nil,
  marketplace_fee: nil, expiration_time: nil, checkout_available_at: nil,
  transactions: nil, payer: nil, items: nil, config: nil, shipment: nil,
  additional_info: nil, integration_data: nil
)
  super
end

Instance Attribute Details

#additional_infoObject (readonly)

Returns the value of attribute additional_info

Returns:

  • (Object)

    the current value of additional_info



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def additional_info
  @additional_info
end

#capture_modeObject (readonly)

Returns the value of attribute capture_mode

Returns:

  • (Object)

    the current value of capture_mode



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def capture_mode
  @capture_mode
end

#checkout_available_atObject (readonly)

Returns the value of attribute checkout_available_at

Returns:

  • (Object)

    the current value of checkout_available_at



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def checkout_available_at
  @checkout_available_at
end

#configObject (readonly)

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def config
  @config
end

#currencyObject (readonly)

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def currency
  @currency
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def description
  @description
end

#expiration_timeObject (readonly)

Returns the value of attribute expiration_time

Returns:

  • (Object)

    the current value of expiration_time



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def expiration_time
  @expiration_time
end

#external_referenceObject (readonly)

Returns the value of attribute external_reference

Returns:

  • (Object)

    the current value of external_reference



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def external_reference
  @external_reference
end

#integration_dataObject (readonly)

Returns the value of attribute integration_data

Returns:

  • (Object)

    the current value of integration_data



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def integration_data
  @integration_data
end

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def items
  @items
end

#marketplaceObject (readonly)

Returns the value of attribute marketplace

Returns:

  • (Object)

    the current value of marketplace



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def marketplace
  @marketplace
end

#marketplace_feeObject (readonly)

Returns the value of attribute marketplace_fee

Returns:

  • (Object)

    the current value of marketplace_fee



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def marketplace_fee
  @marketplace_fee
end

#payerObject (readonly)

Returns the value of attribute payer

Returns:

  • (Object)

    the current value of payer



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def payer
  @payer
end

#processing_modeObject (readonly)

Returns the value of attribute processing_mode

Returns:

  • (Object)

    the current value of processing_mode



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def processing_mode
  @processing_mode
end

#shipmentObject (readonly)

Returns the value of attribute shipment

Returns:

  • (Object)

    the current value of shipment



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def shipment
  @shipment
end

#total_amountObject (readonly)

Returns the value of attribute total_amount

Returns:

  • (Object)

    the current value of total_amount



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def total_amount
  @total_amount
end

#transactionsObject (readonly)

Returns the value of attribute transactions

Returns:

  • (Object)

    the current value of transactions



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def transactions
  @transactions
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



81
82
83
# File 'lib/mercadopago/resources/order/request.rb', line 81

def type
  @type
end