Sha256: 4a8031c721cd24adc1487496da126c851b05fe34910f7784a456fd36982cc21e

Contents?: true

Size: 477 Bytes

Versions: 25

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module Bs2Api
  module Payment
    class Manual < Base
      def initialize bank
        raise Bs2Api::Errors::InvalidBank, 'Invalid Bank' unless bank.is_a?(Bs2Api::Entities::Bank)
        @bank = bank
      end

      private
        def url
          "#{Bs2Api.endpoint}/pix/direto/forintegration/v1/pagamentos/manual"
        end

        def payload
          {
            "recebedor": @bank.to_hash
          }
        end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
bs2_api-1.4.3 lib/bs2_api/payment/manual.rb
bs2_api-1.4.2 lib/bs2_api/payment/manual.rb
bs2_api-1.4.1 lib/bs2_api/payment/manual.rb
bs2_api-1.4.0 lib/bs2_api/payment/manual.rb
bs2_api-1.2.2 lib/bs2_api/payment/manual.rb
bs2_api-1.2.1 lib/bs2_api/payment/manual.rb
bs2_api-1.2.0 lib/bs2_api/payment/manual.rb
bs2_api-1.1.7 lib/bs2_api/payment/manual.rb
bs2_api-1.1.6 lib/bs2_api/payment/manual.rb
bs2_api-1.1.5 lib/bs2_api/payment/manual.rb
bs2_api-1.1.4 lib/bs2_api/payment/manual.rb
bs2_api-1.1.3 lib/bs2_api/payment/manual.rb
bs2_api-1.1.2 lib/bs2_api/payment/manual.rb
bs2_api-1.1.1 lib/bs2_api/payment/manual.rb
bs2_api-1.1.0 lib/bs2_api/payment/manual.rb
bs2_api-1.0.3 lib/bs2_api/payment/manual.rb
bs2_api-1.0.2 lib/bs2_api/payment/manual.rb
bs2_api-1.0.1 lib/bs2_api/payment/manual.rb
bs2_api-1.0.0 lib/bs2_api/payment/manual.rb
bs2_api-0.4.0 lib/bs2_api/payment/manual.rb