@wix/auto_sdk_payments_psp-callbacks 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +7 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +340 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +47 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +12 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts +120 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +3 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +137 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +67 -0
- package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +4 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +336 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +20 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +8 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts +120 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +2 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +137 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +40 -0
- package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +7 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +340 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +47 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +12 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts +120 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +3 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +137 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +67 -0
- package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +4 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +336 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +20 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +8 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts +120 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +2 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +137 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +40 -0
- package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yGAAuF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2GAAyF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sGAAoF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { submitEvent as publicSubmitEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.public.js';
|
|
2
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
+
export declare const submitEvent: MaybeContext<BuildRESTFunction<typeof publicSubmitEvent> & typeof publicSubmitEvent>;
|
|
4
|
+
export { ProviderPlatformEvent, ProviderPlatformEventResourceOneOf, RefundEvent, TransactionEvent, CredentialsOnFile, CredentialsOnFileInfoOneOf, CardReference, PaymentMethodReference, CardDetails, CaptureEvent, VoidEvent, SubmitEventRequest, SubmitEventResponse, } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.submitEvent = void 0;
|
|
4
|
+
const payments_psp_v1_provider_platform_event_psp_callbacks_public_js_1 = require("./payments-psp-v1-provider-platform-event-psp-callbacks.public.js");
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
exports.submitEvent = (0, rest_modules_1.createRESTModule)(payments_psp_v1_provider_platform_event_psp_callbacks_public_js_1.submitEvent);
|
|
7
|
+
//# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.context.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.context.ts"],"names":[],"mappings":";;;AAAA,uJAAqH;AACrH,gEAAiE;AAGpD,QAAA,WAAW,GAEN,IAAA,+BAAgB,EAAC,6EAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
|
|
4
|
+
*
|
|
5
|
+
* 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}`.
|
|
6
|
+
* PSP's create their own version numbers.
|
|
7
|
+
*
|
|
8
|
+
* > You cannot try out this endpoint because an `Authorization` header value has to be obtained
|
|
9
|
+
* > with the OAuth 2.0 client credentials flow for a specific scope.
|
|
10
|
+
* > So please ignore the **Authorization** section below as well as the **Try It Out** button.
|
|
11
|
+
*/
|
|
12
|
+
export declare function submitEvent(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.submitEvent = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
function resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(opts) {
|
|
6
|
+
const domainToMappings = {
|
|
7
|
+
'cashier-services._base_domain_': [
|
|
8
|
+
{
|
|
9
|
+
srcPath: '',
|
|
10
|
+
destPath: '',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
srcPath: '/_api/payment-services-web',
|
|
14
|
+
destPath: '/api',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
'difm._base_domain_': [
|
|
18
|
+
{
|
|
19
|
+
srcPath: '/_api/payment-services-web',
|
|
20
|
+
destPath: '/api',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
'invoices._base_domain_': [
|
|
24
|
+
{
|
|
25
|
+
srcPath: '/_api/payment-services-web',
|
|
26
|
+
destPath: '/api',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
'apps._base_domain_': [
|
|
30
|
+
{
|
|
31
|
+
srcPath: '/_api/payment-services-web',
|
|
32
|
+
destPath: '/api',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
'ecom._base_domain_': [
|
|
36
|
+
{
|
|
37
|
+
srcPath: '/_api/payment-services-web',
|
|
38
|
+
destPath: '/api',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
'www.cartscheckout.com': [
|
|
42
|
+
{
|
|
43
|
+
srcPath: '/_api/payment-services-web',
|
|
44
|
+
destPath: '/api',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
'cartscheckout.com': [
|
|
48
|
+
{
|
|
49
|
+
srcPath: '/_api/payment-services-web',
|
|
50
|
+
destPath: '/api',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
'cartscheckout._base_domain_': [
|
|
54
|
+
{
|
|
55
|
+
srcPath: '/_api/payment-services-web',
|
|
56
|
+
destPath: '/api',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
'api._api_base_domain_': [
|
|
60
|
+
{
|
|
61
|
+
srcPath: '/payment-services-web',
|
|
62
|
+
destPath: '',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
'progallery._base_domain_': [
|
|
66
|
+
{
|
|
67
|
+
srcPath: '/_api/payment-services-web',
|
|
68
|
+
destPath: '',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
'progallerycdn._base_domain_': [
|
|
72
|
+
{
|
|
73
|
+
srcPath: '/_api/payment-services-web',
|
|
74
|
+
destPath: '',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
'scheduler._base_domain_': [
|
|
78
|
+
{
|
|
79
|
+
srcPath: '/_api/payment-services-web',
|
|
80
|
+
destPath: '/api',
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
'events._base_domain_': [
|
|
84
|
+
{
|
|
85
|
+
srcPath: '/_api/payment-services-web',
|
|
86
|
+
destPath: '/api',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
srcPath: '/payment-services-web',
|
|
90
|
+
destPath: '',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
'bookings.wixapps.net': [
|
|
94
|
+
{
|
|
95
|
+
srcPath: '/_api/payment-services-web',
|
|
96
|
+
destPath: '/api',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
'cashier._base_domain_': [
|
|
100
|
+
{
|
|
101
|
+
srcPath: '/_api/payment-services-web',
|
|
102
|
+
destPath: '/api',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
'ecom.wixapps.net': [
|
|
106
|
+
{
|
|
107
|
+
srcPath: '/_api/payment-services-web',
|
|
108
|
+
destPath: '/api',
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
'cashier.wixapps.net': [
|
|
112
|
+
{
|
|
113
|
+
srcPath: '/_api/payment-services-web',
|
|
114
|
+
destPath: '/api',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
srcPath: '',
|
|
118
|
+
destPath: '',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
'vod-server._base_domain_': [
|
|
122
|
+
{
|
|
123
|
+
srcPath: '/_api/payment-services-web',
|
|
124
|
+
destPath: '/api',
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
'vod.wixapps.net': [
|
|
128
|
+
{
|
|
129
|
+
srcPath: '/_api/payment-services-web',
|
|
130
|
+
destPath: '/api',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
'www.wixhotels.com': [
|
|
134
|
+
{
|
|
135
|
+
srcPath: '/_api/payment-services-web',
|
|
136
|
+
destPath: '/api',
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
'editor._base_domain_': [
|
|
140
|
+
{
|
|
141
|
+
srcPath: '/_api/payment-services-web',
|
|
142
|
+
destPath: '/api',
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
'blocks._base_domain_': [
|
|
146
|
+
{
|
|
147
|
+
srcPath: '/_api/payment-services-web',
|
|
148
|
+
destPath: '/api',
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
'create.editorx': [
|
|
152
|
+
{
|
|
153
|
+
srcPath: '/_api/payment-services-web',
|
|
154
|
+
destPath: '/api',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
'test-applepay.wixapps.net': [
|
|
158
|
+
{
|
|
159
|
+
srcPath: '/_api/payment-services-web',
|
|
160
|
+
destPath: '/api',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
'www.wixapis.com': [
|
|
164
|
+
{
|
|
165
|
+
srcPath: '/payments',
|
|
166
|
+
destPath: '/api/merchant',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
srcPath: '/payments/v1/provider-platform-events',
|
|
170
|
+
destPath: '/payments/v1/provider-platform-events',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
srcPath: '/api/plugin/v1/transactions',
|
|
174
|
+
destPath: '/api/plugin/v1/transactions',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
srcPath: '/payments/api/merchant',
|
|
178
|
+
destPath: '/api/merchant',
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
'us-applepay.wixapps.net': [
|
|
182
|
+
{
|
|
183
|
+
srcPath: '/_api/payment-services-web',
|
|
184
|
+
destPath: '/api',
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
'eu-applepay.wixapps.net': [
|
|
188
|
+
{
|
|
189
|
+
srcPath: '/_api/payment-services-web',
|
|
190
|
+
destPath: '/api',
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
'payments-sb.wixapps.net': [
|
|
194
|
+
{
|
|
195
|
+
srcPath: '/_api/payment-services-web',
|
|
196
|
+
destPath: '/api',
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
'manage._base_domain_': [
|
|
200
|
+
{
|
|
201
|
+
srcPath: '/_api/payment-services-web',
|
|
202
|
+
destPath: '/api',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
srcPath: '/ambassador/payment-services-web',
|
|
206
|
+
destPath: '',
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
_: [
|
|
210
|
+
{
|
|
211
|
+
srcPath: '/_api/payment-services-web',
|
|
212
|
+
destPath: '/api',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
srcPath: '/.well-known/apple-developer-merchantid-domain-association',
|
|
216
|
+
destPath: '/domain-verification/apple-pay',
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
'events.wixapps.net': [
|
|
220
|
+
{
|
|
221
|
+
srcPath: '/_api/payment-services-web',
|
|
222
|
+
destPath: '/api',
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
'tpa.wixapps.net': [
|
|
226
|
+
{
|
|
227
|
+
srcPath: '/_api/payment-services-web',
|
|
228
|
+
destPath: '/api',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
srcPath: '/payment-services-web',
|
|
232
|
+
destPath: '',
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
'pricing-plans.wixapps.net': [
|
|
236
|
+
{
|
|
237
|
+
srcPath: '/_api/payment-services-web',
|
|
238
|
+
destPath: '/api',
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
'editor-flow.wixapps.net': [
|
|
242
|
+
{
|
|
243
|
+
srcPath: '/_api/payment-services-web',
|
|
244
|
+
destPath: '/api',
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
'bo._base_domain_': [
|
|
248
|
+
{
|
|
249
|
+
srcPath: '/_api/payment-services-web',
|
|
250
|
+
destPath: '/api',
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
'wixbo.ai': [
|
|
254
|
+
{
|
|
255
|
+
srcPath: '/_api/payment-services-web',
|
|
256
|
+
destPath: '/api',
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
'wix-bo.com': [
|
|
260
|
+
{
|
|
261
|
+
srcPath: '/_api/payment-services-web',
|
|
262
|
+
destPath: '/api',
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
'editor.wixapps.net': [
|
|
266
|
+
{
|
|
267
|
+
srcPath: '/_api/payment-services-web',
|
|
268
|
+
destPath: '/api',
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
'premium._base_domain_': [
|
|
272
|
+
{
|
|
273
|
+
srcPath: '/_api/payment-services-web',
|
|
274
|
+
destPath: '/api',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
srcPath: '/payment-services-web',
|
|
278
|
+
destPath: '',
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
'www._base_domain_': [
|
|
282
|
+
{
|
|
283
|
+
srcPath: '/_api/payment-services-web',
|
|
284
|
+
destPath: '/api',
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
srcPath: '/.well-known/apple-developer-merchantid-domain-association',
|
|
288
|
+
destPath: '/domain-verification/apple-pay',
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
'payment-webhooks.wixapps.net': [
|
|
292
|
+
{
|
|
293
|
+
srcPath: '/cashier/accounts/stripe',
|
|
294
|
+
destPath: '/api/merchant/stripe',
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
srcPath: '/cashier/transactions/stripe',
|
|
298
|
+
destPath: '/api/stripe',
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
'cashier-services.wixapis.com': [
|
|
302
|
+
{
|
|
303
|
+
srcPath: '/payments/v1/provider-platform-events',
|
|
304
|
+
destPath: '/payments/v1/provider-platform-events',
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
};
|
|
308
|
+
return (0, rest_modules_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
309
|
+
}
|
|
310
|
+
const PACKAGE_NAME = '@wix/auto_sdk_payments_psp-callbacks';
|
|
311
|
+
/**
|
|
312
|
+
* This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
|
|
313
|
+
*
|
|
314
|
+
* 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}`.
|
|
315
|
+
* PSP's create their own version numbers.
|
|
316
|
+
*
|
|
317
|
+
* > You cannot try out this endpoint because an `Authorization` header value has to be obtained
|
|
318
|
+
* > with the OAuth 2.0 client credentials flow for a specific scope.
|
|
319
|
+
* > So please ignore the **Authorization** section below as well as the **Try It Out** button.
|
|
320
|
+
*/
|
|
321
|
+
function submitEvent(payload) {
|
|
322
|
+
function __submitEvent({ host }) {
|
|
323
|
+
const metadata = {
|
|
324
|
+
entityFqdn: 'wix.payments.psp.v1.provider_platform_event',
|
|
325
|
+
method: 'POST',
|
|
326
|
+
methodFqn: 'wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent',
|
|
327
|
+
packageName: PACKAGE_NAME,
|
|
328
|
+
url: resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl({
|
|
329
|
+
protoPath: '/payments/v1/provider-platform-events',
|
|
330
|
+
data: payload,
|
|
331
|
+
host,
|
|
332
|
+
}),
|
|
333
|
+
data: payload,
|
|
334
|
+
};
|
|
335
|
+
return metadata;
|
|
336
|
+
}
|
|
337
|
+
return __submitEvent;
|
|
338
|
+
}
|
|
339
|
+
exports.submitEvent = submitEvent;
|
|
340
|
+
//# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.http.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.http.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAI3D,SAAS,0EAA0E,CACjF,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,gCAAgC,EAAE;YAChC;gBACE,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,wBAAwB,EAAE;YACxB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,6BAA6B,EAAE;YAC7B;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,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BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,sCAAsC,CAAC;AAE5D;;;;;;;;;GASG;AACH,SAAgB,WAAW,CAAC,OAAe;IACzC,SAAS,aAAa,CAAC,EAAE,IAAI,EAAO;QAClC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,6CAA6C;YACzD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,oFAAoF;YACtF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,0EAA0E,CAC7E;gBACE,SAAS,EAAE,uCAAuC;gBAClD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CACF;YACD,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAtBD,kCAsBC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as ambassadorWixPaymentsPspV1ProviderPlatformEventTypes from './payments-psp-v1-provider-platform-event-psp-callbacks.types.js';
|
|
2
|
+
import * as ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function submitEvent(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes.SubmitEventRequest, ambassadorWixPaymentsPspV1ProviderPlatformEventTypes.SubmitEventRequest, ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes.SubmitEventResponse, ambassadorWixPaymentsPspV1ProviderPlatformEventTypes.SubmitEventResponse>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.submitEvent = void 0;
|
|
27
|
+
const ambassadorWixPaymentsPspV1ProviderPlatformEvent = __importStar(require("./payments-psp-v1-provider-platform-event-psp-callbacks.http.js"));
|
|
28
|
+
function submitEvent() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixPaymentsPspV1ProviderPlatformEvent.submitEvent(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'POST',
|
|
38
|
+
path: '/payments/v1/provider-platform-events',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.submitEvent = submitEvent;
|
|
47
|
+
//# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.meta.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iJAAmI;AAsBnI,SAAgB,WAAW;IAQzB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+CAA+C,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEvE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,kCA4BC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { ProviderPlatformEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function submitEvent(httpClient: HttpClient): SubmitEventSignature;
|
|
7
|
+
interface SubmitEventSignature {
|
|
8
|
+
/**
|
|
9
|
+
* This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
|
|
10
|
+
*
|
|
11
|
+
* 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}`.
|
|
12
|
+
* PSP's create their own version numbers.
|
|
13
|
+
*
|
|
14
|
+
* > You cannot try out this endpoint because an `Authorization` header value has to be obtained
|
|
15
|
+
* > with the OAuth 2.0 client credentials flow for a specific scope.
|
|
16
|
+
* > So please ignore the **Authorization** section below as well as the **Try It Out** button.
|
|
17
|
+
* @param - Event data.
|
|
18
|
+
* @returns Submit event response
|
|
19
|
+
*/
|
|
20
|
+
(event: ProviderPlatformEvent): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
export { CaptureEvent, CardDetails, CardReference, CredentialsOnFile, CredentialsOnFileInfoOneOf, PaymentMethodReference, ProviderPlatformEvent, ProviderPlatformEventResourceOneOf, RefundEvent, SubmitEventRequest, SubmitEventResponse, TransactionEvent, VoidEvent, } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.submitEvent = exports.__metadata = void 0;
|
|
4
|
+
const payments_psp_v1_provider_platform_event_psp_callbacks_universal_js_1 = require("./payments-psp-v1-provider-platform-event-psp-callbacks.universal.js");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/payments' };
|
|
6
|
+
function submitEvent(httpClient) {
|
|
7
|
+
return (event) => (0, payments_psp_v1_provider_platform_event_psp_callbacks_universal_js_1.submitEvent)(event,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.submitEvent = submitEvent;
|
|
12
|
+
//# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.public.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.public.ts"],"names":[],"mappings":";;;AACA,6JAG8E;AAEjE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,KAA4B,EAAE,EAAE,CACtC,IAAA,gFAAoB,EAClB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC"}
|