@wix/auto_sdk_payments_psp-callbacks 1.0.13 → 1.0.15
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/index.d.mts +24 -0
- package/build/index.d.ts +24 -0
- package/build/index.js +414 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +387 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +24 -0
- package/build/internal/index.d.ts +24 -0
- package/build/internal/index.js +414 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +387 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +168 -0
- package/build/internal/meta.d.ts +168 -0
- package/build/internal/meta.js +393 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +366 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts → internal/payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.mts} +15 -13
- package/build/internal/{cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts → payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.ts} +15 -13
- package/build/meta.d.mts +168 -0
- package/build/meta.d.ts +168 -0
- package/build/meta.js +393 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +366 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts → payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.mts} +15 -13
- package/build/{es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts → payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.ts} +15 -13
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +0 -4
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +0 -7
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +0 -1
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +0 -12
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +0 -354
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +0 -1
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +0 -13
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +0 -47
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +0 -1
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +0 -22
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +0 -12
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +0 -1
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +0 -3
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +0 -1
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +0 -169
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +0 -67
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +0 -4
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +0 -4
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +0 -1
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +0 -12
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +0 -350
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +0 -1
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +0 -13
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +0 -20
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +0 -1
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +0 -22
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +0 -8
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +0 -1
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +0 -2
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +0 -1
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +0 -169
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +0 -40
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +0 -4
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +0 -7
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +0 -1
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +0 -12
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +0 -354
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +0 -1
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +0 -13
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +0 -47
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +0 -1
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +0 -22
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +0 -12
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +0 -1
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +0 -3
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +0 -1
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +0 -169
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +0 -67
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +0 -4
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +0 -4
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +0 -1
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +0 -12
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +0 -350
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +0 -1
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +0 -13
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +0 -20
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +0 -1
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +0 -22
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +0 -8
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +0 -1
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +0 -2
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +0 -1
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +0 -169
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +0 -40
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { P as ProviderPlatformEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.mjs';
|
|
3
|
+
export { f as CaptureEvent, e as CardDetails, c as CardReference, C as CredentialsOnFile, b as CredentialsOnFileInfoOneOf, d as PaymentMethodReference, a as ProviderPlatformEventResourceOneOf, R as RefundEvent, S as SubmitEventRequest, g as SubmitEventResponse, T as TransactionEvent, V as VoidEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.mjs';
|
|
4
|
+
|
|
5
|
+
declare function submitEvent$1(httpClient: HttpClient): SubmitEventSignature;
|
|
6
|
+
interface SubmitEventSignature {
|
|
7
|
+
/**
|
|
8
|
+
* This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
|
|
9
|
+
*
|
|
10
|
+
* 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}`.
|
|
11
|
+
* PSP's create their own version numbers.
|
|
12
|
+
*
|
|
13
|
+
* > You cannot try out this endpoint because an `Authorization` header value has to be obtained
|
|
14
|
+
* > with the OAuth 2.0 client credentials flow for a specific scope.
|
|
15
|
+
* > So please ignore the **Authorization** section below as well as the **Try It Out** button.
|
|
16
|
+
* @param - Event data.
|
|
17
|
+
* @returns Submit event response
|
|
18
|
+
*/
|
|
19
|
+
(event: ProviderPlatformEvent): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const submitEvent: MaybeContext<BuildRESTFunction<typeof submitEvent$1> & typeof submitEvent$1>;
|
|
23
|
+
|
|
24
|
+
export { ProviderPlatformEvent, submitEvent };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { P as ProviderPlatformEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.js';
|
|
3
|
+
export { f as CaptureEvent, e as CardDetails, c as CardReference, C as CredentialsOnFile, b as CredentialsOnFileInfoOneOf, d as PaymentMethodReference, a as ProviderPlatformEventResourceOneOf, R as RefundEvent, S as SubmitEventRequest, g as SubmitEventResponse, T as TransactionEvent, V as VoidEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.js';
|
|
4
|
+
|
|
5
|
+
declare function submitEvent$1(httpClient: HttpClient): SubmitEventSignature;
|
|
6
|
+
interface SubmitEventSignature {
|
|
7
|
+
/**
|
|
8
|
+
* This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
|
|
9
|
+
*
|
|
10
|
+
* 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}`.
|
|
11
|
+
* PSP's create their own version numbers.
|
|
12
|
+
*
|
|
13
|
+
* > You cannot try out this endpoint because an `Authorization` header value has to be obtained
|
|
14
|
+
* > with the OAuth 2.0 client credentials flow for a specific scope.
|
|
15
|
+
* > So please ignore the **Authorization** section below as well as the **Try It Out** button.
|
|
16
|
+
* @param - Event data.
|
|
17
|
+
* @returns Submit event response
|
|
18
|
+
*/
|
|
19
|
+
(event: ProviderPlatformEvent): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const submitEvent: MaybeContext<BuildRESTFunction<typeof submitEvent$1> & typeof submitEvent$1>;
|
|
23
|
+
|
|
24
|
+
export { ProviderPlatformEvent, submitEvent };
|
package/build/index.js
ADDED
|
@@ -0,0 +1,414 @@
|
|
|
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
|
+
// index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
submitEvent: () => submitEvent4
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
|
|
27
|
+
// src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.ts
|
|
28
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
29
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
|
+
|
|
31
|
+
// src/payments-psp-v1-provider-platform-event-psp-callbacks.http.ts
|
|
32
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
33
|
+
function resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(opts) {
|
|
34
|
+
const domainToMappings = {
|
|
35
|
+
"cashier-services._base_domain_": [
|
|
36
|
+
{
|
|
37
|
+
srcPath: "",
|
|
38
|
+
destPath: ""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
srcPath: "/_api/payment-services-web",
|
|
42
|
+
destPath: "/api"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"difm._base_domain_": [
|
|
46
|
+
{
|
|
47
|
+
srcPath: "/_api/payment-services-web",
|
|
48
|
+
destPath: "/api"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"invoices._base_domain_": [
|
|
52
|
+
{
|
|
53
|
+
srcPath: "/_api/payment-services-web",
|
|
54
|
+
destPath: "/api"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"apps._base_domain_": [
|
|
58
|
+
{
|
|
59
|
+
srcPath: "/_api/payment-services-web",
|
|
60
|
+
destPath: "/api"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"ecom._base_domain_": [
|
|
64
|
+
{
|
|
65
|
+
srcPath: "/_api/payment-services-web",
|
|
66
|
+
destPath: "/api"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"www.cartscheckout.com": [
|
|
70
|
+
{
|
|
71
|
+
srcPath: "/_api/payment-services-web",
|
|
72
|
+
destPath: "/api"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"cartscheckout.com": [
|
|
76
|
+
{
|
|
77
|
+
srcPath: "/_api/payment-services-web",
|
|
78
|
+
destPath: "/api"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"cartscheckout._base_domain_": [
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/_api/payment-services-web",
|
|
84
|
+
destPath: "/api"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"api._api_base_domain_": [
|
|
88
|
+
{
|
|
89
|
+
srcPath: "/payment-services-web",
|
|
90
|
+
destPath: ""
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"progallery._base_domain_": [
|
|
94
|
+
{
|
|
95
|
+
srcPath: "/_api/payment-services-web",
|
|
96
|
+
destPath: ""
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"progallerycdn._base_domain_": [
|
|
100
|
+
{
|
|
101
|
+
srcPath: "/_api/payment-services-web",
|
|
102
|
+
destPath: ""
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"scheduler._base_domain_": [
|
|
106
|
+
{
|
|
107
|
+
srcPath: "/_api/payment-services-web",
|
|
108
|
+
destPath: "/api"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"events._base_domain_": [
|
|
112
|
+
{
|
|
113
|
+
srcPath: "/_api/payment-services-web",
|
|
114
|
+
destPath: "/api"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
srcPath: "/payment-services-web",
|
|
118
|
+
destPath: ""
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"bookings.wixapps.net": [
|
|
122
|
+
{
|
|
123
|
+
srcPath: "/_api/payment-services-web",
|
|
124
|
+
destPath: "/api"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"cashier._base_domain_": [
|
|
128
|
+
{
|
|
129
|
+
srcPath: "/_api/payment-services-web",
|
|
130
|
+
destPath: "/api"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"ecom.wixapps.net": [
|
|
134
|
+
{
|
|
135
|
+
srcPath: "/_api/payment-services-web",
|
|
136
|
+
destPath: "/api"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"cashier.wixapps.net": [
|
|
140
|
+
{
|
|
141
|
+
srcPath: "/_api/payment-services-web",
|
|
142
|
+
destPath: "/api"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
srcPath: "",
|
|
146
|
+
destPath: ""
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"vod-server._base_domain_": [
|
|
150
|
+
{
|
|
151
|
+
srcPath: "/_api/payment-services-web",
|
|
152
|
+
destPath: "/api"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"vod.wixapps.net": [
|
|
156
|
+
{
|
|
157
|
+
srcPath: "/_api/payment-services-web",
|
|
158
|
+
destPath: "/api"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"www.wixhotels.com": [
|
|
162
|
+
{
|
|
163
|
+
srcPath: "/_api/payment-services-web",
|
|
164
|
+
destPath: "/api"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"editor._base_domain_": [
|
|
168
|
+
{
|
|
169
|
+
srcPath: "/_api/payment-services-web",
|
|
170
|
+
destPath: "/api"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"blocks._base_domain_": [
|
|
174
|
+
{
|
|
175
|
+
srcPath: "/_api/payment-services-web",
|
|
176
|
+
destPath: "/api"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"create.editorx": [
|
|
180
|
+
{
|
|
181
|
+
srcPath: "/_api/payment-services-web",
|
|
182
|
+
destPath: "/api"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"test-applepay.wixapps.net": [
|
|
186
|
+
{
|
|
187
|
+
srcPath: "/_api/payment-services-web",
|
|
188
|
+
destPath: "/api"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"www.wixapis.com": [
|
|
192
|
+
{
|
|
193
|
+
srcPath: "/payments",
|
|
194
|
+
destPath: "/api/merchant"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
srcPath: "/payments/v1/provider-platform-events",
|
|
198
|
+
destPath: "/payments/v1/provider-platform-events"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
srcPath: "/api/plugin/v1/transactions",
|
|
202
|
+
destPath: "/api/plugin/v1/transactions"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
srcPath: "/payments/api/merchant",
|
|
206
|
+
destPath: "/api/merchant"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"us-applepay.wixapps.net": [
|
|
210
|
+
{
|
|
211
|
+
srcPath: "/_api/payment-services-web",
|
|
212
|
+
destPath: "/api"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"eu-applepay.wixapps.net": [
|
|
216
|
+
{
|
|
217
|
+
srcPath: "/_api/payment-services-web",
|
|
218
|
+
destPath: "/api"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"payments-sb.wixapps.net": [
|
|
222
|
+
{
|
|
223
|
+
srcPath: "/_api/payment-services-web",
|
|
224
|
+
destPath: "/api"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"manage._base_domain_": [
|
|
228
|
+
{
|
|
229
|
+
srcPath: "/_api/payment-services-web",
|
|
230
|
+
destPath: "/api"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
srcPath: "/ambassador/payment-services-web",
|
|
234
|
+
destPath: ""
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
238
|
+
destPath: "/domain-verification/apple-pay"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
_: [
|
|
242
|
+
{
|
|
243
|
+
srcPath: "/_api/payment-services-web",
|
|
244
|
+
destPath: "/api"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
248
|
+
destPath: "/domain-verification/apple-pay"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"events.wixapps.net": [
|
|
252
|
+
{
|
|
253
|
+
srcPath: "/_api/payment-services-web",
|
|
254
|
+
destPath: "/api"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"tpa.wixapps.net": [
|
|
258
|
+
{
|
|
259
|
+
srcPath: "/_api/payment-services-web",
|
|
260
|
+
destPath: "/api"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
srcPath: "/payment-services-web",
|
|
264
|
+
destPath: ""
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"pricing-plans.wixapps.net": [
|
|
268
|
+
{
|
|
269
|
+
srcPath: "/_api/payment-services-web",
|
|
270
|
+
destPath: "/api"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"editor-flow.wixapps.net": [
|
|
274
|
+
{
|
|
275
|
+
srcPath: "/_api/payment-services-web",
|
|
276
|
+
destPath: "/api"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"bo._base_domain_": [
|
|
280
|
+
{
|
|
281
|
+
srcPath: "/_api/payment-services-web",
|
|
282
|
+
destPath: "/api"
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"wixbo.ai": [
|
|
286
|
+
{
|
|
287
|
+
srcPath: "/_api/payment-services-web",
|
|
288
|
+
destPath: "/api"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"wix-bo.com": [
|
|
292
|
+
{
|
|
293
|
+
srcPath: "/_api/payment-services-web",
|
|
294
|
+
destPath: "/api"
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"editor.wixapps.net": [
|
|
298
|
+
{
|
|
299
|
+
srcPath: "/_api/payment-services-web",
|
|
300
|
+
destPath: "/api"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"premium._base_domain_": [
|
|
304
|
+
{
|
|
305
|
+
srcPath: "/_api/payment-services-web",
|
|
306
|
+
destPath: "/api"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
srcPath: "/payment-services-web",
|
|
310
|
+
destPath: ""
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
srcPath: "/lib-mbapi/include/modules/gateway/return/paypal.php",
|
|
314
|
+
destPath: "/api/payPal/payments/legacy-ipn-to-ignore"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"www._base_domain_": [
|
|
318
|
+
{
|
|
319
|
+
srcPath: "/_api/payment-services-web",
|
|
320
|
+
destPath: "/api"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
srcPath: "/.well-known/apple-developer-merchantid-domain-association",
|
|
324
|
+
destPath: "/domain-verification/apple-pay"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"payment-webhooks.wixapps.net": [
|
|
328
|
+
{
|
|
329
|
+
srcPath: "/cashier/accounts/stripe",
|
|
330
|
+
destPath: "/api/merchant/stripe"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
srcPath: "/cashier/transactions/stripe",
|
|
334
|
+
destPath: "/api/stripe"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"cashier-services.wixapis.com": [
|
|
338
|
+
{
|
|
339
|
+
srcPath: "/payments/v1/provider-platform-events",
|
|
340
|
+
destPath: "/payments/v1/provider-platform-events"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"currency-converter.wixapps.net": [
|
|
344
|
+
{
|
|
345
|
+
srcPath: "/_api/payment-services-web",
|
|
346
|
+
destPath: "/api"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
};
|
|
350
|
+
return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
351
|
+
}
|
|
352
|
+
var PACKAGE_NAME = "@wix/auto_sdk_payments_psp-callbacks";
|
|
353
|
+
function submitEvent(payload) {
|
|
354
|
+
function __submitEvent({ host }) {
|
|
355
|
+
const metadata = {
|
|
356
|
+
entityFqdn: "wix.payments.psp.v1.provider_platform_event",
|
|
357
|
+
method: "POST",
|
|
358
|
+
methodFqn: "wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent",
|
|
359
|
+
packageName: PACKAGE_NAME,
|
|
360
|
+
url: resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(
|
|
361
|
+
{
|
|
362
|
+
protoPath: "/payments/v1/provider-platform-events",
|
|
363
|
+
data: payload,
|
|
364
|
+
host
|
|
365
|
+
}
|
|
366
|
+
),
|
|
367
|
+
data: payload
|
|
368
|
+
};
|
|
369
|
+
return metadata;
|
|
370
|
+
}
|
|
371
|
+
return __submitEvent;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.ts
|
|
375
|
+
async function submitEvent2(event) {
|
|
376
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
377
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ event });
|
|
378
|
+
const reqOpts = submitEvent(payload);
|
|
379
|
+
sideEffects?.onSiteCall?.();
|
|
380
|
+
try {
|
|
381
|
+
const result = await httpClient.request(reqOpts);
|
|
382
|
+
sideEffects?.onSuccess?.(result);
|
|
383
|
+
} catch (err) {
|
|
384
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
385
|
+
err,
|
|
386
|
+
{
|
|
387
|
+
spreadPathsToArguments: {},
|
|
388
|
+
explicitPathsToArguments: { event: "$[0]" },
|
|
389
|
+
singleArgumentUnchanged: false
|
|
390
|
+
},
|
|
391
|
+
["event"]
|
|
392
|
+
);
|
|
393
|
+
sideEffects?.onError?.(err);
|
|
394
|
+
throw transformedError;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
// src/payments-psp-v1-provider-platform-event-psp-callbacks.public.ts
|
|
399
|
+
function submitEvent3(httpClient) {
|
|
400
|
+
return (event) => submitEvent2(
|
|
401
|
+
event,
|
|
402
|
+
// @ts-ignore
|
|
403
|
+
{ httpClient }
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// src/payments-psp-v1-provider-platform-event-psp-callbacks.context.ts
|
|
408
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
409
|
+
var submitEvent4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(submitEvent3);
|
|
410
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
411
|
+
0 && (module.exports = {
|
|
412
|
+
submitEvent
|
|
413
|
+
});
|
|
414
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../index.ts","../src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.ts","../src/payments-psp-v1-provider-platform-event-psp-callbacks.http.ts","../src/payments-psp-v1-provider-platform-event-psp-callbacks.public.ts","../src/payments-psp-v1-provider-platform-event-psp-callbacks.context.ts"],"sourcesContent":["export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { renameKeysFromSDKRequestToRESTRequest } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient } from '@wix/sdk-types';\nimport * as ambassadorWixPaymentsPspV1ProviderPlatformEvent from './payments-psp-v1-provider-platform-event-psp-callbacks.http.js';\n\n/** Provider platform event */\nexport interface ProviderPlatformEvent\n extends ProviderPlatformEventResourceOneOf {\n /** Refund event data. */\n refund?: RefundEvent;\n /** Transaction event data. */\n transaction?: TransactionEvent;\n /** Capture event data. */\n capture?: CaptureEvent;\n /** Void event data. */\n void?: VoidEvent;\n /**\n * This field is deprecated.\n * @deprecated\n */\n pluginId?: string;\n}\n\n/** @oneof */\nexport interface ProviderPlatformEventResourceOneOf {\n /** Refund event data. */\n refund?: RefundEvent;\n /** Transaction event data. */\n transaction?: TransactionEvent;\n /** Capture event data. */\n capture?: CaptureEvent;\n /** Void event data. */\n void?: VoidEvent;\n}\n\nexport interface RefundEvent {\n /** Wix transaction ID. */\n wixTransactionId?: string;\n /** PSP refund ID. */\n pluginRefundId?: string;\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 reasonCode?: number;\n /** Refunded amount. */\n amount?: string;\n /** Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard. */\n wixRefundId?: string | null;\n /** PSP-specific error code. */\n errorCode?: string | null;\n /** PSP-specific error message. */\n errorMessage?: string | null;\n}\n\nexport interface TransactionEvent {\n /** Wix transaction ID. */\n wixTransactionId?: string;\n /** PSP transaction ID. */\n pluginTransactionId?: string;\n /** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request. */\n reasonCode?: number;\n /** PSP-specific error code. */\n errorCode?: string | null;\n /** PSP-specific error message. */\n errorMessage?: string | null;\n /** Token data for stored payment method. */\n credentialsOnFile?: CredentialsOnFile;\n /** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */\n cardDetails?: CardDetails;\n}\n\nexport interface CredentialsOnFile extends CredentialsOnFileInfoOneOf {\n /** Network token data. */\n cardReference?: CardReference;\n /** Provider generated token data. */\n paymentMethodReference?: PaymentMethodReference;\n}\n\n/** @oneof */\nexport interface CredentialsOnFileInfoOneOf {\n /** Network token data. */\n cardReference?: CardReference;\n /** Provider generated token data. */\n paymentMethodReference?: PaymentMethodReference;\n}\n\nexport interface CardReference {\n /** Network token. */\n networkTransactionId?: string;\n /** Directory Server transaction ID */\n dsTransactionId?: string | null;\n}\n\nexport interface PaymentMethodReference {\n /** Payment method token created by the PSP. */\n token?: string;\n}\n\nexport interface CardDetails {\n /**\n * Issuer (business) identification number. First 6 or 8 digits of the card's number.\n * @minLength 6\n * @maxLength 8\n */\n bin?: string | null;\n /**\n * Last 4 digits of the card's number.\n * @minLength 4\n * @maxLength 4\n */\n lastFour?: string | null;\n}\n\nexport interface CaptureEvent {\n /**\n * Wix transaction ID.\n * @format GUID\n */\n wixTransactionId?: string;\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 reasonCode?: number;\n /**\n * Total amount captured in a currency’s minor units.\n * Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).\n */\n amount?: string;\n /**\n * PSP-specific error code.\n * @maxLength 50\n */\n errorCode?: string | null;\n /**\n * PSP-specific error message.\n * @maxLength 300\n */\n errorMessage?: string | null;\n}\n\nexport interface VoidEvent {\n /**\n * Wix transaction ID.\n * @format GUID\n */\n wixTransactionId?: string;\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 reasonCode?: number;\n /**\n * Total amount voided in a currency’s minor units.\n * Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).\n */\n amount?: string;\n /**\n * PSP-specific error code.\n * @maxLength 50\n */\n errorCode?: string | null;\n /**\n * PSP-specific error message.\n * @maxLength 300\n */\n errorMessage?: string | null;\n}\n\n/** Submit event request */\nexport interface SubmitEventRequest {\n /** Event data. */\n event: ProviderPlatformEvent;\n}\n\n/** Submit event response */\nexport interface SubmitEventResponse {}\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 * @param event - Event data.\n * @public\n * @requiredField event\n * @permissionId CASHIER.GET_ACCESS\n * @returns Submit event response\n * @fqn wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent\n */\nexport async function submitEvent(event: ProviderPlatformEvent): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ event: event });\n\n const reqOpts =\n ambassadorWixPaymentsPspV1ProviderPlatformEvent.submitEvent(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { event: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['event']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\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 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 '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 { HttpClient } from '@wix/sdk-types';\nimport {\n ProviderPlatformEvent,\n submitEvent as universalSubmitEvent,\n} from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/payments' };\n\nexport function submitEvent(httpClient: HttpClient): SubmitEventSignature {\n return (event: ProviderPlatformEvent) =>\n universalSubmitEvent(\n event,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SubmitEventSignature {\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 * @param - Event data.\n * @returns Submit event response\n */\n (event: ProviderPlatformEvent): Promise<void>;\n}\n\nexport {\n CaptureEvent,\n CardDetails,\n CardReference,\n CredentialsOnFile,\n CredentialsOnFileInfoOneOf,\n PaymentMethodReference,\n ProviderPlatformEvent,\n ProviderPlatformEventResourceOneOf,\n RefundEvent,\n SubmitEventRequest,\n SubmitEventResponse,\n TransactionEvent,\n VoidEvent,\n} from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';\n","import { submitEvent as publicSubmitEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const submitEvent: MaybeContext<\n BuildRESTFunction<typeof publicSubmitEvent> & typeof publicSubmitEvent\n> = /*#__PURE__*/ createRESTModule(publicSubmitEvent);\n\nexport {\n ProviderPlatformEvent,\n ProviderPlatformEventResourceOneOf,\n RefundEvent,\n TransactionEvent,\n CredentialsOnFile,\n CredentialsOnFileInfoOneOf,\n CardReference,\n PaymentMethodReference,\n CardDetails,\n CaptureEvent,\n VoidEvent,\n SubmitEventRequest,\n SubmitEventResponse,\n} from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,qBAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAAsD;;;ACDtD,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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