@wix/auto_sdk_ecom_order-transactions 1.0.108 → 1.0.109
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.
- package/build/cjs/index.js +175 -331
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +95 -206
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +95 -206
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +175 -331
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +95 -206
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +95 -206
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -71,6 +71,87 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
71
71
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
72
72
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
73
73
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
74
|
+
var TRANSFORM_PATHS_0 = [
|
|
75
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
76
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
77
|
+
{
|
|
78
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
94
|
+
},
|
|
95
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
96
|
+
];
|
|
97
|
+
var TRANSFORM_PATHS_1 = [
|
|
98
|
+
{ path: "payments.createdDate" },
|
|
99
|
+
{ path: "payments.updatedDate" },
|
|
100
|
+
{
|
|
101
|
+
path: "payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
path: "payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
path: "payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
path: "payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
111
|
+
},
|
|
112
|
+
{ path: "payments.regularPaymentDetails.chargebacks.createdDate" },
|
|
113
|
+
{ path: "payments.regularPaymentDetails.chargebacks.updatedDate" }
|
|
114
|
+
];
|
|
115
|
+
var TRANSFORM_PATHS_2 = [{ path: "statusUpdatedDate" }];
|
|
116
|
+
var TRANSFORM_PATHS_3 = [
|
|
117
|
+
{ path: "results.item.createdDate" },
|
|
118
|
+
{ path: "results.item.updatedDate" },
|
|
119
|
+
{
|
|
120
|
+
path: "results.item.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
path: "results.item.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
path: "results.item.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
path: "results.item.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
130
|
+
},
|
|
131
|
+
{ path: "results.item.regularPaymentDetails.chargebacks.createdDate" },
|
|
132
|
+
{ path: "results.item.regularPaymentDetails.chargebacks.updatedDate" }
|
|
133
|
+
];
|
|
134
|
+
var TRANSFORM_PATHS_4 = [{ path: "fieldMask" }];
|
|
135
|
+
var TRANSFORM_PATHS_5 = [{ path: "payments.fieldMask" }];
|
|
136
|
+
var TRANSFORM_PATHS_6 = [
|
|
137
|
+
{ path: "payments.statusUpdatedDate" },
|
|
138
|
+
{ path: "payments.payment.createdDate" },
|
|
139
|
+
{ path: "payments.payment.updatedDate" },
|
|
140
|
+
{
|
|
141
|
+
path: "payments.payment.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: "payments.payment.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
path: "payments.payment.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
path: "payments.payment.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
151
|
+
},
|
|
152
|
+
{ path: "payments.payment.regularPaymentDetails.chargebacks.createdDate" },
|
|
153
|
+
{ path: "payments.payment.regularPaymentDetails.chargebacks.updatedDate" }
|
|
154
|
+
];
|
|
74
155
|
function resolveComWixEcomOrdersPaymentsV1PaymentsUrl(opts) {
|
|
75
156
|
const domainToMappings = {
|
|
76
157
|
_: [
|
|
@@ -148,29 +229,7 @@ function listTransactionsForSingleOrder(payload) {
|
|
|
148
229
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
149
230
|
{
|
|
150
231
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
151
|
-
paths:
|
|
152
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
153
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
154
|
-
{
|
|
155
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
171
|
-
},
|
|
172
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
173
|
-
]
|
|
232
|
+
paths: TRANSFORM_PATHS_0
|
|
174
233
|
}
|
|
175
234
|
])
|
|
176
235
|
};
|
|
@@ -197,29 +256,7 @@ function listTransactionsForMultipleOrders(payload) {
|
|
|
197
256
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
198
257
|
{
|
|
199
258
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
200
|
-
paths:
|
|
201
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
202
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
203
|
-
{
|
|
204
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
220
|
-
},
|
|
221
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
222
|
-
]
|
|
259
|
+
paths: TRANSFORM_PATHS_0
|
|
223
260
|
}
|
|
224
261
|
])
|
|
225
262
|
};
|
|
@@ -232,24 +269,7 @@ function addPayments(payload) {
|
|
|
232
269
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
233
270
|
{
|
|
234
271
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
235
|
-
paths:
|
|
236
|
-
{ path: "payments.createdDate" },
|
|
237
|
-
{ path: "payments.updatedDate" },
|
|
238
|
-
{
|
|
239
|
-
path: "payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
path: "payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
path: "payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
path: "payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
249
|
-
},
|
|
250
|
-
{ path: "payments.regularPaymentDetails.chargebacks.createdDate" },
|
|
251
|
-
{ path: "payments.regularPaymentDetails.chargebacks.updatedDate" }
|
|
252
|
-
]
|
|
272
|
+
paths: TRANSFORM_PATHS_1
|
|
253
273
|
}
|
|
254
274
|
]);
|
|
255
275
|
const metadata = {
|
|
@@ -269,29 +289,7 @@ function addPayments(payload) {
|
|
|
269
289
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
270
290
|
{
|
|
271
291
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
272
|
-
paths:
|
|
273
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
274
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
275
|
-
{
|
|
276
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
292
|
-
},
|
|
293
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
294
|
-
]
|
|
292
|
+
paths: TRANSFORM_PATHS_0
|
|
295
293
|
}
|
|
296
294
|
])
|
|
297
295
|
};
|
|
@@ -304,7 +302,7 @@ function updatePaymentStatus(payload) {
|
|
|
304
302
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
305
303
|
{
|
|
306
304
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
307
|
-
paths:
|
|
305
|
+
paths: TRANSFORM_PATHS_2
|
|
308
306
|
}
|
|
309
307
|
]);
|
|
310
308
|
const metadata = {
|
|
@@ -324,29 +322,7 @@ function updatePaymentStatus(payload) {
|
|
|
324
322
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
325
323
|
{
|
|
326
324
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
327
|
-
paths:
|
|
328
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
329
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
330
|
-
{
|
|
331
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
347
|
-
},
|
|
348
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
349
|
-
]
|
|
325
|
+
paths: TRANSFORM_PATHS_0
|
|
350
326
|
}
|
|
351
327
|
])
|
|
352
328
|
};
|
|
@@ -359,7 +335,7 @@ function bulkUpdatePaymentStatuses(payload) {
|
|
|
359
335
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
360
336
|
{
|
|
361
337
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
362
|
-
paths:
|
|
338
|
+
paths: TRANSFORM_PATHS_2
|
|
363
339
|
}
|
|
364
340
|
]);
|
|
365
341
|
const metadata = {
|
|
@@ -379,28 +355,7 @@ function bulkUpdatePaymentStatuses(payload) {
|
|
|
379
355
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
380
356
|
{
|
|
381
357
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
382
|
-
paths:
|
|
383
|
-
{ path: "results.item.createdDate" },
|
|
384
|
-
{ path: "results.item.updatedDate" },
|
|
385
|
-
{
|
|
386
|
-
path: "results.item.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
path: "results.item.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
path: "results.item.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
path: "results.item.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
path: "results.item.regularPaymentDetails.chargebacks.createdDate"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
path: "results.item.regularPaymentDetails.chargebacks.updatedDate"
|
|
402
|
-
}
|
|
403
|
-
]
|
|
358
|
+
paths: TRANSFORM_PATHS_3
|
|
404
359
|
}
|
|
405
360
|
])
|
|
406
361
|
};
|
|
@@ -413,11 +368,11 @@ function updateRefundTransaction(payload) {
|
|
|
413
368
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
414
369
|
{
|
|
415
370
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
416
|
-
paths:
|
|
371
|
+
paths: TRANSFORM_PATHS_4
|
|
417
372
|
},
|
|
418
373
|
{
|
|
419
374
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
420
|
-
paths:
|
|
375
|
+
paths: TRANSFORM_PATHS_2
|
|
421
376
|
}
|
|
422
377
|
]);
|
|
423
378
|
const metadata = {
|
|
@@ -437,29 +392,7 @@ function updateRefundTransaction(payload) {
|
|
|
437
392
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
438
393
|
{
|
|
439
394
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
440
|
-
paths:
|
|
441
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
442
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
443
|
-
{
|
|
444
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
460
|
-
},
|
|
461
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
462
|
-
]
|
|
395
|
+
paths: TRANSFORM_PATHS_0
|
|
463
396
|
}
|
|
464
397
|
])
|
|
465
398
|
};
|
|
@@ -472,33 +405,11 @@ function updatePayments(payload) {
|
|
|
472
405
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
473
406
|
{
|
|
474
407
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
475
|
-
paths:
|
|
408
|
+
paths: TRANSFORM_PATHS_5
|
|
476
409
|
},
|
|
477
410
|
{
|
|
478
411
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
479
|
-
paths:
|
|
480
|
-
{ path: "payments.statusUpdatedDate" },
|
|
481
|
-
{ path: "payments.payment.createdDate" },
|
|
482
|
-
{ path: "payments.payment.updatedDate" },
|
|
483
|
-
{
|
|
484
|
-
path: "payments.payment.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
path: "payments.payment.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
path: "payments.payment.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
path: "payments.payment.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
path: "payments.payment.regularPaymentDetails.chargebacks.createdDate"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
path: "payments.payment.regularPaymentDetails.chargebacks.updatedDate"
|
|
500
|
-
}
|
|
501
|
-
]
|
|
412
|
+
paths: TRANSFORM_PATHS_6
|
|
502
413
|
}
|
|
503
414
|
]);
|
|
504
415
|
const metadata = {
|
|
@@ -518,29 +429,7 @@ function updatePayments(payload) {
|
|
|
518
429
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
519
430
|
{
|
|
520
431
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
521
|
-
paths:
|
|
522
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
523
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
524
|
-
{
|
|
525
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
541
|
-
},
|
|
542
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
543
|
-
]
|
|
432
|
+
paths: TRANSFORM_PATHS_0
|
|
544
433
|
}
|
|
545
434
|
])
|
|
546
435
|
};
|
|
@@ -882,6 +771,81 @@ async function updatePayments2() {
|
|
|
882
771
|
}
|
|
883
772
|
|
|
884
773
|
// src/ecom-v1-order-transactions-order-transactions.public.ts
|
|
774
|
+
var TRANSFORM_PATHS_02 = [
|
|
775
|
+
{ path: "data.chargeback.createdDate" },
|
|
776
|
+
{ path: "data.chargeback.updatedDate" },
|
|
777
|
+
{ path: "data.orderTransactions.payments.createdDate" },
|
|
778
|
+
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
779
|
+
{
|
|
780
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
796
|
+
},
|
|
797
|
+
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
798
|
+
{ path: "metadata.eventTime" }
|
|
799
|
+
];
|
|
800
|
+
var TRANSFORM_PATHS_12 = [
|
|
801
|
+
{ path: "data.orderTransactions.payments.createdDate" },
|
|
802
|
+
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
803
|
+
{
|
|
804
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
820
|
+
},
|
|
821
|
+
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
822
|
+
{ path: "metadata.eventTime" }
|
|
823
|
+
];
|
|
824
|
+
var TRANSFORM_PATHS_22 = [
|
|
825
|
+
{ path: "data.refund.createdDate" },
|
|
826
|
+
{ path: "data.orderTransactions.payments.createdDate" },
|
|
827
|
+
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
828
|
+
{
|
|
829
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
845
|
+
},
|
|
846
|
+
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
847
|
+
{ path: "metadata.eventTime" }
|
|
848
|
+
];
|
|
885
849
|
function listTransactionsForSingleOrder3(httpClient) {
|
|
886
850
|
return (orderId) => listTransactionsForSingleOrder2(
|
|
887
851
|
orderId,
|
|
@@ -942,32 +906,7 @@ var onOrderTransactionsChargebackApproved = /* @__PURE__ */ (0, import_sdk_types
|
|
|
942
906
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
943
907
|
{
|
|
944
908
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
945
|
-
paths:
|
|
946
|
-
{ path: "data.chargeback.createdDate" },
|
|
947
|
-
{ path: "data.chargeback.updatedDate" },
|
|
948
|
-
{ path: "data.orderTransactions.payments.createdDate" },
|
|
949
|
-
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
950
|
-
{
|
|
951
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
967
|
-
},
|
|
968
|
-
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
969
|
-
{ path: "metadata.eventTime" }
|
|
970
|
-
]
|
|
909
|
+
paths: TRANSFORM_PATHS_02
|
|
971
910
|
}
|
|
972
911
|
])
|
|
973
912
|
)
|
|
@@ -979,32 +918,7 @@ var onOrderTransactionsChargebackReversed = /* @__PURE__ */ (0, import_sdk_types
|
|
|
979
918
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
980
919
|
{
|
|
981
920
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
982
|
-
paths:
|
|
983
|
-
{ path: "data.chargeback.createdDate" },
|
|
984
|
-
{ path: "data.chargeback.updatedDate" },
|
|
985
|
-
{ path: "data.orderTransactions.payments.createdDate" },
|
|
986
|
-
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
987
|
-
{
|
|
988
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
1001
|
-
},
|
|
1002
|
-
{
|
|
1003
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
1004
|
-
},
|
|
1005
|
-
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
1006
|
-
{ path: "metadata.eventTime" }
|
|
1007
|
-
]
|
|
921
|
+
paths: TRANSFORM_PATHS_02
|
|
1008
922
|
}
|
|
1009
923
|
])
|
|
1010
924
|
)
|
|
@@ -1016,30 +930,7 @@ var onOrderTransactionsDetailsUpdated = /* @__PURE__ */ (0, import_sdk_types.Eve
|
|
|
1016
930
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1017
931
|
{
|
|
1018
932
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1019
|
-
paths:
|
|
1020
|
-
{ path: "data.orderTransactions.payments.createdDate" },
|
|
1021
|
-
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
1022
|
-
{
|
|
1023
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
1036
|
-
},
|
|
1037
|
-
{
|
|
1038
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
1039
|
-
},
|
|
1040
|
-
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
1041
|
-
{ path: "metadata.eventTime" }
|
|
1042
|
-
]
|
|
933
|
+
paths: TRANSFORM_PATHS_12
|
|
1043
934
|
}
|
|
1044
935
|
])
|
|
1045
936
|
)
|
|
@@ -1051,31 +942,7 @@ var onOrderTransactionsRefundCompleted = /* @__PURE__ */ (0, import_sdk_types.Ev
|
|
|
1051
942
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1052
943
|
{
|
|
1053
944
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1054
|
-
paths:
|
|
1055
|
-
{ path: "data.refund.createdDate" },
|
|
1056
|
-
{ path: "data.orderTransactions.payments.createdDate" },
|
|
1057
|
-
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
1058
|
-
{
|
|
1059
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
1075
|
-
},
|
|
1076
|
-
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
1077
|
-
{ path: "metadata.eventTime" }
|
|
1078
|
-
]
|
|
945
|
+
paths: TRANSFORM_PATHS_22
|
|
1079
946
|
}
|
|
1080
947
|
])
|
|
1081
948
|
)
|
|
@@ -1087,30 +954,7 @@ var onOrderTransactionsUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefin
|
|
|
1087
954
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1088
955
|
{
|
|
1089
956
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1090
|
-
paths:
|
|
1091
|
-
{ path: "data.orderTransactions.payments.createdDate" },
|
|
1092
|
-
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
1093
|
-
{
|
|
1094
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
1110
|
-
},
|
|
1111
|
-
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
1112
|
-
{ path: "metadata.eventTime" }
|
|
1113
|
-
]
|
|
957
|
+
paths: TRANSFORM_PATHS_12
|
|
1114
958
|
}
|
|
1115
959
|
])
|
|
1116
960
|
)
|