-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83e99d4
commit 9c97083
Showing
2 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
const Request = require('../../Request'); | ||
const Request = require("../../Request"); | ||
|
||
module.exports = { | ||
// Find Nearby Merchants | ||
findNearByMerchants(payload) { | ||
const url = `/store/v1/merchant/nearby` | ||
return Request.post(`${url}`, payload) | ||
}, | ||
// Find Nearby Merchants | ||
findNearByMerchants(payload) { | ||
const url = `/store/v1/merchant/nearby`; | ||
return Request.post(`${url}`, payload); | ||
}, | ||
|
||
// List Featured Merchants | ||
listFeaturedMerchants(payload) { | ||
const url = `/store/v1/merchant/merchant-featured/list` | ||
return Request.get(`${url}`, { params: { ...payload }}) | ||
}, | ||
// List Featured Merchants | ||
listFeaturedMerchants(payload) { | ||
const url = `/store/v1/merchant/merchant-featured/list`; | ||
return Request.get(`${url}`, { params: { ...payload } }); | ||
}, | ||
|
||
// List Sponsored Merchants | ||
listSponsoredMerchants(payload) { | ||
const url = `/store/v1/merchant/merchant-sponsored/list` | ||
return Request.get(`${url}`, { params: { ...payload }}) | ||
}, | ||
// List Sponsored Merchants | ||
listSponsoredMerchants(payload) { | ||
const url = `/store/v1/merchant/merchant-sponsored/list`; | ||
return Request.get(`${url}`, { params: { ...payload } }); | ||
}, | ||
|
||
// Get Merchant Menu | ||
getMerchantMenu(payload) { | ||
const url = `/store/v1/merchant/menu` | ||
return Request.get(`${url}`, { params: { ...payload }}) | ||
}, | ||
// Get Merchant Menu | ||
getMerchantMenu(payload) { | ||
const url = `/store/v1/merchant/menu`; | ||
return Request.get(`${url}`, { params: { ...payload } }); | ||
}, | ||
|
||
// List Merchant Categories | ||
listMerchantCategories(payload) { | ||
payload.status = true; | ||
const url = `/store/v1/merchant/categories` | ||
return Request.get(`${url}`, { params: { ...payload }}) | ||
}, | ||
} | ||
// Get Nearest Merchant | ||
nearestMerchant(payload) { | ||
const url = `/store/v1/merchant/nearest`; | ||
return Request.post(`${url}`, payload); | ||
}, | ||
|
||
// List Merchant Categories | ||
listMerchantCategories(payload) { | ||
payload.status = true; | ||
const url = `/store/v1/merchant/categories`; | ||
return Request.get(`${url}`, { params: { ...payload } }); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,5 +57,5 @@ | |
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"version": "1.0.45" | ||
"version": "1.0.46" | ||
} |