@wix/auto_sdk_benefit-programs_transactions 1.0.8 → 1.0.10

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.
Files changed (134) hide show
  1. package/build/{internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-DjQc6kgD.d.mts} +50 -117
  2. package/build/{cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-DjQc6kgD.d.ts} +50 -117
  3. package/build/index.d.mts +35 -0
  4. package/build/index.d.ts +35 -0
  5. package/build/index.js +324 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +294 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/benefit-programs-v1-transaction-transactions.universal.d.ts → benefit-programs-v1-transaction-transactions.universal-DjQc6kgD.d.mts} +50 -117
  10. package/build/{es/src/benefit-programs-v1-transaction-transactions.universal.d.ts → internal/benefit-programs-v1-transaction-transactions.universal-DjQc6kgD.d.ts} +50 -117
  11. package/build/internal/index.d.mts +35 -0
  12. package/build/internal/index.d.ts +35 -0
  13. package/build/internal/index.js +324 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +294 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +345 -0
  18. package/build/internal/meta.d.ts +345 -0
  19. package/build/internal/meta.js +224 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +196 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +345 -0
  24. package/build/meta.d.ts +345 -0
  25. package/build/meta.js +224 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +196 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
  40. package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.js +0 -14
  41. package/build/cjs/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
  42. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
  43. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js +0 -172
  44. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
  45. package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
  46. package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.js +0 -66
  47. package/build/cjs/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
  48. package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
  49. package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.js +0 -24
  50. package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
  51. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -613
  52. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js +0 -48
  53. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
  54. package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +0 -184
  55. package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
  67. package/build/es/src/benefit-programs-v1-transaction-transactions.context.js +0 -6
  68. package/build/es/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
  69. package/build/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
  70. package/build/es/src/benefit-programs-v1-transaction-transactions.http.js +0 -167
  71. package/build/es/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
  72. package/build/es/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
  73. package/build/es/src/benefit-programs-v1-transaction-transactions.meta.js +0 -38
  74. package/build/es/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
  75. package/build/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
  76. package/build/es/src/benefit-programs-v1-transaction-transactions.public.js +0 -14
  77. package/build/es/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
  78. package/build/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -613
  79. package/build/es/src/benefit-programs-v1-transaction-transactions.types.js +0 -45
  80. package/build/es/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
  81. package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js +0 -156
  82. package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
  93. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.js +0 -14
  94. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
  95. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
  96. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js +0 -172
  97. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
  98. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
  99. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.js +0 -66
  100. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
  101. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
  102. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.js +0 -24
  103. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
  104. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -613
  105. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js +0 -48
  106. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
  107. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +0 -184
  108. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.d.ts +0 -6
  119. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.js +0 -6
  120. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.context.js.map +0 -1
  121. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +0 -17
  122. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js +0 -167
  123. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js.map +0 -1
  124. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.d.ts +0 -16
  125. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.js +0 -38
  126. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.meta.js.map +0 -1
  127. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +0 -32
  128. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.js +0 -14
  129. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.js.map +0 -1
  130. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +0 -613
  131. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js +0 -45
  132. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js.map +0 -1
  133. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js +0 -156
  134. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +0 -1
@@ -1,613 +0,0 @@
1
- export interface Transaction {
2
- /**
3
- * Transaction ID.
4
- * @format GUID
5
- * @readonly
6
- */
7
- id?: string | null;
8
- /**
9
- * Revision number, which increments by 1 each time the transaction is updated.
10
- * @readonly
11
- */
12
- revision?: string | null;
13
- /**
14
- * Date and time the transaction was created.
15
- * @readonly
16
- */
17
- createdDate?: Date | null;
18
- /**
19
- * Date and time the transaction was updated.
20
- * @readonly
21
- */
22
- updatedDate?: Date | null;
23
- /**
24
- * Pool associated with this transaction.
25
- * @readonly
26
- */
27
- pool?: PoolInfo;
28
- /**
29
- * Amount the balance was adjusted in this transaction.
30
- * @decimalValue options { gte:0, maxScale:4 }
31
- */
32
- amount?: string;
33
- /** Where the credits came from. */
34
- source?: BalanceType;
35
- /** Where the credits went to. */
36
- target?: BalanceType;
37
- /**
38
- * Unique identifier, generated by the client.
39
- * Used to recognize repeated attempts to make the same request.
40
- * @maxLength 200
41
- * @readonly
42
- */
43
- idempotencyKey?: string;
44
- /**
45
- * ID of the related transaction. For example, if this transaction is a refund for a benefit redemption, the related transaction is the benefit redemption transaction.
46
- * @format GUID
47
- * @readonly
48
- */
49
- relatedTransactionId?: string | null;
50
- /**
51
- * Beneficiary of the pool associated with this transaction.
52
- * @readonly
53
- * @immutable
54
- */
55
- beneficiary?: CommonIdentificationData;
56
- /**
57
- * Identity that created the transaction.
58
- * @readonly
59
- * @immutable
60
- */
61
- instructingParty?: CommonIdentificationData;
62
- /** Transaction status. */
63
- status?: TransactionStatus;
64
- /**
65
- * Additional transaction details.
66
- * @readonly
67
- */
68
- details?: TransactionDetails;
69
- /**
70
- * Custom field data for the transaction object.
71
- *
72
- * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
73
- */
74
- extendedFields?: ExtendedFields;
75
- }
76
- export interface PoolInfo {
77
- /**
78
- * Pool ID.
79
- * @format GUID
80
- * @readonly
81
- */
82
- id?: string;
83
- /**
84
- * ID of the pool definition the pool was created from.
85
- * @format GUID
86
- * @readonly
87
- */
88
- poolDefinitionId?: string | null;
89
- /**
90
- * ID of the program definition containing the pool definition the pool was created from.
91
- * @format GUID
92
- * @readonly
93
- */
94
- programDefinitionId?: string | null;
95
- /**
96
- * ID of the program that contains the pool.
97
- * @format GUID
98
- * @readonly
99
- */
100
- programId?: string | null;
101
- /**
102
- * Available credits.
103
- * @decimalValue options { gte:0, maxScale:4 }
104
- */
105
- creditAmount?: string | null;
106
- /**
107
- * Namespace for your app or site's benefit programs.
108
- * @minLength 1
109
- * @maxLength 50
110
- */
111
- namespace?: string | null;
112
- }
113
- export declare enum BalanceType {
114
- UNDEFINED = "UNDEFINED",
115
- /** In a pool's balance. */
116
- AVAILABLE = "AVAILABLE",
117
- /** Outside a pool's balance. */
118
- EXTERNAL = "EXTERNAL"
119
- }
120
- export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
121
- /**
122
- * ID of a site visitor that hasn't logged in to the site.
123
- * @format GUID
124
- */
125
- anonymousVisitorId?: string;
126
- /**
127
- * ID of a site member.
128
- * @format GUID
129
- */
130
- memberId?: string;
131
- /**
132
- * ID of a Wix user.
133
- * @format GUID
134
- */
135
- wixUserId?: string;
136
- }
137
- /** @oneof */
138
- export interface CommonIdentificationDataIdOneOf {
139
- /**
140
- * ID of a site visitor that hasn't logged in to the site.
141
- * @format GUID
142
- */
143
- anonymousVisitorId?: string;
144
- /**
145
- * ID of a site member.
146
- * @format GUID
147
- */
148
- memberId?: string;
149
- /**
150
- * ID of a Wix user.
151
- * @format GUID
152
- */
153
- wixUserId?: string;
154
- }
155
- export declare enum IdentityType {
156
- /** Unknown type. This value is not used. */
157
- UNKNOWN = "UNKNOWN",
158
- /** A site visitor who has not logged in. */
159
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
160
- /** A logged-in site member. */
161
- MEMBER = "MEMBER",
162
- /** A Wix account holder, such as a site owner or contributor. */
163
- WIX_USER = "WIX_USER"
164
- }
165
- export declare enum TransactionStatus {
166
- UNDEFINED = "UNDEFINED",
167
- /** Transaction is pending. This is the initial transaction status. */
168
- PENDING = "PENDING",
169
- /** Transaction completed successfully. */
170
- COMPLETED = "COMPLETED",
171
- /** Transaction failed. */
172
- FAILED = "FAILED"
173
- }
174
- export interface TransactionDetails {
175
- /**
176
- * Item associated with the transaction.
177
- * @readonly
178
- */
179
- item?: Item;
180
- /** Amount of items associated with the transaction. */
181
- itemCount?: number | null;
182
- /**
183
- * Date and time the transaction was created.
184
- * @readonly
185
- */
186
- effectiveDate?: Date | null;
187
- /**
188
- * Reason for the transaction. For example, `Redemption`.
189
- * @readonly
190
- * @maxLength 256
191
- */
192
- reason?: string | null;
193
- }
194
- export interface Item {
195
- /**
196
- * Item ID.
197
- * @format GUID
198
- * @readonly
199
- */
200
- id?: string | null;
201
- /**
202
- * Item external ID.
203
- * @format GUID
204
- * @readonly
205
- */
206
- externalId?: string | null;
207
- /**
208
- * Item category.
209
- * @maxLength 20
210
- * @readonly
211
- */
212
- category?: string | null;
213
- /**
214
- * Item set ID.
215
- * @format GUID
216
- * @readonly
217
- */
218
- itemSetId?: string | null;
219
- /**
220
- * Item name.
221
- * @maxLength 64
222
- * @readonly
223
- */
224
- displayName?: string | null;
225
- }
226
- export interface ExtendedFields {
227
- /**
228
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
229
- * The value of each key is structured according to the schema defined when the extended fields were configured.
230
- *
231
- * You can only access fields for which you have the appropriate permissions.
232
- *
233
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
234
- */
235
- namespaces?: Record<string, Record<string, any>>;
236
- }
237
- export interface CreateTransactionRequest {
238
- /** Transaction to create. */
239
- transaction?: Transaction;
240
- }
241
- export interface CreateTransactionResponse {
242
- /** Created transaction. */
243
- transaction?: Transaction;
244
- }
245
- export interface BulkCreateTransactionsRequest {
246
- /**
247
- * Transactions to be created.
248
- * @minSize 1
249
- * @maxSize 100
250
- */
251
- transactions?: Transaction[];
252
- /**
253
- * Whether to return the full item entities.
254
- *
255
- * Default: `false`
256
- */
257
- returnEntity?: boolean;
258
- }
259
- export interface BulkCreateTransactionsResponse {
260
- /**
261
- * List of results for each transaction.
262
- *
263
- * Includes the transaction and whether the operation was successful.
264
- * @minSize 1
265
- * @maxSize 100
266
- */
267
- results?: BulkTransactionResult[];
268
- /** Bulk action metadata. */
269
- bulkActionMetadata?: BulkActionMetadata;
270
- }
271
- export interface BulkTransactionResult {
272
- /** Metadata for the item. */
273
- itemMetadata?: ItemMetadata;
274
- /** Created transaction. */
275
- transaction?: Transaction;
276
- }
277
- export interface ItemMetadata {
278
- /**
279
- * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
280
- * @format GUID
281
- */
282
- id?: string | null;
283
- /** Index of the item within the request array. Allows for correlation between request and response items. */
284
- originalIndex?: number;
285
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
286
- success?: boolean;
287
- /** Details about the error in case of failure. */
288
- error?: ApplicationError;
289
- }
290
- export interface ApplicationError {
291
- /** Error code. */
292
- code?: string;
293
- /** Description of the error. */
294
- description?: string;
295
- /** Data related to the error. */
296
- data?: Record<string, any> | null;
297
- }
298
- export interface BulkActionMetadata {
299
- /** Number of items that were successfully processed. */
300
- totalSuccesses?: number;
301
- /** Number of items that couldn't be processed. */
302
- totalFailures?: number;
303
- /** Number of failures without details because detailed failure threshold was exceeded. */
304
- undetailedFailures?: number;
305
- }
306
- export interface UpdateTransactionRequest {
307
- /** Transaction to update. */
308
- transaction?: Transaction;
309
- }
310
- export interface UpdateTransactionResponse {
311
- /** Updated transaction. */
312
- transaction?: Transaction;
313
- }
314
- export interface BulkUpdateTransactionsRequest {
315
- /**
316
- * Transactions to update.
317
- * @minSize 1
318
- * @maxSize 100
319
- */
320
- transactions?: MaskedTransaction[];
321
- /**
322
- * Whether to return full transaction entities.
323
- *
324
- * Default: `false`
325
- */
326
- returnEntity?: boolean;
327
- }
328
- export interface MaskedTransaction {
329
- /** Transaction to be updated. */
330
- transaction?: Transaction;
331
- /** Explicit list of fields to update. */
332
- fieldMask?: string[];
333
- }
334
- export interface BulkUpdateTransactionsResponse {
335
- /**
336
- * List of results for each Transaction.
337
- *
338
- * Includes the Transaction and whether the update was successful.
339
- * @minSize 1
340
- * @maxSize 100
341
- */
342
- results?: BulkTransactionResult[];
343
- /** Bulk action metadata. */
344
- bulkActionMetadata?: BulkActionMetadata;
345
- }
346
- export interface GetTransactionRequest {
347
- /**
348
- * ID of the transaction to retrieve.
349
- * @format GUID
350
- */
351
- transactionId: string;
352
- }
353
- export interface GetTransactionResponse {
354
- /** Retrieved transaction. */
355
- transaction?: Transaction;
356
- }
357
- export interface QueryTransactionsRequest {
358
- /** Filter, sort, and paging to apply to the query. */
359
- query: CursorQuery;
360
- }
361
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
362
- /** 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`. */
363
- cursorPaging?: CursorPaging;
364
- /**
365
- * Filter object.
366
- * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
367
- * for more information.
368
- */
369
- filter?: Record<string, any> | null;
370
- /**
371
- * List of sort objects.
372
- * @maxSize 5
373
- */
374
- sort?: Sorting[];
375
- }
376
- /** @oneof */
377
- export interface CursorQueryPagingMethodOneOf {
378
- /** 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`. */
379
- cursorPaging?: CursorPaging;
380
- }
381
- export interface Sorting {
382
- /**
383
- * Field to sort by.
384
- * @maxLength 512
385
- */
386
- fieldName?: string;
387
- /**
388
- * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
389
- *
390
- * Default: `ASC`
391
- */
392
- order?: SortOrder;
393
- }
394
- export declare enum SortOrder {
395
- /** Ascending sort order. */
396
- ASC = "ASC",
397
- /** Descending sort order. */
398
- DESC = "DESC"
399
- }
400
- export interface CursorPaging {
401
- /**
402
- * Maximum number of items to return.
403
- * @max 100
404
- */
405
- limit?: number | null;
406
- /**
407
- * Pointer to the next or previous page in the list of results.
408
- *
409
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
410
- * Not relevant for the first request.
411
- * @maxLength 16000
412
- */
413
- cursor?: string | null;
414
- }
415
- export interface QueryTransactionsResponse {
416
- /** List of retrieved transactions. */
417
- transactions?: Transaction[];
418
- /** Metadata for paginated results. */
419
- metadata?: CursorPagingMetadata;
420
- }
421
- export interface CursorPagingMetadata {
422
- /** Number of items returned in the response. */
423
- count?: number | null;
424
- /** Cursor strings that point to the next page, previous page, or both. */
425
- cursors?: Cursors;
426
- /**
427
- * Whether there are more pages to retrieve following the current page.
428
- *
429
- * + `true`: Another page of results can be retrieved.
430
- * + `false`: This is the last page.
431
- */
432
- hasNext?: boolean | null;
433
- }
434
- export interface Cursors {
435
- /**
436
- * Cursor string pointing to the next page in the list of results.
437
- * @maxLength 16000
438
- */
439
- next?: string | null;
440
- /**
441
- * Cursor pointing to the previous page in the list of results.
442
- * @maxLength 16000
443
- */
444
- prev?: string | null;
445
- }
446
- export interface DomainEvent extends DomainEventBodyOneOf {
447
- createdEvent?: EntityCreatedEvent;
448
- updatedEvent?: EntityUpdatedEvent;
449
- deletedEvent?: EntityDeletedEvent;
450
- actionEvent?: ActionEvent;
451
- /**
452
- * Unique event ID.
453
- * Allows clients to ignore duplicate webhooks.
454
- */
455
- id?: string;
456
- /**
457
- * Assumes actions are also always typed to an entity_type
458
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
459
- */
460
- entityFqdn?: string;
461
- /**
462
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
463
- * This is although the created/updated/deleted notion is duplication of the oneof types
464
- * Example: created/updated/deleted/started/completed/email_opened
465
- */
466
- slug?: string;
467
- /** ID of the entity associated with the event. */
468
- entityId?: string;
469
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
470
- eventTime?: Date | null;
471
- /**
472
- * Whether the event was triggered as a result of a privacy regulation application
473
- * (for example, GDPR).
474
- */
475
- triggeredByAnonymizeRequest?: boolean | null;
476
- /** If present, indicates the action that triggered the event. */
477
- originatedFrom?: string | null;
478
- /**
479
- * A sequence number defining the order of updates to the underlying entity.
480
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
481
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
482
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
483
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
484
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
485
- */
486
- entityEventSequence?: string | null;
487
- }
488
- /** @oneof */
489
- export interface DomainEventBodyOneOf {
490
- createdEvent?: EntityCreatedEvent;
491
- updatedEvent?: EntityUpdatedEvent;
492
- deletedEvent?: EntityDeletedEvent;
493
- actionEvent?: ActionEvent;
494
- }
495
- export interface EntityCreatedEvent {
496
- entityAsJson?: string;
497
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
498
- restoreInfo?: RestoreInfo;
499
- }
500
- export interface RestoreInfo {
501
- deletedDate?: Date | null;
502
- }
503
- export interface EntityUpdatedEvent {
504
- /**
505
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
506
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
507
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
508
- */
509
- currentEntityAsJson?: string;
510
- }
511
- export interface EntityDeletedEvent {
512
- /** Entity that was deleted */
513
- deletedEntityAsJson?: string | null;
514
- }
515
- export interface ActionEvent {
516
- bodyAsJson?: string;
517
- }
518
- export interface MessageEnvelope {
519
- /**
520
- * App instance ID.
521
- * @format GUID
522
- */
523
- instanceId?: string | null;
524
- /**
525
- * Event type.
526
- * @maxLength 150
527
- */
528
- eventType?: string;
529
- /** The identification type and identity data. */
530
- identity?: IdentificationData;
531
- /** Stringify payload. */
532
- data?: string;
533
- }
534
- export interface IdentificationData extends IdentificationDataIdOneOf {
535
- /**
536
- * ID of a site visitor that has not logged in to the site.
537
- * @format GUID
538
- */
539
- anonymousVisitorId?: string;
540
- /**
541
- * ID of a site visitor that has logged in to the site.
542
- * @format GUID
543
- */
544
- memberId?: string;
545
- /**
546
- * ID of a Wix user (site owner, contributor, etc.).
547
- * @format GUID
548
- */
549
- wixUserId?: string;
550
- /**
551
- * ID of an app.
552
- * @format GUID
553
- */
554
- appId?: string;
555
- /** @readonly */
556
- identityType?: WebhookIdentityType;
557
- }
558
- /** @oneof */
559
- export interface IdentificationDataIdOneOf {
560
- /**
561
- * ID of a site visitor that has not logged in to the site.
562
- * @format GUID
563
- */
564
- anonymousVisitorId?: string;
565
- /**
566
- * ID of a site visitor that has logged in to the site.
567
- * @format GUID
568
- */
569
- memberId?: string;
570
- /**
571
- * ID of a Wix user (site owner, contributor, etc.).
572
- * @format GUID
573
- */
574
- wixUserId?: string;
575
- /**
576
- * ID of an app.
577
- * @format GUID
578
- */
579
- appId?: string;
580
- }
581
- export declare enum WebhookIdentityType {
582
- UNKNOWN = "UNKNOWN",
583
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
584
- MEMBER = "MEMBER",
585
- WIX_USER = "WIX_USER",
586
- APP = "APP"
587
- }
588
- interface PoolInfoNonNullableFields {
589
- id: string;
590
- }
591
- interface CommonIdentificationDataNonNullableFields {
592
- anonymousVisitorId: string;
593
- memberId: string;
594
- wixUserId: string;
595
- identityType: IdentityType;
596
- }
597
- interface TransactionNonNullableFields {
598
- pool?: PoolInfoNonNullableFields;
599
- amount: string;
600
- source: BalanceType;
601
- target: BalanceType;
602
- idempotencyKey: string;
603
- beneficiary?: CommonIdentificationDataNonNullableFields;
604
- instructingParty?: CommonIdentificationDataNonNullableFields;
605
- status: TransactionStatus;
606
- }
607
- export interface GetTransactionResponseNonNullableFields {
608
- transaction?: TransactionNonNullableFields;
609
- }
610
- export interface QueryTransactionsResponseNonNullableFields {
611
- transactions: TransactionNonNullableFields[];
612
- }
613
- export {};
@@ -1,45 +0,0 @@
1
- export var BalanceType;
2
- (function (BalanceType) {
3
- BalanceType["UNDEFINED"] = "UNDEFINED";
4
- /** In a pool's balance. */
5
- BalanceType["AVAILABLE"] = "AVAILABLE";
6
- /** Outside a pool's balance. */
7
- BalanceType["EXTERNAL"] = "EXTERNAL";
8
- })(BalanceType || (BalanceType = {}));
9
- export var IdentityType;
10
- (function (IdentityType) {
11
- /** Unknown type. This value is not used. */
12
- IdentityType["UNKNOWN"] = "UNKNOWN";
13
- /** A site visitor who has not logged in. */
14
- IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
15
- /** A logged-in site member. */
16
- IdentityType["MEMBER"] = "MEMBER";
17
- /** A Wix account holder, such as a site owner or contributor. */
18
- IdentityType["WIX_USER"] = "WIX_USER";
19
- })(IdentityType || (IdentityType = {}));
20
- export var TransactionStatus;
21
- (function (TransactionStatus) {
22
- TransactionStatus["UNDEFINED"] = "UNDEFINED";
23
- /** Transaction is pending. This is the initial transaction status. */
24
- TransactionStatus["PENDING"] = "PENDING";
25
- /** Transaction completed successfully. */
26
- TransactionStatus["COMPLETED"] = "COMPLETED";
27
- /** Transaction failed. */
28
- TransactionStatus["FAILED"] = "FAILED";
29
- })(TransactionStatus || (TransactionStatus = {}));
30
- export var SortOrder;
31
- (function (SortOrder) {
32
- /** Ascending sort order. */
33
- SortOrder["ASC"] = "ASC";
34
- /** Descending sort order. */
35
- SortOrder["DESC"] = "DESC";
36
- })(SortOrder || (SortOrder = {}));
37
- export var WebhookIdentityType;
38
- (function (WebhookIdentityType) {
39
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
40
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
41
- WebhookIdentityType["MEMBER"] = "MEMBER";
42
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
43
- WebhookIdentityType["APP"] = "APP";
44
- })(WebhookIdentityType || (WebhookIdentityType = {}));
45
- //# sourceMappingURL=benefit-programs-v1-transaction-transactions.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"benefit-programs-v1-transaction-transactions.types.js","sourceRoot":"","sources":["../../../../src/benefit-programs-v1-transaction-transactions.types.ts"],"names":[],"mappings":"AAkHA,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,2BAA2B;IAC3B,sCAAuB,CAAA;IACvB,gCAAgC;IAChC,oCAAqB,CAAA;AACvB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAwCD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAED,MAAM,CAAN,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;IACvB,sEAAsE;IACtE,wCAAmB,CAAA;IACnB,0CAA0C;IAC1C,4CAAuB,CAAA;IACvB,0BAA0B;IAC1B,sCAAiB,CAAA;AACnB,CAAC,EARW,iBAAiB,KAAjB,iBAAiB,QAQ5B;AAoPD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAqMD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}