@raydiant/playlist-window-manager 0.25.2-rc.1 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,7 +98,10 @@ var isValidChargeRequest = function (value) {
|
|
|
98
98
|
return value &&
|
|
99
99
|
typeof value === 'object' &&
|
|
100
100
|
typeof value.requestId === 'string' &&
|
|
101
|
-
typeof value.
|
|
101
|
+
typeof value.subTotal === 'number' &&
|
|
102
|
+
typeof value.tip === 'number' &&
|
|
103
|
+
typeof value.tax === 'number' &&
|
|
104
|
+
typeof value.total === 'number';
|
|
102
105
|
};
|
|
103
106
|
var isValidAcquireLockRequest = function (value) {
|
|
104
107
|
return value && typeof value === 'object' && typeof value.requestId === 'string';
|
|
@@ -260,11 +260,17 @@ describe('payments', function () {
|
|
|
260
260
|
_a.sent();
|
|
261
261
|
testRenderer.runReceiveMessageCallback('payments-charge-request', {
|
|
262
262
|
requestId: 'test',
|
|
263
|
-
|
|
263
|
+
subTotal: 100,
|
|
264
|
+
tip: 1,
|
|
265
|
+
tax: 10,
|
|
266
|
+
total: 111,
|
|
264
267
|
});
|
|
265
268
|
expect(callback).toHaveBeenCalledWith({
|
|
266
269
|
requestId: 'test',
|
|
267
|
-
|
|
270
|
+
subTotal: 100,
|
|
271
|
+
tip: 1,
|
|
272
|
+
tax: 10,
|
|
273
|
+
total: 111,
|
|
268
274
|
});
|
|
269
275
|
// Send charge response.
|
|
270
276
|
window.sendChargeResponse({
|
package/package.json
CHANGED
|
@@ -238,12 +238,18 @@ describe('payments', () => {
|
|
|
238
238
|
|
|
239
239
|
testRenderer.runReceiveMessageCallback('payments-charge-request', {
|
|
240
240
|
requestId: 'test',
|
|
241
|
-
|
|
241
|
+
subTotal: 100,
|
|
242
|
+
tip: 1,
|
|
243
|
+
tax: 10,
|
|
244
|
+
total: 111,
|
|
242
245
|
});
|
|
243
246
|
|
|
244
247
|
expect(callback).toHaveBeenCalledWith({
|
|
245
248
|
requestId: 'test',
|
|
246
|
-
|
|
249
|
+
subTotal: 100,
|
|
250
|
+
tip: 1,
|
|
251
|
+
tax: 10,
|
|
252
|
+
total: 111,
|
|
247
253
|
});
|
|
248
254
|
|
|
249
255
|
// Send charge response.
|
|
@@ -80,7 +80,10 @@ const isValidChargeRequest = (value: any): value is ChargeRequest =>
|
|
|
80
80
|
value &&
|
|
81
81
|
typeof value === 'object' &&
|
|
82
82
|
typeof value.requestId === 'string' &&
|
|
83
|
-
typeof value.
|
|
83
|
+
typeof value.subTotal === 'number' &&
|
|
84
|
+
typeof value.tip === 'number' &&
|
|
85
|
+
typeof value.tax === 'number' &&
|
|
86
|
+
typeof value.total === 'number';
|
|
84
87
|
|
|
85
88
|
const isValidAcquireLockRequest = (
|
|
86
89
|
value: any
|