@wix/auto_sdk_payments_psp-callbacks 1.0.44 → 1.0.46
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 +1 -396
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -0
- package/build/cjs/index.typings.js +1 -396
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +6 -0
- package/build/cjs/meta.js +1 -396
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +3 -1
- package/build/cjs/schemas.js +5 -1
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +1 -396
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -0
- package/build/es/index.typings.mjs +1 -396
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +6 -0
- package/build/es/meta.mjs +1 -396
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +3 -1
- package/build/es/schemas.mjs +5 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +1 -396
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +6 -0
- package/build/internal/cjs/index.typings.js +1 -396
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +6 -0
- package/build/internal/cjs/meta.js +1 -396
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +3 -1
- package/build/internal/cjs/schemas.js +5 -1
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +1 -396
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +6 -0
- package/build/internal/es/index.typings.mjs +1 -396
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +6 -0
- package/build/internal/es/meta.mjs +1 -396
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +3 -1
- package/build/internal/es/schemas.mjs +5 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -27,402 +27,7 @@ module.exports = __toCommonJS(meta_exports);
|
|
|
27
27
|
// src/payments-psp-v1-provider-platform-event-psp-callbacks.http.ts
|
|
28
28
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
29
29
|
function resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(opts) {
|
|
30
|
-
const domainToMappings = {
|
|
31
|
-
"cashier-services._base_domain_": [
|
|
32
|
-
{
|
|
33
|
-
srcPath: "",
|
|
34
|
-
destPath: ""
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
srcPath: "/_api/payment-services-web",
|
|
38
|
-
destPath: "/api"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"difm._base_domain_": [
|
|
42
|
-
{
|
|
43
|
-
srcPath: "/_api/payment-services-web",
|
|
44
|
-
destPath: "/api"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"invoices._base_domain_": [
|
|
48
|
-
{
|
|
49
|
-
srcPath: "/_api/payment-services-web",
|
|
50
|
-
destPath: "/api"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"apps._base_domain_": [
|
|
54
|
-
{
|
|
55
|
-
srcPath: "/_api/payment-services-web",
|
|
56
|
-
destPath: "/api"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"ecom._base_domain_": [
|
|
60
|
-
{
|
|
61
|
-
srcPath: "/_api/payment-services-web",
|
|
62
|
-
destPath: "/api"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"www.cartscheckout.com": [
|
|
66
|
-
{
|
|
67
|
-
srcPath: "/_api/payment-services-web",
|
|
68
|
-
destPath: "/api"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"cartscheckout.com": [
|
|
72
|
-
{
|
|
73
|
-
srcPath: "/_api/payment-services-web",
|
|
74
|
-
destPath: "/api"
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"cartscheckout._base_domain_": [
|
|
78
|
-
{
|
|
79
|
-
srcPath: "/_api/payment-services-web",
|
|
80
|
-
destPath: "/api"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"api._api_base_domain_": [
|
|
84
|
-
{
|
|
85
|
-
srcPath: "/payment-services-web",
|
|
86
|
-
destPath: ""
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"progallery._base_domain_": [
|
|
90
|
-
{
|
|
91
|
-
srcPath: "/_api/payment-services-web",
|
|
92
|
-
destPath: ""
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"progallerycdn._base_domain_": [
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/_api/payment-services-web",
|
|
98
|
-
destPath: ""
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"scheduler._base_domain_": [
|
|
102
|
-
{
|
|
103
|
-
srcPath: "/_api/payment-services-web",
|
|
104
|
-
destPath: "/api"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"events._base_domain_": [
|
|
108
|
-
{
|
|
109
|
-
srcPath: "/_api/payment-services-web",
|
|
110
|
-
destPath: "/api"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
srcPath: "/payment-services-web",
|
|
114
|
-
destPath: ""
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"bookings.wixapps.net": [
|
|
118
|
-
{
|
|
119
|
-
srcPath: "/_api/payment-services-web",
|
|
120
|
-
destPath: "/api"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"cashier._base_domain_": [
|
|
124
|
-
{
|
|
125
|
-
srcPath: "/_api/payment-services-web",
|
|
126
|
-
destPath: "/api"
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
"ecom.wixapps.net": [
|
|
130
|
-
{
|
|
131
|
-
srcPath: "/_api/payment-services-web",
|
|
132
|
-
destPath: "/api"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
"cashier.wixapps.net": [
|
|
136
|
-
{
|
|
137
|
-
srcPath: "/_api/payment-services-web",
|
|
138
|
-
destPath: "/api"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
srcPath: "",
|
|
142
|
-
destPath: ""
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"vod-server._base_domain_": [
|
|
146
|
-
{
|
|
147
|
-
srcPath: "/_api/payment-services-web",
|
|
148
|
-
destPath: "/api"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"vod.wixapps.net": [
|
|
152
|
-
{
|
|
153
|
-
srcPath: "/_api/payment-services-web",
|
|
154
|
-
destPath: "/api"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"www.wixhotels.com": [
|
|
158
|
-
{
|
|
159
|
-
srcPath: "/_api/payment-services-web",
|
|
160
|
-
destPath: "/api"
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
"editor._base_domain_": [
|
|
164
|
-
{
|
|
165
|
-
srcPath: "/_api/payment-services-web",
|
|
166
|
-
destPath: "/api"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
170
|
-
destPath: "/domain-verification/apple-pay"
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"blocks._base_domain_": [
|
|
174
|
-
{
|
|
175
|
-
srcPath: "/_api/payment-services-web",
|
|
176
|
-
destPath: "/api"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
180
|
-
destPath: "/domain-verification/apple-pay"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"create.editorx": [
|
|
184
|
-
{
|
|
185
|
-
srcPath: "/_api/payment-services-web",
|
|
186
|
-
destPath: "/api"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
190
|
-
destPath: "/domain-verification/apple-pay"
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
"test-applepay.wixapps.net": [
|
|
194
|
-
{
|
|
195
|
-
srcPath: "/_api/payment-services-web",
|
|
196
|
-
destPath: "/api"
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"www.wixapis.com": [
|
|
200
|
-
{
|
|
201
|
-
srcPath: "/payments",
|
|
202
|
-
destPath: "/api/merchant"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
srcPath: "/payments/v1/provider-platform-events",
|
|
206
|
-
destPath: "/payments/v1/provider-platform-events"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
srcPath: "/api/plugin/v1/transactions",
|
|
210
|
-
destPath: "/api/plugin/v1/transactions"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
srcPath: "/payments/api/merchant",
|
|
214
|
-
destPath: "/api/merchant"
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
"us-applepay.wixapps.net": [
|
|
218
|
-
{
|
|
219
|
-
srcPath: "/_api/payment-services-web",
|
|
220
|
-
destPath: "/api"
|
|
221
|
-
}
|
|
222
|
-
],
|
|
223
|
-
"eu-applepay.wixapps.net": [
|
|
224
|
-
{
|
|
225
|
-
srcPath: "/_api/payment-services-web",
|
|
226
|
-
destPath: "/api"
|
|
227
|
-
}
|
|
228
|
-
],
|
|
229
|
-
"payments-sb.wixapps.net": [
|
|
230
|
-
{
|
|
231
|
-
srcPath: "/_api/payment-services-web",
|
|
232
|
-
destPath: "/api"
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"manage._base_domain_": [
|
|
236
|
-
{
|
|
237
|
-
srcPath: "/_api/payment-services-web",
|
|
238
|
-
destPath: "/api"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
srcPath: "/ambassador/payment-services-web",
|
|
242
|
-
destPath: ""
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
246
|
-
destPath: "/domain-verification/apple-pay"
|
|
247
|
-
}
|
|
248
|
-
],
|
|
249
|
-
_: [
|
|
250
|
-
{
|
|
251
|
-
srcPath: "/_api/payment-services-web",
|
|
252
|
-
destPath: "/api"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
256
|
-
destPath: "/domain-verification/apple-pay"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
srcPath: "/payments/psp/v1/provider-platform-events",
|
|
260
|
-
destPath: "/payments/v1/provider-platform-events"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
srcPath: "/api/charges/cashApp/square",
|
|
264
|
-
destPath: "/api/charges/cashApp/square"
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"events.wixapps.net": [
|
|
268
|
-
{
|
|
269
|
-
srcPath: "/_api/payment-services-web",
|
|
270
|
-
destPath: "/api"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"tpa.wixapps.net": [
|
|
274
|
-
{
|
|
275
|
-
srcPath: "/_api/payment-services-web",
|
|
276
|
-
destPath: "/api"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
srcPath: "/payment-services-web",
|
|
280
|
-
destPath: ""
|
|
281
|
-
}
|
|
282
|
-
],
|
|
283
|
-
"pricing-plans.wixapps.net": [
|
|
284
|
-
{
|
|
285
|
-
srcPath: "/_api/payment-services-web",
|
|
286
|
-
destPath: "/api"
|
|
287
|
-
}
|
|
288
|
-
],
|
|
289
|
-
"editor-flow.wixapps.net": [
|
|
290
|
-
{
|
|
291
|
-
srcPath: "/_api/payment-services-web",
|
|
292
|
-
destPath: "/api"
|
|
293
|
-
}
|
|
294
|
-
],
|
|
295
|
-
"bo._base_domain_": [
|
|
296
|
-
{
|
|
297
|
-
srcPath: "/_api/payment-services-web",
|
|
298
|
-
destPath: "/api"
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
"wixbo.ai": [
|
|
302
|
-
{
|
|
303
|
-
srcPath: "/_api/payment-services-web",
|
|
304
|
-
destPath: "/api"
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"wix-bo.com": [
|
|
308
|
-
{
|
|
309
|
-
srcPath: "/_api/payment-services-web",
|
|
310
|
-
destPath: "/api"
|
|
311
|
-
}
|
|
312
|
-
],
|
|
313
|
-
"editor.wixapps.net": [
|
|
314
|
-
{
|
|
315
|
-
srcPath: "/_api/payment-services-web",
|
|
316
|
-
destPath: "/api"
|
|
317
|
-
}
|
|
318
|
-
],
|
|
319
|
-
"premium._base_domain_": [
|
|
320
|
-
{
|
|
321
|
-
srcPath: "/_api/payment-services-web",
|
|
322
|
-
destPath: "/api"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
srcPath: "/payment-services-web",
|
|
326
|
-
destPath: ""
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
srcPath: "/lib-mbapi/include/modules/gateway/return/paypal.php",
|
|
330
|
-
destPath: "/api/payPal/payments/legacy-ipn-to-ignore"
|
|
331
|
-
}
|
|
332
|
-
],
|
|
333
|
-
"www._base_domain_": [
|
|
334
|
-
{
|
|
335
|
-
srcPath: "/_api/payment-services-web",
|
|
336
|
-
destPath: "/api"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
340
|
-
destPath: "/domain-verification/apple-pay"
|
|
341
|
-
}
|
|
342
|
-
],
|
|
343
|
-
"payment-webhooks.wixapps.net": [
|
|
344
|
-
{
|
|
345
|
-
srcPath: "/cashier/accounts/stripe",
|
|
346
|
-
destPath: "/api/merchant/stripe"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
srcPath: "/cashier/transactions/stripe",
|
|
350
|
-
destPath: "/api/stripe"
|
|
351
|
-
}
|
|
352
|
-
],
|
|
353
|
-
"cashier-services.wixapis.com": [
|
|
354
|
-
{
|
|
355
|
-
srcPath: "/payments/v1/provider-platform-events",
|
|
356
|
-
destPath: "/payments/v1/provider-platform-events"
|
|
357
|
-
}
|
|
358
|
-
],
|
|
359
|
-
"currency-converter.wixapps.net": [
|
|
360
|
-
{
|
|
361
|
-
srcPath: "/_api/payment-services-web",
|
|
362
|
-
destPath: "/api"
|
|
363
|
-
}
|
|
364
|
-
],
|
|
365
|
-
"*.dev.wix-code.com": [
|
|
366
|
-
{
|
|
367
|
-
srcPath: "/_api/payment-services-web",
|
|
368
|
-
destPath: "/api"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
srcPath: "/payments/psp/v1/provider-platform-events",
|
|
372
|
-
destPath: "/payments/v1/provider-platform-events"
|
|
373
|
-
}
|
|
374
|
-
],
|
|
375
|
-
"challenger.wixapps.net": [
|
|
376
|
-
{
|
|
377
|
-
srcPath: "/payment-services-web",
|
|
378
|
-
destPath: ""
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
srcPath: "/_api/payment-services-web",
|
|
382
|
-
destPath: "/api"
|
|
383
|
-
}
|
|
384
|
-
],
|
|
385
|
-
"platform.rise.ai": [
|
|
386
|
-
{
|
|
387
|
-
srcPath: "/payment-services-web",
|
|
388
|
-
destPath: ""
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
srcPath: "/_api/payment-services-web",
|
|
392
|
-
destPath: "/api"
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
"manage.base44.com": [
|
|
396
|
-
{
|
|
397
|
-
srcPath: "/_api/payment-services-web",
|
|
398
|
-
destPath: "/api"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
srcPath: "/ambassador/payment-services-web",
|
|
402
|
-
destPath: ""
|
|
403
|
-
}
|
|
404
|
-
],
|
|
405
|
-
"payments.base44.com": [
|
|
406
|
-
{
|
|
407
|
-
srcPath: "/_api/payment-services-web",
|
|
408
|
-
destPath: "/api"
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
srcPath: "/ambassador/payment-services-web",
|
|
412
|
-
destPath: ""
|
|
413
|
-
}
|
|
414
|
-
],
|
|
415
|
-
"billing.base44.com": [
|
|
416
|
-
{
|
|
417
|
-
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
418
|
-
destPath: "/domain-verification/apple-pay"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
srcPath: "/_api/payment-services-web",
|
|
422
|
-
destPath: "/api"
|
|
423
|
-
}
|
|
424
|
-
]
|
|
425
|
-
};
|
|
30
|
+
const domainToMappings = {};
|
|
426
31
|
return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
427
32
|
}
|
|
428
33
|
var PACKAGE_NAME = "@wix/auto_sdk_payments_psp-callbacks";
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/payments-psp-v1-provider-platform-event-psp-callbacks.http.ts","../../src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.ts"],"sourcesContent":["export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js';\n","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'cashier-services._base_domain_': [\n {\n srcPath: '',\n destPath: '',\n },\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'difm._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'invoices._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'ecom._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'www.cartscheckout.com': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'cartscheckout.com': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'cartscheckout._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/payment-services-web',\n destPath: '',\n },\n ],\n 'progallery._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '',\n },\n ],\n 'progallerycdn._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '',\n },\n ],\n 'scheduler._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'events._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/payment-services-web',\n destPath: '',\n },\n ],\n 'bookings.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'cashier._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'ecom.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'cashier.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '',\n destPath: '',\n },\n ],\n 'vod-server._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'vod.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'www.wixhotels.com': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/.well-known/apple-developer-merchantid-domain-association',\n destPath: '/domain-verification/apple-pay',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/.well-known/apple-developer-merchantid-domain-association',\n destPath: '/domain-verification/apple-pay',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/.well-known/apple-developer-merchantid-domain-association',\n destPath: '/domain-verification/apple-pay',\n },\n ],\n 'test-applepay.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/payments',\n destPath: '/api/merchant',\n },\n {\n srcPath: '/payments/v1/provider-platform-events',\n destPath: '/payments/v1/provider-platform-events',\n },\n {\n srcPath: '/api/plugin/v1/transactions',\n destPath: '/api/plugin/v1/transactions',\n },\n {\n srcPath: '/payments/api/merchant',\n destPath: '/api/merchant',\n },\n ],\n 'us-applepay.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'eu-applepay.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'payments-sb.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/ambassador/payment-services-web',\n destPath: '',\n },\n {\n srcPath: '/.well-known/apple-developer-merchantid-domain-association',\n destPath: '/domain-verification/apple-pay',\n },\n ],\n _: [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/.well-known/apple-developer-merchantid-domain-association',\n destPath: '/domain-verification/apple-pay',\n },\n {\n srcPath: '/payments/psp/v1/provider-platform-events',\n destPath: '/payments/v1/provider-platform-events',\n },\n {\n srcPath: '/api/charges/cashApp/square',\n destPath: '/api/charges/cashApp/square',\n },\n ],\n 'events.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'tpa.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/payment-services-web',\n destPath: '',\n },\n ],\n 'pricing-plans.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/payment-services-web',\n destPath: '',\n },\n {\n srcPath: '/lib-mbapi/include/modules/gateway/return/paypal.php',\n destPath: '/api/payPal/payments/legacy-ipn-to-ignore',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/.well-known/apple-developer-merchantid-domain-association',\n destPath: '/domain-verification/apple-pay',\n },\n ],\n 'payment-webhooks.wixapps.net': [\n {\n srcPath: '/cashier/accounts/stripe',\n destPath: '/api/merchant/stripe',\n },\n {\n srcPath: '/cashier/transactions/stripe',\n destPath: '/api/stripe',\n },\n ],\n 'cashier-services.wixapis.com': [\n {\n srcPath: '/payments/v1/provider-platform-events',\n destPath: '/payments/v1/provider-platform-events',\n },\n ],\n 'currency-converter.wixapps.net': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/payments/psp/v1/provider-platform-events',\n destPath: '/payments/v1/provider-platform-events',\n },\n ],\n 'challenger.wixapps.net': [\n {\n srcPath: '/payment-services-web',\n destPath: '',\n },\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'platform.rise.ai': [\n {\n srcPath: '/payment-services-web',\n destPath: '',\n },\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'manage.base44.com': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/ambassador/payment-services-web',\n destPath: '',\n },\n ],\n 'payments.base44.com': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n {\n srcPath: '/ambassador/payment-services-web',\n destPath: '',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/.well-known/apple-developer-merchantid-domain-association',\n destPath: '/domain-verification/apple-pay',\n },\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_psp-callbacks';\n\n/**\n * This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.\n *\n * Calls to this endpoint must include a `User-Agent` header with the name of the PSP and the integration version in this format: `{PSP}/{version}`.\n * PSP's create their own version numbers.\n *\n * > You cannot try out this endpoint because an `Authorization` header value has to be obtained\n * > with the OAuth 2.0 client credentials flow for a specific scope.\n * > So please ignore the **Authorization** section below as well as the **Try It Out** button.\n */\nexport function submitEvent(payload: object): RequestOptionsFactory<any> {\n function __submitEvent({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.psp.v1.provider_platform_event',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(\n {\n protoPath: '/payments/v1/provider-platform-events',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __submitEvent;\n}\n","import * as ambassadorWixPaymentsPspV1ProviderPlatformEvent from './payments-psp-v1-provider-platform-event-psp-callbacks.http.js';\nimport * as ambassadorWixPaymentsPspV1ProviderPlatformEventTypes from './payments-psp-v1-provider-platform-event-psp-callbacks.types.js';\nimport * as ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function submitEvent(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes.SubmitEventRequest,\n ambassadorWixPaymentsPspV1ProviderPlatformEventTypes.SubmitEventRequest,\n ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes.SubmitEventResponse,\n ambassadorWixPaymentsPspV1ProviderPlatformEventTypes.SubmitEventResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsPspV1ProviderPlatformEvent.submitEvent(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/payments/v1/provider-platform-events',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n ProviderPlatformEvent as ProviderPlatformEventOriginal,\n ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOfOriginal,\n RefundEvent as RefundEventOriginal,\n TransactionEvent as TransactionEventOriginal,\n CredentialsOnFile as CredentialsOnFileOriginal,\n CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOfOriginal,\n CardReference as CardReferenceOriginal,\n PaymentMethodReference as PaymentMethodReferenceOriginal,\n CardDetails as CardDetailsOriginal,\n CaptureEvent as CaptureEventOriginal,\n VoidEvent as VoidEventOriginal,\n SubmitEventRequest as SubmitEventRequestOriginal,\n SubmitEventResponse as SubmitEventResponseOriginal,\n} from './payments-psp-v1-provider-platform-event-psp-callbacks.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,qBAAAA;AAAA;AAAA;;;ACAA,0BAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,kCAAkC;AAAA,MAChC;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,0BAA0B;AAAA,MACxB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,+BAA+B;AAAA,MAC7B;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,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ACF;AAAA,EACF;AAEA,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAYd,SAAS,YAAY,SAA6C;AACvE,WAAS,cAAc,EAAE,KAAK,GAAQ;AACpC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ACtaO,SAASC,eAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C,YAAY,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["submitEvent","submitEvent"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/payments-psp-v1-provider-platform-event-psp-callbacks.http.ts","../../src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.ts"],"sourcesContent":["export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js';\n","import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_psp-callbacks';\n\n/**\n * This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.\n *\n * Calls to this endpoint must include a `User-Agent` header with the name of the PSP and the integration version in this format: `{PSP}/{version}`.\n * PSP's create their own version numbers.\n *\n * > You cannot try out this endpoint because an `Authorization` header value has to be obtained\n * > with the OAuth 2.0 client credentials flow for a specific scope.\n * > So please ignore the **Authorization** section below as well as the **Try It Out** button.\n */\nexport function submitEvent(payload: object): RequestOptionsFactory<any> {\n function __submitEvent({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.psp.v1.provider_platform_event',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(\n {\n protoPath: '/payments/v1/provider-platform-events',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __submitEvent;\n}\n","import * as ambassadorWixPaymentsPspV1ProviderPlatformEvent from './payments-psp-v1-provider-platform-event-psp-callbacks.http.js';\nimport * as ambassadorWixPaymentsPspV1ProviderPlatformEventTypes from './payments-psp-v1-provider-platform-event-psp-callbacks.types.js';\nimport * as ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function submitEvent(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes.SubmitEventRequest,\n ambassadorWixPaymentsPspV1ProviderPlatformEventTypes.SubmitEventRequest,\n ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes.SubmitEventResponse,\n ambassadorWixPaymentsPspV1ProviderPlatformEventTypes.SubmitEventResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsPspV1ProviderPlatformEvent.submitEvent(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/payments/v1/provider-platform-events',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n ProviderPlatformEvent as ProviderPlatformEventOriginal,\n ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOfOriginal,\n RefundEvent as RefundEventOriginal,\n TransactionEvent as TransactionEventOriginal,\n CredentialsOnFile as CredentialsOnFileOriginal,\n CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOfOriginal,\n CardReference as CardReferenceOriginal,\n PaymentMethodReference as PaymentMethodReferenceOriginal,\n CardDetails as CardDetailsOriginal,\n CaptureEvent as CaptureEventOriginal,\n VoidEvent as VoidEventOriginal,\n SubmitEventRequest as SubmitEventRequestOriginal,\n SubmitEventResponse as SubmitEventResponseOriginal,\n} from './payments-psp-v1-provider-platform-event-psp-callbacks.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,qBAAAA;AAAA;AAAA;;;ACAA,0BAA2B;AAI3B,SAAS,2EACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAYd,SAAS,YAAY,SAA6C;AACvE,WAAS,cAAc,EAAE,KAAK,GAAQ;AACpC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AC3BO,SAASC,eAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C,YAAY,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["submitEvent","submitEvent"]}
|
package/build/cjs/schemas.d.ts
CHANGED
|
@@ -32,7 +32,9 @@ declare const SubmitEventRequest: z.ZodObject<{
|
|
|
32
32
|
reasonCode: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
errorCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
34
|
errorMessage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
|
-
credentialsOnFile: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
35
|
+
credentialsOnFile: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
36
|
+
paymentMethod: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
36
38
|
cardReference: z.ZodOptional<z.ZodNever>;
|
|
37
39
|
paymentMethodReference: z.ZodOptional<z.ZodNever>;
|
|
38
40
|
}, z.core.$strip>, z.ZodObject<{
|
package/build/cjs/schemas.js
CHANGED
|
@@ -84,7 +84,11 @@ var SubmitEventRequest = z.object({
|
|
|
84
84
|
errorCode: z.string().describe("PSP-specific error code.").optional().nullable(),
|
|
85
85
|
errorMessage: z.string().describe("PSP-specific error message.").optional().nullable(),
|
|
86
86
|
credentialsOnFile: z.intersection(
|
|
87
|
-
z.object({
|
|
87
|
+
z.object({
|
|
88
|
+
paymentMethod: z.string().describe(
|
|
89
|
+
"Payment method (for example `creditCard`) to use for future payments, when it differs from the current one."
|
|
90
|
+
).min(1).max(100).optional().nullable()
|
|
91
|
+
}),
|
|
88
92
|
z.xor([
|
|
89
93
|
z.object({
|
|
90
94
|
cardReference: z.never().optional(),
|
package/build/cjs/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/payments-psp-v1-provider-platform-event-psp-callbacks.schemas.ts"],"sourcesContent":["export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.schemas.js';\n","import * as z from 'zod';\n\nexport const SubmitEventRequest = z.object({\n event: z\n .intersection(\n z.object({\n pluginId: z.string().describe('This field is deprecated.').optional(),\n siteId: z\n .string()\n .describe('Wix site ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n refund: z.never().optional(),\n transaction: z.never().optional(),\n capture: z.never().optional(),\n void: z.never().optional(),\n }),\n z.object({\n transaction: z.never().optional(),\n capture: z.never().optional(),\n void: z.never().optional(),\n refund: z\n .object({\n wixTransactionId: z\n .string()\n .describe('Wix transaction ID.')\n .optional(),\n pluginRefundId: z.string().describe('PSP refund ID.').optional(),\n reasonCode: z\n .number()\n .int()\n .describe(\n 'Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes#all-apis_provider-platform_reason-codes_refund-declined) indicating a failed request.'\n )\n .optional(),\n amount: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Refunded amount.')\n .optional(),\n wixRefundId: z\n .string()\n .describe(\n 'Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard.'\n )\n .optional()\n .nullable(),\n errorCode: z\n .string()\n .describe('PSP-specific error code.')\n .optional()\n .nullable(),\n errorMessage: z\n .string()\n .describe('PSP-specific error message.')\n .optional()\n .nullable(),\n })\n .describe('Refund event data.'),\n }),\n z.object({\n refund: z.never().optional(),\n capture: z.never().optional(),\n void: z.never().optional(),\n transaction: z\n .object({\n wixTransactionId: z\n .string()\n .describe('Wix transaction ID.')\n .optional(),\n pluginTransactionId: z\n .string()\n .describe('PSP transaction ID.')\n .optional(),\n reasonCode: z\n .number()\n .int()\n .describe(\n 'Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request.'\n )\n .optional(),\n errorCode: z\n .string()\n .describe('PSP-specific error code.')\n .optional()\n .nullable(),\n errorMessage: z\n .string()\n .describe('PSP-specific error message.')\n .optional()\n .nullable(),\n credentialsOnFile: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n cardReference: z.never().optional(),\n paymentMethodReference: z.never().optional(),\n }),\n z.object({\n paymentMethodReference: z.never().optional(),\n cardReference: z\n .object({\n networkTransactionId: z\n .string()\n .describe('Network token.')\n .optional(),\n dsTransactionId: z\n .string()\n .describe('Directory Server transaction ID')\n .optional()\n .nullable(),\n transactionLinkId: z\n .string()\n .describe(\n 'Transaction Link Identifier assigned by Mastercard.'\n )\n .min(1)\n .max(22)\n .optional()\n .nullable(),\n })\n .describe('Network token data.'),\n }),\n z.object({\n cardReference: z.never().optional(),\n paymentMethodReference: z\n .object({\n token: z\n .string()\n .describe(\n 'Payment method token created by the PSP.'\n )\n .optional(),\n })\n .describe('Provider generated token data.'),\n }),\n ])\n )\n .describe('Token data for stored payment method.')\n .optional(),\n cardDetails: z\n .object({\n bin: z\n .string()\n .describe(\n \"Issuer (business) identification number. First 6 or 8 digits of the card's number.\"\n )\n .min(6)\n .max(8)\n .optional()\n .nullable(),\n lastFour: z\n .string()\n .describe(\"Last 4 digits of the card's number.\")\n .min(4)\n .max(4)\n .optional()\n .nullable(),\n })\n .describe(\n \"Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN.\"\n )\n .optional(),\n authorizedAmount: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n \"Total amount authorized in a currency's minor units. Required for partial authorization events.\\nLearn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).\"\n )\n .optional()\n .nullable(),\n })\n .describe('Transaction event data.'),\n }),\n z.object({\n refund: z.never().optional(),\n transaction: z.never().optional(),\n void: z.never().optional(),\n capture: z\n .object({\n wixTransactionId: z\n .string()\n .describe('Wix transaction ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n reasonCode: z\n .number()\n .int()\n .describe(\n \"Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes) indicating request's status.\"\n )\n .optional(),\n amount: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Total amount captured in a currency’s minor units.\\nLearn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).'\n )\n .optional(),\n errorCode: z\n .string()\n .describe('PSP-specific error code.')\n .max(50)\n .optional()\n .nullable(),\n errorMessage: z\n .string()\n .describe('PSP-specific error message.')\n .max(300)\n .optional()\n .nullable(),\n })\n .describe('Capture event data.'),\n }),\n z.object({\n refund: z.never().optional(),\n transaction: z.never().optional(),\n capture: z.never().optional(),\n void: z\n .object({\n wixTransactionId: z\n .string()\n .describe('Wix transaction ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n reasonCode: z\n .number()\n .int()\n .describe(\n \"Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes) indicating request's status.\"\n )\n .optional(),\n amount: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Total amount voided in a currency’s minor units.\\nLearn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).'\n )\n .optional(),\n errorCode: z\n .string()\n .describe('PSP-specific error code.')\n .max(50)\n .optional()\n .nullable(),\n errorMessage: z\n .string()\n .describe('PSP-specific error message.')\n .max(300)\n .optional()\n .nullable(),\n })\n .describe('Void event data.'),\n }),\n ])\n )\n .describe('Event data.'),\n});\nexport const SubmitEventResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,OACG;AAAA,IACG,SAAO;AAAA,MACP,UAAY,SAAO,EAAE,SAAS,2BAA2B,EAAE,SAAS;AAAA,MACpE,QACG,SAAO,EACP,SAAS,cAAc,EACvB;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,IACC,MAAI;AAAA,MACF,SAAO;AAAA,QACP,QAAU,QAAM,EAAE,SAAS;AAAA,QAC3B,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,SAAW,QAAM,EAAE,SAAS;AAAA,QAC5B,MAAQ,QAAM,EAAE,SAAS;AAAA,MAC3B,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,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AAA,UACN,kBACG,SAAO,EACP,SAAS,qBAAqB,EAC9B;AAAA,YACC;AAAA,YACA;AAAA,UACF,EACC,SAAS;AAAA,UACZ,YACG,SAAO,EACP,IAAI,EACJ;AAAA,YACC;AAAA,UACF,EACC,SAAS;AAAA,UACZ,QACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,YACC;AAAA,UACF,EACC,SAAS;AAAA,UACZ,WACG,SAAO,EACP,SAAS,0BAA0B,EACnC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,UACZ,cACG,SAAO,EACP,SAAS,6BAA6B,EACtC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACd,CAAC,EACA,SAAS,qBAAqB;AAAA,MACnC,CAAC;AAAA,MACC,SAAO;AAAA,QACP,QAAU,QAAM,EAAE,SAAS;AAAA,QAC3B,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,SAAW,QAAM,EAAE,SAAS;AAAA,QAC5B,MACG,SAAO;AAAA,UACN,kBACG,SAAO,EACP,SAAS,qBAAqB,EAC9B;AAAA,YACC;AAAA,YACA;AAAA,UACF,EACC,SAAS;AAAA,UACZ,YACG,SAAO,EACP,IAAI,EACJ;AAAA,YACC;AAAA,UACF,EACC,SAAS;AAAA,UACZ,QACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,YACC;AAAA,UACF,EACC,SAAS;AAAA,UACZ,WACG,SAAO,EACP,SAAS,0BAA0B,EACnC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,UACZ,cACG,SAAO,EACP,SAAS,6BAA6B,EACtC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACd,CAAC,EACA,SAAS,kBAAkB;AAAA,MAChC,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACC,SAAS,aAAa;AAC3B,CAAC;AACM,IAAM,sBAAwB,SAAO,CAAC,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/payments-psp-v1-provider-platform-event-psp-callbacks.schemas.ts"],"sourcesContent":["export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.schemas.js';\n","import * as z from 'zod';\n\nexport const SubmitEventRequest = z.object({\n event: z\n .intersection(\n z.object({\n pluginId: z.string().describe('This field is deprecated.').optional(),\n siteId: z\n .string()\n .describe('Wix site ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n refund: z.never().optional(),\n transaction: z.never().optional(),\n capture: z.never().optional(),\n void: z.never().optional(),\n }),\n z.object({\n transaction: z.never().optional(),\n capture: z.never().optional(),\n void: z.never().optional(),\n refund: z\n .object({\n wixTransactionId: z\n .string()\n .describe('Wix transaction ID.')\n .optional(),\n pluginRefundId: z.string().describe('PSP refund ID.').optional(),\n reasonCode: z\n .number()\n .int()\n .describe(\n 'Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes#all-apis_provider-platform_reason-codes_refund-declined) indicating a failed request.'\n )\n .optional(),\n amount: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Refunded amount.')\n .optional(),\n wixRefundId: z\n .string()\n .describe(\n 'Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard.'\n )\n .optional()\n .nullable(),\n errorCode: z\n .string()\n .describe('PSP-specific error code.')\n .optional()\n .nullable(),\n errorMessage: z\n .string()\n .describe('PSP-specific error message.')\n .optional()\n .nullable(),\n })\n .describe('Refund event data.'),\n }),\n z.object({\n refund: z.never().optional(),\n capture: z.never().optional(),\n void: z.never().optional(),\n transaction: z\n .object({\n wixTransactionId: z\n .string()\n .describe('Wix transaction ID.')\n .optional(),\n pluginTransactionId: z\n .string()\n .describe('PSP transaction ID.')\n .optional(),\n reasonCode: z\n .number()\n .int()\n .describe(\n 'Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request.'\n )\n .optional(),\n errorCode: z\n .string()\n .describe('PSP-specific error code.')\n .optional()\n .nullable(),\n errorMessage: z\n .string()\n .describe('PSP-specific error message.')\n .optional()\n .nullable(),\n credentialsOnFile: z\n .intersection(\n z.object({\n paymentMethod: z\n .string()\n .describe(\n 'Payment method (for example `creditCard`) to use for future payments, when it differs from the current one.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n }),\n z.xor([\n z.object({\n cardReference: z.never().optional(),\n paymentMethodReference: z.never().optional(),\n }),\n z.object({\n paymentMethodReference: z.never().optional(),\n cardReference: z\n .object({\n networkTransactionId: z\n .string()\n .describe('Network token.')\n .optional(),\n dsTransactionId: z\n .string()\n .describe('Directory Server transaction ID')\n .optional()\n .nullable(),\n transactionLinkId: z\n .string()\n .describe(\n 'Transaction Link Identifier assigned by Mastercard.'\n )\n .min(1)\n .max(22)\n .optional()\n .nullable(),\n })\n .describe('Network token data.'),\n }),\n z.object({\n cardReference: z.never().optional(),\n paymentMethodReference: z\n .object({\n token: z\n .string()\n .describe(\n 'Payment method token created by the PSP.'\n )\n .optional(),\n })\n .describe('Provider generated token data.'),\n }),\n ])\n )\n .describe('Token data for stored payment method.')\n .optional(),\n cardDetails: z\n .object({\n bin: z\n .string()\n .describe(\n \"Issuer (business) identification number. First 6 or 8 digits of the card's number.\"\n )\n .min(6)\n .max(8)\n .optional()\n .nullable(),\n lastFour: z\n .string()\n .describe(\"Last 4 digits of the card's number.\")\n .min(4)\n .max(4)\n .optional()\n .nullable(),\n })\n .describe(\n \"Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN.\"\n )\n .optional(),\n authorizedAmount: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n \"Total amount authorized in a currency's minor units. Required for partial authorization events.\\nLearn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).\"\n )\n .optional()\n .nullable(),\n })\n .describe('Transaction event data.'),\n }),\n z.object({\n refund: z.never().optional(),\n transaction: z.never().optional(),\n void: z.never().optional(),\n capture: z\n .object({\n wixTransactionId: z\n .string()\n .describe('Wix transaction ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n reasonCode: z\n .number()\n .int()\n .describe(\n \"Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes) indicating request's status.\"\n )\n .optional(),\n amount: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Total amount captured in a currency’s minor units.\\nLearn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).'\n )\n .optional(),\n errorCode: z\n .string()\n .describe('PSP-specific error code.')\n .max(50)\n .optional()\n .nullable(),\n errorMessage: z\n .string()\n .describe('PSP-specific error message.')\n .max(300)\n .optional()\n .nullable(),\n })\n .describe('Capture event data.'),\n }),\n z.object({\n refund: z.never().optional(),\n transaction: z.never().optional(),\n capture: z.never().optional(),\n void: z\n .object({\n wixTransactionId: z\n .string()\n .describe('Wix transaction ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n reasonCode: z\n .number()\n .int()\n .describe(\n \"Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes) indicating request's status.\"\n )\n .optional(),\n amount: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Total amount voided in a currency’s minor units.\\nLearn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).'\n )\n .optional(),\n errorCode: z\n .string()\n .describe('PSP-specific error code.')\n .max(50)\n .optional()\n .nullable(),\n errorMessage: z\n .string()\n .describe('PSP-specific error message.')\n .max(300)\n .optional()\n .nullable(),\n })\n .describe('Void event data.'),\n }),\n ])\n )\n .describe('Event data.'),\n});\nexport const SubmitEventResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,OACG;AAAA,IACG,SAAO;AAAA,MACP,UAAY,SAAO,EAAE,SAAS,2BAA2B,EAAE,SAAS;AAAA,MACpE,QACG,SAAO,EACP,SAAS,cAAc,EACvB;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,IACC,MAAI;AAAA,MACF,SAAO;AAAA,QACP,QAAU,QAAM,EAAE,SAAS;AAAA,QAC3B,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,SAAW,QAAM,EAAE,SAAS;AAAA,QAC5B,MAAQ,QAAM,EAAE,SAAS;AAAA,MAC3B,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,SAAW,QAAM,EAAE,SAAS;AAAA,QAC5B,MAAQ,QAAM,EAAE,SAAS;AAAA,QACzB,QACG,SAAO;AAAA,UACN,kBACG,SAAO,EACP,SAAS,qBAAqB,EAC9B,SAAS;AAAA,UACZ,gBAAkB,SAAO,EAAE,SAAS,gBAAgB,EAAE,SAAS;AAAA,UAC/D,YACG,SAAO,EACP,IAAI,EACJ;AAAA,YACC;AAAA,UACF,EACC,SAAS;AAAA,UACZ,QACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C,SAAS,kBAAkB,EAC3B,SAAS;AAAA,UACZ,aACG,SAAO,EACP;AAAA,YACC;AAAA,UACF,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