Class: FabApi::Endpoints::RefreshToken

Inherits:
FabApi::Endpoint show all
Includes:
PartnerApi::Endpoints::Initializer
Defined in:
lib/fab_api/endpoints/refresh_token.rb

Instance Method Summary collapse

Methods included from PartnerApi::Endpoints::Initializer

prepended

Methods inherited from PartnerApi::Endpoints::Base

#call

Constructor Details

#initialize(access_token:, refresh_token:, system:, transaction_id: Utils::Id.generate, new_token_flag: true) ⇒ RefreshToken

Returns a new instance of RefreshToken.



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/fab_api/endpoints/refresh_token.rb', line 9

def initialize(
  access_token:,
  refresh_token:,
  system:,
  transaction_id: Utils::Id.generate,
  new_token_flag: true
)
  @access_token = access_token
  @refresh_token = refresh_token
  @system = system
  @transaction_id = transaction_id
  @new_token_flag = new_token_flag
end