lib/ingenico/connect/sdk/domain/payment/approve_payment_payment_method_specific_input.rb



#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
require 'ingenico/connect/sdk/data_object'

module Ingenico::Connect::SDK
  module Domain
    module Payment

      # @attr [String] date_collect
      # @attr [String] token
      class ApprovePaymentPaymentMethodSpecificInput < Ingenico::Connect::SDK::DataObject

        attr_accessor :date_collect

        attr_accessor :token

        # @return (Hash)
        def to_h
          hash = super
          hash['dateCollect'] = @date_collect unless @date_collect.nil?
          hash['token'] = @token unless @token.nil?
          hash
        end

        def from_hash(hash)
          super
          if hash.has_key? 'dateCollect'
            @date_collect = hash['dateCollect']
          end
          if hash.has_key? 'token'
            @token = hash['token']
          end
        end
      end
    end
  end
end