@wix/auto_sdk_payments_payments 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 +54 -0
- package/build/cjs/index.js +523 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +34 -0
- package/build/cjs/index.typings.js +401 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1424 -0
- package/build/cjs/meta.js +359 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/payments-platform-v1-payment-payments.universal-DeCl2FPc.d.ts +1650 -0
- package/build/cjs/schemas.d.ts +500 -0
- package/build/cjs/schemas.js +810 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +54 -0
- package/build/es/index.mjs +480 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +34 -0
- package/build/es/index.typings.mjs +360 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1424 -0
- package/build/es/meta.mjs +316 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/payments-platform-v1-payment-payments.universal-DeCl2FPc.d.mts +1650 -0
- package/build/es/schemas.d.mts +500 -0
- package/build/es/schemas.mjs +770 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +54 -0
- package/build/internal/cjs/index.js +523 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +34 -0
- package/build/internal/cjs/index.typings.js +401 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1521 -0
- package/build/internal/cjs/meta.js +359 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/payments-platform-v1-payment-payments.universal-C5s3nmb-.d.ts +1705 -0
- package/build/internal/cjs/schemas.d.ts +500 -0
- package/build/internal/cjs/schemas.js +810 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +54 -0
- package/build/internal/es/index.mjs +480 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +34 -0
- package/build/internal/es/index.typings.mjs +360 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1521 -0
- package/build/internal/es/meta.mjs +316 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/payments-platform-v1-payment-payments.universal-C5s3nmb-.d.mts +1705 -0
- package/build/internal/es/schemas.d.mts +500 -0
- package/build/internal/es/schemas.mjs +770 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,1705 @@
|
|
|
1
|
+
import * as _wix_sdk_types from '@wix/sdk-types';
|
|
2
|
+
import { SearchSpec, Search, NonNullablePaths } from '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A payment is a read-only aggregate view of a charge. Each payment
|
|
6
|
+
* combines a single charge with all of its related refunds, disputes, and
|
|
7
|
+
* notification of fraud into one entity, sharing its ID with the source charge.
|
|
8
|
+
*/
|
|
9
|
+
interface Payment {
|
|
10
|
+
/**
|
|
11
|
+
* Payment ID. Identical to the charge ID.
|
|
12
|
+
* @format GUID
|
|
13
|
+
* @immutable
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
_id?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Date and time the payment was created.
|
|
19
|
+
* @immutable
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
_createdDate?: Date | null;
|
|
23
|
+
/**
|
|
24
|
+
* Date and time the payment was last updated.
|
|
25
|
+
* @readonly
|
|
26
|
+
*/
|
|
27
|
+
_updatedDate?: Date | null;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the Wix app that initiated the checkout.
|
|
30
|
+
* @minLength 1
|
|
31
|
+
* @maxLength 255
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
appId?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Whether a refund can currently be created for the payment, based on the
|
|
37
|
+
* charge state, payment method, and provider configuration. A `true` value
|
|
38
|
+
* can still result in a failed refund attempt due to permissions, account
|
|
39
|
+
* balance, or provider restrictions enforced at refund creation time.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
refundable?: boolean | null;
|
|
43
|
+
/**
|
|
44
|
+
* Charge details for the payment, including amount, currency, status,
|
|
45
|
+
* payment method, and buyer information.
|
|
46
|
+
* @readonly
|
|
47
|
+
*/
|
|
48
|
+
charge?: Charge;
|
|
49
|
+
/**
|
|
50
|
+
* List of refunds associated with the payment, ordered by creation date in descending order.
|
|
51
|
+
* For the complete refund history, use the [Refunds API](https://dev.wix.com/docs/api-reference/business-management/payments/refunds/introduction).
|
|
52
|
+
* @maxSize 50
|
|
53
|
+
* @readonly
|
|
54
|
+
*/
|
|
55
|
+
refunds?: Refund[];
|
|
56
|
+
/**
|
|
57
|
+
* List of disputes associated with the payment, ordered by creation date in descending order.
|
|
58
|
+
* For the complete dispute history, use the [Disputes API](https://dev.wix.com/docs/api-reference/business-management/payments/disputes/introduction).
|
|
59
|
+
* @maxSize 20
|
|
60
|
+
* @readonly
|
|
61
|
+
*/
|
|
62
|
+
disputes?: Dispute[];
|
|
63
|
+
/**
|
|
64
|
+
* Notification of fraud associated with this payment, if any.
|
|
65
|
+
*
|
|
66
|
+
* A charge has at most one notification of fraud.
|
|
67
|
+
* @readonly
|
|
68
|
+
*/
|
|
69
|
+
notificationOfFraud?: NotificationOfFraud;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A charge is a record of an attempt to move money from a buyer to a merchant.
|
|
73
|
+
* Read more about charges in this [article](<https://dev.wix.com/docs/api-reference/business-management/payments/charges/introduction>).
|
|
74
|
+
*/
|
|
75
|
+
interface Charge {
|
|
76
|
+
/**
|
|
77
|
+
* Charge ID.
|
|
78
|
+
* @format GUID
|
|
79
|
+
* @immutable
|
|
80
|
+
* @readonly
|
|
81
|
+
*/
|
|
82
|
+
_id?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Date and time the charge was created.
|
|
85
|
+
* @immutable
|
|
86
|
+
* @readonly
|
|
87
|
+
*/
|
|
88
|
+
_createdDate?: Date | null;
|
|
89
|
+
/**
|
|
90
|
+
* Date and time the charge was last updated.
|
|
91
|
+
* @readonly
|
|
92
|
+
*/
|
|
93
|
+
_updatedDate?: Date | null;
|
|
94
|
+
/**
|
|
95
|
+
* ID of the merchant's provider account connection.
|
|
96
|
+
* @format GUID
|
|
97
|
+
* @immutable
|
|
98
|
+
* @readonly
|
|
99
|
+
*/
|
|
100
|
+
accountConnectionId?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* ID of the PaymentIntent that initiated the charge.
|
|
103
|
+
* @format GUID
|
|
104
|
+
* @immutable
|
|
105
|
+
* @readonly
|
|
106
|
+
*/
|
|
107
|
+
paymentIntentId?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Status of the charge.
|
|
110
|
+
* See the [Charges API](https://dev.wix.com/docs/api-reference/business-management/payments/charges/introduction) for more information.
|
|
111
|
+
* @readonly
|
|
112
|
+
*/
|
|
113
|
+
status?: StatusWithLiterals;
|
|
114
|
+
/**
|
|
115
|
+
* Additional details about the current charge status.
|
|
116
|
+
* @readonly
|
|
117
|
+
*/
|
|
118
|
+
statusDetails?: StatusDetails;
|
|
119
|
+
/**
|
|
120
|
+
* Total charge amount in the currency's main units.
|
|
121
|
+
* For example, `12.95` for $12.95 USD.
|
|
122
|
+
* @decimalValue options { gte:0, maxScale:8 }
|
|
123
|
+
* @readonly
|
|
124
|
+
*/
|
|
125
|
+
amount?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* Currency of the charge.
|
|
128
|
+
* @format CURRENCY
|
|
129
|
+
* @immutable
|
|
130
|
+
* @readonly
|
|
131
|
+
*/
|
|
132
|
+
currencyCode?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* Platform fee amount in the currency's main units.
|
|
135
|
+
* For example, `1.50` for a $1.50 platform fee.
|
|
136
|
+
* Used in scenarios where the platform charges a fee for processing the transaction.
|
|
137
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
138
|
+
* @readonly
|
|
139
|
+
*/
|
|
140
|
+
applicationFee?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Items being purchased in this charge.
|
|
143
|
+
* Each line item represents a product or service with quantity, pricing, and tax information.
|
|
144
|
+
* @maxSize 100
|
|
145
|
+
* @readonly
|
|
146
|
+
*/
|
|
147
|
+
orderLineItems?: OrderLineItem[];
|
|
148
|
+
/**
|
|
149
|
+
* Detailed breakdown of amounts that contribute to the total charge amount.
|
|
150
|
+
* Includes shipping costs, taxes, and discounts applied to the order.
|
|
151
|
+
* @readonly
|
|
152
|
+
*/
|
|
153
|
+
amountBreakdown?: AmountBreakdown;
|
|
154
|
+
/**
|
|
155
|
+
* Text that appears on the customer's payment statement for this charge.
|
|
156
|
+
* Helps customers identify the transaction.
|
|
157
|
+
* @maxLength 20
|
|
158
|
+
* @readonly
|
|
159
|
+
*/
|
|
160
|
+
statementDescriptor?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Customer's billing address and contact information.
|
|
163
|
+
* Used for payment processing, fraud prevention, and compliance requirements.
|
|
164
|
+
* @readonly
|
|
165
|
+
*/
|
|
166
|
+
billingInfo?: ContactInfo;
|
|
167
|
+
/**
|
|
168
|
+
* Customer's shipping address and contact information.
|
|
169
|
+
* Used for order fulfillment and risk assessment.
|
|
170
|
+
* @readonly
|
|
171
|
+
*/
|
|
172
|
+
shippingInfo?: ContactInfo;
|
|
173
|
+
/**
|
|
174
|
+
* Enriched payment method information from the payment provider.
|
|
175
|
+
* Includes processed details like card brand, last 4 digits, account information and other information that may vary based on payment method used.
|
|
176
|
+
* @readonly
|
|
177
|
+
*/
|
|
178
|
+
paymentMethod?: PaymentMethod;
|
|
179
|
+
/**
|
|
180
|
+
* Configuration for the payment processing flow.
|
|
181
|
+
* @readonly
|
|
182
|
+
*/
|
|
183
|
+
flowDetails?: FlowDetails;
|
|
184
|
+
/**
|
|
185
|
+
* Information about the customer making the payment.
|
|
186
|
+
* Links to contact records, site membership, and user accounts for personalization and compliance.
|
|
187
|
+
* @readonly
|
|
188
|
+
*/
|
|
189
|
+
buyer?: Buyer;
|
|
190
|
+
/**
|
|
191
|
+
* ID of the payment provider that processed this charge.
|
|
192
|
+
* @minLength 1
|
|
193
|
+
* @maxLength 100
|
|
194
|
+
* @readonly
|
|
195
|
+
*/
|
|
196
|
+
providerId?: string | null;
|
|
197
|
+
/**
|
|
198
|
+
* Charge ID as it appears in the payment provider's system.
|
|
199
|
+
* @minLength 1
|
|
200
|
+
* @maxLength 100
|
|
201
|
+
* @readonly
|
|
202
|
+
*/
|
|
203
|
+
providerChargeId?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Order identifier from the external system that initiated this charge.
|
|
206
|
+
* Passed through to the payment provider for reporting and allowing correlation between payment and order.
|
|
207
|
+
* @minLength 1
|
|
208
|
+
* @maxLength 1000
|
|
209
|
+
* @readonly
|
|
210
|
+
*/
|
|
211
|
+
externalOrderId?: string | null;
|
|
212
|
+
}
|
|
213
|
+
/** Shipping amount breakdown details. */
|
|
214
|
+
interface Shipping {
|
|
215
|
+
/**
|
|
216
|
+
* Shipping cost amount.
|
|
217
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
218
|
+
*/
|
|
219
|
+
amount?: string | null;
|
|
220
|
+
/**
|
|
221
|
+
* Shipping discount amount.
|
|
222
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
223
|
+
*/
|
|
224
|
+
discount?: string | null;
|
|
225
|
+
}
|
|
226
|
+
/** Full contact details for an address */
|
|
227
|
+
interface FullAddressContactDetails {
|
|
228
|
+
/** Contact's first name. */
|
|
229
|
+
firstName?: string | null;
|
|
230
|
+
/** Contact's last name. */
|
|
231
|
+
lastName?: string | null;
|
|
232
|
+
/**
|
|
233
|
+
* Contact's full name.
|
|
234
|
+
* @internal
|
|
235
|
+
*/
|
|
236
|
+
fullName?: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* Contact's phone number.
|
|
239
|
+
* @format PHONE
|
|
240
|
+
*/
|
|
241
|
+
phone?: string | null;
|
|
242
|
+
/** Contact's company name. */
|
|
243
|
+
company?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* Email associated with the address.
|
|
246
|
+
* @format EMAIL
|
|
247
|
+
*/
|
|
248
|
+
email?: string | null;
|
|
249
|
+
/** Tax info. Currently usable only in Brazil. */
|
|
250
|
+
vatId?: VatId;
|
|
251
|
+
}
|
|
252
|
+
interface VatId {
|
|
253
|
+
/** Customer's tax ID. */
|
|
254
|
+
_id?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Tax type.
|
|
257
|
+
*
|
|
258
|
+
* Supported values:
|
|
259
|
+
* + `CPF`: for individual tax payers
|
|
260
|
+
* + `CNPJ`: for corporations
|
|
261
|
+
*/
|
|
262
|
+
type?: VatTypeWithLiterals;
|
|
263
|
+
}
|
|
264
|
+
/** tax info types */
|
|
265
|
+
declare enum VatType {
|
|
266
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
267
|
+
/** CPF - for individual tax payers. */
|
|
268
|
+
CPF = "CPF",
|
|
269
|
+
/** CNPJ - for corporations */
|
|
270
|
+
CNPJ = "CNPJ"
|
|
271
|
+
}
|
|
272
|
+
/** @enumType */
|
|
273
|
+
type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
|
|
274
|
+
/** Physical address */
|
|
275
|
+
interface Address extends AddressStreetOneOf {
|
|
276
|
+
/** Street name and number. */
|
|
277
|
+
streetAddress?: StreetAddress;
|
|
278
|
+
/** Main address line, usually street and number as free text. */
|
|
279
|
+
addressLine1?: string | null;
|
|
280
|
+
/**
|
|
281
|
+
* Country code.
|
|
282
|
+
* @format COUNTRY
|
|
283
|
+
*/
|
|
284
|
+
country?: string | null;
|
|
285
|
+
/** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */
|
|
286
|
+
subdivision?: string | null;
|
|
287
|
+
/** City name. */
|
|
288
|
+
city?: string | null;
|
|
289
|
+
/** Zip/postal code. */
|
|
290
|
+
postalCode?: string | null;
|
|
291
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
292
|
+
addressLine2?: string | null;
|
|
293
|
+
/**
|
|
294
|
+
* A string containing the full address of this location.
|
|
295
|
+
* @internal
|
|
296
|
+
*/
|
|
297
|
+
formatted?: string | null;
|
|
298
|
+
/**
|
|
299
|
+
* Free text to help find the address.
|
|
300
|
+
* @internal
|
|
301
|
+
*/
|
|
302
|
+
hint?: string | null;
|
|
303
|
+
/**
|
|
304
|
+
* Coordinates of the physical address.
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
307
|
+
location?: AddressLocation;
|
|
308
|
+
/**
|
|
309
|
+
* Country full name.
|
|
310
|
+
* @internal
|
|
311
|
+
*/
|
|
312
|
+
countryFullname?: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* Subdivision full name.
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
subdivisionFullname?: string | null;
|
|
318
|
+
}
|
|
319
|
+
/** @oneof */
|
|
320
|
+
interface AddressStreetOneOf {
|
|
321
|
+
/** Street name and number. */
|
|
322
|
+
streetAddress?: StreetAddress;
|
|
323
|
+
/** Main address line, usually street and number as free text. */
|
|
324
|
+
addressLine?: string | null;
|
|
325
|
+
}
|
|
326
|
+
interface StreetAddress {
|
|
327
|
+
/** Street number. */
|
|
328
|
+
number?: string;
|
|
329
|
+
/** Street name. */
|
|
330
|
+
name?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Apartment number.
|
|
333
|
+
* @internal
|
|
334
|
+
*/
|
|
335
|
+
apt?: string;
|
|
336
|
+
/**
|
|
337
|
+
* Optional address line 1
|
|
338
|
+
* @internal
|
|
339
|
+
*/
|
|
340
|
+
formattedAddressLine?: string | null;
|
|
341
|
+
}
|
|
342
|
+
interface AddressLocation {
|
|
343
|
+
/** Address latitude. */
|
|
344
|
+
latitude?: number | null;
|
|
345
|
+
/** Address longitude. */
|
|
346
|
+
longitude?: number | null;
|
|
347
|
+
}
|
|
348
|
+
/** Information about a card payment method. */
|
|
349
|
+
interface Card {
|
|
350
|
+
/**
|
|
351
|
+
* Last 4 digits of the card number.
|
|
352
|
+
* @minLength 4
|
|
353
|
+
* @maxLength 4
|
|
354
|
+
*/
|
|
355
|
+
lastFourDigits?: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* Bank Identification Number - the first 4-8 digits of the card number.
|
|
358
|
+
* @minLength 4
|
|
359
|
+
* @maxLength 8
|
|
360
|
+
*/
|
|
361
|
+
bin?: string | null;
|
|
362
|
+
/**
|
|
363
|
+
* Month when the card expires (1-12).
|
|
364
|
+
* @min 1
|
|
365
|
+
* @max 12
|
|
366
|
+
*/
|
|
367
|
+
expirationMonth?: number | null;
|
|
368
|
+
/**
|
|
369
|
+
* Full year when the card expires.
|
|
370
|
+
* @min 2000
|
|
371
|
+
* @max 2099
|
|
372
|
+
*/
|
|
373
|
+
expirationYear?: number | null;
|
|
374
|
+
/**
|
|
375
|
+
* Full name of the cardholder as printed on the card.
|
|
376
|
+
* @minLength 1
|
|
377
|
+
* @maxLength 1000
|
|
378
|
+
*/
|
|
379
|
+
cardholderName?: string | null;
|
|
380
|
+
}
|
|
381
|
+
/** Account information for digital wallet or bank account payments. */
|
|
382
|
+
interface Account {
|
|
383
|
+
/**
|
|
384
|
+
* Email address associated with the payment account.
|
|
385
|
+
* @format EMAIL
|
|
386
|
+
*/
|
|
387
|
+
email?: string | null;
|
|
388
|
+
/**
|
|
389
|
+
* Name of the bank that issued the payment method.
|
|
390
|
+
* @maxLength 1024
|
|
391
|
+
*/
|
|
392
|
+
issuingBank?: string | null;
|
|
393
|
+
}
|
|
394
|
+
/** Provider-specific status reason information. */
|
|
395
|
+
interface ProviderStatusReason {
|
|
396
|
+
/**
|
|
397
|
+
* Type of reason code from the provider.
|
|
398
|
+
* For example, `issuer_decline_code`, `card_error`, or `request_error`.
|
|
399
|
+
* @minLength 1
|
|
400
|
+
* @maxLength 100
|
|
401
|
+
*/
|
|
402
|
+
type?: string | null;
|
|
403
|
+
/**
|
|
404
|
+
* Provider-specific reason code.
|
|
405
|
+
* @minLength 1
|
|
406
|
+
* @maxLength 100
|
|
407
|
+
*/
|
|
408
|
+
code?: string | null;
|
|
409
|
+
/**
|
|
410
|
+
* Human-readable description of the provider reason.
|
|
411
|
+
* @minLength 1
|
|
412
|
+
* @maxLength 1000
|
|
413
|
+
*/
|
|
414
|
+
description?: string | null;
|
|
415
|
+
}
|
|
416
|
+
/** Status of a charge in its processing lifecycle. */
|
|
417
|
+
declare enum Status {
|
|
418
|
+
/** Charge has been created and is waiting for processing to begin. */
|
|
419
|
+
INITIATED = "INITIATED",
|
|
420
|
+
/**
|
|
421
|
+
* Charge requires additional action from the buyer to proceed.
|
|
422
|
+
* Check the [Charges API](https://dev.wix.com/docs/api-reference/business-management/payments/charges/introduction) for specific instructions.
|
|
423
|
+
*/
|
|
424
|
+
ACTION_REQUIRED = "ACTION_REQUIRED",
|
|
425
|
+
/** Payment processing is in progress, awaiting confirmation from the provider, issuer, or merchant. */
|
|
426
|
+
PENDING = "PENDING",
|
|
427
|
+
/**
|
|
428
|
+
* Funds have been authorized but not yet captured.
|
|
429
|
+
* Use the [Charges API](https://dev.wix.com/docs/api-reference/business-management/payments/charges/introduction) to capture or void the charge.
|
|
430
|
+
*/
|
|
431
|
+
AUTHORIZED = "AUTHORIZED",
|
|
432
|
+
/**
|
|
433
|
+
* Funds have been successfully captured from the buyer's payment method.
|
|
434
|
+
* This is the final successful state for most charges.
|
|
435
|
+
*/
|
|
436
|
+
CAPTURED = "CAPTURED",
|
|
437
|
+
/**
|
|
438
|
+
* Authorization was canceled before funds were captured.
|
|
439
|
+
* No money was transferred and the authorization hold is released.
|
|
440
|
+
*/
|
|
441
|
+
VOIDED = "VOIDED",
|
|
442
|
+
/**
|
|
443
|
+
* Charge failed due to payment processing issues.
|
|
444
|
+
* Check `statusDetails` for details about the failure reason.
|
|
445
|
+
*/
|
|
446
|
+
FAILED = "FAILED"
|
|
447
|
+
}
|
|
448
|
+
/** @enumType */
|
|
449
|
+
type StatusWithLiterals = Status | 'INITIATED' | 'ACTION_REQUIRED' | 'PENDING' | 'AUTHORIZED' | 'CAPTURED' | 'VOIDED' | 'FAILED';
|
|
450
|
+
/** Detailed information about the charge status. */
|
|
451
|
+
interface StatusDetails {
|
|
452
|
+
/**
|
|
453
|
+
* Standardized 4-character reason code indicating why the charge is in its current status.
|
|
454
|
+
* See [reason codes](https://dev.wix.com/docs/api-reference/business-management/payments/payment-service-provider-service-plugin/reason-codes) for more information.
|
|
455
|
+
* @minLength 4
|
|
456
|
+
* @maxLength 4
|
|
457
|
+
*/
|
|
458
|
+
code?: string | null;
|
|
459
|
+
/**
|
|
460
|
+
* Human-readable description of the status code.
|
|
461
|
+
* @minLength 1
|
|
462
|
+
* @maxLength 1000
|
|
463
|
+
*/
|
|
464
|
+
description?: string | null;
|
|
465
|
+
/**
|
|
466
|
+
* Status of the charge as reported by the payment provider.
|
|
467
|
+
* @minLength 1
|
|
468
|
+
* @maxLength 100
|
|
469
|
+
*/
|
|
470
|
+
providerStatus?: string | null;
|
|
471
|
+
/**
|
|
472
|
+
* Detailed status information from the payment provider.
|
|
473
|
+
* Contains provider-specific reason codes and descriptions.
|
|
474
|
+
* @maxSize 10
|
|
475
|
+
*/
|
|
476
|
+
providerStatusReasons?: ProviderStatusReason[];
|
|
477
|
+
}
|
|
478
|
+
/** An individual item in the order being charged. */
|
|
479
|
+
interface OrderLineItem {
|
|
480
|
+
/**
|
|
481
|
+
* Stock Keeping Unit identifier for the item.
|
|
482
|
+
* @minLength 1
|
|
483
|
+
* @maxLength 255
|
|
484
|
+
*/
|
|
485
|
+
sku?: string | null;
|
|
486
|
+
/**
|
|
487
|
+
* Display name of the item.
|
|
488
|
+
* @minLength 1
|
|
489
|
+
* @maxLength 200
|
|
490
|
+
*/
|
|
491
|
+
name?: string | null;
|
|
492
|
+
/**
|
|
493
|
+
* Number of units of this item being purchased.
|
|
494
|
+
* @min 1
|
|
495
|
+
*/
|
|
496
|
+
quantity?: number | null;
|
|
497
|
+
/**
|
|
498
|
+
* Price per unit before taxes and discounts are applied.
|
|
499
|
+
* @decimalValue options { gte:0, maxScale:8 }
|
|
500
|
+
*/
|
|
501
|
+
unitPrice?: string | null;
|
|
502
|
+
/**
|
|
503
|
+
* Detailed description of the item.
|
|
504
|
+
* @minLength 1
|
|
505
|
+
* @maxLength 1024
|
|
506
|
+
*/
|
|
507
|
+
description?: string | null;
|
|
508
|
+
/** Whether the item is a physical product that requires shipping. */
|
|
509
|
+
tangible?: boolean | null;
|
|
510
|
+
/**
|
|
511
|
+
* Total discount amount applied to this line item for the specified quantity.
|
|
512
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
513
|
+
*/
|
|
514
|
+
discount?: string | null;
|
|
515
|
+
/**
|
|
516
|
+
* Total tax amount for this line item for the specified quantity.
|
|
517
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
518
|
+
*/
|
|
519
|
+
tax?: string | null;
|
|
520
|
+
}
|
|
521
|
+
/** Breakdown of additional amounts that contribute to the total order amount. */
|
|
522
|
+
interface AmountBreakdown {
|
|
523
|
+
/**
|
|
524
|
+
* Total amount of all items before taxes and discounts.
|
|
525
|
+
* Equals the sum of unitPrice * quantity amounts from all order line items.
|
|
526
|
+
* @decimalValue options { gte:0, maxScale:8 }
|
|
527
|
+
*/
|
|
528
|
+
itemsTotal?: string | null;
|
|
529
|
+
/**
|
|
530
|
+
* Total tax amount for the entire order.
|
|
531
|
+
* Equals the sum of tax amounts from all order line items when individual item taxes are specified.
|
|
532
|
+
* @decimalValue options { gte:0, maxScale:8 }
|
|
533
|
+
*/
|
|
534
|
+
taxTotal?: string | null;
|
|
535
|
+
/**
|
|
536
|
+
* Total discount amount for the entire order.
|
|
537
|
+
* Equals the sum of all item discounts when individual item discounts are specified.
|
|
538
|
+
* @decimalValue options { gte:0, maxScale:8 }
|
|
539
|
+
*/
|
|
540
|
+
discountTotal?: string | null;
|
|
541
|
+
/** Shipping breakdown details. */
|
|
542
|
+
shipping?: Shipping;
|
|
543
|
+
}
|
|
544
|
+
/** Contact and address information for billing or shipping. */
|
|
545
|
+
interface ContactInfo {
|
|
546
|
+
/** Contact details including name, email, and phone number. */
|
|
547
|
+
contactDetails?: FullAddressContactDetails;
|
|
548
|
+
/** Physical address information. */
|
|
549
|
+
address?: Address;
|
|
550
|
+
}
|
|
551
|
+
/** Processed payment method information from the payment provider. */
|
|
552
|
+
interface PaymentMethod {
|
|
553
|
+
/**
|
|
554
|
+
* ID of the payment method type.
|
|
555
|
+
* @format GUID
|
|
556
|
+
*/
|
|
557
|
+
paymentMethodTypeId?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* ID of the specific payment method brand used (e.g., Visa, Mastercard in case of card payment or Venmo for PayPal payments).
|
|
560
|
+
* @format GUID
|
|
561
|
+
*/
|
|
562
|
+
paymentBrandId?: string | null;
|
|
563
|
+
/** Information about the card used for payment. */
|
|
564
|
+
card?: Card;
|
|
565
|
+
/** Information about the account used for payment. */
|
|
566
|
+
account?: Account;
|
|
567
|
+
}
|
|
568
|
+
/** Configuration and details about the payment processing flow. */
|
|
569
|
+
interface FlowDetails {
|
|
570
|
+
/** Whether this is a Mail Order/Telephone Order (MOTO) transaction. */
|
|
571
|
+
moto?: boolean | null;
|
|
572
|
+
/**
|
|
573
|
+
* Number of installments for this payment.
|
|
574
|
+
* @min 1
|
|
575
|
+
*/
|
|
576
|
+
installmentCount?: number | null;
|
|
577
|
+
}
|
|
578
|
+
/** Information about the customer making the payment. */
|
|
579
|
+
interface Buyer {
|
|
580
|
+
/**
|
|
581
|
+
* ID of the buyer's contact record in the contacts system.
|
|
582
|
+
* @format GUID
|
|
583
|
+
*/
|
|
584
|
+
contactId?: string | null;
|
|
585
|
+
/**
|
|
586
|
+
* ID of the buyer's site membership if they are a registered member.
|
|
587
|
+
* @format GUID
|
|
588
|
+
*/
|
|
589
|
+
memberId?: string | null;
|
|
590
|
+
/**
|
|
591
|
+
* Buyer's preferred language in IETF BCP 47 format.
|
|
592
|
+
* For example, `en-US` for U.S. English.
|
|
593
|
+
* @format LANGUAGE_TAG
|
|
594
|
+
*/
|
|
595
|
+
languageCode?: string | null;
|
|
596
|
+
}
|
|
597
|
+
/** The refund object. A refund object is the record of an attempt to return charged funds. */
|
|
598
|
+
interface Refund {
|
|
599
|
+
/**
|
|
600
|
+
* Refund ID.
|
|
601
|
+
* @readonly
|
|
602
|
+
* @immutable
|
|
603
|
+
* @format GUID
|
|
604
|
+
*/
|
|
605
|
+
_id?: string | null;
|
|
606
|
+
/**
|
|
607
|
+
* Date and time the refund was created.
|
|
608
|
+
* @readonly
|
|
609
|
+
* @immutable
|
|
610
|
+
*/
|
|
611
|
+
_createdDate?: Date | null;
|
|
612
|
+
/**
|
|
613
|
+
* Date and time the refund was last updated.
|
|
614
|
+
* @readonly
|
|
615
|
+
*/
|
|
616
|
+
_updatedDate?: Date | null;
|
|
617
|
+
/**
|
|
618
|
+
* Amount being returned to the buyer in the refund currency's main units (such as dollars or euros).
|
|
619
|
+
* For example, `"12.95"`.
|
|
620
|
+
* @immutable
|
|
621
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
622
|
+
*/
|
|
623
|
+
amount?: string | null;
|
|
624
|
+
/**
|
|
625
|
+
* Whether the refund is for the entire amount of the charge.
|
|
626
|
+
* @readonly
|
|
627
|
+
* @immutable
|
|
628
|
+
*/
|
|
629
|
+
full?: boolean | null;
|
|
630
|
+
/**
|
|
631
|
+
* Status of the refund.
|
|
632
|
+
*
|
|
633
|
+
* Learn more about the [refund lifecycle](https://dev.wix.com/docs/api-reference/business-management/payments/refunds/refund-lifecycle).
|
|
634
|
+
* @readonly
|
|
635
|
+
*/
|
|
636
|
+
status?: RefundStatusWithLiterals;
|
|
637
|
+
/**
|
|
638
|
+
* Payment service provider's ID for the refund.
|
|
639
|
+
* @readonly
|
|
640
|
+
* @immutable
|
|
641
|
+
* @minLength 1
|
|
642
|
+
* @maxLength 100
|
|
643
|
+
*/
|
|
644
|
+
providerRefundId?: string | null;
|
|
645
|
+
/**
|
|
646
|
+
* Reason this refund was issued.
|
|
647
|
+
* @minLength 1
|
|
648
|
+
* @maxLength 1000
|
|
649
|
+
*/
|
|
650
|
+
reason?: string | null;
|
|
651
|
+
/**
|
|
652
|
+
* Details about the refund status.
|
|
653
|
+
* Used to provide additional information about why a refund was given its status.
|
|
654
|
+
* @readonly
|
|
655
|
+
*/
|
|
656
|
+
statusInfo?: StatusInfo;
|
|
657
|
+
/**
|
|
658
|
+
* Unique number assigned to a refund. This number is shared across all parties involved in processing the refund. It allows the merchant to track the refund with their bank.
|
|
659
|
+
* @readonly
|
|
660
|
+
* @immutable
|
|
661
|
+
* @minLength 1
|
|
662
|
+
* @maxLength 30
|
|
663
|
+
*/
|
|
664
|
+
acquirerReferenceNumber?: string | null;
|
|
665
|
+
/**
|
|
666
|
+
* Note providing additional information about this refund.
|
|
667
|
+
* @immutable
|
|
668
|
+
* @minLength 1
|
|
669
|
+
* @maxLength 200
|
|
670
|
+
*/
|
|
671
|
+
note?: string | null;
|
|
672
|
+
}
|
|
673
|
+
declare enum RefundStatus {
|
|
674
|
+
/** Refund is in progress. */
|
|
675
|
+
PENDING = "PENDING",
|
|
676
|
+
/** Refund succeeded. */
|
|
677
|
+
SUCCEEDED = "SUCCEEDED",
|
|
678
|
+
/** Refund failed. */
|
|
679
|
+
FAILED = "FAILED",
|
|
680
|
+
/** Refund had succeeded, but has since been reversed. */
|
|
681
|
+
REVERSED = "REVERSED"
|
|
682
|
+
}
|
|
683
|
+
/** @enumType */
|
|
684
|
+
type RefundStatusWithLiterals = RefundStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'REVERSED';
|
|
685
|
+
interface StatusInfo {
|
|
686
|
+
/**
|
|
687
|
+
* Reason code with detailed information about the refund status.
|
|
688
|
+
* See the full list of [reason codes](https://dev.wix.com/docs/api-reference/business-management/payments/payment-service-provider-service-plugin/reason-codes#refund-declined).
|
|
689
|
+
* @minLength 1
|
|
690
|
+
* @maxLength 10
|
|
691
|
+
*/
|
|
692
|
+
code?: string;
|
|
693
|
+
/**
|
|
694
|
+
* Description of the status.
|
|
695
|
+
* @minLength 1
|
|
696
|
+
* @maxLength 1000
|
|
697
|
+
*/
|
|
698
|
+
description?: string | null;
|
|
699
|
+
}
|
|
700
|
+
/** A dispute is a customer-initiated challenge of a payment through their payment service provider (PSP) or bank. */
|
|
701
|
+
interface Dispute {
|
|
702
|
+
/**
|
|
703
|
+
* Dispute ID.
|
|
704
|
+
* @format GUID
|
|
705
|
+
* @immutable
|
|
706
|
+
*/
|
|
707
|
+
_id?: string;
|
|
708
|
+
/**
|
|
709
|
+
* Stage of the dispute process.
|
|
710
|
+
* @readonly
|
|
711
|
+
*/
|
|
712
|
+
stage?: DisputeStageWithLiterals;
|
|
713
|
+
/**
|
|
714
|
+
* Reason why the customer initiated the dispute.
|
|
715
|
+
* @readonly
|
|
716
|
+
*/
|
|
717
|
+
reason?: DisputeReasonWithLiterals;
|
|
718
|
+
/**
|
|
719
|
+
* Disputed amount in the currency's main units. For example, `"12.95"` for $12.95.
|
|
720
|
+
* @immutable
|
|
721
|
+
* @decimalValue options { gt:0, maxScale:8 }
|
|
722
|
+
*/
|
|
723
|
+
amount?: string | null;
|
|
724
|
+
/**
|
|
725
|
+
* Current status of the dispute. This indicates what action is required and who needs to take it.
|
|
726
|
+
* @readonly
|
|
727
|
+
*/
|
|
728
|
+
status?: DisputeStatusWithLiterals;
|
|
729
|
+
/**
|
|
730
|
+
* Level of seller protection coverage for this dispute.
|
|
731
|
+
*
|
|
732
|
+
* Seller protection is set by the payment provider. For example, PayPal offers a [seller protection program](https://www.paypal.com/ua/legalhub/paypal/seller-protection).
|
|
733
|
+
* @readonly
|
|
734
|
+
*/
|
|
735
|
+
sellerProtection?: SellerProtectionWithLiterals;
|
|
736
|
+
/**
|
|
737
|
+
* Channel through which the dispute is being processed.
|
|
738
|
+
* @readonly
|
|
739
|
+
*/
|
|
740
|
+
channel?: DisputeChannelWithLiterals;
|
|
741
|
+
/**
|
|
742
|
+
* The latest date and time until which the dispute can remain in its current status.
|
|
743
|
+
*
|
|
744
|
+
* If this date passes, the dispute will be resolved against the party that is required to take action. For example, if the status is `WAITING_MERCHANT`, and the due date passes, the dispute will be `LOST` and a refund will be processed automatically.
|
|
745
|
+
* @readonly
|
|
746
|
+
*/
|
|
747
|
+
dueDate?: Date | null;
|
|
748
|
+
/**
|
|
749
|
+
* Unique identifier assigned by the payment service provider for this dispute.
|
|
750
|
+
* @immutable
|
|
751
|
+
* @minLength 1
|
|
752
|
+
* @maxLength 64
|
|
753
|
+
*/
|
|
754
|
+
providerDisputeId?: string;
|
|
755
|
+
/**
|
|
756
|
+
* Network reason code provided by the card network or issuing bank that initiated the dispute.
|
|
757
|
+
* @minLength 1
|
|
758
|
+
* @maxLength 64
|
|
759
|
+
*/
|
|
760
|
+
networkReasonCode?: string | null;
|
|
761
|
+
/**
|
|
762
|
+
* Whether the dispute can be defended with evidence.
|
|
763
|
+
* @readonly
|
|
764
|
+
*/
|
|
765
|
+
defendable?: boolean | null;
|
|
766
|
+
/**
|
|
767
|
+
* Whether the dispute was automatically defended by the payment processor.
|
|
768
|
+
* @readonly
|
|
769
|
+
*/
|
|
770
|
+
autoDefended?: boolean | null;
|
|
771
|
+
/**
|
|
772
|
+
* Date and time at which the dispute was defended.
|
|
773
|
+
* @readonly
|
|
774
|
+
*/
|
|
775
|
+
defendedDate?: Date | null;
|
|
776
|
+
/**
|
|
777
|
+
* Date and time at which the dispute was accepted.
|
|
778
|
+
* @readonly
|
|
779
|
+
*/
|
|
780
|
+
acceptedDate?: Date | null;
|
|
781
|
+
/**
|
|
782
|
+
* List of actions that can be performed on the dispute.
|
|
783
|
+
* Each action has a specific due date by which it must be completed.
|
|
784
|
+
* Available actions depend on the dispute's current status and stage.
|
|
785
|
+
* @readonly
|
|
786
|
+
* @maxSize 20
|
|
787
|
+
*/
|
|
788
|
+
actions?: DisputeAction[];
|
|
789
|
+
/**
|
|
790
|
+
* Date and time the dispute was created.
|
|
791
|
+
* @readonly
|
|
792
|
+
* @immutable
|
|
793
|
+
*/
|
|
794
|
+
_createdDate?: Date | null;
|
|
795
|
+
/**
|
|
796
|
+
* Date and time the dispute was updated.
|
|
797
|
+
* @readonly
|
|
798
|
+
*/
|
|
799
|
+
_updatedDate?: Date | null;
|
|
800
|
+
}
|
|
801
|
+
declare enum DisputeStage {
|
|
802
|
+
/** Formal dispute filed through the card network or issuing bank. */
|
|
803
|
+
CHARGEBACK = "CHARGEBACK",
|
|
804
|
+
/** Initial inquiry from the customer requesting information about the charge. */
|
|
805
|
+
INQUIRY = "INQUIRY"
|
|
806
|
+
}
|
|
807
|
+
/** @enumType */
|
|
808
|
+
type DisputeStageWithLiterals = DisputeStage | 'CHARGEBACK' | 'INQUIRY';
|
|
809
|
+
declare enum DisputeReason {
|
|
810
|
+
/** Fraudulent use of a physical card. */
|
|
811
|
+
FRAUD_CARD_PRESENT = "FRAUD_CARD_PRESENT",
|
|
812
|
+
/** Fraudulent use without the physical card present. */
|
|
813
|
+
FRAUD_CARD_ABSENT = "FRAUD_CARD_ABSENT",
|
|
814
|
+
/** Duplicate charge processing. */
|
|
815
|
+
DUPLICATE_PROCESSING = "DUPLICATE_PROCESSING",
|
|
816
|
+
/** Services or goods were not provided as promised. */
|
|
817
|
+
SERVICES_NOT_PROVIDED = "SERVICES_NOT_PROVIDED",
|
|
818
|
+
/** Recurring payment that should have been canceled. */
|
|
819
|
+
CANCELED_RECURRING = "CANCELED_RECURRING",
|
|
820
|
+
/** Item received was not as described. */
|
|
821
|
+
NOT_AS_DESCRIBED = "NOT_AS_DESCRIBED",
|
|
822
|
+
/** Item received was counterfeit. */
|
|
823
|
+
COUNTERFEIT = "COUNTERFEIT",
|
|
824
|
+
/** Merchant misrepresented the transaction. */
|
|
825
|
+
MISREPRESENTATION = "MISREPRESENTATION",
|
|
826
|
+
/** Transaction was canceled but still charged. */
|
|
827
|
+
CANCELED = "CANCELED",
|
|
828
|
+
/** Other dispute reason not covered by specific categories. */
|
|
829
|
+
OTHER = "OTHER"
|
|
830
|
+
}
|
|
831
|
+
/** @enumType */
|
|
832
|
+
type DisputeReasonWithLiterals = DisputeReason | 'FRAUD_CARD_PRESENT' | 'FRAUD_CARD_ABSENT' | 'DUPLICATE_PROCESSING' | 'SERVICES_NOT_PROVIDED' | 'CANCELED_RECURRING' | 'NOT_AS_DESCRIBED' | 'COUNTERFEIT' | 'MISREPRESENTATION' | 'CANCELED' | 'OTHER';
|
|
833
|
+
declare enum DisputeStatus {
|
|
834
|
+
/** Merchant action required to proceed with the dispute. */
|
|
835
|
+
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
836
|
+
/** Dispute is being reviewed by the payment service provider or bank. */
|
|
837
|
+
UNDER_REVIEW = "UNDER_REVIEW",
|
|
838
|
+
/** Customer action required to proceed with the dispute. */
|
|
839
|
+
WAITING_BUYER = "WAITING_BUYER",
|
|
840
|
+
/** Dispute resolved in favor of the merchant. */
|
|
841
|
+
WON = "WON",
|
|
842
|
+
/** Dispute resolved in favor of the customer. When a dispute is lost, the refund is processed automatically. */
|
|
843
|
+
LOST = "LOST"
|
|
844
|
+
}
|
|
845
|
+
/** @enumType */
|
|
846
|
+
type DisputeStatusWithLiterals = DisputeStatus | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST';
|
|
847
|
+
declare enum SellerProtection {
|
|
848
|
+
/** Transaction is not eligible for seller protection. */
|
|
849
|
+
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
850
|
+
/** Transaction is eligible for basic seller protection. */
|
|
851
|
+
ELIGIBLE = "ELIGIBLE",
|
|
852
|
+
/** Transaction is eligible for extended seller protection coverage. */
|
|
853
|
+
EXTENDED = "EXTENDED"
|
|
854
|
+
}
|
|
855
|
+
/** @enumType */
|
|
856
|
+
type SellerProtectionWithLiterals = SellerProtection | 'NOT_ELIGIBLE' | 'ELIGIBLE' | 'EXTENDED';
|
|
857
|
+
declare enum DisputeChannel {
|
|
858
|
+
/** Dispute is processed by the payment service provider. */
|
|
859
|
+
INTERNAL = "INTERNAL",
|
|
860
|
+
/** Dispute is processed through the card network or issuing bank. */
|
|
861
|
+
EXTERNAL = "EXTERNAL"
|
|
862
|
+
}
|
|
863
|
+
/** @enumType */
|
|
864
|
+
type DisputeChannelWithLiterals = DisputeChannel | 'INTERNAL' | 'EXTERNAL';
|
|
865
|
+
interface DisputeAction {
|
|
866
|
+
/** Type of action that can be performed. */
|
|
867
|
+
type?: DisputeActionTypeWithLiterals;
|
|
868
|
+
/** Latest date and time by which this action must be performed. */
|
|
869
|
+
dueDate?: Date | null;
|
|
870
|
+
}
|
|
871
|
+
declare enum DisputeActionType {
|
|
872
|
+
/** Dispute can be accepted. */
|
|
873
|
+
ACCEPT = "ACCEPT",
|
|
874
|
+
/** Dispute can be defended. */
|
|
875
|
+
DEFEND = "DEFEND"
|
|
876
|
+
}
|
|
877
|
+
/** @enumType */
|
|
878
|
+
type DisputeActionTypeWithLiterals = DisputeActionType | 'ACCEPT' | 'DEFEND';
|
|
879
|
+
/**
|
|
880
|
+
* A notification of fraud is a pre-dispute fraud alert raised against a charge.
|
|
881
|
+
* Card networks issue these alerts to flag a transaction that a cardholder has
|
|
882
|
+
* reported as fraudulent.
|
|
883
|
+
*
|
|
884
|
+
* A notification of fraud is informational and doesn't move funds. It may
|
|
885
|
+
* precede a chargeback, but doesn't have to. A charge has at most one
|
|
886
|
+
* notification of fraud, and notifications of fraud are immutable once created.
|
|
887
|
+
*/
|
|
888
|
+
interface NotificationOfFraud {
|
|
889
|
+
/**
|
|
890
|
+
* Standardized fraud reason, mapped from the raw reason reported by the upstream payment provider.
|
|
891
|
+
* @immutable
|
|
892
|
+
*/
|
|
893
|
+
reason?: ReasonWithLiterals;
|
|
894
|
+
/**
|
|
895
|
+
* Date and time the notification of fraud was created.
|
|
896
|
+
* @readonly
|
|
897
|
+
* @immutable
|
|
898
|
+
*/
|
|
899
|
+
_createdDate?: Date | null;
|
|
900
|
+
}
|
|
901
|
+
/** Standardized fraud reason. */
|
|
902
|
+
declare enum Reason {
|
|
903
|
+
/** Cardholder reported that a newly issued card was intercepted before it reached them. */
|
|
904
|
+
CARD_NEVER_RECEIVED = "CARD_NEVER_RECEIVED",
|
|
905
|
+
/** Card was issued based on a fraudulent application. */
|
|
906
|
+
FRAUDULENT_CARD_APPLICATION = "FRAUDULENT_CARD_APPLICATION",
|
|
907
|
+
/** Transaction was made with a counterfeit card. */
|
|
908
|
+
MADE_WITH_COUNTERFEIT_CARD = "MADE_WITH_COUNTERFEIT_CARD",
|
|
909
|
+
/** Transaction was made with a card the cardholder had reported as lost. */
|
|
910
|
+
MADE_WITH_LOST_CARD = "MADE_WITH_LOST_CARD",
|
|
911
|
+
/** Transaction was made with a card the cardholder had reported as stolen. */
|
|
912
|
+
MADE_WITH_STOLEN_CARD = "MADE_WITH_STOLEN_CARD",
|
|
913
|
+
/** Catch-all for fraud reasons that don't fit any other category, or that the upstream payment provider reported in a non-standard form. */
|
|
914
|
+
MISCELLANEOUS = "MISCELLANEOUS",
|
|
915
|
+
/** Cardholder reported that the transaction was made without their authorization. */
|
|
916
|
+
UNAUTHORIZED_USE_OF_CARD = "UNAUTHORIZED_USE_OF_CARD",
|
|
917
|
+
/** Generic fraud signal that doesn't classify the reason further. Typically used by non-card payment methods. */
|
|
918
|
+
FRAUD = "FRAUD",
|
|
919
|
+
/** Cardholder's account was taken over by a third party who then made the transaction. */
|
|
920
|
+
ACCOUNT_TAKEOVER_FRAUD = "ACCOUNT_TAKEOVER_FRAUD",
|
|
921
|
+
/** Card-not-present fraud, typically an online transaction made without the physical card. */
|
|
922
|
+
CARD_NOT_PRESENT_FRAUD = "CARD_NOT_PRESENT_FRAUD",
|
|
923
|
+
/** The same card information was used for multiple unauthorized imprints. */
|
|
924
|
+
MULTIPLE_IMPRINT_FRAUD = "MULTIPLE_IMPRINT_FRAUD",
|
|
925
|
+
/** Card was used at a merchant suspected of colluding in a bust-out scheme. */
|
|
926
|
+
BUST_OUT_COLLUSIVE_MERCHANT = "BUST_OUT_COLLUSIVE_MERCHANT",
|
|
927
|
+
/** The card account number was used fraudulently without the physical card. */
|
|
928
|
+
FRAUDULENT_USE_OF_ACCOUNT_NUMBER = "FRAUDULENT_USE_OF_ACCOUNT_NUMBER",
|
|
929
|
+
/** Card network flagged the transaction as incorrectly processed in a way that resembles fraud. */
|
|
930
|
+
INCORRECT_PROCESSING = "INCORRECT_PROCESSING",
|
|
931
|
+
/** Merchant misrepresented goods or services to the cardholder. */
|
|
932
|
+
MERCHANT_MISREPRESENTATION = "MERCHANT_MISREPRESENTATION",
|
|
933
|
+
/** Acquiring bank reported that the card used in the transaction is counterfeit. */
|
|
934
|
+
ACQUIRER_REPORTED_COUNTERFEIT = "ACQUIRER_REPORTED_COUNTERFEIT"
|
|
935
|
+
}
|
|
936
|
+
/** @enumType */
|
|
937
|
+
type ReasonWithLiterals = Reason | 'CARD_NEVER_RECEIVED' | 'FRAUDULENT_CARD_APPLICATION' | 'MADE_WITH_COUNTERFEIT_CARD' | 'MADE_WITH_LOST_CARD' | 'MADE_WITH_STOLEN_CARD' | 'MISCELLANEOUS' | 'UNAUTHORIZED_USE_OF_CARD' | 'FRAUD' | 'ACCOUNT_TAKEOVER_FRAUD' | 'CARD_NOT_PRESENT_FRAUD' | 'MULTIPLE_IMPRINT_FRAUD' | 'BUST_OUT_COLLUSIVE_MERCHANT' | 'FRAUDULENT_USE_OF_ACCOUNT_NUMBER' | 'INCORRECT_PROCESSING' | 'MERCHANT_MISREPRESENTATION' | 'ACQUIRER_REPORTED_COUNTERFEIT';
|
|
938
|
+
/** Request to synchronize a payment. */
|
|
939
|
+
interface SyncPaymentRequest {
|
|
940
|
+
/**
|
|
941
|
+
* Payment ID. This is the source charge ID.
|
|
942
|
+
* @format GUID
|
|
943
|
+
*/
|
|
944
|
+
paymentId?: string;
|
|
945
|
+
}
|
|
946
|
+
/** Response returned after a payment sync request. */
|
|
947
|
+
interface SyncPaymentResponse {
|
|
948
|
+
/** The synchronized payment. */
|
|
949
|
+
payment?: Payment;
|
|
950
|
+
}
|
|
951
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
952
|
+
createdEvent?: EntityCreatedEvent;
|
|
953
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
954
|
+
deletedEvent?: EntityDeletedEvent;
|
|
955
|
+
actionEvent?: ActionEvent;
|
|
956
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
957
|
+
_id?: string;
|
|
958
|
+
/**
|
|
959
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
960
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
961
|
+
*/
|
|
962
|
+
entityFqdn?: string;
|
|
963
|
+
/**
|
|
964
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
965
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
966
|
+
*/
|
|
967
|
+
slug?: string;
|
|
968
|
+
/** ID of the entity associated with the event. */
|
|
969
|
+
entityId?: string;
|
|
970
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
971
|
+
eventTime?: Date | null;
|
|
972
|
+
/**
|
|
973
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
974
|
+
* (for example, GDPR).
|
|
975
|
+
*/
|
|
976
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
977
|
+
/** If present, indicates the action that triggered the event. */
|
|
978
|
+
originatedFrom?: string | null;
|
|
979
|
+
/**
|
|
980
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
981
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
982
|
+
*/
|
|
983
|
+
entityEventSequence?: string | null;
|
|
984
|
+
}
|
|
985
|
+
/** @oneof */
|
|
986
|
+
interface DomainEventBodyOneOf {
|
|
987
|
+
createdEvent?: EntityCreatedEvent;
|
|
988
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
989
|
+
deletedEvent?: EntityDeletedEvent;
|
|
990
|
+
actionEvent?: ActionEvent;
|
|
991
|
+
}
|
|
992
|
+
interface EntityCreatedEvent {
|
|
993
|
+
entity?: string;
|
|
994
|
+
}
|
|
995
|
+
interface RestoreInfo {
|
|
996
|
+
deletedDate?: Date | null;
|
|
997
|
+
}
|
|
998
|
+
interface EntityUpdatedEvent {
|
|
999
|
+
/**
|
|
1000
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1001
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1002
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1003
|
+
*/
|
|
1004
|
+
currentEntity?: string;
|
|
1005
|
+
}
|
|
1006
|
+
interface EntityDeletedEvent {
|
|
1007
|
+
/** Entity that was deleted. */
|
|
1008
|
+
deletedEntity?: string | null;
|
|
1009
|
+
}
|
|
1010
|
+
interface ActionEvent {
|
|
1011
|
+
body?: string;
|
|
1012
|
+
}
|
|
1013
|
+
interface MessageEnvelope {
|
|
1014
|
+
/**
|
|
1015
|
+
* App instance ID.
|
|
1016
|
+
* @format GUID
|
|
1017
|
+
*/
|
|
1018
|
+
instanceId?: string | null;
|
|
1019
|
+
/**
|
|
1020
|
+
* Event type.
|
|
1021
|
+
* @maxLength 150
|
|
1022
|
+
*/
|
|
1023
|
+
eventType?: string;
|
|
1024
|
+
/** The identification type and identity data. */
|
|
1025
|
+
identity?: IdentificationData;
|
|
1026
|
+
/** Stringify payload. */
|
|
1027
|
+
data?: string;
|
|
1028
|
+
/** Details related to the account */
|
|
1029
|
+
accountInfo?: AccountInfo;
|
|
1030
|
+
}
|
|
1031
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1032
|
+
/**
|
|
1033
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1034
|
+
* @format GUID
|
|
1035
|
+
*/
|
|
1036
|
+
anonymousVisitorId?: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* ID of a site visitor that has logged in to the site.
|
|
1039
|
+
* @format GUID
|
|
1040
|
+
*/
|
|
1041
|
+
memberId?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1044
|
+
* @format GUID
|
|
1045
|
+
*/
|
|
1046
|
+
wixUserId?: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* ID of an app.
|
|
1049
|
+
* @format GUID
|
|
1050
|
+
*/
|
|
1051
|
+
appId?: string;
|
|
1052
|
+
/** @readonly */
|
|
1053
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1054
|
+
}
|
|
1055
|
+
/** @oneof */
|
|
1056
|
+
interface IdentificationDataIdOneOf {
|
|
1057
|
+
/**
|
|
1058
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1059
|
+
* @format GUID
|
|
1060
|
+
*/
|
|
1061
|
+
anonymousVisitorId?: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* ID of a site visitor that has logged in to the site.
|
|
1064
|
+
* @format GUID
|
|
1065
|
+
*/
|
|
1066
|
+
memberId?: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1069
|
+
* @format GUID
|
|
1070
|
+
*/
|
|
1071
|
+
wixUserId?: string;
|
|
1072
|
+
/**
|
|
1073
|
+
* ID of an app.
|
|
1074
|
+
* @format GUID
|
|
1075
|
+
*/
|
|
1076
|
+
appId?: string;
|
|
1077
|
+
}
|
|
1078
|
+
declare enum WebhookIdentityType {
|
|
1079
|
+
UNKNOWN = "UNKNOWN",
|
|
1080
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1081
|
+
MEMBER = "MEMBER",
|
|
1082
|
+
WIX_USER = "WIX_USER",
|
|
1083
|
+
APP = "APP"
|
|
1084
|
+
}
|
|
1085
|
+
/** @enumType */
|
|
1086
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1087
|
+
interface AccountInfo {
|
|
1088
|
+
/**
|
|
1089
|
+
* ID of the Wix account associated with the event.
|
|
1090
|
+
* @format GUID
|
|
1091
|
+
*/
|
|
1092
|
+
accountId?: string | null;
|
|
1093
|
+
/**
|
|
1094
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
1095
|
+
* @format GUID
|
|
1096
|
+
*/
|
|
1097
|
+
parentAccountId?: string | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
1100
|
+
* @format GUID
|
|
1101
|
+
*/
|
|
1102
|
+
siteId?: string | null;
|
|
1103
|
+
}
|
|
1104
|
+
/** Request to retrieve a payment. */
|
|
1105
|
+
interface GetPaymentRequest {
|
|
1106
|
+
/**
|
|
1107
|
+
* Payment ID. This is the source charge ID.
|
|
1108
|
+
* @format GUID
|
|
1109
|
+
*/
|
|
1110
|
+
paymentId: string;
|
|
1111
|
+
}
|
|
1112
|
+
/** Response containing the requested payment. */
|
|
1113
|
+
interface GetPaymentResponse {
|
|
1114
|
+
/** Retrieved payment. */
|
|
1115
|
+
payment?: Payment;
|
|
1116
|
+
}
|
|
1117
|
+
/** Request to search payments. */
|
|
1118
|
+
interface SearchPaymentsRequest {
|
|
1119
|
+
/**
|
|
1120
|
+
* Search options.
|
|
1121
|
+
*
|
|
1122
|
+
* For supported full-text, filter, and sort fields, see @Supported Filters and Search Fields.
|
|
1123
|
+
*/
|
|
1124
|
+
search?: CursorSearch;
|
|
1125
|
+
}
|
|
1126
|
+
interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
1127
|
+
/**
|
|
1128
|
+
* Cursor paging options.
|
|
1129
|
+
*
|
|
1130
|
+
* Use the cursor from `pagingMetadata.cursors` in the previous
|
|
1131
|
+
* response to retrieve another page.
|
|
1132
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1133
|
+
*/
|
|
1134
|
+
cursorPaging?: CursorPaging;
|
|
1135
|
+
/**
|
|
1136
|
+
* Filter object.
|
|
1137
|
+
*
|
|
1138
|
+
* For supported payment filters, see @Supported Filters and Search Fields.
|
|
1139
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1140
|
+
*/
|
|
1141
|
+
filter?: Record<string, any> | null;
|
|
1142
|
+
/**
|
|
1143
|
+
* Sort fields.
|
|
1144
|
+
*
|
|
1145
|
+
* For supported payment sort fields, see @Supported Filters and Search Fields.
|
|
1146
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1147
|
+
* @maxSize 10
|
|
1148
|
+
*/
|
|
1149
|
+
sort?: Sorting[];
|
|
1150
|
+
/** Free text to match against searchable payment fields. */
|
|
1151
|
+
search?: SearchDetails;
|
|
1152
|
+
/**
|
|
1153
|
+
* UTC offset or IANA time zone. Valid values are
|
|
1154
|
+
* ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
1155
|
+
* and IANA time zone IDs, such as Europe/Rome.
|
|
1156
|
+
*
|
|
1157
|
+
* Affects all date filters. You can override this behavior for a specific
|
|
1158
|
+
* filter by specifying a timestamp that includes a time zone, such as
|
|
1159
|
+
* `"2023-12-20T10:52:34.795Z"`.
|
|
1160
|
+
* @maxLength 50
|
|
1161
|
+
*/
|
|
1162
|
+
timeZone?: string | null;
|
|
1163
|
+
}
|
|
1164
|
+
/** @oneof */
|
|
1165
|
+
interface CursorSearchPagingMethodOneOf {
|
|
1166
|
+
/**
|
|
1167
|
+
* Cursor paging options.
|
|
1168
|
+
*
|
|
1169
|
+
* Use the cursor from `pagingMetadata.cursors` in the previous
|
|
1170
|
+
* response to retrieve another page.
|
|
1171
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1172
|
+
*/
|
|
1173
|
+
cursorPaging?: CursorPaging;
|
|
1174
|
+
}
|
|
1175
|
+
interface Sorting {
|
|
1176
|
+
/**
|
|
1177
|
+
* Name of the field to sort by.
|
|
1178
|
+
* @maxLength 512
|
|
1179
|
+
*/
|
|
1180
|
+
fieldName?: string;
|
|
1181
|
+
/** Sort order. */
|
|
1182
|
+
order?: SortOrderWithLiterals;
|
|
1183
|
+
}
|
|
1184
|
+
declare enum SortOrder {
|
|
1185
|
+
ASC = "ASC",
|
|
1186
|
+
DESC = "DESC"
|
|
1187
|
+
}
|
|
1188
|
+
/** @enumType */
|
|
1189
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
1190
|
+
interface SearchDetails {
|
|
1191
|
+
/** Defines how separate search terms in `expression` are combined. */
|
|
1192
|
+
mode?: ModeWithLiterals;
|
|
1193
|
+
/**
|
|
1194
|
+
* Search term or expression.
|
|
1195
|
+
* @maxLength 100
|
|
1196
|
+
*/
|
|
1197
|
+
expression?: string | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* Fields to search. If omitted, all searchable fields are searched. Use dot
|
|
1200
|
+
* notation to specify a JSON path.
|
|
1201
|
+
*
|
|
1202
|
+
* For supported payment search fields, see @Supported Filters and Search Fields.
|
|
1203
|
+
* @maxLength 200
|
|
1204
|
+
* @maxSize 20
|
|
1205
|
+
*/
|
|
1206
|
+
fields?: string[];
|
|
1207
|
+
/** Whether to use automatic fuzzy search that allows typos. */
|
|
1208
|
+
fuzzy?: boolean;
|
|
1209
|
+
}
|
|
1210
|
+
declare enum Mode {
|
|
1211
|
+
/** Any of the search terms must be present. */
|
|
1212
|
+
OR = "OR",
|
|
1213
|
+
/** All search terms must be present. */
|
|
1214
|
+
AND = "AND"
|
|
1215
|
+
}
|
|
1216
|
+
/** @enumType */
|
|
1217
|
+
type ModeWithLiterals = Mode | 'OR' | 'AND';
|
|
1218
|
+
interface CursorPaging {
|
|
1219
|
+
/**
|
|
1220
|
+
* Maximum number of items to return in the results. Defaults to 50 if not provided.
|
|
1221
|
+
* @max 100
|
|
1222
|
+
*/
|
|
1223
|
+
limit?: number | null;
|
|
1224
|
+
/**
|
|
1225
|
+
* Pointer to the next or previous page in the list of results.
|
|
1226
|
+
*
|
|
1227
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1228
|
+
* Not relevant for the first request.
|
|
1229
|
+
* @maxLength 16000
|
|
1230
|
+
*/
|
|
1231
|
+
cursor?: string | null;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Response containing a page of payments that match the search and the
|
|
1235
|
+
* pagination metadata for the current page.
|
|
1236
|
+
*/
|
|
1237
|
+
interface SearchPaymentsResponse {
|
|
1238
|
+
/** Payments matching the search. */
|
|
1239
|
+
payments?: Payment[];
|
|
1240
|
+
/** Cursor paging metadata for the current page. */
|
|
1241
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
1242
|
+
/**
|
|
1243
|
+
* Aggregation results.
|
|
1244
|
+
* @internal
|
|
1245
|
+
*/
|
|
1246
|
+
aggregationData?: AggregationData;
|
|
1247
|
+
}
|
|
1248
|
+
interface CursorPagingMetadata {
|
|
1249
|
+
/** Number of items returned in current page. */
|
|
1250
|
+
count?: number | null;
|
|
1251
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1252
|
+
cursors?: Cursors;
|
|
1253
|
+
/**
|
|
1254
|
+
* Whether there are more pages to retrieve following the current page.
|
|
1255
|
+
*
|
|
1256
|
+
* + `true`: Another page of results can be retrieved.
|
|
1257
|
+
* + `false`: This is the last page.
|
|
1258
|
+
*/
|
|
1259
|
+
hasNext?: boolean | null;
|
|
1260
|
+
}
|
|
1261
|
+
interface Cursors {
|
|
1262
|
+
/**
|
|
1263
|
+
* Cursor string pointing to the next page in the list of results.
|
|
1264
|
+
* @maxLength 16000
|
|
1265
|
+
*/
|
|
1266
|
+
next?: string | null;
|
|
1267
|
+
/**
|
|
1268
|
+
* Cursor pointing to the previous page in the list of results.
|
|
1269
|
+
* @maxLength 16000
|
|
1270
|
+
*/
|
|
1271
|
+
prev?: string | null;
|
|
1272
|
+
}
|
|
1273
|
+
interface AggregationData {
|
|
1274
|
+
/**
|
|
1275
|
+
* key = aggregation name (as derived from search request).
|
|
1276
|
+
* @maxSize 10000
|
|
1277
|
+
*/
|
|
1278
|
+
results?: AggregationResults[];
|
|
1279
|
+
}
|
|
1280
|
+
interface ValueAggregationResult {
|
|
1281
|
+
/**
|
|
1282
|
+
* Value of the field.
|
|
1283
|
+
* @maxLength 100
|
|
1284
|
+
*/
|
|
1285
|
+
value?: string;
|
|
1286
|
+
/** Count of entities with this value. */
|
|
1287
|
+
count?: number;
|
|
1288
|
+
}
|
|
1289
|
+
interface RangeAggregationResult {
|
|
1290
|
+
/** Inclusive lower bound of the range. */
|
|
1291
|
+
from?: number | null;
|
|
1292
|
+
/** Exclusive upper bound of the range. */
|
|
1293
|
+
to?: number | null;
|
|
1294
|
+
/** Count of entities in this range. */
|
|
1295
|
+
count?: number;
|
|
1296
|
+
}
|
|
1297
|
+
declare enum ScalarType {
|
|
1298
|
+
/** Count of distinct values. */
|
|
1299
|
+
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
1300
|
+
/** Minimum value. */
|
|
1301
|
+
MIN = "MIN",
|
|
1302
|
+
/** Maximum value. */
|
|
1303
|
+
MAX = "MAX",
|
|
1304
|
+
/**
|
|
1305
|
+
* Sum of values.
|
|
1306
|
+
* @internal
|
|
1307
|
+
*/
|
|
1308
|
+
SUM = "SUM",
|
|
1309
|
+
/**
|
|
1310
|
+
* Average of values.
|
|
1311
|
+
* @internal
|
|
1312
|
+
*/
|
|
1313
|
+
AVG = "AVG"
|
|
1314
|
+
}
|
|
1315
|
+
/** @enumType */
|
|
1316
|
+
type ScalarTypeWithLiterals = ScalarType | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
|
|
1317
|
+
interface ValueResult {
|
|
1318
|
+
/**
|
|
1319
|
+
* Value of the field.
|
|
1320
|
+
* @maxLength 1000
|
|
1321
|
+
*/
|
|
1322
|
+
value?: string;
|
|
1323
|
+
/** Count of entities with this value. */
|
|
1324
|
+
count?: number | null;
|
|
1325
|
+
}
|
|
1326
|
+
interface RangeResult {
|
|
1327
|
+
/** Inclusive lower bound of the range. */
|
|
1328
|
+
from?: number | null;
|
|
1329
|
+
/** Exclusive upper bound of the range. */
|
|
1330
|
+
to?: number | null;
|
|
1331
|
+
/** Count of entities in this range. */
|
|
1332
|
+
count?: number | null;
|
|
1333
|
+
}
|
|
1334
|
+
interface ScalarResult {
|
|
1335
|
+
/** Value of the scalar aggregation. */
|
|
1336
|
+
value?: number;
|
|
1337
|
+
}
|
|
1338
|
+
interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
1339
|
+
/** Value aggregation result. */
|
|
1340
|
+
value?: ValueResult;
|
|
1341
|
+
/** Range aggregation result. */
|
|
1342
|
+
range?: RangeResult;
|
|
1343
|
+
/** Scalar aggregation result. */
|
|
1344
|
+
scalar?: ScalarResult;
|
|
1345
|
+
/** Date histogram aggregation result. */
|
|
1346
|
+
dateHistogram?: ValueResult;
|
|
1347
|
+
}
|
|
1348
|
+
/** @oneof */
|
|
1349
|
+
interface NestedResultValueResultOneOf {
|
|
1350
|
+
/** Value aggregation result. */
|
|
1351
|
+
value?: ValueResult;
|
|
1352
|
+
/** Range aggregation result. */
|
|
1353
|
+
range?: RangeResult;
|
|
1354
|
+
/** Scalar aggregation result. */
|
|
1355
|
+
scalar?: ScalarResult;
|
|
1356
|
+
/** Date histogram aggregation result. */
|
|
1357
|
+
dateHistogram?: ValueResult;
|
|
1358
|
+
}
|
|
1359
|
+
interface Results {
|
|
1360
|
+
/** List of nested aggregations. */
|
|
1361
|
+
results?: Record<string, NestedResultValue>;
|
|
1362
|
+
}
|
|
1363
|
+
interface DateHistogramResult {
|
|
1364
|
+
/**
|
|
1365
|
+
* Date in ISO 8601 format.
|
|
1366
|
+
* @maxLength 100
|
|
1367
|
+
*/
|
|
1368
|
+
value?: string;
|
|
1369
|
+
/** Count of documents in the bucket. */
|
|
1370
|
+
count?: number;
|
|
1371
|
+
}
|
|
1372
|
+
declare enum AggregationType {
|
|
1373
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
1374
|
+
VALUE = "VALUE",
|
|
1375
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket. */
|
|
1376
|
+
RANGE = "RANGE",
|
|
1377
|
+
/** A single-value metric aggregation. For example, min, max, sum, avg. */
|
|
1378
|
+
SCALAR = "SCALAR",
|
|
1379
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
1380
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
1381
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one. */
|
|
1382
|
+
NESTED = "NESTED"
|
|
1383
|
+
}
|
|
1384
|
+
/** @enumType */
|
|
1385
|
+
type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
|
|
1386
|
+
interface ValueResults {
|
|
1387
|
+
/**
|
|
1388
|
+
* List of value aggregations.
|
|
1389
|
+
* @maxSize 250
|
|
1390
|
+
*/
|
|
1391
|
+
results?: ValueAggregationResult[];
|
|
1392
|
+
}
|
|
1393
|
+
interface RangeResults {
|
|
1394
|
+
/**
|
|
1395
|
+
* List of ranges returned in same order as requested.
|
|
1396
|
+
* @maxSize 50
|
|
1397
|
+
*/
|
|
1398
|
+
results?: RangeAggregationResult[];
|
|
1399
|
+
}
|
|
1400
|
+
interface AggregationResultsScalarResult {
|
|
1401
|
+
/** Type of scalar aggregation. */
|
|
1402
|
+
type?: ScalarTypeWithLiterals;
|
|
1403
|
+
/** Value of the scalar aggregation. */
|
|
1404
|
+
value?: number;
|
|
1405
|
+
}
|
|
1406
|
+
interface DateHistogramResults {
|
|
1407
|
+
/**
|
|
1408
|
+
* List of date histogram aggregations.
|
|
1409
|
+
* @maxSize 200
|
|
1410
|
+
*/
|
|
1411
|
+
results?: DateHistogramResult[];
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Results of `NESTED` aggregation type in a flattened form.
|
|
1415
|
+
* Aggregations in resulting array are keyed by requested aggregation `name`.
|
|
1416
|
+
*/
|
|
1417
|
+
interface NestedResults {
|
|
1418
|
+
/**
|
|
1419
|
+
* List of nested aggregations.
|
|
1420
|
+
* @maxSize 1000
|
|
1421
|
+
*/
|
|
1422
|
+
results?: Results[];
|
|
1423
|
+
}
|
|
1424
|
+
interface AggregationResults extends AggregationResultsResultOneOf {
|
|
1425
|
+
/** Value aggregation results. */
|
|
1426
|
+
values?: ValueResults;
|
|
1427
|
+
/** Range aggregation results. */
|
|
1428
|
+
ranges?: RangeResults;
|
|
1429
|
+
/** Scalar aggregation results. */
|
|
1430
|
+
scalar?: AggregationResultsScalarResult;
|
|
1431
|
+
/** Date histogram aggregation results. */
|
|
1432
|
+
dateHistogram?: DateHistogramResults;
|
|
1433
|
+
/** Nested aggregation results. */
|
|
1434
|
+
nested?: NestedResults;
|
|
1435
|
+
/**
|
|
1436
|
+
* User-defined name of aggregation as derived from search request.
|
|
1437
|
+
* @maxLength 100
|
|
1438
|
+
*/
|
|
1439
|
+
name?: string;
|
|
1440
|
+
/** Type of aggregation that must match provided kind as derived from search request. */
|
|
1441
|
+
type?: AggregationTypeWithLiterals;
|
|
1442
|
+
/**
|
|
1443
|
+
* Field to aggregate by as derived from search request.
|
|
1444
|
+
* @maxLength 200
|
|
1445
|
+
*/
|
|
1446
|
+
fieldPath?: string;
|
|
1447
|
+
}
|
|
1448
|
+
/** @oneof */
|
|
1449
|
+
interface AggregationResultsResultOneOf {
|
|
1450
|
+
/** Value aggregation results. */
|
|
1451
|
+
values?: ValueResults;
|
|
1452
|
+
/** Range aggregation results. */
|
|
1453
|
+
ranges?: RangeResults;
|
|
1454
|
+
/** Scalar aggregation results. */
|
|
1455
|
+
scalar?: AggregationResultsScalarResult;
|
|
1456
|
+
/** Date histogram aggregation results. */
|
|
1457
|
+
dateHistogram?: DateHistogramResults;
|
|
1458
|
+
/** Nested aggregation results. */
|
|
1459
|
+
nested?: NestedResults;
|
|
1460
|
+
}
|
|
1461
|
+
interface BaseEventMetadata {
|
|
1462
|
+
/**
|
|
1463
|
+
* App instance ID.
|
|
1464
|
+
* @format GUID
|
|
1465
|
+
*/
|
|
1466
|
+
instanceId?: string | null;
|
|
1467
|
+
/**
|
|
1468
|
+
* Event type.
|
|
1469
|
+
* @maxLength 150
|
|
1470
|
+
*/
|
|
1471
|
+
eventType?: string;
|
|
1472
|
+
/** The identification type and identity data. */
|
|
1473
|
+
identity?: IdentificationData;
|
|
1474
|
+
/** Details related to the account */
|
|
1475
|
+
accountInfo?: AccountInfo;
|
|
1476
|
+
}
|
|
1477
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
1478
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1479
|
+
_id?: string;
|
|
1480
|
+
/**
|
|
1481
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1482
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1483
|
+
*/
|
|
1484
|
+
entityFqdn?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1487
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1488
|
+
*/
|
|
1489
|
+
slug?: string;
|
|
1490
|
+
/** ID of the entity associated with the event. */
|
|
1491
|
+
entityId?: string;
|
|
1492
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1493
|
+
eventTime?: Date | null;
|
|
1494
|
+
/**
|
|
1495
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1496
|
+
* (for example, GDPR).
|
|
1497
|
+
*/
|
|
1498
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1499
|
+
/** If present, indicates the action that triggered the event. */
|
|
1500
|
+
originatedFrom?: string | null;
|
|
1501
|
+
/**
|
|
1502
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
1503
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1504
|
+
*/
|
|
1505
|
+
entityEventSequence?: string | null;
|
|
1506
|
+
accountInfo?: AccountInfoMetadata;
|
|
1507
|
+
}
|
|
1508
|
+
interface AccountInfoMetadata {
|
|
1509
|
+
/** ID of the Wix account associated with the event */
|
|
1510
|
+
accountId: string;
|
|
1511
|
+
/** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
|
|
1512
|
+
siteId?: string;
|
|
1513
|
+
/** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
|
|
1514
|
+
parentAccountId?: string;
|
|
1515
|
+
}
|
|
1516
|
+
interface PaymentCreatedEnvelope {
|
|
1517
|
+
entity: Payment;
|
|
1518
|
+
metadata: EventMetadata;
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Triggered when a payment is created.
|
|
1522
|
+
* @permissionId payments:platform:v1:payment:read_events
|
|
1523
|
+
* @webhook
|
|
1524
|
+
* @eventType wix.payments.platform.v1.payment_created
|
|
1525
|
+
* @slug created
|
|
1526
|
+
* @documentationMaturity preview
|
|
1527
|
+
*/
|
|
1528
|
+
declare function onPaymentCreated(handler: (event: PaymentCreatedEnvelope) => void | Promise<void>): void;
|
|
1529
|
+
interface PaymentUpdatedEnvelope {
|
|
1530
|
+
entity: Payment;
|
|
1531
|
+
metadata: EventMetadata;
|
|
1532
|
+
/** @hidden */
|
|
1533
|
+
modifiedFields: Record<string, any>;
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Triggered when a payment is updated.
|
|
1537
|
+
* @permissionId payments:platform:v1:payment:read_events
|
|
1538
|
+
* @webhook
|
|
1539
|
+
* @eventType wix.payments.platform.v1.payment_updated
|
|
1540
|
+
* @slug updated
|
|
1541
|
+
* @documentationMaturity preview
|
|
1542
|
+
*/
|
|
1543
|
+
declare function onPaymentUpdated(handler: (event: PaymentUpdatedEnvelope) => void | Promise<void>): void;
|
|
1544
|
+
/**
|
|
1545
|
+
* Retrieves a payment by ID.
|
|
1546
|
+
*
|
|
1547
|
+
* The payment ID is identical to the source charge ID, so the same value can
|
|
1548
|
+
* be used to look up the underlying charge.
|
|
1549
|
+
* @param paymentId - Payment ID. This is the source charge ID.
|
|
1550
|
+
* @public
|
|
1551
|
+
* @documentationMaturity preview
|
|
1552
|
+
* @requiredField paymentId
|
|
1553
|
+
* @permissionId payments:platform:v1:payment:get_payment
|
|
1554
|
+
* @returns Retrieved payment.
|
|
1555
|
+
* @fqn wix.payments.platform.v1.Payments.GetPayment
|
|
1556
|
+
*/
|
|
1557
|
+
declare function getPayment(paymentId: string): Promise<NonNullablePaths<Payment, `charge.status` | `charge.statusDetails.providerStatusReasons` | `charge.orderLineItems` | `charge.billingInfo.contactDetails.vatId._id` | `charge.billingInfo.contactDetails.vatId.type` | `charge.billingInfo.address.streetAddress.number` | `charge.billingInfo.address.streetAddress.name` | `refunds` | `refunds.${number}.status` | `refunds.${number}.statusInfo.code` | `disputes` | `disputes.${number}._id` | `disputes.${number}.stage` | `disputes.${number}.reason` | `disputes.${number}.status` | `disputes.${number}.sellerProtection` | `disputes.${number}.channel` | `disputes.${number}.providerDisputeId` | `notificationOfFraud.reason`, 6>>;
|
|
1558
|
+
interface PaymentSearchSpec extends SearchSpec {
|
|
1559
|
+
searchable: [
|
|
1560
|
+
'charge.billingInfo.contactDetails.email',
|
|
1561
|
+
'charge.billingInfo.contactDetails.firstName',
|
|
1562
|
+
'charge.billingInfo.contactDetails.lastName',
|
|
1563
|
+
'charge.orderLineItems.name',
|
|
1564
|
+
'charge.shippingInfo.contactDetails.email'
|
|
1565
|
+
];
|
|
1566
|
+
paging: 'cursor';
|
|
1567
|
+
wql: [
|
|
1568
|
+
{
|
|
1569
|
+
operators: '*';
|
|
1570
|
+
fields: ['_createdDate', '_id', 'refundable'];
|
|
1571
|
+
sort: 'BOTH';
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
operators: '*';
|
|
1575
|
+
fields: ['appId'];
|
|
1576
|
+
sort: 'NONE';
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
operators: '*';
|
|
1580
|
+
fields: [
|
|
1581
|
+
'charge.amount',
|
|
1582
|
+
'charge.currencyCode',
|
|
1583
|
+
'charge.paymentMethod.paymentBrandId',
|
|
1584
|
+
'charge.paymentMethod.paymentMethodTypeId',
|
|
1585
|
+
'charge.providerId',
|
|
1586
|
+
'charge.status'
|
|
1587
|
+
];
|
|
1588
|
+
sort: 'BOTH';
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
operators: ['$matchItems'];
|
|
1592
|
+
fields: ['refunds'];
|
|
1593
|
+
sort: 'NONE';
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
operators: ['$matchItems'];
|
|
1597
|
+
fields: ['disputes'];
|
|
1598
|
+
sort: 'NONE';
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
operators: '*';
|
|
1602
|
+
fields: [
|
|
1603
|
+
'notificationOfFraud._createdDate',
|
|
1604
|
+
'notificationOfFraud.reason'
|
|
1605
|
+
];
|
|
1606
|
+
sort: 'BOTH';
|
|
1607
|
+
}
|
|
1608
|
+
];
|
|
1609
|
+
}
|
|
1610
|
+
type CommonSearchWithEntityContext = Search<Payment, PaymentSearchSpec>;
|
|
1611
|
+
type PaymentSearch = {
|
|
1612
|
+
/**
|
|
1613
|
+
Cursor paging options.
|
|
1614
|
+
|
|
1615
|
+
Use the cursor from `pagingMetadata.cursors` in the previous
|
|
1616
|
+
response to retrieve another page.
|
|
1617
|
+
Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1618
|
+
*/
|
|
1619
|
+
cursorPaging?: {
|
|
1620
|
+
/**
|
|
1621
|
+
Maximum number of items to return in the results. Defaults to 50 if not provided.
|
|
1622
|
+
@max: 100
|
|
1623
|
+
*/
|
|
1624
|
+
limit?: NonNullable<CommonSearchWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1625
|
+
/**
|
|
1626
|
+
Pointer to the next or previous page in the list of results.
|
|
1627
|
+
|
|
1628
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1629
|
+
Not relevant for the first request.
|
|
1630
|
+
@maxLength: 16000
|
|
1631
|
+
*/
|
|
1632
|
+
cursor?: NonNullable<CommonSearchWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1633
|
+
};
|
|
1634
|
+
/**
|
|
1635
|
+
Filter object.
|
|
1636
|
+
|
|
1637
|
+
For supported payment filters, see
|
|
1638
|
+
@Supported: Filters and Search Fields.
|
|
1639
|
+
Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1640
|
+
*/
|
|
1641
|
+
filter?: CommonSearchWithEntityContext['filter'] | null;
|
|
1642
|
+
/**
|
|
1643
|
+
Sort fields.
|
|
1644
|
+
|
|
1645
|
+
For supported payment sort fields, see
|
|
1646
|
+
@Supported: Filters and Search Fields.
|
|
1647
|
+
Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).,
|
|
1648
|
+
@maxSize: 10
|
|
1649
|
+
*/
|
|
1650
|
+
sort?: {
|
|
1651
|
+
/**
|
|
1652
|
+
Name of the field to sort by.
|
|
1653
|
+
@maxLength: 512
|
|
1654
|
+
*/
|
|
1655
|
+
fieldName?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['fieldName'];
|
|
1656
|
+
/**
|
|
1657
|
+
Sort order.
|
|
1658
|
+
*/
|
|
1659
|
+
order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];
|
|
1660
|
+
}[];
|
|
1661
|
+
/**
|
|
1662
|
+
Free text to match against searchable payment fields.
|
|
1663
|
+
*/
|
|
1664
|
+
search?: {
|
|
1665
|
+
/**
|
|
1666
|
+
Defines how separate search terms in `expression` are combined.
|
|
1667
|
+
*/
|
|
1668
|
+
mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];
|
|
1669
|
+
/**
|
|
1670
|
+
Search term or expression.
|
|
1671
|
+
@maxLength: 100
|
|
1672
|
+
*/
|
|
1673
|
+
expression?: NonNullable<CommonSearchWithEntityContext['search']>['expression'] | null;
|
|
1674
|
+
/**
|
|
1675
|
+
Fields to search. If omitted, all searchable fields are searched. Use dot
|
|
1676
|
+
notation to specify a JSON path.
|
|
1677
|
+
|
|
1678
|
+
For supported payment search fields, see
|
|
1679
|
+
@Supported: Filters and Search Fields.,
|
|
1680
|
+
@maxLength: 200,
|
|
1681
|
+
@maxSize: 20
|
|
1682
|
+
*/
|
|
1683
|
+
fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];
|
|
1684
|
+
/**
|
|
1685
|
+
Whether to use automatic fuzzy search that allows typos.
|
|
1686
|
+
*/
|
|
1687
|
+
fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];
|
|
1688
|
+
};
|
|
1689
|
+
/**
|
|
1690
|
+
UTC offset or IANA time zone. Valid values are
|
|
1691
|
+
ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
1692
|
+
and IANA time zone IDs, such as Europe/Rome.
|
|
1693
|
+
|
|
1694
|
+
Affects all date filters. You can override this behavior for a specific
|
|
1695
|
+
filter by specifying a timestamp that includes a time zone, such as
|
|
1696
|
+
`"2023-12-20T10:52:34.795Z"`.
|
|
1697
|
+
@maxLength: 50
|
|
1698
|
+
*/
|
|
1699
|
+
timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
|
|
1700
|
+
};
|
|
1701
|
+
declare const utils: {
|
|
1702
|
+
search: _wix_sdk_types.SearchHelpers<Payment, PaymentSearchSpec, PaymentSearch>;
|
|
1703
|
+
};
|
|
1704
|
+
|
|
1705
|
+
export { type IdentificationData as $, AggregationType as A, type Buyer as B, type Charge as C, DisputeStage as D, type Refund as E, type FullAddressContactDetails as F, type StatusInfo as G, type Dispute as H, type DisputeAction as I, type SyncPaymentRequest as J, type SyncPaymentResponse as K, type DomainEvent as L, Mode as M, type NotificationOfFraud as N, type OrderLineItem as O, type Payment as P, type DomainEventBodyOneOf as Q, RefundStatus as R, type SearchPaymentsResponse as S, type EntityCreatedEvent as T, type RestoreInfo as U, VatType as V, WebhookIdentityType as W, type EntityUpdatedEvent as X, type EntityDeletedEvent as Y, type ActionEvent as Z, type MessageEnvelope as _, type PaymentSearch as a, type IdentificationDataIdOneOf as a0, type AccountInfo as a1, type GetPaymentRequest as a2, type GetPaymentResponse as a3, type SearchPaymentsRequest as a4, type CursorSearch as a5, type CursorSearchPagingMethodOneOf as a6, type Sorting as a7, type SearchDetails as a8, type CursorPaging as a9, type RefundStatusWithLiterals as aA, type DisputeStageWithLiterals as aB, type DisputeReasonWithLiterals as aC, type DisputeStatusWithLiterals as aD, type SellerProtectionWithLiterals as aE, type DisputeChannelWithLiterals as aF, type DisputeActionTypeWithLiterals as aG, type ReasonWithLiterals as aH, type WebhookIdentityTypeWithLiterals as aI, type SortOrderWithLiterals as aJ, type ModeWithLiterals as aK, type ScalarTypeWithLiterals as aL, type AggregationTypeWithLiterals as aM, type CommonSearchWithEntityContext as aN, onPaymentCreated as aO, onPaymentUpdated as aP, getPayment as aQ, type CursorPagingMetadata as aa, type Cursors as ab, type AggregationData as ac, type ValueAggregationResult as ad, type RangeAggregationResult as ae, type ValueResult as af, type RangeResult as ag, type ScalarResult as ah, type NestedResultValue as ai, type NestedResultValueResultOneOf as aj, type Results as ak, type DateHistogramResult as al, type ValueResults as am, type RangeResults as an, type AggregationResultsScalarResult as ao, type DateHistogramResults as ap, type NestedResults as aq, type AggregationResults as ar, type AggregationResultsResultOneOf as as, type BaseEventMetadata as at, type EventMetadata as au, type AccountInfoMetadata as av, type PaymentSearchSpec as aw, utils as ax, type VatTypeWithLiterals as ay, type StatusWithLiterals as az, type PaymentCreatedEnvelope as b, type PaymentUpdatedEnvelope as c, Status as d, DisputeReason as e, DisputeStatus as f, SellerProtection as g, DisputeChannel as h, DisputeActionType as i, Reason as j, SortOrder as k, ScalarType as l, type Shipping as m, type VatId as n, type Address as o, type AddressStreetOneOf as p, type StreetAddress as q, type AddressLocation as r, type Card as s, type Account as t, type ProviderStatusReason as u, type StatusDetails as v, type AmountBreakdown as w, type ContactInfo as x, type PaymentMethod as y, type FlowDetails as z };
|