Class: Mercadopago::Order::Request::PaymentRequest

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

Overview

B. payments ==

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashConversion

#to_hash

Constructor Details

#initialize(amount: nil, expiration_time: nil, date_of_expiration: nil, payment_method: nil, automatic_payments: nil, stored_credential: nil, subscription_data: nil) ⇒ PaymentRequest

Returns a new instance of PaymentRequest.



135
136
137
138
139
140
141
# File 'lib/mercadopago/resources/order/request.rb', line 135

def initialize(
  amount: nil, expiration_time: nil, date_of_expiration: nil,
  payment_method: nil, automatic_payments: nil, stored_credential: nil,
  subscription_data: nil
)
  super
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



124
125
126
# File 'lib/mercadopago/resources/order/request.rb', line 124

def amount
  @amount
end

#automatic_paymentsObject (readonly)

Returns the value of attribute automatic_payments

Returns:

  • (Object)

    the current value of automatic_payments



124
125
126
# File 'lib/mercadopago/resources/order/request.rb', line 124

def automatic_payments
  @automatic_payments
end

#date_of_expirationObject (readonly)

Returns the value of attribute date_of_expiration

Returns:

  • (Object)

    the current value of date_of_expiration



124
125
126
# File 'lib/mercadopago/resources/order/request.rb', line 124

def date_of_expiration
  @date_of_expiration
end

#expiration_timeObject (readonly)

Returns the value of attribute expiration_time

Returns:

  • (Object)

    the current value of expiration_time



124
125
126
# File 'lib/mercadopago/resources/order/request.rb', line 124

def expiration_time
  @expiration_time
end

#payment_methodObject (readonly)

Returns the value of attribute payment_method

Returns:

  • (Object)

    the current value of payment_method



124
125
126
# File 'lib/mercadopago/resources/order/request.rb', line 124

def payment_method
  @payment_method
end

#stored_credentialObject (readonly)

Returns the value of attribute stored_credential

Returns:

  • (Object)

    the current value of stored_credential



124
125
126
# File 'lib/mercadopago/resources/order/request.rb', line 124

def stored_credential
  @stored_credential
end

#subscription_dataObject (readonly)

Returns the value of attribute subscription_data

Returns:

  • (Object)

    the current value of subscription_data



124
125
126
# File 'lib/mercadopago/resources/order/request.rb', line 124

def subscription_data
  @subscription_data
end