@munchi_oy/core 1.9.116 → 1.9.117
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 +213 -9
- 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 +315 -10
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -3483,6 +3483,12 @@ export interface CreateManualSessionDto {
|
|
|
3483
3483
|
* @memberof CreateManualSessionDto
|
|
3484
3484
|
*/
|
|
3485
3485
|
'businessId': number;
|
|
3486
|
+
/**
|
|
3487
|
+
* The gateway session this payment stands in for, when the till settles a card charge it could not confirm. Honoured only for a manual card entry.
|
|
3488
|
+
* @type {string}
|
|
3489
|
+
* @memberof CreateManualSessionDto
|
|
3490
|
+
*/
|
|
3491
|
+
'settlesSessionId'?: string;
|
|
3486
3492
|
/**
|
|
3487
3493
|
* The POS order ID this payment session is for.
|
|
3488
3494
|
* @type {string}
|
|
@@ -4668,6 +4674,17 @@ export interface DeliveryDtoLocation {
|
|
|
4668
4674
|
*/
|
|
4669
4675
|
'coordinates': LocationDtoCoordinates | null;
|
|
4670
4676
|
}
|
|
4677
|
+
/**
|
|
4678
|
+
*
|
|
4679
|
+
* @export
|
|
4680
|
+
* @enum {string}
|
|
4681
|
+
*/
|
|
4682
|
+
export declare const DeliveryIntentStatus: {
|
|
4683
|
+
readonly Pending: "pending";
|
|
4684
|
+
readonly Dispatched: "dispatched";
|
|
4685
|
+
readonly Failed: "failed";
|
|
4686
|
+
};
|
|
4687
|
+
export type DeliveryIntentStatus = typeof DeliveryIntentStatus[keyof typeof DeliveryIntentStatus];
|
|
4671
4688
|
/**
|
|
4672
4689
|
*
|
|
4673
4690
|
* @export
|
|
@@ -13310,6 +13327,7 @@ export interface PaymentErrorDto {
|
|
|
13310
13327
|
export declare const PaymentEventType: {
|
|
13311
13328
|
readonly StatusChanged: "payment:status-changed";
|
|
13312
13329
|
readonly RefundStatusChanged: "payment:refund-status-changed";
|
|
13330
|
+
readonly Outcome: "payment:outcome";
|
|
13313
13331
|
};
|
|
13314
13332
|
export type PaymentEventType = typeof PaymentEventType[keyof typeof PaymentEventType];
|
|
13315
13333
|
/**
|
|
@@ -14203,6 +14221,17 @@ export interface PaymentMethodsResponseDto {
|
|
|
14203
14221
|
*/
|
|
14204
14222
|
'minimumCheckoutAmount'?: number;
|
|
14205
14223
|
}
|
|
14224
|
+
/**
|
|
14225
|
+
*
|
|
14226
|
+
* @export
|
|
14227
|
+
* @enum {string}
|
|
14228
|
+
*/
|
|
14229
|
+
export declare const PaymentOutcomeStatus: {
|
|
14230
|
+
readonly Uncertain: "Uncertain";
|
|
14231
|
+
readonly Success: "Success";
|
|
14232
|
+
readonly Failed: "Failed";
|
|
14233
|
+
};
|
|
14234
|
+
export type PaymentOutcomeStatus = typeof PaymentOutcomeStatus[keyof typeof PaymentOutcomeStatus];
|
|
14206
14235
|
/**
|
|
14207
14236
|
*
|
|
14208
14237
|
* @export
|
|
@@ -14762,6 +14791,12 @@ export interface PaymentStatusDtoTransaction {
|
|
|
14762
14791
|
* @memberof PaymentStatusDtoTransaction
|
|
14763
14792
|
*/
|
|
14764
14793
|
'type': PaymentMethod;
|
|
14794
|
+
/**
|
|
14795
|
+
*
|
|
14796
|
+
* @type {PaymentOutcomeStatus}
|
|
14797
|
+
* @memberof PaymentStatusDtoTransaction
|
|
14798
|
+
*/
|
|
14799
|
+
'paymentOutcomeStatus'?: PaymentOutcomeStatus;
|
|
14765
14800
|
/**
|
|
14766
14801
|
* Amount paid in cents
|
|
14767
14802
|
* @type {number}
|
|
@@ -22529,6 +22564,12 @@ export interface TransactionDto {
|
|
|
22529
22564
|
* @memberof TransactionDto
|
|
22530
22565
|
*/
|
|
22531
22566
|
'type': PaymentMethod;
|
|
22567
|
+
/**
|
|
22568
|
+
*
|
|
22569
|
+
* @type {PaymentOutcomeStatus}
|
|
22570
|
+
* @memberof TransactionDto
|
|
22571
|
+
*/
|
|
22572
|
+
'paymentOutcomeStatus'?: PaymentOutcomeStatus;
|
|
22532
22573
|
/**
|
|
22533
22574
|
* Amount paid in cents
|
|
22534
22575
|
* @type {number}
|
|
@@ -24239,6 +24280,37 @@ export interface UpdateChannelInventoryDto {
|
|
|
24239
24280
|
*/
|
|
24240
24281
|
'channels': Array<ChannelInventoryUpdateDto>;
|
|
24241
24282
|
}
|
|
24283
|
+
/**
|
|
24284
|
+
*
|
|
24285
|
+
* @export
|
|
24286
|
+
* @interface UpdateDeliveryIntentDto
|
|
24287
|
+
*/
|
|
24288
|
+
export interface UpdateDeliveryIntentDto {
|
|
24289
|
+
/**
|
|
24290
|
+
*
|
|
24291
|
+
* @type {DeliveryIntentStatus}
|
|
24292
|
+
* @memberof UpdateDeliveryIntentDto
|
|
24293
|
+
*/
|
|
24294
|
+
'status': DeliveryIntentStatus;
|
|
24295
|
+
/**
|
|
24296
|
+
*
|
|
24297
|
+
* @type {string}
|
|
24298
|
+
* @memberof UpdateDeliveryIntentDto
|
|
24299
|
+
*/
|
|
24300
|
+
'providerDeliveryId'?: string;
|
|
24301
|
+
/**
|
|
24302
|
+
*
|
|
24303
|
+
* @type {string}
|
|
24304
|
+
* @memberof UpdateDeliveryIntentDto
|
|
24305
|
+
*/
|
|
24306
|
+
'trackingUrl'?: string;
|
|
24307
|
+
/**
|
|
24308
|
+
*
|
|
24309
|
+
* @type {string}
|
|
24310
|
+
* @memberof UpdateDeliveryIntentDto
|
|
24311
|
+
*/
|
|
24312
|
+
'failureReason'?: string;
|
|
24313
|
+
}
|
|
24242
24314
|
/**
|
|
24243
24315
|
*
|
|
24244
24316
|
* @export
|
|
@@ -27255,10 +27327,10 @@ export interface WalletItemDto {
|
|
|
27255
27327
|
'id': number;
|
|
27256
27328
|
/**
|
|
27257
27329
|
*
|
|
27258
|
-
* @type {
|
|
27330
|
+
* @type {WalletItemStatus}
|
|
27259
27331
|
* @memberof WalletItemDto
|
|
27260
27332
|
*/
|
|
27261
|
-
'status':
|
|
27333
|
+
'status': WalletItemStatus;
|
|
27262
27334
|
/**
|
|
27263
27335
|
*
|
|
27264
27336
|
* @type {object}
|
|
@@ -27272,11 +27344,16 @@ export interface WalletItemDto {
|
|
|
27272
27344
|
*/
|
|
27273
27345
|
'catalog': WalletCatalogDto;
|
|
27274
27346
|
}
|
|
27275
|
-
|
|
27347
|
+
/**
|
|
27348
|
+
*
|
|
27349
|
+
* @export
|
|
27350
|
+
* @enum {string}
|
|
27351
|
+
*/
|
|
27352
|
+
export declare const WalletItemStatus: {
|
|
27276
27353
|
readonly Claimed: "Claimed";
|
|
27277
27354
|
readonly Redeemed: "Redeemed";
|
|
27278
27355
|
};
|
|
27279
|
-
export type
|
|
27356
|
+
export type WalletItemStatus = typeof WalletItemStatus[keyof typeof WalletItemStatus];
|
|
27280
27357
|
/**
|
|
27281
27358
|
*
|
|
27282
27359
|
* @export
|
|
@@ -30717,6 +30794,128 @@ export declare class CoursesApi extends BaseAPI implements CoursesApiInterface {
|
|
|
30717
30794
|
*/
|
|
30718
30795
|
getCourses(businessId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CourseDto[], any, {}>>;
|
|
30719
30796
|
}
|
|
30797
|
+
/**
|
|
30798
|
+
* DeliveryIntentApi - axios parameter creator
|
|
30799
|
+
* @export
|
|
30800
|
+
*/
|
|
30801
|
+
export declare const DeliveryIntentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
30802
|
+
/**
|
|
30803
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30804
|
+
* @summary Fetch a delivery intent for courier execution
|
|
30805
|
+
* @param {string} intentId
|
|
30806
|
+
* @param {*} [options] Override http request option.
|
|
30807
|
+
* @throws {RequiredError}
|
|
30808
|
+
*/
|
|
30809
|
+
findIntent: (intentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30810
|
+
/**
|
|
30811
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30812
|
+
* @summary Report the courier execution outcome of a delivery intent
|
|
30813
|
+
* @param {string} intentId
|
|
30814
|
+
* @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
|
|
30815
|
+
* @param {*} [options] Override http request option.
|
|
30816
|
+
* @throws {RequiredError}
|
|
30817
|
+
*/
|
|
30818
|
+
updateIntent: (intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30819
|
+
};
|
|
30820
|
+
/**
|
|
30821
|
+
* DeliveryIntentApi - functional programming interface
|
|
30822
|
+
* @export
|
|
30823
|
+
*/
|
|
30824
|
+
export declare const DeliveryIntentApiFp: (configuration?: Configuration) => {
|
|
30825
|
+
/**
|
|
30826
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30827
|
+
* @summary Fetch a delivery intent for courier execution
|
|
30828
|
+
* @param {string} intentId
|
|
30829
|
+
* @param {*} [options] Override http request option.
|
|
30830
|
+
* @throws {RequiredError}
|
|
30831
|
+
*/
|
|
30832
|
+
findIntent(intentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
30833
|
+
/**
|
|
30834
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30835
|
+
* @summary Report the courier execution outcome of a delivery intent
|
|
30836
|
+
* @param {string} intentId
|
|
30837
|
+
* @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
|
|
30838
|
+
* @param {*} [options] Override http request option.
|
|
30839
|
+
* @throws {RequiredError}
|
|
30840
|
+
*/
|
|
30841
|
+
updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
30842
|
+
};
|
|
30843
|
+
/**
|
|
30844
|
+
* DeliveryIntentApi - factory interface
|
|
30845
|
+
* @export
|
|
30846
|
+
*/
|
|
30847
|
+
export declare const DeliveryIntentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
30848
|
+
/**
|
|
30849
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30850
|
+
* @summary Fetch a delivery intent for courier execution
|
|
30851
|
+
* @param {string} intentId
|
|
30852
|
+
* @param {*} [options] Override http request option.
|
|
30853
|
+
* @throws {RequiredError}
|
|
30854
|
+
*/
|
|
30855
|
+
findIntent(intentId: string, options?: any): AxiosPromise<void>;
|
|
30856
|
+
/**
|
|
30857
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30858
|
+
* @summary Report the courier execution outcome of a delivery intent
|
|
30859
|
+
* @param {string} intentId
|
|
30860
|
+
* @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
|
|
30861
|
+
* @param {*} [options] Override http request option.
|
|
30862
|
+
* @throws {RequiredError}
|
|
30863
|
+
*/
|
|
30864
|
+
updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: any): AxiosPromise<void>;
|
|
30865
|
+
};
|
|
30866
|
+
/**
|
|
30867
|
+
* DeliveryIntentApi - interface
|
|
30868
|
+
* @export
|
|
30869
|
+
* @interface DeliveryIntentApi
|
|
30870
|
+
*/
|
|
30871
|
+
export interface DeliveryIntentApiInterface {
|
|
30872
|
+
/**
|
|
30873
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30874
|
+
* @summary Fetch a delivery intent for courier execution
|
|
30875
|
+
* @param {string} intentId
|
|
30876
|
+
* @param {*} [options] Override http request option.
|
|
30877
|
+
* @throws {RequiredError}
|
|
30878
|
+
* @memberof DeliveryIntentApiInterface
|
|
30879
|
+
*/
|
|
30880
|
+
findIntent(intentId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
30881
|
+
/**
|
|
30882
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30883
|
+
* @summary Report the courier execution outcome of a delivery intent
|
|
30884
|
+
* @param {string} intentId
|
|
30885
|
+
* @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
|
|
30886
|
+
* @param {*} [options] Override http request option.
|
|
30887
|
+
* @throws {RequiredError}
|
|
30888
|
+
* @memberof DeliveryIntentApiInterface
|
|
30889
|
+
*/
|
|
30890
|
+
updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
30891
|
+
}
|
|
30892
|
+
/**
|
|
30893
|
+
* DeliveryIntentApi - object-oriented interface
|
|
30894
|
+
* @export
|
|
30895
|
+
* @class DeliveryIntentApi
|
|
30896
|
+
* @extends {BaseAPI}
|
|
30897
|
+
*/
|
|
30898
|
+
export declare class DeliveryIntentApi extends BaseAPI implements DeliveryIntentApiInterface {
|
|
30899
|
+
/**
|
|
30900
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30901
|
+
* @summary Fetch a delivery intent for courier execution
|
|
30902
|
+
* @param {string} intentId
|
|
30903
|
+
* @param {*} [options] Override http request option.
|
|
30904
|
+
* @throws {RequiredError}
|
|
30905
|
+
* @memberof DeliveryIntentApi
|
|
30906
|
+
*/
|
|
30907
|
+
findIntent(intentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
30908
|
+
/**
|
|
30909
|
+
* Internal service-to-service call, requires the `x-internal-token` header.
|
|
30910
|
+
* @summary Report the courier execution outcome of a delivery intent
|
|
30911
|
+
* @param {string} intentId
|
|
30912
|
+
* @param {UpdateDeliveryIntentDto} updateDeliveryIntentDto
|
|
30913
|
+
* @param {*} [options] Override http request option.
|
|
30914
|
+
* @throws {RequiredError}
|
|
30915
|
+
* @memberof DeliveryIntentApi
|
|
30916
|
+
*/
|
|
30917
|
+
updateIntent(intentId: string, updateDeliveryIntentDto: UpdateDeliveryIntentDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
30918
|
+
}
|
|
30720
30919
|
/**
|
|
30721
30920
|
* DisplayApi - axios parameter creator
|
|
30722
30921
|
* @export
|
|
@@ -41204,7 +41403,8 @@ export declare const WebhookApiAxiosParamCreator: (configuration?: Configuration
|
|
|
41204
41403
|
*/
|
|
41205
41404
|
handleVivaSessionEvents: (vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41206
41405
|
/**
|
|
41207
|
-
*
|
|
41406
|
+
* Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
|
|
41407
|
+
* @summary Handle Shipday delivery webhook events
|
|
41208
41408
|
* @param {*} [options] Override http request option.
|
|
41209
41409
|
* @throws {RequiredError}
|
|
41210
41410
|
*/
|
|
@@ -41350,7 +41550,8 @@ export declare const WebhookApiFp: (configuration?: Configuration) => {
|
|
|
41350
41550
|
*/
|
|
41351
41551
|
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
41352
41552
|
/**
|
|
41353
|
-
*
|
|
41553
|
+
* Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
|
|
41554
|
+
* @summary Handle Shipday delivery webhook events
|
|
41354
41555
|
* @param {*} [options] Override http request option.
|
|
41355
41556
|
* @throws {RequiredError}
|
|
41356
41557
|
*/
|
|
@@ -41496,7 +41697,8 @@ export declare const WebhookApiFactory: (configuration?: Configuration, basePath
|
|
|
41496
41697
|
*/
|
|
41497
41698
|
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void>;
|
|
41498
41699
|
/**
|
|
41499
|
-
*
|
|
41700
|
+
* Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
|
|
41701
|
+
* @summary Handle Shipday delivery webhook events
|
|
41500
41702
|
* @param {*} [options] Override http request option.
|
|
41501
41703
|
* @throws {RequiredError}
|
|
41502
41704
|
*/
|
|
@@ -41655,7 +41857,8 @@ export interface WebhookApiInterface {
|
|
|
41655
41857
|
*/
|
|
41656
41858
|
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
41657
41859
|
/**
|
|
41658
|
-
*
|
|
41860
|
+
* Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
|
|
41861
|
+
* @summary Handle Shipday delivery webhook events
|
|
41659
41862
|
* @param {*} [options] Override http request option.
|
|
41660
41863
|
* @throws {RequiredError}
|
|
41661
41864
|
* @memberof WebhookApiInterface
|
|
@@ -41824,7 +42027,8 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
41824
42027
|
*/
|
|
41825
42028
|
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
41826
42029
|
/**
|
|
41827
|
-
*
|
|
42030
|
+
* Requires the shared secret from SHIPDAY_WEBHOOK_SECRET, sent as the `token` query parameter, the `x-shipday-token` header, or `token` in the body.
|
|
42031
|
+
* @summary Handle Shipday delivery webhook events
|
|
41828
42032
|
* @param {*} [options] Override http request option.
|
|
41829
42033
|
* @throws {RequiredError}
|
|
41830
42034
|
* @memberof WebhookApi
|