Sha256: c6745cb438b12d63f755732fb1df016f555bd88c6d853a8f41726f0d2007810f
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# frozen_string_literal: true require 'bs2_api/version' require 'bs2_api/configuration' require 'bs2_api/initializers/object' require 'bs2_api/initializers/hash' require 'bs2_api/errors/base' require 'bs2_api/errors/invalid_pix_key' require 'bs2_api/errors/missing_configuration' require 'bs2_api/errors/unauthorized' require 'bs2_api/errors/bad_request' require 'bs2_api/errors/server_error' require 'bs2_api/entities/account' require 'bs2_api/entities/bank' require 'bs2_api/entities/customer' require 'bs2_api/entities/payment' require 'bs2_api/entities/pix_key' require 'bs2_api/payment/base' require 'bs2_api/payment/key' require 'bs2_api/payment/manual' require 'bs2_api/request/auth' require 'bs2_api/util/bank_service' require "active_support/core_ext/hash/indifferent_access" module Bs2Api ENDPOINT = { production: 'https://api.bs2.com:8443', sandbox: 'https://apihmz.bancobonsucesso.com.br' } class << self attr_writer :configuration def configuration @configuration ||= Configuration.new end def configure yield(configuration) end def endpoint ENDPOINT[configuration.env.to_sym] end def production? env == 'production' end def sandbox? env == 'sandbox' end def env configuration.env end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bs2_api-0.2.0 | lib/bs2_api.rb |