Sha256: 23f2d404d09c8b0858a41c9dff71cac86d9723c4a2dd201034d4f73475724db1

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

module Bs2Api
  module Payment
    class Manual < Base
      def initialize 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

2 entries across 2 versions & 1 rubygems

Version Path
bs2_api-0.2.1 lib/bs2_api/payment/manual.rb
bs2_api-0.2.0 lib/bs2_api/payment/manual.rb