@wix/auto_sdk_payments_payments 1.0.0

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.
Files changed (56) hide show
  1. package/build/cjs/index.d.ts +54 -0
  2. package/build/cjs/index.js +523 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +34 -0
  5. package/build/cjs/index.typings.js +401 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1424 -0
  8. package/build/cjs/meta.js +359 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/payments-platform-v1-payment-payments.universal-DeCl2FPc.d.ts +1650 -0
  11. package/build/cjs/schemas.d.ts +500 -0
  12. package/build/cjs/schemas.js +810 -0
  13. package/build/cjs/schemas.js.map +1 -0
  14. package/build/es/index.d.mts +54 -0
  15. package/build/es/index.mjs +480 -0
  16. package/build/es/index.mjs.map +1 -0
  17. package/build/es/index.typings.d.mts +34 -0
  18. package/build/es/index.typings.mjs +360 -0
  19. package/build/es/index.typings.mjs.map +1 -0
  20. package/build/es/meta.d.mts +1424 -0
  21. package/build/es/meta.mjs +316 -0
  22. package/build/es/meta.mjs.map +1 -0
  23. package/build/es/package.json +3 -0
  24. package/build/es/payments-platform-v1-payment-payments.universal-DeCl2FPc.d.mts +1650 -0
  25. package/build/es/schemas.d.mts +500 -0
  26. package/build/es/schemas.mjs +770 -0
  27. package/build/es/schemas.mjs.map +1 -0
  28. package/build/internal/cjs/index.d.ts +54 -0
  29. package/build/internal/cjs/index.js +523 -0
  30. package/build/internal/cjs/index.js.map +1 -0
  31. package/build/internal/cjs/index.typings.d.ts +34 -0
  32. package/build/internal/cjs/index.typings.js +401 -0
  33. package/build/internal/cjs/index.typings.js.map +1 -0
  34. package/build/internal/cjs/meta.d.ts +1521 -0
  35. package/build/internal/cjs/meta.js +359 -0
  36. package/build/internal/cjs/meta.js.map +1 -0
  37. package/build/internal/cjs/payments-platform-v1-payment-payments.universal-C5s3nmb-.d.ts +1705 -0
  38. package/build/internal/cjs/schemas.d.ts +500 -0
  39. package/build/internal/cjs/schemas.js +810 -0
  40. package/build/internal/cjs/schemas.js.map +1 -0
  41. package/build/internal/es/index.d.mts +54 -0
  42. package/build/internal/es/index.mjs +480 -0
  43. package/build/internal/es/index.mjs.map +1 -0
  44. package/build/internal/es/index.typings.d.mts +34 -0
  45. package/build/internal/es/index.typings.mjs +360 -0
  46. package/build/internal/es/index.typings.mjs.map +1 -0
  47. package/build/internal/es/meta.d.mts +1521 -0
  48. package/build/internal/es/meta.mjs +316 -0
  49. package/build/internal/es/meta.mjs.map +1 -0
  50. package/build/internal/es/payments-platform-v1-payment-payments.universal-C5s3nmb-.d.mts +1705 -0
  51. package/build/internal/es/schemas.d.mts +500 -0
  52. package/build/internal/es/schemas.mjs +770 -0
  53. package/build/internal/es/schemas.mjs.map +1 -0
  54. package/meta/package.json +3 -0
  55. package/package.json +61 -0
  56. package/schemas/package.json +3 -0
@@ -0,0 +1,480 @@
1
+ // src/payments-platform-v1-payment-payments.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTAddressToSDKAddress as transformRESTAddressToSDKAddress2 } from "@wix/sdk-runtime/transformations/address";
4
+ import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
6
+ import { EventDefinition } from "@wix/sdk-types";
7
+
8
+ // src/payments-platform-v1-payment-payments.universal.ts
9
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
10
+ import {
11
+ renameKeysFromSDKRequestToRESTRequest,
12
+ renameKeysFromRESTResponseToSDKResponse
13
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
14
+
15
+ // src/payments-platform-v1-payment-payments.http.ts
16
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
17
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
18
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
19
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
20
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
21
+ function resolveWixPaymentsPlatformV1PaymentsUrl(opts) {
22
+ const domainToMappings = {
23
+ "api._api_base_domain_": [
24
+ {
25
+ srcPath: "/payments",
26
+ destPath: ""
27
+ }
28
+ ],
29
+ "www.wixapis.com": [
30
+ {
31
+ srcPath: "/payments/platform/v1/payments",
32
+ destPath: "/v1/payments"
33
+ }
34
+ ]
35
+ };
36
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
37
+ }
38
+ var PACKAGE_NAME = "@wix/auto_sdk_payments_payments";
39
+ function getPayment(payload) {
40
+ function __getPayment({ host }) {
41
+ const metadata = {
42
+ entityFqdn: "wix.payments.platform.v1.payment",
43
+ method: "GET",
44
+ methodFqn: "wix.payments.platform.v1.Payments.GetPayment",
45
+ packageName: PACKAGE_NAME,
46
+ migrationOptions: {
47
+ optInTransformResponse: true
48
+ },
49
+ url: resolveWixPaymentsPlatformV1PaymentsUrl({
50
+ protoPath: "/v1/payments/{paymentId}",
51
+ data: payload,
52
+ host
53
+ }),
54
+ params: toURLSearchParams(payload),
55
+ transformResponse: (payload2) => transformPaths(payload2, [
56
+ {
57
+ transformFn: transformRESTTimestampToSDKTimestamp,
58
+ paths: [
59
+ { path: "payment.createdDate" },
60
+ { path: "payment.updatedDate" },
61
+ { path: "payment.charge.createdDate" },
62
+ { path: "payment.charge.updatedDate" },
63
+ { path: "payment.refunds.createdDate" },
64
+ { path: "payment.refunds.updatedDate" },
65
+ { path: "payment.disputes.dueDate" },
66
+ { path: "payment.disputes.defendedDate" },
67
+ { path: "payment.disputes.acceptedDate" },
68
+ { path: "payment.disputes.createdDate" },
69
+ { path: "payment.disputes.updatedDate" },
70
+ { path: "payment.disputes.actions.dueDate" },
71
+ { path: "payment.notificationOfFraud.createdDate" }
72
+ ]
73
+ },
74
+ {
75
+ transformFn: transformRESTFloatToSDKFloat,
76
+ paths: [
77
+ { path: "payment.charge.billingInfo.address.geocode.latitude" },
78
+ { path: "payment.charge.billingInfo.address.geocode.longitude" },
79
+ { path: "payment.charge.shippingInfo.address.geocode.latitude" },
80
+ { path: "payment.charge.shippingInfo.address.geocode.longitude" }
81
+ ]
82
+ }
83
+ ])
84
+ };
85
+ return metadata;
86
+ }
87
+ return __getPayment;
88
+ }
89
+ function searchPayments(payload) {
90
+ function __searchPayments({ host }) {
91
+ const metadata = {
92
+ entityFqdn: "wix.payments.platform.v1.payment",
93
+ method: "POST",
94
+ methodFqn: "wix.payments.platform.v1.Payments.SearchPayments",
95
+ packageName: PACKAGE_NAME,
96
+ migrationOptions: {
97
+ optInTransformResponse: true
98
+ },
99
+ url: resolveWixPaymentsPlatformV1PaymentsUrl({
100
+ protoPath: "/v1/payments/search",
101
+ data: payload,
102
+ host
103
+ }),
104
+ data: payload,
105
+ transformResponse: (payload2) => transformPaths(payload2, [
106
+ {
107
+ transformFn: transformRESTTimestampToSDKTimestamp,
108
+ paths: [
109
+ { path: "payments.createdDate" },
110
+ { path: "payments.updatedDate" },
111
+ { path: "payments.charge.createdDate" },
112
+ { path: "payments.charge.updatedDate" },
113
+ { path: "payments.refunds.createdDate" },
114
+ { path: "payments.refunds.updatedDate" },
115
+ { path: "payments.disputes.dueDate" },
116
+ { path: "payments.disputes.defendedDate" },
117
+ { path: "payments.disputes.acceptedDate" },
118
+ { path: "payments.disputes.createdDate" },
119
+ { path: "payments.disputes.updatedDate" },
120
+ { path: "payments.disputes.actions.dueDate" },
121
+ { path: "payments.notificationOfFraud.createdDate" }
122
+ ]
123
+ },
124
+ {
125
+ transformFn: transformRESTFloatToSDKFloat,
126
+ paths: [
127
+ { path: "payments.charge.billingInfo.address.geocode.latitude" },
128
+ { path: "payments.charge.billingInfo.address.geocode.longitude" },
129
+ { path: "payments.charge.shippingInfo.address.geocode.latitude" },
130
+ {
131
+ path: "payments.charge.shippingInfo.address.geocode.longitude"
132
+ },
133
+ { path: "aggregationData.results.ranges.results.from" },
134
+ { path: "aggregationData.results.ranges.results.to" },
135
+ {
136
+ path: "aggregationData.results.nested.results.results.*.range.from"
137
+ },
138
+ {
139
+ path: "aggregationData.results.nested.results.results.*.range.to"
140
+ },
141
+ { path: "aggregationData.results.scalar.value" },
142
+ {
143
+ path: "aggregationData.results.nested.results.results.*.scalar.value"
144
+ }
145
+ ]
146
+ }
147
+ ])
148
+ };
149
+ return metadata;
150
+ }
151
+ return __searchPayments;
152
+ }
153
+
154
+ // src/payments-platform-v1-payment-payments.universal.ts
155
+ import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformations/address";
156
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
157
+ import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
158
+ var VatType = /* @__PURE__ */ ((VatType2) => {
159
+ VatType2["UNSPECIFIED"] = "UNSPECIFIED";
160
+ VatType2["CPF"] = "CPF";
161
+ VatType2["CNPJ"] = "CNPJ";
162
+ return VatType2;
163
+ })(VatType || {});
164
+ var Status = /* @__PURE__ */ ((Status2) => {
165
+ Status2["INITIATED"] = "INITIATED";
166
+ Status2["ACTION_REQUIRED"] = "ACTION_REQUIRED";
167
+ Status2["PENDING"] = "PENDING";
168
+ Status2["AUTHORIZED"] = "AUTHORIZED";
169
+ Status2["CAPTURED"] = "CAPTURED";
170
+ Status2["VOIDED"] = "VOIDED";
171
+ Status2["FAILED"] = "FAILED";
172
+ return Status2;
173
+ })(Status || {});
174
+ var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
175
+ RefundStatus2["PENDING"] = "PENDING";
176
+ RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
177
+ RefundStatus2["FAILED"] = "FAILED";
178
+ RefundStatus2["REVERSED"] = "REVERSED";
179
+ return RefundStatus2;
180
+ })(RefundStatus || {});
181
+ var DisputeStage = /* @__PURE__ */ ((DisputeStage2) => {
182
+ DisputeStage2["CHARGEBACK"] = "CHARGEBACK";
183
+ DisputeStage2["INQUIRY"] = "INQUIRY";
184
+ return DisputeStage2;
185
+ })(DisputeStage || {});
186
+ var DisputeReason = /* @__PURE__ */ ((DisputeReason2) => {
187
+ DisputeReason2["FRAUD_CARD_PRESENT"] = "FRAUD_CARD_PRESENT";
188
+ DisputeReason2["FRAUD_CARD_ABSENT"] = "FRAUD_CARD_ABSENT";
189
+ DisputeReason2["DUPLICATE_PROCESSING"] = "DUPLICATE_PROCESSING";
190
+ DisputeReason2["SERVICES_NOT_PROVIDED"] = "SERVICES_NOT_PROVIDED";
191
+ DisputeReason2["CANCELED_RECURRING"] = "CANCELED_RECURRING";
192
+ DisputeReason2["NOT_AS_DESCRIBED"] = "NOT_AS_DESCRIBED";
193
+ DisputeReason2["COUNTERFEIT"] = "COUNTERFEIT";
194
+ DisputeReason2["MISREPRESENTATION"] = "MISREPRESENTATION";
195
+ DisputeReason2["CANCELED"] = "CANCELED";
196
+ DisputeReason2["OTHER"] = "OTHER";
197
+ return DisputeReason2;
198
+ })(DisputeReason || {});
199
+ var DisputeStatus = /* @__PURE__ */ ((DisputeStatus2) => {
200
+ DisputeStatus2["WAITING_MERCHANT"] = "WAITING_MERCHANT";
201
+ DisputeStatus2["UNDER_REVIEW"] = "UNDER_REVIEW";
202
+ DisputeStatus2["WAITING_BUYER"] = "WAITING_BUYER";
203
+ DisputeStatus2["WON"] = "WON";
204
+ DisputeStatus2["LOST"] = "LOST";
205
+ return DisputeStatus2;
206
+ })(DisputeStatus || {});
207
+ var SellerProtection = /* @__PURE__ */ ((SellerProtection2) => {
208
+ SellerProtection2["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
209
+ SellerProtection2["ELIGIBLE"] = "ELIGIBLE";
210
+ SellerProtection2["EXTENDED"] = "EXTENDED";
211
+ return SellerProtection2;
212
+ })(SellerProtection || {});
213
+ var DisputeChannel = /* @__PURE__ */ ((DisputeChannel2) => {
214
+ DisputeChannel2["INTERNAL"] = "INTERNAL";
215
+ DisputeChannel2["EXTERNAL"] = "EXTERNAL";
216
+ return DisputeChannel2;
217
+ })(DisputeChannel || {});
218
+ var DisputeActionType = /* @__PURE__ */ ((DisputeActionType2) => {
219
+ DisputeActionType2["ACCEPT"] = "ACCEPT";
220
+ DisputeActionType2["DEFEND"] = "DEFEND";
221
+ return DisputeActionType2;
222
+ })(DisputeActionType || {});
223
+ var Reason = /* @__PURE__ */ ((Reason2) => {
224
+ Reason2["CARD_NEVER_RECEIVED"] = "CARD_NEVER_RECEIVED";
225
+ Reason2["FRAUDULENT_CARD_APPLICATION"] = "FRAUDULENT_CARD_APPLICATION";
226
+ Reason2["MADE_WITH_COUNTERFEIT_CARD"] = "MADE_WITH_COUNTERFEIT_CARD";
227
+ Reason2["MADE_WITH_LOST_CARD"] = "MADE_WITH_LOST_CARD";
228
+ Reason2["MADE_WITH_STOLEN_CARD"] = "MADE_WITH_STOLEN_CARD";
229
+ Reason2["MISCELLANEOUS"] = "MISCELLANEOUS";
230
+ Reason2["UNAUTHORIZED_USE_OF_CARD"] = "UNAUTHORIZED_USE_OF_CARD";
231
+ Reason2["FRAUD"] = "FRAUD";
232
+ Reason2["ACCOUNT_TAKEOVER_FRAUD"] = "ACCOUNT_TAKEOVER_FRAUD";
233
+ Reason2["CARD_NOT_PRESENT_FRAUD"] = "CARD_NOT_PRESENT_FRAUD";
234
+ Reason2["MULTIPLE_IMPRINT_FRAUD"] = "MULTIPLE_IMPRINT_FRAUD";
235
+ Reason2["BUST_OUT_COLLUSIVE_MERCHANT"] = "BUST_OUT_COLLUSIVE_MERCHANT";
236
+ Reason2["FRAUDULENT_USE_OF_ACCOUNT_NUMBER"] = "FRAUDULENT_USE_OF_ACCOUNT_NUMBER";
237
+ Reason2["INCORRECT_PROCESSING"] = "INCORRECT_PROCESSING";
238
+ Reason2["MERCHANT_MISREPRESENTATION"] = "MERCHANT_MISREPRESENTATION";
239
+ Reason2["ACQUIRER_REPORTED_COUNTERFEIT"] = "ACQUIRER_REPORTED_COUNTERFEIT";
240
+ return Reason2;
241
+ })(Reason || {});
242
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
243
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
244
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
245
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
246
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
247
+ WebhookIdentityType2["APP"] = "APP";
248
+ return WebhookIdentityType2;
249
+ })(WebhookIdentityType || {});
250
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
251
+ SortOrder2["ASC"] = "ASC";
252
+ SortOrder2["DESC"] = "DESC";
253
+ return SortOrder2;
254
+ })(SortOrder || {});
255
+ var Mode = /* @__PURE__ */ ((Mode2) => {
256
+ Mode2["OR"] = "OR";
257
+ Mode2["AND"] = "AND";
258
+ return Mode2;
259
+ })(Mode || {});
260
+ var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
261
+ ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
262
+ ScalarType2["MIN"] = "MIN";
263
+ ScalarType2["MAX"] = "MAX";
264
+ ScalarType2["SUM"] = "SUM";
265
+ ScalarType2["AVG"] = "AVG";
266
+ return ScalarType2;
267
+ })(ScalarType || {});
268
+ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
269
+ AggregationType2["VALUE"] = "VALUE";
270
+ AggregationType2["RANGE"] = "RANGE";
271
+ AggregationType2["SCALAR"] = "SCALAR";
272
+ AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
273
+ AggregationType2["NESTED"] = "NESTED";
274
+ return AggregationType2;
275
+ })(AggregationType || {});
276
+ async function getPayment2(paymentId) {
277
+ const { httpClient, sideEffects } = arguments[1];
278
+ const payload = renameKeysFromSDKRequestToRESTRequest({
279
+ paymentId
280
+ });
281
+ const reqOpts = getPayment(payload);
282
+ sideEffects?.onSiteCall?.();
283
+ try {
284
+ const result = await httpClient.request(reqOpts);
285
+ sideEffects?.onSuccess?.(result);
286
+ return renameKeysFromRESTResponseToSDKResponse(
287
+ transformPaths2(result.data, [
288
+ {
289
+ transformFn: transformRESTAddressToSDKAddress,
290
+ paths: [
291
+ { path: "payment.charge.billingInfo.address" },
292
+ { path: "payment.charge.shippingInfo.address" }
293
+ ]
294
+ }
295
+ ])
296
+ )?.payment;
297
+ } catch (err) {
298
+ const transformedError = sdkTransformError(
299
+ err,
300
+ {
301
+ spreadPathsToArguments: {},
302
+ explicitPathsToArguments: { paymentId: "$[0]" },
303
+ singleArgumentUnchanged: false
304
+ },
305
+ ["paymentId"]
306
+ );
307
+ sideEffects?.onError?.(err);
308
+ throw transformedError;
309
+ }
310
+ }
311
+ async function searchPayments2(search) {
312
+ const { httpClient, sideEffects } = arguments[1];
313
+ const payload = renameKeysFromSDKRequestToRESTRequest({ search });
314
+ const reqOpts = searchPayments(payload);
315
+ sideEffects?.onSiteCall?.();
316
+ try {
317
+ const result = await httpClient.request(reqOpts);
318
+ sideEffects?.onSuccess?.(result);
319
+ return renameKeysFromRESTResponseToSDKResponse(
320
+ transformPaths2(result.data, [
321
+ {
322
+ transformFn: transformRESTAddressToSDKAddress,
323
+ paths: [
324
+ { path: "payments.charge.billingInfo.address" },
325
+ { path: "payments.charge.shippingInfo.address" }
326
+ ]
327
+ }
328
+ ])
329
+ );
330
+ } catch (err) {
331
+ const transformedError = sdkTransformError(
332
+ err,
333
+ {
334
+ spreadPathsToArguments: {},
335
+ explicitPathsToArguments: { search: "$[0]" },
336
+ singleArgumentUnchanged: false
337
+ },
338
+ ["search"]
339
+ );
340
+ sideEffects?.onError?.(err);
341
+ throw transformedError;
342
+ }
343
+ }
344
+ var utils = {
345
+ search: /* @__PURE__ */ createSearchUtils()
346
+ };
347
+
348
+ // src/payments-platform-v1-payment-payments.public.ts
349
+ function getPayment3(httpClient) {
350
+ return (paymentId) => getPayment2(
351
+ paymentId,
352
+ // @ts-ignore
353
+ { httpClient }
354
+ );
355
+ }
356
+ function searchPayments3(httpClient) {
357
+ return (search) => searchPayments2(
358
+ search,
359
+ // @ts-ignore
360
+ { httpClient }
361
+ );
362
+ }
363
+ var onPaymentCreated = /* @__PURE__ */ EventDefinition(
364
+ "wix.payments.platform.v1.payment_created",
365
+ true,
366
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
367
+ transformPaths3(event, [
368
+ {
369
+ transformFn: transformRESTTimestampToSDKTimestamp2,
370
+ paths: [
371
+ { path: "entity.createdDate" },
372
+ { path: "entity.updatedDate" },
373
+ { path: "entity.charge.createdDate" },
374
+ { path: "entity.charge.updatedDate" },
375
+ { path: "entity.refunds.createdDate" },
376
+ { path: "entity.refunds.updatedDate" },
377
+ { path: "entity.disputes.dueDate" },
378
+ { path: "entity.disputes.defendedDate" },
379
+ { path: "entity.disputes.acceptedDate" },
380
+ { path: "entity.disputes.createdDate" },
381
+ { path: "entity.disputes.updatedDate" },
382
+ { path: "entity.disputes.actions.dueDate" },
383
+ { path: "entity.notificationOfFraud.createdDate" },
384
+ { path: "metadata.eventTime" }
385
+ ]
386
+ },
387
+ {
388
+ transformFn: transformRESTAddressToSDKAddress2,
389
+ paths: [
390
+ { path: "entity.charge.billingInfo.address" },
391
+ { path: "entity.charge.shippingInfo.address" }
392
+ ]
393
+ }
394
+ ])
395
+ )
396
+ )();
397
+ var onPaymentUpdated = /* @__PURE__ */ EventDefinition(
398
+ "wix.payments.platform.v1.payment_updated",
399
+ true,
400
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
401
+ transformPaths3(event, [
402
+ {
403
+ transformFn: transformRESTTimestampToSDKTimestamp2,
404
+ paths: [
405
+ { path: "entity.createdDate" },
406
+ { path: "entity.updatedDate" },
407
+ { path: "entity.charge.createdDate" },
408
+ { path: "entity.charge.updatedDate" },
409
+ { path: "entity.refunds.createdDate" },
410
+ { path: "entity.refunds.updatedDate" },
411
+ { path: "entity.disputes.dueDate" },
412
+ { path: "entity.disputes.defendedDate" },
413
+ { path: "entity.disputes.acceptedDate" },
414
+ { path: "entity.disputes.createdDate" },
415
+ { path: "entity.disputes.updatedDate" },
416
+ { path: "entity.disputes.actions.dueDate" },
417
+ { path: "entity.notificationOfFraud.createdDate" },
418
+ { path: "metadata.eventTime" },
419
+ { path: "modifiedFields.createdDate" },
420
+ { path: "modifiedFields.updatedDate" },
421
+ { path: "modifiedFields.charge.createdDate" },
422
+ { path: "modifiedFields.charge.updatedDate" },
423
+ { path: "modifiedFields.refunds.createdDate" },
424
+ { path: "modifiedFields.refunds.updatedDate" },
425
+ { path: "modifiedFields.disputes.dueDate" },
426
+ { path: "modifiedFields.disputes.defendedDate" },
427
+ { path: "modifiedFields.disputes.acceptedDate" },
428
+ { path: "modifiedFields.disputes.createdDate" },
429
+ { path: "modifiedFields.disputes.updatedDate" },
430
+ { path: "modifiedFields.disputes.actions.dueDate" },
431
+ { path: "modifiedFields.notificationOfFraud.createdDate" }
432
+ ]
433
+ },
434
+ {
435
+ transformFn: transformRESTAddressToSDKAddress2,
436
+ paths: [
437
+ { path: "entity.charge.billingInfo.address" },
438
+ { path: "entity.charge.shippingInfo.address" },
439
+ { path: "modifiedFields.charge.billingInfo.address" },
440
+ { path: "modifiedFields.charge.shippingInfo.address" }
441
+ ]
442
+ }
443
+ ])
444
+ )
445
+ )();
446
+
447
+ // src/payments-platform-v1-payment-payments.context.ts
448
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
449
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
450
+ var getPayment4 = /* @__PURE__ */ createRESTModule(getPayment3);
451
+ var searchPayments4 = /* @__PURE__ */ createRESTModule(searchPayments3);
452
+ var onPaymentCreated2 = /* @__PURE__ */ createEventModule(
453
+ onPaymentCreated
454
+ );
455
+ var onPaymentUpdated2 = /* @__PURE__ */ createEventModule(
456
+ onPaymentUpdated
457
+ );
458
+ export {
459
+ AggregationType,
460
+ DisputeActionType,
461
+ DisputeChannel,
462
+ DisputeReason,
463
+ DisputeStage,
464
+ DisputeStatus,
465
+ Mode,
466
+ Reason,
467
+ RefundStatus,
468
+ ScalarType,
469
+ SellerProtection,
470
+ SortOrder,
471
+ Status,
472
+ VatType,
473
+ WebhookIdentityType,
474
+ getPayment4 as getPayment,
475
+ onPaymentCreated2 as onPaymentCreated,
476
+ onPaymentUpdated2 as onPaymentUpdated,
477
+ searchPayments4 as searchPayments,
478
+ utils
479
+ };
480
+ //# sourceMappingURL=index.mjs.map