@atomsolution/invoice-sdk-api 1.31.1 → 1.33.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 +62 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1340
- 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/dist/invoice-taxCode.d.ts +45 -0
- package/package.json +2 -1
package/dist/api.d.ts
CHANGED
|
@@ -1144,6 +1144,34 @@ export interface GetTransactionHistoryResponse {
|
|
|
1144
1144
|
*/
|
|
1145
1145
|
data?: Array<any>;
|
|
1146
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>;
|
|
1147
1175
|
/**
|
|
1148
1176
|
* DefaultApi - axios parameter creator
|
|
1149
1177
|
* @export
|
|
@@ -1280,6 +1308,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1280
1308
|
page?: number;
|
|
1281
1309
|
sort?: string;
|
|
1282
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>;
|
|
1283
1321
|
};
|
|
1284
1322
|
/**
|
|
1285
1323
|
* DefaultApi - functional programming interface
|
|
@@ -1417,6 +1455,8 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1417
1455
|
page?: number;
|
|
1418
1456
|
sort?: string;
|
|
1419
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>>;
|
|
1420
1460
|
};
|
|
1421
1461
|
/**
|
|
1422
1462
|
* Unified API functions distinguished by provider in configuration
|
|
@@ -1428,23 +1468,23 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
|
|
|
1428
1468
|
* @param {any} data - Invoice request data
|
|
1429
1469
|
* @param {*} [options] - Override http request option.
|
|
1430
1470
|
*/
|
|
1431
|
-
createInvoice(data: CreateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CreateInvoiceSuccess, any>>;
|
|
1471
|
+
createInvoice(data: CreateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CreateInvoiceSuccess, any, {}>>;
|
|
1432
1472
|
/**
|
|
1433
1473
|
* Get Invoice (Unified)
|
|
1434
1474
|
*/
|
|
1435
|
-
getInvoice(params: GetInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceResponse, any>>;
|
|
1475
|
+
getInvoice(params: GetInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceResponse, any, {}>>;
|
|
1436
1476
|
/**
|
|
1437
1477
|
* Get Invoices (Unified)
|
|
1438
1478
|
*/
|
|
1439
|
-
getInvoices(params: GetInvoicesRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoicesSuccess, any>>;
|
|
1479
|
+
getInvoices(params: GetInvoicesRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoicesSuccess, any, {}>>;
|
|
1440
1480
|
/**
|
|
1441
1481
|
* Sign Contract (Unified)
|
|
1442
1482
|
*/
|
|
1443
|
-
signContract(data: SignContractRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignContractResponse, any>>;
|
|
1483
|
+
signContract(data: SignContractRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignContractResponse, any, {}>>;
|
|
1444
1484
|
/**
|
|
1445
1485
|
* Sign In (Unified)
|
|
1446
1486
|
*/
|
|
1447
|
-
signIn(data: SignInRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInResponse, any>>;
|
|
1487
|
+
signIn(data: SignInRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInResponse, any, {}>>;
|
|
1448
1488
|
/**
|
|
1449
1489
|
* View Print Invoice (Unified)
|
|
1450
1490
|
*/
|
|
@@ -1452,35 +1492,35 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
|
|
|
1452
1492
|
id: string;
|
|
1453
1493
|
stax?: string;
|
|
1454
1494
|
template_code?: string;
|
|
1455
|
-
}, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ViewPrintInvoiceResponse, any>>;
|
|
1495
|
+
}, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ViewPrintInvoiceResponse, any, {}>>;
|
|
1456
1496
|
/**
|
|
1457
1497
|
* Tax Info (Unified)
|
|
1458
1498
|
*/
|
|
1459
|
-
taxInfo(tax: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<TaxInfoResponse, any>>;
|
|
1499
|
+
taxInfo(tax: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<TaxInfoResponse, any, {}>>;
|
|
1460
1500
|
/**
|
|
1461
1501
|
* Single Sign-On login for merchants (Unified)
|
|
1462
1502
|
*/
|
|
1463
|
-
signInSSO(signInSSORequest: SignInSSORequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInSSOResponse, any>>;
|
|
1503
|
+
signInSSO(signInSSORequest: SignInSSORequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignInSSOResponse, any, {}>>;
|
|
1464
1504
|
/**
|
|
1465
1505
|
* Single Sign-On logout for merchants (Unified)
|
|
1466
1506
|
*/
|
|
1467
|
-
signOutSSO(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignOutSSOResponse, any>>;
|
|
1507
|
+
signOutSSO(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SignOutSSOResponse, any, {}>>;
|
|
1468
1508
|
/**
|
|
1469
1509
|
* Check authentication status for merchants (Unified)
|
|
1470
1510
|
*/
|
|
1471
|
-
checkAuth(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckAuthResponse, any>>;
|
|
1511
|
+
checkAuth(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckAuthResponse, any, {}>>;
|
|
1472
1512
|
/**
|
|
1473
1513
|
* Check customer declaration status with filtering options (Unified)
|
|
1474
1514
|
*/
|
|
1475
|
-
checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckCustomerDeclarationStatusResponse, any>>;
|
|
1515
|
+
checkCustomerDeclarationStatus(params: CheckCustomerDeclarationStatusRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CheckCustomerDeclarationStatusResponse, any, {}>>;
|
|
1476
1516
|
/**
|
|
1477
1517
|
* Get invoice serials
|
|
1478
1518
|
*/
|
|
1479
|
-
getInvoiceSerials(params: GetInvoiceSerialsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceSerialsResponse, any>>;
|
|
1519
|
+
getInvoiceSerials(params: GetInvoiceSerialsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetInvoiceSerialsResponse, any, {}>>;
|
|
1480
1520
|
/**
|
|
1481
1521
|
* Get invoice quotas (Unified)
|
|
1482
1522
|
*/
|
|
1483
|
-
getQuotas(params: GetQuotasRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetQuotasResponse, any>>;
|
|
1523
|
+
getQuotas(params: GetQuotasRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetQuotasResponse, any, {}>>;
|
|
1484
1524
|
/**
|
|
1485
1525
|
* Get Transaction History (Unified)
|
|
1486
1526
|
*/
|
|
@@ -1491,5 +1531,13 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
|
|
|
1491
1531
|
limit?: number;
|
|
1492
1532
|
page?: number;
|
|
1493
1533
|
sort?: string;
|
|
1494
|
-
}, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetTransactionHistoryResponse, 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, {}>>;
|
|
1495
1543
|
};
|
package/dist/index.d.ts
CHANGED