@wix/auto_sdk_benefit-programs_transactions 1.0.15 → 1.0.17

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 +13 -14
  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
package/build/meta.d.mts DELETED
@@ -1,345 +0,0 @@
1
- import { G as GetTransactionRequest$1, p as GetTransactionResponse$1, Q as QueryTransactionsRequest$1, u as QueryTransactionsResponse$1 } from './benefit-programs-v1-transaction-transactions.universal-DjQc6kgD.mjs';
2
-
3
- interface Transaction {
4
- /**
5
- * Transaction ID.
6
- * @format GUID
7
- * @readonly
8
- */
9
- id?: string | null;
10
- /**
11
- * Revision number, which increments by 1 each time the transaction is updated.
12
- * @readonly
13
- */
14
- revision?: string | null;
15
- /**
16
- * Date and time the transaction was created.
17
- * @readonly
18
- */
19
- createdDate?: Date | null;
20
- /**
21
- * Date and time the transaction was updated.
22
- * @readonly
23
- */
24
- updatedDate?: Date | null;
25
- /**
26
- * Pool associated with this transaction.
27
- * @readonly
28
- */
29
- pool?: PoolInfo;
30
- /**
31
- * Amount the balance was adjusted in this transaction.
32
- * @decimalValue options { gte:0, maxScale:4 }
33
- */
34
- amount?: string;
35
- /** Where the credits came from. */
36
- source?: BalanceType;
37
- /** Where the credits went to. */
38
- target?: BalanceType;
39
- /**
40
- * Unique identifier, generated by the client.
41
- * Used to recognize repeated attempts to make the same request.
42
- * @maxLength 200
43
- * @readonly
44
- */
45
- idempotencyKey?: string;
46
- /**
47
- * 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.
48
- * @format GUID
49
- * @readonly
50
- */
51
- relatedTransactionId?: string | null;
52
- /**
53
- * Beneficiary of the pool associated with this transaction.
54
- * @readonly
55
- * @immutable
56
- */
57
- beneficiary?: CommonIdentificationData;
58
- /**
59
- * Identity that created the transaction.
60
- * @readonly
61
- * @immutable
62
- */
63
- instructingParty?: CommonIdentificationData;
64
- /** Transaction status. */
65
- status?: TransactionStatus;
66
- /**
67
- * Additional transaction details.
68
- * @readonly
69
- */
70
- details?: TransactionDetails;
71
- /**
72
- * Custom field data for the transaction object.
73
- *
74
- * [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.
75
- */
76
- extendedFields?: ExtendedFields;
77
- }
78
- interface PoolInfo {
79
- /**
80
- * Pool ID.
81
- * @format GUID
82
- * @readonly
83
- */
84
- id?: string;
85
- /**
86
- * ID of the pool definition the pool was created from.
87
- * @format GUID
88
- * @readonly
89
- */
90
- poolDefinitionId?: string | null;
91
- /**
92
- * ID of the program definition containing the pool definition the pool was created from.
93
- * @format GUID
94
- * @readonly
95
- */
96
- programDefinitionId?: string | null;
97
- /**
98
- * ID of the program that contains the pool.
99
- * @format GUID
100
- * @readonly
101
- */
102
- programId?: string | null;
103
- /**
104
- * Available credits.
105
- * @decimalValue options { gte:0, maxScale:4 }
106
- */
107
- creditAmount?: string | null;
108
- /**
109
- * 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.
110
- * @minLength 1
111
- * @maxLength 50
112
- */
113
- namespace?: string | null;
114
- }
115
- declare enum BalanceType {
116
- UNDEFINED = "UNDEFINED",
117
- /** In a pool's balance. */
118
- AVAILABLE = "AVAILABLE",
119
- /** Outside a pool's balance. */
120
- EXTERNAL = "EXTERNAL"
121
- }
122
- interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
123
- /**
124
- * ID of a site visitor that hasn't logged in to the site.
125
- * @format GUID
126
- */
127
- anonymousVisitorId?: string;
128
- /**
129
- * ID of a site member.
130
- * @format GUID
131
- */
132
- memberId?: string;
133
- /**
134
- * ID of a Wix user.
135
- * @format GUID
136
- */
137
- wixUserId?: string;
138
- }
139
- /** @oneof */
140
- interface CommonIdentificationDataIdOneOf {
141
- /**
142
- * ID of a site visitor that hasn't logged in to the site.
143
- * @format GUID
144
- */
145
- anonymousVisitorId?: string;
146
- /**
147
- * ID of a site member.
148
- * @format GUID
149
- */
150
- memberId?: string;
151
- /**
152
- * ID of a Wix user.
153
- * @format GUID
154
- */
155
- wixUserId?: string;
156
- }
157
- declare enum TransactionStatus {
158
- UNDEFINED = "UNDEFINED",
159
- /** Transaction is pending. This is the initial transaction status. */
160
- PENDING = "PENDING",
161
- /** Transaction completed successfully. */
162
- COMPLETED = "COMPLETED",
163
- /** Transaction failed. */
164
- FAILED = "FAILED"
165
- }
166
- interface TransactionDetails {
167
- /**
168
- * Item associated with the transaction.
169
- * @readonly
170
- */
171
- item?: Item;
172
- /** Amount of items associated with the transaction. */
173
- itemCount?: number | null;
174
- /**
175
- * Date and time the transaction was created.
176
- * @readonly
177
- */
178
- effectiveDate?: Date | null;
179
- /**
180
- * Reason for the transaction. For example, `Redemption`.
181
- * @readonly
182
- * @maxLength 256
183
- */
184
- reason?: string | null;
185
- }
186
- interface Item {
187
- /**
188
- * Item ID.
189
- * @format GUID
190
- * @readonly
191
- */
192
- id?: string | null;
193
- /**
194
- * Item external ID.
195
- * @format GUID
196
- * @readonly
197
- */
198
- externalId?: string | null;
199
- /**
200
- * Item category.
201
- * @maxLength 20
202
- * @readonly
203
- */
204
- category?: string | null;
205
- /**
206
- * Item set ID.
207
- * @format GUID
208
- * @readonly
209
- */
210
- itemSetId?: string | null;
211
- /**
212
- * Item name.
213
- * @maxLength 64
214
- * @readonly
215
- */
216
- displayName?: string | null;
217
- }
218
- interface ExtendedFields {
219
- /**
220
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
221
- * The value of each key is structured according to the schema defined when the extended fields were configured.
222
- *
223
- * You can only access fields for which you have the appropriate permissions.
224
- *
225
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
226
- */
227
- namespaces?: Record<string, Record<string, any>>;
228
- }
229
- interface GetTransactionRequest {
230
- /**
231
- * ID of the transaction to retrieve.
232
- * @format GUID
233
- */
234
- transactionId: string;
235
- }
236
- interface GetTransactionResponse {
237
- /** Retrieved transaction. */
238
- transaction?: Transaction;
239
- }
240
- interface QueryTransactionsRequest {
241
- /** Filter, sort, and paging to apply to the query. */
242
- query: CursorQuery;
243
- }
244
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
245
- /** 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`. */
246
- cursorPaging?: CursorPaging;
247
- /**
248
- * Filter object.
249
- * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
250
- * for more information.
251
- */
252
- filter?: Record<string, any> | null;
253
- /**
254
- * List of sort objects.
255
- * @maxSize 5
256
- */
257
- sort?: Sorting[];
258
- }
259
- /** @oneof */
260
- interface CursorQueryPagingMethodOneOf {
261
- /** 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`. */
262
- cursorPaging?: CursorPaging;
263
- }
264
- interface Sorting {
265
- /**
266
- * Field to sort by.
267
- * @maxLength 512
268
- */
269
- fieldName?: string;
270
- /**
271
- * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
272
- *
273
- * Default: `ASC`
274
- */
275
- order?: SortOrder;
276
- }
277
- declare enum SortOrder {
278
- /** Ascending sort order. */
279
- ASC = "ASC",
280
- /** Descending sort order. */
281
- DESC = "DESC"
282
- }
283
- interface CursorPaging {
284
- /**
285
- * Maximum number of items to return.
286
- * @max 100
287
- */
288
- limit?: number | null;
289
- /**
290
- * Pointer to the next or previous page in the list of results.
291
- *
292
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
293
- * Not relevant for the first request.
294
- * @maxLength 16000
295
- */
296
- cursor?: string | null;
297
- }
298
- interface QueryTransactionsResponse {
299
- /** List of retrieved transactions. */
300
- transactions?: Transaction[];
301
- /** Metadata for paginated results. */
302
- metadata?: CursorPagingMetadata;
303
- }
304
- interface CursorPagingMetadata {
305
- /** Number of items returned in the response. */
306
- count?: number | null;
307
- /** Cursor strings that point to the next page, previous page, or both. */
308
- cursors?: Cursors;
309
- /**
310
- * Whether there are more pages to retrieve following the current page.
311
- *
312
- * + `true`: Another page of results can be retrieved.
313
- * + `false`: This is the last page.
314
- */
315
- hasNext?: boolean | null;
316
- }
317
- interface Cursors {
318
- /**
319
- * Cursor string pointing to the next page in the list of results.
320
- * @maxLength 16000
321
- */
322
- next?: string | null;
323
- /**
324
- * Cursor pointing to the previous page in the list of results.
325
- * @maxLength 16000
326
- */
327
- prev?: string | null;
328
- }
329
-
330
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
331
- getUrl: (context: any) => string;
332
- httpMethod: K;
333
- path: string;
334
- pathParams: M;
335
- __requestType: T;
336
- __originalRequestType: S;
337
- __responseType: Q;
338
- __originalResponseType: R;
339
- };
340
- declare function getTransaction(): __PublicMethodMetaInfo<'GET', {
341
- transactionId: string;
342
- }, GetTransactionRequest$1, GetTransactionRequest, GetTransactionResponse$1, GetTransactionResponse>;
343
- declare function queryTransactions(): __PublicMethodMetaInfo<'POST', {}, QueryTransactionsRequest$1, QueryTransactionsRequest, QueryTransactionsResponse$1, QueryTransactionsResponse>;
344
-
345
- export { type __PublicMethodMetaInfo, getTransaction, queryTransactions };
package/build/meta.d.ts DELETED
@@ -1,345 +0,0 @@
1
- import { G as GetTransactionRequest$1, p as GetTransactionResponse$1, Q as QueryTransactionsRequest$1, u as QueryTransactionsResponse$1 } from './benefit-programs-v1-transaction-transactions.universal-DjQc6kgD.js';
2
-
3
- interface Transaction {
4
- /**
5
- * Transaction ID.
6
- * @format GUID
7
- * @readonly
8
- */
9
- id?: string | null;
10
- /**
11
- * Revision number, which increments by 1 each time the transaction is updated.
12
- * @readonly
13
- */
14
- revision?: string | null;
15
- /**
16
- * Date and time the transaction was created.
17
- * @readonly
18
- */
19
- createdDate?: Date | null;
20
- /**
21
- * Date and time the transaction was updated.
22
- * @readonly
23
- */
24
- updatedDate?: Date | null;
25
- /**
26
- * Pool associated with this transaction.
27
- * @readonly
28
- */
29
- pool?: PoolInfo;
30
- /**
31
- * Amount the balance was adjusted in this transaction.
32
- * @decimalValue options { gte:0, maxScale:4 }
33
- */
34
- amount?: string;
35
- /** Where the credits came from. */
36
- source?: BalanceType;
37
- /** Where the credits went to. */
38
- target?: BalanceType;
39
- /**
40
- * Unique identifier, generated by the client.
41
- * Used to recognize repeated attempts to make the same request.
42
- * @maxLength 200
43
- * @readonly
44
- */
45
- idempotencyKey?: string;
46
- /**
47
- * 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.
48
- * @format GUID
49
- * @readonly
50
- */
51
- relatedTransactionId?: string | null;
52
- /**
53
- * Beneficiary of the pool associated with this transaction.
54
- * @readonly
55
- * @immutable
56
- */
57
- beneficiary?: CommonIdentificationData;
58
- /**
59
- * Identity that created the transaction.
60
- * @readonly
61
- * @immutable
62
- */
63
- instructingParty?: CommonIdentificationData;
64
- /** Transaction status. */
65
- status?: TransactionStatus;
66
- /**
67
- * Additional transaction details.
68
- * @readonly
69
- */
70
- details?: TransactionDetails;
71
- /**
72
- * Custom field data for the transaction object.
73
- *
74
- * [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.
75
- */
76
- extendedFields?: ExtendedFields;
77
- }
78
- interface PoolInfo {
79
- /**
80
- * Pool ID.
81
- * @format GUID
82
- * @readonly
83
- */
84
- id?: string;
85
- /**
86
- * ID of the pool definition the pool was created from.
87
- * @format GUID
88
- * @readonly
89
- */
90
- poolDefinitionId?: string | null;
91
- /**
92
- * ID of the program definition containing the pool definition the pool was created from.
93
- * @format GUID
94
- * @readonly
95
- */
96
- programDefinitionId?: string | null;
97
- /**
98
- * ID of the program that contains the pool.
99
- * @format GUID
100
- * @readonly
101
- */
102
- programId?: string | null;
103
- /**
104
- * Available credits.
105
- * @decimalValue options { gte:0, maxScale:4 }
106
- */
107
- creditAmount?: string | null;
108
- /**
109
- * 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.
110
- * @minLength 1
111
- * @maxLength 50
112
- */
113
- namespace?: string | null;
114
- }
115
- declare enum BalanceType {
116
- UNDEFINED = "UNDEFINED",
117
- /** In a pool's balance. */
118
- AVAILABLE = "AVAILABLE",
119
- /** Outside a pool's balance. */
120
- EXTERNAL = "EXTERNAL"
121
- }
122
- interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
123
- /**
124
- * ID of a site visitor that hasn't logged in to the site.
125
- * @format GUID
126
- */
127
- anonymousVisitorId?: string;
128
- /**
129
- * ID of a site member.
130
- * @format GUID
131
- */
132
- memberId?: string;
133
- /**
134
- * ID of a Wix user.
135
- * @format GUID
136
- */
137
- wixUserId?: string;
138
- }
139
- /** @oneof */
140
- interface CommonIdentificationDataIdOneOf {
141
- /**
142
- * ID of a site visitor that hasn't logged in to the site.
143
- * @format GUID
144
- */
145
- anonymousVisitorId?: string;
146
- /**
147
- * ID of a site member.
148
- * @format GUID
149
- */
150
- memberId?: string;
151
- /**
152
- * ID of a Wix user.
153
- * @format GUID
154
- */
155
- wixUserId?: string;
156
- }
157
- declare enum TransactionStatus {
158
- UNDEFINED = "UNDEFINED",
159
- /** Transaction is pending. This is the initial transaction status. */
160
- PENDING = "PENDING",
161
- /** Transaction completed successfully. */
162
- COMPLETED = "COMPLETED",
163
- /** Transaction failed. */
164
- FAILED = "FAILED"
165
- }
166
- interface TransactionDetails {
167
- /**
168
- * Item associated with the transaction.
169
- * @readonly
170
- */
171
- item?: Item;
172
- /** Amount of items associated with the transaction. */
173
- itemCount?: number | null;
174
- /**
175
- * Date and time the transaction was created.
176
- * @readonly
177
- */
178
- effectiveDate?: Date | null;
179
- /**
180
- * Reason for the transaction. For example, `Redemption`.
181
- * @readonly
182
- * @maxLength 256
183
- */
184
- reason?: string | null;
185
- }
186
- interface Item {
187
- /**
188
- * Item ID.
189
- * @format GUID
190
- * @readonly
191
- */
192
- id?: string | null;
193
- /**
194
- * Item external ID.
195
- * @format GUID
196
- * @readonly
197
- */
198
- externalId?: string | null;
199
- /**
200
- * Item category.
201
- * @maxLength 20
202
- * @readonly
203
- */
204
- category?: string | null;
205
- /**
206
- * Item set ID.
207
- * @format GUID
208
- * @readonly
209
- */
210
- itemSetId?: string | null;
211
- /**
212
- * Item name.
213
- * @maxLength 64
214
- * @readonly
215
- */
216
- displayName?: string | null;
217
- }
218
- interface ExtendedFields {
219
- /**
220
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
221
- * The value of each key is structured according to the schema defined when the extended fields were configured.
222
- *
223
- * You can only access fields for which you have the appropriate permissions.
224
- *
225
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
226
- */
227
- namespaces?: Record<string, Record<string, any>>;
228
- }
229
- interface GetTransactionRequest {
230
- /**
231
- * ID of the transaction to retrieve.
232
- * @format GUID
233
- */
234
- transactionId: string;
235
- }
236
- interface GetTransactionResponse {
237
- /** Retrieved transaction. */
238
- transaction?: Transaction;
239
- }
240
- interface QueryTransactionsRequest {
241
- /** Filter, sort, and paging to apply to the query. */
242
- query: CursorQuery;
243
- }
244
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
245
- /** 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`. */
246
- cursorPaging?: CursorPaging;
247
- /**
248
- * Filter object.
249
- * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
250
- * for more information.
251
- */
252
- filter?: Record<string, any> | null;
253
- /**
254
- * List of sort objects.
255
- * @maxSize 5
256
- */
257
- sort?: Sorting[];
258
- }
259
- /** @oneof */
260
- interface CursorQueryPagingMethodOneOf {
261
- /** 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`. */
262
- cursorPaging?: CursorPaging;
263
- }
264
- interface Sorting {
265
- /**
266
- * Field to sort by.
267
- * @maxLength 512
268
- */
269
- fieldName?: string;
270
- /**
271
- * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
272
- *
273
- * Default: `ASC`
274
- */
275
- order?: SortOrder;
276
- }
277
- declare enum SortOrder {
278
- /** Ascending sort order. */
279
- ASC = "ASC",
280
- /** Descending sort order. */
281
- DESC = "DESC"
282
- }
283
- interface CursorPaging {
284
- /**
285
- * Maximum number of items to return.
286
- * @max 100
287
- */
288
- limit?: number | null;
289
- /**
290
- * Pointer to the next or previous page in the list of results.
291
- *
292
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
293
- * Not relevant for the first request.
294
- * @maxLength 16000
295
- */
296
- cursor?: string | null;
297
- }
298
- interface QueryTransactionsResponse {
299
- /** List of retrieved transactions. */
300
- transactions?: Transaction[];
301
- /** Metadata for paginated results. */
302
- metadata?: CursorPagingMetadata;
303
- }
304
- interface CursorPagingMetadata {
305
- /** Number of items returned in the response. */
306
- count?: number | null;
307
- /** Cursor strings that point to the next page, previous page, or both. */
308
- cursors?: Cursors;
309
- /**
310
- * Whether there are more pages to retrieve following the current page.
311
- *
312
- * + `true`: Another page of results can be retrieved.
313
- * + `false`: This is the last page.
314
- */
315
- hasNext?: boolean | null;
316
- }
317
- interface Cursors {
318
- /**
319
- * Cursor string pointing to the next page in the list of results.
320
- * @maxLength 16000
321
- */
322
- next?: string | null;
323
- /**
324
- * Cursor pointing to the previous page in the list of results.
325
- * @maxLength 16000
326
- */
327
- prev?: string | null;
328
- }
329
-
330
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
331
- getUrl: (context: any) => string;
332
- httpMethod: K;
333
- path: string;
334
- pathParams: M;
335
- __requestType: T;
336
- __originalRequestType: S;
337
- __responseType: Q;
338
- __originalResponseType: R;
339
- };
340
- declare function getTransaction(): __PublicMethodMetaInfo<'GET', {
341
- transactionId: string;
342
- }, GetTransactionRequest$1, GetTransactionRequest, GetTransactionResponse$1, GetTransactionResponse>;
343
- declare function queryTransactions(): __PublicMethodMetaInfo<'POST', {}, QueryTransactionsRequest$1, QueryTransactionsRequest, QueryTransactionsResponse$1, QueryTransactionsResponse>;
344
-
345
- export { type __PublicMethodMetaInfo, getTransaction, queryTransactions };