Class: BancoBrasilPayments::BatchPaymentsApi

Inherits:
Object
  • Object
show all
Includes:
BaseApi, Payments, Transfers, TransfersPix
Defined in:
lib/bb_payments/api/batch_payments_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TransfersPix

#create_batch_transfers_pix, #find_batch_transfer_pix, #find_payment_pix

Methods included from BaseApi

#build_client_opts, #call_api_client, #validations

Methods included from Transfers

#consult_batch_transfers, #consult_beneficiary_transfers, #create_batch_transfers

Methods included from Payments

#cancel_payments, #consult_entries, #consult_payments, #find_batch_payments, #find_batch_transfer, #find_payment, #liberar_pagamentos_with

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ BatchPaymentsApi

Returns a new instance of BatchPaymentsApi.



32
33
34
35
# File 'lib/bb_payments/api/batch_payments_api.rb', line 32

def initialize(api_client = ApiClient.default)
  @api_client = api_client
  @gw_app_key = @api_client.config.gw_app_key
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



30
31
32
# File 'lib/bb_payments/api/batch_payments_api.rb', line 30

def api_client
  @api_client
end

#gw_app_keyObject

Returns the value of attribute gw_app_key.



30
31
32
# File 'lib/bb_payments/api/batch_payments_api.rb', line 30

def gw_app_key
  @gw_app_key
end

Instance Method Details

#swagger(opts = {}) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/bb_payments/api/batch_payments_api.rb', line 37

def swagger(opts = {})
  validations(api_client: api_client)

  client_opts = build_client_opts(api_client: api_client,
                                  gw_app_key: gw_app_key,
                                  opts: opts)

  call_api_client(api_client: api_client,
                  http_method: :GET,
                  path: '/swagger',
                  data_only: opts.fetch(:data_only, true),
                  client_opts: client_opts)
end