Method: InterApi::ClientProduction#initialize
- Defined in:
- lib/inter_api/client_production.rb
#initialize(crt:, key:, client_id:, client_secret:, chave_pix:, conta_corrente:, scopes: "cobv.write cobv.read cob.write cob.read pix.write pix.read webhook.read webhook.write", access_token: nil, token_expires_at: nil, test_mode: false) ⇒ ClientProduction
Returns a new instance of ClientProduction.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/inter_api/client_production.rb', line 8 def initialize(crt:, key:, client_id:, client_secret:, chave_pix:, conta_corrente:, scopes: "cobv.write cobv.read cob.write cob.read pix.write pix.read webhook.read webhook.write", access_token: nil, token_expires_at: nil, test_mode: false) @crt = crt @key = key @client_id = client_id @client_secret = client_secret @chave_pix = chave_pix @conta_corrente = conta_corrente @scopes = scopes @access_token= access_token @token_expires_at = token_expires_at @test_mode = test_mode end |