Class: Mercadopago::Order::Request::ConfigRequest

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

Overview

H. config ==

Holds the online sub-object where transaction_security lives (under config.online, NOT root). payment_method and online are kept as free-form Hashes / typed objects; both convert recursively.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashConversion

#to_hash

Constructor Details

#initialize(notification_url: nil, statement_descriptor: nil, default_payment_due_date: nil, payment_method: nil, online: nil) ⇒ ConfigRequest

Returns a new instance of ConfigRequest.



370
371
372
373
374
375
# File 'lib/mercadopago/resources/order/request.rb', line 370

def initialize(
  notification_url: nil, statement_descriptor: nil,
  default_payment_due_date: nil, payment_method: nil, online: nil
)
  super
end

Instance Attribute Details

#default_payment_due_dateObject (readonly)

Returns the value of attribute default_payment_due_date

Returns:

  • (Object)

    the current value of default_payment_due_date



361
362
363
# File 'lib/mercadopago/resources/order/request.rb', line 361

def default_payment_due_date
  @default_payment_due_date
end

#notification_urlObject (readonly)

Returns the value of attribute notification_url

Returns:

  • (Object)

    the current value of notification_url



361
362
363
# File 'lib/mercadopago/resources/order/request.rb', line 361

def notification_url
  @notification_url
end

#onlineObject (readonly)

Returns the value of attribute online

Returns:

  • (Object)

    the current value of online



361
362
363
# File 'lib/mercadopago/resources/order/request.rb', line 361

def online
  @online
end

#payment_methodObject (readonly)

Returns the value of attribute payment_method

Returns:

  • (Object)

    the current value of payment_method



361
362
363
# File 'lib/mercadopago/resources/order/request.rb', line 361

def payment_method
  @payment_method
end

#statement_descriptorObject (readonly)

Returns the value of attribute statement_descriptor

Returns:

  • (Object)

    the current value of statement_descriptor



361
362
363
# File 'lib/mercadopago/resources/order/request.rb', line 361

def statement_descriptor
  @statement_descriptor
end