@munchi_oy/core 1.9.129 → 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 +158 -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 +195 -0
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -13924,6 +13924,19 @@ export interface PayTerminalLockStatusResponseDto {
|
|
|
13924
13924
|
*/
|
|
13925
13925
|
'hasLock': boolean;
|
|
13926
13926
|
}
|
|
13927
|
+
/**
|
|
13928
|
+
*
|
|
13929
|
+
* @export
|
|
13930
|
+
* @interface PayTerminalPresenceResponseDto
|
|
13931
|
+
*/
|
|
13932
|
+
export interface PayTerminalPresenceResponseDto {
|
|
13933
|
+
/**
|
|
13934
|
+
* True if the paired terminal is currently present on the session channel.
|
|
13935
|
+
* @type {boolean}
|
|
13936
|
+
* @memberof PayTerminalPresenceResponseDto
|
|
13937
|
+
*/
|
|
13938
|
+
'online': boolean;
|
|
13939
|
+
}
|
|
13927
13940
|
/**
|
|
13928
13941
|
*
|
|
13929
13942
|
* @export
|
|
@@ -24188,6 +24201,85 @@ export interface UnifiedLastPaymentErrorDto {
|
|
|
24188
24201
|
*/
|
|
24189
24202
|
'retryable': boolean;
|
|
24190
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
|
+
}
|
|
24191
24283
|
/**
|
|
24192
24284
|
*
|
|
24193
24285
|
* @export
|
|
@@ -24489,6 +24581,12 @@ export interface UnifiedOrderResponseDto {
|
|
|
24489
24581
|
* @memberof UnifiedOrderResponseDto
|
|
24490
24582
|
*/
|
|
24491
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>;
|
|
24492
24590
|
/**
|
|
24493
24591
|
* Products in the order. Platform only
|
|
24494
24592
|
* @type {Array<UnifiedProductDto>}
|
|
@@ -24971,6 +25069,24 @@ export interface UnifiedPlatformDiscountDto {
|
|
|
24971
25069
|
* @memberof UnifiedPlatformDiscountDto
|
|
24972
25070
|
*/
|
|
24973
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;
|
|
24974
25090
|
}
|
|
24975
25091
|
/**
|
|
24976
25092
|
*
|
|
@@ -36968,6 +37084,14 @@ export declare const PayTerminalApiAxiosParamCreator: (configuration?: Configura
|
|
|
36968
37084
|
* @throws {RequiredError}
|
|
36969
37085
|
*/
|
|
36970
37086
|
payTerminalPair: (pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37087
|
+
/**
|
|
37088
|
+
*
|
|
37089
|
+
* @summary Check whether the paired terminal is currently present on the session channel.
|
|
37090
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
37091
|
+
* @param {*} [options] Override http request option.
|
|
37092
|
+
* @throws {RequiredError}
|
|
37093
|
+
*/
|
|
37094
|
+
payTerminalPresence: (payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36971
37095
|
/**
|
|
36972
37096
|
*
|
|
36973
37097
|
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
@@ -37038,6 +37162,14 @@ export declare const PayTerminalApiFp: (configuration?: Configuration) => {
|
|
|
37038
37162
|
* @throws {RequiredError}
|
|
37039
37163
|
*/
|
|
37040
37164
|
payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PairPayTerminalResponseDto>>;
|
|
37165
|
+
/**
|
|
37166
|
+
*
|
|
37167
|
+
* @summary Check whether the paired terminal is currently present on the session channel.
|
|
37168
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
37169
|
+
* @param {*} [options] Override http request option.
|
|
37170
|
+
* @throws {RequiredError}
|
|
37171
|
+
*/
|
|
37172
|
+
payTerminalPresence(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalPresenceResponseDto>>;
|
|
37041
37173
|
/**
|
|
37042
37174
|
*
|
|
37043
37175
|
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
@@ -37108,6 +37240,14 @@ export declare const PayTerminalApiFactory: (configuration?: Configuration, base
|
|
|
37108
37240
|
* @throws {RequiredError}
|
|
37109
37241
|
*/
|
|
37110
37242
|
payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: any): AxiosPromise<PairPayTerminalResponseDto>;
|
|
37243
|
+
/**
|
|
37244
|
+
*
|
|
37245
|
+
* @summary Check whether the paired terminal is currently present on the session channel.
|
|
37246
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
37247
|
+
* @param {*} [options] Override http request option.
|
|
37248
|
+
* @throws {RequiredError}
|
|
37249
|
+
*/
|
|
37250
|
+
payTerminalPresence(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: any): AxiosPromise<PayTerminalPresenceResponseDto>;
|
|
37111
37251
|
/**
|
|
37112
37252
|
*
|
|
37113
37253
|
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
@@ -37185,6 +37325,15 @@ export interface PayTerminalApiInterface {
|
|
|
37185
37325
|
* @memberof PayTerminalApiInterface
|
|
37186
37326
|
*/
|
|
37187
37327
|
payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig): AxiosPromise<PairPayTerminalResponseDto>;
|
|
37328
|
+
/**
|
|
37329
|
+
*
|
|
37330
|
+
* @summary Check whether the paired terminal is currently present on the session channel.
|
|
37331
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
37332
|
+
* @param {*} [options] Override http request option.
|
|
37333
|
+
* @throws {RequiredError}
|
|
37334
|
+
* @memberof PayTerminalApiInterface
|
|
37335
|
+
*/
|
|
37336
|
+
payTerminalPresence(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalPresenceResponseDto>;
|
|
37188
37337
|
/**
|
|
37189
37338
|
*
|
|
37190
37339
|
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
@@ -37265,6 +37414,15 @@ export declare class PayTerminalApi extends BaseAPI implements PayTerminalApiInt
|
|
|
37265
37414
|
* @memberof PayTerminalApi
|
|
37266
37415
|
*/
|
|
37267
37416
|
payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PairPayTerminalResponseDto, any, {}>>;
|
|
37417
|
+
/**
|
|
37418
|
+
*
|
|
37419
|
+
* @summary Check whether the paired terminal is currently present on the session channel.
|
|
37420
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
37421
|
+
* @param {*} [options] Override http request option.
|
|
37422
|
+
* @throws {RequiredError}
|
|
37423
|
+
* @memberof PayTerminalApi
|
|
37424
|
+
*/
|
|
37425
|
+
payTerminalPresence(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayTerminalPresenceResponseDto, any, {}>>;
|
|
37268
37426
|
/**
|
|
37269
37427
|
*
|
|
37270
37428
|
* @summary Mint a session-channel Ably token scoped to the device role.
|