Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions src/apiReqs/apiReqsClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module.exports[updateSubscription] = ({ subscription_id, bodyParams, clientInfo}
return axios.patch(url, reqBody, { headers });
};

module.exports[locateAtms] = ({ page, per_page, zip, radius, lat, lon, clientInfo }) => {
module.exports[locateAtms] = ({ page, per_page, zip, radius, lat, lon, atm_network_type, clientInfo }) => {
const { host, headers } = clientInfo;
const url = addQueryParams({
originalUrl: `${host}/nodes/atms`,
Expand All @@ -161,7 +161,8 @@ module.exports[locateAtms] = ({ page, per_page, zip, radius, lat, lon, clientInf
zip,
radius,
lat,
lon
lon,
atm_network_type
});

return axios.get(url, { headers });
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/buildUrls.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports.addQueryParams = ({
lat,
lon,
radius,
atm_network_type,
limit,
currency,
foreign_transaction,
Expand Down Expand Up @@ -63,6 +64,9 @@ module.exports.addQueryParams = ({
if (radius !== undefined) {
params.push(`radius=${radius}`);
}
if (atm_network_type !== undefined) {
params.push(`atm_network_type=${atm_network_type}`);
}
if (limit !== undefined) {
params.push(`limit=${limit}`);
}
Expand Down
3 changes: 2 additions & 1 deletion src/lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class Client {

// GET LOCATE ATMS
locateAtms(queryParams = {}) {
const { page, per_page, zip, radius, lat, lon } = queryParams;
const { page, per_page, zip, radius, lat, lon, atm_network_type } = queryParams;

return apiRequests.client[locateAtms]({
page,
Expand All @@ -203,6 +203,7 @@ class Client {
radius,
lat,
lon,
atm_network_type,
clientInfo: this
});
}
Expand Down