class Ingenico::Connect::SDK::Domain::Payment::AbstractEInvoicePaymentMethodSpecificInput

@attr [true/false] requires_approval

Attributes

requires_approval[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/abstract_e_invoice_payment_method_specific_input.rb, line 23
def from_hash(hash)
  super
  if hash.has_key? 'requiresApproval'
    @requires_approval = hash['requiresApproval']
  end
end
to_h() click to toggle source

@return (Hash)

# File lib/ingenico/connect/sdk/domain/payment/abstract_e_invoice_payment_method_specific_input.rb, line 17
def to_h
  hash = super
  hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
  hash
end