Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remaining references to the travel pay ping endpoints #18353

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading