@atomsolution/invoice-sdk-api 1.31.0 → 1.32.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 CHANGED
@@ -1128,6 +1128,50 @@ export interface GetQuotasError {
1128
1128
  */
1129
1129
  error?: string;
1130
1130
  }
1131
+ /**
1132
+ * @export
1133
+ * @interface GetTransactionHistoryResponse
1134
+ */
1135
+ export interface GetTransactionHistoryResponse {
1136
+ /**
1137
+ * Status of request
1138
+ * @type {string}
1139
+ */
1140
+ success?: string;
1141
+ /**
1142
+ * Transaction Histpry
1143
+ * @type {Array<any>}
1144
+ */
1145
+ data?: Array<any>;
1146
+ }
1147
+ export interface GetInvoiceRequestUrlProviderInfo {
1148
+ providerName: string;
1149
+ username: string;
1150
+ password: string;
1151
+ taxCode: string;
1152
+ serial: string;
1153
+ type: string;
1154
+ form: string;
1155
+ }
1156
+ export interface GetInvoiceRequestUrlRequest {
1157
+ orderId: string;
1158
+ token: string;
1159
+ refreshToken: string;
1160
+ taxNo: string;
1161
+ amount: number;
1162
+ bank: string;
1163
+ merchantAddress: string;
1164
+ providerInfo: GetInvoiceRequestUrlProviderInfo;
1165
+ }
1166
+ export interface GetInvoiceRequestUrlResponse {
1167
+ url?: string;
1168
+ uuid?: string;
1169
+ }
1170
+ export interface ViewInvoiceByOrderRequest {
1171
+ orderId: string;
1172
+ vpid: string;
1173
+ }
1174
+ export type ViewInvoiceByOrderResponse = Record<string, any>;
1131
1175
  /**
1132
1176
  * DefaultApi - axios parameter creator
1133
1177
  * @export
@@ -1244,6 +1288,36 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1244
1288
  * @throws {RequiredError}
1245
1289
  */
1246
1290
  getQuotas: (params: GetQuotasRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1291
+ /**
1292
+ * Get transaction history
1293
+ * @summary
1294
+ * @param {string} bank
1295
+ * @param {string} provider
1296
+ * @param {string} taxCode
1297
+ * @param {number} [limit]
1298
+ * @param {number} [page]
1299
+ * @param {string} [sort]
1300
+ * @param {*} [options]
1301
+ * @throws {RequiredError}
1302
+ */
1303
+ getTransactionHistory: (params: {
1304
+ bank: string;
1305
+ provider: string;
1306
+ taxCode: string;
1307
+ limit?: number;
1308
+ page?: number;
1309
+ sort?: string;
1310
+ }, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1311
+ /**
1312
+ * Lấy liên kết thanh toán và trang nhập thông tin xuất hóa đơn.
1313
+ * @summary Get invoice request URL
1314
+ */
1315
+ getInvoiceRequestUrl: (body: GetInvoiceRequestUrlRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1316
+ /**
1317
+ * Get invoice view/print by order
1318
+ * @summary
1319
+ */
1320
+ viewInvoiceByOrder: (params: ViewInvoiceByOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1247
1321
  };
1248
1322
  /**
1249
1323
  * DefaultApi - functional programming interface
@@ -1366,6 +1440,23 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1366
1440
  * @throws {RequiredError}
1367
1441
  */
1368
1442
  getQuotas(params: GetQuotasRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetQuotasResponse>>;
1443
+ /**
1444
+ * Get transaction history
1445
+ * @summary
1446
+ * @param {*} params
1447
+ * @param {*} [options]
1448
+ * @throws {RequiredError}
1449
+ */
1450
+ getTransactionHistory(params: {
1451
+ bank: string;
1452
+ provider: string;
1453
+ taxCode: string;
1454
+ limit?: number;
1455
+ page?: number;
1456
+ sort?: string;
1457
+ }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTransactionHistoryResponse>>;
1458
+ getInvoiceRequestUrl(body: GetInvoiceRequestUrlRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceRequestUrlResponse>>;
1459
+ viewInvoiceByOrder(params: ViewInvoiceByOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViewInvoiceByOrderResponse>>;
1369
1460
  };
1370
1461
  /**
1371
1462
  * Unified API functions distinguished by provider in configuration
@@ -1377,23 +1468,23 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
1377
1468
  * @param {any} data - Invoice request data
1378
1469
  * @param {*} [options] - Override http request option.
1379
1470
  */
1380
- createInvoice(data: CreateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CreateInvoiceSuccess, any>>;
1471
+ createInvoice(data: CreateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CreateInvoiceSuccess, any, {}>>;
1381
1472
  /**
1382
1473
  * Get Invoice (Unified)
1383
1474
  */
1384
- getInvoice(params: GetInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceResponse, any>>;
1475
+ getInvoice(params: GetInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceResponse, any, {}>>;
1385
1476
  /**
1386
1477
  * Get Invoices (Unified)
1387
1478
  */
1388
- getInvoices(params: GetInvoicesRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoicesSuccess, any>>;
1479
+ getInvoices(params: GetInvoicesRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoicesSuccess, any, {}>>;
1389
1480
  /**
1390
1481
  * Sign Contract (Unified)
1391
1482
  */
1392
- signContract(data: SignContractRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignContractResponse, any>>;
1483
+ signContract(data: SignContractRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignContractResponse, any, {}>>;
1393
1484
  /**
1394
1485
  * Sign In (Unified)
1395
1486
  */
1396
- signIn(data: SignInRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInResponse, any>>;
1487
+ signIn(data: SignInRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInResponse, any, {}>>;
1397
1488
  /**
1398
1489
  * View Print Invoice (Unified)
1399
1490
  */
@@ -1401,37 +1492,37 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
1401
1492
  id: string;
1402
1493
  stax?: string;
1403
1494
  template_code?: string;
1404
- }, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ViewPrintInvoiceResponse, any>>;
1495
+ }, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ViewPrintInvoiceResponse, any, {}>>;
1405
1496
  /**
1406
1497
  * Tax Info (Unified)
1407
1498
  */
1408
- taxInfo(tax: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<TaxInfoResponse, any>>;
1499
+ taxInfo(tax: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<TaxInfoResponse, any, {}>>;
1409
1500
  /**
1410
1501
  * Single Sign-On login for merchants (Unified)
1411
1502
  */
1412
- signInSSO(signInSSORequest: SignInSSORequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInSSOResponse, any>>;
1503
+ signInSSO(signInSSORequest: SignInSSORequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInSSOResponse, any, {}>>;
1413
1504
  /**
1414
1505
  * Single Sign-On logout for merchants (Unified)
1415
1506
  */
1416
- signOutSSO(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignOutSSOResponse, any>>;
1507
+ signOutSSO(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignOutSSOResponse, any, {}>>;
1417
1508
  /**
1418
1509
  * Check authentication status for merchants (Unified)
1419
1510
  */
1420
- checkAuth(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckAuthResponse, any>>;
1511
+ checkAuth(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckAuthResponse, any, {}>>;
1421
1512
  /**
1422
1513
  * Check customer declaration status with filtering options (Unified)
1423
1514
  */
1424
- checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckCustomerDeclarationStatusResponse, any>>;
1515
+ checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckCustomerDeclarationStatusResponse, any, {}>>;
1425
1516
  /**
1426
1517
  * Get invoice serials
1427
1518
  */
1428
- getInvoiceSerials(params: GetInvoiceSerialsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceSerialsResponse, any>>;
1519
+ getInvoiceSerials(params: GetInvoiceSerialsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceSerialsResponse, any, {}>>;
1429
1520
  /**
1430
1521
  * Get invoice quotas (Unified)
1431
1522
  */
1432
- getQuotas(params: GetQuotasRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetQuotasResponse, any>>;
1523
+ getQuotas(params: GetQuotasRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetQuotasResponse, any, {}>>;
1433
1524
  /**
1434
- * Get Transaction History
1525
+ * Get Transaction History (Unified)
1435
1526
  */
1436
1527
  getTransactionHistory(params: {
1437
1528
  bank: string;
@@ -1440,5 +1531,13 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
1440
1531
  limit?: number;
1441
1532
  page?: number;
1442
1533
  sort?: string;
1443
- }, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<any, any>>;
1534
+ }, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetTransactionHistoryResponse, any, {}>>;
1535
+ /**
1536
+ * Get invoice-request URL (Unified)
1537
+ */
1538
+ getInvoiceRequestUrl(data: GetInvoiceRequestUrlRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceRequestUrlResponse, any, {}>>;
1539
+ /**
1540
+ * View invoice by orderId + vpid (Unified)
1541
+ */
1542
+ viewInvoiceByOrder(params: ViewInvoiceByOrderRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ViewInvoiceByOrderResponse, any, {}>>;
1444
1543
  };