Methods
(async, static) addNewCartEntry(req, userDetails, locationID) → {object}
- Source:
Add new cart entry
Parameters:
Name | Type | Description |
---|---|---|
req |
object | req object |
userDetails |
object | User Details for adding new cart |
locationID |
object | locationID to which the cart is to be added |
Returns:
sql response
- Type
- object
(async, static) allCartItems(req, data, count) → {object}
- Source:
Get all Cart Items
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request data |
data |
string | data is the req.body |
count |
number | Count for pagination or all data |
Returns:
sql response
- Type
- object
(async, static) cartLocationDetails(cartID) → {object}
- Source:
Get cart location details
Parameters:
Name | Type | Description |
---|---|---|
cartID |
object | cartID for which the location details has to be fetched |
Returns:
sql response
- Type
- object
(async, static) changeCartStatus(req, cartChange, id) → {object}
- Source:
Change Cart Status
Parameters:
Name | Type | Description |
---|---|---|
req |
object | req object |
cartChange |
object | status of the cart item |
id |
object | cartID to which the status has to be changed |
Returns:
sql response
- Type
- object
(async, static) checkUserCartExists(req, locationID) → {object}
- Source:
Check cart exists for the user
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request data |
locationID |
string | locationID to which the cart is to be checked |
Returns:
sql response
- Type
- object
(async, static) checkUserProductExists(req, id) → {object}
- Source:
Get all Product exists for the user
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request data |
id |
string | request data |
Returns:
sql response
- Type
- object
(async, static) checkUserUnPaidExists(req) → {object}
- Source:
Check User unpaid cart exists
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request data |
Returns:
sql response
- Type
- object
(async, static) getAllAvailableAppointments(req) → {object}
- Source:
Get all Appointments available for return
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request data |
Returns:
sql response
- Type
- object
(async, static) getAllCarts(req) → {object}
- Source:
Get all Carts
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request data |
Returns:
sql response
- Type
- object
(async, static) getCartDetails(cartID) → {object}
- Source:
Get one cart details
Parameters:
Name | Type | Description |
---|---|---|
cartID |
object | cartID for which the details has to be fetched |
Returns:
sql response
- Type
- object
(async, static) getSearchSortCategories(req) → {object}
- Source:
Get all Sort and Search Categories
Parameters:
Name | Type | Description |
---|---|---|
req |
object | request data |
Returns:
sql response
- Type
- object
(async, static) IMrelistall(pID) → {object}
- Source:
Relist Item
Parameters:
Name | Type | Description |
---|---|---|
pID |
number | Project ID which has to be relisted |
Returns:
sql response
- Type
- object
(async, static) IMrelistallAttach(pID, newID) → {object}
- Source:
Attachment of the relisted item
Parameters:
Name | Type | Description |
---|---|---|
pID |
number | Project ID which has to be relisted |
newID |
number | New Relisted Project ID to be added |
Returns:
sql response
- Type
- object
(async, static) reassignavatar(pID, newID) → {object}
- Source:
Re assign avatar image
Parameters:
Name | Type | Description |
---|---|---|
pID |
number | Project ID which has to be relisted |
newID |
number | New Relisted Project ID to be added |
Returns:
sql response
- Type
- object
(async, static) updateCartData(data, id) → {object}
- Source:
Update Cart Data
Parameters:
Name | Type | Description |
---|---|---|
data |
object | req body object |
id |
number | id to which the cart is to be updated |
Returns:
sql response
- Type
- object
(async, static) updateRelisted(pID, status) → {object}
- Source:
Update the relisted item
Parameters:
Name | Type | Description |
---|---|---|
pID |
number | Project ID which has to be relisted |
status |
number | Status of the project on relist |
Returns:
sql response
- Type
- object
(async, static) updateReturned(pID, status) → {object}
- Source:
Update the relisted item as returned
Parameters:
Name | Type | Description |
---|---|---|
pID |
number | Project ID which has to be relisted |
status |
number | Status of the project on relist |
Returns:
sql response
- Type
- object