class Ingenico::Connect::SDK::Domain::Payment::MobilePaymentMethodSpecificInput

@attr [String] authorization_mode @attr [String] customer_reference @attr [Ingenico::Connect::SDK::Domain::Payment::DecryptedPaymentData] decrypted_payment_data @attr [String] encrypted_payment_data @attr [Ingenico::Connect::SDK::Domain::Payment::MobilePaymentProduct320SpecificInput] payment_product320_specific_input @attr [true/false] requires_approval @attr [true/false] skip_fraud_service

Attributes

authorization_mode[RW]
customer_reference[RW]
decrypted_payment_data[RW]
encrypted_payment_data[RW]
payment_product320_specific_input[RW]
requires_approval[RW]
skip_fraud_service[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_input.rb, line 49
def from_hash(hash)
  super
  if hash.has_key? 'authorizationMode'
    @authorization_mode = hash['authorizationMode']
  end
  if hash.has_key? 'customerReference'
    @customer_reference = hash['customerReference']
  end
  if hash.has_key? 'decryptedPaymentData'
    raise TypeError, "value '%s' is not a Hash" % [hash['decryptedPaymentData']] unless hash['decryptedPaymentData'].is_a? Hash
    @decrypted_payment_data = Ingenico::Connect::SDK::Domain::Payment::DecryptedPaymentData.new_from_hash(hash['decryptedPaymentData'])
  end
  if hash.has_key? 'encryptedPaymentData'
    @encrypted_payment_data = hash['encryptedPaymentData']
  end
  if hash.has_key? 'paymentProduct320SpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']] unless hash['paymentProduct320SpecificInput'].is_a? Hash
    @payment_product320_specific_input = Ingenico::Connect::SDK::Domain::Payment::MobilePaymentProduct320SpecificInput.new_from_hash(hash['paymentProduct320SpecificInput'])
  end
  if hash.has_key? 'requiresApproval'
    @requires_approval = hash['requiresApproval']
  end
  if hash.has_key? 'skipFraudService'
    @skip_fraud_service = hash['skipFraudService']
  end
end
to_h() click to toggle source

@return (Hash)

# File lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_input.rb, line 37
def to_h
  hash = super
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
  hash['customerReference'] = @customer_reference unless @customer_reference.nil?
  hash['decryptedPaymentData'] = @decrypted_payment_data.to_h unless @decrypted_payment_data.nil?
  hash['encryptedPaymentData'] = @encrypted_payment_data unless @encrypted_payment_data.nil?
  hash['paymentProduct320SpecificInput'] = @payment_product320_specific_input.to_h unless @payment_product320_specific_input.nil?
  hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
  hash['skipFraudService'] = @skip_fraud_service unless @skip_fraud_service.nil?
  hash
end