class Ingenico::Direct::SDK::Domain::MobilePaymentMethodHostedCheckoutSpecificInput

@attr [String] authorization_mode @attr [Integer] payment_product_id

Attributes

authorization_mode[RW]
payment_product_id[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/direct/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb, line 24
def from_hash(hash)
  super
  @authorization_mode = hash['authorizationMode'] if hash.key? 'authorizationMode'
  @payment_product_id = hash['paymentProductId'] if hash.key? 'paymentProductId'
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/mobile_payment_method_hosted_checkout_specific_input.rb, line 17
def to_h
  hash = super
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
  hash
end