Class: Mercadopago::Order::Request::AddressRequest

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

Overview

E/G. address ==

Covers both payer.address and shipment.address. The API tolerates the union of both field sets; unset fields are omitted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashConversion

#to_hash

Constructor Details

#initialize(zip_code: nil, street_name: nil, street_number: nil, neighborhood: nil, city: nil, state: nil, complement: nil, country: nil, floor: nil, apartment: nil) ⇒ AddressRequest

Returns a new instance of AddressRequest.



283
284
285
286
287
288
# File 'lib/mercadopago/resources/order/request.rb', line 283

def initialize(
  zip_code: nil, street_name: nil, street_number: nil, neighborhood: nil,
  city: nil, state: nil, complement: nil, country: nil, floor: nil, apartment: nil
)
  super
end

Instance Attribute Details

#apartmentObject (readonly)

Returns the value of attribute apartment

Returns:

  • (Object)

    the current value of apartment



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def apartment
  @apartment
end

#cityObject (readonly)

Returns the value of attribute city

Returns:

  • (Object)

    the current value of city



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def city
  @city
end

#complementObject (readonly)

Returns the value of attribute complement

Returns:

  • (Object)

    the current value of complement



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def complement
  @complement
end

#countryObject (readonly)

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def country
  @country
end

#floorObject (readonly)

Returns the value of attribute floor

Returns:

  • (Object)

    the current value of floor



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def floor
  @floor
end

#neighborhoodObject (readonly)

Returns the value of attribute neighborhood

Returns:

  • (Object)

    the current value of neighborhood



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def neighborhood
  @neighborhood
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def state
  @state
end

#street_nameObject (readonly)

Returns the value of attribute street_name

Returns:

  • (Object)

    the current value of street_name



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def street_name
  @street_name
end

#street_numberObject (readonly)

Returns the value of attribute street_number

Returns:

  • (Object)

    the current value of street_number



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def street_number
  @street_number
end

#zip_codeObject (readonly)

Returns the value of attribute zip_code

Returns:

  • (Object)

    the current value of zip_code



269
270
271
# File 'lib/mercadopago/resources/order/request.rb', line 269

def zip_code
  @zip_code
end