Sha256: db8f41350dcea82df2324d4c7fe7d86a288a745feba53add7e9fc0cd628f0a4d

Contents?: true

Size: 372 Bytes

Versions: 27

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

module Bs2Api
  module Payment
    class Key < Base
      def initialize key
        @key = key
      end
      
      private
        def url
          "#{Bs2Api.endpoint}/pix/direto/forintegration/v1/pagamentos/chave"
        end

        def payload
          {
            "chave": @key.to_hash
          }
        end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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