@munchi_oy/core 1.9.106 → 1.9.107

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.
@@ -21315,6 +21315,50 @@ export interface SyncKioskOrderResponseDto {
21315
21315
  */
21316
21316
  'orderId': string;
21317
21317
  }
21318
+ /**
21319
+ *
21320
+ * @export
21321
+ * @interface SyncPayTerminalLockBodyDto
21322
+ */
21323
+ export interface SyncPayTerminalLockBodyDto {
21324
+ /**
21325
+ * Business the terminal belongs to.
21326
+ * @type {number}
21327
+ * @memberof SyncPayTerminalLockBodyDto
21328
+ */
21329
+ 'businessId': number;
21330
+ /**
21331
+ * Stable hardware identifier of the pay-terminal device.
21332
+ * @type {string}
21333
+ * @memberof SyncPayTerminalLockBodyDto
21334
+ */
21335
+ 'deviceId': string;
21336
+ /**
21337
+ * Human-readable terminal name, for admin/support lookup only.
21338
+ * @type {string}
21339
+ * @memberof SyncPayTerminalLockBodyDto
21340
+ */
21341
+ 'deviceName'?: string | null;
21342
+ /**
21343
+ * Passcode to claim for this business/device, if none is set yet. Omit to just register/refresh the device without touching the passcode.
21344
+ * @type {string}
21345
+ * @memberof SyncPayTerminalLockBodyDto
21346
+ */
21347
+ 'passcode'?: string;
21348
+ }
21349
+ /**
21350
+ *
21351
+ * @export
21352
+ * @interface SyncPayTerminalLockResponseDto
21353
+ */
21354
+ export interface SyncPayTerminalLockResponseDto {
21355
+ /**
21356
+ *
21357
+ * @type {boolean}
21358
+ * @memberof SyncPayTerminalLockResponseDto
21359
+ */
21360
+ 'success': boolean;
21361
+ }
21318
21362
  /**
21319
21363
  *
21320
21364
  * @export
@@ -34785,14 +34829,6 @@ export declare const PayTerminalApiAxiosParamCreator: (configuration?: Configura
34785
34829
  * @throws {RequiredError}
34786
34830
  */
34787
34831
  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
34832
  /**
34797
34833
  *
34798
34834
  * @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.
@@ -34809,6 +34845,14 @@ export declare const PayTerminalApiAxiosParamCreator: (configuration?: Configura
34809
34845
  * @throws {RequiredError}
34810
34846
  */
34811
34847
  payTerminalLockStatus: (payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34848
+ /**
34849
+ *
34850
+ * @summary Register/refresh a business/device pair (name included) on login, venue-selection, or a terminal-name change. If a passcode is included and none is set yet, claims it in the same call — fails with a conflict if one already exists. Never lets the app change or remove an existing passcode; only the admin-only PUT endpoint can do that.
34851
+ * @param {SyncPayTerminalLockBodyDto} syncPayTerminalLockBodyDto
34852
+ * @param {*} [options] Override http request option.
34853
+ * @throws {RequiredError}
34854
+ */
34855
+ payTerminalLockSync: (syncPayTerminalLockBodyDto: SyncPayTerminalLockBodyDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34812
34856
  /**
34813
34857
  *
34814
34858
  * @summary Verify a restricted-area passcode attempt for a business/device.
@@ -34855,14 +34899,6 @@ export declare const PayTerminalApiFp: (configuration?: Configuration) => {
34855
34899
  * @throws {RequiredError}
34856
34900
  */
34857
34901
  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
34902
  /**
34867
34903
  *
34868
34904
  * @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.
@@ -34879,6 +34915,14 @@ export declare const PayTerminalApiFp: (configuration?: Configuration) => {
34879
34915
  * @throws {RequiredError}
34880
34916
  */
34881
34917
  payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalLockStatusResponseDto>>;
34918
+ /**
34919
+ *
34920
+ * @summary Register/refresh a business/device pair (name included) on login, venue-selection, or a terminal-name change. If a passcode is included and none is set yet, claims it in the same call — fails with a conflict if one already exists. Never lets the app change or remove an existing passcode; only the admin-only PUT endpoint can do that.
34921
+ * @param {SyncPayTerminalLockBodyDto} syncPayTerminalLockBodyDto
34922
+ * @param {*} [options] Override http request option.
34923
+ * @throws {RequiredError}
34924
+ */
34925
+ payTerminalLockSync(syncPayTerminalLockBodyDto: SyncPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncPayTerminalLockResponseDto>>;
34882
34926
  /**
34883
34927
  *
34884
34928
  * @summary Verify a restricted-area passcode attempt for a business/device.
@@ -34925,14 +34969,6 @@ export declare const PayTerminalApiFactory: (configuration?: Configuration, base
34925
34969
  * @throws {RequiredError}
34926
34970
  */
34927
34971
  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
34972
  /**
34937
34973
  *
34938
34974
  * @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.
@@ -34949,6 +34985,14 @@ export declare const PayTerminalApiFactory: (configuration?: Configuration, base
34949
34985
  * @throws {RequiredError}
34950
34986
  */
34951
34987
  payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: any): AxiosPromise<PayTerminalLockStatusResponseDto>;
34988
+ /**
34989
+ *
34990
+ * @summary Register/refresh a business/device pair (name included) on login, venue-selection, or a terminal-name change. If a passcode is included and none is set yet, claims it in the same call — fails with a conflict if one already exists. Never lets the app change or remove an existing passcode; only the admin-only PUT endpoint can do that.
34991
+ * @param {SyncPayTerminalLockBodyDto} syncPayTerminalLockBodyDto
34992
+ * @param {*} [options] Override http request option.
34993
+ * @throws {RequiredError}
34994
+ */
34995
+ payTerminalLockSync(syncPayTerminalLockBodyDto: SyncPayTerminalLockBodyDto, options?: any): AxiosPromise<SyncPayTerminalLockResponseDto>;
34952
34996
  /**
34953
34997
  *
34954
34998
  * @summary Verify a restricted-area passcode attempt for a business/device.
@@ -34999,31 +35043,31 @@ export interface PayTerminalApiInterface {
34999
35043
  payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalInitResponseDto>;
35000
35044
  /**
35001
35045
  *
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.
35046
+ * @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.
35003
35047
  * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
35004
35048
  * @param {*} [options] Override http request option.
35005
35049
  * @throws {RequiredError}
35006
35050
  * @memberof PayTerminalApiInterface
35007
35051
  */
35008
- payTerminalLockCreate(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): AxiosPromise<SetPayTerminalLockResponseDto>;
35052
+ payTerminalLockSet(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): AxiosPromise<SetPayTerminalLockResponseDto>;
35009
35053
  /**
35010
35054
  *
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
35055
+ * @summary Check whether a business/device has a restricted-area passcode configured.
35056
+ * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
35013
35057
  * @param {*} [options] Override http request option.
35014
35058
  * @throws {RequiredError}
35015
35059
  * @memberof PayTerminalApiInterface
35016
35060
  */
35017
- payTerminalLockSet(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): AxiosPromise<SetPayTerminalLockResponseDto>;
35061
+ payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalLockStatusResponseDto>;
35018
35062
  /**
35019
35063
  *
35020
- * @summary Check whether a business/device has a restricted-area passcode configured.
35021
- * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
35064
+ * @summary Register/refresh a business/device pair (name included) on login, venue-selection, or a terminal-name change. If a passcode is included and none is set yet, claims it in the same call — fails with a conflict if one already exists. Never lets the app change or remove an existing passcode; only the admin-only PUT endpoint can do that.
35065
+ * @param {SyncPayTerminalLockBodyDto} syncPayTerminalLockBodyDto
35022
35066
  * @param {*} [options] Override http request option.
35023
35067
  * @throws {RequiredError}
35024
35068
  * @memberof PayTerminalApiInterface
35025
35069
  */
35026
- payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalLockStatusResponseDto>;
35070
+ payTerminalLockSync(syncPayTerminalLockBodyDto: SyncPayTerminalLockBodyDto, options?: AxiosRequestConfig): AxiosPromise<SyncPayTerminalLockResponseDto>;
35027
35071
  /**
35028
35072
  *
35029
35073
  * @summary Verify a restricted-area passcode attempt for a business/device.
@@ -35079,31 +35123,31 @@ export declare class PayTerminalApi extends BaseAPI implements PayTerminalApiInt
35079
35123
  payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayTerminalInitResponseDto, any, {}>>;
35080
35124
  /**
35081
35125
  *
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.
35126
+ * @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.
35083
35127
  * @param {SetPayTerminalLockBodyDto} setPayTerminalLockBodyDto
35084
35128
  * @param {*} [options] Override http request option.
35085
35129
  * @throws {RequiredError}
35086
35130
  * @memberof PayTerminalApi
35087
35131
  */
35088
- payTerminalLockCreate(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetPayTerminalLockResponseDto, any, {}>>;
35132
+ payTerminalLockSet(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetPayTerminalLockResponseDto, any, {}>>;
35089
35133
  /**
35090
35134
  *
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
35135
+ * @summary Check whether a business/device has a restricted-area passcode configured.
35136
+ * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
35093
35137
  * @param {*} [options] Override http request option.
35094
35138
  * @throws {RequiredError}
35095
35139
  * @memberof PayTerminalApi
35096
35140
  */
35097
- payTerminalLockSet(setPayTerminalLockBodyDto: SetPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetPayTerminalLockResponseDto, any, {}>>;
35141
+ payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayTerminalLockStatusResponseDto, any, {}>>;
35098
35142
  /**
35099
35143
  *
35100
- * @summary Check whether a business/device has a restricted-area passcode configured.
35101
- * @param {PayTerminalLockStatusBodyDto} payTerminalLockStatusBodyDto
35144
+ * @summary Register/refresh a business/device pair (name included) on login, venue-selection, or a terminal-name change. If a passcode is included and none is set yet, claims it in the same call — fails with a conflict if one already exists. Never lets the app change or remove an existing passcode; only the admin-only PUT endpoint can do that.
35145
+ * @param {SyncPayTerminalLockBodyDto} syncPayTerminalLockBodyDto
35102
35146
  * @param {*} [options] Override http request option.
35103
35147
  * @throws {RequiredError}
35104
35148
  * @memberof PayTerminalApi
35105
35149
  */
35106
- payTerminalLockStatus(payTerminalLockStatusBodyDto: PayTerminalLockStatusBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayTerminalLockStatusResponseDto, any, {}>>;
35150
+ payTerminalLockSync(syncPayTerminalLockBodyDto: SyncPayTerminalLockBodyDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncPayTerminalLockResponseDto, any, {}>>;
35107
35151
  /**
35108
35152
  *
35109
35153
  * @summary Verify a restricted-area passcode attempt for a business/device.