Class: Mercadopago::Order::Request::PaymentMethodRequest

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

Overview

C. payment_method ==

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashConversion

#to_hash

Constructor Details

#initialize(id: nil, type: nil, token: nil, statement_descriptor: nil, installments: nil, financial_institution: nil) ⇒ PaymentMethodRequest

Returns a new instance of PaymentMethodRequest.



155
156
157
158
159
160
# File 'lib/mercadopago/resources/order/request.rb', line 155

def initialize(
  id: nil, type: nil, token: nil, statement_descriptor: nil,
  installments: nil, financial_institution: nil
)
  super
end

Instance Attribute Details

#financial_institutionObject (readonly)

Returns the value of attribute financial_institution

Returns:

  • (Object)

    the current value of financial_institution



145
146
147
# File 'lib/mercadopago/resources/order/request.rb', line 145

def financial_institution
  @financial_institution
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



145
146
147
# File 'lib/mercadopago/resources/order/request.rb', line 145

def id
  @id
end

#installmentsObject (readonly)

Returns the value of attribute installments

Returns:

  • (Object)

    the current value of installments



145
146
147
# File 'lib/mercadopago/resources/order/request.rb', line 145

def installments
  @installments
end

#statement_descriptorObject (readonly)

Returns the value of attribute statement_descriptor

Returns:

  • (Object)

    the current value of statement_descriptor



145
146
147
# File 'lib/mercadopago/resources/order/request.rb', line 145

def statement_descriptor
  @statement_descriptor
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



145
146
147
# File 'lib/mercadopago/resources/order/request.rb', line 145

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



145
146
147
# File 'lib/mercadopago/resources/order/request.rb', line 145

def type
  @type
end