@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,336 @@
|
|
|
1
|
+
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
2
|
+
function resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl(opts) {
|
|
3
|
+
const domainToMappings = {
|
|
4
|
+
'cashier-services._base_domain_': [
|
|
5
|
+
{
|
|
6
|
+
srcPath: '',
|
|
7
|
+
destPath: '',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
srcPath: '/_api/payment-services-web',
|
|
11
|
+
destPath: '/api',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
'difm._base_domain_': [
|
|
15
|
+
{
|
|
16
|
+
srcPath: '/_api/payment-services-web',
|
|
17
|
+
destPath: '/api',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
'invoices._base_domain_': [
|
|
21
|
+
{
|
|
22
|
+
srcPath: '/_api/payment-services-web',
|
|
23
|
+
destPath: '/api',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
'apps._base_domain_': [
|
|
27
|
+
{
|
|
28
|
+
srcPath: '/_api/payment-services-web',
|
|
29
|
+
destPath: '/api',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
'ecom._base_domain_': [
|
|
33
|
+
{
|
|
34
|
+
srcPath: '/_api/payment-services-web',
|
|
35
|
+
destPath: '/api',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
'www.cartscheckout.com': [
|
|
39
|
+
{
|
|
40
|
+
srcPath: '/_api/payment-services-web',
|
|
41
|
+
destPath: '/api',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
'cartscheckout.com': [
|
|
45
|
+
{
|
|
46
|
+
srcPath: '/_api/payment-services-web',
|
|
47
|
+
destPath: '/api',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
'cartscheckout._base_domain_': [
|
|
51
|
+
{
|
|
52
|
+
srcPath: '/_api/payment-services-web',
|
|
53
|
+
destPath: '/api',
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
'api._api_base_domain_': [
|
|
57
|
+
{
|
|
58
|
+
srcPath: '/payment-services-web',
|
|
59
|
+
destPath: '',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
'progallery._base_domain_': [
|
|
63
|
+
{
|
|
64
|
+
srcPath: '/_api/payment-services-web',
|
|
65
|
+
destPath: '',
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
'progallerycdn._base_domain_': [
|
|
69
|
+
{
|
|
70
|
+
srcPath: '/_api/payment-services-web',
|
|
71
|
+
destPath: '',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
'scheduler._base_domain_': [
|
|
75
|
+
{
|
|
76
|
+
srcPath: '/_api/payment-services-web',
|
|
77
|
+
destPath: '/api',
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
'events._base_domain_': [
|
|
81
|
+
{
|
|
82
|
+
srcPath: '/_api/payment-services-web',
|
|
83
|
+
destPath: '/api',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
srcPath: '/payment-services-web',
|
|
87
|
+
destPath: '',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
'bookings.wixapps.net': [
|
|
91
|
+
{
|
|
92
|
+
srcPath: '/_api/payment-services-web',
|
|
93
|
+
destPath: '/api',
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
'cashier._base_domain_': [
|
|
97
|
+
{
|
|
98
|
+
srcPath: '/_api/payment-services-web',
|
|
99
|
+
destPath: '/api',
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
'ecom.wixapps.net': [
|
|
103
|
+
{
|
|
104
|
+
srcPath: '/_api/payment-services-web',
|
|
105
|
+
destPath: '/api',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
'cashier.wixapps.net': [
|
|
109
|
+
{
|
|
110
|
+
srcPath: '/_api/payment-services-web',
|
|
111
|
+
destPath: '/api',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
srcPath: '',
|
|
115
|
+
destPath: '',
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
'vod-server._base_domain_': [
|
|
119
|
+
{
|
|
120
|
+
srcPath: '/_api/payment-services-web',
|
|
121
|
+
destPath: '/api',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
'vod.wixapps.net': [
|
|
125
|
+
{
|
|
126
|
+
srcPath: '/_api/payment-services-web',
|
|
127
|
+
destPath: '/api',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
'www.wixhotels.com': [
|
|
131
|
+
{
|
|
132
|
+
srcPath: '/_api/payment-services-web',
|
|
133
|
+
destPath: '/api',
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
'editor._base_domain_': [
|
|
137
|
+
{
|
|
138
|
+
srcPath: '/_api/payment-services-web',
|
|
139
|
+
destPath: '/api',
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
'blocks._base_domain_': [
|
|
143
|
+
{
|
|
144
|
+
srcPath: '/_api/payment-services-web',
|
|
145
|
+
destPath: '/api',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
'create.editorx': [
|
|
149
|
+
{
|
|
150
|
+
srcPath: '/_api/payment-services-web',
|
|
151
|
+
destPath: '/api',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
'test-applepay.wixapps.net': [
|
|
155
|
+
{
|
|
156
|
+
srcPath: '/_api/payment-services-web',
|
|
157
|
+
destPath: '/api',
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
'www.wixapis.com': [
|
|
161
|
+
{
|
|
162
|
+
srcPath: '/payments',
|
|
163
|
+
destPath: '/api/merchant',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
srcPath: '/payments/v1/provider-platform-events',
|
|
167
|
+
destPath: '/payments/v1/provider-platform-events',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
srcPath: '/api/plugin/v1/transactions',
|
|
171
|
+
destPath: '/api/plugin/v1/transactions',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
srcPath: '/payments/api/merchant',
|
|
175
|
+
destPath: '/api/merchant',
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
'us-applepay.wixapps.net': [
|
|
179
|
+
{
|
|
180
|
+
srcPath: '/_api/payment-services-web',
|
|
181
|
+
destPath: '/api',
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
'eu-applepay.wixapps.net': [
|
|
185
|
+
{
|
|
186
|
+
srcPath: '/_api/payment-services-web',
|
|
187
|
+
destPath: '/api',
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
'payments-sb.wixapps.net': [
|
|
191
|
+
{
|
|
192
|
+
srcPath: '/_api/payment-services-web',
|
|
193
|
+
destPath: '/api',
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
'manage._base_domain_': [
|
|
197
|
+
{
|
|
198
|
+
srcPath: '/_api/payment-services-web',
|
|
199
|
+
destPath: '/api',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
srcPath: '/ambassador/payment-services-web',
|
|
203
|
+
destPath: '',
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
_: [
|
|
207
|
+
{
|
|
208
|
+
srcPath: '/_api/payment-services-web',
|
|
209
|
+
destPath: '/api',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
srcPath: '/.well-known/apple-developer-merchantid-domain-association',
|
|
213
|
+
destPath: '/domain-verification/apple-pay',
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
'events.wixapps.net': [
|
|
217
|
+
{
|
|
218
|
+
srcPath: '/_api/payment-services-web',
|
|
219
|
+
destPath: '/api',
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
'tpa.wixapps.net': [
|
|
223
|
+
{
|
|
224
|
+
srcPath: '/_api/payment-services-web',
|
|
225
|
+
destPath: '/api',
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
srcPath: '/payment-services-web',
|
|
229
|
+
destPath: '',
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
'pricing-plans.wixapps.net': [
|
|
233
|
+
{
|
|
234
|
+
srcPath: '/_api/payment-services-web',
|
|
235
|
+
destPath: '/api',
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
'editor-flow.wixapps.net': [
|
|
239
|
+
{
|
|
240
|
+
srcPath: '/_api/payment-services-web',
|
|
241
|
+
destPath: '/api',
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
'bo._base_domain_': [
|
|
245
|
+
{
|
|
246
|
+
srcPath: '/_api/payment-services-web',
|
|
247
|
+
destPath: '/api',
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
'wixbo.ai': [
|
|
251
|
+
{
|
|
252
|
+
srcPath: '/_api/payment-services-web',
|
|
253
|
+
destPath: '/api',
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
'wix-bo.com': [
|
|
257
|
+
{
|
|
258
|
+
srcPath: '/_api/payment-services-web',
|
|
259
|
+
destPath: '/api',
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
'editor.wixapps.net': [
|
|
263
|
+
{
|
|
264
|
+
srcPath: '/_api/payment-services-web',
|
|
265
|
+
destPath: '/api',
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
'premium._base_domain_': [
|
|
269
|
+
{
|
|
270
|
+
srcPath: '/_api/payment-services-web',
|
|
271
|
+
destPath: '/api',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
srcPath: '/payment-services-web',
|
|
275
|
+
destPath: '',
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
'www._base_domain_': [
|
|
279
|
+
{
|
|
280
|
+
srcPath: '/_api/payment-services-web',
|
|
281
|
+
destPath: '/api',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
srcPath: '/.well-known/apple-developer-merchantid-domain-association',
|
|
285
|
+
destPath: '/domain-verification/apple-pay',
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
'payment-webhooks.wixapps.net': [
|
|
289
|
+
{
|
|
290
|
+
srcPath: '/cashier/accounts/stripe',
|
|
291
|
+
destPath: '/api/merchant/stripe',
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
srcPath: '/cashier/transactions/stripe',
|
|
295
|
+
destPath: '/api/stripe',
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
'cashier-services.wixapis.com': [
|
|
299
|
+
{
|
|
300
|
+
srcPath: '/payments/v1/provider-platform-events',
|
|
301
|
+
destPath: '/payments/v1/provider-platform-events',
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
};
|
|
305
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
306
|
+
}
|
|
307
|
+
const PACKAGE_NAME = '@wix/auto_sdk_payments_psp-callbacks';
|
|
308
|
+
/**
|
|
309
|
+
* This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
|
|
310
|
+
*
|
|
311
|
+
* 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}`.
|
|
312
|
+
* PSP's create their own version numbers.
|
|
313
|
+
*
|
|
314
|
+
* > You cannot try out this endpoint because an `Authorization` header value has to be obtained
|
|
315
|
+
* > with the OAuth 2.0 client credentials flow for a specific scope.
|
|
316
|
+
* > So please ignore the **Authorization** section below as well as the **Try It Out** button.
|
|
317
|
+
*/
|
|
318
|
+
export function submitEvent(payload) {
|
|
319
|
+
function __submitEvent({ host }) {
|
|
320
|
+
const metadata = {
|
|
321
|
+
entityFqdn: 'wix.payments.psp.v1.provider_platform_event',
|
|
322
|
+
method: 'POST',
|
|
323
|
+
methodFqn: 'wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent',
|
|
324
|
+
packageName: PACKAGE_NAME,
|
|
325
|
+
url: resolveWixPaymentsV1ProviderPlatformEventsProviderPlatformEventsServiceUrl({
|
|
326
|
+
protoPath: '/payments/v1/provider-platform-events',
|
|
327
|
+
data: payload,
|
|
328
|
+
host,
|
|
329
|
+
}),
|
|
330
|
+
data: payload,
|
|
331
|
+
};
|
|
332
|
+
return metadata;
|
|
333
|
+
}
|
|
334
|
+
return __submitEvent;
|
|
335
|
+
}
|
|
336
|
+
//# 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,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;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;g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,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,MAAM;aACjB;YACD;gBACE,OAAO,EAAE,4DAA4D;gBACrE,QAAQ,EAAE,gCAAgC;aAC3C;SACF;QACD,8BAA8B,EAAE;YAC9B;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,sBAAsB;aACjC;YACD;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,aAAa;aACxB;SACF;QACD,8BAA8B,EAAE;YAC9B;gBACE,OAAO,EAAE,uCAAuC;gBAChD,QAAQ,EAAE,uCAAuC;aAClD;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,sCAAsC,CAAC;AAE5D;;;;;;;;;GASG;AACH,MAAM,UAAU,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"}
|
|
@@ -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,20 @@
|
|
|
1
|
+
import * as ambassadorWixPaymentsPspV1ProviderPlatformEvent from './payments-psp-v1-provider-platform-event-psp-callbacks.http.js';
|
|
2
|
+
export function submitEvent() {
|
|
3
|
+
const payload = {};
|
|
4
|
+
const getRequestOptions = ambassadorWixPaymentsPspV1ProviderPlatformEvent.submitEvent(payload);
|
|
5
|
+
const getUrl = (context) => {
|
|
6
|
+
const { url } = getRequestOptions(context);
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl,
|
|
11
|
+
httpMethod: 'POST',
|
|
12
|
+
path: '/payments/v1/provider-platform-events',
|
|
13
|
+
pathParams: {},
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# 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,OAAO,KAAK,+CAA+C,MAAM,iEAAiE,CAAC;AAsBnI,MAAM,UAAU,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"}
|
|
@@ -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,8 @@
|
|
|
1
|
+
import { submitEvent as universalSubmitEvent, } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
|
|
2
|
+
export const __metadata = { PACKAGE_NAME: '@wix/payments' };
|
|
3
|
+
export function submitEvent(httpClient) {
|
|
4
|
+
return (event) => universalSubmitEvent(event,
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
{ httpClient });
|
|
7
|
+
}
|
|
8
|
+
//# 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,OAAO,EAEL,WAAW,IAAI,oBAAoB,GACpC,MAAM,sEAAsE,CAAC;AAE9E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,KAA4B,EAAE,EAAE,CACtC,oBAAoB,CAClB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/** Provider platform event */
|
|
2
|
+
export interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf {
|
|
3
|
+
/** Refund event data. */
|
|
4
|
+
refund?: RefundEvent;
|
|
5
|
+
/** Transaction event data. */
|
|
6
|
+
transaction?: TransactionEvent;
|
|
7
|
+
/** Capture event data */
|
|
8
|
+
capture?: CaptureEvent;
|
|
9
|
+
/** Void event data */
|
|
10
|
+
void?: VoidEvent;
|
|
11
|
+
/**
|
|
12
|
+
* This field is ignored, do not send it.
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
pluginId?: string;
|
|
16
|
+
}
|
|
17
|
+
/** @oneof */
|
|
18
|
+
export interface ProviderPlatformEventResourceOneOf {
|
|
19
|
+
/** Refund event data. */
|
|
20
|
+
refund?: RefundEvent;
|
|
21
|
+
/** Transaction event data. */
|
|
22
|
+
transaction?: TransactionEvent;
|
|
23
|
+
/** Capture event data */
|
|
24
|
+
capture?: CaptureEvent;
|
|
25
|
+
/** Void event data */
|
|
26
|
+
void?: VoidEvent;
|
|
27
|
+
}
|
|
28
|
+
export interface RefundEvent {
|
|
29
|
+
/** Wix transaction ID. */
|
|
30
|
+
wixTransactionId?: string;
|
|
31
|
+
/** PSP refund ID. */
|
|
32
|
+
pluginRefundId?: string;
|
|
33
|
+
/** 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. */
|
|
34
|
+
reasonCode?: number;
|
|
35
|
+
/** Refunded amount. */
|
|
36
|
+
amount?: string;
|
|
37
|
+
/** Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard. */
|
|
38
|
+
wixRefundId?: string | null;
|
|
39
|
+
/** PSP-specific error code. */
|
|
40
|
+
errorCode?: string | null;
|
|
41
|
+
/** PSP-specific error message. */
|
|
42
|
+
errorMessage?: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface TransactionEvent {
|
|
45
|
+
/** Wix transaction ID. */
|
|
46
|
+
wixTransactionId?: string;
|
|
47
|
+
/** PSP transaction ID. */
|
|
48
|
+
pluginTransactionId?: string;
|
|
49
|
+
/** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request. */
|
|
50
|
+
reasonCode?: number;
|
|
51
|
+
/** PSP-specific error code. */
|
|
52
|
+
errorCode?: string | null;
|
|
53
|
+
/** PSP-specific error message. */
|
|
54
|
+
errorMessage?: string | null;
|
|
55
|
+
/** Token data for stored payment method. */
|
|
56
|
+
credentialsOnFile?: CredentialsOnFile;
|
|
57
|
+
/** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */
|
|
58
|
+
cardDetails?: CardDetails;
|
|
59
|
+
}
|
|
60
|
+
export interface CredentialsOnFile extends CredentialsOnFileInfoOneOf {
|
|
61
|
+
/** Network token data. */
|
|
62
|
+
cardReference?: CardReference;
|
|
63
|
+
/** Provider generated token data. */
|
|
64
|
+
paymentMethodReference?: PaymentMethodReference;
|
|
65
|
+
}
|
|
66
|
+
/** @oneof */
|
|
67
|
+
export interface CredentialsOnFileInfoOneOf {
|
|
68
|
+
/** Network token data. */
|
|
69
|
+
cardReference?: CardReference;
|
|
70
|
+
/** Provider generated token data. */
|
|
71
|
+
paymentMethodReference?: PaymentMethodReference;
|
|
72
|
+
}
|
|
73
|
+
export interface CardReference {
|
|
74
|
+
/** Network token. */
|
|
75
|
+
networkTransactionId?: string;
|
|
76
|
+
/** Directory Server transaction ID */
|
|
77
|
+
dsTransactionId?: string | null;
|
|
78
|
+
}
|
|
79
|
+
export interface PaymentMethodReference {
|
|
80
|
+
/** Payment method token created by the PSP. */
|
|
81
|
+
token?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface CardDetails {
|
|
84
|
+
/** Issuer (business) identification number. First 6 or 8 digits of the card's number. */
|
|
85
|
+
bin?: string | null;
|
|
86
|
+
/** Last 4 digits of the card's number. */
|
|
87
|
+
lastFour?: string | null;
|
|
88
|
+
}
|
|
89
|
+
export interface CaptureEvent {
|
|
90
|
+
/** Wix transaction ID. */
|
|
91
|
+
wixTransactionId?: string;
|
|
92
|
+
/** Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes#capture-declined) indicating request's status. */
|
|
93
|
+
reasonCode?: number;
|
|
94
|
+
/** Capture amount. */
|
|
95
|
+
amount?: string;
|
|
96
|
+
/** PSP-specific error code. */
|
|
97
|
+
errorCode?: string | null;
|
|
98
|
+
/** PSP-specific error message. */
|
|
99
|
+
errorMessage?: string | null;
|
|
100
|
+
}
|
|
101
|
+
export interface VoidEvent {
|
|
102
|
+
/** Wix transaction ID. */
|
|
103
|
+
wixTransactionId?: string;
|
|
104
|
+
/** PSP void ID. */
|
|
105
|
+
reasonCode?: number;
|
|
106
|
+
/** Voided amount. */
|
|
107
|
+
amount?: string;
|
|
108
|
+
/** PSP-specific error code. */
|
|
109
|
+
errorCode?: string | null;
|
|
110
|
+
/** PSP-specific error message. */
|
|
111
|
+
errorMessage?: string | null;
|
|
112
|
+
}
|
|
113
|
+
/** Submit event request */
|
|
114
|
+
export interface SubmitEventRequest {
|
|
115
|
+
/** Event data. */
|
|
116
|
+
event: ProviderPlatformEvent;
|
|
117
|
+
}
|
|
118
|
+
/** Submit event response */
|
|
119
|
+
export interface SubmitEventResponse {
|
|
120
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.types.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.types.ts"],"names":[],"mappings":""}
|