@atomsolution/invoice-sdk-api 1.22.0 → 1.23.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/dist/api.d.ts CHANGED
@@ -1149,6 +1149,99 @@ export interface ViewPrintInvoiceResponse {
1149
1149
  */
1150
1150
  status?: string;
1151
1151
  }
1152
+ /**
1153
+ *
1154
+ * @export
1155
+ * @interface CheckCustomerDeclarationStatusRequest
1156
+ */
1157
+ export interface CheckCustomerDeclarationStatusRequest {
1158
+ /**
1159
+ * Provider identifier (required)
1160
+ * @type {string}
1161
+ * @memberof CheckCustomerDeclarationStatusRequest
1162
+ */
1163
+ provider: string;
1164
+ /**
1165
+ * Tax code for merchant (required)
1166
+ * @type {string}
1167
+ * @memberof CheckCustomerDeclarationStatusRequest
1168
+ */
1169
+ taxCode: string;
1170
+ /**
1171
+ * Tổng số bản ghi muốn lấy
1172
+ * @type {number}
1173
+ * @memberof CheckCustomerDeclarationStatusRequest
1174
+ */
1175
+ maxResultCount?: number;
1176
+ /**
1177
+ * Sắp xếp theo trường (tên trường)
1178
+ * @type {string}
1179
+ * @memberof CheckCustomerDeclarationStatusRequest
1180
+ */
1181
+ sorting?: string;
1182
+ /**
1183
+ * Kiểu sắp xếp (DESCEND: Giảm dần, ASCEND: Tăng dần)
1184
+ * @type {string}
1185
+ * @memberof CheckCustomerDeclarationStatusRequest
1186
+ */
1187
+ sortType?: string;
1188
+ /**
1189
+ * Ngày lập từ ngày (2025-06-23T00:00:00)
1190
+ * @type {string}
1191
+ * @memberof CheckCustomerDeclarationStatusRequest
1192
+ */
1193
+ fromDate?: string;
1194
+ /**
1195
+ * Ngày lập đến ngày (2025-06-23T00:00:00)
1196
+ * @type {string}
1197
+ * @memberof CheckCustomerDeclarationStatusRequest
1198
+ */
1199
+ toDate?: string;
1200
+ /**
1201
+ * Phản hồi của CQT (1: Tiếp nhận, 2: Không tiếp nhận, 3: Chập nhận, 4: Không chấp nhận)
1202
+ * @type {number}
1203
+ * @memberof CheckCustomerDeclarationStatusRequest
1204
+ */
1205
+ taxAuthorityFeedback?: number;
1206
+ }
1207
+ /**
1208
+ *
1209
+ * @export
1210
+ * @interface CheckCustomerDeclarationStatusResponse
1211
+ */
1212
+ export interface CheckCustomerDeclarationStatusResponse {
1213
+ /**
1214
+ * Trạng thái của yêu cầu
1215
+ * @type {string}
1216
+ * @memberof CheckCustomerDeclarationStatusResponse
1217
+ */
1218
+ success?: string;
1219
+ /**
1220
+ * Dữ liệu chi tiết
1221
+ * @type {Array<any>}
1222
+ * @memberof CheckCustomerDeclarationStatusResponse
1223
+ */
1224
+ data?: Array<any>;
1225
+ }
1226
+ /**
1227
+ *
1228
+ * @export
1229
+ * @interface CheckCustomerDeclarationStatusError
1230
+ */
1231
+ export interface CheckCustomerDeclarationStatusError {
1232
+ /**
1233
+ * Lỗi khi kiểm tra trạng thái tờ khai khách hàng
1234
+ * @type {string}
1235
+ * @memberof CheckCustomerDeclarationStatusError
1236
+ */
1237
+ message?: string;
1238
+ /**
1239
+ *
1240
+ * @type {Array<any>}
1241
+ * @memberof CheckAuthResponse
1242
+ */
1243
+ datail?: Array<any>;
1244
+ }
1152
1245
  /**
1153
1246
  * DefaultApi - axios parameter creator
1154
1247
  * @export
@@ -1291,6 +1384,21 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1291
1384
  * @throws {RequiredError}
1292
1385
  */
1293
1386
  checkAuth: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1387
+ /**
1388
+ * Check customer declaration status with filtering options.
1389
+ * @summary API check customer declaration status
1390
+ * @param {string} provider Provider identifier (required)
1391
+ * @param {string} taxCode Tax code for merchant (required)
1392
+ * @param {number} [maxResultCount] Tổng số bản ghi muốn lấy
1393
+ * @param {string} [sorting] Sắp xếp theo trường (tên trường)
1394
+ * @param {string} [sortType] Kiểu sắp xếp (DESCEND: Giảm dần, ASCEND: Tăng dần)
1395
+ * @param {string} [fromDate] Ngày lập từ ngày (2025-06-23T00:00:00)
1396
+ * @param {string} [toDate] Ngày lập đến ngày (2025-06-23T00:00:00)
1397
+ * @param {number} [taxAuthorityFeedback] Phản hồi của CQT (1: Tiếp nhận, 2: Không tiếp nhận, 3: Chập nhận, 4: Không chấp nhận)
1398
+ * @param {*} [options] Override http request option.
1399
+ * @throws {RequiredError}
1400
+ */
1401
+ checkCustomerDeclarationStatus: (params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1294
1402
  };
1295
1403
  /**
1296
1404
  * DefaultApi - functional programming interface
@@ -1434,127 +1542,21 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1434
1542
  * @throws {RequiredError}
1435
1543
  */
1436
1544
  checkAuth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckAuthResponse>>;
1437
- };
1438
- /**
1439
- * DefaultApi - factory interface
1440
- * @export
1441
- */
1442
- export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1443
- /**
1444
- * 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.
1445
- * @summary FPT
1446
- * @param {FptCreateInvoiceRequest} fptCreateInvoiceRequest
1447
- * @param {*} [options] Override http request option.
1448
- * @throws {RequiredError}
1449
- */
1450
- fptCreateInvoice(fptCreateInvoiceRequest: FptCreateInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateInvoiceSuccess>;
1451
- /**
1452
- * Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
1453
- * @summary API lấy thông tin hóa đơn
1454
- * @param {string} id id hóa đơn.
1455
- * @param {string} stax mã số thuế bên bán
1456
- * @param {*} [options] Override http request option.
1457
- * @throws {RequiredError}
1458
- */
1459
- fptGetInvoice(id: string, stax: string, options?: RawAxiosRequestConfig): AxiosPromise<GetInvoiceResponse>;
1460
- /**
1461
- * Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
1462
- * @summary API lấy danh sách hóa đơn
1463
- * @param {string} fromDate Ngày bắt đầu lọc hóa đơn (định dạng yyyy-MM-dd)
1464
- * @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
1465
- * @param {string} stax mã số thuế bên bán
1466
- * @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
1467
- * @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
1468
- * @param {string} [serial] Ký hiệu hóa đơn để lọc
1469
- * @param {*} [options] Override http request option.
1470
- * @throws {RequiredError}
1471
- */
1472
- fptGetInvoices(fromDate: string, toDate: string, stax: string, start?: number, count?: number, serial?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetInvoicesSuccess>;
1473
- /**
1474
- * Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
1475
- * @summary API ký hóa đơn
1476
- * @param {FptSignContractRequest} fptSignContractRequest
1477
- * @param {*} [options] Override http request option.
1478
- * @throws {RequiredError}
1479
- */
1480
- fptSignContract(fptSignContractRequest: FptSignContractRequest, options?: RawAxiosRequestConfig): AxiosPromise<SignContractResponse>;
1481
1545
  /**
1482
- * Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
1483
- * @summary API đăng nhập
1484
- * @param {SignInRequest} signInRequest
1546
+ * Check customer declaration status with filtering options.
1547
+ * @summary API check customer declaration status
1548
+ * @param {string} provider Provider identifier (required)
1549
+ * @param {string} taxCode Tax code for merchant (required)
1550
+ * @param {number} [maxResultCount] Tổng số bản ghi muốn lấy
1551
+ * @param {string} [sorting] Sắp xếp theo trường (tên trường)
1552
+ * @param {string} [sortType] Kiểu sắp xếp (DESCEND: Giảm dần, ASCEND: Tăng dần)
1553
+ * @param {string} [fromDate] Ngày lập từ ngày (2025-06-23T00:00:00)
1554
+ * @param {string} [toDate] Ngày lập đến ngày (2025-06-23T00:00:00)
1555
+ * @param {number} [taxAuthorityFeedback] Phản hồi của CQT (1: Tiếp nhận, 2: Không tiếp nhận, 3: Chập nhận, 4: Không chấp nhận)
1485
1556
  * @param {*} [options] Override http request option.
1486
1557
  * @throws {RequiredError}
1487
1558
  */
1488
- fptSignIn(signInRequest: SignInRequest, options?: RawAxiosRequestConfig): AxiosPromise<SignInResponse>;
1489
- /**
1490
- * Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
1491
- * @summary API xem in hóa đơn
1492
- * @param {string} id id hóa đơn.
1493
- * @param {string} stax mã số thuế bên bán
1494
- * @param {*} [options] Override http request option.
1495
- * @throws {RequiredError}
1496
- */
1497
- fptViewPrintInvoice(id: string, stax: string, options?: RawAxiosRequestConfig): AxiosPromise<ViewPrintInvoiceResponse>;
1498
- /**
1499
- * Tạo một hóa đơn mới dựa trên thông tin được cung cấp.
1500
- * @summary API tạo hóa đơn
1501
- * @param {mInvoiceCreateInvoiceRequest} createInvoiceRequest
1502
- * @param {*} [options] Override http request option.
1503
- * @throws {RequiredError}
1504
- */
1505
- mInvoiceCreateInvoice(createInvoiceRequest: mInvoiceCreateInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateInvoiceSuccess>;
1506
- /**
1507
- * Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
1508
- * @summary API lấy thông tin hóa đơn
1509
- * @param {string} id id hóa đơn.
1510
- * @param {*} [options] Override http request option.
1511
- * @throws {RequiredError}
1512
- */
1513
- mInvoiceGetInvoice(id: string, options?: RawAxiosRequestConfig): AxiosPromise<GetInvoiceResponse>;
1514
- /**
1515
- * Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
1516
- * @summary API lấy danh sách hóa đơn
1517
- * @param {string} fromDate Ngày bắt đầu lọc hóa đơn (định dạng yyyy-MM-dd)
1518
- * @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
1519
- * @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
1520
- * @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
1521
- * @param {string} [serial] Ký hiệu hóa đơn để lọc
1522
- * @param {*} [options] Override http request option.
1523
- * @throws {RequiredError}
1524
- */
1525
- mInvoiceGetInvoices(fromDate: string, toDate: string, start?: number, count?: number, serial?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetInvoicesSuccess>;
1526
- /**
1527
- * Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
1528
- * @summary API ký hóa đơn
1529
- * @param {SignContractRequest} signContractRequest
1530
- * @param {*} [options] Override http request option.
1531
- * @throws {RequiredError}
1532
- */
1533
- mInvoiceSignContract(signContractRequest: SignContractRequest, options?: RawAxiosRequestConfig): AxiosPromise<SignContractResponse>;
1534
- /**
1535
- * Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
1536
- * @summary API đăng nhập
1537
- * @param {SignInRequest} signInRequest
1538
- * @param {*} [options] Override http request option.
1539
- * @throws {RequiredError}
1540
- */
1541
- mInvoiceSignIn(signInRequest: SignInRequest, options?: RawAxiosRequestConfig): AxiosPromise<SignInResponse>;
1542
- /**
1543
- * Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
1544
- * @summary API xem in hóa đơn
1545
- * @param {string} id id hóa đơn.
1546
- * @param {*} [options] Override http request option.
1547
- * @throws {RequiredError}
1548
- */
1549
- mInvoiceViewPrintInvoice(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ViewPrintInvoiceResponse>;
1550
- /**
1551
- * 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.
1552
- * @summary API lấy thông tin mã số thuế
1553
- * @param {string} tax Mã số thuế cần tra cứu
1554
- * @param {*} [options] Override http request option.
1555
- * @throws {RequiredError}
1556
- */
1557
- taxInfo(tax: string, options?: RawAxiosRequestConfig): AxiosPromise<TaxInfoResponse>;
1559
+ checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckCustomerDeclarationStatusResponse>>;
1558
1560
  };
1559
1561
  /**
1560
1562
  * DefaultApi - object-oriented interface
@@ -1716,6 +1718,22 @@ export declare class DefaultApi extends BaseAPI {
1716
1718
  * @memberof DefaultApi
1717
1719
  */
1718
1720
  checkAuth(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckAuthResponse, any>>;
1721
+ /**
1722
+ * Check customer declaration status with filtering options.
1723
+ * @summary API check customer declaration status
1724
+ * @param {string} provider Provider identifier (required)
1725
+ * @param {string} taxCode Tax code for merchant (required)
1726
+ * @param {number} [maxResultCount] Tổng số bản ghi muốn lấy
1727
+ * @param {string} [sorting] Sắp xếp theo trường (tên trường)
1728
+ * @param {string} [sortType] Kiểu sắp xếp (DESCEND: Giảm dần, ASCEND: Tăng dần)
1729
+ * @param {string} [fromDate] Ngày lập từ ngày (2025-06-23T00:00:00)
1730
+ * @param {string} [toDate] Ngày lập đến ngày (2025-06-23T00:00:00)
1731
+ * @param {number} [taxAuthorityFeedback] Phản hồi của CQT (1: Tiếp nhận, 2: Không tiếp nhận, 3: Chập nhận, 4: Không chấp nhận)
1732
+ * @param {*} [options] Override http request option.
1733
+ * @throws {RequiredError}
1734
+ * @memberof DefaultApi
1735
+ */
1736
+ checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckCustomerDeclarationStatusResponse, any>>;
1719
1737
  }
1720
1738
  /**
1721
1739
  * Unified API functions distinguished by provider in configuration
@@ -1777,4 +1795,8 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
1777
1795
  * Check authentication status for merchants (Unified)
1778
1796
  */
1779
1797
  checkAuth(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckAuthResponse, any>>;
1798
+ /**
1799
+ * Check customer declaration status with filtering options (Unified)
1800
+ */
1801
+ checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckCustomerDeclarationStatusResponse, any>>;
1780
1802
  };