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