@wix/auto_sdk_benefit-programs_pools 1.0.2 → 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.context.d.ts +1 -1
- 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 +23 -22
- 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 +224 -268
- 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 +283 -361
- 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.context.d.ts +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 +23 -22
- 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 +224 -268
- 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 +283 -361
- 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.context.d.ts +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 +23 -22
- 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 +224 -268
- 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 +283 -361
- 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.context.d.ts +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 +23 -22
- 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 +224 -268
- 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 +283 -361
- 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
|
-
program?:
|
|
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,31 +411,27 @@ 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
|
*/
|
|
470
424
|
externalId?: string | null;
|
|
471
425
|
}
|
|
472
|
-
export interface
|
|
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
|
*/
|
|
@@ -588,6 +540,56 @@ export interface BenefitReservationReleased {
|
|
|
588
540
|
*/
|
|
589
541
|
transactionId?: string;
|
|
590
542
|
}
|
|
543
|
+
export interface PoolProvisionJobFinished {
|
|
544
|
+
/**
|
|
545
|
+
* Program id
|
|
546
|
+
* @format GUID
|
|
547
|
+
*/
|
|
548
|
+
programId?: string;
|
|
549
|
+
/** Processed item count */
|
|
550
|
+
processedItemCount?: number;
|
|
551
|
+
/** Origin of the pool */
|
|
552
|
+
origin?: PoolOrigin;
|
|
553
|
+
}
|
|
554
|
+
export interface PoolStatusUpdateJobFinished extends PoolStatusUpdateJobFinishedContextOneOf {
|
|
555
|
+
/** The id of the pool definition that is being updated */
|
|
556
|
+
poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;
|
|
557
|
+
/** Update the status of all pools in the program */
|
|
558
|
+
programInfo?: ProgramInfo;
|
|
559
|
+
/** Target status of the pool */
|
|
560
|
+
targetStatus?: PoolStatus;
|
|
561
|
+
/** The total number of items that were processed */
|
|
562
|
+
processedItemCount?: number;
|
|
563
|
+
}
|
|
564
|
+
/** @oneof */
|
|
565
|
+
export interface PoolStatusUpdateJobFinishedContextOneOf {
|
|
566
|
+
/** The id of the pool definition that is being updated */
|
|
567
|
+
poolDefinitionAndProgramDefinition?: PoolDefinitionAndProgramDefinition;
|
|
568
|
+
/** Update the status of all pools in the program */
|
|
569
|
+
programInfo?: ProgramInfo;
|
|
570
|
+
}
|
|
571
|
+
export interface PoolDefinitionAndProgramDefinition {
|
|
572
|
+
/**
|
|
573
|
+
* The id of the pool definition that is being updated
|
|
574
|
+
* @format GUID
|
|
575
|
+
* @readonly
|
|
576
|
+
*/
|
|
577
|
+
poolDefinitionId?: string;
|
|
578
|
+
/**
|
|
579
|
+
* The key of the program that is being updated
|
|
580
|
+
* @format GUID
|
|
581
|
+
*/
|
|
582
|
+
programDefinitionId?: string | null;
|
|
583
|
+
}
|
|
584
|
+
export interface ProgramInfo {
|
|
585
|
+
/**
|
|
586
|
+
* The key of the program that is being updated
|
|
587
|
+
* @format GUID
|
|
588
|
+
*/
|
|
589
|
+
programId?: string;
|
|
590
|
+
/** Additional data that was provided when the job was submitted */
|
|
591
|
+
additionalData?: Record<string, any> | null;
|
|
592
|
+
}
|
|
591
593
|
export interface CreatePoolRequest {
|
|
592
594
|
/** Pool to be created. */
|
|
593
595
|
pool?: Pool;
|
|
@@ -608,7 +610,7 @@ export interface GetPoolResponse {
|
|
|
608
610
|
pool?: Pool;
|
|
609
611
|
}
|
|
610
612
|
export interface UpdatePoolRequest {
|
|
611
|
-
/** Pool to
|
|
613
|
+
/** Pool to update. */
|
|
612
614
|
pool: Pool;
|
|
613
615
|
}
|
|
614
616
|
export interface UpdatePoolResponse {
|
|
@@ -625,7 +627,7 @@ export interface DeletePoolRequest {
|
|
|
625
627
|
export interface DeletePoolResponse {
|
|
626
628
|
}
|
|
627
629
|
export interface QueryPoolsRequest {
|
|
628
|
-
/**
|
|
630
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
629
631
|
query: CursorQuery;
|
|
630
632
|
}
|
|
631
633
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -683,7 +685,7 @@ export interface CursorPaging {
|
|
|
683
685
|
cursor?: string | null;
|
|
684
686
|
}
|
|
685
687
|
export interface QueryPoolsResponse {
|
|
686
|
-
/** List of pools. */
|
|
688
|
+
/** List of retrieved pools. */
|
|
687
689
|
pools?: Pool[];
|
|
688
690
|
/** Metadata for the paginated results. */
|
|
689
691
|
metadata?: CursorPagingMetadata;
|
|
@@ -715,30 +717,26 @@ export interface Cursors {
|
|
|
715
717
|
}
|
|
716
718
|
export interface RedeemBenefitRequest {
|
|
717
719
|
/**
|
|
718
|
-
* ID of the benefit
|
|
720
|
+
* ID of the pool that benefit to redeem belongs to.
|
|
719
721
|
* @format GUID
|
|
720
722
|
*/
|
|
721
723
|
poolId: string;
|
|
722
|
-
/**
|
|
724
|
+
/** Information about the item being to redeem. */
|
|
723
725
|
itemReference: ItemReference;
|
|
724
726
|
/**
|
|
725
|
-
* Key of the
|
|
726
|
-
*
|
|
727
|
-
* This needs to be specified to ensure the correct benefit is redeemed.
|
|
727
|
+
* Key of the benefit to redeem.
|
|
728
728
|
* @maxLength 64
|
|
729
729
|
*/
|
|
730
730
|
benefitKey: string;
|
|
731
731
|
/**
|
|
732
|
-
*
|
|
732
|
+
* Amount of items to redeem.
|
|
733
733
|
* @min 1
|
|
734
734
|
*/
|
|
735
735
|
count?: number;
|
|
736
736
|
/**
|
|
737
|
-
* Date
|
|
737
|
+
* Date that the item will be provided to the beneficiary.
|
|
738
738
|
*
|
|
739
|
-
*
|
|
740
|
-
*
|
|
741
|
-
* Used for the app providing the benefit items to manage the logistics associated with the item.
|
|
739
|
+
* The pool's associated balance will update immediately. This parameter should be used to manage the logistics of providing the item.
|
|
742
740
|
*/
|
|
743
741
|
targetDate?: Date | null;
|
|
744
742
|
/**
|
|
@@ -749,12 +747,10 @@ export interface RedeemBenefitRequest {
|
|
|
749
747
|
idempotencyKey: string;
|
|
750
748
|
/** Additional information. */
|
|
751
749
|
additionalData?: Record<string, any> | null;
|
|
752
|
-
/**
|
|
750
|
+
/** Beneficiary of the pool containing the benefit to redeem. */
|
|
753
751
|
beneficiary?: CommonIdentificationData;
|
|
754
752
|
/**
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
* Must match the previously defined namespace in the associated pool definition.
|
|
753
|
+
* Namespace for your app or site's benefit programs.
|
|
758
754
|
* @minLength 1
|
|
759
755
|
* @maxLength 50
|
|
760
756
|
*/
|
|
@@ -762,40 +758,40 @@ export interface RedeemBenefitRequest {
|
|
|
762
758
|
}
|
|
763
759
|
export interface RedeemBenefitResponse {
|
|
764
760
|
/**
|
|
765
|
-
*
|
|
761
|
+
* ID of the transaction recording the associated change in balance.
|
|
766
762
|
* @format GUID
|
|
767
763
|
*/
|
|
768
764
|
transactionId?: string;
|
|
769
765
|
}
|
|
770
766
|
export interface NotEnoughBalance {
|
|
771
767
|
/**
|
|
772
|
-
* Pool ID
|
|
768
|
+
* Pool ID.
|
|
773
769
|
* @format GUID
|
|
774
770
|
*/
|
|
775
771
|
poolId?: string;
|
|
776
|
-
/** Item reference */
|
|
772
|
+
/** Item reference. */
|
|
777
773
|
itemReference?: ItemReference;
|
|
778
774
|
/**
|
|
779
|
-
*
|
|
775
|
+
* Pool's associated balance amount in credits.
|
|
780
776
|
* @decimalValue options { maxScale:4 }
|
|
781
777
|
*/
|
|
782
778
|
availableBalance?: string;
|
|
783
779
|
/**
|
|
784
|
-
* Price of the item
|
|
780
|
+
* Price of the item in credits.
|
|
785
781
|
* @decimalValue options { maxScale:4 }
|
|
786
782
|
*/
|
|
787
783
|
requestedBalance?: string;
|
|
788
784
|
}
|
|
789
785
|
export interface PolicyExpressionEvaluatedToFalse {
|
|
790
786
|
/**
|
|
791
|
-
* Pool ID
|
|
787
|
+
* Pool ID.
|
|
792
788
|
* @format GUID
|
|
793
789
|
*/
|
|
794
790
|
poolId?: string;
|
|
795
|
-
/** Item reference */
|
|
791
|
+
/** Item reference. */
|
|
796
792
|
itemReference?: ItemReference;
|
|
797
793
|
/**
|
|
798
|
-
* Failure details
|
|
794
|
+
* Failure details.
|
|
799
795
|
* @maxSize 10
|
|
800
796
|
*/
|
|
801
797
|
failureDetails?: FailureDetails[];
|
|
@@ -827,16 +823,16 @@ export interface FailureDetails {
|
|
|
827
823
|
}
|
|
828
824
|
export interface PoolNotActive {
|
|
829
825
|
/**
|
|
830
|
-
* Pool ID
|
|
826
|
+
* Pool ID.
|
|
831
827
|
* @format GUID
|
|
832
828
|
*/
|
|
833
829
|
poolId?: string;
|
|
834
|
-
/** Pool status */
|
|
830
|
+
/** Pool status. */
|
|
835
831
|
poolStatus?: PoolStatus;
|
|
836
832
|
}
|
|
837
833
|
export interface PoolNotFound {
|
|
838
834
|
/**
|
|
839
|
-
* Pool ID
|
|
835
|
+
* Pool ID.
|
|
840
836
|
* @format GUID
|
|
841
837
|
*/
|
|
842
838
|
poolId?: string;
|
|
@@ -855,12 +851,12 @@ export interface BenefitAlreadyRedeemed {
|
|
|
855
851
|
}
|
|
856
852
|
export interface BenefitNotFound {
|
|
857
853
|
/**
|
|
858
|
-
* Pool ID
|
|
854
|
+
* Pool ID.
|
|
859
855
|
* @format GUID
|
|
860
856
|
*/
|
|
861
857
|
poolId?: string;
|
|
862
858
|
/**
|
|
863
|
-
*
|
|
859
|
+
* Provided benefit key.
|
|
864
860
|
* @format GUID
|
|
865
861
|
*/
|
|
866
862
|
benefitKey?: string | null;
|
|
@@ -952,106 +948,86 @@ export interface ReleaseBenefitReservationResponse {
|
|
|
952
948
|
}
|
|
953
949
|
export interface CheckBenefitEligibilityRequest {
|
|
954
950
|
/**
|
|
955
|
-
* ID of the benefit
|
|
951
|
+
* ID of the pool that benefit to check belongs to.
|
|
956
952
|
* @format GUID
|
|
957
953
|
*/
|
|
958
954
|
poolId: string;
|
|
959
955
|
/**
|
|
960
|
-
* Key of the benefit to
|
|
961
|
-
*
|
|
962
|
-
* This key must be specified to ensure the correct benefit is redeemed.
|
|
963
|
-
*
|
|
964
|
-
* Default: The first eligible benefit in the benefit pool will be redeemed.
|
|
956
|
+
* Key of the benefit to check.
|
|
965
957
|
* @maxLength 64
|
|
966
958
|
*/
|
|
967
959
|
benefitKey?: string | null;
|
|
968
|
-
/**
|
|
960
|
+
/** Information about the item being to check. */
|
|
969
961
|
itemReference: ItemReference;
|
|
970
962
|
/**
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
* 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.
|
|
974
964
|
* @min 1
|
|
975
965
|
*/
|
|
976
966
|
count?: number;
|
|
977
967
|
/**
|
|
978
|
-
* Date
|
|
968
|
+
* Date that the item will be provided to the beneficiary.
|
|
979
969
|
*
|
|
980
|
-
*
|
|
981
|
-
*
|
|
982
|
-
* 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.
|
|
983
971
|
*/
|
|
984
972
|
targetDate?: Date | null;
|
|
985
|
-
/** Additional
|
|
973
|
+
/** Additional information. */
|
|
986
974
|
additionalData?: Record<string, any> | null;
|
|
987
|
-
/**
|
|
975
|
+
/** Beneficiary of the pool containing the benefit to check. */
|
|
988
976
|
beneficiary?: CommonIdentificationData;
|
|
989
977
|
/**
|
|
990
|
-
*
|
|
991
|
-
*
|
|
992
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
993
|
-
*
|
|
994
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
978
|
+
* Namespace for your app or site's benefit programs.
|
|
995
979
|
* @minLength 1
|
|
996
980
|
* @maxLength 50
|
|
997
981
|
*/
|
|
998
982
|
namespace: string;
|
|
999
983
|
}
|
|
1000
984
|
export interface CheckBenefitEligibilityResponse {
|
|
1001
|
-
/**
|
|
1002
|
-
* Result of the eligibility check. Includes the benefit's eligibility.
|
|
1003
|
-
*
|
|
1004
|
-
* If the benefit is not eligible for redemption, provides a reason for ineligiblity.
|
|
1005
|
-
*/
|
|
985
|
+
/** Result of the eligibility check. */
|
|
1006
986
|
result?: EligibilityCheckResult;
|
|
1007
987
|
}
|
|
1008
988
|
export interface EligibilityCheckResult extends EligibilityCheckResultResultOneOf {
|
|
1009
|
-
/**
|
|
989
|
+
/** Returned when item is eligible to be redeemed. */
|
|
1010
990
|
eligibleOptions?: Eligible;
|
|
1011
|
-
/**
|
|
991
|
+
/** Returned when balance is lower than the cost of redeeming the items. */
|
|
1012
992
|
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1013
|
-
/**
|
|
1014
|
-
policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;
|
|
1015
|
-
/** Set when pool is inactive. */
|
|
993
|
+
/** Returned when the pool isn't active. */
|
|
1016
994
|
poolNotActiveOptions?: PoolNotActive;
|
|
1017
|
-
/**
|
|
995
|
+
/** Returned when invalid benefit details are provided. */
|
|
1018
996
|
benefitNotFoundOptions?: BenefitNotFound;
|
|
1019
|
-
/**
|
|
997
|
+
/** Returned when invalid pool details are provided. */
|
|
1020
998
|
poolNotFoundOptions?: PoolNotFound;
|
|
1021
999
|
/** Eligibility status. */
|
|
1022
1000
|
type?: EligibilityCheckResultType;
|
|
1023
1001
|
}
|
|
1024
1002
|
/** @oneof */
|
|
1025
1003
|
export interface EligibilityCheckResultResultOneOf {
|
|
1026
|
-
/**
|
|
1004
|
+
/** Returned when item is eligible to be redeemed. */
|
|
1027
1005
|
eligibleOptions?: Eligible;
|
|
1028
|
-
/**
|
|
1006
|
+
/** Returned when balance is lower than the cost of redeeming the items. */
|
|
1029
1007
|
notEnoughBalanceOptions?: NotEnoughBalance;
|
|
1030
|
-
/**
|
|
1031
|
-
policyExpressionEvaluatedToFalseOptions?: PolicyExpressionEvaluatedToFalse;
|
|
1032
|
-
/** Set when pool is inactive. */
|
|
1008
|
+
/** Returned when the pool isn't active. */
|
|
1033
1009
|
poolNotActiveOptions?: PoolNotActive;
|
|
1034
|
-
/**
|
|
1010
|
+
/** Returned when invalid benefit details are provided. */
|
|
1035
1011
|
benefitNotFoundOptions?: BenefitNotFound;
|
|
1036
|
-
/**
|
|
1012
|
+
/** Returned when invalid pool details are provided. */
|
|
1037
1013
|
poolNotFoundOptions?: PoolNotFound;
|
|
1038
1014
|
}
|
|
1039
1015
|
export interface EligibleBenefit {
|
|
1040
1016
|
/**
|
|
1041
|
-
* Pool ID
|
|
1017
|
+
* Pool ID.
|
|
1042
1018
|
* @format GUID
|
|
1043
1019
|
* @readonly
|
|
1044
1020
|
*/
|
|
1045
1021
|
poolId?: string;
|
|
1046
1022
|
/**
|
|
1047
|
-
*
|
|
1023
|
+
* Benefit key.
|
|
1048
1024
|
* @maxLength 64
|
|
1049
1025
|
*/
|
|
1050
1026
|
benefitKey?: string;
|
|
1051
|
-
/** Item reference */
|
|
1027
|
+
/** Item reference. */
|
|
1052
1028
|
itemReference?: ItemReference;
|
|
1053
1029
|
/**
|
|
1054
|
-
* Price of the
|
|
1030
|
+
* Price of the benefit in credits.
|
|
1055
1031
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
1056
1032
|
*/
|
|
1057
1033
|
price?: string | null;
|
|
@@ -1059,126 +1035,108 @@ export interface EligibleBenefit {
|
|
|
1059
1035
|
export declare enum EligibilityCheckResultType {
|
|
1060
1036
|
/** Unknown pool eligibility. */
|
|
1061
1037
|
UNKNOWN = "UNKNOWN",
|
|
1062
|
-
/**
|
|
1038
|
+
/** Item is eligible to be redeemed. */
|
|
1063
1039
|
ELIGIBLE = "ELIGIBLE",
|
|
1064
|
-
/**
|
|
1040
|
+
/** Balance is lower than the cost of redeeming the items. */
|
|
1065
1041
|
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
1066
|
-
/**
|
|
1067
|
-
POLICY_EXPRESSION_EVALUATED_TO_FALSE = "POLICY_EXPRESSION_EVALUATED_TO_FALSE",
|
|
1068
|
-
/** Inactive pool. */
|
|
1042
|
+
/** Pool isn't active. */
|
|
1069
1043
|
POOL_NOT_ACTIVE = "POOL_NOT_ACTIVE",
|
|
1070
|
-
/** Invalid benefit. */
|
|
1044
|
+
/** Invalid benefit details provided. */
|
|
1071
1045
|
BENEFIT_NOT_FOUND = "BENEFIT_NOT_FOUND",
|
|
1072
|
-
/** Invalid pool. */
|
|
1046
|
+
/** Invalid pool details provided. */
|
|
1073
1047
|
POOL_NOT_FOUND = "POOL_NOT_FOUND"
|
|
1074
1048
|
}
|
|
1075
1049
|
export interface Eligible {
|
|
1076
1050
|
/**
|
|
1077
|
-
*
|
|
1051
|
+
* Benefits that are eligible to be redeemed.
|
|
1078
1052
|
* @maxSize 100
|
|
1079
1053
|
*/
|
|
1080
1054
|
eligibleBenefits?: EligibleBenefit[];
|
|
1081
1055
|
}
|
|
1082
1056
|
export interface BulkCheckBenefitEligibilityRequest {
|
|
1083
1057
|
/**
|
|
1084
|
-
*
|
|
1058
|
+
* List of benefits to check.
|
|
1085
1059
|
* @minSize 1
|
|
1086
1060
|
* @maxSize 100
|
|
1087
1061
|
*/
|
|
1088
1062
|
benefitSelectors?: BenefitSelector[];
|
|
1089
1063
|
/**
|
|
1090
|
-
*
|
|
1091
|
-
*
|
|
1092
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
1093
|
-
*
|
|
1094
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
1064
|
+
* Namespace for your app or site's benefit programs.
|
|
1095
1065
|
* @minLength 1
|
|
1096
1066
|
* @maxLength 50
|
|
1097
1067
|
*/
|
|
1098
1068
|
namespace: string;
|
|
1099
|
-
/**
|
|
1069
|
+
/** Pool beneficiary. */
|
|
1100
1070
|
beneficiary?: CommonIdentificationData;
|
|
1101
1071
|
}
|
|
1102
1072
|
export interface BenefitSelector {
|
|
1103
1073
|
/**
|
|
1104
|
-
* ID of the pool to check
|
|
1074
|
+
* ID of the pool that benefit to check belongs to.
|
|
1105
1075
|
* @format GUID
|
|
1106
1076
|
*/
|
|
1107
1077
|
poolId?: string;
|
|
1108
1078
|
/**
|
|
1109
|
-
*
|
|
1079
|
+
* Key of the benefit to check.
|
|
1110
1080
|
* @maxLength 64
|
|
1111
1081
|
*/
|
|
1112
1082
|
benefitKey?: string | null;
|
|
1113
|
-
/**
|
|
1083
|
+
/** Information about the item being to check. */
|
|
1114
1084
|
itemReference?: ItemReference;
|
|
1115
1085
|
/**
|
|
1116
|
-
*
|
|
1117
|
-
*
|
|
1118
|
-
* 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.
|
|
1119
1087
|
* @min 1
|
|
1120
1088
|
*/
|
|
1121
1089
|
count?: number;
|
|
1122
1090
|
/**
|
|
1123
|
-
* Date
|
|
1124
|
-
*
|
|
1125
|
-
* 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.
|
|
1126
1092
|
*
|
|
1127
|
-
*
|
|
1093
|
+
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1128
1094
|
*/
|
|
1129
1095
|
targetDate?: Date | null;
|
|
1130
|
-
/** Additional
|
|
1096
|
+
/** Additional information. */
|
|
1131
1097
|
additionalData?: Record<string, any> | null;
|
|
1132
1098
|
}
|
|
1133
1099
|
export interface BulkCheckBenefitEligibilityResponse {
|
|
1134
1100
|
/**
|
|
1135
|
-
* List of results
|
|
1101
|
+
* List of results checking each benefit.
|
|
1136
1102
|
* @minSize 1
|
|
1137
1103
|
* @maxSize 100
|
|
1138
1104
|
*/
|
|
1139
1105
|
results?: BulkEligibilityCheckResult[];
|
|
1140
1106
|
}
|
|
1141
1107
|
export interface BulkEligibilityCheckResult {
|
|
1142
|
-
/**
|
|
1108
|
+
/** Benefit information specified in API call. */
|
|
1143
1109
|
benefitSelector?: BenefitSelector;
|
|
1144
|
-
/**
|
|
1110
|
+
/** Result of the eligibility check. */
|
|
1145
1111
|
result?: EligibilityCheckResult;
|
|
1146
1112
|
}
|
|
1147
1113
|
export interface GetEligibleBenefitsRequest {
|
|
1148
|
-
/**
|
|
1114
|
+
/** Item reference. */
|
|
1149
1115
|
itemReference: ItemReference;
|
|
1150
1116
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1153
|
-
* 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.
|
|
1154
1118
|
* @min 1
|
|
1155
1119
|
*/
|
|
1156
1120
|
count?: number;
|
|
1157
1121
|
/**
|
|
1158
|
-
* Date
|
|
1159
|
-
*
|
|
1160
|
-
* 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.
|
|
1161
1123
|
*
|
|
1162
|
-
*
|
|
1124
|
+
* This parameter should be used to manage the potential logistics of providing the item.
|
|
1163
1125
|
*/
|
|
1164
1126
|
targetDate?: Date | null;
|
|
1165
1127
|
/** Additional information. */
|
|
1166
1128
|
additionalData?: Record<string, any> | null;
|
|
1167
|
-
/**
|
|
1129
|
+
/** Filter request by beneficiary. */
|
|
1168
1130
|
beneficiary?: CommonIdentificationData;
|
|
1169
1131
|
/**
|
|
1170
|
-
*
|
|
1171
|
-
*
|
|
1172
|
-
* This value must correspond with the previously defined namespace established when creating the associated pool definition.
|
|
1173
|
-
*
|
|
1174
|
-
* It ensures efficient processing and management of pools and benefits.
|
|
1132
|
+
* Namespace for your app or site's benefit programs.
|
|
1175
1133
|
* @minLength 1
|
|
1176
1134
|
* @maxLength 50
|
|
1177
1135
|
*/
|
|
1178
1136
|
namespace: string;
|
|
1179
1137
|
}
|
|
1180
1138
|
export interface GetEligibleBenefitsResponse {
|
|
1181
|
-
/** Retrieved
|
|
1139
|
+
/** Retrieved benefits that can be redeemed. */
|
|
1182
1140
|
eligibleBenefits?: EligibleBenefit[];
|
|
1183
1141
|
}
|
|
1184
1142
|
export interface ListPoolsRequest {
|
|
@@ -1269,9 +1227,7 @@ export interface MaskedPool {
|
|
|
1269
1227
|
}
|
|
1270
1228
|
export interface BulkUpdatePoolsResponse {
|
|
1271
1229
|
/**
|
|
1272
|
-
* List of
|
|
1273
|
-
*
|
|
1274
|
-
* Includes the pool, pool metadata, and whether the update was successful.
|
|
1230
|
+
* List of updated pools and associated metadata.
|
|
1275
1231
|
* @minSize 1
|
|
1276
1232
|
* @maxSize 100
|
|
1277
1233
|
*/
|
|
@@ -1282,7 +1238,7 @@ export interface BulkUpdatePoolsResponse {
|
|
|
1282
1238
|
export interface BulkPoolResult {
|
|
1283
1239
|
/** Pool metadata. */
|
|
1284
1240
|
poolMetadata?: ItemMetadata;
|
|
1285
|
-
/**
|
|
1241
|
+
/** Pool data. */
|
|
1286
1242
|
pool?: Pool;
|
|
1287
1243
|
}
|
|
1288
1244
|
export interface ItemMetadata {
|
|
@@ -1663,7 +1619,7 @@ interface DetailsNonNullableFields {
|
|
|
1663
1619
|
interface ProgramDefinitionInfoNonNullableFields {
|
|
1664
1620
|
id: string;
|
|
1665
1621
|
}
|
|
1666
|
-
interface
|
|
1622
|
+
interface PoolProgramInfoNonNullableFields {
|
|
1667
1623
|
id: string;
|
|
1668
1624
|
}
|
|
1669
1625
|
interface PoolNonNullableFields {
|
|
@@ -1672,7 +1628,7 @@ interface PoolNonNullableFields {
|
|
|
1672
1628
|
details?: DetailsNonNullableFields;
|
|
1673
1629
|
displayName: string;
|
|
1674
1630
|
programDefinition?: ProgramDefinitionInfoNonNullableFields;
|
|
1675
|
-
program?:
|
|
1631
|
+
program?: PoolProgramInfoNonNullableFields;
|
|
1676
1632
|
previousStatus: PoolStatus;
|
|
1677
1633
|
origin: PoolOrigin;
|
|
1678
1634
|
}
|