@wix/auto_sdk_payments_psp-callbacks 1.0.6 → 1.0.7
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 +410 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +383 -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 +410 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +383 -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 +389 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +362 -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 +389 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +362 -0
- package/build/meta.mjs.map +1 -0
- 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.mts} +15 -13
- 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.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 -350
- 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 -346
- 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 -350
- 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 -346
- 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
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { S as SubmitEventRequest$1, g as SubmitEventResponse$1 } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.mjs';
|
|
2
|
+
|
|
3
|
+
/** Provider platform event */
|
|
4
|
+
interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf {
|
|
5
|
+
/** Refund event data. */
|
|
6
|
+
refund?: RefundEvent;
|
|
7
|
+
/** Transaction event data. */
|
|
8
|
+
transaction?: TransactionEvent;
|
|
9
|
+
/** Capture event data. */
|
|
10
|
+
capture?: CaptureEvent;
|
|
11
|
+
/** Void event data. */
|
|
12
|
+
void?: VoidEvent;
|
|
13
|
+
/**
|
|
14
|
+
* This field is deprecated.
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
pluginId?: string;
|
|
18
|
+
}
|
|
19
|
+
/** @oneof */
|
|
20
|
+
interface ProviderPlatformEventResourceOneOf {
|
|
21
|
+
/** Refund event data. */
|
|
22
|
+
refund?: RefundEvent;
|
|
23
|
+
/** Transaction event data. */
|
|
24
|
+
transaction?: TransactionEvent;
|
|
25
|
+
/** Capture event data. */
|
|
26
|
+
capture?: CaptureEvent;
|
|
27
|
+
/** Void event data. */
|
|
28
|
+
void?: VoidEvent;
|
|
29
|
+
}
|
|
30
|
+
interface RefundEvent {
|
|
31
|
+
/** Wix transaction ID. */
|
|
32
|
+
wixTransactionId?: string;
|
|
33
|
+
/** PSP refund ID. */
|
|
34
|
+
pluginRefundId?: string;
|
|
35
|
+
/** 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. */
|
|
36
|
+
reasonCode?: number;
|
|
37
|
+
/** Refunded amount. */
|
|
38
|
+
amount?: string;
|
|
39
|
+
/** Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard. */
|
|
40
|
+
wixRefundId?: string | null;
|
|
41
|
+
/** PSP-specific error code. */
|
|
42
|
+
errorCode?: string | null;
|
|
43
|
+
/** PSP-specific error message. */
|
|
44
|
+
errorMessage?: string | null;
|
|
45
|
+
}
|
|
46
|
+
interface TransactionEvent {
|
|
47
|
+
/** Wix transaction ID. */
|
|
48
|
+
wixTransactionId?: string;
|
|
49
|
+
/** PSP transaction ID. */
|
|
50
|
+
pluginTransactionId?: string;
|
|
51
|
+
/** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request. */
|
|
52
|
+
reasonCode?: number;
|
|
53
|
+
/** PSP-specific error code. */
|
|
54
|
+
errorCode?: string | null;
|
|
55
|
+
/** PSP-specific error message. */
|
|
56
|
+
errorMessage?: string | null;
|
|
57
|
+
/** Token data for stored payment method. */
|
|
58
|
+
credentialsOnFile?: CredentialsOnFile;
|
|
59
|
+
/** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */
|
|
60
|
+
cardDetails?: CardDetails;
|
|
61
|
+
}
|
|
62
|
+
interface CredentialsOnFile extends CredentialsOnFileInfoOneOf {
|
|
63
|
+
/** Network token data. */
|
|
64
|
+
cardReference?: CardReference;
|
|
65
|
+
/** Provider generated token data. */
|
|
66
|
+
paymentMethodReference?: PaymentMethodReference;
|
|
67
|
+
}
|
|
68
|
+
/** @oneof */
|
|
69
|
+
interface CredentialsOnFileInfoOneOf {
|
|
70
|
+
/** Network token data. */
|
|
71
|
+
cardReference?: CardReference;
|
|
72
|
+
/** Provider generated token data. */
|
|
73
|
+
paymentMethodReference?: PaymentMethodReference;
|
|
74
|
+
}
|
|
75
|
+
interface CardReference {
|
|
76
|
+
/** Network token. */
|
|
77
|
+
networkTransactionId?: string;
|
|
78
|
+
/** Directory Server transaction ID */
|
|
79
|
+
dsTransactionId?: string | null;
|
|
80
|
+
}
|
|
81
|
+
interface PaymentMethodReference {
|
|
82
|
+
/** Payment method token created by the PSP. */
|
|
83
|
+
token?: string;
|
|
84
|
+
}
|
|
85
|
+
interface CardDetails {
|
|
86
|
+
/**
|
|
87
|
+
* Issuer (business) identification number. First 6 or 8 digits of the card's number.
|
|
88
|
+
* @minLength 6
|
|
89
|
+
* @maxLength 8
|
|
90
|
+
*/
|
|
91
|
+
bin?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Last 4 digits of the card's number.
|
|
94
|
+
* @minLength 4
|
|
95
|
+
* @maxLength 4
|
|
96
|
+
*/
|
|
97
|
+
lastFour?: string | null;
|
|
98
|
+
}
|
|
99
|
+
interface CaptureEvent {
|
|
100
|
+
/**
|
|
101
|
+
* Wix transaction ID.
|
|
102
|
+
* @format GUID
|
|
103
|
+
*/
|
|
104
|
+
wixTransactionId?: string;
|
|
105
|
+
/** 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. */
|
|
106
|
+
reasonCode?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Total amount captured in a currency’s minor units.
|
|
109
|
+
* Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).
|
|
110
|
+
*/
|
|
111
|
+
amount?: string;
|
|
112
|
+
/**
|
|
113
|
+
* PSP-specific error code.
|
|
114
|
+
* @maxLength 50
|
|
115
|
+
*/
|
|
116
|
+
errorCode?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* PSP-specific error message.
|
|
119
|
+
* @maxLength 300
|
|
120
|
+
*/
|
|
121
|
+
errorMessage?: string | null;
|
|
122
|
+
}
|
|
123
|
+
interface VoidEvent {
|
|
124
|
+
/**
|
|
125
|
+
* Wix transaction ID.
|
|
126
|
+
* @format GUID
|
|
127
|
+
*/
|
|
128
|
+
wixTransactionId?: string;
|
|
129
|
+
/** 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. */
|
|
130
|
+
reasonCode?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Total amount voided in a currency’s minor units.
|
|
133
|
+
* Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).
|
|
134
|
+
*/
|
|
135
|
+
amount?: string;
|
|
136
|
+
/**
|
|
137
|
+
* PSP-specific error code.
|
|
138
|
+
* @maxLength 50
|
|
139
|
+
*/
|
|
140
|
+
errorCode?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* PSP-specific error message.
|
|
143
|
+
* @maxLength 300
|
|
144
|
+
*/
|
|
145
|
+
errorMessage?: string | null;
|
|
146
|
+
}
|
|
147
|
+
/** Submit event request */
|
|
148
|
+
interface SubmitEventRequest {
|
|
149
|
+
/** Event data. */
|
|
150
|
+
event: ProviderPlatformEvent;
|
|
151
|
+
}
|
|
152
|
+
/** Submit event response */
|
|
153
|
+
interface SubmitEventResponse {
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
157
|
+
getUrl: (context: any) => string;
|
|
158
|
+
httpMethod: K;
|
|
159
|
+
path: string;
|
|
160
|
+
pathParams: M;
|
|
161
|
+
__requestType: T;
|
|
162
|
+
__originalRequestType: S;
|
|
163
|
+
__responseType: Q;
|
|
164
|
+
__originalResponseType: R;
|
|
165
|
+
};
|
|
166
|
+
declare function submitEvent(): __PublicMethodMetaInfo<'POST', {}, SubmitEventRequest$1, SubmitEventRequest, SubmitEventResponse$1, SubmitEventResponse>;
|
|
167
|
+
|
|
168
|
+
export { type __PublicMethodMetaInfo, submitEvent };
|
package/build/meta.d.ts
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { S as SubmitEventRequest$1, g as SubmitEventResponse$1 } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.js';
|
|
2
|
+
|
|
3
|
+
/** Provider platform event */
|
|
4
|
+
interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf {
|
|
5
|
+
/** Refund event data. */
|
|
6
|
+
refund?: RefundEvent;
|
|
7
|
+
/** Transaction event data. */
|
|
8
|
+
transaction?: TransactionEvent;
|
|
9
|
+
/** Capture event data. */
|
|
10
|
+
capture?: CaptureEvent;
|
|
11
|
+
/** Void event data. */
|
|
12
|
+
void?: VoidEvent;
|
|
13
|
+
/**
|
|
14
|
+
* This field is deprecated.
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
pluginId?: string;
|
|
18
|
+
}
|
|
19
|
+
/** @oneof */
|
|
20
|
+
interface ProviderPlatformEventResourceOneOf {
|
|
21
|
+
/** Refund event data. */
|
|
22
|
+
refund?: RefundEvent;
|
|
23
|
+
/** Transaction event data. */
|
|
24
|
+
transaction?: TransactionEvent;
|
|
25
|
+
/** Capture event data. */
|
|
26
|
+
capture?: CaptureEvent;
|
|
27
|
+
/** Void event data. */
|
|
28
|
+
void?: VoidEvent;
|
|
29
|
+
}
|
|
30
|
+
interface RefundEvent {
|
|
31
|
+
/** Wix transaction ID. */
|
|
32
|
+
wixTransactionId?: string;
|
|
33
|
+
/** PSP refund ID. */
|
|
34
|
+
pluginRefundId?: string;
|
|
35
|
+
/** 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. */
|
|
36
|
+
reasonCode?: number;
|
|
37
|
+
/** Refunded amount. */
|
|
38
|
+
amount?: string;
|
|
39
|
+
/** Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard. */
|
|
40
|
+
wixRefundId?: string | null;
|
|
41
|
+
/** PSP-specific error code. */
|
|
42
|
+
errorCode?: string | null;
|
|
43
|
+
/** PSP-specific error message. */
|
|
44
|
+
errorMessage?: string | null;
|
|
45
|
+
}
|
|
46
|
+
interface TransactionEvent {
|
|
47
|
+
/** Wix transaction ID. */
|
|
48
|
+
wixTransactionId?: string;
|
|
49
|
+
/** PSP transaction ID. */
|
|
50
|
+
pluginTransactionId?: string;
|
|
51
|
+
/** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request. */
|
|
52
|
+
reasonCode?: number;
|
|
53
|
+
/** PSP-specific error code. */
|
|
54
|
+
errorCode?: string | null;
|
|
55
|
+
/** PSP-specific error message. */
|
|
56
|
+
errorMessage?: string | null;
|
|
57
|
+
/** Token data for stored payment method. */
|
|
58
|
+
credentialsOnFile?: CredentialsOnFile;
|
|
59
|
+
/** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */
|
|
60
|
+
cardDetails?: CardDetails;
|
|
61
|
+
}
|
|
62
|
+
interface CredentialsOnFile extends CredentialsOnFileInfoOneOf {
|
|
63
|
+
/** Network token data. */
|
|
64
|
+
cardReference?: CardReference;
|
|
65
|
+
/** Provider generated token data. */
|
|
66
|
+
paymentMethodReference?: PaymentMethodReference;
|
|
67
|
+
}
|
|
68
|
+
/** @oneof */
|
|
69
|
+
interface CredentialsOnFileInfoOneOf {
|
|
70
|
+
/** Network token data. */
|
|
71
|
+
cardReference?: CardReference;
|
|
72
|
+
/** Provider generated token data. */
|
|
73
|
+
paymentMethodReference?: PaymentMethodReference;
|
|
74
|
+
}
|
|
75
|
+
interface CardReference {
|
|
76
|
+
/** Network token. */
|
|
77
|
+
networkTransactionId?: string;
|
|
78
|
+
/** Directory Server transaction ID */
|
|
79
|
+
dsTransactionId?: string | null;
|
|
80
|
+
}
|
|
81
|
+
interface PaymentMethodReference {
|
|
82
|
+
/** Payment method token created by the PSP. */
|
|
83
|
+
token?: string;
|
|
84
|
+
}
|
|
85
|
+
interface CardDetails {
|
|
86
|
+
/**
|
|
87
|
+
* Issuer (business) identification number. First 6 or 8 digits of the card's number.
|
|
88
|
+
* @minLength 6
|
|
89
|
+
* @maxLength 8
|
|
90
|
+
*/
|
|
91
|
+
bin?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Last 4 digits of the card's number.
|
|
94
|
+
* @minLength 4
|
|
95
|
+
* @maxLength 4
|
|
96
|
+
*/
|
|
97
|
+
lastFour?: string | null;
|
|
98
|
+
}
|
|
99
|
+
interface CaptureEvent {
|
|
100
|
+
/**
|
|
101
|
+
* Wix transaction ID.
|
|
102
|
+
* @format GUID
|
|
103
|
+
*/
|
|
104
|
+
wixTransactionId?: string;
|
|
105
|
+
/** 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. */
|
|
106
|
+
reasonCode?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Total amount captured in a currency’s minor units.
|
|
109
|
+
* Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).
|
|
110
|
+
*/
|
|
111
|
+
amount?: string;
|
|
112
|
+
/**
|
|
113
|
+
* PSP-specific error code.
|
|
114
|
+
* @maxLength 50
|
|
115
|
+
*/
|
|
116
|
+
errorCode?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* PSP-specific error message.
|
|
119
|
+
* @maxLength 300
|
|
120
|
+
*/
|
|
121
|
+
errorMessage?: string | null;
|
|
122
|
+
}
|
|
123
|
+
interface VoidEvent {
|
|
124
|
+
/**
|
|
125
|
+
* Wix transaction ID.
|
|
126
|
+
* @format GUID
|
|
127
|
+
*/
|
|
128
|
+
wixTransactionId?: string;
|
|
129
|
+
/** 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. */
|
|
130
|
+
reasonCode?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Total amount voided in a currency’s minor units.
|
|
133
|
+
* Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).
|
|
134
|
+
*/
|
|
135
|
+
amount?: string;
|
|
136
|
+
/**
|
|
137
|
+
* PSP-specific error code.
|
|
138
|
+
* @maxLength 50
|
|
139
|
+
*/
|
|
140
|
+
errorCode?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* PSP-specific error message.
|
|
143
|
+
* @maxLength 300
|
|
144
|
+
*/
|
|
145
|
+
errorMessage?: string | null;
|
|
146
|
+
}
|
|
147
|
+
/** Submit event request */
|
|
148
|
+
interface SubmitEventRequest {
|
|
149
|
+
/** Event data. */
|
|
150
|
+
event: ProviderPlatformEvent;
|
|
151
|
+
}
|
|
152
|
+
/** Submit event response */
|
|
153
|
+
interface SubmitEventResponse {
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
157
|
+
getUrl: (context: any) => string;
|
|
158
|
+
httpMethod: K;
|
|
159
|
+
path: string;
|
|
160
|
+
pathParams: M;
|
|
161
|
+
__requestType: T;
|
|
162
|
+
__originalRequestType: S;
|
|
163
|
+
__responseType: Q;
|
|
164
|
+
__originalResponseType: R;
|
|
165
|
+
};
|
|
166
|
+
declare function submitEvent(): __PublicMethodMetaInfo<'POST', {}, SubmitEventRequest$1, SubmitEventRequest, SubmitEventResponse$1, SubmitEventResponse>;
|
|
167
|
+
|
|
168
|
+
export { type __PublicMethodMetaInfo, submitEvent };
|