@klingis/sdk 0.2.0 → 0.4.0
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/README.md +66 -0
- package/dist/generated/checkout-sessions/checkout-sessions.d.ts +37 -1
- package/dist/generated/checkout-sessions/checkout-sessions.d.ts.map +1 -1
- package/dist/generated/checkout-sessions/checkout-sessions.js +16 -0
- package/dist/generated/checkout-sessions/checkout-sessions.js.map +1 -1
- package/dist/generated/claims/claims.d.ts +1 -61
- package/dist/generated/claims/claims.d.ts.map +1 -1
- package/dist/generated/claims/claims.js +0 -9
- package/dist/generated/claims/claims.js.map +1 -1
- package/dist/generated/customers/customers.d.ts +18 -3
- package/dist/generated/customers/customers.d.ts.map +1 -1
- package/dist/generated/customers/customers.js +0 -1
- package/dist/generated/customers/customers.js.map +1 -1
- package/dist/generated/default/default.d.ts +11 -0
- package/dist/generated/default/default.d.ts.map +1 -0
- package/dist/generated/default/default.js +19 -0
- package/dist/generated/default/default.js.map +1 -0
- package/dist/generated/delivery/delivery.d.ts +488 -0
- package/dist/generated/delivery/delivery.d.ts.map +1 -0
- package/dist/generated/delivery/delivery.js +96 -0
- package/dist/generated/delivery/delivery.js.map +1 -0
- package/dist/generated/health/health.d.ts +51 -2
- package/dist/generated/health/health.d.ts.map +1 -1
- package/dist/generated/health/health.js +19 -0
- package/dist/generated/health/health.js.map +1 -1
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/klingAPI.schemas.d.ts +27880 -11047
- package/dist/generated/klingAPI.schemas.d.ts.map +1 -1
- package/dist/generated/merchant/merchant.d.ts +113 -1
- package/dist/generated/merchant/merchant.d.ts.map +1 -1
- package/dist/generated/merchant/merchant.js +19 -0
- package/dist/generated/merchant/merchant.js.map +1 -1
- package/dist/generated/open-payment-pages/open-payment-pages.d.ts +277 -0
- package/dist/generated/open-payment-pages/open-payment-pages.d.ts.map +1 -0
- package/dist/generated/open-payment-pages/open-payment-pages.js +75 -0
- package/dist/generated/open-payment-pages/open-payment-pages.js.map +1 -0
- package/dist/generated/payment-intents/payment-intents.d.ts +50 -1
- package/dist/generated/payment-intents/payment-intents.d.ts.map +1 -1
- package/dist/generated/payment-intents/payment-intents.js +10 -0
- package/dist/generated/payment-intents/payment-intents.js.map +1 -1
- package/dist/generated/pos/pos.d.ts +648 -0
- package/dist/generated/pos/pos.d.ts.map +1 -0
- package/dist/generated/pos/pos.js +169 -0
- package/dist/generated/pos/pos.js.map +1 -0
- package/dist/generated/pos-devices/pos-devices.d.ts +51 -2
- package/dist/generated/pos-devices/pos-devices.d.ts.map +1 -1
- package/dist/generated/pos-devices/pos-devices.js +10 -0
- package/dist/generated/pos-devices/pos-devices.js.map +1 -1
- package/dist/generated/products/products.d.ts +164 -5
- package/dist/generated/products/products.d.ts.map +1 -1
- package/dist/generated/products/products.js +36 -0
- package/dist/generated/products/products.js.map +1 -1
- package/dist/generated/terminal/terminal.d.ts +360 -3
- package/dist/generated/terminal/terminal.d.ts.map +1 -1
- package/dist/generated/terminal/terminal.js +54 -0
- package/dist/generated/terminal/terminal.js.map +1 -1
- package/package.json +12 -5
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Kling API
|
|
5
|
+
* Payments and subscriptions platform for Iceland.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { DeleteV1PosPagesById200One, DeleteV1PosPagesById200Three, DeleteV1PosPagesById200Two, DeleteV1PosPagesById404One, DeleteV1PosPagesById404Three, DeleteV1PosPagesById404Two, GetV1PosDevice200One, GetV1PosDevice200Three, GetV1PosDevice200Two, GetV1PosPages200One, GetV1PosPages200Three, GetV1PosPages200Two, GetV1PosStaff200One, GetV1PosStaff200Three, GetV1PosStaff200Two, GetV1PosStock200One, GetV1PosStock200Three, GetV1PosStock200Two, GetV1PosStock403One, GetV1PosStock403Three, GetV1PosStock403Two, GetV1PosStockByProductIdMovements200One, GetV1PosStockByProductIdMovements200Three, GetV1PosStockByProductIdMovements200Two, GetV1PosStockByProductIdMovements403One, GetV1PosStockByProductIdMovements403Three, GetV1PosStockByProductIdMovements403Two, GetV1PosStockByProductIdMovementsParams, GetV1PosStockParams, GetV1PosZReport200One, GetV1PosZReport200Three, GetV1PosZReport200Two, GetV1PosZReport400One, GetV1PosZReport400Three, GetV1PosZReport400Two, GetV1PosZReportParams, PatchV1PosPagesById200One, PatchV1PosPagesById200Three, PatchV1PosPagesById200Two, PatchV1PosPagesById400One, PatchV1PosPagesById400Three, PatchV1PosPagesById400Two, PatchV1PosPagesById404One, PatchV1PosPagesById404Three, PatchV1PosPagesById404Two, PatchV1PosPagesByIdBodyOne, PatchV1PosPagesByIdBodyThree, PatchV1PosPagesByIdBodyTwo, PatchV1PosStaffById200One, PatchV1PosStaffById200Three, PatchV1PosStaffById200Two, PatchV1PosStaffById400One, PatchV1PosStaffById400Three, PatchV1PosStaffById400Two, PatchV1PosStaffById404One, PatchV1PosStaffById404Three, PatchV1PosStaffById404Two, PatchV1PosStaffById409One, PatchV1PosStaffById409Three, PatchV1PosStaffById409Two, PatchV1PosStaffByIdBodyOne, PatchV1PosStaffByIdBodyThree, PatchV1PosStaffByIdBodyTwo, PatchV1PosStockByProductId200One, PatchV1PosStockByProductId200Three, PatchV1PosStockByProductId200Two, PatchV1PosStockByProductId400One, PatchV1PosStockByProductId400Three, PatchV1PosStockByProductId400Two, PatchV1PosStockByProductId403One, PatchV1PosStockByProductId403Three, PatchV1PosStockByProductId403Two, PatchV1PosStockByProductId404One, PatchV1PosStockByProductId404Three, PatchV1PosStockByProductId404Two, PatchV1PosStockByProductIdBodyOne, PatchV1PosStockByProductIdBodyThree, PatchV1PosStockByProductIdBodyTwo, PostV1PosPages200One, PostV1PosPages200Three, PostV1PosPages200Two, PostV1PosPages400One, PostV1PosPages400Three, PostV1PosPages400Two, PostV1PosPagesBodyOne, PostV1PosPagesBodyThree, PostV1PosPagesBodyTwo, PostV1PosStaff200One, PostV1PosStaff200Three, PostV1PosStaff200Two, PostV1PosStaff400One, PostV1PosStaff400Three, PostV1PosStaff400Two, PostV1PosStaff409One, PostV1PosStaff409Three, PostV1PosStaff409Two, PostV1PosStaffBodyOne, PostV1PosStaffBodyThree, PostV1PosStaffBodyTwo, PostV1PosStaffVerify200One, PostV1PosStaffVerify200Three, PostV1PosStaffVerify200Two, PostV1PosStaffVerify400One, PostV1PosStaffVerify400Three, PostV1PosStaffVerify400Two, PostV1PosStaffVerify401One, PostV1PosStaffVerify401Three, PostV1PosStaffVerify401Two, PostV1PosStaffVerify429One, PostV1PosStaffVerify429Three, PostV1PosStaffVerify429Two, PostV1PosStaffVerifyBodyOne, PostV1PosStaffVerifyBodyThree, PostV1PosStaffVerifyBodyTwo, PostV1PosStockAdjust200One, PostV1PosStockAdjust200Three, PostV1PosStockAdjust200Two, PostV1PosStockAdjust400One, PostV1PosStockAdjust400Three, PostV1PosStockAdjust400Two, PostV1PosStockAdjust403One, PostV1PosStockAdjust403Three, PostV1PosStockAdjust403Two, PostV1PosStockAdjust404One, PostV1PosStockAdjust404Three, PostV1PosStockAdjust404Two, PostV1PosStockAdjustBodyOne, PostV1PosStockAdjustBodyThree, PostV1PosStockAdjustBodyTwo, PutV1PosPagesByIdTiles200One, PutV1PosPagesByIdTiles200Three, PutV1PosPagesByIdTiles200Two, PutV1PosPagesByIdTiles400One, PutV1PosPagesByIdTiles400Three, PutV1PosPagesByIdTiles400Two, PutV1PosPagesByIdTiles404One, PutV1PosPagesByIdTiles404Three, PutV1PosPagesByIdTiles404Two, PutV1PosPagesByIdTilesBodyOne, PutV1PosPagesByIdTilesBodyThree, PutV1PosPagesByIdTilesBodyTwo } from '../klingAPI.schemas';
|
|
9
|
+
/**
|
|
10
|
+
* The merchant's tile pages for the app's checkout, in display order, with the product ids on each.
|
|
11
|
+
* @summary List POS pages
|
|
12
|
+
*/
|
|
13
|
+
export type getV1PosPagesResponse200ApplicationJson = {
|
|
14
|
+
data: GetV1PosPages200One;
|
|
15
|
+
status: 200;
|
|
16
|
+
};
|
|
17
|
+
export type getV1PosPagesResponse200MultipartFormData = {
|
|
18
|
+
data: GetV1PosPages200Two;
|
|
19
|
+
status: 200;
|
|
20
|
+
};
|
|
21
|
+
export type getV1PosPagesResponse200TextPlain = {
|
|
22
|
+
data: GetV1PosPages200Three;
|
|
23
|
+
status: 200;
|
|
24
|
+
};
|
|
25
|
+
export type getV1PosPagesResponseSuccess = (getV1PosPagesResponse200ApplicationJson | getV1PosPagesResponse200MultipartFormData | getV1PosPagesResponse200TextPlain) & {
|
|
26
|
+
headers: Headers;
|
|
27
|
+
};
|
|
28
|
+
export type getV1PosPagesResponse = (getV1PosPagesResponseSuccess);
|
|
29
|
+
export declare const getGetV1PosPagesUrl: () => string;
|
|
30
|
+
export declare const getV1PosPages: (options?: RequestInit) => Promise<getV1PosPagesResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* @summary Create a POS page
|
|
33
|
+
*/
|
|
34
|
+
export type postV1PosPagesResponse200ApplicationJson = {
|
|
35
|
+
data: PostV1PosPages200One;
|
|
36
|
+
status: 200;
|
|
37
|
+
};
|
|
38
|
+
export type postV1PosPagesResponse200MultipartFormData = {
|
|
39
|
+
data: PostV1PosPages200Two;
|
|
40
|
+
status: 200;
|
|
41
|
+
};
|
|
42
|
+
export type postV1PosPagesResponse200TextPlain = {
|
|
43
|
+
data: PostV1PosPages200Three;
|
|
44
|
+
status: 200;
|
|
45
|
+
};
|
|
46
|
+
export type postV1PosPagesResponse400ApplicationJson = {
|
|
47
|
+
data: PostV1PosPages400One;
|
|
48
|
+
status: 400;
|
|
49
|
+
};
|
|
50
|
+
export type postV1PosPagesResponse400MultipartFormData = {
|
|
51
|
+
data: PostV1PosPages400Two;
|
|
52
|
+
status: 400;
|
|
53
|
+
};
|
|
54
|
+
export type postV1PosPagesResponse400TextPlain = {
|
|
55
|
+
data: PostV1PosPages400Three;
|
|
56
|
+
status: 400;
|
|
57
|
+
};
|
|
58
|
+
export type postV1PosPagesResponseSuccess = (postV1PosPagesResponse200ApplicationJson | postV1PosPagesResponse200MultipartFormData | postV1PosPagesResponse200TextPlain) & {
|
|
59
|
+
headers: Headers;
|
|
60
|
+
};
|
|
61
|
+
export type postV1PosPagesResponseError = (postV1PosPagesResponse400ApplicationJson | postV1PosPagesResponse400MultipartFormData | postV1PosPagesResponse400TextPlain) & {
|
|
62
|
+
headers: Headers;
|
|
63
|
+
};
|
|
64
|
+
export type postV1PosPagesResponse = (postV1PosPagesResponseSuccess | postV1PosPagesResponseError);
|
|
65
|
+
export declare const getPostV1PosPagesUrl: () => string;
|
|
66
|
+
export declare const postV1PosPages: (postV1PosPagesBody: PostV1PosPagesBodyOne | PostV1PosPagesBodyTwo | PostV1PosPagesBodyThree, options?: RequestInit) => Promise<postV1PosPagesResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* @summary Rename or reorder a POS page
|
|
69
|
+
*/
|
|
70
|
+
export type patchV1PosPagesByIdResponse200ApplicationJson = {
|
|
71
|
+
data: PatchV1PosPagesById200One;
|
|
72
|
+
status: 200;
|
|
73
|
+
};
|
|
74
|
+
export type patchV1PosPagesByIdResponse200MultipartFormData = {
|
|
75
|
+
data: PatchV1PosPagesById200Two;
|
|
76
|
+
status: 200;
|
|
77
|
+
};
|
|
78
|
+
export type patchV1PosPagesByIdResponse200TextPlain = {
|
|
79
|
+
data: PatchV1PosPagesById200Three;
|
|
80
|
+
status: 200;
|
|
81
|
+
};
|
|
82
|
+
export type patchV1PosPagesByIdResponse400ApplicationJson = {
|
|
83
|
+
data: PatchV1PosPagesById400One;
|
|
84
|
+
status: 400;
|
|
85
|
+
};
|
|
86
|
+
export type patchV1PosPagesByIdResponse400MultipartFormData = {
|
|
87
|
+
data: PatchV1PosPagesById400Two;
|
|
88
|
+
status: 400;
|
|
89
|
+
};
|
|
90
|
+
export type patchV1PosPagesByIdResponse400TextPlain = {
|
|
91
|
+
data: PatchV1PosPagesById400Three;
|
|
92
|
+
status: 400;
|
|
93
|
+
};
|
|
94
|
+
export type patchV1PosPagesByIdResponse404ApplicationJson = {
|
|
95
|
+
data: PatchV1PosPagesById404One;
|
|
96
|
+
status: 404;
|
|
97
|
+
};
|
|
98
|
+
export type patchV1PosPagesByIdResponse404MultipartFormData = {
|
|
99
|
+
data: PatchV1PosPagesById404Two;
|
|
100
|
+
status: 404;
|
|
101
|
+
};
|
|
102
|
+
export type patchV1PosPagesByIdResponse404TextPlain = {
|
|
103
|
+
data: PatchV1PosPagesById404Three;
|
|
104
|
+
status: 404;
|
|
105
|
+
};
|
|
106
|
+
export type patchV1PosPagesByIdResponseSuccess = (patchV1PosPagesByIdResponse200ApplicationJson | patchV1PosPagesByIdResponse200MultipartFormData | patchV1PosPagesByIdResponse200TextPlain) & {
|
|
107
|
+
headers: Headers;
|
|
108
|
+
};
|
|
109
|
+
export type patchV1PosPagesByIdResponseError = (patchV1PosPagesByIdResponse400ApplicationJson | patchV1PosPagesByIdResponse400MultipartFormData | patchV1PosPagesByIdResponse400TextPlain | patchV1PosPagesByIdResponse404ApplicationJson | patchV1PosPagesByIdResponse404MultipartFormData | patchV1PosPagesByIdResponse404TextPlain) & {
|
|
110
|
+
headers: Headers;
|
|
111
|
+
};
|
|
112
|
+
export type patchV1PosPagesByIdResponse = (patchV1PosPagesByIdResponseSuccess | patchV1PosPagesByIdResponseError);
|
|
113
|
+
export declare const getPatchV1PosPagesByIdUrl: (id: string) => string;
|
|
114
|
+
export declare const patchV1PosPagesById: (id: string, patchV1PosPagesByIdBody: PatchV1PosPagesByIdBodyOne | PatchV1PosPagesByIdBodyTwo | PatchV1PosPagesByIdBodyThree, options?: RequestInit) => Promise<patchV1PosPagesByIdResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* @summary Delete a POS page
|
|
117
|
+
*/
|
|
118
|
+
export type deleteV1PosPagesByIdResponse200ApplicationJson = {
|
|
119
|
+
data: DeleteV1PosPagesById200One;
|
|
120
|
+
status: 200;
|
|
121
|
+
};
|
|
122
|
+
export type deleteV1PosPagesByIdResponse200MultipartFormData = {
|
|
123
|
+
data: DeleteV1PosPagesById200Two;
|
|
124
|
+
status: 200;
|
|
125
|
+
};
|
|
126
|
+
export type deleteV1PosPagesByIdResponse200TextPlain = {
|
|
127
|
+
data: DeleteV1PosPagesById200Three;
|
|
128
|
+
status: 200;
|
|
129
|
+
};
|
|
130
|
+
export type deleteV1PosPagesByIdResponse404ApplicationJson = {
|
|
131
|
+
data: DeleteV1PosPagesById404One;
|
|
132
|
+
status: 404;
|
|
133
|
+
};
|
|
134
|
+
export type deleteV1PosPagesByIdResponse404MultipartFormData = {
|
|
135
|
+
data: DeleteV1PosPagesById404Two;
|
|
136
|
+
status: 404;
|
|
137
|
+
};
|
|
138
|
+
export type deleteV1PosPagesByIdResponse404TextPlain = {
|
|
139
|
+
data: DeleteV1PosPagesById404Three;
|
|
140
|
+
status: 404;
|
|
141
|
+
};
|
|
142
|
+
export type deleteV1PosPagesByIdResponseSuccess = (deleteV1PosPagesByIdResponse200ApplicationJson | deleteV1PosPagesByIdResponse200MultipartFormData | deleteV1PosPagesByIdResponse200TextPlain) & {
|
|
143
|
+
headers: Headers;
|
|
144
|
+
};
|
|
145
|
+
export type deleteV1PosPagesByIdResponseError = (deleteV1PosPagesByIdResponse404ApplicationJson | deleteV1PosPagesByIdResponse404MultipartFormData | deleteV1PosPagesByIdResponse404TextPlain) & {
|
|
146
|
+
headers: Headers;
|
|
147
|
+
};
|
|
148
|
+
export type deleteV1PosPagesByIdResponse = (deleteV1PosPagesByIdResponseSuccess | deleteV1PosPagesByIdResponseError);
|
|
149
|
+
export declare const getDeleteV1PosPagesByIdUrl: (id: string) => string;
|
|
150
|
+
export declare const deleteV1PosPagesById: (id: string, options?: RequestInit) => Promise<deleteV1PosPagesByIdResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* Whole-set replace: send the grid as shown. Products must be the merchant's own active one-time products.
|
|
153
|
+
* @summary Replace the tiles on a POS page
|
|
154
|
+
*/
|
|
155
|
+
export type putV1PosPagesByIdTilesResponse200ApplicationJson = {
|
|
156
|
+
data: PutV1PosPagesByIdTiles200One;
|
|
157
|
+
status: 200;
|
|
158
|
+
};
|
|
159
|
+
export type putV1PosPagesByIdTilesResponse200MultipartFormData = {
|
|
160
|
+
data: PutV1PosPagesByIdTiles200Two;
|
|
161
|
+
status: 200;
|
|
162
|
+
};
|
|
163
|
+
export type putV1PosPagesByIdTilesResponse200TextPlain = {
|
|
164
|
+
data: PutV1PosPagesByIdTiles200Three;
|
|
165
|
+
status: 200;
|
|
166
|
+
};
|
|
167
|
+
export type putV1PosPagesByIdTilesResponse400ApplicationJson = {
|
|
168
|
+
data: PutV1PosPagesByIdTiles400One;
|
|
169
|
+
status: 400;
|
|
170
|
+
};
|
|
171
|
+
export type putV1PosPagesByIdTilesResponse400MultipartFormData = {
|
|
172
|
+
data: PutV1PosPagesByIdTiles400Two;
|
|
173
|
+
status: 400;
|
|
174
|
+
};
|
|
175
|
+
export type putV1PosPagesByIdTilesResponse400TextPlain = {
|
|
176
|
+
data: PutV1PosPagesByIdTiles400Three;
|
|
177
|
+
status: 400;
|
|
178
|
+
};
|
|
179
|
+
export type putV1PosPagesByIdTilesResponse404ApplicationJson = {
|
|
180
|
+
data: PutV1PosPagesByIdTiles404One;
|
|
181
|
+
status: 404;
|
|
182
|
+
};
|
|
183
|
+
export type putV1PosPagesByIdTilesResponse404MultipartFormData = {
|
|
184
|
+
data: PutV1PosPagesByIdTiles404Two;
|
|
185
|
+
status: 404;
|
|
186
|
+
};
|
|
187
|
+
export type putV1PosPagesByIdTilesResponse404TextPlain = {
|
|
188
|
+
data: PutV1PosPagesByIdTiles404Three;
|
|
189
|
+
status: 404;
|
|
190
|
+
};
|
|
191
|
+
export type putV1PosPagesByIdTilesResponseSuccess = (putV1PosPagesByIdTilesResponse200ApplicationJson | putV1PosPagesByIdTilesResponse200MultipartFormData | putV1PosPagesByIdTilesResponse200TextPlain) & {
|
|
192
|
+
headers: Headers;
|
|
193
|
+
};
|
|
194
|
+
export type putV1PosPagesByIdTilesResponseError = (putV1PosPagesByIdTilesResponse400ApplicationJson | putV1PosPagesByIdTilesResponse400MultipartFormData | putV1PosPagesByIdTilesResponse400TextPlain | putV1PosPagesByIdTilesResponse404ApplicationJson | putV1PosPagesByIdTilesResponse404MultipartFormData | putV1PosPagesByIdTilesResponse404TextPlain) & {
|
|
195
|
+
headers: Headers;
|
|
196
|
+
};
|
|
197
|
+
export type putV1PosPagesByIdTilesResponse = (putV1PosPagesByIdTilesResponseSuccess | putV1PosPagesByIdTilesResponseError);
|
|
198
|
+
export declare const getPutV1PosPagesByIdTilesUrl: (id: string) => string;
|
|
199
|
+
export declare const putV1PosPagesByIdTiles: (id: string, putV1PosPagesByIdTilesBody: PutV1PosPagesByIdTilesBodyOne | PutV1PosPagesByIdTilesBodyTwo | PutV1PosPagesByIdTilesBodyThree, options?: RequestInit) => Promise<putV1PosPagesByIdTilesResponse>;
|
|
200
|
+
/**
|
|
201
|
+
* The sellable catalogue with its counts. Products the merchant has never counted are listed at quantity 0 with no threshold, so the list is usable the day the app is switched on. ?low=true narrows it to the warning list.
|
|
202
|
+
* @summary List stock counts
|
|
203
|
+
*/
|
|
204
|
+
export type getV1PosStockResponse200ApplicationJson = {
|
|
205
|
+
data: GetV1PosStock200One;
|
|
206
|
+
status: 200;
|
|
207
|
+
};
|
|
208
|
+
export type getV1PosStockResponse200MultipartFormData = {
|
|
209
|
+
data: GetV1PosStock200Two;
|
|
210
|
+
status: 200;
|
|
211
|
+
};
|
|
212
|
+
export type getV1PosStockResponse200TextPlain = {
|
|
213
|
+
data: GetV1PosStock200Three;
|
|
214
|
+
status: 200;
|
|
215
|
+
};
|
|
216
|
+
export type getV1PosStockResponse403ApplicationJson = {
|
|
217
|
+
data: GetV1PosStock403One;
|
|
218
|
+
status: 403;
|
|
219
|
+
};
|
|
220
|
+
export type getV1PosStockResponse403MultipartFormData = {
|
|
221
|
+
data: GetV1PosStock403Two;
|
|
222
|
+
status: 403;
|
|
223
|
+
};
|
|
224
|
+
export type getV1PosStockResponse403TextPlain = {
|
|
225
|
+
data: GetV1PosStock403Three;
|
|
226
|
+
status: 403;
|
|
227
|
+
};
|
|
228
|
+
export type getV1PosStockResponseSuccess = (getV1PosStockResponse200ApplicationJson | getV1PosStockResponse200MultipartFormData | getV1PosStockResponse200TextPlain) & {
|
|
229
|
+
headers: Headers;
|
|
230
|
+
};
|
|
231
|
+
export type getV1PosStockResponseError = (getV1PosStockResponse403ApplicationJson | getV1PosStockResponse403MultipartFormData | getV1PosStockResponse403TextPlain) & {
|
|
232
|
+
headers: Headers;
|
|
233
|
+
};
|
|
234
|
+
export type getV1PosStockResponse = (getV1PosStockResponseSuccess | getV1PosStockResponseError);
|
|
235
|
+
export declare const getGetV1PosStockUrl: (params?: GetV1PosStockParams) => string;
|
|
236
|
+
export declare const getV1PosStock: (params?: GetV1PosStockParams, options?: RequestInit) => Promise<getV1PosStockResponse>;
|
|
237
|
+
/**
|
|
238
|
+
* Moves one product's count (or one variant's, with variant_id) by delta and records why. The count may go negative: a shop that sold something the count said it did not have is shown -2, not stopped at the counter. Publishes stock.adjusted.
|
|
239
|
+
* @summary Adjust a stock count
|
|
240
|
+
*/
|
|
241
|
+
export type postV1PosStockAdjustResponse200ApplicationJson = {
|
|
242
|
+
data: PostV1PosStockAdjust200One;
|
|
243
|
+
status: 200;
|
|
244
|
+
};
|
|
245
|
+
export type postV1PosStockAdjustResponse200MultipartFormData = {
|
|
246
|
+
data: PostV1PosStockAdjust200Two;
|
|
247
|
+
status: 200;
|
|
248
|
+
};
|
|
249
|
+
export type postV1PosStockAdjustResponse200TextPlain = {
|
|
250
|
+
data: PostV1PosStockAdjust200Three;
|
|
251
|
+
status: 200;
|
|
252
|
+
};
|
|
253
|
+
export type postV1PosStockAdjustResponse400ApplicationJson = {
|
|
254
|
+
data: PostV1PosStockAdjust400One;
|
|
255
|
+
status: 400;
|
|
256
|
+
};
|
|
257
|
+
export type postV1PosStockAdjustResponse400MultipartFormData = {
|
|
258
|
+
data: PostV1PosStockAdjust400Two;
|
|
259
|
+
status: 400;
|
|
260
|
+
};
|
|
261
|
+
export type postV1PosStockAdjustResponse400TextPlain = {
|
|
262
|
+
data: PostV1PosStockAdjust400Three;
|
|
263
|
+
status: 400;
|
|
264
|
+
};
|
|
265
|
+
export type postV1PosStockAdjustResponse403ApplicationJson = {
|
|
266
|
+
data: PostV1PosStockAdjust403One;
|
|
267
|
+
status: 403;
|
|
268
|
+
};
|
|
269
|
+
export type postV1PosStockAdjustResponse403MultipartFormData = {
|
|
270
|
+
data: PostV1PosStockAdjust403Two;
|
|
271
|
+
status: 403;
|
|
272
|
+
};
|
|
273
|
+
export type postV1PosStockAdjustResponse403TextPlain = {
|
|
274
|
+
data: PostV1PosStockAdjust403Three;
|
|
275
|
+
status: 403;
|
|
276
|
+
};
|
|
277
|
+
export type postV1PosStockAdjustResponse404ApplicationJson = {
|
|
278
|
+
data: PostV1PosStockAdjust404One;
|
|
279
|
+
status: 404;
|
|
280
|
+
};
|
|
281
|
+
export type postV1PosStockAdjustResponse404MultipartFormData = {
|
|
282
|
+
data: PostV1PosStockAdjust404Two;
|
|
283
|
+
status: 404;
|
|
284
|
+
};
|
|
285
|
+
export type postV1PosStockAdjustResponse404TextPlain = {
|
|
286
|
+
data: PostV1PosStockAdjust404Three;
|
|
287
|
+
status: 404;
|
|
288
|
+
};
|
|
289
|
+
export type postV1PosStockAdjustResponseSuccess = (postV1PosStockAdjustResponse200ApplicationJson | postV1PosStockAdjustResponse200MultipartFormData | postV1PosStockAdjustResponse200TextPlain) & {
|
|
290
|
+
headers: Headers;
|
|
291
|
+
};
|
|
292
|
+
export type postV1PosStockAdjustResponseError = (postV1PosStockAdjustResponse400ApplicationJson | postV1PosStockAdjustResponse400MultipartFormData | postV1PosStockAdjustResponse400TextPlain | postV1PosStockAdjustResponse403ApplicationJson | postV1PosStockAdjustResponse403MultipartFormData | postV1PosStockAdjustResponse403TextPlain | postV1PosStockAdjustResponse404ApplicationJson | postV1PosStockAdjustResponse404MultipartFormData | postV1PosStockAdjustResponse404TextPlain) & {
|
|
293
|
+
headers: Headers;
|
|
294
|
+
};
|
|
295
|
+
export type postV1PosStockAdjustResponse = (postV1PosStockAdjustResponseSuccess | postV1PosStockAdjustResponseError);
|
|
296
|
+
export declare const getPostV1PosStockAdjustUrl: () => string;
|
|
297
|
+
export declare const postV1PosStockAdjust: (postV1PosStockAdjustBody: PostV1PosStockAdjustBodyOne | PostV1PosStockAdjustBodyTwo | PostV1PosStockAdjustBodyThree, options?: RequestInit) => Promise<postV1PosStockAdjustResponse>;
|
|
298
|
+
/**
|
|
299
|
+
* Why the count is what it is, newest first. Append-only: sales, refunds, goods received, counts and hand corrections, each with its note.
|
|
300
|
+
* @summary List stock movements for a product
|
|
301
|
+
*/
|
|
302
|
+
export type getV1PosStockByProductIdMovementsResponse200ApplicationJson = {
|
|
303
|
+
data: GetV1PosStockByProductIdMovements200One;
|
|
304
|
+
status: 200;
|
|
305
|
+
};
|
|
306
|
+
export type getV1PosStockByProductIdMovementsResponse200MultipartFormData = {
|
|
307
|
+
data: GetV1PosStockByProductIdMovements200Two;
|
|
308
|
+
status: 200;
|
|
309
|
+
};
|
|
310
|
+
export type getV1PosStockByProductIdMovementsResponse200TextPlain = {
|
|
311
|
+
data: GetV1PosStockByProductIdMovements200Three;
|
|
312
|
+
status: 200;
|
|
313
|
+
};
|
|
314
|
+
export type getV1PosStockByProductIdMovementsResponse403ApplicationJson = {
|
|
315
|
+
data: GetV1PosStockByProductIdMovements403One;
|
|
316
|
+
status: 403;
|
|
317
|
+
};
|
|
318
|
+
export type getV1PosStockByProductIdMovementsResponse403MultipartFormData = {
|
|
319
|
+
data: GetV1PosStockByProductIdMovements403Two;
|
|
320
|
+
status: 403;
|
|
321
|
+
};
|
|
322
|
+
export type getV1PosStockByProductIdMovementsResponse403TextPlain = {
|
|
323
|
+
data: GetV1PosStockByProductIdMovements403Three;
|
|
324
|
+
status: 403;
|
|
325
|
+
};
|
|
326
|
+
export type getV1PosStockByProductIdMovementsResponseSuccess = (getV1PosStockByProductIdMovementsResponse200ApplicationJson | getV1PosStockByProductIdMovementsResponse200MultipartFormData | getV1PosStockByProductIdMovementsResponse200TextPlain) & {
|
|
327
|
+
headers: Headers;
|
|
328
|
+
};
|
|
329
|
+
export type getV1PosStockByProductIdMovementsResponseError = (getV1PosStockByProductIdMovementsResponse403ApplicationJson | getV1PosStockByProductIdMovementsResponse403MultipartFormData | getV1PosStockByProductIdMovementsResponse403TextPlain) & {
|
|
330
|
+
headers: Headers;
|
|
331
|
+
};
|
|
332
|
+
export type getV1PosStockByProductIdMovementsResponse = (getV1PosStockByProductIdMovementsResponseSuccess | getV1PosStockByProductIdMovementsResponseError);
|
|
333
|
+
export declare const getGetV1PosStockByProductIdMovementsUrl: (productId: string, params?: GetV1PosStockByProductIdMovementsParams) => string;
|
|
334
|
+
export declare const getV1PosStockByProductIdMovements: (productId: string, params?: GetV1PosStockByProductIdMovementsParams, options?: RequestInit) => Promise<getV1PosStockByProductIdMovementsResponse>;
|
|
335
|
+
/**
|
|
336
|
+
* Creates the level row at quantity 0 when there is none, so a merchant who wants to be warned at 5 does not have to count the shelf first.
|
|
337
|
+
* @summary Set a product's low-stock threshold or stop tracking it
|
|
338
|
+
*/
|
|
339
|
+
export type patchV1PosStockByProductIdResponse200ApplicationJson = {
|
|
340
|
+
data: PatchV1PosStockByProductId200One;
|
|
341
|
+
status: 200;
|
|
342
|
+
};
|
|
343
|
+
export type patchV1PosStockByProductIdResponse200MultipartFormData = {
|
|
344
|
+
data: PatchV1PosStockByProductId200Two;
|
|
345
|
+
status: 200;
|
|
346
|
+
};
|
|
347
|
+
export type patchV1PosStockByProductIdResponse200TextPlain = {
|
|
348
|
+
data: PatchV1PosStockByProductId200Three;
|
|
349
|
+
status: 200;
|
|
350
|
+
};
|
|
351
|
+
export type patchV1PosStockByProductIdResponse400ApplicationJson = {
|
|
352
|
+
data: PatchV1PosStockByProductId400One;
|
|
353
|
+
status: 400;
|
|
354
|
+
};
|
|
355
|
+
export type patchV1PosStockByProductIdResponse400MultipartFormData = {
|
|
356
|
+
data: PatchV1PosStockByProductId400Two;
|
|
357
|
+
status: 400;
|
|
358
|
+
};
|
|
359
|
+
export type patchV1PosStockByProductIdResponse400TextPlain = {
|
|
360
|
+
data: PatchV1PosStockByProductId400Three;
|
|
361
|
+
status: 400;
|
|
362
|
+
};
|
|
363
|
+
export type patchV1PosStockByProductIdResponse403ApplicationJson = {
|
|
364
|
+
data: PatchV1PosStockByProductId403One;
|
|
365
|
+
status: 403;
|
|
366
|
+
};
|
|
367
|
+
export type patchV1PosStockByProductIdResponse403MultipartFormData = {
|
|
368
|
+
data: PatchV1PosStockByProductId403Two;
|
|
369
|
+
status: 403;
|
|
370
|
+
};
|
|
371
|
+
export type patchV1PosStockByProductIdResponse403TextPlain = {
|
|
372
|
+
data: PatchV1PosStockByProductId403Three;
|
|
373
|
+
status: 403;
|
|
374
|
+
};
|
|
375
|
+
export type patchV1PosStockByProductIdResponse404ApplicationJson = {
|
|
376
|
+
data: PatchV1PosStockByProductId404One;
|
|
377
|
+
status: 404;
|
|
378
|
+
};
|
|
379
|
+
export type patchV1PosStockByProductIdResponse404MultipartFormData = {
|
|
380
|
+
data: PatchV1PosStockByProductId404Two;
|
|
381
|
+
status: 404;
|
|
382
|
+
};
|
|
383
|
+
export type patchV1PosStockByProductIdResponse404TextPlain = {
|
|
384
|
+
data: PatchV1PosStockByProductId404Three;
|
|
385
|
+
status: 404;
|
|
386
|
+
};
|
|
387
|
+
export type patchV1PosStockByProductIdResponseSuccess = (patchV1PosStockByProductIdResponse200ApplicationJson | patchV1PosStockByProductIdResponse200MultipartFormData | patchV1PosStockByProductIdResponse200TextPlain) & {
|
|
388
|
+
headers: Headers;
|
|
389
|
+
};
|
|
390
|
+
export type patchV1PosStockByProductIdResponseError = (patchV1PosStockByProductIdResponse400ApplicationJson | patchV1PosStockByProductIdResponse400MultipartFormData | patchV1PosStockByProductIdResponse400TextPlain | patchV1PosStockByProductIdResponse403ApplicationJson | patchV1PosStockByProductIdResponse403MultipartFormData | patchV1PosStockByProductIdResponse403TextPlain | patchV1PosStockByProductIdResponse404ApplicationJson | patchV1PosStockByProductIdResponse404MultipartFormData | patchV1PosStockByProductIdResponse404TextPlain) & {
|
|
391
|
+
headers: Headers;
|
|
392
|
+
};
|
|
393
|
+
export type patchV1PosStockByProductIdResponse = (patchV1PosStockByProductIdResponseSuccess | patchV1PosStockByProductIdResponseError);
|
|
394
|
+
export declare const getPatchV1PosStockByProductIdUrl: (productId: string) => string;
|
|
395
|
+
export declare const patchV1PosStockByProductId: (productId: string, patchV1PosStockByProductIdBody: PatchV1PosStockByProductIdBodyOne | PatchV1PosStockByProductIdBodyTwo | PatchV1PosStockByProductIdBodyThree, options?: RequestInit) => Promise<patchV1PosStockByProductIdResponse>;
|
|
396
|
+
/**
|
|
397
|
+
* The API key making the request, as the POS app sees itself: its id (the pos_device_id stamped on its sales), its label and its role. Allowed for the locked pos role.
|
|
398
|
+
* @summary The calling device
|
|
399
|
+
*/
|
|
400
|
+
export type getV1PosDeviceResponse200ApplicationJson = {
|
|
401
|
+
data: GetV1PosDevice200One;
|
|
402
|
+
status: 200;
|
|
403
|
+
};
|
|
404
|
+
export type getV1PosDeviceResponse200MultipartFormData = {
|
|
405
|
+
data: GetV1PosDevice200Two;
|
|
406
|
+
status: 200;
|
|
407
|
+
};
|
|
408
|
+
export type getV1PosDeviceResponse200TextPlain = {
|
|
409
|
+
data: GetV1PosDevice200Three;
|
|
410
|
+
status: 200;
|
|
411
|
+
};
|
|
412
|
+
export type getV1PosDeviceResponseSuccess = (getV1PosDeviceResponse200ApplicationJson | getV1PosDeviceResponse200MultipartFormData | getV1PosDeviceResponse200TextPlain) & {
|
|
413
|
+
headers: Headers;
|
|
414
|
+
};
|
|
415
|
+
export type getV1PosDeviceResponse = (getV1PosDeviceResponseSuccess);
|
|
416
|
+
export declare const getGetV1PosDeviceUrl: () => string;
|
|
417
|
+
export declare const getV1PosDevice: (options?: RequestInit) => Promise<getV1PosDeviceResponse>;
|
|
418
|
+
/**
|
|
419
|
+
* Everyone who can ring up a sale, active or not, in name order. Names and active flags only — PINs and their hashes are never returned. Allowed for the locked pos role, which needs the roster to draw its lock screen.
|
|
420
|
+
* @summary List POS staff
|
|
421
|
+
*/
|
|
422
|
+
export type getV1PosStaffResponse200ApplicationJson = {
|
|
423
|
+
data: GetV1PosStaff200One;
|
|
424
|
+
status: 200;
|
|
425
|
+
};
|
|
426
|
+
export type getV1PosStaffResponse200MultipartFormData = {
|
|
427
|
+
data: GetV1PosStaff200Two;
|
|
428
|
+
status: 200;
|
|
429
|
+
};
|
|
430
|
+
export type getV1PosStaffResponse200TextPlain = {
|
|
431
|
+
data: GetV1PosStaff200Three;
|
|
432
|
+
status: 200;
|
|
433
|
+
};
|
|
434
|
+
export type getV1PosStaffResponseSuccess = (getV1PosStaffResponse200ApplicationJson | getV1PosStaffResponse200MultipartFormData | getV1PosStaffResponse200TextPlain) & {
|
|
435
|
+
headers: Headers;
|
|
436
|
+
};
|
|
437
|
+
export type getV1PosStaffResponse = (getV1PosStaffResponseSuccess);
|
|
438
|
+
export declare const getGetV1PosStaffUrl: () => string;
|
|
439
|
+
export declare const getV1PosStaff: (options?: RequestInit) => Promise<getV1PosStaffResponse>;
|
|
440
|
+
/**
|
|
441
|
+
* 409 staff_name_taken when that name is already on the merchant's list in this environment.
|
|
442
|
+
* @summary Add a POS staff member
|
|
443
|
+
*/
|
|
444
|
+
export type postV1PosStaffResponse200ApplicationJson = {
|
|
445
|
+
data: PostV1PosStaff200One;
|
|
446
|
+
status: 200;
|
|
447
|
+
};
|
|
448
|
+
export type postV1PosStaffResponse200MultipartFormData = {
|
|
449
|
+
data: PostV1PosStaff200Two;
|
|
450
|
+
status: 200;
|
|
451
|
+
};
|
|
452
|
+
export type postV1PosStaffResponse200TextPlain = {
|
|
453
|
+
data: PostV1PosStaff200Three;
|
|
454
|
+
status: 200;
|
|
455
|
+
};
|
|
456
|
+
export type postV1PosStaffResponse400ApplicationJson = {
|
|
457
|
+
data: PostV1PosStaff400One;
|
|
458
|
+
status: 400;
|
|
459
|
+
};
|
|
460
|
+
export type postV1PosStaffResponse400MultipartFormData = {
|
|
461
|
+
data: PostV1PosStaff400Two;
|
|
462
|
+
status: 400;
|
|
463
|
+
};
|
|
464
|
+
export type postV1PosStaffResponse400TextPlain = {
|
|
465
|
+
data: PostV1PosStaff400Three;
|
|
466
|
+
status: 400;
|
|
467
|
+
};
|
|
468
|
+
export type postV1PosStaffResponse409ApplicationJson = {
|
|
469
|
+
data: PostV1PosStaff409One;
|
|
470
|
+
status: 409;
|
|
471
|
+
};
|
|
472
|
+
export type postV1PosStaffResponse409MultipartFormData = {
|
|
473
|
+
data: PostV1PosStaff409Two;
|
|
474
|
+
status: 409;
|
|
475
|
+
};
|
|
476
|
+
export type postV1PosStaffResponse409TextPlain = {
|
|
477
|
+
data: PostV1PosStaff409Three;
|
|
478
|
+
status: 409;
|
|
479
|
+
};
|
|
480
|
+
export type postV1PosStaffResponseSuccess = (postV1PosStaffResponse200ApplicationJson | postV1PosStaffResponse200MultipartFormData | postV1PosStaffResponse200TextPlain) & {
|
|
481
|
+
headers: Headers;
|
|
482
|
+
};
|
|
483
|
+
export type postV1PosStaffResponseError = (postV1PosStaffResponse400ApplicationJson | postV1PosStaffResponse400MultipartFormData | postV1PosStaffResponse400TextPlain | postV1PosStaffResponse409ApplicationJson | postV1PosStaffResponse409MultipartFormData | postV1PosStaffResponse409TextPlain) & {
|
|
484
|
+
headers: Headers;
|
|
485
|
+
};
|
|
486
|
+
export type postV1PosStaffResponse = (postV1PosStaffResponseSuccess | postV1PosStaffResponseError);
|
|
487
|
+
export declare const getPostV1PosStaffUrl: () => string;
|
|
488
|
+
export declare const postV1PosStaff: (postV1PosStaffBody: PostV1PosStaffBodyOne | PostV1PosStaffBodyTwo | PostV1PosStaffBodyThree, options?: RequestInit) => Promise<postV1PosStaffResponse>;
|
|
489
|
+
/**
|
|
490
|
+
* Staff are deactivated rather than deleted, so the pos_staff_id stamped on a past sale keeps resolving to a name.
|
|
491
|
+
* @summary Rename, rotate the PIN, or deactivate a staff member
|
|
492
|
+
*/
|
|
493
|
+
export type patchV1PosStaffByIdResponse200ApplicationJson = {
|
|
494
|
+
data: PatchV1PosStaffById200One;
|
|
495
|
+
status: 200;
|
|
496
|
+
};
|
|
497
|
+
export type patchV1PosStaffByIdResponse200MultipartFormData = {
|
|
498
|
+
data: PatchV1PosStaffById200Two;
|
|
499
|
+
status: 200;
|
|
500
|
+
};
|
|
501
|
+
export type patchV1PosStaffByIdResponse200TextPlain = {
|
|
502
|
+
data: PatchV1PosStaffById200Three;
|
|
503
|
+
status: 200;
|
|
504
|
+
};
|
|
505
|
+
export type patchV1PosStaffByIdResponse400ApplicationJson = {
|
|
506
|
+
data: PatchV1PosStaffById400One;
|
|
507
|
+
status: 400;
|
|
508
|
+
};
|
|
509
|
+
export type patchV1PosStaffByIdResponse400MultipartFormData = {
|
|
510
|
+
data: PatchV1PosStaffById400Two;
|
|
511
|
+
status: 400;
|
|
512
|
+
};
|
|
513
|
+
export type patchV1PosStaffByIdResponse400TextPlain = {
|
|
514
|
+
data: PatchV1PosStaffById400Three;
|
|
515
|
+
status: 400;
|
|
516
|
+
};
|
|
517
|
+
export type patchV1PosStaffByIdResponse404ApplicationJson = {
|
|
518
|
+
data: PatchV1PosStaffById404One;
|
|
519
|
+
status: 404;
|
|
520
|
+
};
|
|
521
|
+
export type patchV1PosStaffByIdResponse404MultipartFormData = {
|
|
522
|
+
data: PatchV1PosStaffById404Two;
|
|
523
|
+
status: 404;
|
|
524
|
+
};
|
|
525
|
+
export type patchV1PosStaffByIdResponse404TextPlain = {
|
|
526
|
+
data: PatchV1PosStaffById404Three;
|
|
527
|
+
status: 404;
|
|
528
|
+
};
|
|
529
|
+
export type patchV1PosStaffByIdResponse409ApplicationJson = {
|
|
530
|
+
data: PatchV1PosStaffById409One;
|
|
531
|
+
status: 409;
|
|
532
|
+
};
|
|
533
|
+
export type patchV1PosStaffByIdResponse409MultipartFormData = {
|
|
534
|
+
data: PatchV1PosStaffById409Two;
|
|
535
|
+
status: 409;
|
|
536
|
+
};
|
|
537
|
+
export type patchV1PosStaffByIdResponse409TextPlain = {
|
|
538
|
+
data: PatchV1PosStaffById409Three;
|
|
539
|
+
status: 409;
|
|
540
|
+
};
|
|
541
|
+
export type patchV1PosStaffByIdResponseSuccess = (patchV1PosStaffByIdResponse200ApplicationJson | patchV1PosStaffByIdResponse200MultipartFormData | patchV1PosStaffByIdResponse200TextPlain) & {
|
|
542
|
+
headers: Headers;
|
|
543
|
+
};
|
|
544
|
+
export type patchV1PosStaffByIdResponseError = (patchV1PosStaffByIdResponse400ApplicationJson | patchV1PosStaffByIdResponse400MultipartFormData | patchV1PosStaffByIdResponse400TextPlain | patchV1PosStaffByIdResponse404ApplicationJson | patchV1PosStaffByIdResponse404MultipartFormData | patchV1PosStaffByIdResponse404TextPlain | patchV1PosStaffByIdResponse409ApplicationJson | patchV1PosStaffByIdResponse409MultipartFormData | patchV1PosStaffByIdResponse409TextPlain) & {
|
|
545
|
+
headers: Headers;
|
|
546
|
+
};
|
|
547
|
+
export type patchV1PosStaffByIdResponse = (patchV1PosStaffByIdResponseSuccess | patchV1PosStaffByIdResponseError);
|
|
548
|
+
export declare const getPatchV1PosStaffByIdUrl: (id: string) => string;
|
|
549
|
+
export declare const patchV1PosStaffById: (id: string, patchV1PosStaffByIdBody: PatchV1PosStaffByIdBodyOne | PatchV1PosStaffByIdBodyTwo | PatchV1PosStaffByIdBodyThree, options?: RequestInit) => Promise<patchV1PosStaffByIdResponse>;
|
|
550
|
+
/**
|
|
551
|
+
* Returns the staff member the PIN belongs to, or 401 invalid_pin. Rate limited to 10 attempts per API key per minute (429 too_many_attempts). Allowed for the locked pos role.
|
|
552
|
+
* @summary Check a staff PIN
|
|
553
|
+
*/
|
|
554
|
+
export type postV1PosStaffVerifyResponse200ApplicationJson = {
|
|
555
|
+
data: PostV1PosStaffVerify200One;
|
|
556
|
+
status: 200;
|
|
557
|
+
};
|
|
558
|
+
export type postV1PosStaffVerifyResponse200MultipartFormData = {
|
|
559
|
+
data: PostV1PosStaffVerify200Two;
|
|
560
|
+
status: 200;
|
|
561
|
+
};
|
|
562
|
+
export type postV1PosStaffVerifyResponse200TextPlain = {
|
|
563
|
+
data: PostV1PosStaffVerify200Three;
|
|
564
|
+
status: 200;
|
|
565
|
+
};
|
|
566
|
+
export type postV1PosStaffVerifyResponse400ApplicationJson = {
|
|
567
|
+
data: PostV1PosStaffVerify400One;
|
|
568
|
+
status: 400;
|
|
569
|
+
};
|
|
570
|
+
export type postV1PosStaffVerifyResponse400MultipartFormData = {
|
|
571
|
+
data: PostV1PosStaffVerify400Two;
|
|
572
|
+
status: 400;
|
|
573
|
+
};
|
|
574
|
+
export type postV1PosStaffVerifyResponse400TextPlain = {
|
|
575
|
+
data: PostV1PosStaffVerify400Three;
|
|
576
|
+
status: 400;
|
|
577
|
+
};
|
|
578
|
+
export type postV1PosStaffVerifyResponse401ApplicationJson = {
|
|
579
|
+
data: PostV1PosStaffVerify401One;
|
|
580
|
+
status: 401;
|
|
581
|
+
};
|
|
582
|
+
export type postV1PosStaffVerifyResponse401MultipartFormData = {
|
|
583
|
+
data: PostV1PosStaffVerify401Two;
|
|
584
|
+
status: 401;
|
|
585
|
+
};
|
|
586
|
+
export type postV1PosStaffVerifyResponse401TextPlain = {
|
|
587
|
+
data: PostV1PosStaffVerify401Three;
|
|
588
|
+
status: 401;
|
|
589
|
+
};
|
|
590
|
+
export type postV1PosStaffVerifyResponse429ApplicationJson = {
|
|
591
|
+
data: PostV1PosStaffVerify429One;
|
|
592
|
+
status: 429;
|
|
593
|
+
};
|
|
594
|
+
export type postV1PosStaffVerifyResponse429MultipartFormData = {
|
|
595
|
+
data: PostV1PosStaffVerify429Two;
|
|
596
|
+
status: 429;
|
|
597
|
+
};
|
|
598
|
+
export type postV1PosStaffVerifyResponse429TextPlain = {
|
|
599
|
+
data: PostV1PosStaffVerify429Three;
|
|
600
|
+
status: 429;
|
|
601
|
+
};
|
|
602
|
+
export type postV1PosStaffVerifyResponseSuccess = (postV1PosStaffVerifyResponse200ApplicationJson | postV1PosStaffVerifyResponse200MultipartFormData | postV1PosStaffVerifyResponse200TextPlain) & {
|
|
603
|
+
headers: Headers;
|
|
604
|
+
};
|
|
605
|
+
export type postV1PosStaffVerifyResponseError = (postV1PosStaffVerifyResponse400ApplicationJson | postV1PosStaffVerifyResponse400MultipartFormData | postV1PosStaffVerifyResponse400TextPlain | postV1PosStaffVerifyResponse401ApplicationJson | postV1PosStaffVerifyResponse401MultipartFormData | postV1PosStaffVerifyResponse401TextPlain | postV1PosStaffVerifyResponse429ApplicationJson | postV1PosStaffVerifyResponse429MultipartFormData | postV1PosStaffVerifyResponse429TextPlain) & {
|
|
606
|
+
headers: Headers;
|
|
607
|
+
};
|
|
608
|
+
export type postV1PosStaffVerifyResponse = (postV1PosStaffVerifyResponseSuccess | postV1PosStaffVerifyResponseError);
|
|
609
|
+
export declare const getPostV1PosStaffVerifyUrl: () => string;
|
|
610
|
+
export declare const postV1PosStaffVerify: (postV1PosStaffVerifyBody: PostV1PosStaffVerifyBodyOne | PostV1PosStaffVerifyBodyTwo | PostV1PosStaffVerifyBodyThree, options?: RequestInit) => Promise<postV1PosStaffVerifyResponse>;
|
|
611
|
+
/**
|
|
612
|
+
* One day's takings: counts and sums by payment method, VAT rate and staff member, plus the discounts given and the refunds processed that day. Aggregate only. Allowed for the locked pos role, with device_id forced to the calling key.
|
|
613
|
+
* @summary Daily close (Z-report)
|
|
614
|
+
*/
|
|
615
|
+
export type getV1PosZReportResponse200ApplicationJson = {
|
|
616
|
+
data: GetV1PosZReport200One;
|
|
617
|
+
status: 200;
|
|
618
|
+
};
|
|
619
|
+
export type getV1PosZReportResponse200MultipartFormData = {
|
|
620
|
+
data: GetV1PosZReport200Two;
|
|
621
|
+
status: 200;
|
|
622
|
+
};
|
|
623
|
+
export type getV1PosZReportResponse200TextPlain = {
|
|
624
|
+
data: GetV1PosZReport200Three;
|
|
625
|
+
status: 200;
|
|
626
|
+
};
|
|
627
|
+
export type getV1PosZReportResponse400ApplicationJson = {
|
|
628
|
+
data: GetV1PosZReport400One;
|
|
629
|
+
status: 400;
|
|
630
|
+
};
|
|
631
|
+
export type getV1PosZReportResponse400MultipartFormData = {
|
|
632
|
+
data: GetV1PosZReport400Two;
|
|
633
|
+
status: 400;
|
|
634
|
+
};
|
|
635
|
+
export type getV1PosZReportResponse400TextPlain = {
|
|
636
|
+
data: GetV1PosZReport400Three;
|
|
637
|
+
status: 400;
|
|
638
|
+
};
|
|
639
|
+
export type getV1PosZReportResponseSuccess = (getV1PosZReportResponse200ApplicationJson | getV1PosZReportResponse200MultipartFormData | getV1PosZReportResponse200TextPlain) & {
|
|
640
|
+
headers: Headers;
|
|
641
|
+
};
|
|
642
|
+
export type getV1PosZReportResponseError = (getV1PosZReportResponse400ApplicationJson | getV1PosZReportResponse400MultipartFormData | getV1PosZReportResponse400TextPlain) & {
|
|
643
|
+
headers: Headers;
|
|
644
|
+
};
|
|
645
|
+
export type getV1PosZReportResponse = (getV1PosZReportResponseSuccess | getV1PosZReportResponseError);
|
|
646
|
+
export declare const getGetV1PosZReportUrl: (params: GetV1PosZReportParams) => string;
|
|
647
|
+
export declare const getV1PosZReport: (params: GetV1PosZReportParams, options?: RequestInit) => Promise<getV1PosZReportResponse>;
|
|
648
|
+
//# sourceMappingURL=pos.d.ts.map
|