@wix/auto_sdk_benefit-programs_transactions 1.0.15 → 1.0.16

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