@munchi_oy/core 1.9.104 → 1.9.106

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.
@@ -12779,6 +12779,38 @@ export interface PayTerminalInitResponseDto {
12779
12779
  */
12780
12780
  'ablyTokenRequest': object;
12781
12781
  }
12782
+ /**
12783
+ *
12784
+ * @export
12785
+ * @interface PayTerminalLockStatusBodyDto
12786
+ */
12787
+ export interface PayTerminalLockStatusBodyDto {
12788
+ /**
12789
+ * Business the terminal belongs to.
12790
+ * @type {number}
12791
+ * @memberof PayTerminalLockStatusBodyDto
12792
+ */
12793
+ 'businessId': number;
12794
+ /**
12795
+ * Stable hardware identifier of the pay-terminal device.
12796
+ * @type {string}
12797
+ * @memberof PayTerminalLockStatusBodyDto
12798
+ */
12799
+ 'deviceId': string;
12800
+ }
12801
+ /**
12802
+ *
12803
+ * @export
12804
+ * @interface PayTerminalLockStatusResponseDto
12805
+ */
12806
+ export interface PayTerminalLockStatusResponseDto {
12807
+ /**
12808
+ * Whether this business/device has a passcode configured.
12809
+ * @type {boolean}
12810
+ * @memberof PayTerminalLockStatusResponseDto
12811
+ */
12812
+ 'hasLock': boolean;
12813
+ }
12782
12814
  /**
12783
12815
  *
12784
12816
  * @export
@@ -20266,6 +20298,50 @@ export interface SendReportEmailDto {
20266
20298
  */
20267
20299
  'language'?: ReportLanguage;
20268
20300
  }
20301
+ /**
20302
+ *
20303
+ * @export
20304
+ * @interface SetPayTerminalLockBodyDto
20305
+ */
20306
+ export interface SetPayTerminalLockBodyDto {
20307
+ /**
20308
+ * Business the terminal belongs to.
20309
+ * @type {number}
20310
+ * @memberof SetPayTerminalLockBodyDto
20311
+ */
20312
+ 'businessId': number;
20313
+ /**
20314
+ * Stable hardware identifier of the pay-terminal device.
20315
+ * @type {string}
20316
+ * @memberof SetPayTerminalLockBodyDto
20317
+ */
20318
+ 'deviceId': string;
20319
+ /**
20320
+ * Human-readable terminal name, for admin/support lookup only.
20321
+ * @type {string}
20322
+ * @memberof SetPayTerminalLockBodyDto
20323
+ */
20324
+ 'deviceName'?: string | null;
20325
+ /**
20326
+ * New passcode to set for this business/device.
20327
+ * @type {string}
20328
+ * @memberof SetPayTerminalLockBodyDto
20329
+ */
20330
+ 'passcode': string;
20331
+ }
20332
+ /**
20333
+ *
20334
+ * @export
20335
+ * @interface SetPayTerminalLockResponseDto
20336
+ */
20337
+ export interface SetPayTerminalLockResponseDto {
20338
+ /**
20339
+ *
20340
+ * @type {boolean}
20341
+ * @memberof SetPayTerminalLockResponseDto
20342
+ */
20343
+ 'success': boolean;
20344
+ }
20269
20345
  /**
20270
20346
  *
20271
20347
  * @export
@@ -24998,6 +25074,44 @@ export interface ValidateGiftCardResponseDto {
24998
25074
  */
24999
25075
  'cardInfo'?: GiftCardInfoDto;
25000
25076
  }
25077
+ /**
25078
+ *
25079
+ * @export
25080
+ * @interface VerifyPayTerminalLockBodyDto
25081
+ */
25082
+ export interface VerifyPayTerminalLockBodyDto {
25083
+ /**
25084
+ * Business the terminal belongs to.
25085
+ * @type {number}
25086
+ * @memberof VerifyPayTerminalLockBodyDto
25087
+ */
25088
+ 'businessId': number;
25089
+ /**
25090
+ * Stable hardware identifier of the pay-terminal device.
25091
+ * @type {string}
25092
+ * @memberof VerifyPayTerminalLockBodyDto
25093
+ */
25094
+ 'deviceId': string;
25095
+ /**
25096
+ * Passcode entered on the terminal.
25097
+ * @type {string}
25098
+ * @memberof VerifyPayTerminalLockBodyDto
25099
+ */
25100
+ 'passcode': string;
25101
+ }
25102
+ /**
25103
+ *
25104
+ * @export
25105
+ * @interface VerifyPayTerminalLockResponseDto
25106
+ */
25107
+ export interface VerifyPayTerminalLockResponseDto {
25108
+ /**
25109
+ * Whether the entered passcode is correct.
25110
+ * @type {boolean}
25111
+ * @memberof VerifyPayTerminalLockResponseDto
25112
+ */
25113
+ 'valid': boolean;
25114
+ }
25001
25115
  /**
25002
25116
  *
25003
25117
  * @export
@@ -34671,6 +34785,38 @@ export declare const PayTerminalApiAxiosParamCreator: (configuration?: Configura
34671
34785
  * @throws {RequiredError}
34672
34786
  */
34673
34787
  payTerminalInit: (payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34788
+ /**
34789
+ *
34790
+ * @summary Create the restricted-area passcode for a business/device, but only while none exists yet. Once a passcode has been set, this endpoint always fails with a conflict — the app can never change or remove it after creation. Only the admin-only PUT endpoint (support tooling, shared API key) can modify it after that.
34791
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
34792
+ * @param {*} [options] Override http request option.
34793
+ * @throws {RequiredError}
34794
+ */
34795
+ payTerminalLockCreate: (setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34796
+ /**
34797
+ *
34798
+ * @summary Set or replace the restricted-area passcode for a business/device. Internal/support tooling only — gated by the shared server API key, not a regular business JWT session, so a locked-out staff member\'s own login can\'t be used to reset their own restriction.
34799
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
34800
+ * @param {*} [options] Override http request option.
34801
+ * @throws {RequiredError}
34802
+ */
34803
+ payTerminalLockSet: (setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34804
+ /**
34805
+ *
34806
+ * @summary Check whether a business/device has a restricted-area passcode configured.
34807
+ * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
34808
+ * @param {*} [options] Override http request option.
34809
+ * @throws {RequiredError}
34810
+ */
34811
+ payTerminalLockStatus: (payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34812
+ /**
34813
+ *
34814
+ * @summary Verify a restricted-area passcode attempt for a business/device.
34815
+ * @param {VerifyPayTerminalLockBodyDto} verifyPayTerminalLockBodyDto
34816
+ * @param {*} [options] Override http request option.
34817
+ * @throws {RequiredError}
34818
+ */
34819
+ payTerminalLockVerify: (verifyPayTerminalLockBodyDto: VerifyPayTerminalLockBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34674
34820
  /**
34675
34821
  *
34676
34822
  * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
@@ -34709,6 +34855,38 @@ export declare const PayTerminalApiFp: (configuration?: Configuration) => {
34709
34855
  * @throws {RequiredError}
34710
34856
  */
34711
34857
  payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalInitResponseDto>>;
34858
+ /**
34859
+ *
34860
+ * @summary Create the restricted-area passcode for a business/device, but only while none exists yet. Once a passcode has been set, this endpoint always fails with a conflict — the app can never change or remove it after creation. Only the admin-only PUT endpoint (support tooling, shared API key) can modify it after that.
34861
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
34862
+ * @param {*} [options] Override http request option.
34863
+ * @throws {RequiredError}
34864
+ */
34865
+ payTerminalLockCreate(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetPayTerminalLockResponseDto>>;
34866
+ /**
34867
+ *
34868
+ * @summary Set or replace the restricted-area passcode for a business/device. Internal/support tooling only — gated by the shared server API key, not a regular business JWT session, so a locked-out staff member\'s own login can\'t be used to reset their own restriction.
34869
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
34870
+ * @param {*} [options] Override http request option.
34871
+ * @throws {RequiredError}
34872
+ */
34873
+ payTerminalLockSet(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetPayTerminalLockResponseDto>>;
34874
+ /**
34875
+ *
34876
+ * @summary Check whether a business/device has a restricted-area passcode configured.
34877
+ * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
34878
+ * @param {*} [options] Override http request option.
34879
+ * @throws {RequiredError}
34880
+ */
34881
+ payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalLockStatusResponseDto>>;
34882
+ /**
34883
+ *
34884
+ * @summary Verify a restricted-area passcode attempt for a business/device.
34885
+ * @param {VerifyPayTerminalLockBodyDto} verifyPayTerminalLockBodyDto
34886
+ * @param {*} [options] Override http request option.
34887
+ * @throws {RequiredError}
34888
+ */
34889
+ payTerminalLockVerify(verifyPayTerminalLockBodyDto: VerifyPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyPayTerminalLockResponseDto>>;
34712
34890
  /**
34713
34891
  *
34714
34892
  * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
@@ -34747,6 +34925,38 @@ export declare const PayTerminalApiFactory: (configuration?: Configuration, base
34747
34925
  * @throws {RequiredError}
34748
34926
  */
34749
34927
  payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: any): AxiosPromise<PayTerminalInitResponseDto>;
34928
+ /**
34929
+ *
34930
+ * @summary Create the restricted-area passcode for a business/device, but only while none exists yet. Once a passcode has been set, this endpoint always fails with a conflict — the app can never change or remove it after creation. Only the admin-only PUT endpoint (support tooling, shared API key) can modify it after that.
34931
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
34932
+ * @param {*} [options] Override http request option.
34933
+ * @throws {RequiredError}
34934
+ */
34935
+ payTerminalLockCreate(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: any): AxiosPromise<SetPayTerminalLockResponseDto>;
34936
+ /**
34937
+ *
34938
+ * @summary Set or replace the restricted-area passcode for a business/device. Internal/support tooling only — gated by the shared server API key, not a regular business JWT session, so a locked-out staff member\'s own login can\'t be used to reset their own restriction.
34939
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
34940
+ * @param {*} [options] Override http request option.
34941
+ * @throws {RequiredError}
34942
+ */
34943
+ payTerminalLockSet(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: any): AxiosPromise<SetPayTerminalLockResponseDto>;
34944
+ /**
34945
+ *
34946
+ * @summary Check whether a business/device has a restricted-area passcode configured.
34947
+ * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
34948
+ * @param {*} [options] Override http request option.
34949
+ * @throws {RequiredError}
34950
+ */
34951
+ payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: any): AxiosPromise<PayTerminalLockStatusResponseDto>;
34952
+ /**
34953
+ *
34954
+ * @summary Verify a restricted-area passcode attempt for a business/device.
34955
+ * @param {VerifyPayTerminalLockBodyDto} verifyPayTerminalLockBodyDto
34956
+ * @param {*} [options] Override http request option.
34957
+ * @throws {RequiredError}
34958
+ */
34959
+ payTerminalLockVerify(verifyPayTerminalLockBodyDto: VerifyPayTerminalLockBodyDto, options?: any): AxiosPromise<VerifyPayTerminalLockResponseDto>;
34750
34960
  /**
34751
34961
  *
34752
34962
  * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
@@ -34787,6 +34997,42 @@ export interface PayTerminalApiInterface {
34787
34997
  * @memberof PayTerminalApiInterface
34788
34998
  */
34789
34999
  payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalInitResponseDto>;
35000
+ /**
35001
+ *
35002
+ * @summary Create the restricted-area passcode for a business/device, but only while none exists yet. Once a passcode has been set, this endpoint always fails with a conflict — the app can never change or remove it after creation. Only the admin-only PUT endpoint (support tooling, shared API key) can modify it after that.
35003
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
35004
+ * @param {*} [options] Override http request option.
35005
+ * @throws {RequiredError}
35006
+ * @memberof PayTerminalApiInterface
35007
+ */
35008
+ payTerminalLockCreate(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): AxiosPromise<SetPayTerminalLockResponseDto>;
35009
+ /**
35010
+ *
35011
+ * @summary Set or replace the restricted-area passcode for a business/device. Internal/support tooling only — gated by the shared server API key, not a regular business JWT session, so a locked-out staff member\'s own login can\'t be used to reset their own restriction.
35012
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
35013
+ * @param {*} [options] Override http request option.
35014
+ * @throws {RequiredError}
35015
+ * @memberof PayTerminalApiInterface
35016
+ */
35017
+ payTerminalLockSet(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): AxiosPromise<SetPayTerminalLockResponseDto>;
35018
+ /**
35019
+ *
35020
+ * @summary Check whether a business/device has a restricted-area passcode configured.
35021
+ * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
35022
+ * @param {*} [options] Override http request option.
35023
+ * @throws {RequiredError}
35024
+ * @memberof PayTerminalApiInterface
35025
+ */
35026
+ payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalLockStatusResponseDto>;
35027
+ /**
35028
+ *
35029
+ * @summary Verify a restricted-area passcode attempt for a business/device.
35030
+ * @param {VerifyPayTerminalLockBodyDto} verifyPayTerminalLockBodyDto
35031
+ * @param {*} [options] Override http request option.
35032
+ * @throws {RequiredError}
35033
+ * @memberof PayTerminalApiInterface
35034
+ */
35035
+ payTerminalLockVerify(verifyPayTerminalLockBodyDto: VerifyPayTerminalLockBodyDto, options?: AxiosRequestConfig): AxiosPromise<VerifyPayTerminalLockResponseDto>;
34790
35036
  /**
34791
35037
  *
34792
35038
  * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
@@ -34831,6 +35077,42 @@ export declare class PayTerminalApi extends BaseAPI implements PayTerminalApiInt
34831
35077
  * @memberof PayTerminalApi
34832
35078
  */
34833
35079
  payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayTerminalInitResponseDto, any, {}>>;
35080
+ /**
35081
+ *
35082
+ * @summary Create the restricted-area passcode for a business/device, but only while none exists yet. Once a passcode has been set, this endpoint always fails with a conflict — the app can never change or remove it after creation. Only the admin-only PUT endpoint (support tooling, shared API key) can modify it after that.
35083
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
35084
+ * @param {*} [options] Override http request option.
35085
+ * @throws {RequiredError}
35086
+ * @memberof PayTerminalApi
35087
+ */
35088
+ payTerminalLockCreate(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetPayTerminalLockResponseDto, any, {}>>;
35089
+ /**
35090
+ *
35091
+ * @summary Set or replace the restricted-area passcode for a business/device. Internal/support tooling only — gated by the shared server API key, not a regular business JWT session, so a locked-out staff member\'s own login can\'t be used to reset their own restriction.
35092
+ * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
35093
+ * @param {*} [options] Override http request option.
35094
+ * @throws {RequiredError}
35095
+ * @memberof PayTerminalApi
35096
+ */
35097
+ payTerminalLockSet(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetPayTerminalLockResponseDto, any, {}>>;
35098
+ /**
35099
+ *
35100
+ * @summary Check whether a business/device has a restricted-area passcode configured.
35101
+ * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
35102
+ * @param {*} [options] Override http request option.
35103
+ * @throws {RequiredError}
35104
+ * @memberof PayTerminalApi
35105
+ */
35106
+ payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayTerminalLockStatusResponseDto, any, {}>>;
35107
+ /**
35108
+ *
35109
+ * @summary Verify a restricted-area passcode attempt for a business/device.
35110
+ * @param {VerifyPayTerminalLockBodyDto} verifyPayTerminalLockBodyDto
35111
+ * @param {*} [options] Override http request option.
35112
+ * @throws {RequiredError}
35113
+ * @memberof PayTerminalApi
35114
+ */
35115
+ payTerminalLockVerify(verifyPayTerminalLockBodyDto: VerifyPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyPayTerminalLockResponseDto, any, {}>>;
34834
35116
  /**
34835
35117
  *
34836
35118
  * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).