Skip to content

Commit

Permalink
remove request_ping defs
Browse files Browse the repository at this point in the history
  • Loading branch information
liztownd committed Sep 6, 2024
1 parent 50c2778 commit 8d4246a
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions modules/travel_pay/app/services/travel_pay/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,29 +141,6 @@ def veis_params
}
end

def request_ping(veis_token)
btsss_url = Settings.travel_pay.base_url
api_key = Settings.travel_pay.subscription_key

connection(server_url: btsss_url).get('api/v1/Sample/ping') do |req|
req.headers['Authorization'] = "Bearer #{veis_token}"
req.headers['Ocp-Apim-Subscription-Key'] = api_key
req.headers['X-Correlation-ID'] = SecureRandom.uuid
end
end

def request_authorized_ping(veis_token, btsss_token)
btsss_url = Settings.travel_pay.base_url
api_key = Settings.travel_pay.subscription_key

connection(server_url: btsss_url).get('api/v1/Sample/authorized-ping') do |req|
req.headers['Authorization'] = "Bearer #{veis_token}"
req.headers['BTSSS-Access-Token'] = btsss_token
req.headers['Ocp-Apim-Subscription-Key'] = api_key
req.headers['X-Correlation-ID'] = SecureRandom.uuid
end
end

def request_claims(veis_token, btsss_token)
btsss_url = Settings.travel_pay.base_url
correlation_id = SecureRandom.uuid
Expand Down

0 comments on commit 8d4246a

Please sign in to comment.