Class: BnzApi::Endpoints::FetchIdToken

Inherits:
BnzApi::Endpoint show all
Includes:
PartnerApi::Endpoints::Initializer
Defined in:
lib/bnz_api/endpoints/fetch_id_token.rb

Instance Method Summary collapse

Methods included from PartnerApi::Endpoints::Initializer

prepended

Methods inherited from PartnerApi::Endpoints::Base

#call

Constructor Details

#initialize(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid) ⇒ FetchIdToken

Returns a new instance of FetchIdToken.



8
9
10
11
12
13
# File 'lib/bnz_api/endpoints/fetch_id_token.rb', line 8

def initialize(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid)
  @auth_code = auth_code
  @redirect_uri = redirect_uri
  @client_id = client_id
  @request_id = request_id
end

Instance Method Details

#override_data(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid) ⇒ Object



15
16
17
18
19
20
# File 'lib/bnz_api/endpoints/fetch_id_token.rb', line 15

def override_data(auth_code:, redirect_uri:, client_id:, request_id: SecureRandom.uuid)
  @auth_code = auth_code
  @redirect_uri = redirect_uri
  @client_id = client_id
  @request_id = request_id
end