@wix/auto_sdk_benefit-programs_pools 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/benefit-programs-v1-pool-pools.http.d.ts +21 -18
- package/build/cjs/src/benefit-programs-v1-pool-pools.http.js +21 -18
- package/build/cjs/src/benefit-programs-v1-pool-pools.http.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.public.d.ts +22 -21
- package/build/cjs/src/benefit-programs-v1-pool-pools.public.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.types.d.ts +170 -264
- package/build/cjs/src/benefit-programs-v1-pool-pools.types.js +20 -28
- package/build/cjs/src/benefit-programs-v1-pool-pools.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-pool-pools.universal.d.ts +228 -356
- package/build/cjs/src/benefit-programs-v1-pool-pools.universal.js +42 -49
- package/build/cjs/src/benefit-programs-v1-pool-pools.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-pool-pools.http.d.ts +21 -18
- package/build/es/src/benefit-programs-v1-pool-pools.http.js +21 -18
- package/build/es/src/benefit-programs-v1-pool-pools.http.js.map +1 -1
- package/build/es/src/benefit-programs-v1-pool-pools.public.d.ts +22 -21
- package/build/es/src/benefit-programs-v1-pool-pools.public.js.map +1 -1
- package/build/es/src/benefit-programs-v1-pool-pools.types.d.ts +170 -264
- package/build/es/src/benefit-programs-v1-pool-pools.types.js +20 -28
- package/build/es/src/benefit-programs-v1-pool-pools.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-pool-pools.universal.d.ts +228 -356
- package/build/es/src/benefit-programs-v1-pool-pools.universal.js +42 -49
- package/build/es/src/benefit-programs-v1-pool-pools.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.http.d.ts +21 -18
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.http.js +21 -18
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.http.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.public.d.ts +22 -21
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.public.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.types.d.ts +170 -264
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.types.js +20 -28
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.universal.d.ts +228 -356
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.universal.js +42 -49
- package/build/internal/cjs/src/benefit-programs-v1-pool-pools.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.http.d.ts +21 -18
- package/build/internal/es/src/benefit-programs-v1-pool-pools.http.js +21 -18
- package/build/internal/es/src/benefit-programs-v1-pool-pools.http.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.public.d.ts +22 -21
- package/build/internal/es/src/benefit-programs-v1-pool-pools.public.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.types.d.ts +170 -264
- package/build/internal/es/src/benefit-programs-v1-pool-pools.types.js +20 -28
- package/build/internal/es/src/benefit-programs-v1-pool-pools.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-pool-pools.universal.d.ts +228 -356
- package/build/internal/es/src/benefit-programs-v1-pool-pools.universal.js +42 -49
- package/build/internal/es/src/benefit-programs-v1-pool-pools.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -24,45 +24,41 @@ export interface Pool {
|
|
|
24
24
|
*/
|
|
25
25
|
_updatedDate?: Date | null;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* ID of the associated pool definition.
|
|
28
28
|
* @format GUID
|
|
29
29
|
* @readonly
|
|
30
30
|
*/
|
|
31
31
|
poolDefinitionId?: string | null;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* ID of the associated program definition.
|
|
34
34
|
* @format GUID
|
|
35
35
|
* @readonly
|
|
36
36
|
*/
|
|
37
37
|
programDefinitionId?: string | null;
|
|
38
38
|
/**
|
|
39
|
-
* ID of the program
|
|
39
|
+
* ID of the program that contains this pool.
|
|
40
40
|
* @format GUID
|
|
41
41
|
* @readonly
|
|
42
42
|
*/
|
|
43
43
|
programId?: string | null;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Pool status.
|
|
46
46
|
* @readonly
|
|
47
47
|
*/
|
|
48
48
|
status?: PoolStatus;
|
|
49
|
-
/**
|
|
49
|
+
/** Pool beneficiary. */
|
|
50
50
|
beneficiary?: CommonIdentificationData;
|
|
51
|
-
/**
|
|
52
|
-
* Benefit pool information.
|
|
53
|
-
*
|
|
54
|
-
* Includes the item, policy, and credit configurations.
|
|
55
|
-
*/
|
|
51
|
+
/** Pool benefits and settings. */
|
|
56
52
|
details?: Details;
|
|
57
53
|
/**
|
|
58
54
|
* Pool name.
|
|
59
55
|
*
|
|
60
|
-
*
|
|
56
|
+
* You may want to use the same name that's used in the associated pool definition.
|
|
61
57
|
* @maxLength 64
|
|
62
58
|
*/
|
|
63
59
|
displayName?: string;
|
|
64
60
|
/**
|
|
65
|
-
*
|
|
61
|
+
* Namespace for your app or site's benefit programs.
|
|
66
62
|
* @immutable
|
|
67
63
|
* @minLength 1
|
|
68
64
|
* @maxLength 50
|
|
@@ -70,66 +66,58 @@ export interface Pool {
|
|
|
70
66
|
namespace?: string | null;
|
|
71
67
|
/**
|
|
72
68
|
* Custom field data for the pool object.
|
|
69
|
+
*
|
|
73
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.
|
|
74
71
|
*/
|
|
75
72
|
extendedFields?: ExtendedFields;
|
|
76
73
|
/**
|
|
77
|
-
*
|
|
74
|
+
* Associated program definition information.
|
|
78
75
|
* @readonly
|
|
79
76
|
*/
|
|
80
77
|
programDefinition?: ProgramDefinitionInfo;
|
|
81
78
|
/**
|
|
82
|
-
*
|
|
79
|
+
* Information about the program containing the pool.
|
|
83
80
|
* @readonly
|
|
84
81
|
*/
|
|
85
82
|
program?: PoolProgramInfo;
|
|
86
83
|
/**
|
|
87
|
-
* Version of the associated pool definition
|
|
88
|
-
*
|
|
89
|
-
* `poolDefinition.revision`.
|
|
84
|
+
* Version of the associated pool definition from which this pool was created.
|
|
90
85
|
* @readonly
|
|
91
86
|
*/
|
|
92
87
|
poolDefinitionRevision?: string | null;
|
|
93
88
|
/**
|
|
94
|
-
* Number of times this
|
|
89
|
+
* Number of times this pool has been renewed.
|
|
95
90
|
* @readonly
|
|
96
91
|
*/
|
|
97
92
|
renewalCount?: number | null;
|
|
98
93
|
}
|
|
99
94
|
export declare enum PoolStatus {
|
|
95
|
+
/** Undefined pool status. */
|
|
100
96
|
UNDEFINED = "UNDEFINED",
|
|
101
|
-
/**
|
|
97
|
+
/** Pool is active. */
|
|
102
98
|
ACTIVE = "ACTIVE",
|
|
103
|
-
/**
|
|
99
|
+
/** Pool is paused. It can be resumed. */
|
|
104
100
|
PAUSED = "PAUSED",
|
|
105
|
-
/**
|
|
106
|
-
* Inactive benefit pool.
|
|
107
|
-
*
|
|
108
|
-
* Benefits can't be redeemed or reserved.
|
|
109
|
-
*/
|
|
101
|
+
/** Pool is ended. It can't be resumed. */
|
|
110
102
|
ENDED = "ENDED",
|
|
111
|
-
/**
|
|
103
|
+
/** Pool is provisioning. This status will be true for a negligible amount of time. */
|
|
112
104
|
PROVISIONING = "PROVISIONING",
|
|
113
|
-
/**
|
|
114
|
-
* Process state of renewing the benefits.
|
|
115
|
-
* Typically at the start of a new benefit renewal cycle.
|
|
116
|
-
* Result of calling Renew Program API.
|
|
117
|
-
*/
|
|
105
|
+
/** Pool is renewing. This status will be true for a negligible amount of time. */
|
|
118
106
|
RENEWING = "RENEWING"
|
|
119
107
|
}
|
|
120
108
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
121
109
|
/**
|
|
122
|
-
* ID of a site visitor that
|
|
110
|
+
* ID of a site visitor that hasn't logged in to the site.
|
|
123
111
|
* @format GUID
|
|
124
112
|
*/
|
|
125
113
|
anonymousVisitorId?: string;
|
|
126
114
|
/**
|
|
127
|
-
* ID of a site
|
|
115
|
+
* ID of a site member.
|
|
128
116
|
* @format GUID
|
|
129
117
|
*/
|
|
130
118
|
memberId?: string;
|
|
131
119
|
/**
|
|
132
|
-
* ID of a Wix user
|
|
120
|
+
* ID of a Wix user.
|
|
133
121
|
* @format GUID
|
|
134
122
|
*/
|
|
135
123
|
wixUserId?: string;
|
|
@@ -137,17 +125,17 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
|
|
|
137
125
|
/** @oneof */
|
|
138
126
|
export interface CommonIdentificationDataIdOneOf {
|
|
139
127
|
/**
|
|
140
|
-
* ID of a site visitor that
|
|
128
|
+
* ID of a site visitor that hasn't logged in to the site.
|
|
141
129
|
* @format GUID
|
|
142
130
|
*/
|
|
143
131
|
anonymousVisitorId?: string;
|
|
144
132
|
/**
|
|
145
|
-
* ID of a site
|
|
133
|
+
* ID of a site member.
|
|
146
134
|
* @format GUID
|
|
147
135
|
*/
|
|
148
136
|
memberId?: string;
|
|
149
137
|
/**
|
|
150
|
-
* ID of a Wix user
|
|
138
|
+
* ID of a Wix user.
|
|
151
139
|
* @format GUID
|
|
152
140
|
*/
|
|
153
141
|
wixUserId?: string;
|
|
@@ -164,76 +152,49 @@ export declare enum IdentityType {
|
|
|
164
152
|
}
|
|
165
153
|
export interface Details {
|
|
166
154
|
/**
|
|
167
|
-
* Array of benefits
|
|
155
|
+
* Array of benefits.
|
|
168
156
|
* @maxSize 10
|
|
169
157
|
*/
|
|
170
158
|
benefits?: Benefit[];
|
|
171
159
|
/**
|
|
172
|
-
*
|
|
160
|
+
* Credit settings.
|
|
173
161
|
*
|
|
174
|
-
*
|
|
162
|
+
* If this object is empty, you can't set a price for the benefit.
|
|
175
163
|
*/
|
|
176
164
|
creditConfiguration?: CreditConfiguration;
|
|
177
|
-
/**
|
|
178
|
-
* Defines the redemption policy for a benefit pool. This includes specifying the days of the week and the hours during which the benefits can be redeemed.
|
|
179
|
-
*
|
|
180
|
-
* Policy types may be either:
|
|
181
|
-
*
|
|
182
|
-
* + FIXED INTERVALS: Specifies the timing during the day.
|
|
183
|
-
*
|
|
184
|
-
* + RATE LIMITED: Specifies how many times the benefit can be redeemed within a given renewal cycle.
|
|
185
|
-
*
|
|
186
|
-
* Each selected policy type must have its corresponding policy options. For example, the `fixedInterval` type requires `fixedIntervalOptions` to be included in the parameters.
|
|
187
|
-
*
|
|
188
|
-
* This parameter is the default policy for all the benefits in the benefit pool. It may be overridden for specific benefits in the `details.benefits.policyExpression` parameter.
|
|
189
|
-
*/
|
|
190
|
-
policyExpression?: PolicyExpression;
|
|
191
|
-
/** Additional info set by the benefit provider. */
|
|
165
|
+
/** Additional information relating to this object. */
|
|
192
166
|
additionalData?: Record<string, any> | null;
|
|
193
167
|
}
|
|
194
168
|
export interface Benefit {
|
|
195
169
|
/**
|
|
196
|
-
*
|
|
170
|
+
* Unique identifier for this benefit.
|
|
197
171
|
*
|
|
198
|
-
* This key is consistent across the pool definition and all
|
|
172
|
+
* This key is consistent across the pool definition and all associated pools that contain this benefit.
|
|
199
173
|
* @maxLength 64
|
|
200
174
|
*/
|
|
201
175
|
benefitKey?: string;
|
|
202
176
|
/**
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* This ID is returned when calling Create Item.
|
|
206
|
-
*
|
|
207
|
-
* It is used to link the specific benefit item to its corresponding location within the benefit pool, ensuring proper association between the item and the pool definition.
|
|
177
|
+
* ID that is used to associated items with this benefit.
|
|
208
178
|
* @format GUID
|
|
209
179
|
* @immutable
|
|
210
180
|
* @readonly
|
|
211
181
|
*/
|
|
212
182
|
itemSetId?: string | null;
|
|
213
183
|
/**
|
|
214
|
-
* Price of the benefit
|
|
215
|
-
* Represents the cost to redeem the benefit.
|
|
216
|
-
*
|
|
217
|
-
* Don't set a price if the `details.creditConfiguration` is empty. Since the benefits have an unlimited redemption limit, they can't have an associated price.
|
|
184
|
+
* Price of the benefit in credits. The price is the same for all of this benefit's items.
|
|
218
185
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
219
186
|
*/
|
|
220
187
|
price?: string | null;
|
|
221
|
-
/**
|
|
222
|
-
* Defines the redemption policy for a specific benefit. This includes specifying the days of the week and the hours during which the benefits can be redeemed.
|
|
223
|
-
*
|
|
224
|
-
* Overrides the default policies in `benefit.details`.
|
|
225
|
-
*/
|
|
226
|
-
policyExpression?: PolicyExpression;
|
|
227
|
-
/** Additional info that was set by the benefit provider. */
|
|
188
|
+
/** Additional information for this benefit. */
|
|
228
189
|
additionalData?: Record<string, any> | null;
|
|
229
190
|
/**
|
|
230
|
-
* ID of the app providing the benefit.
|
|
191
|
+
* ID of the app providing the benefit items.
|
|
231
192
|
* @format GUID
|
|
232
193
|
* @immutable
|
|
233
194
|
*/
|
|
234
195
|
providerAppId?: string | null;
|
|
235
196
|
/**
|
|
236
|
-
* Benefit
|
|
197
|
+
* Benefit name.
|
|
237
198
|
* @maxLength 40
|
|
238
199
|
*/
|
|
239
200
|
displayName?: string | null;
|
|
@@ -244,50 +205,46 @@ export interface Benefit {
|
|
|
244
205
|
description?: string | null;
|
|
245
206
|
}
|
|
246
207
|
export interface PolicyExpression extends PolicyExpressionExpressionOneOf {
|
|
247
|
-
/**
|
|
208
|
+
/** Benefits can be redeemed if the expression in this object is not fulfilled. */
|
|
248
209
|
operatorNotOptions?: PolicyExpressionNot;
|
|
249
|
-
/**
|
|
210
|
+
/** Benefits can be redeemed if all the expression in this object's array are fulfilled. */
|
|
250
211
|
operatorAndOptions?: PolicyExpressionAnd;
|
|
251
|
-
/**
|
|
212
|
+
/** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */
|
|
252
213
|
operatorOrOptions?: PolicyExpressionOr;
|
|
253
|
-
/** Defines
|
|
214
|
+
/** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */
|
|
254
215
|
policyOptions?: Policy;
|
|
255
|
-
/**
|
|
256
|
-
* Declare type of policy conditions or settings to use. Use together with the associated policy options to construct policy terms.
|
|
257
|
-
*
|
|
258
|
-
* Different operators can be used to combine multiple policy terms.
|
|
259
|
-
*/
|
|
216
|
+
/** Policy expression type. */
|
|
260
217
|
type?: PolicyExpressionType;
|
|
261
218
|
}
|
|
262
219
|
/** @oneof */
|
|
263
220
|
export interface PolicyExpressionExpressionOneOf {
|
|
264
|
-
/**
|
|
221
|
+
/** Benefits can be redeemed if the expression in this object is not fulfilled. */
|
|
265
222
|
operatorNotOptions?: PolicyExpressionNot;
|
|
266
|
-
/**
|
|
223
|
+
/** Benefits can be redeemed if all the expression in this object's array are fulfilled. */
|
|
267
224
|
operatorAndOptions?: PolicyExpressionAnd;
|
|
268
|
-
/**
|
|
225
|
+
/** Benefits can be redeemed if at least one of the expressions in this object's array is fulfilled. */
|
|
269
226
|
operatorOrOptions?: PolicyExpressionOr;
|
|
270
|
-
/** Defines
|
|
227
|
+
/** Defines when benefits can be redeemed or how many benefits can be redeemed in a specific time period. */
|
|
271
228
|
policyOptions?: Policy;
|
|
272
229
|
}
|
|
273
230
|
export declare enum PolicyExpressionType {
|
|
274
231
|
UNKNOWN = "UNKNOWN",
|
|
275
|
-
/** Use with
|
|
232
|
+
/** Use with `operatorNotOptions`. */
|
|
276
233
|
OPERATOR_NOT = "OPERATOR_NOT",
|
|
277
|
-
/** Use with
|
|
234
|
+
/** Use with `operatorAndOptions`. */
|
|
278
235
|
OPERATOR_AND = "OPERATOR_AND",
|
|
279
|
-
/** Use with
|
|
236
|
+
/** Use with `operatorOrOptions`. */
|
|
280
237
|
OPERATOR_OR = "OPERATOR_OR",
|
|
281
|
-
/** Use with
|
|
238
|
+
/** Use with `policyOptions`. */
|
|
282
239
|
POLICY = "POLICY"
|
|
283
240
|
}
|
|
284
241
|
export interface PolicyExpressionNot {
|
|
285
|
-
/**
|
|
242
|
+
/** Policy expression. If this expression is not fulfilled, benefits can be redeemed. */
|
|
286
243
|
expression?: PolicyExpression;
|
|
287
244
|
}
|
|
288
245
|
export interface PolicyExpressionAnd {
|
|
289
246
|
/**
|
|
290
|
-
*
|
|
247
|
+
* Array of policy expressions. If all expressions are fulfilled, benefits can be redeemed.
|
|
291
248
|
* @minSize 2
|
|
292
249
|
* @maxSize 10
|
|
293
250
|
*/
|
|
@@ -295,62 +252,71 @@ export interface PolicyExpressionAnd {
|
|
|
295
252
|
}
|
|
296
253
|
export interface PolicyExpressionOr {
|
|
297
254
|
/**
|
|
298
|
-
*
|
|
255
|
+
* Array of policy expressions. If at least one expression is fulfilled, benefits can be redeemed.
|
|
299
256
|
* @minSize 2
|
|
300
257
|
* @maxSize 10
|
|
301
258
|
*/
|
|
302
259
|
expressions?: PolicyExpression[];
|
|
303
260
|
}
|
|
304
261
|
export interface Policy extends PolicyPolicyOneOf {
|
|
305
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Defines an interval during which the policy expression is fulfilled.
|
|
264
|
+
*
|
|
265
|
+
* If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.
|
|
266
|
+
*/
|
|
306
267
|
fixedIntervalOptions?: FixedIntervalPolicy;
|
|
307
|
-
/**
|
|
268
|
+
/** Maximum amount of times a benefit can be redeemed during a specified time period. */
|
|
308
269
|
rateLimitedOptions?: RateLimitedPolicy;
|
|
309
|
-
/** Custom policy
|
|
270
|
+
/** Custom policy defined by a different app. */
|
|
310
271
|
customOptions?: CustomPolicy;
|
|
311
|
-
/**
|
|
272
|
+
/** Policy type. */
|
|
312
273
|
type?: Type;
|
|
313
274
|
}
|
|
314
275
|
/** @oneof */
|
|
315
276
|
export interface PolicyPolicyOneOf {
|
|
316
|
-
/**
|
|
277
|
+
/**
|
|
278
|
+
* Defines an interval during which the policy expression is fulfilled.
|
|
279
|
+
*
|
|
280
|
+
* If `fromWeekDay` and `toWeekDay` are defined, this interval applies weekly. Otherwise, it applies daily.
|
|
281
|
+
*/
|
|
317
282
|
fixedIntervalOptions?: FixedIntervalPolicy;
|
|
318
|
-
/**
|
|
283
|
+
/** Maximum amount of times a benefit can be redeemed during a specified time period. */
|
|
319
284
|
rateLimitedOptions?: RateLimitedPolicy;
|
|
320
|
-
/** Custom policy
|
|
285
|
+
/** Custom policy defined by a different app. */
|
|
321
286
|
customOptions?: CustomPolicy;
|
|
322
287
|
}
|
|
323
288
|
export declare enum Type {
|
|
324
289
|
/** Unknown policy type. */
|
|
325
290
|
UNKNOWN = "UNKNOWN",
|
|
326
|
-
/**
|
|
291
|
+
/** Use with `fixedIntervalOptions`. */
|
|
327
292
|
FIXED_INTERVAL = "FIXED_INTERVAL",
|
|
328
|
-
/**
|
|
293
|
+
/** Use with `rateLimitedOptions`. */
|
|
329
294
|
RATE_LIMITED = "RATE_LIMITED",
|
|
295
|
+
/** Use with `customOptions`. */
|
|
330
296
|
CUSTOM = "CUSTOM"
|
|
331
297
|
}
|
|
332
298
|
export interface FixedIntervalPolicy {
|
|
333
|
-
/** Weekday that this interval starts from. If this field is
|
|
299
|
+
/** Weekday that this interval starts from. If this field is defined, then `toWeekDay` is required. */
|
|
334
300
|
fromWeekDay?: WeekDay;
|
|
335
|
-
/** Weekday that this interval ends at. If this field is
|
|
301
|
+
/** Weekday that this interval ends at. If this field is defined, then `fromWeekDay` is required. */
|
|
336
302
|
toWeekDay?: WeekDay;
|
|
337
303
|
/**
|
|
338
|
-
* Hour that this interval starts from. If this field is
|
|
304
|
+
* Hour that this interval starts from. If this field is defined, then `toHour` is required.
|
|
339
305
|
* @max 23
|
|
340
306
|
*/
|
|
341
307
|
fromHour?: number | null;
|
|
342
308
|
/**
|
|
343
|
-
* Hour that this interval ends at. If this field is
|
|
309
|
+
* Hour that this interval ends at. If this field is defined, then `fromHour` is required.
|
|
344
310
|
* @max 23
|
|
345
311
|
*/
|
|
346
312
|
toHour?: number | null;
|
|
347
313
|
/**
|
|
348
|
-
* Minute that this interval starts from. If this field is
|
|
314
|
+
* Minute that this interval starts from. If this field is defined, then `toMinute` is required.
|
|
349
315
|
* @max 59
|
|
350
316
|
*/
|
|
351
317
|
fromMinute?: number | null;
|
|
352
318
|
/**
|
|
353
|
-
* Minute that this interval ends at. If this field is
|
|
319
|
+
* Minute that this interval ends at. If this field is defined, then `fromMinute` is required.
|
|
354
320
|
* @max 59
|
|
355
321
|
*/
|
|
356
322
|
toMinute?: number | null;
|
|
@@ -374,70 +340,60 @@ export declare enum WeekDay {
|
|
|
374
340
|
SUNDAY = "SUNDAY"
|
|
375
341
|
}
|
|
376
342
|
export interface RateLimitedPolicy extends RateLimitedPolicyPeriodOneOf {
|
|
377
|
-
/**
|
|
378
|
-
* Defines the timing of benefit policy redemption for specific days or hours.
|
|
379
|
-
*
|
|
380
|
-
* Used to set the timing policy for a maximum limit of redemptions.
|
|
381
|
-
*/
|
|
343
|
+
/** Fixed interval used to limit benefit redemption. */
|
|
382
344
|
fixedIntervalOptions?: FixedIntervalPolicy;
|
|
383
|
-
/** Maximum number of times benefit can be redeemed per
|
|
345
|
+
/** Maximum number of times a benefit can be redeemed per specified time period. */
|
|
384
346
|
times?: number;
|
|
385
|
-
/**
|
|
347
|
+
/** Time period type. */
|
|
386
348
|
type?: RateLimitedPolicyType;
|
|
387
349
|
}
|
|
388
350
|
/** @oneof */
|
|
389
351
|
export interface RateLimitedPolicyPeriodOneOf {
|
|
390
|
-
/**
|
|
391
|
-
* Defines the timing of benefit policy redemption for specific days or hours.
|
|
392
|
-
*
|
|
393
|
-
* Used to set the timing policy for a maximum limit of redemptions.
|
|
394
|
-
*/
|
|
352
|
+
/** Fixed interval used to limit benefit redemption. */
|
|
395
353
|
fixedIntervalOptions?: FixedIntervalPolicy;
|
|
396
354
|
}
|
|
397
355
|
export declare enum RateLimitedPolicyType {
|
|
398
356
|
/** Unknown rate limit method. */
|
|
399
357
|
UNKNOWN = "UNKNOWN",
|
|
400
|
-
/**
|
|
358
|
+
/** Time period is defined using `fixedIntervalOptions`. */
|
|
401
359
|
FIXED_INTERVAL = "FIXED_INTERVAL",
|
|
402
|
-
/**
|
|
360
|
+
/** Time period is from one program renewal to the next. */
|
|
403
361
|
PER_CYCLE = "PER_CYCLE"
|
|
404
362
|
}
|
|
405
363
|
/** Custom policy as implemented by the Entitlement Policy Provider */
|
|
406
364
|
export interface CustomPolicy {
|
|
407
365
|
/**
|
|
408
|
-
*
|
|
366
|
+
* Policy ID.
|
|
409
367
|
* @format GUID
|
|
410
368
|
*/
|
|
411
369
|
_id?: string;
|
|
412
370
|
/**
|
|
413
|
-
*
|
|
371
|
+
* ID of the app providing the policy.
|
|
414
372
|
* @format GUID
|
|
415
373
|
*/
|
|
416
374
|
appId?: string | null;
|
|
417
|
-
/** Additional
|
|
375
|
+
/** Additional information for this custom policy. */
|
|
418
376
|
additionalData?: Record<string, any> | null;
|
|
419
377
|
}
|
|
420
378
|
export interface CreditConfiguration {
|
|
421
379
|
/**
|
|
422
|
-
*
|
|
380
|
+
* Initial available amount for associated balances.
|
|
423
381
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
424
382
|
*/
|
|
425
383
|
amount?: string;
|
|
426
|
-
/** Rollover
|
|
384
|
+
/** Rollover settings. */
|
|
427
385
|
rolloverConfiguration?: RolloverConfiguration;
|
|
428
386
|
/**
|
|
429
|
-
*
|
|
387
|
+
* Credit unit display name.
|
|
430
388
|
* @maxLength 32
|
|
431
389
|
*/
|
|
432
390
|
unitDisplayName?: string | null;
|
|
433
391
|
}
|
|
434
392
|
export interface RolloverConfiguration {
|
|
435
|
-
/**
|
|
393
|
+
/** Whether any amount of unused credits are rolled over to a new cycle when a program renews. */
|
|
436
394
|
enabled?: boolean | null;
|
|
437
395
|
/**
|
|
438
|
-
* The maximum amount of credits that can
|
|
439
|
-
*
|
|
440
|
-
* If current balance exceeds this cap, no credits will transfer into the next renewal cycle until the balance is within the allowable limit.
|
|
396
|
+
* The maximum amount of credits that can rollover to the next cycle when a program renews.
|
|
441
397
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
442
398
|
*/
|
|
443
399
|
balanceCap?: string | null;
|
|
@@ -455,15 +411,13 @@ export interface ExtendedFields {
|
|
|
455
411
|
}
|
|
456
412
|
export interface ProgramDefinitionInfo {
|
|
457
413
|
/**
|
|
458
|
-
*
|
|
414
|
+
* Program definition ID.
|
|
459
415
|
* @format GUID
|
|
460
416
|
* @readonly
|
|
461
417
|
*/
|
|
462
418
|
_id?: string;
|
|
463
419
|
/**
|
|
464
|
-
*
|
|
465
|
-
*
|
|
466
|
-
* This identifies the source program definition in the external system.
|
|
420
|
+
* Program definition external ID.
|
|
467
421
|
* @format GUID
|
|
468
422
|
* @readonly
|
|
469
423
|
*/
|
|
@@ -471,15 +425,13 @@ export interface ProgramDefinitionInfo {
|
|
|
471
425
|
}
|
|
472
426
|
export interface PoolProgramInfo {
|
|
473
427
|
/**
|
|
474
|
-
* ID
|
|
428
|
+
* Program ID.
|
|
475
429
|
* @format GUID
|
|
476
430
|
* @readonly
|
|
477
431
|
*/
|
|
478
432
|
_id?: string;
|
|
479
433
|
/**
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
* This identifies the source program in the external system.
|
|
434
|
+
* Program external ID.
|
|
483
435
|
* @format GUID
|
|
484
436
|
* @readonly
|
|
485
437
|
*/
|
|
@@ -658,7 +610,7 @@ export interface GetPoolResponse {
|
|
|
658
610
|
pool?: Pool;
|
|
659
611
|
}
|
|
660
612
|
export interface UpdatePoolRequest {
|
|
661
|
-
/** Pool to
|
|
613
|
+
/** Pool to update. */
|
|
662
614
|
pool: Pool;
|
|
663
615
|
}
|
|
664
616
|
export interface UpdatePoolResponse {
|
|
@@ -675,7 +627,7 @@ export interface DeletePoolRequest {
|
|
|
675
627
|
export interface DeletePoolResponse {
|
|
676
628
|
}
|
|
677
629
|
export interface QueryPoolsRequest {
|
|
678
|
-
/**
|
|
630
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
679
631
|
query: CursorQuery;
|
|
680
632
|
}
|
|
681
633
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -733,7 +685,7 @@ export interface CursorPaging {
|
|
|
733
685
|
cursor?: string | null;
|
|
734
686
|
}
|
|
735
687
|
export interface QueryPoolsResponse {
|
|
736
|
-
/** List of pools. */
|
|
688
|
+
/** List of retrieved pools. */
|
|
737
689
|
pools?: Pool[];
|
|
738
690
|
/** Metadata for the paginated results. */
|
|
739
691
|
metadata?: CursorPagingMetadata;
|
|
@@ -765,30 +717,26 @@ export interface Cursors {
|
|
|
765
717
|
}
|
|
766
718
|
export interface RedeemBenefitRequest {
|
|
767
719
|
/**
|
|
768
|
-
* ID of the benefit
|
|
720
|
+
* ID of the pool that benefit to redeem belongs to.
|
|
769
721
|
* @format GUID
|
|
770
722
|
*/
|
|
771
723
|
poolId: string;
|
|
772
|
-
/**
|
|
724
|
+
/** Information about the item being to redeem. */
|
|
773
725
|
itemReference: ItemReference;
|
|
774
726
|
/**
|
|
775
|
-
* Key of the
|
|
776
|
-
*
|
|
777
|
-
* This needs to be specified to ensure the correct benefit is redeemed.
|
|
727
|
+
* Key of the benefit to redeem.
|
|
778
728
|
* @maxLength 64
|
|
779
729
|
*/
|
|
780
730
|
benefitKey: string;
|
|
781
731
|
/**
|
|
782
|
-
*
|
|
732
|
+
* Amount of items to redeem.
|
|
783
733
|
* @min 1
|
|
784
734
|
*/
|
|
785
735
|
count?: number;
|
|
786
736
|
/**
|
|
787
|
-
* Date
|
|
788
|
-
*
|
|
789
|
-
* While credit balance is adjusted immediately upon the redemption request, the target date may be set for a later time than the date of the request.
|
|
737
|
+
* Date that the item will be provided to the beneficiary.
|
|
790
738
|
*
|
|
791
|
-
*
|
|
739
|
+
* The pool's associated balance will update immediately. This parameter should be used to manage the logistics of providing the item.
|
|
792
740
|
*/
|
|
793
741
|
targetDate?: Date | null;
|
|
794
742
|
/**
|
|
@@ -799,12 +747,10 @@ export interface RedeemBenefitRequest {
|
|
|
799
747
|
idempotencyKey: string;
|
|
800
748
|
/** Additional information. */
|
|
801
749
|
additionalData?: Record<string, any> | null;
|
|
802
|
-
/**
|
|
750
|
+
/** Beneficiary of the pool containing the benefit to redeem. */
|
|
803
751
|
beneficiary?: CommonIdentificationData;
|
|
804
752
|
/**
|
|
805
|
-
*
|
|
806
|
-
*
|
|
807
|
-
* Must match the previously defined namespace in the associated pool definition.
|
|
753
|
+
* Namespace for your app or site's benefit programs.
|
|
808
754
|
* @minLength 1
|
|
809
755
|
* @maxLength 50
|
|
810
756
|
*/
|
|
@@ -812,40 +758,40 @@ export interface RedeemBenefitRequest {
|
|
|
812
758
|
}
|
|
813
759
|
export interface RedeemBenefitResponse {
|
|
814
760
|
/**
|
|
815
|
-
*
|
|
761
|
+
* ID of the transaction recording the associated change in balance.
|
|
816
762
|
* @format GUID
|
|
817
763
|
*/
|
|
818
764
|
transactionId?: string;
|
|
819
765
|
}
|
|
820
766
|
export interface NotEnoughBalance {
|
|
821
767
|
/**
|
|
822
|
-
* Pool ID
|
|
768
|
+
* Pool ID.
|
|
823
769
|
* @format GUID
|
|
824
770
|
*/
|
|
825
771
|
poolId?: string;
|
|
826
|
-
/** Item reference */
|
|
772
|
+
/** Item reference. */
|
|
827
773
|
itemReference?: ItemReference;
|
|
828
774
|
/**
|
|
829
|
-
*
|
|
775
|
+
* Pool's associated balance amount in credits.
|
|
830
776
|
* @decimalValue options { maxScale:4 }
|
|
831
777
|
*/
|
|
832
778
|
availableBalance?: string;
|
|
833
779
|
/**
|
|
834
|
-
* Price of the item
|
|
780
|
+
* Price of the item in credits.
|
|
835
781
|
* @decimalValue options { maxScale:4 }
|
|
836
782
|
*/
|
|
837
783
|
requestedBalance?: string;
|
|
838
784
|
}
|
|
839
785
|
export interface PolicyExpressionEvaluatedToFalse {
|
|
840
786
|
/**
|
|
841
|
-
* Pool ID
|
|
787
|
+
* Pool ID.
|
|
842
788
|
* @format GUID
|
|
843
789
|
*/
|
|
844
790
|
poolId?: string;
|
|
845
|
-
/** Item reference */
|
|
791
|
+
/** Item reference. */
|
|
846
792
|
itemReference?: ItemReference;
|
|
847
793
|
/**
|
|
848
|
-
* Failure details
|
|
794
|
+
* Failure details.
|
|
849
795
|
* @maxSize 10
|
|
850
796
|
*/
|
|
851
797
|
failureDetails?: FailureDetails[];
|
|
@@ -877,16 +823,16 @@ export interface FailureDetails {
|
|
|
877
823
|
}
|
|
878
824
|
export interface PoolNotActive {
|
|
879
825
|
/**
|
|
880
|
-
* Pool ID
|
|
826
|
+
* Pool ID.
|
|
881
827
|
* @format GUID
|
|
882
828
|
*/
|
|
883
829
|
poolId?: string;
|
|
884
|
-
/** Pool status */
|
|
830
|
+
/** Pool status. */
|
|
885
831
|
poolStatus?: PoolStatus;
|
|
886
832
|
}
|
|
887
833
|
export interface PoolNotFound {
|
|
888
834
|
/**
|
|
889
|
-
* Pool ID
|
|
835
|
+
* Pool ID.
|
|
890
836
|
* @format GUID
|
|
891
837
|
*/
|
|
892
838
|
poolId?: string;
|
|
@@ -905,12 +851,12 @@ export interface BenefitAlreadyRedeemed {
|
|
|
905
851
|
}
|
|
906
852
|
export interface BenefitNotFound {
|
|
907
853
|
/**
|
|
908
|
-
* Pool ID
|
|
854
|
+
* Pool ID.
|
|
909
855
|
* @format GUID
|
|
910
856
|
*/
|
|
911
857
|
poolId?: string;
|
|
912
858
|
/**
|
|
913
|
-
*
|
|
859
|
+
* Provided benefit key.
|
|
914
860
|
* @format GUID
|
|
915
861
|
*/
|
|
916
862
|
benefitKey?: string | null;
|
|
@@ -1002,106 +948,86 @@ export interface ReleaseBenefitReservationResponse {
|
|
|
1002
948
|
}
|
|
1003
949
|
export interface CheckBenefitEligibilityRequest {
|
|
1004
950
|
/**
|
|
1005
|
-
* ID of the benefit
|
|
951
|
+
* ID of the pool that benefit to check belongs to.
|
|
1006
952
|
* @format GUID
|
|
1007
953
|
*/
|
|
1008
954
|
poolId: string;
|
|
1009
955
|
/**
|
|
1010
|
-
* Key of the benefit to
|
|
1011
|
-
*
|
|
1012
|
-
* This key must be specified to ensure the correct benefit is redeemed.
|
|
1013
|
-
*
|
|
1014
|
-
* Default: The first eligible benefit in the benefit pool will be redeemed.
|
|
956
|
+
* Key of the benefit to check.
|
|
1015
957
|
* @maxLength 64
|
|
1016
958
|
*/
|
|
1017
959
|
benefitKey?: string | null;
|
|
1018
|
-
/**
|
|
960
|
+
/** Information about the item being to check. */
|
|
1019
961
|
itemReference: ItemReference;
|
|
1020
962
|
/**
|
|
1021
|
-
*
|
|
1022
|
-
*
|
|
1023
|
-
* This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
|
|
963
|
+
* Amount of items to check. This ensures the balance is high enough to redeem this many items.
|
|
1024
964
|
* @min 1
|
|
1025
965
|
*/
|
|
1026
966
|
count?: number;
|
|
1027
967
|
/**
|
|
1028
|
-
* Date
|
|
968
|
+
* Date that the item will be provided to the beneficiary.
|
|
1029
969
|
*
|
|
1030
|
-
*
|
|
1031
|
-
*
|
|
1032
|
-
* Used for the app providing the benefit items to manage the logistics associated with the item.
|
|
970
|
+
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1033
971
|
*/
|
|
1034
972
|
targetDate?: Date | null;
|
|
1035
|
-
/** Additional
|
|
973
|
+
/** Additional information. */
|
|
1036
974
|
additionalData?: Record<string, any> | null;
|
|
1037
|
-
/**
|
|
975
|
+
/** Beneficiary of the pool containing the benefit to check. */
|
|
1038
976
|
beneficiary?: CommonIdentificationData;
|
|
1039
977
|
/**
|
|
1040
|
-
*
|
|
1041
|
-
*
|
|
1042
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
1043
|
-
*
|
|
1044
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
978
|
+
* Namespace for your app or site's benefit programs.
|
|
1045
979
|
* @minLength 1
|
|
1046
980
|
* @maxLength 50
|
|
1047
981
|
*/
|
|
1048
982
|
namespace: string;
|
|
1049
983
|
}
|
|
1050
984
|
export interface CheckBenefitEligibilityResponse {
|
|
1051
|
-
/**
|
|
1052
|
-
* Result of the eligibility check. Includes the benefit's eligibility.
|
|
1053
|
-
*
|
|
1054
|
-
* If the benefit is not eligible for redemption, provides a reason for ineligiblity.
|
|
1055
|
-
*/
|
|
985
|
+
/** Result of the eligibility check. */
|
|
1056
986
|
result?: EligibilityCheckResult;
|
|
1057
987
|
}
|
|
1058
988
|
export interface EligibilityCheckResult extends EligibilityCheckResultResultOneOf {
|
|
1059
|
-
/**
|
|
989
|
+
/** Returned when item is eligible to be redeemed. */
|
|
1060
990
|
eligibleOptions?: Eligible;
|
|
1061
|
-
/**
|
|
991
|
+
/** Returned when balance is lower than the cost of redeeming the items. */
|
|
1062
992
|
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1063
|
-
/**
|
|
1064
|
-
policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;
|
|
1065
|
-
/** Set when pool is inactive. */
|
|
993
|
+
/** Returned when the pool isn't active. */
|
|
1066
994
|
poolNotActiveOptions?: PoolNotActive;
|
|
1067
|
-
/**
|
|
995
|
+
/** Returned when invalid benefit details are provided. */
|
|
1068
996
|
benefitNotFoundOptions?: BenefitNotFound;
|
|
1069
|
-
/**
|
|
997
|
+
/** Returned when invalid pool details are provided. */
|
|
1070
998
|
poolNotFoundOptions?: PoolNotFound;
|
|
1071
999
|
/** Eligibility status. */
|
|
1072
1000
|
type?: EligibilityCheckResultType;
|
|
1073
1001
|
}
|
|
1074
1002
|
/** @oneof */
|
|
1075
1003
|
export interface EligibilityCheckResultResultOneOf {
|
|
1076
|
-
/**
|
|
1004
|
+
/** Returned when item is eligible to be redeemed. */
|
|
1077
1005
|
eligibleOptions?: Eligible;
|
|
1078
|
-
/**
|
|
1006
|
+
/** Returned when balance is lower than the cost of redeeming the items. */
|
|
1079
1007
|
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1080
|
-
/**
|
|
1081
|
-
policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;
|
|
1082
|
-
/** Set when pool is inactive. */
|
|
1008
|
+
/** Returned when the pool isn't active. */
|
|
1083
1009
|
poolNotActiveOptions?: PoolNotActive;
|
|
1084
|
-
/**
|
|
1010
|
+
/** Returned when invalid benefit details are provided. */
|
|
1085
1011
|
benefitNotFoundOptions?: BenefitNotFound;
|
|
1086
|
-
/**
|
|
1012
|
+
/** Returned when invalid pool details are provided. */
|
|
1087
1013
|
poolNotFoundOptions?: PoolNotFound;
|
|
1088
1014
|
}
|
|
1089
1015
|
export interface EligibleBenefit {
|
|
1090
1016
|
/**
|
|
1091
|
-
* Pool ID
|
|
1017
|
+
* Pool ID.
|
|
1092
1018
|
* @format GUID
|
|
1093
1019
|
* @readonly
|
|
1094
1020
|
*/
|
|
1095
1021
|
poolId?: string;
|
|
1096
1022
|
/**
|
|
1097
|
-
*
|
|
1023
|
+
* Benefit key.
|
|
1098
1024
|
* @maxLength 64
|
|
1099
1025
|
*/
|
|
1100
1026
|
benefitKey?: string;
|
|
1101
|
-
/** Item reference */
|
|
1027
|
+
/** Item reference. */
|
|
1102
1028
|
itemReference?: ItemReference;
|
|
1103
1029
|
/**
|
|
1104
|
-
* Price of the
|
|
1030
|
+
* Price of the benefit in credits.
|
|
1105
1031
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
1106
1032
|
*/
|
|
1107
1033
|
price?: string | null;
|
|
@@ -1109,126 +1035,108 @@ export interface EligibleBenefit {
|
|
|
1109
1035
|
export declare enum EligibilityCheckResultType {
|
|
1110
1036
|
/** Unknown pool eligibility. */
|
|
1111
1037
|
UNKNOWN = "UNKNOWN",
|
|
1112
|
-
/**
|
|
1038
|
+
/** Item is eligible to be redeemed. */
|
|
1113
1039
|
ELIGIBLE = "ELIGIBLE",
|
|
1114
|
-
/**
|
|
1040
|
+
/** Balance is lower than the cost of redeeming the items. */
|
|
1115
1041
|
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1116
|
-
/**
|
|
1117
|
-
POLICY_EXPRESSION_EVALUATED_TO_FALSE = "POLICY_EXPRESSION_EVALUATED_TO_FALSE",
|
|
1118
|
-
/** Inactive pool. */
|
|
1042
|
+
/** Pool isn't active. */
|
|
1119
1043
|
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1120
|
-
/** Invalid benefit. */
|
|
1044
|
+
/** Invalid benefit details provided. */
|
|
1121
1045
|
BENEFIT_NOT_FOUND = "BENEFIT_NOT_FOUND",
|
|
1122
|
-
/** Invalid pool. */
|
|
1046
|
+
/** Invalid pool details provided. */
|
|
1123
1047
|
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1124
1048
|
}
|
|
1125
1049
|
export interface Eligible {
|
|
1126
1050
|
/**
|
|
1127
|
-
*
|
|
1051
|
+
* Benefits that are eligible to be redeemed.
|
|
1128
1052
|
* @maxSize 100
|
|
1129
1053
|
*/
|
|
1130
1054
|
eligibleBenefits?: EligibleBenefit[];
|
|
1131
1055
|
}
|
|
1132
1056
|
export interface BulkCheckBenefitEligibilityRequest {
|
|
1133
1057
|
/**
|
|
1134
|
-
*
|
|
1058
|
+
* List of benefits to check.
|
|
1135
1059
|
* @minSize 1
|
|
1136
1060
|
* @maxSize 100
|
|
1137
1061
|
*/
|
|
1138
1062
|
benefitSelectors?: BenefitSelector[];
|
|
1139
1063
|
/**
|
|
1140
|
-
*
|
|
1141
|
-
*
|
|
1142
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
1143
|
-
*
|
|
1144
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
1064
|
+
* Namespace for your app or site's benefit programs.
|
|
1145
1065
|
* @minLength 1
|
|
1146
1066
|
* @maxLength 50
|
|
1147
1067
|
*/
|
|
1148
1068
|
namespace: string;
|
|
1149
|
-
/**
|
|
1069
|
+
/** Pool beneficiary. */
|
|
1150
1070
|
beneficiary?: CommonIdentificationData;
|
|
1151
1071
|
}
|
|
1152
1072
|
export interface BenefitSelector {
|
|
1153
1073
|
/**
|
|
1154
|
-
* ID of the pool to check
|
|
1074
|
+
* ID of the pool that benefit to check belongs to.
|
|
1155
1075
|
* @format GUID
|
|
1156
1076
|
*/
|
|
1157
1077
|
poolId?: string;
|
|
1158
1078
|
/**
|
|
1159
|
-
*
|
|
1079
|
+
* Key of the benefit to check.
|
|
1160
1080
|
* @maxLength 64
|
|
1161
1081
|
*/
|
|
1162
1082
|
benefitKey?: string | null;
|
|
1163
|
-
/**
|
|
1083
|
+
/** Information about the item being to check. */
|
|
1164
1084
|
itemReference?: ItemReference;
|
|
1165
1085
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
* This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
|
|
1086
|
+
* Amount of items to check. This ensures the balance is high enough to redeem this many items.
|
|
1169
1087
|
* @min 1
|
|
1170
1088
|
*/
|
|
1171
1089
|
count?: number;
|
|
1172
1090
|
/**
|
|
1173
|
-
* Date
|
|
1091
|
+
* Date that the item will be provided to the beneficiary.
|
|
1174
1092
|
*
|
|
1175
|
-
*
|
|
1176
|
-
*
|
|
1177
|
-
* Used for the app providing the benefit items to manage the logistics associated with the item.
|
|
1093
|
+
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1178
1094
|
*/
|
|
1179
1095
|
targetDate?: Date | null;
|
|
1180
|
-
/** Additional
|
|
1096
|
+
/** Additional information. */
|
|
1181
1097
|
additionalData?: Record<string, any> | null;
|
|
1182
1098
|
}
|
|
1183
1099
|
export interface BulkCheckBenefitEligibilityResponse {
|
|
1184
1100
|
/**
|
|
1185
|
-
* List of results
|
|
1101
|
+
* List of results checking each benefit.
|
|
1186
1102
|
* @minSize 1
|
|
1187
1103
|
* @maxSize 100
|
|
1188
1104
|
*/
|
|
1189
1105
|
results?: BulkEligibilityCheckResult[];
|
|
1190
1106
|
}
|
|
1191
1107
|
export interface BulkEligibilityCheckResult {
|
|
1192
|
-
/**
|
|
1108
|
+
/** Benefit information specified in API call. */
|
|
1193
1109
|
benefitSelector?: BenefitSelector;
|
|
1194
|
-
/**
|
|
1110
|
+
/** Result of the eligibility check. */
|
|
1195
1111
|
result?: EligibilityCheckResult;
|
|
1196
1112
|
}
|
|
1197
1113
|
export interface GetEligibleBenefitsRequest {
|
|
1198
|
-
/**
|
|
1114
|
+
/** Item reference. */
|
|
1199
1115
|
itemReference: ItemReference;
|
|
1200
1116
|
/**
|
|
1201
|
-
*
|
|
1202
|
-
*
|
|
1203
|
-
* This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
|
|
1117
|
+
* Amount of items to check. This ensures the balance is high enough to redeem this many items.
|
|
1204
1118
|
* @min 1
|
|
1205
1119
|
*/
|
|
1206
1120
|
count?: number;
|
|
1207
1121
|
/**
|
|
1208
|
-
* Date
|
|
1209
|
-
*
|
|
1210
|
-
* While credit balance is adjusted immediately upon the redemption request, the target date may be set for a later time than the date of the request.
|
|
1122
|
+
* Date that the item will be provided to the beneficiary.
|
|
1211
1123
|
*
|
|
1212
|
-
*
|
|
1124
|
+
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1213
1125
|
*/
|
|
1214
1126
|
targetDate?: Date | null;
|
|
1215
1127
|
/** Additional information. */
|
|
1216
1128
|
additionalData?: Record<string, any> | null;
|
|
1217
|
-
/**
|
|
1129
|
+
/** Filter request by beneficiary. */
|
|
1218
1130
|
beneficiary?: CommonIdentificationData;
|
|
1219
1131
|
/**
|
|
1220
|
-
*
|
|
1221
|
-
*
|
|
1222
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
1223
|
-
*
|
|
1224
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
1132
|
+
* Namespace for your app or site's benefit programs.
|
|
1225
1133
|
* @minLength 1
|
|
1226
1134
|
* @maxLength 50
|
|
1227
1135
|
*/
|
|
1228
1136
|
namespace: string;
|
|
1229
1137
|
}
|
|
1230
1138
|
export interface GetEligibleBenefitsResponse {
|
|
1231
|
-
/** Retrieved
|
|
1139
|
+
/** Retrieved benefits that can be redeemed. */
|
|
1232
1140
|
eligibleBenefits?: EligibleBenefit[];
|
|
1233
1141
|
}
|
|
1234
1142
|
export interface ListPoolsRequest {
|
|
@@ -1319,9 +1227,7 @@ export interface MaskedPool {
|
|
|
1319
1227
|
}
|
|
1320
1228
|
export interface BulkUpdatePoolsResponse {
|
|
1321
1229
|
/**
|
|
1322
|
-
* List of
|
|
1323
|
-
*
|
|
1324
|
-
* Includes the pool, pool metadata, and whether the update was successful.
|
|
1230
|
+
* List of updated pools and associated metadata.
|
|
1325
1231
|
* @minSize 1
|
|
1326
1232
|
* @maxSize 100
|
|
1327
1233
|
*/
|
|
@@ -1332,7 +1238,7 @@ export interface BulkUpdatePoolsResponse {
|
|
|
1332
1238
|
export interface BulkPoolResult {
|
|
1333
1239
|
/** Pool metadata. */
|
|
1334
1240
|
poolMetadata?: ItemMetadata;
|
|
1335
|
-
/**
|
|
1241
|
+
/** Pool data. */
|
|
1336
1242
|
pool?: Pool;
|
|
1337
1243
|
}
|
|
1338
1244
|
export interface ItemMetadata {
|
|
@@ -1823,7 +1729,7 @@ export interface BulkUpdatePoolsResponseNonNullableFields {
|
|
|
1823
1729
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
1824
1730
|
}
|
|
1825
1731
|
/**
|
|
1826
|
-
* Retrieves a
|
|
1732
|
+
* Retrieves a pool.
|
|
1827
1733
|
* @param poolId - ID of the pool to retrieve.
|
|
1828
1734
|
* @public
|
|
1829
1735
|
* @documentationMaturity preview
|
|
@@ -1841,7 +1747,7 @@ export interface BulkUpdatePoolsResponseNonNullableFields {
|
|
|
1841
1747
|
*/
|
|
1842
1748
|
export declare function getPool(poolId: string): Promise<Pool & PoolNonNullableFields>;
|
|
1843
1749
|
/**
|
|
1844
|
-
* Updates a
|
|
1750
|
+
* Updates a pool.
|
|
1845
1751
|
*
|
|
1846
1752
|
* Each time the pool is updated,
|
|
1847
1753
|
* `revision` increments by 1.
|
|
@@ -1888,45 +1794,41 @@ export interface UpdatePool {
|
|
|
1888
1794
|
*/
|
|
1889
1795
|
_updatedDate?: Date | null;
|
|
1890
1796
|
/**
|
|
1891
|
-
*
|
|
1797
|
+
* ID of the associated pool definition.
|
|
1892
1798
|
* @format GUID
|
|
1893
1799
|
* @readonly
|
|
1894
1800
|
*/
|
|
1895
1801
|
poolDefinitionId?: string | null;
|
|
1896
1802
|
/**
|
|
1897
|
-
*
|
|
1803
|
+
* ID of the associated program definition.
|
|
1898
1804
|
* @format GUID
|
|
1899
1805
|
* @readonly
|
|
1900
1806
|
*/
|
|
1901
1807
|
programDefinitionId?: string | null;
|
|
1902
1808
|
/**
|
|
1903
|
-
* ID of the program
|
|
1809
|
+
* ID of the program that contains this pool.
|
|
1904
1810
|
* @format GUID
|
|
1905
1811
|
* @readonly
|
|
1906
1812
|
*/
|
|
1907
1813
|
programId?: string | null;
|
|
1908
1814
|
/**
|
|
1909
|
-
*
|
|
1815
|
+
* Pool status.
|
|
1910
1816
|
* @readonly
|
|
1911
1817
|
*/
|
|
1912
1818
|
status?: PoolStatus;
|
|
1913
|
-
/**
|
|
1819
|
+
/** Pool beneficiary. */
|
|
1914
1820
|
beneficiary?: CommonIdentificationData;
|
|
1915
|
-
/**
|
|
1916
|
-
* Benefit pool information.
|
|
1917
|
-
*
|
|
1918
|
-
* Includes the item, policy, and credit configurations.
|
|
1919
|
-
*/
|
|
1821
|
+
/** Pool benefits and settings. */
|
|
1920
1822
|
details?: Details;
|
|
1921
1823
|
/**
|
|
1922
1824
|
* Pool name.
|
|
1923
1825
|
*
|
|
1924
|
-
*
|
|
1826
|
+
* You may want to use the same name that's used in the associated pool definition.
|
|
1925
1827
|
* @maxLength 64
|
|
1926
1828
|
*/
|
|
1927
1829
|
displayName?: string;
|
|
1928
1830
|
/**
|
|
1929
|
-
*
|
|
1831
|
+
* Namespace for your app or site's benefit programs.
|
|
1930
1832
|
* @immutable
|
|
1931
1833
|
* @minLength 1
|
|
1932
1834
|
* @maxLength 50
|
|
@@ -1934,28 +1836,27 @@ export interface UpdatePool {
|
|
|
1934
1836
|
namespace?: string | null;
|
|
1935
1837
|
/**
|
|
1936
1838
|
* Custom field data for the pool object.
|
|
1839
|
+
*
|
|
1937
1840
|
* [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.
|
|
1938
1841
|
*/
|
|
1939
1842
|
extendedFields?: ExtendedFields;
|
|
1940
1843
|
/**
|
|
1941
|
-
*
|
|
1844
|
+
* Associated program definition information.
|
|
1942
1845
|
* @readonly
|
|
1943
1846
|
*/
|
|
1944
1847
|
programDefinition?: ProgramDefinitionInfo;
|
|
1945
1848
|
/**
|
|
1946
|
-
*
|
|
1849
|
+
* Information about the program containing the pool.
|
|
1947
1850
|
* @readonly
|
|
1948
1851
|
*/
|
|
1949
1852
|
program?: PoolProgramInfo;
|
|
1950
1853
|
/**
|
|
1951
|
-
* Version of the associated pool definition
|
|
1952
|
-
*
|
|
1953
|
-
* `poolDefinition.revision`.
|
|
1854
|
+
* Version of the associated pool definition from which this pool was created.
|
|
1954
1855
|
* @readonly
|
|
1955
1856
|
*/
|
|
1956
1857
|
poolDefinitionRevision?: string | null;
|
|
1957
1858
|
/**
|
|
1958
|
-
* Number of times this
|
|
1859
|
+
* Number of times this pool has been renewed.
|
|
1959
1860
|
* @readonly
|
|
1960
1861
|
*/
|
|
1961
1862
|
renewalCount?: number | null;
|
|
@@ -1963,13 +1864,15 @@ export interface UpdatePool {
|
|
|
1963
1864
|
/**
|
|
1964
1865
|
* Creates a query to retrieve a list of pools.
|
|
1965
1866
|
*
|
|
1966
|
-
* The
|
|
1867
|
+
* The Query Pools method builds a query to retrieve a list of pools and returns a `PoolsQueryBuilder` object.
|
|
1868
|
+
*
|
|
1869
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
1967
1870
|
*
|
|
1968
|
-
*
|
|
1871
|
+
* You can refine the query by chaining `PoolsQueryBuilder` methods onto the query. `PoolsQueryBuilder` methods enable you to filter, sort, and control the results that Query Pools returns.
|
|
1969
1872
|
*
|
|
1970
|
-
*
|
|
1873
|
+
* Query Pools has a default paging limit of 50, which you can override.
|
|
1971
1874
|
*
|
|
1972
|
-
*
|
|
1875
|
+
* For a full description of the item object, see the object returned for the `items` property in `PoolsQueryResult`.
|
|
1973
1876
|
* @public
|
|
1974
1877
|
* @documentationMaturity preview
|
|
1975
1878
|
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|
|
@@ -2061,14 +1964,10 @@ export interface PoolsQueryBuilder {
|
|
|
2061
1964
|
find: () => Promise<PoolsQueryResult>;
|
|
2062
1965
|
}
|
|
2063
1966
|
/**
|
|
2064
|
-
* Redeems a
|
|
2065
|
-
*
|
|
2066
|
-
* The mechanism of purchasing specified benefit items.
|
|
1967
|
+
* Redeems a specified benefit.
|
|
2067
1968
|
*
|
|
2068
|
-
*
|
|
2069
|
-
*
|
|
2070
|
-
* Upon redemption, a new transaction is created, maintaining balance history for the benefit pool.
|
|
2071
|
-
* @param poolId - ID of the benefit pool being redeemed.
|
|
1969
|
+
* Calling this method records redemption of the benefit and adjusts the pool's associated balance. You still need to handle providing the beneficiary with the item.
|
|
1970
|
+
* @param poolId - ID of the pool that benefit to redeem belongs to.
|
|
2072
1971
|
* @public
|
|
2073
1972
|
* @documentationMaturity preview
|
|
2074
1973
|
* @requiredField options.benefitKey
|
|
@@ -2086,26 +1985,22 @@ export interface PoolsQueryBuilder {
|
|
|
2086
1985
|
*/
|
|
2087
1986
|
export declare function redeemBenefit(poolId: string, options?: RedeemBenefitOptions): Promise<RedeemBenefitResponse & RedeemBenefitResponseNonNullableFields>;
|
|
2088
1987
|
export interface RedeemBenefitOptions {
|
|
2089
|
-
/**
|
|
1988
|
+
/** Information about the item being to redeem. */
|
|
2090
1989
|
itemReference: ItemReference;
|
|
2091
1990
|
/**
|
|
2092
|
-
* Key of the
|
|
2093
|
-
*
|
|
2094
|
-
* This needs to be specified to ensure the correct benefit is redeemed.
|
|
1991
|
+
* Key of the benefit to redeem.
|
|
2095
1992
|
* @maxLength 64
|
|
2096
1993
|
*/
|
|
2097
1994
|
benefitKey: string;
|
|
2098
1995
|
/**
|
|
2099
|
-
*
|
|
1996
|
+
* Amount of items to redeem.
|
|
2100
1997
|
* @min 1
|
|
2101
1998
|
*/
|
|
2102
1999
|
count?: number;
|
|
2103
2000
|
/**
|
|
2104
|
-
* Date
|
|
2105
|
-
*
|
|
2106
|
-
* While credit balance is adjusted immediately upon the redemption request, the target date may be set for a later time than the date of the request.
|
|
2001
|
+
* Date that the item will be provided to the beneficiary.
|
|
2107
2002
|
*
|
|
2108
|
-
*
|
|
2003
|
+
* The pool's associated balance will update immediately. This parameter should be used to manage the logistics of providing the item.
|
|
2109
2004
|
*/
|
|
2110
2005
|
targetDate?: Date | null;
|
|
2111
2006
|
/**
|
|
@@ -2116,22 +2011,20 @@ export interface RedeemBenefitOptions {
|
|
|
2116
2011
|
idempotencyKey: string;
|
|
2117
2012
|
/** Additional information. */
|
|
2118
2013
|
additionalData?: Record<string, any> | null;
|
|
2119
|
-
/**
|
|
2014
|
+
/** Beneficiary of the pool containing the benefit to redeem. */
|
|
2120
2015
|
beneficiary?: CommonIdentificationData;
|
|
2121
2016
|
/**
|
|
2122
|
-
*
|
|
2123
|
-
*
|
|
2124
|
-
* Must match the previously defined namespace in the associated pool definition.
|
|
2017
|
+
* Namespace for your app or site's benefit programs.
|
|
2125
2018
|
* @minLength 1
|
|
2126
2019
|
* @maxLength 50
|
|
2127
2020
|
*/
|
|
2128
2021
|
namespace: string;
|
|
2129
2022
|
}
|
|
2130
2023
|
/**
|
|
2131
|
-
* Checks if a benefit can be redeemed
|
|
2024
|
+
* Checks if a benefit can currently be redeemed.
|
|
2132
2025
|
*
|
|
2133
|
-
*
|
|
2134
|
-
* @param poolId - ID of the benefit
|
|
2026
|
+
* In order to be a redeemed, a benefit's pool must be active and the associated balance must greater than the cost of the benefit.
|
|
2027
|
+
* @param poolId - ID of the pool that benefit to check belongs to.
|
|
2135
2028
|
* @public
|
|
2136
2029
|
* @documentationMaturity preview
|
|
2137
2030
|
* @requiredField options.itemReference
|
|
@@ -2148,50 +2041,38 @@ export interface RedeemBenefitOptions {
|
|
|
2148
2041
|
export declare function checkBenefitEligibility(poolId: string, options?: CheckBenefitEligibilityOptions): Promise<CheckBenefitEligibilityResponse & CheckBenefitEligibilityResponseNonNullableFields>;
|
|
2149
2042
|
export interface CheckBenefitEligibilityOptions {
|
|
2150
2043
|
/**
|
|
2151
|
-
* Key of the benefit to
|
|
2152
|
-
*
|
|
2153
|
-
* This key must be specified to ensure the correct benefit is redeemed.
|
|
2154
|
-
*
|
|
2155
|
-
* Default: The first eligible benefit in the benefit pool will be redeemed.
|
|
2044
|
+
* Key of the benefit to check.
|
|
2156
2045
|
* @maxLength 64
|
|
2157
2046
|
*/
|
|
2158
2047
|
benefitKey?: string | null;
|
|
2159
|
-
/**
|
|
2048
|
+
/** Information about the item being to check. */
|
|
2160
2049
|
itemReference: ItemReference;
|
|
2161
2050
|
/**
|
|
2162
|
-
*
|
|
2163
|
-
*
|
|
2164
|
-
* This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
|
|
2051
|
+
* Amount of items to check. This ensures the balance is high enough to redeem this many items.
|
|
2165
2052
|
* @min 1
|
|
2166
2053
|
*/
|
|
2167
2054
|
count?: number;
|
|
2168
2055
|
/**
|
|
2169
|
-
* Date
|
|
2056
|
+
* Date that the item will be provided to the beneficiary.
|
|
2170
2057
|
*
|
|
2171
|
-
*
|
|
2172
|
-
*
|
|
2173
|
-
* Used for the app providing the benefit items to manage the logistics associated with the item.
|
|
2058
|
+
* This parameter should be used to manage the potential logistics of providing the item.
|
|
2174
2059
|
*/
|
|
2175
2060
|
targetDate?: Date | null;
|
|
2176
|
-
/** Additional
|
|
2061
|
+
/** Additional information. */
|
|
2177
2062
|
additionalData?: Record<string, any> | null;
|
|
2178
|
-
/**
|
|
2063
|
+
/** Beneficiary of the pool containing the benefit to check. */
|
|
2179
2064
|
beneficiary?: CommonIdentificationData;
|
|
2180
2065
|
/**
|
|
2181
|
-
*
|
|
2182
|
-
*
|
|
2183
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
2184
|
-
*
|
|
2185
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
2066
|
+
* Namespace for your app or site's benefit programs.
|
|
2186
2067
|
* @minLength 1
|
|
2187
2068
|
* @maxLength 50
|
|
2188
2069
|
*/
|
|
2189
2070
|
namespace: string;
|
|
2190
2071
|
}
|
|
2191
2072
|
/**
|
|
2192
|
-
* Checks if
|
|
2073
|
+
* Checks if benefits can currently be redeemed.
|
|
2193
2074
|
*
|
|
2194
|
-
*
|
|
2075
|
+
* In order to be a redeemed, a benefit's pool must be active and the associated balance must greater than the cost of the benefit. Each benefit is checked independently.
|
|
2195
2076
|
* @public
|
|
2196
2077
|
* @documentationMaturity preview
|
|
2197
2078
|
* @requiredField options.benefitSelectors.itemReference
|
|
@@ -2208,27 +2089,26 @@ export interface CheckBenefitEligibilityOptions {
|
|
|
2208
2089
|
export declare function bulkCheckBenefitEligibility(options?: BulkCheckBenefitEligibilityOptions): Promise<BulkCheckBenefitEligibilityResponse & BulkCheckBenefitEligibilityResponseNonNullableFields>;
|
|
2209
2090
|
export interface BulkCheckBenefitEligibilityOptions {
|
|
2210
2091
|
/**
|
|
2211
|
-
*
|
|
2092
|
+
* List of benefits to check.
|
|
2212
2093
|
* @minSize 1
|
|
2213
2094
|
* @maxSize 100
|
|
2214
2095
|
*/
|
|
2215
2096
|
benefitSelectors?: BenefitSelector[];
|
|
2216
2097
|
/**
|
|
2217
|
-
*
|
|
2218
|
-
*
|
|
2219
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
2220
|
-
*
|
|
2221
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
2098
|
+
* Namespace for your app or site's benefit programs.
|
|
2222
2099
|
* @minLength 1
|
|
2223
2100
|
* @maxLength 50
|
|
2224
2101
|
*/
|
|
2225
2102
|
namespace: string;
|
|
2226
|
-
/**
|
|
2103
|
+
/** Pool beneficiary. */
|
|
2227
2104
|
beneficiary?: CommonIdentificationData;
|
|
2228
2105
|
}
|
|
2229
2106
|
/**
|
|
2230
|
-
* Retrieve
|
|
2231
|
-
*
|
|
2107
|
+
* Retrieve benefits that can be redeemed for a specific item.
|
|
2108
|
+
*
|
|
2109
|
+
* Each item can only be linked to 1 benefit in 1 pool definition. However, each pool created from that pool definition contains a benefit with this item.
|
|
2110
|
+
* This method checks each benefits with this item, and returns the benefits that can be redeemed.
|
|
2111
|
+
* @param itemReference - Item reference.
|
|
2232
2112
|
* @public
|
|
2233
2113
|
* @documentationMaturity preview
|
|
2234
2114
|
* @requiredField itemReference
|
|
@@ -2248,37 +2128,29 @@ export interface BulkCheckBenefitEligibilityOptions {
|
|
|
2248
2128
|
export declare function getEligibleBenefits(itemReference: ItemReference, options?: GetEligibleBenefitsOptions): Promise<GetEligibleBenefitsResponse & GetEligibleBenefitsResponseNonNullableFields>;
|
|
2249
2129
|
export interface GetEligibleBenefitsOptions {
|
|
2250
2130
|
/**
|
|
2251
|
-
*
|
|
2252
|
-
*
|
|
2253
|
-
* This number will be evaluated against the policies and credit balance of the benefit pool to determine if sufficient funds are met for the specified number of items.
|
|
2131
|
+
* Amount of items to check. This ensures the balance is high enough to redeem this many items.
|
|
2254
2132
|
* @min 1
|
|
2255
2133
|
*/
|
|
2256
2134
|
count?: number;
|
|
2257
2135
|
/**
|
|
2258
|
-
* Date
|
|
2259
|
-
*
|
|
2260
|
-
* While credit balance is adjusted immediately upon the redemption request, the target date may be set for a later time than the date of the request.
|
|
2136
|
+
* Date that the item will be provided to the beneficiary.
|
|
2261
2137
|
*
|
|
2262
|
-
*
|
|
2138
|
+
* This parameter should be used to manage the potential logistics of providing the item.
|
|
2263
2139
|
*/
|
|
2264
2140
|
targetDate?: Date | null;
|
|
2265
2141
|
/** Additional information. */
|
|
2266
2142
|
additionalData?: Record<string, any> | null;
|
|
2267
|
-
/**
|
|
2143
|
+
/** Filter request by beneficiary. */
|
|
2268
2144
|
beneficiary?: CommonIdentificationData;
|
|
2269
2145
|
/**
|
|
2270
|
-
*
|
|
2271
|
-
*
|
|
2272
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
2273
|
-
*
|
|
2274
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
2146
|
+
* Namespace for your app or site's benefit programs.
|
|
2275
2147
|
* @minLength 1
|
|
2276
2148
|
* @maxLength 50
|
|
2277
2149
|
*/
|
|
2278
2150
|
namespace: string;
|
|
2279
2151
|
}
|
|
2280
2152
|
/**
|
|
2281
|
-
* Updates
|
|
2153
|
+
* Updates pools.
|
|
2282
2154
|
* @public
|
|
2283
2155
|
* @documentationMaturity preview
|
|
2284
2156
|
* @requiredField options.pools.pool
|