abl-constants
Advanced tools
Comparing version 0.3.7 to 0.3.8
{ | ||
"name": "abl-constants", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "title": "ABL - constants", |
@@ -10,3 +10,3 @@ "use strict"; | ||
import {phoneNumber} from "./twilio.js"; | ||
import {cardNumbers} from "./stripe.js"; | ||
import {cardNumbers, defaultCurrency} from "./stripe.js"; | ||
@@ -108,9 +108,2 @@ export const AAPArray = [{ | ||
return Object.assign({ | ||
bookingId: getRandomString(8, 2), | ||
notes, | ||
created: testTime, | ||
startTime, | ||
title, | ||
timeZone, | ||
transaction: transactionObject(), | ||
answers: [{ | ||
@@ -122,3 +115,11 @@ questionText: "question 1?", | ||
answerText: "answer 2!" | ||
}] | ||
}], | ||
bookingId: getRandomString(8, 2), | ||
created: testTime, | ||
notes, | ||
startTime, | ||
status: "paid", | ||
timeZone, | ||
title, | ||
transaction: transactionObject() | ||
}, data); | ||
@@ -198,2 +199,3 @@ } | ||
features: { | ||
coupons: true, | ||
guides: true, | ||
@@ -208,2 +210,7 @@ questions: true | ||
display: { | ||
event: { | ||
cutoff: 2880, | ||
isSiteWide: true | ||
}, | ||
theme: "blue", | ||
timeslot: { | ||
@@ -214,8 +221,10 @@ availability: true, | ||
startTime: true | ||
}, | ||
event: { | ||
isSiteWide: true, | ||
cutoff | ||
} | ||
} | ||
}, | ||
social: { | ||
facebook: "http://facebook/", | ||
instagram: "http://instagram/", | ||
tripadvistor: "http://tripadvistor/", | ||
twitter: "http://twitter/" | ||
} | ||
@@ -246,4 +255,21 @@ } | ||
return Object.assign({ | ||
charges: Object.keys(chargeArray).map(key => chargeArray[key]) | ||
charges: Object.keys(chargeArray).map(key => chargeArray[key]), | ||
payments: [{ | ||
id: `ch_${getRandomString(21)}`, | ||
amount: chargeArray.adult.amount, | ||
method: "credit", | ||
currency: defaultCurrency | ||
}, { | ||
id: `abl_${getRandomString(20)}`, | ||
amount: chargeArray.adult.amount, | ||
method: "cash", | ||
currency: defaultCurrency | ||
}], | ||
refunds: [{ | ||
id: `re_${getRandomString(21)}`, | ||
amount: chargeArray.adult.amount, | ||
method: "credit", | ||
currency: defaultCurrency | ||
}] | ||
}, data); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28346
1073