refundModule

refundModule

class to handle refund functions

Constructor

new refundModule()

Source:

Methods

(async, static) addAppointment(pickup, userID, locationID) → {object}

Source:

Add Appointment

Parameters:
Name Type Description
pickup number

pickup status

userID number

userID which has to be marked

locationID number

locationID which has to be added for appointment

Returns:

sql response

Type
object

(async, static) authorizeInsertPayRecord(req, cardDetails, cartValue, data) → {object}

Source:

Authorize payment Insert Record

Parameters:
Name Type Description
req object

req.body object

cardDetails object

cart Details

cartValue object

cart values

data object

req.body

Returns:

sql response

Type
object

(async, static) getCartDetails(cardID) → {object}

Source:

Get cart Details

Parameters:
Name Type Description
cardID number

cartID details has to be fetched

Returns:

sql response

Type
object

(async, static) getMinimumInvoiceID(cardID) → {object}

Source:

Get Minimum Invoice ID

Parameters:
Name Type Description
cardID number

cartID minimum invoice ID

Returns:

sql response

Type
object

(async, static) getReturnCommonInvoiceNo() → {object}

Source:

Get Return Common Invoice Number

Returns:

sql response

Type
object

(async, static) insertPayLogRequest(cartID, userID, payType, gateWay) → {object}

Source:

Insert Payment log

Parameters:
Name Type Description
cartID number

cart ID for which log has to be added

userID number

userID which has to be marked

payType string

What type of payment Gateway

gateWay string

Which payment gateway is used

Returns:

sql response

Type
object

(async, static) markBuyNowRefund(InvoiceID, cartID, paid) → {object}

Source:

Mark BuyNow Table Cart as Refund

Parameters:
Name Type Description
InvoiceID number

Invoice ID which has to be marked

cartID number

cartId which has to be marked as refund

paid number

Paid status

Returns:

sql response

Type
object

(async, static) markCartRefund(req, cartID, paid) → {object}

Source:

Mark Cart as Refund

Parameters:
Name Type Description
req object

req object

cartID number

cartId which has to be marked as refund

paid number

Paid status

Returns:

sql response

Type
object

(async, static) updateBuynowAppointment(aptnID, cartID) → {object}

Source:

Update Buynow table with the appointment

Parameters:
Name Type Description
aptnID number

Appointment ID which has to be marked

cartID number

cartId which has to be updated

Returns:

sql response

Type
object

(async, static) updatePayLogRequest(data, id, type) → {object}

Source:

Update Payment log

Parameters:
Name Type Description
data object

req.body object

id number

id which has to be marked

type string

What type of payment Gateway

Returns:

sql response

Type
object