@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
|
|
1174
|
-
*
|
|
1175
|
-
* 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.
|
|
1091
|
+
* Date that the item will be provided to the beneficiary.
|
|
1176
1092
|
*
|
|
1177
|
-
*
|
|
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 {
|