Sha256: 9a41e8d4a781a101e9ffde1ba555db339e9c7cc178ff10e6c2d651ceccef63e1
Contents?: true
Size: 719 Bytes
Versions: 6
Compression:
Stored size: 719 Bytes
Contents
# frozen_string_literal: true module Bs2Api module Payment class Manual < Base def initialize( bank, client_id: Bs2Api.configuration.client_id, client_secret: Bs2Api.configuration.client_secret, proxy: nil ) raise Bs2Api::Errors::InvalidBank, 'Invalid Bank' unless bank.is_a?(Bs2Api::Entities::Bank) @bank = bank @client_id = client_id @client_secret = client_secret @proxy = proxy 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
6 entries across 6 versions & 1 rubygems