Sha256: 9b29a482da5739299a3fa2fb24d0baed13ded9440e46342f81712943834c8295

Contents?: true

Size: 612 Bytes

Versions: 6

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

module Bs2Api
  module Payment
    class Key < Base
      def initialize(
        key,
        client_id: Bs2Api.configuration.client_id,
        client_secret: Bs2Api.configuration.client_secret,
        proxy: nil
      )
        @key = key
        @client_id = client_id
        @client_secret = client_secret
        @proxy = proxy
      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

6 entries across 6 versions & 1 rubygems

Version Path
bs2_api-1.9.0 lib/bs2_api/payment/key.rb
bs2_api-1.8.0 lib/bs2_api/payment/key.rb
bs2_api-1.7.0 lib/bs2_api/payment/key.rb
bs2_api-1.6.2 lib/bs2_api/payment/key.rb
bs2_api-1.6.1 lib/bs2_api/payment/key.rb
bs2_api-1.6.0 lib/bs2_api/payment/key.rb