@wix/auto_sdk_payments_payins-configurations 1.0.18 → 1.0.20
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 +10 -543
- package/build/cjs/index.js +45 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +552 -1
- package/build/cjs/index.typings.js +27 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +147 -2
- package/build/cjs/meta.js +19 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +10 -543
- package/build/es/index.mjs +45 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +552 -1
- package/build/es/index.typings.mjs +26 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +147 -2
- package/build/es/meta.mjs +17 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -20
- package/build/internal/cjs/index.js +45 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -1
- package/build/internal/cjs/index.typings.js +27 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +145 -1
- package/build/internal/cjs/meta.js +19 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -20
- package/build/internal/es/index.mjs +45 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +7 -1
- package/build/internal/es/index.typings.mjs +26 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +145 -1
- package/build/internal/es/meta.mjs +17 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,544 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* id
|
|
5
|
-
* @format GUID
|
|
6
|
-
* @readonly
|
|
7
|
-
* @immutable
|
|
8
|
-
*/
|
|
9
|
-
_id?: string | null;
|
|
10
|
-
/**
|
|
11
|
-
* app_id
|
|
12
|
-
* @format GUID
|
|
13
|
-
* @immutable
|
|
14
|
-
*/
|
|
15
|
-
appId?: string | null;
|
|
16
|
-
/**
|
|
17
|
-
* rules
|
|
18
|
-
* @maxSize 1000
|
|
19
|
-
*/
|
|
20
|
-
rules?: PayinsRule[];
|
|
21
|
-
/**
|
|
22
|
-
* revision
|
|
23
|
-
* @readonly
|
|
24
|
-
*/
|
|
25
|
-
revision?: string | null;
|
|
26
|
-
/**
|
|
27
|
-
* Date when PayinsConfiguration was created
|
|
28
|
-
* @readonly
|
|
29
|
-
* @immutable
|
|
30
|
-
*/
|
|
31
|
-
_createdDate?: Date | null;
|
|
32
|
-
/**
|
|
33
|
-
* Date when PayinsConfiguration was updated
|
|
34
|
-
* @readonly
|
|
35
|
-
*/
|
|
36
|
-
_updatedDate?: Date | null;
|
|
37
|
-
/** Data Extensions */
|
|
38
|
-
extendedFields?: ExtendedFields;
|
|
39
|
-
/** Tags */
|
|
40
|
-
tags?: Tags;
|
|
41
|
-
}
|
|
42
|
-
interface PayinsRule {
|
|
43
|
-
/**
|
|
44
|
-
* payment_method_type_id
|
|
45
|
-
* @format GUID
|
|
46
|
-
*/
|
|
47
|
-
paymentMethodTypeId?: string;
|
|
48
|
-
/**
|
|
49
|
-
* account_connection_id
|
|
50
|
-
* @format GUID
|
|
51
|
-
*/
|
|
52
|
-
accountConnectionId?: string;
|
|
53
|
-
/** merchant_selection */
|
|
54
|
-
merchantSelection?: MerchantSelection;
|
|
55
|
-
}
|
|
56
|
-
interface MerchantSelection {
|
|
57
|
-
/** payins_enabled */
|
|
58
|
-
payinsEnabled?: boolean;
|
|
59
|
-
}
|
|
60
|
-
interface ExtendedFields {
|
|
61
|
-
/**
|
|
62
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
63
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
64
|
-
*
|
|
65
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
66
|
-
*
|
|
67
|
-
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
68
|
-
*/
|
|
69
|
-
namespaces?: Record<string, Record<string, any>>;
|
|
70
|
-
}
|
|
71
|
-
interface Tags {
|
|
72
|
-
/** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
|
|
73
|
-
privateTags?: TagList;
|
|
74
|
-
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
75
|
-
tags?: TagList;
|
|
76
|
-
}
|
|
77
|
-
interface TagList {
|
|
78
|
-
/**
|
|
79
|
-
* List of tag IDs
|
|
80
|
-
* @maxSize 100
|
|
81
|
-
* @maxLength 5
|
|
82
|
-
*/
|
|
83
|
-
tagIds?: string[];
|
|
84
|
-
}
|
|
85
|
-
interface CreatePayinsConfigurationRequest {
|
|
86
|
-
/** PayinsConfiguration to be created. */
|
|
87
|
-
payinsConfiguration: PayinsConfiguration;
|
|
88
|
-
}
|
|
89
|
-
interface CreatePayinsConfigurationResponse {
|
|
90
|
-
/** The created PayinsConfiguration. */
|
|
91
|
-
payinsConfiguration?: PayinsConfiguration;
|
|
92
|
-
}
|
|
93
|
-
interface GetPayinsConfigurationRequest {
|
|
94
|
-
/**
|
|
95
|
-
* ID of the PayinsConfiguration to retrieve.
|
|
96
|
-
* @format GUID
|
|
97
|
-
*/
|
|
98
|
-
payinsConfigurationId: string;
|
|
99
|
-
}
|
|
100
|
-
interface GetPayinsConfigurationResponse {
|
|
101
|
-
/** The requested PayinsConfiguration. */
|
|
102
|
-
payinsConfiguration?: PayinsConfiguration;
|
|
103
|
-
}
|
|
104
|
-
interface UpdatePayinsConfigurationRequest {
|
|
105
|
-
/** PayinsConfiguration to be updated, may be partial. */
|
|
106
|
-
payinsConfiguration: PayinsConfiguration;
|
|
107
|
-
}
|
|
108
|
-
interface UpdatePayinsConfigurationResponse {
|
|
109
|
-
/** Updated PayinsConfiguration. */
|
|
110
|
-
payinsConfiguration?: PayinsConfiguration;
|
|
111
|
-
}
|
|
112
|
-
interface QueryPayinsConfigurationsRequest {
|
|
113
|
-
/** WQL expression. */
|
|
114
|
-
query?: CursorQuery;
|
|
115
|
-
}
|
|
116
|
-
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
117
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
118
|
-
cursorPaging?: CursorPaging;
|
|
119
|
-
/**
|
|
120
|
-
* Filter object in the following format:
|
|
121
|
-
* `"filter" : {
|
|
122
|
-
* "fieldName1": "value1",
|
|
123
|
-
* "fieldName2":{"$operator":"value2"}
|
|
124
|
-
* }`
|
|
125
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
126
|
-
*/
|
|
127
|
-
filter?: Record<string, any> | null;
|
|
128
|
-
/**
|
|
129
|
-
* Sort object in the following format:
|
|
130
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
131
|
-
* @maxSize 5
|
|
132
|
-
*/
|
|
133
|
-
sort?: Sorting[];
|
|
134
|
-
}
|
|
135
|
-
/** @oneof */
|
|
136
|
-
interface CursorQueryPagingMethodOneOf {
|
|
137
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
138
|
-
cursorPaging?: CursorPaging;
|
|
139
|
-
}
|
|
140
|
-
interface Sorting {
|
|
141
|
-
/**
|
|
142
|
-
* Name of the field to sort by.
|
|
143
|
-
* @maxLength 512
|
|
144
|
-
*/
|
|
145
|
-
fieldName?: string;
|
|
146
|
-
/** Sort order. */
|
|
147
|
-
order?: SortOrderWithLiterals;
|
|
148
|
-
}
|
|
149
|
-
declare enum SortOrder {
|
|
150
|
-
ASC = "ASC",
|
|
151
|
-
DESC = "DESC"
|
|
152
|
-
}
|
|
153
|
-
/** @enumType */
|
|
154
|
-
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
155
|
-
interface CursorPaging {
|
|
156
|
-
/**
|
|
157
|
-
* Maximum number of items to return in the results.
|
|
158
|
-
* @max 100
|
|
159
|
-
*/
|
|
160
|
-
limit?: number | null;
|
|
161
|
-
/**
|
|
162
|
-
* Pointer to the next or previous page in the list of results.
|
|
163
|
-
*
|
|
164
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
165
|
-
* Not relevant for the first request.
|
|
166
|
-
* @maxLength 16000
|
|
167
|
-
*/
|
|
168
|
-
cursor?: string | null;
|
|
169
|
-
}
|
|
170
|
-
interface QueryPayinsConfigurationsResponse {
|
|
171
|
-
/** List of PayinsConfigurations. */
|
|
172
|
-
payinsConfigurations?: PayinsConfiguration[];
|
|
173
|
-
/** Paging metadata */
|
|
174
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
175
|
-
}
|
|
176
|
-
interface CursorPagingMetadata {
|
|
177
|
-
/** Number of items returned in the response. */
|
|
178
|
-
count?: number | null;
|
|
179
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
180
|
-
cursors?: Cursors;
|
|
181
|
-
/**
|
|
182
|
-
* Whether there are more pages to retrieve following the current page.
|
|
183
|
-
*
|
|
184
|
-
* + `true`: Another page of results can be retrieved.
|
|
185
|
-
* + `false`: This is the last page.
|
|
186
|
-
*/
|
|
187
|
-
hasNext?: boolean | null;
|
|
188
|
-
}
|
|
189
|
-
interface Cursors {
|
|
190
|
-
/**
|
|
191
|
-
* Cursor string pointing to the next page in the list of results.
|
|
192
|
-
* @maxLength 16000
|
|
193
|
-
*/
|
|
194
|
-
next?: string | null;
|
|
195
|
-
/**
|
|
196
|
-
* Cursor pointing to the previous page in the list of results.
|
|
197
|
-
* @maxLength 16000
|
|
198
|
-
*/
|
|
199
|
-
prev?: string | null;
|
|
200
|
-
}
|
|
201
|
-
interface BulkUpdatePayinsConfigurationTagsRequest {
|
|
202
|
-
/**
|
|
203
|
-
* List of PayinsConfigurations that their tags will update.
|
|
204
|
-
* @minSize 1
|
|
205
|
-
* @maxSize 100
|
|
206
|
-
* @format GUID
|
|
207
|
-
*/
|
|
208
|
-
ids: string[];
|
|
209
|
-
/** List of Tags to assign */
|
|
210
|
-
assignTags: Tags;
|
|
211
|
-
/** List of Tags to unAssign */
|
|
212
|
-
unassignTags?: Tags;
|
|
213
|
-
}
|
|
214
|
-
interface BulkUpdatePayinsConfigurationTagsResponse {
|
|
215
|
-
/**
|
|
216
|
-
* Results
|
|
217
|
-
* @minSize 1
|
|
218
|
-
* @maxSize 100
|
|
219
|
-
*/
|
|
220
|
-
results?: BulkUpdatePayinsConfigurationTagsResult[];
|
|
221
|
-
/** Metadata regarding the bulk update operation */
|
|
222
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
223
|
-
}
|
|
224
|
-
interface ItemMetadata {
|
|
225
|
-
/**
|
|
226
|
-
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
227
|
-
* @format GUID
|
|
228
|
-
*/
|
|
229
|
-
_id?: string | null;
|
|
230
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
231
|
-
originalIndex?: number;
|
|
232
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
233
|
-
success?: boolean;
|
|
234
|
-
/** Details about the error in case of failure. */
|
|
235
|
-
error?: ApplicationError;
|
|
236
|
-
}
|
|
237
|
-
interface ApplicationError {
|
|
238
|
-
/** Error code. */
|
|
239
|
-
code?: string;
|
|
240
|
-
/** Description of the error. */
|
|
241
|
-
description?: string;
|
|
242
|
-
/** Data related to the error. */
|
|
243
|
-
data?: Record<string, any> | null;
|
|
244
|
-
}
|
|
245
|
-
interface BulkUpdatePayinsConfigurationTagsResult {
|
|
246
|
-
/** Metadata regarding the specific single update operation */
|
|
247
|
-
itemMetadata?: ItemMetadata;
|
|
248
|
-
}
|
|
249
|
-
interface BulkActionMetadata {
|
|
250
|
-
/** Number of items that were successfully processed. */
|
|
251
|
-
totalSuccesses?: number;
|
|
252
|
-
/** Number of items that couldn't be processed. */
|
|
253
|
-
totalFailures?: number;
|
|
254
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
255
|
-
undetailedFailures?: number;
|
|
256
|
-
}
|
|
257
|
-
interface BulkUpdatePayinsConfigurationTagsByFilterRequest {
|
|
258
|
-
/** Filter */
|
|
259
|
-
filter: Record<string, any> | null;
|
|
260
|
-
/** List of Tags to assign */
|
|
261
|
-
assignTags: Tags;
|
|
262
|
-
/** List of Tags to unAssign */
|
|
263
|
-
unassignTags?: Tags;
|
|
264
|
-
}
|
|
265
|
-
interface BulkUpdatePayinsConfigurationTagsByFilterResponse {
|
|
266
|
-
/**
|
|
267
|
-
* Job ID
|
|
268
|
-
* @format GUID
|
|
269
|
-
*/
|
|
270
|
-
jobId?: string;
|
|
271
|
-
}
|
|
272
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
273
|
-
createdEvent?: EntityCreatedEvent;
|
|
274
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
275
|
-
deletedEvent?: EntityDeletedEvent;
|
|
276
|
-
actionEvent?: ActionEvent;
|
|
277
|
-
/**
|
|
278
|
-
* Unique event ID.
|
|
279
|
-
* Allows clients to ignore duplicate webhooks.
|
|
280
|
-
*/
|
|
281
|
-
_id?: string;
|
|
282
|
-
/**
|
|
283
|
-
* Assumes actions are also always typed to an entity_type
|
|
284
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
285
|
-
*/
|
|
286
|
-
entityFqdn?: string;
|
|
287
|
-
/**
|
|
288
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
289
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
290
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
291
|
-
*/
|
|
292
|
-
slug?: string;
|
|
293
|
-
/** ID of the entity associated with the event. */
|
|
294
|
-
entityId?: string;
|
|
295
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
296
|
-
eventTime?: Date | null;
|
|
297
|
-
/**
|
|
298
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
299
|
-
* (for example, GDPR).
|
|
300
|
-
*/
|
|
301
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
302
|
-
/** If present, indicates the action that triggered the event. */
|
|
303
|
-
originatedFrom?: string | null;
|
|
304
|
-
/**
|
|
305
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
306
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
307
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
308
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
309
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
310
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
311
|
-
*/
|
|
312
|
-
entityEventSequence?: string | null;
|
|
313
|
-
}
|
|
314
|
-
/** @oneof */
|
|
315
|
-
interface DomainEventBodyOneOf {
|
|
316
|
-
createdEvent?: EntityCreatedEvent;
|
|
317
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
318
|
-
deletedEvent?: EntityDeletedEvent;
|
|
319
|
-
actionEvent?: ActionEvent;
|
|
320
|
-
}
|
|
321
|
-
interface EntityCreatedEvent {
|
|
322
|
-
entity?: string;
|
|
323
|
-
}
|
|
324
|
-
interface RestoreInfo {
|
|
325
|
-
deletedDate?: Date | null;
|
|
326
|
-
}
|
|
327
|
-
interface EntityUpdatedEvent {
|
|
328
|
-
/**
|
|
329
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
330
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
331
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
332
|
-
*/
|
|
333
|
-
currentEntity?: string;
|
|
334
|
-
}
|
|
335
|
-
interface EntityDeletedEvent {
|
|
336
|
-
/** Entity that was deleted */
|
|
337
|
-
deletedEntity?: string | null;
|
|
338
|
-
}
|
|
339
|
-
interface ActionEvent {
|
|
340
|
-
body?: string;
|
|
341
|
-
}
|
|
342
|
-
interface MessageEnvelope {
|
|
343
|
-
/**
|
|
344
|
-
* App instance ID.
|
|
345
|
-
* @format GUID
|
|
346
|
-
*/
|
|
347
|
-
instanceId?: string | null;
|
|
348
|
-
/**
|
|
349
|
-
* Event type.
|
|
350
|
-
* @maxLength 150
|
|
351
|
-
*/
|
|
352
|
-
eventType?: string;
|
|
353
|
-
/** The identification type and identity data. */
|
|
354
|
-
identity?: IdentificationData;
|
|
355
|
-
/** Stringify payload. */
|
|
356
|
-
data?: string;
|
|
357
|
-
}
|
|
358
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
359
|
-
/**
|
|
360
|
-
* ID of a site visitor that has not logged in to the site.
|
|
361
|
-
* @format GUID
|
|
362
|
-
*/
|
|
363
|
-
anonymousVisitorId?: string;
|
|
364
|
-
/**
|
|
365
|
-
* ID of a site visitor that has logged in to the site.
|
|
366
|
-
* @format GUID
|
|
367
|
-
*/
|
|
368
|
-
memberId?: string;
|
|
369
|
-
/**
|
|
370
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
371
|
-
* @format GUID
|
|
372
|
-
*/
|
|
373
|
-
wixUserId?: string;
|
|
374
|
-
/**
|
|
375
|
-
* ID of an app.
|
|
376
|
-
* @format GUID
|
|
377
|
-
*/
|
|
378
|
-
appId?: string;
|
|
379
|
-
/** @readonly */
|
|
380
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
381
|
-
}
|
|
382
|
-
/** @oneof */
|
|
383
|
-
interface IdentificationDataIdOneOf {
|
|
384
|
-
/**
|
|
385
|
-
* ID of a site visitor that has not logged in to the site.
|
|
386
|
-
* @format GUID
|
|
387
|
-
*/
|
|
388
|
-
anonymousVisitorId?: string;
|
|
389
|
-
/**
|
|
390
|
-
* ID of a site visitor that has logged in to the site.
|
|
391
|
-
* @format GUID
|
|
392
|
-
*/
|
|
393
|
-
memberId?: string;
|
|
394
|
-
/**
|
|
395
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
396
|
-
* @format GUID
|
|
397
|
-
*/
|
|
398
|
-
wixUserId?: string;
|
|
399
|
-
/**
|
|
400
|
-
* ID of an app.
|
|
401
|
-
* @format GUID
|
|
402
|
-
*/
|
|
403
|
-
appId?: string;
|
|
404
|
-
}
|
|
405
|
-
declare enum WebhookIdentityType {
|
|
406
|
-
UNKNOWN = "UNKNOWN",
|
|
407
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
408
|
-
MEMBER = "MEMBER",
|
|
409
|
-
WIX_USER = "WIX_USER",
|
|
410
|
-
APP = "APP"
|
|
411
|
-
}
|
|
412
|
-
/** @enumType */
|
|
413
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
414
|
-
interface UpdatePayinsConfiguration {
|
|
415
|
-
/**
|
|
416
|
-
* id
|
|
417
|
-
* @format GUID
|
|
418
|
-
* @readonly
|
|
419
|
-
* @immutable
|
|
420
|
-
*/
|
|
421
|
-
_id?: string | null;
|
|
422
|
-
/**
|
|
423
|
-
* app_id
|
|
424
|
-
* @format GUID
|
|
425
|
-
* @immutable
|
|
426
|
-
*/
|
|
427
|
-
appId?: string | null;
|
|
428
|
-
/**
|
|
429
|
-
* rules
|
|
430
|
-
* @maxSize 1000
|
|
431
|
-
*/
|
|
432
|
-
rules?: PayinsRule[];
|
|
433
|
-
/**
|
|
434
|
-
* revision
|
|
435
|
-
* @readonly
|
|
436
|
-
*/
|
|
437
|
-
revision?: string | null;
|
|
438
|
-
/**
|
|
439
|
-
* Date when PayinsConfiguration was created
|
|
440
|
-
* @readonly
|
|
441
|
-
* @immutable
|
|
442
|
-
*/
|
|
443
|
-
_createdDate?: Date | null;
|
|
444
|
-
/**
|
|
445
|
-
* Date when PayinsConfiguration was updated
|
|
446
|
-
* @readonly
|
|
447
|
-
*/
|
|
448
|
-
_updatedDate?: Date | null;
|
|
449
|
-
/** Data Extensions */
|
|
450
|
-
extendedFields?: ExtendedFields;
|
|
451
|
-
/** Tags */
|
|
452
|
-
tags?: Tags;
|
|
453
|
-
}
|
|
454
|
-
interface QueryCursorResult {
|
|
455
|
-
cursors: Cursors;
|
|
456
|
-
hasNext: () => boolean;
|
|
457
|
-
hasPrev: () => boolean;
|
|
458
|
-
length: number;
|
|
459
|
-
pageSize: number;
|
|
460
|
-
}
|
|
461
|
-
interface PayinsConfigurationsQueryResult extends QueryCursorResult {
|
|
462
|
-
items: PayinsConfiguration[];
|
|
463
|
-
query: PayinsConfigurationsQueryBuilder;
|
|
464
|
-
next: () => Promise<PayinsConfigurationsQueryResult>;
|
|
465
|
-
prev: () => Promise<PayinsConfigurationsQueryResult>;
|
|
466
|
-
}
|
|
467
|
-
interface PayinsConfigurationsQueryBuilder {
|
|
468
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
469
|
-
* @param value - Value to compare against.
|
|
470
|
-
* @documentationMaturity preview
|
|
471
|
-
*/
|
|
472
|
-
eq: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantSelection.payinsEnabled', value: any) => PayinsConfigurationsQueryBuilder;
|
|
473
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
474
|
-
* @param value - Value to compare against.
|
|
475
|
-
* @documentationMaturity preview
|
|
476
|
-
*/
|
|
477
|
-
ne: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantSelection.payinsEnabled', value: any) => PayinsConfigurationsQueryBuilder;
|
|
478
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
479
|
-
* @param value - Value to compare against.
|
|
480
|
-
* @documentationMaturity preview
|
|
481
|
-
*/
|
|
482
|
-
ge: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId', value: any) => PayinsConfigurationsQueryBuilder;
|
|
483
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
484
|
-
* @param value - Value to compare against.
|
|
485
|
-
* @documentationMaturity preview
|
|
486
|
-
*/
|
|
487
|
-
gt: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId', value: any) => PayinsConfigurationsQueryBuilder;
|
|
488
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
489
|
-
* @param value - Value to compare against.
|
|
490
|
-
* @documentationMaturity preview
|
|
491
|
-
*/
|
|
492
|
-
le: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId', value: any) => PayinsConfigurationsQueryBuilder;
|
|
493
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
494
|
-
* @param value - Value to compare against.
|
|
495
|
-
* @documentationMaturity preview
|
|
496
|
-
*/
|
|
497
|
-
lt: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId', value: any) => PayinsConfigurationsQueryBuilder;
|
|
498
|
-
/** @param propertyName - Property whose value is compared with `string`.
|
|
499
|
-
* @param string - String to compare against. Case-insensitive.
|
|
500
|
-
* @documentationMaturity preview
|
|
501
|
-
*/
|
|
502
|
-
startsWith: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId', value: string) => PayinsConfigurationsQueryBuilder;
|
|
503
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
504
|
-
* @param values - List of values to compare against.
|
|
505
|
-
* @documentationMaturity preview
|
|
506
|
-
*/
|
|
507
|
-
hasSome: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantSelection.payinsEnabled', value: any[]) => PayinsConfigurationsQueryBuilder;
|
|
508
|
-
/** @documentationMaturity preview */
|
|
509
|
-
in: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantSelection.payinsEnabled', value: any) => PayinsConfigurationsQueryBuilder;
|
|
510
|
-
/** @documentationMaturity preview */
|
|
511
|
-
exists: (propertyName: '_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantSelection.payinsEnabled', value: boolean) => PayinsConfigurationsQueryBuilder;
|
|
512
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
513
|
-
* @documentationMaturity preview
|
|
514
|
-
*/
|
|
515
|
-
ascending: (...propertyNames: Array<'_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantSelection.payinsEnabled'>) => PayinsConfigurationsQueryBuilder;
|
|
516
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
517
|
-
* @documentationMaturity preview
|
|
518
|
-
*/
|
|
519
|
-
descending: (...propertyNames: Array<'_id' | 'appId' | 'rules.paymentMethodTypeId' | 'rules.accountConnectionId' | 'rules.merchantSelection.payinsEnabled'>) => PayinsConfigurationsQueryBuilder;
|
|
520
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
521
|
-
* @documentationMaturity preview
|
|
522
|
-
*/
|
|
523
|
-
limit: (limit: number) => PayinsConfigurationsQueryBuilder;
|
|
524
|
-
/** @param cursor - A pointer to specific record
|
|
525
|
-
* @documentationMaturity preview
|
|
526
|
-
*/
|
|
527
|
-
skipTo: (cursor: string) => PayinsConfigurationsQueryBuilder;
|
|
528
|
-
/** @documentationMaturity preview */
|
|
529
|
-
find: () => Promise<PayinsConfigurationsQueryResult>;
|
|
530
|
-
}
|
|
531
|
-
interface BulkUpdatePayinsConfigurationTagsOptions {
|
|
532
|
-
/** List of Tags to assign */
|
|
533
|
-
assignTags: Tags;
|
|
534
|
-
/** List of Tags to unAssign */
|
|
535
|
-
unassignTags?: Tags;
|
|
536
|
-
}
|
|
537
|
-
interface BulkUpdatePayinsConfigurationTagsByFilterOptions {
|
|
538
|
-
/** List of Tags to assign */
|
|
539
|
-
assignTags: Tags;
|
|
540
|
-
/** List of Tags to unAssign */
|
|
541
|
-
unassignTags?: Tags;
|
|
542
|
-
}
|
|
1
|
+
import { MaybeContext, BuildRESTFunction, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { PayinsConfigurationsQueryBuilder, CursorQuery, typedQueryPayinsConfigurations } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdatePayinsConfigurationTagsByFilterOptions, BulkUpdatePayinsConfigurationTagsByFilterRequest, BulkUpdatePayinsConfigurationTagsByFilterResponse, BulkUpdatePayinsConfigurationTagsOptions, BulkUpdatePayinsConfigurationTagsRequest, BulkUpdatePayinsConfigurationTagsResponse, BulkUpdatePayinsConfigurationTagsResult, CreatePayinsConfigurationRequest, CreatePayinsConfigurationResponse, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetPayinsConfigurationRequest, GetPayinsConfigurationResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MerchantSelection, MessageEnvelope, PayinsConfiguration, PayinsConfigurationsQueryResult, PayinsRule, QueryPayinsConfigurationsRequest, QueryPayinsConfigurationsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, UpdatePayinsConfiguration, UpdatePayinsConfigurationRequest, UpdatePayinsConfigurationResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
543
4
|
|
|
544
|
-
|
|
5
|
+
declare function customQueryPayinsConfigurations(httpClient: HttpClient): {
|
|
6
|
+
(): PayinsConfigurationsQueryBuilder;
|
|
7
|
+
(query: CursorQuery): ReturnType<typeof typedQueryPayinsConfigurations>;
|
|
8
|
+
};
|
|
9
|
+
declare const queryPayinsConfigurations: MaybeContext<BuildRESTFunction<typeof customQueryPayinsConfigurations> & typeof customQueryPayinsConfigurations>;
|
|
10
|
+
|
|
11
|
+
export { CursorQuery, PayinsConfigurationsQueryBuilder, queryPayinsConfigurations };
|
package/build/cjs/index.js
CHANGED
|
@@ -393,6 +393,31 @@ function queryPayinsConfigurations2() {
|
|
|
393
393
|
transformationPaths: {}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
+
async function typedQueryPayinsConfigurations(query) {
|
|
397
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
398
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
399
|
+
const reqOpts = queryPayinsConfigurations(
|
|
400
|
+
payload
|
|
401
|
+
);
|
|
402
|
+
sideEffects?.onSiteCall?.();
|
|
403
|
+
try {
|
|
404
|
+
const result = await httpClient.request(reqOpts);
|
|
405
|
+
sideEffects?.onSuccess?.(result);
|
|
406
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
407
|
+
} catch (err) {
|
|
408
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
409
|
+
err,
|
|
410
|
+
{
|
|
411
|
+
spreadPathsToArguments: {},
|
|
412
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
413
|
+
singleArgumentUnchanged: false
|
|
414
|
+
},
|
|
415
|
+
["query"]
|
|
416
|
+
);
|
|
417
|
+
sideEffects?.onError?.(err);
|
|
418
|
+
throw transformedError;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
396
421
|
async function bulkUpdatePayinsConfigurationTags2(ids, options) {
|
|
397
422
|
const { httpClient, sideEffects } = arguments[2];
|
|
398
423
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -489,6 +514,13 @@ function queryPayinsConfigurations3(httpClient) {
|
|
|
489
514
|
{ httpClient }
|
|
490
515
|
);
|
|
491
516
|
}
|
|
517
|
+
function typedQueryPayinsConfigurations2(httpClient) {
|
|
518
|
+
return (query) => typedQueryPayinsConfigurations(
|
|
519
|
+
query,
|
|
520
|
+
// @ts-ignore
|
|
521
|
+
{ httpClient }
|
|
522
|
+
);
|
|
523
|
+
}
|
|
492
524
|
function bulkUpdatePayinsConfigurationTags3(httpClient) {
|
|
493
525
|
return (ids, options) => bulkUpdatePayinsConfigurationTags2(
|
|
494
526
|
ids,
|
|
@@ -508,14 +540,26 @@ function bulkUpdatePayinsConfigurationTagsByFilter3(httpClient) {
|
|
|
508
540
|
|
|
509
541
|
// src/payments-payins-configurations-v1-payins-configuration-payins-configurations.context.ts
|
|
510
542
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
543
|
+
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
544
|
+
function customQueryPayinsConfigurations(httpClient) {
|
|
545
|
+
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
546
|
+
builderQueryFunction: () => queryPayinsConfigurations3(httpClient)(),
|
|
547
|
+
typedQueryFunction: (query) => typedQueryPayinsConfigurations2(httpClient)(query),
|
|
548
|
+
hasOptionsParameter: false
|
|
549
|
+
});
|
|
550
|
+
function overloadedQuery(query) {
|
|
551
|
+
return router(...arguments);
|
|
552
|
+
}
|
|
553
|
+
return overloadedQuery;
|
|
554
|
+
}
|
|
511
555
|
var createPayinsConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createPayinsConfiguration3);
|
|
512
556
|
var getPayinsConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPayinsConfiguration3);
|
|
513
557
|
var updatePayinsConfiguration4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePayinsConfiguration3);
|
|
514
|
-
var queryPayinsConfigurations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPayinsConfigurations3);
|
|
515
558
|
var bulkUpdatePayinsConfigurationTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdatePayinsConfigurationTags3);
|
|
516
559
|
var bulkUpdatePayinsConfigurationTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
517
560
|
bulkUpdatePayinsConfigurationTagsByFilter3
|
|
518
561
|
);
|
|
562
|
+
var queryPayinsConfigurations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPayinsConfigurations);
|
|
519
563
|
// Annotate the CommonJS export names for ESM import in node:
|
|
520
564
|
0 && (module.exports = {
|
|
521
565
|
SortOrder,
|