paidup-schedule-connect
Advanced tools
Comparing version 2.2.11 to 2.3.0
@@ -30,2 +30,7 @@ module.exports = { | ||
}, | ||
version : { | ||
example : 'v2', | ||
description : 'version of calculations.', | ||
required : true | ||
}, | ||
originalPrice : { | ||
@@ -80,3 +85,5 @@ example : 200.23, | ||
status: 200, | ||
body: { | ||
body: `some like this: { | ||
version: 'v2', | ||
basePrice: 290, | ||
originalPrice: 300, | ||
@@ -88,3 +95,3 @@ totalFee: 34, | ||
discount : 12 | ||
} | ||
}` | ||
} | ||
@@ -114,2 +121,3 @@ }, | ||
var body = { | ||
version: inputs.version, | ||
originalPrice: inputs.originalPrice, | ||
@@ -128,2 +136,3 @@ stripePercent: inputs.stripePercent, | ||
}else{ | ||
resp.body = JSON.stringify(resp.body); | ||
return exits.success(resp); | ||
@@ -130,0 +139,0 @@ } |
@@ -34,2 +34,3 @@ module.exports = { | ||
example : [{ | ||
version: 'v2', | ||
description : "some description", | ||
@@ -56,4 +57,6 @@ dateCharge : "some string data description", | ||
status: 200, | ||
body: { | ||
body: `some like this: { | ||
prices: [{ | ||
version: 'v2', | ||
basePrice: 290, | ||
description : 'some description', | ||
@@ -68,3 +71,3 @@ dateCharge : 'some date string', | ||
}] | ||
} | ||
}` | ||
} | ||
@@ -106,3 +109,3 @@ }, | ||
status: resp.status, | ||
body: resp.body | ||
body: JSON.stringify(resp.body) | ||
}); | ||
@@ -109,0 +112,0 @@ } |
{ | ||
"name": "paidup-schedule-connect", | ||
"version": "2.2.11", | ||
"version": "2.3.0", | ||
"description": "Connector for PaidUp Microservice Schedule", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -8,2 +8,3 @@ { | ||
"token" : "tdschedule-secret", | ||
"version": "v1", | ||
"originalPrice" : 100, | ||
@@ -18,3 +19,3 @@ "stripePercent" : 2.9, | ||
"outcome": "success", | ||
"output": {"status" : 200, "body" : { "owedPrice": 105, "discount": 0 }} | ||
"output": {"status" : 200} | ||
}, | ||
@@ -25,2 +26,3 @@ { | ||
"token" : "tdschedule-secret", | ||
"version": "v1", | ||
"originalPrice" : 100, | ||
@@ -35,3 +37,3 @@ "stripePercent" : 2.9, | ||
"outcome": "success", | ||
"output": {"status" : 200, "body" : { "owedPrice": 100, "discount": 0 }} | ||
"output": {"status" : 200} | ||
}, | ||
@@ -42,2 +44,3 @@ { | ||
"token" : "tdschedule-secret", | ||
"version": "v1", | ||
"originalPrice" : 100, | ||
@@ -52,3 +55,3 @@ "stripePercent" : 2.9, | ||
"outcome": "success", | ||
"output": {"status" : 200, "body" : { "owedPrice": 108.45, "discount": 0 }} | ||
"output": {"status" : 200} | ||
}, | ||
@@ -59,2 +62,3 @@ { | ||
"token" : "tdschedule-secret", | ||
"version": "v1", | ||
"originalPrice" : 100, | ||
@@ -69,3 +73,3 @@ "stripePercent" : 2.9, | ||
"outcome": "success", | ||
"output": {"status" : 200, "body" : { "owedPrice": 103.29, "discount": 0 }} | ||
"output": {"status" : 200} | ||
}, | ||
@@ -76,2 +80,3 @@ { | ||
"token" : "tdschedule-secret", | ||
"version": "v1", | ||
"originalPrice" : 100, | ||
@@ -90,2 +95,3 @@ "stripePercent" : 2.9, | ||
"token" : "tdschedule-secret1", | ||
"version": "v1", | ||
"originalPrice" : 100, | ||
@@ -107,2 +113,3 @@ "stripePercent" : 2.9, | ||
"token" : "tdschedule-secret", | ||
"version": "v1", | ||
"originalPrice" : 100, | ||
@@ -109,0 +116,0 @@ "stripePercent" : 2.9, |
@@ -10,2 +10,3 @@ { | ||
"prices" : [{ | ||
"version": "v1", | ||
"description": "some description", | ||
@@ -12,0 +13,0 @@ "dateCharge" : "YYYY-MM-DD", |
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
14461
418