class Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput

@attr [Integer] payment_product_id

Attributes

payment_product_id[RW]

Public Instance Methods

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

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input.rb, line 17
def to_h
  hash = super
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
  hash
end