@wix/auto_sdk_payments_psp-callbacks 1.0.8 → 1.0.10

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 (131) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
  11. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +7 -0
  12. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
  13. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
  14. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +350 -0
  15. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
  16. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
  17. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +47 -0
  18. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
  19. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
  20. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +12 -0
  21. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
  22. package/build/{internal/payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.mts → cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts} +13 -15
  23. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +3 -0
  24. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
  25. package/build/{internal/meta.d.mts → cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts} +30 -29
  26. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +67 -0
  27. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
  38. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +4 -0
  39. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
  40. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
  41. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +346 -0
  42. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
  43. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
  44. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +20 -0
  45. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
  46. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
  47. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +8 -0
  48. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
  49. package/build/{internal/payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.ts → es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts} +13 -15
  50. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +2 -0
  51. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
  52. package/build/{internal/meta.d.ts → es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts} +30 -29
  53. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +40 -0
  54. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
  65. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +7 -0
  66. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
  67. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
  68. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +350 -0
  69. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
  70. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
  71. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +47 -0
  72. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
  73. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
  74. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +12 -0
  75. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
  76. package/build/{payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.mts → internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts} +13 -15
  77. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +3 -0
  78. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
  79. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +169 -0
  80. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +67 -0
  81. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
  92. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +4 -0
  93. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
  94. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
  95. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +346 -0
  96. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
  97. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
  98. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +20 -0
  99. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
  100. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
  101. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +8 -0
  102. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
  103. package/build/{payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.ts → internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts} +13 -15
  104. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +2 -0
  105. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
  106. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +169 -0
  107. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +40 -0
  108. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -24
  111. package/build/index.d.ts +0 -24
  112. package/build/index.js +0 -410
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -383
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -24
  117. package/build/internal/index.d.ts +0 -24
  118. package/build/internal/index.js +0 -410
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -383
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.js +0 -389
  123. package/build/internal/meta.js.map +0 -1
  124. package/build/internal/meta.mjs +0 -362
  125. package/build/internal/meta.mjs.map +0 -1
  126. package/build/meta.d.mts +0 -168
  127. package/build/meta.d.ts +0 -168
  128. package/build/meta.js +0 -389
  129. package/build/meta.js.map +0 -1
  130. package/build/meta.mjs +0 -362
  131. package/build/meta.mjs.map +0 -1
@@ -1,389 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // meta.ts
21
- var meta_exports = {};
22
- __export(meta_exports, {
23
- submitEvent: () => submitEvent2
24
- });
25
- module.exports = __toCommonJS(meta_exports);
26
-
27
- // src/payments-psp-v1-provider-platform-event-psp-callbacks.http.ts
28
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
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
- "blocks._base_domain_": [
170
- {
171
- srcPath: "/_api/payment-services-web",
172
- destPath: "/api"
173
- }
174
- ],
175
- "create.editorx": [
176
- {
177
- srcPath: "/_api/payment-services-web",
178
- destPath: "/api"
179
- }
180
- ],
181
- "test-applepay.wixapps.net": [
182
- {
183
- srcPath: "/_api/payment-services-web",
184
- destPath: "/api"
185
- }
186
- ],
187
- "www.wixapis.com": [
188
- {
189
- srcPath: "/payments",
190
- destPath: "/api/merchant"
191
- },
192
- {
193
- srcPath: "/payments/v1/provider-platform-events",
194
- destPath: "/payments/v1/provider-platform-events"
195
- },
196
- {
197
- srcPath: "/api/plugin/v1/transactions",
198
- destPath: "/api/plugin/v1/transactions"
199
- },
200
- {
201
- srcPath: "/payments/api/merchant",
202
- destPath: "/api/merchant"
203
- }
204
- ],
205
- "us-applepay.wixapps.net": [
206
- {
207
- srcPath: "/_api/payment-services-web",
208
- destPath: "/api"
209
- }
210
- ],
211
- "eu-applepay.wixapps.net": [
212
- {
213
- srcPath: "/_api/payment-services-web",
214
- destPath: "/api"
215
- }
216
- ],
217
- "payments-sb.wixapps.net": [
218
- {
219
- srcPath: "/_api/payment-services-web",
220
- destPath: "/api"
221
- }
222
- ],
223
- "manage._base_domain_": [
224
- {
225
- srcPath: "/_api/payment-services-web",
226
- destPath: "/api"
227
- },
228
- {
229
- srcPath: "/ambassador/payment-services-web",
230
- destPath: ""
231
- }
232
- ],
233
- _: [
234
- {
235
- srcPath: "/_api/payment-services-web",
236
- destPath: "/api"
237
- },
238
- {
239
- srcPath: "/.well-known/apple-developer-merchantid-domain-association",
240
- destPath: "/domain-verification/apple-pay"
241
- }
242
- ],
243
- "events.wixapps.net": [
244
- {
245
- srcPath: "/_api/payment-services-web",
246
- destPath: "/api"
247
- }
248
- ],
249
- "tpa.wixapps.net": [
250
- {
251
- srcPath: "/_api/payment-services-web",
252
- destPath: "/api"
253
- },
254
- {
255
- srcPath: "/payment-services-web",
256
- destPath: ""
257
- }
258
- ],
259
- "pricing-plans.wixapps.net": [
260
- {
261
- srcPath: "/_api/payment-services-web",
262
- destPath: "/api"
263
- }
264
- ],
265
- "editor-flow.wixapps.net": [
266
- {
267
- srcPath: "/_api/payment-services-web",
268
- destPath: "/api"
269
- }
270
- ],
271
- "bo._base_domain_": [
272
- {
273
- srcPath: "/_api/payment-services-web",
274
- destPath: "/api"
275
- }
276
- ],
277
- "wixbo.ai": [
278
- {
279
- srcPath: "/_api/payment-services-web",
280
- destPath: "/api"
281
- }
282
- ],
283
- "wix-bo.com": [
284
- {
285
- srcPath: "/_api/payment-services-web",
286
- destPath: "/api"
287
- }
288
- ],
289
- "editor.wixapps.net": [
290
- {
291
- srcPath: "/_api/payment-services-web",
292
- destPath: "/api"
293
- }
294
- ],
295
- "premium._base_domain_": [
296
- {
297
- srcPath: "/_api/payment-services-web",
298
- destPath: "/api"
299
- },
300
- {
301
- srcPath: "/payment-services-web",
302
- destPath: ""
303
- },
304
- {
305
- srcPath: "/lib-mbapi/include/modules/gateway/return/paypal.php",
306
- destPath: "/api/payPal/payments/legacy-ipn-to-ignore"
307
- }
308
- ],
309
- "www._base_domain_": [
310
- {
311
- srcPath: "/_api/payment-services-web",
312
- destPath: "/api"
313
- },
314
- {
315
- srcPath: "/.well-known/apple-developer-merchantid-domain-association",
316
- destPath: "/domain-verification/apple-pay"
317
- }
318
- ],
319
- "payment-webhooks.wixapps.net": [
320
- {
321
- srcPath: "/cashier/accounts/stripe",
322
- destPath: "/api/merchant/stripe"
323
- },
324
- {
325
- srcPath: "/cashier/transactions/stripe",
326
- destPath: "/api/stripe"
327
- }
328
- ],
329
- "cashier-services.wixapis.com": [
330
- {
331
- srcPath: "/payments/v1/provider-platform-events",
332
- destPath: "/payments/v1/provider-platform-events"
333
- }
334
- ],
335
- "currency-converter.wixapps.net": [
336
- {
337
- srcPath: "/_api/payment-services-web",
338
- destPath: "/api"
339
- }
340
- ]
341
- };
342
- return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
343
- }
344
- var PACKAGE_NAME = "@wix/auto_sdk_payments_psp-callbacks";
345
- function submitEvent(payload) {
346
- function __submitEvent({ host }) {
347
- const metadata = {
348
- entityFqdn: "wix.payments.psp.v1.provider_platform_event",
349
- method: "POST",
350
- methodFqn: "wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent",
351
- packageName: PACKAGE_NAME,
352
- url: resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(
353
- {
354
- protoPath: "/payments/v1/provider-platform-events",
355
- data: payload,
356
- host
357
- }
358
- ),
359
- data: payload
360
- };
361
- return metadata;
362
- }
363
- return __submitEvent;
364
- }
365
-
366
- // src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.ts
367
- function submitEvent2() {
368
- const payload = {};
369
- const getRequestOptions = submitEvent(payload);
370
- const getUrl = (context) => {
371
- const { url } = getRequestOptions(context);
372
- return url;
373
- };
374
- return {
375
- getUrl,
376
- httpMethod: "POST",
377
- path: "/payments/v1/provider-platform-events",
378
- pathParams: {},
379
- __requestType: null,
380
- __originalRequestType: null,
381
- __responseType: null,
382
- __originalResponseType: null
383
- };
384
- }
385
- // Annotate the CommonJS export names for ESM import in node:
386
- 0 && (module.exports = {
387
- submitEvent
388
- });
389
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
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 'blocks._base_domain_': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/payment-services-web',\n destPath: '/api',\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 _: [\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 '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 };\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 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"],"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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