From 7993f1544186511537bb241d400f7fa6c3bb0ffd Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 14 Mar 2026 15:30:50 -0400 Subject: [PATCH] updated comments --- app/services/qbo_oauth_service.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/services/qbo_oauth_service.rb b/app/services/qbo_oauth_service.rb index a3c6e4a..358488a 100644 --- a/app/services/qbo_oauth_service.rb +++ b/app/services/qbo_oauth_service.rb @@ -10,7 +10,8 @@ class QboOauthService - # Generates the QuickBooks OAuth authorization URL with the specified callback URL. The URL includes necessary parameters such as response type, state, and scope. + # Generates the QuickBooks OAuth authorization URL with the specified callback URL. + # The URL includes necessary parameters such as response type, state, and scope. def self.authorization_url(callback_url:) client.auth_code.authorize_url( redirect_uri: callback_url, @@ -20,7 +21,8 @@ class QboOauthService ) end - # Exchanges the authorization code for access and refresh tokens. Creates or replaces the QBO connection record with the new credentials and refreshes the token immediately after creation. + # Exchanges the authorization code for access and refresh tokens. + # Creates or replaces the QBO connection record with the new credentials and refreshes the token immediately after creation. def self.exchange!(code:, callback_url:, realm_id:) resp = client.auth_code.get_token(code, redirect_uri: callback_url) QboConnectionService.replace!( token: resp.token, refresh_token: resp.refresh_token, realm_id: realm_id )