@atomsolution/invoice-sdk-api 1.24.0 → 1.25.1
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/api.d.ts +99 -181
- package/dist/index.esm.js +222 -559
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1243,101 +1243,99 @@ export interface CheckCustomerDeclarationStatusError {
|
|
|
1243
1243
|
datail?: Array<any>;
|
|
1244
1244
|
}
|
|
1245
1245
|
/**
|
|
1246
|
-
*
|
|
1246
|
+
*
|
|
1247
1247
|
* @export
|
|
1248
|
+
* @interface GetInvoiceSerialsRequest
|
|
1248
1249
|
*/
|
|
1249
|
-
export
|
|
1250
|
+
export interface GetInvoiceSerialsRequest {
|
|
1250
1251
|
/**
|
|
1251
|
-
*
|
|
1252
|
-
* @
|
|
1253
|
-
* @
|
|
1254
|
-
* @param {*} [options] Override http request option.
|
|
1255
|
-
* @throws {RequiredError}
|
|
1256
|
-
*/
|
|
1257
|
-
fptCreateInvoice: (fptCreateInvoiceRequest: FptCreateInvoiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1258
|
-
/**
|
|
1259
|
-
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
1260
|
-
* @summary API lấy thông tin hóa đơn
|
|
1261
|
-
* @param {string} id id hóa đơn.
|
|
1262
|
-
* @param {string} stax mã số thuế bên bán
|
|
1263
|
-
* @param {*} [options] Override http request option.
|
|
1264
|
-
* @throws {RequiredError}
|
|
1252
|
+
* Ngày lập đến ngày (2025-06-23T00:00:00)
|
|
1253
|
+
* @type {number}
|
|
1254
|
+
* @memberof GetInvoiceSerialsRequest
|
|
1265
1255
|
*/
|
|
1266
|
-
|
|
1256
|
+
inv_type: string;
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
*
|
|
1260
|
+
* @export
|
|
1261
|
+
* @interface GetInvoiceSerialsResponse
|
|
1262
|
+
*/
|
|
1263
|
+
export interface GetInvoiceSerialsResponse {
|
|
1267
1264
|
/**
|
|
1268
|
-
*
|
|
1269
|
-
* @
|
|
1270
|
-
* @
|
|
1271
|
-
* @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1272
|
-
* @param {string} stax mã số thuế bên bán
|
|
1273
|
-
* @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
|
|
1274
|
-
* @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
|
|
1275
|
-
* @param {string} [serial] Ký hiệu hóa đơn để lọc
|
|
1276
|
-
* @param {*} [options] Override http request option.
|
|
1277
|
-
* @throws {RequiredError}
|
|
1265
|
+
* Trạng thái của yêu cầu
|
|
1266
|
+
* @type {string}
|
|
1267
|
+
* @memberof GetInvoiceSerialsResponse
|
|
1278
1268
|
*/
|
|
1279
|
-
|
|
1269
|
+
success?: string;
|
|
1280
1270
|
/**
|
|
1281
|
-
*
|
|
1282
|
-
* @
|
|
1283
|
-
* @
|
|
1284
|
-
* @param {*} [options] Override http request option.
|
|
1285
|
-
* @throws {RequiredError}
|
|
1271
|
+
* Dữ liệu chi tiết
|
|
1272
|
+
* @type {Array<any>}
|
|
1273
|
+
* @memberof GetInvoiceSerialsResponse
|
|
1286
1274
|
*/
|
|
1287
|
-
|
|
1275
|
+
data?: Array<any>;
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
*
|
|
1279
|
+
* @export
|
|
1280
|
+
* @interface GetInvoiceSerialsError
|
|
1281
|
+
*/
|
|
1282
|
+
export interface GetInvoiceSerialsError {
|
|
1288
1283
|
/**
|
|
1289
|
-
*
|
|
1290
|
-
* @
|
|
1291
|
-
* @
|
|
1292
|
-
* @param {*} [options] Override http request option.
|
|
1293
|
-
* @throws {RequiredError}
|
|
1284
|
+
* Lỗi khi kiểm tra trạng thái tờ khai khách hàng
|
|
1285
|
+
* @type {string}
|
|
1286
|
+
* @memberof GetInvoiceSerialsError
|
|
1294
1287
|
*/
|
|
1295
|
-
|
|
1288
|
+
message?: string;
|
|
1296
1289
|
/**
|
|
1297
|
-
*
|
|
1298
|
-
* @
|
|
1299
|
-
* @
|
|
1300
|
-
* @param {string} stax mã số thuế bên bán
|
|
1301
|
-
* @param {*} [options] Override http request option.
|
|
1302
|
-
* @throws {RequiredError}
|
|
1290
|
+
*
|
|
1291
|
+
* @type {Array<any>}
|
|
1292
|
+
* @memberof CheckAuthResponse
|
|
1303
1293
|
*/
|
|
1304
|
-
|
|
1294
|
+
datail?: Array<any>;
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* DefaultApi - axios parameter creator
|
|
1298
|
+
* @export
|
|
1299
|
+
*/
|
|
1300
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1305
1301
|
/**
|
|
1306
1302
|
* Tạo một hóa đơn mới dựa trên thông tin được cung cấp.
|
|
1307
|
-
* @summary
|
|
1308
|
-
* @param {
|
|
1303
|
+
* @summary Create invoice
|
|
1304
|
+
* @param {CreateInvoiceRequest} createInvoiceRequest
|
|
1309
1305
|
* @param {*} [options] Override http request option.
|
|
1310
1306
|
* @throws {RequiredError}
|
|
1311
1307
|
*/
|
|
1312
|
-
|
|
1308
|
+
createInvoice: (createInvoiceRequest: FptCreateInvoiceRequest | mInvoiceCreateInvoiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1313
1309
|
/**
|
|
1314
1310
|
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
1315
1311
|
* @summary API lấy thông tin hóa đơn
|
|
1316
1312
|
* @param {string} id id hóa đơn.
|
|
1313
|
+
* @param {string} stax mã số thuế bên bán
|
|
1317
1314
|
* @param {*} [options] Override http request option.
|
|
1318
1315
|
* @throws {RequiredError}
|
|
1319
1316
|
*/
|
|
1320
|
-
|
|
1317
|
+
getInvoice: (id: string, stax?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1321
1318
|
/**
|
|
1322
1319
|
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
1323
1320
|
* @summary API lấy danh sách hóa đơn
|
|
1324
1321
|
* @param {string} fromDate Ngày bắt đầu lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1325
1322
|
* @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1323
|
+
* @param {string} stax mã số thuế bên bán
|
|
1326
1324
|
* @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
|
|
1327
1325
|
* @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
|
|
1328
1326
|
* @param {string} [serial] Ký hiệu hóa đơn để lọc
|
|
1329
1327
|
* @param {*} [options] Override http request option.
|
|
1330
1328
|
* @throws {RequiredError}
|
|
1331
1329
|
*/
|
|
1332
|
-
|
|
1330
|
+
getInvoices: (fromDate: string, toDate: string, stax?: string, start?: number, count?: number, serial?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1333
1331
|
/**
|
|
1334
1332
|
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
1335
1333
|
* @summary API ký hóa đơn
|
|
1336
|
-
* @param {
|
|
1334
|
+
* @param {FptSignContractRequest} fptSignContractRequest
|
|
1337
1335
|
* @param {*} [options] Override http request option.
|
|
1338
1336
|
* @throws {RequiredError}
|
|
1339
1337
|
*/
|
|
1340
|
-
|
|
1338
|
+
signContract: (signContractRequest: FptSignContractRequest | SignContractRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1341
1339
|
/**
|
|
1342
1340
|
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
1343
1341
|
* @summary API đăng nhập
|
|
@@ -1345,15 +1343,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1345
1343
|
* @param {*} [options] Override http request option.
|
|
1346
1344
|
* @throws {RequiredError}
|
|
1347
1345
|
*/
|
|
1348
|
-
|
|
1346
|
+
signIn: (signInRequest: SignInRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1349
1347
|
/**
|
|
1350
1348
|
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1351
1349
|
* @summary API xem in hóa đơn
|
|
1352
1350
|
* @param {string} id id hóa đơn.
|
|
1351
|
+
* @param {string} stax mã số thuế bên bán
|
|
1353
1352
|
* @param {*} [options] Override http request option.
|
|
1354
1353
|
* @throws {RequiredError}
|
|
1355
1354
|
*/
|
|
1356
|
-
|
|
1355
|
+
viewPrintInvoice: (id: string, stax?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1357
1356
|
/**
|
|
1358
1357
|
* Lấy thông tin chi tiết của một mã số thuế (MST) dựa trên mã số thuế được cung cấp.
|
|
1359
1358
|
* @summary API lấy thông tin mã số thuế
|
|
@@ -1399,6 +1398,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1399
1398
|
* @throws {RequiredError}
|
|
1400
1399
|
*/
|
|
1401
1400
|
checkCustomerDeclarationStatus: (params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1401
|
+
/**
|
|
1402
|
+
* Check customer declaration status with filtering options.
|
|
1403
|
+
* @summary API check customer declaration status
|
|
1404
|
+
* @param {number} invType
|
|
1405
|
+
* @param {*} [options] Override http request option.
|
|
1406
|
+
* @throws {RequiredError}
|
|
1407
|
+
*/
|
|
1408
|
+
getInvoiceSerials: (params: GetInvoiceSerialsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1402
1409
|
};
|
|
1403
1410
|
/**
|
|
1404
1411
|
* DefaultApi - functional programming interface
|
|
@@ -1408,11 +1415,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1408
1415
|
/**
|
|
1409
1416
|
* Tạo một hóa đơn mới theo định dạng FPT dựa trên thông tin được cung cấp.
|
|
1410
1417
|
* @summary FPT
|
|
1411
|
-
* @param {
|
|
1418
|
+
* @param {CreateInvoiceRequest} createInvoiceRequest
|
|
1412
1419
|
* @param {*} [options] Override http request option.
|
|
1413
1420
|
* @throws {RequiredError}
|
|
1414
1421
|
*/
|
|
1415
|
-
|
|
1422
|
+
createInvoice(createInvoiceRequest: FptCreateInvoiceRequest | mInvoiceCreateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceSuccess>>;
|
|
1416
1423
|
/**
|
|
1417
1424
|
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
1418
1425
|
* @summary API lấy thông tin hóa đơn
|
|
@@ -1421,7 +1428,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1421
1428
|
* @param {*} [options] Override http request option.
|
|
1422
1429
|
* @throws {RequiredError}
|
|
1423
1430
|
*/
|
|
1424
|
-
|
|
1431
|
+
getInvoice(id: string, stax?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponse>>;
|
|
1425
1432
|
/**
|
|
1426
1433
|
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
1427
1434
|
* @summary API lấy danh sách hóa đơn
|
|
@@ -1434,7 +1441,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1434
1441
|
* @param {*} [options] Override http request option.
|
|
1435
1442
|
* @throws {RequiredError}
|
|
1436
1443
|
*/
|
|
1437
|
-
|
|
1444
|
+
getInvoices(fromDate: string, toDate: string, stax?: string, start?: number, count?: number, serial?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoicesSuccess>>;
|
|
1438
1445
|
/**
|
|
1439
1446
|
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
1440
1447
|
* @summary API ký hóa đơn
|
|
@@ -1442,7 +1449,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1442
1449
|
* @param {*} [options] Override http request option.
|
|
1443
1450
|
* @throws {RequiredError}
|
|
1444
1451
|
*/
|
|
1445
|
-
|
|
1452
|
+
signContract(signContractRequest: FptSignContractRequest | SignContractRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignContractResponse>>;
|
|
1446
1453
|
/**
|
|
1447
1454
|
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
1448
1455
|
* @summary API đăng nhập
|
|
@@ -1450,7 +1457,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1450
1457
|
* @param {*} [options] Override http request option.
|
|
1451
1458
|
* @throws {RequiredError}
|
|
1452
1459
|
*/
|
|
1453
|
-
|
|
1460
|
+
signIn(signInRequest: SignInRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignInResponse>>;
|
|
1454
1461
|
/**
|
|
1455
1462
|
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1456
1463
|
* @summary API xem in hóa đơn
|
|
@@ -1459,59 +1466,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1459
1466
|
* @param {*} [options] Override http request option.
|
|
1460
1467
|
* @throws {RequiredError}
|
|
1461
1468
|
*/
|
|
1462
|
-
|
|
1463
|
-
/**
|
|
1464
|
-
* Tạo một hóa đơn mới dựa trên thông tin được cung cấp.
|
|
1465
|
-
* @summary API tạo hóa đơn
|
|
1466
|
-
* @param {mInvoiceCreateInvoiceRequest} createInvoiceRequest
|
|
1467
|
-
* @param {*} [options] Override http request option.
|
|
1468
|
-
* @throws {RequiredError}
|
|
1469
|
-
*/
|
|
1470
|
-
mInvoiceCreateInvoice(createInvoiceRequest: mInvoiceCreateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceSuccess>>;
|
|
1471
|
-
/**
|
|
1472
|
-
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
1473
|
-
* @summary API lấy thông tin hóa đơn
|
|
1474
|
-
* @param {string} id id hóa đơn.
|
|
1475
|
-
* @param {*} [options] Override http request option.
|
|
1476
|
-
* @throws {RequiredError}
|
|
1477
|
-
*/
|
|
1478
|
-
mInvoiceGetInvoice(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponse>>;
|
|
1479
|
-
/**
|
|
1480
|
-
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
1481
|
-
* @summary API lấy danh sách hóa đơn
|
|
1482
|
-
* @param {string} fromDate Ngày bắt đầu lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1483
|
-
* @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1484
|
-
* @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
|
|
1485
|
-
* @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
|
|
1486
|
-
* @param {string} [serial] Ký hiệu hóa đơn để lọc
|
|
1487
|
-
* @param {*} [options] Override http request option.
|
|
1488
|
-
* @throws {RequiredError}
|
|
1489
|
-
*/
|
|
1490
|
-
mInvoiceGetInvoices(fromDate: string, toDate: string, start?: number, count?: number, serial?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoicesSuccess>>;
|
|
1491
|
-
/**
|
|
1492
|
-
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
1493
|
-
* @summary API ký hóa đơn
|
|
1494
|
-
* @param {SignContractRequest} signContractRequest
|
|
1495
|
-
* @param {*} [options] Override http request option.
|
|
1496
|
-
* @throws {RequiredError}
|
|
1497
|
-
*/
|
|
1498
|
-
mInvoiceSignContract(signContractRequest: SignContractRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignContractResponse>>;
|
|
1499
|
-
/**
|
|
1500
|
-
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
1501
|
-
* @summary API đăng nhập
|
|
1502
|
-
* @param {SignInRequest} signInRequest
|
|
1503
|
-
* @param {*} [options] Override http request option.
|
|
1504
|
-
* @throws {RequiredError}
|
|
1505
|
-
*/
|
|
1506
|
-
mInvoiceSignIn(signInRequest: SignInRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignInResponse>>;
|
|
1507
|
-
/**
|
|
1508
|
-
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1509
|
-
* @summary API xem in hóa đơn
|
|
1510
|
-
* @param {string} id id hóa đơn.
|
|
1511
|
-
* @param {*} [options] Override http request option.
|
|
1512
|
-
* @throws {RequiredError}
|
|
1513
|
-
*/
|
|
1514
|
-
mInvoiceViewPrintInvoice(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViewPrintInvoiceResponse>>;
|
|
1469
|
+
viewPrintInvoice(id: string, stax?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViewPrintInvoiceResponse>>;
|
|
1515
1470
|
/**
|
|
1516
1471
|
* Lấy thông tin chi tiết của một mã số thuế (MST) dựa trên mã số thuế được cung cấp.
|
|
1517
1472
|
* @summary API lấy thông tin mã số thuế
|
|
@@ -1557,6 +1512,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1557
1512
|
* @throws {RequiredError}
|
|
1558
1513
|
*/
|
|
1559
1514
|
checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckCustomerDeclarationStatusResponse>>;
|
|
1515
|
+
/**
|
|
1516
|
+
* Check customer declaration status with filtering options.
|
|
1517
|
+
* @summary API check customer declaration status
|
|
1518
|
+
* @param {number} [invType]
|
|
1519
|
+
* @param {*} [options] Override http request option.
|
|
1520
|
+
* @throws {RequiredError}
|
|
1521
|
+
*/
|
|
1522
|
+
getInvoiceSerials(params: GetInvoiceSerialsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceSerialsResponse>>;
|
|
1560
1523
|
};
|
|
1561
1524
|
/**
|
|
1562
1525
|
* DefaultApi - object-oriented interface
|
|
@@ -1568,12 +1531,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1568
1531
|
/**
|
|
1569
1532
|
* Tạo một hóa đơn mới theo định dạng FPT dựa trên thông tin được cung cấp.
|
|
1570
1533
|
* @summary FPT
|
|
1571
|
-
* @param {
|
|
1534
|
+
* @param {CreateInvoiceRequest} createInvoiceRequest
|
|
1572
1535
|
* @param {*} [options] Override http request option.
|
|
1573
1536
|
* @throws {RequiredError}
|
|
1574
1537
|
* @memberof DefaultApi
|
|
1575
1538
|
*/
|
|
1576
|
-
|
|
1539
|
+
createInvoice(createInvoiceRequest: FptCreateInvoiceRequest | mInvoiceCreateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CreateInvoiceSuccess, any>>;
|
|
1577
1540
|
/**
|
|
1578
1541
|
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
1579
1542
|
* @summary API lấy thông tin hóa đơn
|
|
@@ -1583,7 +1546,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1583
1546
|
* @throws {RequiredError}
|
|
1584
1547
|
* @memberof DefaultApi
|
|
1585
1548
|
*/
|
|
1586
|
-
|
|
1549
|
+
getInvoice(id: string, stax?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceResponse, any>>;
|
|
1587
1550
|
/**
|
|
1588
1551
|
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
1589
1552
|
* @summary API lấy danh sách hóa đơn
|
|
@@ -1597,66 +1560,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1597
1560
|
* @throws {RequiredError}
|
|
1598
1561
|
* @memberof DefaultApi
|
|
1599
1562
|
*/
|
|
1600
|
-
|
|
1601
|
-
/**
|
|
1602
|
-
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
1603
|
-
* @summary API ký hóa đơn
|
|
1604
|
-
* @param {FptSignContractRequest} fptSignContractRequest
|
|
1605
|
-
* @param {*} [options] Override http request option.
|
|
1606
|
-
* @throws {RequiredError}
|
|
1607
|
-
* @memberof DefaultApi
|
|
1608
|
-
*/
|
|
1609
|
-
fptSignContract(fptSignContractRequest: FptSignContractRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignContractResponse, any>>;
|
|
1610
|
-
/**
|
|
1611
|
-
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
1612
|
-
* @summary API đăng nhập
|
|
1613
|
-
* @param {SignInRequest} signInRequest
|
|
1614
|
-
* @param {*} [options] Override http request option.
|
|
1615
|
-
* @throws {RequiredError}
|
|
1616
|
-
* @memberof DefaultApi
|
|
1617
|
-
*/
|
|
1618
|
-
fptSignIn(signInRequest: SignInRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInResponse, any>>;
|
|
1619
|
-
/**
|
|
1620
|
-
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1621
|
-
* @summary API xem in hóa đơn
|
|
1622
|
-
* @param {string} id id hóa đơn.
|
|
1623
|
-
* @param {string} stax mã số thuế bên bán
|
|
1624
|
-
* @param {*} [options] Override http request option.
|
|
1625
|
-
* @throws {RequiredError}
|
|
1626
|
-
* @memberof DefaultApi
|
|
1627
|
-
*/
|
|
1628
|
-
fptViewPrintInvoice(id: string, stax: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ViewPrintInvoiceResponse, any>>;
|
|
1629
|
-
/**
|
|
1630
|
-
* Tạo một hóa đơn mới dựa trên thông tin được cung cấp.
|
|
1631
|
-
* @summary API tạo hóa đơn
|
|
1632
|
-
* @param {mInvoiceCreateInvoiceRequest} createInvoiceRequest
|
|
1633
|
-
* @param {*} [options] Override http request option.
|
|
1634
|
-
* @throws {RequiredError}
|
|
1635
|
-
* @memberof DefaultApi
|
|
1636
|
-
*/
|
|
1637
|
-
mInvoiceCreateInvoice(createInvoiceRequest: mInvoiceCreateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CreateInvoiceSuccess, any>>;
|
|
1638
|
-
/**
|
|
1639
|
-
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
1640
|
-
* @summary API lấy thông tin hóa đơn
|
|
1641
|
-
* @param {string} id id hóa đơn.
|
|
1642
|
-
* @param {*} [options] Override http request option.
|
|
1643
|
-
* @throws {RequiredError}
|
|
1644
|
-
* @memberof DefaultApi
|
|
1645
|
-
*/
|
|
1646
|
-
mInvoiceGetInvoice(id: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceResponse, any>>;
|
|
1647
|
-
/**
|
|
1648
|
-
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
1649
|
-
* @summary API lấy danh sách hóa đơn
|
|
1650
|
-
* @param {string} fromDate Ngày bắt đầu lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1651
|
-
* @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1652
|
-
* @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
|
|
1653
|
-
* @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
|
|
1654
|
-
* @param {string} [serial] Ký hiệu hóa đơn để lọc
|
|
1655
|
-
* @param {*} [options] Override http request option.
|
|
1656
|
-
* @throws {RequiredError}
|
|
1657
|
-
* @memberof DefaultApi
|
|
1658
|
-
*/
|
|
1659
|
-
mInvoiceGetInvoices(fromDate: string, toDate: string, start?: number, count?: number, serial?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoicesSuccess, any>>;
|
|
1563
|
+
getInvoices(fromDate: string, toDate: string, stax?: string, start?: number, count?: number, serial?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoicesSuccess, any>>;
|
|
1660
1564
|
/**
|
|
1661
1565
|
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
1662
1566
|
* @summary API ký hóa đơn
|
|
@@ -1665,7 +1569,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1665
1569
|
* @throws {RequiredError}
|
|
1666
1570
|
* @memberof DefaultApi
|
|
1667
1571
|
*/
|
|
1668
|
-
|
|
1572
|
+
signContract(signContractRequest: FptSignContractRequest | SignContractRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignContractResponse, any>>;
|
|
1669
1573
|
/**
|
|
1670
1574
|
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
1671
1575
|
* @summary API đăng nhập
|
|
@@ -1674,16 +1578,17 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1674
1578
|
* @throws {RequiredError}
|
|
1675
1579
|
* @memberof DefaultApi
|
|
1676
1580
|
*/
|
|
1677
|
-
|
|
1581
|
+
signIn(signInRequest: SignInRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInResponse, any>>;
|
|
1678
1582
|
/**
|
|
1679
1583
|
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1680
1584
|
* @summary API xem in hóa đơn
|
|
1681
1585
|
* @param {string} id id hóa đơn.
|
|
1586
|
+
* @param {string} stax mã số thuế bên bán
|
|
1682
1587
|
* @param {*} [options] Override http request option.
|
|
1683
1588
|
* @throws {RequiredError}
|
|
1684
1589
|
* @memberof DefaultApi
|
|
1685
1590
|
*/
|
|
1686
|
-
|
|
1591
|
+
viewPrintInvoice(id: string, stax?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ViewPrintInvoiceResponse, any>>;
|
|
1687
1592
|
/**
|
|
1688
1593
|
* Lấy thông tin chi tiết của một mã số thuế (MST) dựa trên mã số thuế được cung cấp.
|
|
1689
1594
|
* @summary API lấy thông tin mã số thuế
|
|
@@ -1734,6 +1639,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1734
1639
|
* @memberof DefaultApi
|
|
1735
1640
|
*/
|
|
1736
1641
|
checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckCustomerDeclarationStatusResponse, any>>;
|
|
1642
|
+
/**
|
|
1643
|
+
* Check authentication status for merchants using provider and tax code.
|
|
1644
|
+
* @summary API check auth
|
|
1645
|
+
* @param {number} [invType]
|
|
1646
|
+
* @param {*} [options] Override http request option.
|
|
1647
|
+
* @throws {RequiredError}
|
|
1648
|
+
* @memberof DefaultApi
|
|
1649
|
+
*/
|
|
1650
|
+
getInvoiceSerials(params: GetInvoiceSerialsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceSerialsResponse, any>>;
|
|
1737
1651
|
}
|
|
1738
1652
|
/**
|
|
1739
1653
|
* Unified API functions distinguished by provider in configuration
|
|
@@ -1799,4 +1713,8 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
|
|
|
1799
1713
|
* Check customer declaration status with filtering options (Unified)
|
|
1800
1714
|
*/
|
|
1801
1715
|
checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckCustomerDeclarationStatusResponse, any>>;
|
|
1716
|
+
/**
|
|
1717
|
+
* Get invoice serials
|
|
1718
|
+
*/
|
|
1719
|
+
getInvoiceSerials(params: GetInvoiceSerialsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceSerialsResponse, any>>;
|
|
1802
1720
|
};
|