@wix/auto_sdk_benefit-programs_transactions 1.0.1 → 1.0.3

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 (45) hide show
  1. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +6 -4
  2. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js +6 -4
  3. package/build/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +1 -1
  4. package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +7 -5
  5. package/build/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +1 -1
  6. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +159 -60
  7. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js +4 -6
  8. package/build/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
  9. package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts +170 -65
  10. package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +15 -11
  11. package/build/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
  12. package/build/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +6 -4
  13. package/build/es/src/benefit-programs-v1-transaction-transactions.http.js +6 -4
  14. package/build/es/src/benefit-programs-v1-transaction-transactions.http.js.map +1 -1
  15. package/build/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +7 -5
  16. package/build/es/src/benefit-programs-v1-transaction-transactions.public.js.map +1 -1
  17. package/build/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +159 -60
  18. package/build/es/src/benefit-programs-v1-transaction-transactions.types.js +4 -6
  19. package/build/es/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
  20. package/build/es/src/benefit-programs-v1-transaction-transactions.universal.d.ts +170 -65
  21. package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js +15 -11
  22. package/build/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
  23. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.d.ts +6 -4
  24. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js +6 -4
  25. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.http.js.map +1 -1
  26. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.d.ts +7 -5
  27. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.public.js.map +1 -1
  28. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.d.ts +159 -60
  29. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js +4 -6
  30. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
  31. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.d.ts +170 -65
  32. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js +15 -11
  33. package/build/internal/cjs/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
  34. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.d.ts +6 -4
  35. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js +6 -4
  36. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.http.js.map +1 -1
  37. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.d.ts +7 -5
  38. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.public.js.map +1 -1
  39. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.d.ts +159 -60
  40. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js +4 -6
  41. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.types.js.map +1 -1
  42. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.d.ts +170 -65
  43. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js +15 -11
  44. package/build/internal/es/src/benefit-programs-v1-transaction-transactions.universal.js.map +1 -1
  45. package/package.json +2 -2
@@ -4,12 +4,14 @@ export declare function getTransaction(payload: object): RequestOptionsFactory<a
4
4
  /**
5
5
  * Creates a query to retrieve a list of transactions.
6
6
  *
7
- * The `queryTransactions()` method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
7
+ * The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
8
8
  *
9
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/transactions/transactions-query-builder/find) function.
9
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
10
10
  *
11
- * You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryTransactions()` returns.
11
+ * You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Transactions returns.
12
12
  *
13
- * The following `TransactionsQueryBuilder` functions are supported for `queryTransactions()`. For a full description of the transaction object, see the object returned for the [`items`](/transactions/transactions-query-result/items) property in `TransactionsQueryResult`.
13
+ * Query Transactions has a default paging limit of 50, which you can override.
14
+ *
15
+ * For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.
14
16
  */
15
17
  export declare function queryTransactions(payload: object): RequestOptionsFactory<any>;
@@ -116,13 +116,15 @@ exports.getTransaction = getTransaction;
116
116
  /**
117
117
  * Creates a query to retrieve a list of transactions.
118
118
  *
119
- * The `queryTransactions()` method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
119
+ * The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
120
120
  *
121
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/transactions/transactions-query-builder/find) function.
121
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
122
122
  *
123
- * You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryTransactions()` returns.
123
+ * You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Transactions returns.
124
124
  *
125
- * The following `TransactionsQueryBuilder` functions are supported for `queryTransactions()`. For a full description of the transaction object, see the object returned for the [`items`](/transactions/transactions-query-result/items) property in `TransactionsQueryResult`.
125
+ * Query Transactions has a default paging limit of 50, which you can override.
126
+ *
127
+ * For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.
126
128
  */
127
129
  function queryTransactions(payload) {
128
130
  function __queryTransactions({ host }) {
@@ -1 +1 @@
1
- {"version":3,"file":"benefit-programs-v1-transaction-transactions.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kBAAkB;aAC7B;YACD;gBACE,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,uBAAuB;aAClC;SACF;Q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,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA/BD,wCA+BC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,iBAAiB,CAAC,OAAe;IAC/C,SAAS,mBAAmB,CAAC,EAAE,IAAI,EAAO;QACxC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,qCAAqC;YACjD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,0EAA0E;YAC5E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE,wBAAwB;gBACnC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,0BAA0B,EAAE;wBACpC,EAAE,IAAI,EAAE,0BAA0B,EAAE;wBACpC,EAAE,IAAI,EAAE,oCAAoC,EAAE;qBAC/C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AA/BD,8CA+BC"}
1
+ {"version":3,"file":"benefit-programs-v1-transaction-transactions.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,2DAA2D,CAClE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,kB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wBACpC,EAAE,IAAI,EAAE,oCAAoC,EAAE;qBAC/C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AA/BD,8CA+BC"}
@@ -7,7 +7,7 @@ export declare function getTransaction(httpClient: HttpClient): GetTransactionSi
7
7
  interface GetTransactionSignature {
8
8
  /**
9
9
  * Retrieves a transaction.
10
- * @param - Id of the transaction to retrieve.
10
+ * @param - ID of the transaction to retrieve.
11
11
  * @returns Retrieved transaction.
12
12
  */
13
13
  (transactionId: string): Promise<Transaction & TransactionNonNullableFields>;
@@ -17,13 +17,15 @@ interface QueryTransactionsSignature {
17
17
  /**
18
18
  * Creates a query to retrieve a list of transactions.
19
19
  *
20
- * The `queryTransactions()` method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
20
+ * The Query Transactions method builds a query to retrieve a list of transactions and returns a `TransactionsQueryBuilder` object.
21
21
  *
22
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/transactions/transactions-query-builder/find) function.
22
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
23
23
  *
24
- * You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryTransactions()` returns.
24
+ * You can refine the query by chaining `TransactionsQueryBuilder` methods onto the query. `TransactionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Transactions returns.
25
25
  *
26
- * The following `TransactionsQueryBuilder` functions are supported for `queryTransactions()`. For a full description of the transaction object, see the object returned for the [`items`](/transactions/transactions-query-result/items) property in `TransactionsQueryResult`.
26
+ * Query Transactions has a default paging limit of 50, which you can override.
27
+ *
28
+ * For a full description of the item object, see the object returned for the `items` property in `TransactionsQueryResult`.
27
29
  */
28
30
  (): TransactionsQueryBuilder;
29
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"benefit-programs-v1-transaction-transactions.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.public.ts"],"names":[],"mappings":";;;AACA,2IAMqE;AAExD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,aAAqB,EAAE,EAAE,CAC/B,IAAA,0EAAuB,EACrB,aAAa;IACb,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AAWD,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,6EAA0B;IACxB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAiBD,yIAmDqE;AAhDnE,wJAAA,WAAW,OAAA;AA2BX,yJAAA,YAAY,OAAA;AAUZ,sJAAA,SAAS,OAAA;AAKT,8JAAA,iBAAiB,OAAA;AAKjB,gKAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"benefit-programs-v1-transaction-transactions.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.public.ts"],"names":[],"mappings":";;;AACA,2IAMqE;AAExD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,aAAqB,EAAE,EAAE,CAC/B,IAAA,0EAAuB,EACrB,aAAa;IACb,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AAWD,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,6EAA0B;IACxB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAmBD,yIAmDqE;AAhDnE,wJAAA,WAAW,OAAA;AA2BX,yJAAA,YAAY,OAAA;AAUZ,sJAAA,SAAS,OAAA;AAKT,8JAAA,iBAAiB,OAAA;AAKjB,gKAAA,mBAAmB,OAAA"}
@@ -1,6 +1,7 @@
1
1
  export interface Transaction {
2
2
  /**
3
3
  * Transaction ID.
4
+ * @format GUID
4
5
  * @readonly
5
6
  */
6
7
  id?: string | null;
@@ -20,42 +21,43 @@ export interface Transaction {
20
21
  */
21
22
  updatedDate?: Date | null;
22
23
  /**
23
- * The benefit pool associated with the balance object.
24
+ * Pool associated with this transaction.
24
25
  * @readonly
25
26
  */
26
27
  pool?: PoolInfo;
27
- /** Absolute amount to adjust the balance with. This field is determined by the source and target balances. */
28
+ /**
29
+ * Amount to adjust the balance in this transaction.
30
+ * @decimalValue options { gte:0, maxScale:4 }
31
+ */
28
32
  amount?: string;
29
- /** Source balance. */
33
+ /** Where the credits came from. */
30
34
  source?: BalanceType;
31
- /** Target balance. */
35
+ /** Where the credits went to. */
32
36
  target?: BalanceType;
33
37
  /**
34
38
  * Unique identifier, generated by the client.
35
39
  * Used to recognize repeated attempts to make the same request.
40
+ * @maxLength 200
36
41
  * @readonly
37
42
  */
38
43
  idempotencyKey?: string;
39
44
  /**
40
- * Related transaction ID. For example, in the case of a cancelled reservation, the related transaction is the benefit redemption.
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
41
47
  * @readonly
42
48
  */
43
49
  relatedTransactionId?: string | null;
44
50
  /**
45
- * Identity of the individual that enrolled in the program associated with this benefit transaction.
51
+ * Beneficiary of the pool associated with this transaction.
46
52
  * @readonly
47
53
  */
48
54
  beneficiary?: CommonIdentificationData;
49
55
  /**
50
- * The identity that created this transaction.
56
+ * Identity that created the transaction.
51
57
  * @readonly
52
58
  */
53
59
  instructingParty?: CommonIdentificationData;
54
- /**
55
- * Transaction status.
56
- *
57
- * `PENDING` is the initial status of a transaction. After the balance is updated, the status changes to `COMPLETED` if the transaction was successful, or `FAILED`, if the balance update fails.
58
- */
60
+ /** Transaction status. */
59
61
  status?: TransactionStatus;
60
62
  /**
61
63
  * Additional transaction details.
@@ -65,60 +67,87 @@ export interface Transaction {
65
67
  /**
66
68
  * Custom field data for the transaction object.
67
69
  *
68
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
70
+ * [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.
69
71
  */
70
72
  extendedFields?: ExtendedFields;
71
73
  }
72
74
  export interface PoolInfo {
73
75
  /**
74
- * Benefit pool ID.
76
+ * Pool ID.
77
+ * @format GUID
75
78
  * @readonly
76
79
  */
77
80
  id?: string;
78
81
  /**
79
- * Pool definition ID from which this benefit pool was instantiated.
82
+ * ID of the pool definition the pool was created from.
83
+ * @format GUID
80
84
  * @readonly
81
85
  */
82
86
  poolDefinitionId?: string | null;
83
87
  /**
84
- * ID for the program definition from which this benefit pool was provisioned.
88
+ * ID of the program definition the pool was created from.
89
+ * @format GUID
85
90
  * @readonly
86
91
  */
87
92
  programDefinitionId?: string | null;
88
93
  /**
89
- * ID of the program to which this benefit pool belongs.
94
+ * ID of the program that contains the pool.
95
+ * @format GUID
90
96
  * @readonly
91
97
  */
92
98
  programId?: string | null;
93
- /** Total amount of credits available for this benefit pool. */
99
+ /**
100
+ * Available credits.
101
+ * @decimalValue options { gte:0, maxScale:4 }
102
+ */
94
103
  creditAmount?: string | null;
95
- /** The external system that is the source of the pool creation. For example, `wix-pricing-plans`, `wix-loyalty`. */
104
+ /**
105
+ * Namespace for your app or site's benefit programs.
106
+ * @minLength 1
107
+ * @maxLength 50
108
+ */
96
109
  namespace?: string | null;
97
110
  }
98
111
  export declare enum BalanceType {
99
112
  UNDEFINED = "UNDEFINED",
100
- /** Available balance. */
113
+ /** In a pool's balance. */
101
114
  AVAILABLE = "AVAILABLE",
102
- /** Reserved balance. */
103
- RESERVED = "RESERVED",
104
- /** External balance. */
115
+ /** Outside a pool's balance. */
105
116
  EXTERNAL = "EXTERNAL"
106
117
  }
107
118
  export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
108
- /** ID of a site visitor that has not logged in to the site. */
119
+ /**
120
+ * ID of a site visitor that hasn't logged in to the site.
121
+ * @format GUID
122
+ */
109
123
  anonymousVisitorId?: string;
110
- /** ID of a site visitor that has logged in to the site. */
124
+ /**
125
+ * ID of a site member.
126
+ * @format GUID
127
+ */
111
128
  memberId?: string;
112
- /** ID of a Wix user (site owner, contributor, etc.). */
129
+ /**
130
+ * ID of a Wix user.
131
+ * @format GUID
132
+ */
113
133
  wixUserId?: string;
114
134
  }
115
135
  /** @oneof */
116
136
  export interface CommonIdentificationDataIdOneOf {
117
- /** ID of a site visitor that has not logged in to the site. */
137
+ /**
138
+ * ID of a site visitor that hasn't logged in to the site.
139
+ * @format GUID
140
+ */
118
141
  anonymousVisitorId?: string;
119
- /** ID of a site visitor that has logged in to the site. */
142
+ /**
143
+ * ID of a site member.
144
+ * @format GUID
145
+ */
120
146
  memberId?: string;
121
- /** ID of a Wix user (site owner, contributor, etc.). */
147
+ /**
148
+ * ID of a Wix user.
149
+ * @format GUID
150
+ */
122
151
  wixUserId?: string;
123
152
  }
124
153
  export declare enum IdentityType {
@@ -133,53 +162,61 @@ export declare enum IdentityType {
133
162
  }
134
163
  export declare enum TransactionStatus {
135
164
  UNDEFINED = "UNDEFINED",
136
- /** Transaction is pending. */
165
+ /** Transaction is pending. This is the initial transaction status. */
137
166
  PENDING = "PENDING",
138
- /** Transaction completed. */
167
+ /** Transaction completed successfully. */
139
168
  COMPLETED = "COMPLETED",
140
169
  /** Transaction failed. */
141
170
  FAILED = "FAILED"
142
171
  }
143
172
  export interface TransactionDetails {
144
173
  /**
145
- * Item associated with the balance change.
146
- * The redemption of this item triggered the balance adjustment.
174
+ * Item associated with the transaction.
147
175
  * @readonly
148
176
  */
149
177
  item?: Item;
150
- /** Quantity of an item related to the balance change. */
178
+ /** Amount of items associated with the transaction. */
151
179
  itemCount?: number | null;
152
180
  /**
153
- * Date and time the transaction was made.
181
+ * Date and time the transaction was created.
154
182
  * @readonly
155
183
  */
156
184
  effectiveDate?: Date | null;
157
185
  /**
158
- * Reason for the transaction. For example, `Redemption` or `Manual adjustment`.
186
+ * Reason for the transaction. For example, `Redemption`.
159
187
  * @readonly
188
+ * @maxLength 256
160
189
  */
161
190
  reason?: string | null;
162
191
  }
163
192
  export interface Item {
164
193
  /**
165
194
  * Item ID.
195
+ * @format GUID
166
196
  * @readonly
167
197
  */
168
198
  id?: string | null;
169
199
  /**
170
- * External item ID.
200
+ * Item external ID.
201
+ * @format GUID
171
202
  * @readonly
172
203
  */
173
204
  externalId?: string | null;
174
205
  /**
175
- * Item category. Distinguishes between different types of items. For example, `posts`, `groups`, `events`.
206
+ * Item category.
207
+ * @maxLength 20
176
208
  * @readonly
177
209
  */
178
210
  category?: string | null;
179
- /** @readonly */
211
+ /**
212
+ * Item set ID.
213
+ * @format GUID
214
+ * @readonly
215
+ */
180
216
  itemSetId?: string | null;
181
217
  /**
182
- * Item display name.
218
+ * Item name.
219
+ * @maxLength 64
183
220
  * @readonly
184
221
  */
185
222
  displayName?: string | null;
@@ -204,7 +241,11 @@ export interface CreateTransactionResponse {
204
241
  transaction?: Transaction;
205
242
  }
206
243
  export interface BulkCreateTransactionsRequest {
207
- /** Transactions to be created. */
244
+ /**
245
+ * Transactions to be created.
246
+ * @minSize 1
247
+ * @maxSize 100
248
+ */
208
249
  transactions?: Transaction[];
209
250
  /**
210
251
  * Whether to return the full item entities.
@@ -218,6 +259,8 @@ export interface BulkCreateTransactionsResponse {
218
259
  * List of results for each transaction.
219
260
  *
220
261
  * Includes the transaction and whether the operation was successful.
262
+ * @minSize 1
263
+ * @maxSize 100
221
264
  */
222
265
  results?: BulkTransactionResult[];
223
266
  /** Bulk action metadata. */
@@ -230,7 +273,10 @@ export interface BulkTransactionResult {
230
273
  transaction?: Transaction;
231
274
  }
232
275
  export interface ItemMetadata {
233
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
276
+ /**
277
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
278
+ * @format GUID
279
+ */
234
280
  id?: string | null;
235
281
  /** Index of the item within the request array. Allows for correlation between request and response items. */
236
282
  originalIndex?: number;
@@ -264,7 +310,11 @@ export interface UpdateTransactionResponse {
264
310
  transaction?: Transaction;
265
311
  }
266
312
  export interface BulkUpdateTransactionsRequest {
267
- /** Transactions to update. */
313
+ /**
314
+ * Transactions to update.
315
+ * @minSize 1
316
+ * @maxSize 100
317
+ */
268
318
  transactions?: MaskedTransaction[];
269
319
  /**
270
320
  * Whether to return full transaction entities.
@@ -284,13 +334,18 @@ export interface BulkUpdateTransactionsResponse {
284
334
  * List of results for each Transaction.
285
335
  *
286
336
  * Includes the Transaction and whether the update was successful.
337
+ * @minSize 1
338
+ * @maxSize 100
287
339
  */
288
340
  results?: BulkTransactionResult[];
289
341
  /** Bulk action metadata. */
290
342
  bulkActionMetadata?: BulkActionMetadata;
291
343
  }
292
344
  export interface GetTransactionRequest {
293
- /** Id of the transaction to retrieve. */
345
+ /**
346
+ * ID of the transaction to retrieve.
347
+ * @format GUID
348
+ */
294
349
  transactionId: string;
295
350
  }
296
351
  export interface GetTransactionResponse {
@@ -298,7 +353,7 @@ export interface GetTransactionResponse {
298
353
  transaction?: Transaction;
299
354
  }
300
355
  export interface QueryTransactionsRequest {
301
- /** Query to select transactions. */
356
+ /** Filter, sort, and paging to apply to the query. */
302
357
  query: CursorQuery;
303
358
  }
304
359
  export interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -316,6 +371,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
316
371
  /**
317
372
  * Sort object in the following format:
318
373
  * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
374
+ * @maxSize 5
319
375
  */
320
376
  sort?: Sorting[];
321
377
  }
@@ -325,7 +381,10 @@ export interface CursorQueryPagingMethodOneOf {
325
381
  cursorPaging?: CursorPaging;
326
382
  }
327
383
  export interface Sorting {
328
- /** Name of the field to sort by. */
384
+ /**
385
+ * Name of the field to sort by.
386
+ * @maxLength 512
387
+ */
329
388
  fieldName?: string;
330
389
  /** Sort order. */
331
390
  order?: SortOrder;
@@ -337,18 +396,22 @@ export declare enum SortOrder {
337
396
  DESC = "DESC"
338
397
  }
339
398
  export interface CursorPaging {
340
- /** Maximum number of items to return in the results. */
399
+ /**
400
+ * Maximum number of items to return in the results.
401
+ * @max 100
402
+ */
341
403
  limit?: number | null;
342
404
  /**
343
405
  * Pointer to the next or previous page in the list of results.
344
406
  *
345
407
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
346
408
  * Not relevant for the first request.
409
+ * @maxLength 16000
347
410
  */
348
411
  cursor?: string | null;
349
412
  }
350
413
  export interface QueryTransactionsResponse {
351
- /** The retrieved transactions. */
414
+ /** List of retrieved transactions. */
352
415
  transactions?: Transaction[];
353
416
  /** Metadata for paginated results. */
354
417
  metadata?: CursorPagingMetadata;
@@ -367,9 +430,15 @@ export interface CursorPagingMetadata {
367
430
  hasNext?: boolean | null;
368
431
  }
369
432
  export interface Cursors {
370
- /** Cursor string pointing to the next page in the list of results. */
433
+ /**
434
+ * Cursor string pointing to the next page in the list of results.
435
+ * @maxLength 16000
436
+ */
371
437
  next?: string | null;
372
- /** Cursor pointing to the previous page in the list of results. */
438
+ /**
439
+ * Cursor pointing to the previous page in the list of results.
440
+ * @maxLength 16000
441
+ */
373
442
  prev?: string | null;
374
443
  }
375
444
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -445,9 +514,15 @@ export interface ActionEvent {
445
514
  bodyAsJson?: string;
446
515
  }
447
516
  export interface MessageEnvelope {
448
- /** App instance ID. */
517
+ /**
518
+ * App instance ID.
519
+ * @format GUID
520
+ */
449
521
  instanceId?: string | null;
450
- /** Event type. */
522
+ /**
523
+ * Event type.
524
+ * @maxLength 150
525
+ */
451
526
  eventType?: string;
452
527
  /** The identification type and identity data. */
453
528
  identity?: IdentificationData;
@@ -455,26 +530,50 @@ export interface MessageEnvelope {
455
530
  data?: string;
456
531
  }
457
532
  export interface IdentificationData extends IdentificationDataIdOneOf {
458
- /** ID of a site visitor that has not logged in to the site. */
533
+ /**
534
+ * ID of a site visitor that has not logged in to the site.
535
+ * @format GUID
536
+ */
459
537
  anonymousVisitorId?: string;
460
- /** ID of a site visitor that has logged in to the site. */
538
+ /**
539
+ * ID of a site visitor that has logged in to the site.
540
+ * @format GUID
541
+ */
461
542
  memberId?: string;
462
- /** ID of a Wix user (site owner, contributor, etc.). */
543
+ /**
544
+ * ID of a Wix user (site owner, contributor, etc.).
545
+ * @format GUID
546
+ */
463
547
  wixUserId?: string;
464
- /** ID of an app. */
548
+ /**
549
+ * ID of an app.
550
+ * @format GUID
551
+ */
465
552
  appId?: string;
466
553
  /** @readonly */
467
554
  identityType?: WebhookIdentityType;
468
555
  }
469
556
  /** @oneof */
470
557
  export interface IdentificationDataIdOneOf {
471
- /** ID of a site visitor that has not logged in to the site. */
558
+ /**
559
+ * ID of a site visitor that has not logged in to the site.
560
+ * @format GUID
561
+ */
472
562
  anonymousVisitorId?: string;
473
- /** ID of a site visitor that has logged in to the site. */
563
+ /**
564
+ * ID of a site visitor that has logged in to the site.
565
+ * @format GUID
566
+ */
474
567
  memberId?: string;
475
- /** ID of a Wix user (site owner, contributor, etc.). */
568
+ /**
569
+ * ID of a Wix user (site owner, contributor, etc.).
570
+ * @format GUID
571
+ */
476
572
  wixUserId?: string;
477
- /** ID of an app. */
573
+ /**
574
+ * ID of an app.
575
+ * @format GUID
576
+ */
478
577
  appId?: string;
479
578
  }
480
579
  export declare enum WebhookIdentityType {
@@ -4,11 +4,9 @@ exports.WebhookIdentityType = exports.SortOrder = exports.TransactionStatus = ex
4
4
  var BalanceType;
5
5
  (function (BalanceType) {
6
6
  BalanceType["UNDEFINED"] = "UNDEFINED";
7
- /** Available balance. */
7
+ /** In a pool's balance. */
8
8
  BalanceType["AVAILABLE"] = "AVAILABLE";
9
- /** Reserved balance. */
10
- BalanceType["RESERVED"] = "RESERVED";
11
- /** External balance. */
9
+ /** Outside a pool's balance. */
12
10
  BalanceType["EXTERNAL"] = "EXTERNAL";
13
11
  })(BalanceType || (exports.BalanceType = BalanceType = {}));
14
12
  var IdentityType;
@@ -25,9 +23,9 @@ var IdentityType;
25
23
  var TransactionStatus;
26
24
  (function (TransactionStatus) {
27
25
  TransactionStatus["UNDEFINED"] = "UNDEFINED";
28
- /** Transaction is pending. */
26
+ /** Transaction is pending. This is the initial transaction status. */
29
27
  TransactionStatus["PENDING"] = "PENDING";
30
- /** Transaction completed. */
28
+ /** Transaction completed successfully. */
31
29
  TransactionStatus["COMPLETED"] = "COMPLETED";
32
30
  /** Transaction failed. */
33
31
  TransactionStatus["FAILED"] = "FAILED";
@@ -1 +1 @@
1
- {"version":3,"file":"benefit-programs-v1-transaction-transactions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.types.ts"],"names":[],"mappings":";;;AAmGA,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,yBAAyB;IACzB,sCAAuB,CAAA;IACvB,wBAAwB;IACxB,oCAAqB,CAAA;IACrB,wBAAwB;IACxB,oCAAqB,CAAA;AACvB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB;AAsBD,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,8BAA8B;IAC9B,wCAAmB,CAAA;IACnB,6BAA6B;IAC7B,4CAAuB,CAAA;IACvB,0BAA0B;IAC1B,sCAAiB,CAAA;AACnB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAsND,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA6JD,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"}
1
+ {"version":3,"file":"benefit-programs-v1-transaction-transactions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-transaction-transactions.types.ts"],"names":[],"mappings":";;;AAgHA,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;AAoPD,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"}