Sha256: 686fe6bac4ab65cfcdd007bc4b9dd816dd99d1ffdc48632be5afa1cd3dfed456

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

module Ebanx
  module Command
    class Request < Command
      def initialize(params)
        @params         = params
        @request_method = :post
        @request_action = 'request'
        @response_type  = :json
      end

      def validate
        validate_presence :currency_code
        validate_presence :amount
        validate_presence :merchant_payment_code
        validate_presence :name
        validate_presence :email
        validate_presence :payment_type_code
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ebanx-1.3.5 lib/ebanx/command/request.rb
ebanx-1.3.4 lib/ebanx/command/request.rb
ebanx-1.3.3 lib/ebanx/command/request.rb