Class: Mercadopago::Order::Request::PayerRequest

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

Overview

E. payer ==

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashConversion

#to_hash

Constructor Details

#initialize(email: nil, first_name: nil, last_name: nil, customer_id: nil, entity_type: nil, identification: nil, phone: nil, address: nil) ⇒ PayerRequest

Returns a new instance of PayerRequest.



240
241
242
243
244
245
# File 'lib/mercadopago/resources/order/request.rb', line 240

def initialize(
  email: nil, first_name: nil, last_name: nil, customer_id: nil,
  entity_type: nil, identification: nil, phone: nil, address: nil
)
  super
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



228
229
230
# File 'lib/mercadopago/resources/order/request.rb', line 228

def address
  @address
end

#customer_idObject (readonly)

Returns the value of attribute customer_id

Returns:

  • (Object)

    the current value of customer_id



228
229
230
# File 'lib/mercadopago/resources/order/request.rb', line 228

def customer_id
  @customer_id
end

#emailObject (readonly)

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



228
229
230
# File 'lib/mercadopago/resources/order/request.rb', line 228

def email
  @email
end

#entity_typeObject (readonly)

Returns the value of attribute entity_type

Returns:

  • (Object)

    the current value of entity_type



228
229
230
# File 'lib/mercadopago/resources/order/request.rb', line 228

def entity_type
  @entity_type
end

#first_nameObject (readonly)

Returns the value of attribute first_name

Returns:

  • (Object)

    the current value of first_name



228
229
230
# File 'lib/mercadopago/resources/order/request.rb', line 228

def first_name
  @first_name
end

#identificationObject (readonly)

Returns the value of attribute identification

Returns:

  • (Object)

    the current value of identification



228
229
230
# File 'lib/mercadopago/resources/order/request.rb', line 228

def identification
  @identification
end

#last_nameObject (readonly)

Returns the value of attribute last_name

Returns:

  • (Object)

    the current value of last_name



228
229
230
# File 'lib/mercadopago/resources/order/request.rb', line 228

def last_name
  @last_name
end

#phoneObject (readonly)

Returns the value of attribute phone

Returns:

  • (Object)

    the current value of phone



228
229
230
# File 'lib/mercadopago/resources/order/request.rb', line 228

def phone
  @phone
end