@munchi_oy/core 1.9.130 → 1.9.131
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/dist/generated/api.d.ts +103 -0
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +103 -0
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -24201,6 +24201,85 @@ export interface UnifiedLastPaymentErrorDto {
|
|
|
24201
24201
|
*/
|
|
24202
24202
|
'retryable': boolean;
|
|
24203
24203
|
}
|
|
24204
|
+
/**
|
|
24205
|
+
*
|
|
24206
|
+
* @export
|
|
24207
|
+
* @interface UnifiedLoyaltyRedemptionDto
|
|
24208
|
+
*/
|
|
24209
|
+
export interface UnifiedLoyaltyRedemptionDto {
|
|
24210
|
+
/**
|
|
24211
|
+
* Loyalty entry id this redemption was committed under
|
|
24212
|
+
* @type {string}
|
|
24213
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24214
|
+
*/
|
|
24215
|
+
'entryId': string;
|
|
24216
|
+
/**
|
|
24217
|
+
* Ids of the discount applications this reward caused, matching discounts[].externalId
|
|
24218
|
+
* @type {Array<string>}
|
|
24219
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24220
|
+
*/
|
|
24221
|
+
'discountApplicationIds': Array<string>;
|
|
24222
|
+
/**
|
|
24223
|
+
* Id of the catalog entry that was redeemed
|
|
24224
|
+
* @type {string}
|
|
24225
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24226
|
+
*/
|
|
24227
|
+
'catalogId'?: string | null;
|
|
24228
|
+
/**
|
|
24229
|
+
* Kind of catalog entry that was redeemed, such as a product or a coupon
|
|
24230
|
+
* @type {string}
|
|
24231
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24232
|
+
*/
|
|
24233
|
+
'catalogType'?: string | null;
|
|
24234
|
+
/**
|
|
24235
|
+
* Name of the reward as it was shown when the order committed to it
|
|
24236
|
+
* @type {string}
|
|
24237
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24238
|
+
*/
|
|
24239
|
+
'rewardName'?: string | null;
|
|
24240
|
+
/**
|
|
24241
|
+
* Points spent, in points.
|
|
24242
|
+
* @type {number}
|
|
24243
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24244
|
+
*/
|
|
24245
|
+
'pointsCost'?: number | null;
|
|
24246
|
+
/**
|
|
24247
|
+
* How many of the reward this entry redeemed
|
|
24248
|
+
* @type {number}
|
|
24249
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24250
|
+
*/
|
|
24251
|
+
'quantity'?: number | null;
|
|
24252
|
+
/**
|
|
24253
|
+
* Where this redemption stands against the loyalty ledger: pending, redeemed or reversed
|
|
24254
|
+
* @type {string}
|
|
24255
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24256
|
+
*/
|
|
24257
|
+
'status'?: string | null;
|
|
24258
|
+
/**
|
|
24259
|
+
* Id of the loyalty transaction that took the points
|
|
24260
|
+
* @type {string}
|
|
24261
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24262
|
+
*/
|
|
24263
|
+
'transactionId'?: string | null;
|
|
24264
|
+
/**
|
|
24265
|
+
* When the points were taken. Absent while the redemption is still pending
|
|
24266
|
+
* @type {string}
|
|
24267
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24268
|
+
*/
|
|
24269
|
+
'settledAt'?: string | null;
|
|
24270
|
+
/**
|
|
24271
|
+
* Id of the loyalty transaction that gave the points back
|
|
24272
|
+
* @type {string}
|
|
24273
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24274
|
+
*/
|
|
24275
|
+
'reversalTransactionId'?: string | null;
|
|
24276
|
+
/**
|
|
24277
|
+
* When the points were given back. Absent unless the redemption was reversed
|
|
24278
|
+
* @type {string}
|
|
24279
|
+
* @memberof UnifiedLoyaltyRedemptionDto
|
|
24280
|
+
*/
|
|
24281
|
+
'reversedAt'?: string | null;
|
|
24282
|
+
}
|
|
24204
24283
|
/**
|
|
24205
24284
|
*
|
|
24206
24285
|
* @export
|
|
@@ -24502,6 +24581,12 @@ export interface UnifiedOrderResponseDto {
|
|
|
24502
24581
|
* @memberof UnifiedOrderResponseDto
|
|
24503
24582
|
*/
|
|
24504
24583
|
'discounts'?: Array<UnifiedPlatformDiscountDto>;
|
|
24584
|
+
/**
|
|
24585
|
+
* Loyalty rewards stored with this order. Empty for orders that redeemed none. Platform only
|
|
24586
|
+
* @type {Array<UnifiedLoyaltyRedemptionDto>}
|
|
24587
|
+
* @memberof UnifiedOrderResponseDto
|
|
24588
|
+
*/
|
|
24589
|
+
'loyaltyRedemptions'?: Array<UnifiedLoyaltyRedemptionDto>;
|
|
24505
24590
|
/**
|
|
24506
24591
|
* Products in the order. Platform only
|
|
24507
24592
|
* @type {Array<UnifiedProductDto>}
|
|
@@ -24984,6 +25069,24 @@ export interface UnifiedPlatformDiscountDto {
|
|
|
24984
25069
|
* @memberof UnifiedPlatformDiscountDto
|
|
24985
25070
|
*/
|
|
24986
25071
|
'createdAt': string;
|
|
25072
|
+
/**
|
|
25073
|
+
* Id the ordering channel gave this discount application, and the id a loyalty redemption points at. Absent on orders from channels that send no application id.
|
|
25074
|
+
* @type {string}
|
|
25075
|
+
* @memberof UnifiedPlatformDiscountDto
|
|
25076
|
+
*/
|
|
25077
|
+
'externalId'?: string | null;
|
|
25078
|
+
/**
|
|
25079
|
+
* Payable amount this application was measured against.
|
|
25080
|
+
* @type {number}
|
|
25081
|
+
* @memberof UnifiedPlatformDiscountDto
|
|
25082
|
+
*/
|
|
25083
|
+
'baseAmount'?: number | null;
|
|
25084
|
+
/**
|
|
25085
|
+
* Part of the requested discount that could not be taken because nothing payable was left.
|
|
25086
|
+
* @type {number}
|
|
25087
|
+
* @memberof UnifiedPlatformDiscountDto
|
|
25088
|
+
*/
|
|
25089
|
+
'forfeitedAmount'?: number | null;
|
|
24987
25090
|
}
|
|
24988
25091
|
/**
|
|
24989
25092
|
*
|