@atomsolution/invoice-sdk-api 1.30.0 → 1.31.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 +11 -0
- package/dist/index.esm.js +39 -5
- 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
|
@@ -1430,4 +1430,15 @@ export declare const InvoiceApi: (configuration?: Configuration, basePath?: stri
|
|
|
1430
1430
|
* Get invoice quotas (Unified)
|
|
1431
1431
|
*/
|
|
1432
1432
|
getQuotas(params: GetQuotasRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetQuotasResponse, any>>;
|
|
1433
|
+
/**
|
|
1434
|
+
* Get Transaction History
|
|
1435
|
+
*/
|
|
1436
|
+
getTransactionHistory(params: {
|
|
1437
|
+
bank: string;
|
|
1438
|
+
provider: string;
|
|
1439
|
+
taxCode: string;
|
|
1440
|
+
limit?: number;
|
|
1441
|
+
page?: number;
|
|
1442
|
+
sort?: string;
|
|
1443
|
+
}, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<any, any>>;
|
|
1433
1444
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -1171,10 +1171,7 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1171
1171
|
* Get Invoices (Unified)
|
|
1172
1172
|
*/
|
|
1173
1173
|
getInvoices(params, options) {
|
|
1174
|
-
return localVarFp.getInvoices(
|
|
1175
|
-
params,
|
|
1176
|
-
options
|
|
1177
|
-
).then((request) => request(axios, basePath));
|
|
1174
|
+
return localVarFp.getInvoices(params, options).then((request) => request(axios, basePath));
|
|
1178
1175
|
},
|
|
1179
1176
|
/**
|
|
1180
1177
|
* Sign Contract (Unified)
|
|
@@ -1192,7 +1189,12 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1192
1189
|
* View Print Invoice (Unified)
|
|
1193
1190
|
*/
|
|
1194
1191
|
viewPrintInvoice(params, options) {
|
|
1195
|
-
return localVarFp.viewPrintInvoice(
|
|
1192
|
+
return localVarFp.viewPrintInvoice(
|
|
1193
|
+
params.id,
|
|
1194
|
+
params.stax,
|
|
1195
|
+
params.template_code,
|
|
1196
|
+
options
|
|
1197
|
+
).then((request) => request(axios, basePath));
|
|
1196
1198
|
},
|
|
1197
1199
|
/**
|
|
1198
1200
|
* Tax Info (Unified)
|
|
@@ -1235,6 +1237,38 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1235
1237
|
*/
|
|
1236
1238
|
getQuotas(params, options) {
|
|
1237
1239
|
return localVarFp.getQuotas(params, options).then((request) => request(axios, basePath));
|
|
1240
|
+
},
|
|
1241
|
+
/**
|
|
1242
|
+
* Get Transaction History
|
|
1243
|
+
*/
|
|
1244
|
+
getTransactionHistory(params, options) {
|
|
1245
|
+
var _a, _b, _c;
|
|
1246
|
+
if (!axios) {
|
|
1247
|
+
return Promise.reject(new Error("Axios not found"));
|
|
1248
|
+
}
|
|
1249
|
+
const query = new URLSearchParams({
|
|
1250
|
+
bank: params.bank,
|
|
1251
|
+
provider: params.provider,
|
|
1252
|
+
taxCode: params.taxCode,
|
|
1253
|
+
limit: String((_a = params.limit) != null ? _a : 10),
|
|
1254
|
+
page: String((_b = params.page) != null ? _b : 1),
|
|
1255
|
+
sort: (_c = params.sort) != null ? _c : "-createdAt"
|
|
1256
|
+
}).toString();
|
|
1257
|
+
const url = "".concat(basePath || "", "/core-api/orders/history?").concat(query);
|
|
1258
|
+
return axios.get(url, options).then((response) => {
|
|
1259
|
+
if (!response) {
|
|
1260
|
+
throw new Error("No response received");
|
|
1261
|
+
}
|
|
1262
|
+
return response;
|
|
1263
|
+
}).catch((error) => {
|
|
1264
|
+
error.requestContext = {
|
|
1265
|
+
url,
|
|
1266
|
+
params,
|
|
1267
|
+
basePath,
|
|
1268
|
+
method: "GET"
|
|
1269
|
+
};
|
|
1270
|
+
throw error;
|
|
1271
|
+
});
|
|
1238
1272
|
}
|
|
1239
1273
|
};
|
|
1240
1274
|
};
|