@wix/auto_sdk_ecom_order-transactions 1.0.108 → 1.0.110

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.
@@ -1136,6 +1136,31 @@ interface MaskedPayment {
1136
1136
  }
1137
1137
  interface UpdatePaymentsResponse {
1138
1138
  }
1139
+ interface SendPaymentsUpdatedRequest {
1140
+ /**
1141
+ * Order ID.
1142
+ * @format GUID
1143
+ */
1144
+ orderId?: string;
1145
+ /**
1146
+ * IDs of the payments to report as updated in the events.
1147
+ *
1148
+ * At least one of `payment_ids` or `refund_ids` is required. Every ID must belong to the order.
1149
+ * @format GUID
1150
+ * @maxSize 100
1151
+ */
1152
+ paymentIds?: string[];
1153
+ /**
1154
+ * IDs of the refunds to report as updated in the events.
1155
+ *
1156
+ * At least one of `payment_ids` or `refund_ids` is required. Every ID must belong to the order.
1157
+ * @format GUID
1158
+ * @maxSize 100
1159
+ */
1160
+ refundIds?: string[];
1161
+ }
1162
+ interface SendPaymentsUpdatedResponse {
1163
+ }
1139
1164
  interface QueryOrderTransactionsRequest {
1140
1165
  }
1141
1166
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -2088,4 +2113,4 @@ interface BulkUpdatePaymentStatusesOptions {
2088
2113
  interface UpdateRefundTransactionOptions {
2089
2114
  }
2090
2115
 
2091
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionType, type ActionTypeWithLiterals, type AddChargebackRequest, type AddChargebackResponse, type AddInvoiceToOrderRequest, type AddInvoiceToOrderResponse, type AddPaymentsRequest, type AddPaymentsResponse, type AddRefundRequest, type AddRefundResponse, type AdditionalFeeRefund, type AggregatedRefundSummary, type ApplicationError, type AuthorizationActionFailureDetails, type AuthorizationCapture, AuthorizationCaptureStatus, type AuthorizationCaptureStatusWithLiterals, type AuthorizationDetails, type AuthorizationVoid, AuthorizationVoidStatus, type AuthorizationVoidStatusWithLiterals, type BaseEventMetadata, type BulkActionMetadata, type BulkGenerateInvoicesRequest, type BulkGenerateInvoicesResponse, type BulkInvoiceResult, type BulkPaymentResult, type BulkUpdatePaymentStatusesOptions, type BulkUpdatePaymentStatusesRequest, type BulkUpdatePaymentStatusesResponse, type CalculateRefundItemRequest, type CalculateRefundItemResponse, type CalculateRefundRequest, type CalculateRefundResponse, CanceledReason, type CanceledReasonWithLiterals, type CanceledStatusDetails, type CashRounding, type CashRoundingDetails, type Chargeback, type ChargebackApproved, type ChargebackReversed, ChargebackStatus, type ChargebackStatusWithLiterals, type CreditCardPaymentMethodDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DeclinedReason, type DeclinedReasonWithLiterals, type DeclinedStatusDetails, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalReceiptInfo, type FutureMembershipDetails, type GenerateInvoiceRequest, type GenerateInvoiceResponse, type GetRefundabilityStatusRequest, type GetRefundabilityStatusResponse, type GiftCardPaymentDetails, type IdentificationData, type IdentificationDataIdOneOf, type InvoiceForOrder, type InvoiceInfo, type InvoicesForOrder, type ItemMetadata, type LineItemRefund, type LineItemRefundSummary, type ListInvoicesForMultipleOrdersRequest, type ListInvoicesForMultipleOrdersResponse, type ListInvoicesForSingleOrderRequest, type ListInvoicesForSingleOrderResponse, type ListTransactionsForMultipleOrdersRequest, type ListTransactionsForMultipleOrdersResponse, type ListTransactionsForSingleOrderRequest, type ListTransactionsForSingleOrderResponse, ManuallyRefundableReason, type ManuallyRefundableReasonWithLiterals, type MaskedPayment, type MembershipName, type MembershipPaymentDetails, MembershipPaymentStatus, type MembershipPaymentStatusWithLiterals, type MessageEnvelope, NonRefundableReason, type NonRefundableReasonWithLiterals, type OrderTransactions, type OrderTransactionsChargebackApprovedEnvelope, type OrderTransactionsChargebackReversedEnvelope, type OrderTransactionsDetailsUpdatedEnvelope, type OrderTransactionsRefundCompletedEnvelope, type OrderTransactionsUpdatedEnvelope, type Payment, type PaymentAndOrderId, type PaymentDetailsUpdated, type PaymentMethodName, type PaymentPaymentDetailsOneOf, type PaymentReceiptInfoOneOf, type PaymentRefund, PaymentStatus, type PaymentStatusDetails, type PaymentStatusDetailsOneOf, type PaymentStatusDetailsStatusDetailsOneOf, type PaymentStatusWithLiterals, type PaymentsUpdated, PredefinedPaymentMethod, type PredefinedPaymentMethodWithLiterals, type Price, type QueryOrderTransactionsRequest, type QueryOrderTransactionsResponse, Reason, type ReasonWithLiterals, type Refund, type RefundCompleted, type RefundCreated, type RefundDetails, type RefundItem, type RefundItemsBreakdown, type RefundSideEffects, RefundStatus, type RefundStatusInfo, type RefundStatusWithLiterals, type RefundTransaction, type Refundability, type RefundabilityAdditionalRefundabilityInfoOneOf, RefundableStatus, type RefundableStatusWithLiterals, type RegularPaymentDetails, type RegularPaymentDetailsPaymentMethodDetailsOneOf, type RestockInfo, type RestockItem, type RestockLocation, RestockType, type RestockTypeWithLiterals, type RestoreInfo, type ReverseChargebackRequest, type ReverseChargebackResponse, type ScheduledAction, type ShippingRefund, SortOrder, type SortOrderWithLiterals, type Sorting, TransactionStatus, type TransactionStatusWithLiterals, type TriggerRefundRequest, type TriggerRefundResponse, type UpdatePaymentStatusApplicationErrors, type UpdatePaymentStatusIdentifiers, type UpdatePaymentStatusOptions, type UpdatePaymentStatusRequest, type UpdatePaymentStatusResponse, type UpdatePaymentsApplicationErrors, type UpdatePaymentsRequest, type UpdatePaymentsResponse, type UpdateRefundRequest, type UpdateRefundResponse, type UpdateRefundTransactionApplicationErrors, type UpdateRefundTransactionOptions, type UpdateRefundTransactionRequest, type UpdateRefundTransactionResponse, type UserDefinedPaymentMethodName, type UserDefinedPaymentMethodNameKindOneOf, VoidedReason, type VoidedReasonWithLiterals, type VoidedStatusDetails, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixReceiptInfo, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, onOrderTransactionsChargebackApproved, onOrderTransactionsChargebackReversed, onOrderTransactionsDetailsUpdated, onOrderTransactionsRefundCompleted, onOrderTransactionsUpdated, updatePaymentStatus };
2116
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionType, type ActionTypeWithLiterals, type AddChargebackRequest, type AddChargebackResponse, type AddInvoiceToOrderRequest, type AddInvoiceToOrderResponse, type AddPaymentsRequest, type AddPaymentsResponse, type AddRefundRequest, type AddRefundResponse, type AdditionalFeeRefund, type AggregatedRefundSummary, type ApplicationError, type AuthorizationActionFailureDetails, type AuthorizationCapture, AuthorizationCaptureStatus, type AuthorizationCaptureStatusWithLiterals, type AuthorizationDetails, type AuthorizationVoid, AuthorizationVoidStatus, type AuthorizationVoidStatusWithLiterals, type BaseEventMetadata, type BulkActionMetadata, type BulkGenerateInvoicesRequest, type BulkGenerateInvoicesResponse, type BulkInvoiceResult, type BulkPaymentResult, type BulkUpdatePaymentStatusesOptions, type BulkUpdatePaymentStatusesRequest, type BulkUpdatePaymentStatusesResponse, type CalculateRefundItemRequest, type CalculateRefundItemResponse, type CalculateRefundRequest, type CalculateRefundResponse, CanceledReason, type CanceledReasonWithLiterals, type CanceledStatusDetails, type CashRounding, type CashRoundingDetails, type Chargeback, type ChargebackApproved, type ChargebackReversed, ChargebackStatus, type ChargebackStatusWithLiterals, type CreditCardPaymentMethodDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DeclinedReason, type DeclinedReasonWithLiterals, type DeclinedStatusDetails, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalReceiptInfo, type FutureMembershipDetails, type GenerateInvoiceRequest, type GenerateInvoiceResponse, type GetRefundabilityStatusRequest, type GetRefundabilityStatusResponse, type GiftCardPaymentDetails, type IdentificationData, type IdentificationDataIdOneOf, type InvoiceForOrder, type InvoiceInfo, type InvoicesForOrder, type ItemMetadata, type LineItemRefund, type LineItemRefundSummary, type ListInvoicesForMultipleOrdersRequest, type ListInvoicesForMultipleOrdersResponse, type ListInvoicesForSingleOrderRequest, type ListInvoicesForSingleOrderResponse, type ListTransactionsForMultipleOrdersRequest, type ListTransactionsForMultipleOrdersResponse, type ListTransactionsForSingleOrderRequest, type ListTransactionsForSingleOrderResponse, ManuallyRefundableReason, type ManuallyRefundableReasonWithLiterals, type MaskedPayment, type MembershipName, type MembershipPaymentDetails, MembershipPaymentStatus, type MembershipPaymentStatusWithLiterals, type MessageEnvelope, NonRefundableReason, type NonRefundableReasonWithLiterals, type OrderTransactions, type OrderTransactionsChargebackApprovedEnvelope, type OrderTransactionsChargebackReversedEnvelope, type OrderTransactionsDetailsUpdatedEnvelope, type OrderTransactionsRefundCompletedEnvelope, type OrderTransactionsUpdatedEnvelope, type Payment, type PaymentAndOrderId, type PaymentDetailsUpdated, type PaymentMethodName, type PaymentPaymentDetailsOneOf, type PaymentReceiptInfoOneOf, type PaymentRefund, PaymentStatus, type PaymentStatusDetails, type PaymentStatusDetailsOneOf, type PaymentStatusDetailsStatusDetailsOneOf, type PaymentStatusWithLiterals, type PaymentsUpdated, PredefinedPaymentMethod, type PredefinedPaymentMethodWithLiterals, type Price, type QueryOrderTransactionsRequest, type QueryOrderTransactionsResponse, Reason, type ReasonWithLiterals, type Refund, type RefundCompleted, type RefundCreated, type RefundDetails, type RefundItem, type RefundItemsBreakdown, type RefundSideEffects, RefundStatus, type RefundStatusInfo, type RefundStatusWithLiterals, type RefundTransaction, type Refundability, type RefundabilityAdditionalRefundabilityInfoOneOf, RefundableStatus, type RefundableStatusWithLiterals, type RegularPaymentDetails, type RegularPaymentDetailsPaymentMethodDetailsOneOf, type RestockInfo, type RestockItem, type RestockLocation, RestockType, type RestockTypeWithLiterals, type RestoreInfo, type ReverseChargebackRequest, type ReverseChargebackResponse, type ScheduledAction, type SendPaymentsUpdatedRequest, type SendPaymentsUpdatedResponse, type ShippingRefund, SortOrder, type SortOrderWithLiterals, type Sorting, TransactionStatus, type TransactionStatusWithLiterals, type TriggerRefundRequest, type TriggerRefundResponse, type UpdatePaymentStatusApplicationErrors, type UpdatePaymentStatusIdentifiers, type UpdatePaymentStatusOptions, type UpdatePaymentStatusRequest, type UpdatePaymentStatusResponse, type UpdatePaymentsApplicationErrors, type UpdatePaymentsRequest, type UpdatePaymentsResponse, type UpdateRefundRequest, type UpdateRefundResponse, type UpdateRefundTransactionApplicationErrors, type UpdateRefundTransactionOptions, type UpdateRefundTransactionRequest, type UpdateRefundTransactionResponse, type UserDefinedPaymentMethodName, type UserDefinedPaymentMethodNameKindOneOf, VoidedReason, type VoidedReasonWithLiterals, type VoidedStatusDetails, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixReceiptInfo, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, onOrderTransactionsChargebackApproved, onOrderTransactionsChargebackReversed, onOrderTransactionsDetailsUpdated, onOrderTransactionsRefundCompleted, onOrderTransactionsUpdated, updatePaymentStatus };
@@ -60,6 +60,87 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
60
60
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
61
61
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
62
62
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
63
+ var TRANSFORM_PATHS_0 = [
64
+ { path: "orderTransactions.payments.createdDate" },
65
+ { path: "orderTransactions.payments.updatedDate" },
66
+ {
67
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
68
+ },
69
+ {
70
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
71
+ },
72
+ {
73
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
74
+ },
75
+ {
76
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
77
+ },
78
+ {
79
+ path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
80
+ },
81
+ {
82
+ path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
83
+ },
84
+ { path: "orderTransactions.refunds.createdDate" }
85
+ ];
86
+ var TRANSFORM_PATHS_1 = [
87
+ { path: "payments.createdDate" },
88
+ { path: "payments.updatedDate" },
89
+ {
90
+ path: "payments.regularPaymentDetails.authorizationDetails.authorizedDate"
91
+ },
92
+ {
93
+ path: "payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
94
+ },
95
+ {
96
+ path: "payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
97
+ },
98
+ {
99
+ path: "payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
100
+ },
101
+ { path: "payments.regularPaymentDetails.chargebacks.createdDate" },
102
+ { path: "payments.regularPaymentDetails.chargebacks.updatedDate" }
103
+ ];
104
+ var TRANSFORM_PATHS_2 = [{ path: "statusUpdatedDate" }];
105
+ var TRANSFORM_PATHS_3 = [
106
+ { path: "results.item.createdDate" },
107
+ { path: "results.item.updatedDate" },
108
+ {
109
+ path: "results.item.regularPaymentDetails.authorizationDetails.authorizedDate"
110
+ },
111
+ {
112
+ path: "results.item.regularPaymentDetails.authorizationDetails.captures.createdDate"
113
+ },
114
+ {
115
+ path: "results.item.regularPaymentDetails.authorizationDetails.void.voidedDate"
116
+ },
117
+ {
118
+ path: "results.item.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
119
+ },
120
+ { path: "results.item.regularPaymentDetails.chargebacks.createdDate" },
121
+ { path: "results.item.regularPaymentDetails.chargebacks.updatedDate" }
122
+ ];
123
+ var TRANSFORM_PATHS_4 = [{ path: "fieldMask" }];
124
+ var TRANSFORM_PATHS_5 = [{ path: "payments.fieldMask" }];
125
+ var TRANSFORM_PATHS_6 = [
126
+ { path: "payments.statusUpdatedDate" },
127
+ { path: "payments.payment.createdDate" },
128
+ { path: "payments.payment.updatedDate" },
129
+ {
130
+ path: "payments.payment.regularPaymentDetails.authorizationDetails.authorizedDate"
131
+ },
132
+ {
133
+ path: "payments.payment.regularPaymentDetails.authorizationDetails.captures.createdDate"
134
+ },
135
+ {
136
+ path: "payments.payment.regularPaymentDetails.authorizationDetails.void.voidedDate"
137
+ },
138
+ {
139
+ path: "payments.payment.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
140
+ },
141
+ { path: "payments.payment.regularPaymentDetails.chargebacks.createdDate" },
142
+ { path: "payments.payment.regularPaymentDetails.chargebacks.updatedDate" }
143
+ ];
63
144
  function resolveComWixEcomOrdersPaymentsV1PaymentsUrl(opts) {
64
145
  const domainToMappings = {
65
146
  _: [
@@ -137,29 +218,7 @@ function listTransactionsForSingleOrder(payload) {
137
218
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
138
219
  {
139
220
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
140
- paths: [
141
- { path: "orderTransactions.payments.createdDate" },
142
- { path: "orderTransactions.payments.updatedDate" },
143
- {
144
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
145
- },
146
- {
147
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
148
- },
149
- {
150
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
151
- },
152
- {
153
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
154
- },
155
- {
156
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
157
- },
158
- {
159
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
160
- },
161
- { path: "orderTransactions.refunds.createdDate" }
162
- ]
221
+ paths: TRANSFORM_PATHS_0
163
222
  }
164
223
  ])
165
224
  };
@@ -186,29 +245,7 @@ function listTransactionsForMultipleOrders(payload) {
186
245
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
187
246
  {
188
247
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
189
- paths: [
190
- { path: "orderTransactions.payments.createdDate" },
191
- { path: "orderTransactions.payments.updatedDate" },
192
- {
193
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
194
- },
195
- {
196
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
197
- },
198
- {
199
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
200
- },
201
- {
202
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
203
- },
204
- {
205
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
206
- },
207
- {
208
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
209
- },
210
- { path: "orderTransactions.refunds.createdDate" }
211
- ]
248
+ paths: TRANSFORM_PATHS_0
212
249
  }
213
250
  ])
214
251
  };
@@ -221,24 +258,7 @@ function addPayments(payload) {
221
258
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
222
259
  {
223
260
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
224
- paths: [
225
- { path: "payments.createdDate" },
226
- { path: "payments.updatedDate" },
227
- {
228
- path: "payments.regularPaymentDetails.authorizationDetails.authorizedDate"
229
- },
230
- {
231
- path: "payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
232
- },
233
- {
234
- path: "payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
235
- },
236
- {
237
- path: "payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
238
- },
239
- { path: "payments.regularPaymentDetails.chargebacks.createdDate" },
240
- { path: "payments.regularPaymentDetails.chargebacks.updatedDate" }
241
- ]
261
+ paths: TRANSFORM_PATHS_1
242
262
  }
243
263
  ]);
244
264
  const metadata = {
@@ -258,29 +278,7 @@ function addPayments(payload) {
258
278
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
259
279
  {
260
280
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
261
- paths: [
262
- { path: "orderTransactions.payments.createdDate" },
263
- { path: "orderTransactions.payments.updatedDate" },
264
- {
265
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
266
- },
267
- {
268
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
269
- },
270
- {
271
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
272
- },
273
- {
274
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
275
- },
276
- {
277
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
278
- },
279
- {
280
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
281
- },
282
- { path: "orderTransactions.refunds.createdDate" }
283
- ]
281
+ paths: TRANSFORM_PATHS_0
284
282
  }
285
283
  ])
286
284
  };
@@ -293,7 +291,7 @@ function updatePaymentStatus(payload) {
293
291
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
294
292
  {
295
293
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
296
- paths: [{ path: "statusUpdatedDate" }]
294
+ paths: TRANSFORM_PATHS_2
297
295
  }
298
296
  ]);
299
297
  const metadata = {
@@ -313,29 +311,7 @@ function updatePaymentStatus(payload) {
313
311
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
314
312
  {
315
313
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
316
- paths: [
317
- { path: "orderTransactions.payments.createdDate" },
318
- { path: "orderTransactions.payments.updatedDate" },
319
- {
320
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
321
- },
322
- {
323
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
324
- },
325
- {
326
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
327
- },
328
- {
329
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
330
- },
331
- {
332
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
333
- },
334
- {
335
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
336
- },
337
- { path: "orderTransactions.refunds.createdDate" }
338
- ]
314
+ paths: TRANSFORM_PATHS_0
339
315
  }
340
316
  ])
341
317
  };
@@ -348,7 +324,7 @@ function bulkUpdatePaymentStatuses(payload) {
348
324
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
349
325
  {
350
326
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
351
- paths: [{ path: "statusUpdatedDate" }]
327
+ paths: TRANSFORM_PATHS_2
352
328
  }
353
329
  ]);
354
330
  const metadata = {
@@ -368,28 +344,7 @@ function bulkUpdatePaymentStatuses(payload) {
368
344
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
369
345
  {
370
346
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
371
- paths: [
372
- { path: "results.item.createdDate" },
373
- { path: "results.item.updatedDate" },
374
- {
375
- path: "results.item.regularPaymentDetails.authorizationDetails.authorizedDate"
376
- },
377
- {
378
- path: "results.item.regularPaymentDetails.authorizationDetails.captures.createdDate"
379
- },
380
- {
381
- path: "results.item.regularPaymentDetails.authorizationDetails.void.voidedDate"
382
- },
383
- {
384
- path: "results.item.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
385
- },
386
- {
387
- path: "results.item.regularPaymentDetails.chargebacks.createdDate"
388
- },
389
- {
390
- path: "results.item.regularPaymentDetails.chargebacks.updatedDate"
391
- }
392
- ]
347
+ paths: TRANSFORM_PATHS_3
393
348
  }
394
349
  ])
395
350
  };
@@ -402,11 +357,11 @@ function updateRefundTransaction(payload) {
402
357
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
403
358
  {
404
359
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
405
- paths: [{ path: "fieldMask" }]
360
+ paths: TRANSFORM_PATHS_4
406
361
  },
407
362
  {
408
363
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
409
- paths: [{ path: "statusUpdatedDate" }]
364
+ paths: TRANSFORM_PATHS_2
410
365
  }
411
366
  ]);
412
367
  const metadata = {
@@ -426,29 +381,7 @@ function updateRefundTransaction(payload) {
426
381
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
427
382
  {
428
383
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
429
- paths: [
430
- { path: "orderTransactions.payments.createdDate" },
431
- { path: "orderTransactions.payments.updatedDate" },
432
- {
433
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
434
- },
435
- {
436
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
437
- },
438
- {
439
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
440
- },
441
- {
442
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
443
- },
444
- {
445
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
446
- },
447
- {
448
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
449
- },
450
- { path: "orderTransactions.refunds.createdDate" }
451
- ]
384
+ paths: TRANSFORM_PATHS_0
452
385
  }
453
386
  ])
454
387
  };
@@ -461,33 +394,11 @@ function updatePayments(payload) {
461
394
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
462
395
  {
463
396
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
464
- paths: [{ path: "payments.fieldMask" }]
397
+ paths: TRANSFORM_PATHS_5
465
398
  },
466
399
  {
467
400
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
468
- paths: [
469
- { path: "payments.statusUpdatedDate" },
470
- { path: "payments.payment.createdDate" },
471
- { path: "payments.payment.updatedDate" },
472
- {
473
- path: "payments.payment.regularPaymentDetails.authorizationDetails.authorizedDate"
474
- },
475
- {
476
- path: "payments.payment.regularPaymentDetails.authorizationDetails.captures.createdDate"
477
- },
478
- {
479
- path: "payments.payment.regularPaymentDetails.authorizationDetails.void.voidedDate"
480
- },
481
- {
482
- path: "payments.payment.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
483
- },
484
- {
485
- path: "payments.payment.regularPaymentDetails.chargebacks.createdDate"
486
- },
487
- {
488
- path: "payments.payment.regularPaymentDetails.chargebacks.updatedDate"
489
- }
490
- ]
401
+ paths: TRANSFORM_PATHS_6
491
402
  }
492
403
  ]);
493
404
  const metadata = {
@@ -507,29 +418,7 @@ function updatePayments(payload) {
507
418
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
508
419
  {
509
420
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
510
- paths: [
511
- { path: "orderTransactions.payments.createdDate" },
512
- { path: "orderTransactions.payments.updatedDate" },
513
- {
514
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
515
- },
516
- {
517
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
518
- },
519
- {
520
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
521
- },
522
- {
523
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
524
- },
525
- {
526
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
527
- },
528
- {
529
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
530
- },
531
- { path: "orderTransactions.refunds.createdDate" }
532
- ]
421
+ paths: TRANSFORM_PATHS_0
533
422
  }
534
423
  ])
535
424
  };