@wix/auto_sdk_benefit-programs_pools 1.0.79 → 1.0.80
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/index.d.ts +1 -1
- package/build/cjs/index.js +61 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +88 -1
- package/build/cjs/index.typings.js +52 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +82 -2
- package/build/cjs/meta.js +41 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +60 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +88 -1
- package/build/es/index.typings.mjs +51 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +82 -2
- package/build/es/meta.mjs +40 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -3
- package/build/internal/cjs/index.js +61 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +106 -1
- package/build/internal/cjs/index.typings.js +52 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +82 -2
- package/build/internal/cjs/meta.js +41 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +20 -3
- package/build/internal/es/index.mjs +60 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +106 -1
- package/build/internal/es/index.typings.mjs +51 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +82 -2
- package/build/internal/es/meta.mjs +40 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetPoolRequest as GetPoolRequest$1, GetPoolResponse as GetPoolResponse$1, UpdatePoolRequest as UpdatePoolRequest$1, UpdatePoolResponse as UpdatePoolResponse$1, QueryPoolsRequest as QueryPoolsRequest$1, QueryPoolsResponse as QueryPoolsResponse$1, RedeemBenefitRequest as RedeemBenefitRequest$1, RedeemBenefitResponse as RedeemBenefitResponse$1, ReallocateBenefitRequest as ReallocateBenefitRequest$1, ReallocateBenefitResponse as ReallocateBenefitResponse$1, CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponse$1, GetEligibleBenefitsRequest as GetEligibleBenefitsRequest$1, GetEligibleBenefitsResponse as GetEligibleBenefitsResponse$1, BulkUpdatePoolsRequest as BulkUpdatePoolsRequest$1, BulkUpdatePoolsResponse as BulkUpdatePoolsResponse$1, CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponse$1 } from './index.typings.js';
|
|
1
|
+
import { GetPoolRequest as GetPoolRequest$1, GetPoolResponse as GetPoolResponse$1, UpdatePoolRequest as UpdatePoolRequest$1, UpdatePoolResponse as UpdatePoolResponse$1, QueryPoolsRequest as QueryPoolsRequest$1, QueryPoolsResponse as QueryPoolsResponse$1, RedeemBenefitRequest as RedeemBenefitRequest$1, RedeemBenefitResponse as RedeemBenefitResponse$1, ReallocateBenefitRequest as ReallocateBenefitRequest$1, ReallocateBenefitResponse as ReallocateBenefitResponse$1, CancelRedemptionRequest as CancelRedemptionRequest$1, CancelRedemptionResponse as CancelRedemptionResponse$1, CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponse$1, GetEligibleBenefitsRequest as GetEligibleBenefitsRequest$1, GetEligibleBenefitsResponse as GetEligibleBenefitsResponse$1, BulkUpdatePoolsRequest as BulkUpdatePoolsRequest$1, BulkUpdatePoolsResponse as BulkUpdatePoolsResponse$1, CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Pool {
|
|
@@ -689,6 +689,38 @@ interface ReallocationDetails {
|
|
|
689
689
|
/** Beneficiary of the entitlement */
|
|
690
690
|
beneficiary?: CommonIdentificationData;
|
|
691
691
|
}
|
|
692
|
+
interface RedemptionCanceled {
|
|
693
|
+
/** Pool which the canceled redemption belongs to */
|
|
694
|
+
pool?: Pool;
|
|
695
|
+
/** Details of the cancellation */
|
|
696
|
+
cancellationDetails?: CancellationDetails;
|
|
697
|
+
}
|
|
698
|
+
interface CancellationDetails {
|
|
699
|
+
/**
|
|
700
|
+
* Id of the cancellation transaction. This is the terminal transaction of the chain
|
|
701
|
+
* @format GUID
|
|
702
|
+
*/
|
|
703
|
+
transactionId?: string;
|
|
704
|
+
/**
|
|
705
|
+
* Id of the transaction superseded by the cancellation
|
|
706
|
+
* @format GUID
|
|
707
|
+
*/
|
|
708
|
+
previousTransactionId?: string;
|
|
709
|
+
/** Reference of the item whose redemption was canceled */
|
|
710
|
+
itemReference?: ItemReference;
|
|
711
|
+
/**
|
|
712
|
+
* Number of items that were redeemed
|
|
713
|
+
* @min 1
|
|
714
|
+
*/
|
|
715
|
+
itemCount?: number;
|
|
716
|
+
/**
|
|
717
|
+
* Idempotency key of the cancellation request
|
|
718
|
+
* @maxLength 200
|
|
719
|
+
*/
|
|
720
|
+
idempotencyKey?: string;
|
|
721
|
+
/** Beneficiary of the entitlement */
|
|
722
|
+
beneficiary?: CommonIdentificationData;
|
|
723
|
+
}
|
|
692
724
|
interface PoolPaused {
|
|
693
725
|
/** Pool which has been paused */
|
|
694
726
|
pool?: Pool;
|
|
@@ -1293,6 +1325,27 @@ interface AlreadyExecuted {
|
|
|
1293
1325
|
*/
|
|
1294
1326
|
idempotencyKey?: string;
|
|
1295
1327
|
}
|
|
1328
|
+
interface CancelRedemptionRequest {
|
|
1329
|
+
/**
|
|
1330
|
+
* ID of the latest transaction in the redemption's transaction chain.
|
|
1331
|
+
* For a redemption that has never been reallocated, this is the redemption transaction ID.
|
|
1332
|
+
* @format GUID
|
|
1333
|
+
*/
|
|
1334
|
+
transactionId: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* Unique identifier, generated by the client.
|
|
1337
|
+
* Used to recognize repeated attempts to make the same request.
|
|
1338
|
+
* @maxLength 200
|
|
1339
|
+
*/
|
|
1340
|
+
idempotencyKey: string;
|
|
1341
|
+
}
|
|
1342
|
+
interface CancelRedemptionResponse {
|
|
1343
|
+
/**
|
|
1344
|
+
* ID of the cancellation transaction. This is the terminal transaction of the chain.
|
|
1345
|
+
* @format GUID
|
|
1346
|
+
*/
|
|
1347
|
+
transactionId?: string;
|
|
1348
|
+
}
|
|
1296
1349
|
interface ReserveBenefitRequest {
|
|
1297
1350
|
/**
|
|
1298
1351
|
* Id of the pool that is being redeemed from
|
|
@@ -2203,6 +2256,32 @@ type ReallocateBenefitApplicationErrors = {
|
|
|
2203
2256
|
data?: AlreadyExecuted;
|
|
2204
2257
|
};
|
|
2205
2258
|
/** @docsIgnore */
|
|
2259
|
+
type CancelRedemptionApplicationErrors = {
|
|
2260
|
+
code?: 'TRANSACTION_NOT_FOUND';
|
|
2261
|
+
description?: string;
|
|
2262
|
+
data?: TransactionNotFound;
|
|
2263
|
+
} | {
|
|
2264
|
+
code?: 'NOT_LATEST_TRANSACTION';
|
|
2265
|
+
description?: string;
|
|
2266
|
+
data?: NotLatestTransaction;
|
|
2267
|
+
} | {
|
|
2268
|
+
code?: 'REDEMPTION_ALREADY_CANCELED';
|
|
2269
|
+
description?: string;
|
|
2270
|
+
data?: RedemptionAlreadyCanceled;
|
|
2271
|
+
} | {
|
|
2272
|
+
code?: 'TRANSACTION_NOT_CANCELABLE';
|
|
2273
|
+
description?: string;
|
|
2274
|
+
data?: Record<string, any>;
|
|
2275
|
+
} | {
|
|
2276
|
+
code?: 'CHAIN_OPERATION_IN_PROGRESS';
|
|
2277
|
+
description?: string;
|
|
2278
|
+
data?: ChainOperationInProgress;
|
|
2279
|
+
} | {
|
|
2280
|
+
code?: 'ALREADY_EXECUTED';
|
|
2281
|
+
description?: string;
|
|
2282
|
+
data?: AlreadyExecuted;
|
|
2283
|
+
};
|
|
2284
|
+
/** @docsIgnore */
|
|
2206
2285
|
type GetEligibleBenefitsApplicationErrors = {
|
|
2207
2286
|
code?: 'INVALID_ITEM_REFERENCE';
|
|
2208
2287
|
description?: string;
|
|
@@ -2238,10 +2317,11 @@ declare function updatePool(): __PublicMethodMetaInfo<'PATCH', {
|
|
|
2238
2317
|
declare function queryPools(): __PublicMethodMetaInfo<'POST', {}, QueryPoolsRequest$1, QueryPoolsRequest, QueryPoolsResponse$1, QueryPoolsResponse>;
|
|
2239
2318
|
declare function redeemBenefit(): __PublicMethodMetaInfo<'POST', {}, RedeemBenefitRequest$1, RedeemBenefitRequest, RedeemBenefitResponse$1, RedeemBenefitResponse>;
|
|
2240
2319
|
declare function reallocateBenefit(): __PublicMethodMetaInfo<'POST', {}, ReallocateBenefitRequest$1, ReallocateBenefitRequest, ReallocateBenefitResponse$1, ReallocateBenefitResponse>;
|
|
2320
|
+
declare function cancelRedemption(): __PublicMethodMetaInfo<'POST', {}, CancelRedemptionRequest$1, CancelRedemptionRequest, CancelRedemptionResponse$1, CancelRedemptionResponse>;
|
|
2241
2321
|
declare function checkBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityRequest$1, CheckBenefitEligibilityRequest, CheckBenefitEligibilityResponse$1, CheckBenefitEligibilityResponse>;
|
|
2242
2322
|
declare function bulkCheckBenefitEligibility(): __PublicMethodMetaInfo<'POST', {}, BulkCheckBenefitEligibilityRequest$1, BulkCheckBenefitEligibilityRequest, BulkCheckBenefitEligibilityResponse$1, BulkCheckBenefitEligibilityResponse>;
|
|
2243
2323
|
declare function getEligibleBenefits(): __PublicMethodMetaInfo<'POST', {}, GetEligibleBenefitsRequest$1, GetEligibleBenefitsRequest, GetEligibleBenefitsResponse$1, GetEligibleBenefitsResponse>;
|
|
2244
2324
|
declare function bulkUpdatePools(): __PublicMethodMetaInfo<'POST', {}, BulkUpdatePoolsRequest$1, BulkUpdatePoolsRequest, BulkUpdatePoolsResponse$1, BulkUpdatePoolsResponse>;
|
|
2245
2325
|
declare function checkBenefitEligibilityByFilter(): __PublicMethodMetaInfo<'POST', {}, CheckBenefitEligibilityByFilterRequest$1, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityByFilterResponse$1, CheckBenefitEligibilityByFilterResponse>;
|
|
2246
2326
|
|
|
2247
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AlreadyExecuted as AlreadyExecutedOriginal, type ApplicationError as ApplicationErrorOriginal, type AsyncResult as AsyncResultOriginal, type BalanceAmount as BalanceAmountOriginal, type BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal, type BenefitInfo as BenefitInfoOriginal, type BenefitNotFound as BenefitNotFoundOriginal, type Benefit as BenefitOriginal, type BenefitReallocated as BenefitReallocatedOriginal, type BenefitRedeemed as BenefitRedeemedOriginal, type BenefitReservationCanceled as BenefitReservationCanceledOriginal, type BenefitReservationReleased as BenefitReservationReleasedOriginal, type BenefitReserved as BenefitReservedOriginal, type BenefitResult as BenefitResultOriginal, type BenefitResultResultOneOf as BenefitResultResultOneOfOriginal, BenefitResultType as BenefitResultTypeOriginal, type BenefitResultTypeWithLiterals as BenefitResultTypeWithLiteralsOriginal, type BenefitSelector as BenefitSelectorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequestOriginal, type BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponseOriginal, type BulkEligibilityCheckResult as BulkEligibilityCheckResultOriginal, type BulkPoolResult as BulkPoolResultOriginal, type BulkUpdatePoolsRequest as BulkUpdatePoolsRequestOriginal, type BulkUpdatePoolsResponse as BulkUpdatePoolsResponseOriginal, type ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal, type ByProgramIdOptions as ByProgramIdOptionsOriginal, type CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal, type CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal, type ChainOperationInProgress as ChainOperationInProgressOriginal, type CheckBenefitEligibilityByFilterApplicationErrors as CheckBenefitEligibilityByFilterApplicationErrorsOriginal, type CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequestOriginal, type CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponseOriginal, type CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequestOriginal, type CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CountNumberOfPoolsInProvisioningStatusRequest as CountNumberOfPoolsInProvisioningStatusRequestOriginal, type CountNumberOfPoolsInProvisioningStatusResponse as CountNumberOfPoolsInProvisioningStatusResponseOriginal, type CreatePoolRequest as CreatePoolRequestOriginal, type CreatePoolResponse as CreatePoolResponseOriginal, type CreditConfiguration as CreditConfigurationOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomPolicy as CustomPolicyOriginal, type DeletePoolRequest as DeletePoolRequestOriginal, type DeletePoolResponse as DeletePoolResponseOriginal, type Details as DetailsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EligibilityCheckResult as EligibilityCheckResultOriginal, type EligibleBenefit as EligibleBenefitOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailureDetails as FailureDetailsOriginal, type FixedIntervalPolicy as FixedIntervalPolicyOriginal, type GetEligibleBenefitsApplicationErrors as GetEligibleBenefitsApplicationErrorsOriginal, type GetEligibleBenefitsRequest as GetEligibleBenefitsRequestOriginal, type GetEligibleBenefitsResponse as GetEligibleBenefitsResponseOriginal, type GetPoolRequest as GetPoolRequestOriginal, type GetPoolResponse as GetPoolResponseOriginal, type HealPoolRequest as HealPoolRequestOriginal, type HealPoolResponse as HealPoolResponseOriginal, type HealPoolTenantRequest as HealPoolTenantRequestOriginal, type HealPoolTenantResponse as HealPoolTenantResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, Intent as IntentOriginal, type IntentWithLiterals as IntentWithLiteralsOriginal, type InvalidPoolDefinitionReference as InvalidPoolDefinitionReferenceOriginal, type ItemMetadata as ItemMetadataOriginal, type ItemReference as ItemReferenceOriginal, type MaskedPool as MaskedPoolOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type NotEnoughBalance as NotEnoughBalanceOriginal, type NotLatestTransaction as NotLatestTransactionOriginal, type PolicyExpressionAnd as PolicyExpressionAndOriginal, type PolicyExpressionEvaluatedToFalse as PolicyExpressionEvaluatedToFalseOriginal, type PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal, type PolicyExpressionNot as PolicyExpressionNotOriginal, type PolicyExpressionOr as PolicyExpressionOrOriginal, type PolicyExpression as PolicyExpressionOriginal, PolicyExpressionType as PolicyExpressionTypeOriginal, type PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal, type Policy as PolicyOriginal, type PolicyPolicyOneOf as PolicyPolicyOneOfOriginal, type PoolDefinitionAndProgramDefinition as PoolDefinitionAndProgramDefinitionOriginal, type PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal, type PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal, type PoolEnded as PoolEndedOriginal, type PoolFilter as PoolFilterOriginal, type PoolInfo as PoolInfoOriginal, type PoolNotActive as PoolNotActiveOriginal, type PoolNotFound as PoolNotFoundOriginal, PoolOrigin as PoolOriginOriginal, type PoolOriginWithLiterals as PoolOriginWithLiteralsOriginal, type Pool as PoolOriginal, type PoolPaused as PoolPausedOriginal, type PoolProgramInfo as PoolProgramInfoOriginal, type PoolProvisionJobFinished as PoolProvisionJobFinishedOriginal, type PoolProvisioned as PoolProvisionedOriginal, type PoolRenewalActionActionOneOf as PoolRenewalActionActionOneOfOriginal, type PoolRenewalAction as PoolRenewalActionOriginal, PoolRenewalActionType as PoolRenewalActionTypeOriginal, type PoolRenewalActionTypeWithLiterals as PoolRenewalActionTypeWithLiteralsOriginal, type PoolRenewed as PoolRenewedOriginal, type PoolResumed as PoolResumedOriginal, type PoolSelector as PoolSelectorOriginal, PoolSelectorType as PoolSelectorTypeOriginal, type PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal, PoolStatus as PoolStatusOriginal, type PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal, type PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal, type PoolStatusUpdateParamsPoolInfo as PoolStatusUpdateParamsPoolInfoOriginal, type PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type ProgramInfo as ProgramInfoOriginal, type ProvisionPoolsForProgramRequest as ProvisionPoolsForProgramRequestOriginal, type ProvisionPoolsForProgramResponse as ProvisionPoolsForProgramResponseOriginal, type ProvisionPoolsForProgramResponseResultOneOf as ProvisionPoolsForProgramResponseResultOneOfOriginal, ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal, type ProvisionPoolsForProgramResponseTypeWithLiterals as ProvisionPoolsForProgramResponseTypeWithLiteralsOriginal, type QueryPoolsRequest as QueryPoolsRequestOriginal, type QueryPoolsResponse as QueryPoolsResponseOriginal, type RateLimitedPolicy as RateLimitedPolicyOriginal, type ReallocateBenefitApplicationErrors as ReallocateBenefitApplicationErrorsOriginal, type ReallocateBenefitRequest as ReallocateBenefitRequestOriginal, type ReallocateBenefitResponse as ReallocateBenefitResponseOriginal, type ReallocationDetails as ReallocationDetailsOriginal, type RedeemBenefitApplicationErrors as RedeemBenefitApplicationErrorsOriginal, type RedeemBenefitRequest as RedeemBenefitRequestOriginal, type RedeemBenefitResponse as RedeemBenefitResponseOriginal, type RedemptionAlreadyCanceled as RedemptionAlreadyCanceledOriginal, type RedemptionDetails as RedemptionDetailsOriginal, type ReleaseBenefitReservationRequest as ReleaseBenefitReservationRequestOriginal, type ReleaseBenefitReservationResponse as ReleaseBenefitReservationResponseOriginal, type RenewPoolsForProgramRequest as RenewPoolsForProgramRequestOriginal, type RenewPoolsForProgramResponse as RenewPoolsForProgramResponseOriginal, type ReserveBenefitRequest as ReserveBenefitRequestOriginal, type ReserveBenefitResponse as ReserveBenefitResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncResult as SyncResultOriginal, TimePeriod as TimePeriodOriginal, type TimePeriodWithLiterals as TimePeriodWithLiteralsOriginal, type TransactionNotFound as TransactionNotFoundOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type Update as UpdateOriginal, type UpdatePoolRequest as UpdatePoolRequestOriginal, type UpdatePoolResponse as UpdatePoolResponseOriginal, type UpdatePoolStatusRequest as UpdatePoolStatusRequestOriginal, type UpdatePoolStatusRequestPoolSelectorOneOf as UpdatePoolStatusRequestPoolSelectorOneOfOriginal, type UpdatePoolStatusResponse as UpdatePoolStatusResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeekDay as WeekDayOriginal, type WeekDayWithLiterals as WeekDayWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCheckBenefitEligibility, bulkUpdatePools, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, reallocateBenefit, redeemBenefit, updatePool };
|
|
2327
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AlreadyExecuted as AlreadyExecutedOriginal, type ApplicationError as ApplicationErrorOriginal, type AsyncResult as AsyncResultOriginal, type BalanceAmount as BalanceAmountOriginal, type BenefitAlreadyRedeemed as BenefitAlreadyRedeemedOriginal, type BenefitInfo as BenefitInfoOriginal, type BenefitNotFound as BenefitNotFoundOriginal, type Benefit as BenefitOriginal, type BenefitReallocated as BenefitReallocatedOriginal, type BenefitRedeemed as BenefitRedeemedOriginal, type BenefitReservationCanceled as BenefitReservationCanceledOriginal, type BenefitReservationReleased as BenefitReservationReleasedOriginal, type BenefitReserved as BenefitReservedOriginal, type BenefitResult as BenefitResultOriginal, type BenefitResultResultOneOf as BenefitResultResultOneOfOriginal, BenefitResultType as BenefitResultTypeOriginal, type BenefitResultTypeWithLiterals as BenefitResultTypeWithLiteralsOriginal, type BenefitSelector as BenefitSelectorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCheckBenefitEligibilityRequest as BulkCheckBenefitEligibilityRequestOriginal, type BulkCheckBenefitEligibilityResponse as BulkCheckBenefitEligibilityResponseOriginal, type BulkEligibilityCheckResult as BulkEligibilityCheckResultOriginal, type BulkPoolResult as BulkPoolResultOriginal, type BulkUpdatePoolsRequest as BulkUpdatePoolsRequestOriginal, type BulkUpdatePoolsResponse as BulkUpdatePoolsResponseOriginal, type ByPoolDefinitionIdAndProgramDefinitionIdOptions as ByPoolDefinitionIdAndProgramDefinitionIdOptionsOriginal, type ByProgramIdOptions as ByProgramIdOptionsOriginal, type CancelBenefitReservationRequest as CancelBenefitReservationRequestOriginal, type CancelBenefitReservationResponse as CancelBenefitReservationResponseOriginal, type CancelRedemptionApplicationErrors as CancelRedemptionApplicationErrorsOriginal, type CancelRedemptionRequest as CancelRedemptionRequestOriginal, type CancelRedemptionResponse as CancelRedemptionResponseOriginal, type CancellationDetails as CancellationDetailsOriginal, type ChainOperationInProgress as ChainOperationInProgressOriginal, type CheckBenefitEligibilityByFilterApplicationErrors as CheckBenefitEligibilityByFilterApplicationErrorsOriginal, type CheckBenefitEligibilityByFilterRequest as CheckBenefitEligibilityByFilterRequestOriginal, type CheckBenefitEligibilityByFilterResponse as CheckBenefitEligibilityByFilterResponseOriginal, type CheckBenefitEligibilityRequest as CheckBenefitEligibilityRequestOriginal, type CheckBenefitEligibilityResponse as CheckBenefitEligibilityResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type CountNumberOfPoolsInProvisioningStatusRequest as CountNumberOfPoolsInProvisioningStatusRequestOriginal, type CountNumberOfPoolsInProvisioningStatusResponse as CountNumberOfPoolsInProvisioningStatusResponseOriginal, type CreatePoolRequest as CreatePoolRequestOriginal, type CreatePoolResponse as CreatePoolResponseOriginal, type CreditConfiguration as CreditConfigurationOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomPolicy as CustomPolicyOriginal, type DeletePoolRequest as DeletePoolRequestOriginal, type DeletePoolResponse as DeletePoolResponseOriginal, type Details as DetailsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EligibilityCheckResult as EligibilityCheckResultOriginal, type EligibleBenefit as EligibleBenefitOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FailureDetails as FailureDetailsOriginal, type FixedIntervalPolicy as FixedIntervalPolicyOriginal, type GetEligibleBenefitsApplicationErrors as GetEligibleBenefitsApplicationErrorsOriginal, type GetEligibleBenefitsRequest as GetEligibleBenefitsRequestOriginal, type GetEligibleBenefitsResponse as GetEligibleBenefitsResponseOriginal, type GetPoolRequest as GetPoolRequestOriginal, type GetPoolResponse as GetPoolResponseOriginal, type HealPoolRequest as HealPoolRequestOriginal, type HealPoolResponse as HealPoolResponseOriginal, type HealPoolTenantRequest as HealPoolTenantRequestOriginal, type HealPoolTenantResponse as HealPoolTenantResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, Intent as IntentOriginal, type IntentWithLiterals as IntentWithLiteralsOriginal, type InvalidPoolDefinitionReference as InvalidPoolDefinitionReferenceOriginal, type ItemMetadata as ItemMetadataOriginal, type ItemReference as ItemReferenceOriginal, type MaskedPool as MaskedPoolOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type NotEnoughBalance as NotEnoughBalanceOriginal, type NotLatestTransaction as NotLatestTransactionOriginal, type PolicyExpressionAnd as PolicyExpressionAndOriginal, type PolicyExpressionEvaluatedToFalse as PolicyExpressionEvaluatedToFalseOriginal, type PolicyExpressionExpressionOneOf as PolicyExpressionExpressionOneOfOriginal, type PolicyExpressionNot as PolicyExpressionNotOriginal, type PolicyExpressionOr as PolicyExpressionOrOriginal, type PolicyExpression as PolicyExpressionOriginal, PolicyExpressionType as PolicyExpressionTypeOriginal, type PolicyExpressionTypeWithLiterals as PolicyExpressionTypeWithLiteralsOriginal, type Policy as PolicyOriginal, type PolicyPolicyOneOf as PolicyPolicyOneOfOriginal, type PoolDefinitionAndProgramDefinition as PoolDefinitionAndProgramDefinitionOriginal, type PoolDefinitionLookupIdIdOneOf as PoolDefinitionLookupIdIdOneOfOriginal, type PoolDefinitionLookupId as PoolDefinitionLookupIdOriginal, type PoolEnded as PoolEndedOriginal, type PoolFilter as PoolFilterOriginal, type PoolInfo as PoolInfoOriginal, type PoolNotActive as PoolNotActiveOriginal, type PoolNotFound as PoolNotFoundOriginal, PoolOrigin as PoolOriginOriginal, type PoolOriginWithLiterals as PoolOriginWithLiteralsOriginal, type Pool as PoolOriginal, type PoolPaused as PoolPausedOriginal, type PoolProgramInfo as PoolProgramInfoOriginal, type PoolProvisionJobFinished as PoolProvisionJobFinishedOriginal, type PoolProvisioned as PoolProvisionedOriginal, type PoolRenewalActionActionOneOf as PoolRenewalActionActionOneOfOriginal, type PoolRenewalAction as PoolRenewalActionOriginal, PoolRenewalActionType as PoolRenewalActionTypeOriginal, type PoolRenewalActionTypeWithLiterals as PoolRenewalActionTypeWithLiteralsOriginal, type PoolRenewed as PoolRenewedOriginal, type PoolResumed as PoolResumedOriginal, type PoolSelector as PoolSelectorOriginal, PoolSelectorType as PoolSelectorTypeOriginal, type PoolSelectorTypeWithLiterals as PoolSelectorTypeWithLiteralsOriginal, PoolStatus as PoolStatusOriginal, type PoolStatusUpdateJobFinishedContextOneOf as PoolStatusUpdateJobFinishedContextOneOfOriginal, type PoolStatusUpdateJobFinished as PoolStatusUpdateJobFinishedOriginal, type PoolStatusUpdateParamsPoolInfo as PoolStatusUpdateParamsPoolInfoOriginal, type PoolStatusWithLiterals as PoolStatusWithLiteralsOriginal, type ProgramDefinitionInfo as ProgramDefinitionInfoOriginal, type ProgramInfo as ProgramInfoOriginal, type ProvisionPoolsForProgramRequest as ProvisionPoolsForProgramRequestOriginal, type ProvisionPoolsForProgramResponse as ProvisionPoolsForProgramResponseOriginal, type ProvisionPoolsForProgramResponseResultOneOf as ProvisionPoolsForProgramResponseResultOneOfOriginal, ProvisionPoolsForProgramResponseType as ProvisionPoolsForProgramResponseTypeOriginal, type ProvisionPoolsForProgramResponseTypeWithLiterals as ProvisionPoolsForProgramResponseTypeWithLiteralsOriginal, type QueryPoolsRequest as QueryPoolsRequestOriginal, type QueryPoolsResponse as QueryPoolsResponseOriginal, type RateLimitedPolicy as RateLimitedPolicyOriginal, type ReallocateBenefitApplicationErrors as ReallocateBenefitApplicationErrorsOriginal, type ReallocateBenefitRequest as ReallocateBenefitRequestOriginal, type ReallocateBenefitResponse as ReallocateBenefitResponseOriginal, type ReallocationDetails as ReallocationDetailsOriginal, type RedeemBenefitApplicationErrors as RedeemBenefitApplicationErrorsOriginal, type RedeemBenefitRequest as RedeemBenefitRequestOriginal, type RedeemBenefitResponse as RedeemBenefitResponseOriginal, type RedemptionAlreadyCanceled as RedemptionAlreadyCanceledOriginal, type RedemptionCanceled as RedemptionCanceledOriginal, type RedemptionDetails as RedemptionDetailsOriginal, type ReleaseBenefitReservationRequest as ReleaseBenefitReservationRequestOriginal, type ReleaseBenefitReservationResponse as ReleaseBenefitReservationResponseOriginal, type RenewPoolsForProgramRequest as RenewPoolsForProgramRequestOriginal, type RenewPoolsForProgramResponse as RenewPoolsForProgramResponseOriginal, type ReserveBenefitRequest as ReserveBenefitRequestOriginal, type ReserveBenefitResponse as ReserveBenefitResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncResult as SyncResultOriginal, TimePeriod as TimePeriodOriginal, type TimePeriodWithLiterals as TimePeriodWithLiteralsOriginal, type TransactionNotFound as TransactionNotFoundOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type Update as UpdateOriginal, type UpdatePoolRequest as UpdatePoolRequestOriginal, type UpdatePoolResponse as UpdatePoolResponseOriginal, type UpdatePoolStatusRequest as UpdatePoolStatusRequestOriginal, type UpdatePoolStatusRequestPoolSelectorOneOf as UpdatePoolStatusRequestPoolSelectorOneOfOriginal, type UpdatePoolStatusResponse as UpdatePoolStatusResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeekDay as WeekDayOriginal, type WeekDayWithLiterals as WeekDayWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCheckBenefitEligibility, bulkUpdatePools, cancelRedemption, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, reallocateBenefit, redeemBenefit, updatePool };
|
|
@@ -36,6 +36,7 @@ __export(meta_exports, {
|
|
|
36
36
|
WeekDayOriginal: () => WeekDay,
|
|
37
37
|
bulkCheckBenefitEligibility: () => bulkCheckBenefitEligibility2,
|
|
38
38
|
bulkUpdatePools: () => bulkUpdatePools2,
|
|
39
|
+
cancelRedemption: () => cancelRedemption2,
|
|
39
40
|
checkBenefitEligibility: () => checkBenefitEligibility2,
|
|
40
41
|
checkBenefitEligibilityByFilter: () => checkBenefitEligibilityByFilter2,
|
|
41
42
|
getEligibleBenefits: () => getEligibleBenefits2,
|
|
@@ -404,6 +405,27 @@ function reallocateBenefit(payload) {
|
|
|
404
405
|
}
|
|
405
406
|
return __reallocateBenefit;
|
|
406
407
|
}
|
|
408
|
+
function cancelRedemption(payload) {
|
|
409
|
+
function __cancelRedemption({ host }) {
|
|
410
|
+
const metadata = {
|
|
411
|
+
entityFqdn: "wix.benefit_programs.v1.pool",
|
|
412
|
+
method: "POST",
|
|
413
|
+
methodFqn: "wix.benefit_programs.v1.pool.PoolService.CancelRedemption",
|
|
414
|
+
packageName: PACKAGE_NAME,
|
|
415
|
+
migrationOptions: {
|
|
416
|
+
optInTransformResponse: true
|
|
417
|
+
},
|
|
418
|
+
url: resolveWixBenefitProgramsV1PoolPoolServiceUrl({
|
|
419
|
+
protoPath: "/v1/benefits/cancel-redemption",
|
|
420
|
+
data: payload,
|
|
421
|
+
host
|
|
422
|
+
}),
|
|
423
|
+
data: payload
|
|
424
|
+
};
|
|
425
|
+
return metadata;
|
|
426
|
+
}
|
|
427
|
+
return __cancelRedemption;
|
|
428
|
+
}
|
|
407
429
|
function checkBenefitEligibility(payload) {
|
|
408
430
|
function __checkBenefitEligibility({ host }) {
|
|
409
431
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -747,6 +769,24 @@ function reallocateBenefit2() {
|
|
|
747
769
|
__originalResponseType: null
|
|
748
770
|
};
|
|
749
771
|
}
|
|
772
|
+
function cancelRedemption2() {
|
|
773
|
+
const payload = {};
|
|
774
|
+
const getRequestOptions = cancelRedemption(payload);
|
|
775
|
+
const getUrl = (context) => {
|
|
776
|
+
const { url } = getRequestOptions(context);
|
|
777
|
+
return url;
|
|
778
|
+
};
|
|
779
|
+
return {
|
|
780
|
+
getUrl,
|
|
781
|
+
httpMethod: "POST",
|
|
782
|
+
path: "/v1/benefits/cancel-redemption",
|
|
783
|
+
pathParams: {},
|
|
784
|
+
__requestType: null,
|
|
785
|
+
__originalRequestType: null,
|
|
786
|
+
__responseType: null,
|
|
787
|
+
__originalResponseType: null
|
|
788
|
+
};
|
|
789
|
+
}
|
|
750
790
|
function checkBenefitEligibility2() {
|
|
751
791
|
const payload = {};
|
|
752
792
|
const getRequestOptions = checkBenefitEligibility(payload);
|
|
@@ -855,6 +895,7 @@ function checkBenefitEligibilityByFilter2() {
|
|
|
855
895
|
WeekDayOriginal,
|
|
856
896
|
bulkCheckBenefitEligibility,
|
|
857
897
|
bulkUpdatePools,
|
|
898
|
+
cancelRedemption,
|
|
858
899
|
checkBenefitEligibility,
|
|
859
900
|
checkBenefitEligibilityByFilter,
|
|
860
901
|
getEligibleBenefits,
|