@atomsolution/invoice-sdk-api 1.24.0 → 1.25.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 +99 -181
- package/dist/index.esm.js +215 -554
- 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/index.esm.js
CHANGED
|
@@ -250,23 +250,25 @@ const createRequestFunction = function(axiosArgs, globalAxios2, BASE_PATH, confi
|
|
|
250
250
|
const DefaultApiAxiosParamCreator = function(configuration) {
|
|
251
251
|
return {
|
|
252
252
|
/**
|
|
253
|
-
* Tạo một hóa đơn mới
|
|
254
|
-
* @summary
|
|
255
|
-
* @param {
|
|
253
|
+
* Tạo một hóa đơn mới dựa trên thông tin được cung cấp.
|
|
254
|
+
* @summary Create invoice
|
|
255
|
+
* @param {CreateInvoiceRequest} createInvoiceRequest
|
|
256
256
|
* @param {*} [options] Override http request option.
|
|
257
257
|
* @throws {RequiredError}
|
|
258
258
|
*/
|
|
259
|
-
|
|
259
|
+
createInvoice: (_0, ..._1) => __async(null, [_0, ..._1], function* (createInvoiceRequest, options = {}) {
|
|
260
260
|
assertParamExists(
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
|
|
261
|
+
"createInvoice",
|
|
262
|
+
"createInvoiceRequest",
|
|
263
|
+
createInvoiceRequest
|
|
264
264
|
);
|
|
265
|
-
const localVarPath = "/fpt/create-invoice";
|
|
266
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
267
265
|
let baseOptions;
|
|
266
|
+
let localVarPath;
|
|
267
|
+
let localVarUrlObj;
|
|
268
268
|
if (configuration) {
|
|
269
269
|
baseOptions = configuration.baseOptions;
|
|
270
|
+
localVarPath = "".concat(configuration.provider, "/create-invoice");
|
|
271
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
270
272
|
}
|
|
271
273
|
const localVarRequestOptions = __spreadValues(__spreadValues({
|
|
272
274
|
method: "POST"
|
|
@@ -274,21 +276,20 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
274
276
|
const localVarHeaderParameter = {};
|
|
275
277
|
const localVarQueryParameter = {};
|
|
276
278
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
277
|
-
yield setApiKeysToObject(
|
|
278
|
-
localVarHeaderParameter,
|
|
279
|
-
configuration
|
|
280
|
-
);
|
|
279
|
+
yield setApiKeysToObject(localVarHeaderParameter, configuration);
|
|
281
280
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
282
|
-
|
|
281
|
+
if (localVarUrlObj) {
|
|
282
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
283
|
+
}
|
|
283
284
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
284
285
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
285
286
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
286
|
-
|
|
287
|
+
createInvoiceRequest,
|
|
287
288
|
localVarRequestOptions,
|
|
288
289
|
configuration
|
|
289
290
|
);
|
|
290
291
|
return {
|
|
291
|
-
url: toPathString(localVarUrlObj),
|
|
292
|
+
url: localVarUrlObj ? toPathString(localVarUrlObj) : "",
|
|
292
293
|
options: localVarRequestOptions
|
|
293
294
|
};
|
|
294
295
|
}),
|
|
@@ -300,11 +301,15 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
300
301
|
* @param {*} [options] Override http request option.
|
|
301
302
|
* @throws {RequiredError}
|
|
302
303
|
*/
|
|
303
|
-
|
|
304
|
-
assertParamExists("
|
|
305
|
-
assertParamExists("
|
|
306
|
-
|
|
307
|
-
|
|
304
|
+
getInvoice: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, stax, options = {}) {
|
|
305
|
+
assertParamExists("getInvoice", "id", id);
|
|
306
|
+
assertParamExists("getInvoice", "stax", stax);
|
|
307
|
+
let localVarPath;
|
|
308
|
+
let localVarUrlObj;
|
|
309
|
+
if (configuration) {
|
|
310
|
+
localVarPath = "".concat(configuration.provider, "/get-invoice");
|
|
311
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
312
|
+
}
|
|
308
313
|
let baseOptions;
|
|
309
314
|
if (configuration) {
|
|
310
315
|
baseOptions = configuration.baseOptions;
|
|
@@ -321,11 +326,13 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
321
326
|
if (stax !== void 0) {
|
|
322
327
|
localVarQueryParameter["stax"] = stax;
|
|
323
328
|
}
|
|
324
|
-
|
|
329
|
+
if (localVarUrlObj) {
|
|
330
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
331
|
+
}
|
|
325
332
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
333
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
327
334
|
return {
|
|
328
|
-
url: toPathString(localVarUrlObj),
|
|
335
|
+
url: localVarUrlObj ? toPathString(localVarUrlObj) : "",
|
|
329
336
|
options: localVarRequestOptions
|
|
330
337
|
};
|
|
331
338
|
}),
|
|
@@ -341,12 +348,16 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
341
348
|
* @param {*} [options] Override http request option.
|
|
342
349
|
* @throws {RequiredError}
|
|
343
350
|
*/
|
|
344
|
-
|
|
345
|
-
assertParamExists("
|
|
346
|
-
assertParamExists("
|
|
347
|
-
assertParamExists("
|
|
348
|
-
|
|
349
|
-
|
|
351
|
+
getInvoices: (_0, _1, _2, _3, _4, _5, ..._6) => __async(null, [_0, _1, _2, _3, _4, _5, ..._6], function* (fromDate, toDate, stax, start, count, serial, options = {}) {
|
|
352
|
+
assertParamExists("getInvoices", "fromDate", fromDate);
|
|
353
|
+
assertParamExists("getInvoices", "toDate", toDate);
|
|
354
|
+
assertParamExists("getInvoices", "stax", stax);
|
|
355
|
+
let localVarPath;
|
|
356
|
+
let localVarUrlObj;
|
|
357
|
+
if (configuration) {
|
|
358
|
+
localVarPath = "".concat(configuration.provider, "/get-invoices");
|
|
359
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
360
|
+
}
|
|
350
361
|
let baseOptions;
|
|
351
362
|
if (configuration) {
|
|
352
363
|
baseOptions = configuration.baseOptions;
|
|
@@ -375,11 +386,13 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
375
386
|
if (stax !== void 0) {
|
|
376
387
|
localVarQueryParameter["stax"] = stax;
|
|
377
388
|
}
|
|
378
|
-
|
|
389
|
+
if (localVarUrlObj) {
|
|
390
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
391
|
+
}
|
|
379
392
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
380
393
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
381
394
|
return {
|
|
382
|
-
url: toPathString(localVarUrlObj),
|
|
395
|
+
url: localVarUrlObj ? toPathString(localVarUrlObj) : "",
|
|
383
396
|
options: localVarRequestOptions
|
|
384
397
|
};
|
|
385
398
|
}),
|
|
@@ -390,14 +403,18 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
390
403
|
* @param {*} [options] Override http request option.
|
|
391
404
|
* @throws {RequiredError}
|
|
392
405
|
*/
|
|
393
|
-
|
|
406
|
+
signContract: (_0, ..._1) => __async(null, [_0, ..._1], function* (signContractRequest, options = {}) {
|
|
394
407
|
assertParamExists(
|
|
395
|
-
"
|
|
396
|
-
"
|
|
397
|
-
|
|
408
|
+
"signContract",
|
|
409
|
+
"signContractRequest",
|
|
410
|
+
signContractRequest
|
|
398
411
|
);
|
|
399
|
-
|
|
400
|
-
|
|
412
|
+
let localVarPath;
|
|
413
|
+
let localVarUrlObj;
|
|
414
|
+
if (configuration) {
|
|
415
|
+
localVarPath = "".concat(configuration.provider, "/sign-contract");
|
|
416
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
417
|
+
}
|
|
401
418
|
let baseOptions;
|
|
402
419
|
if (configuration) {
|
|
403
420
|
baseOptions = configuration.baseOptions;
|
|
@@ -409,16 +426,18 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
409
426
|
const localVarQueryParameter = {};
|
|
410
427
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
411
428
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
412
|
-
|
|
429
|
+
if (localVarUrlObj) {
|
|
430
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
431
|
+
}
|
|
413
432
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
414
433
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
415
434
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
416
|
-
|
|
435
|
+
signContractRequest,
|
|
417
436
|
localVarRequestOptions,
|
|
418
437
|
configuration
|
|
419
438
|
);
|
|
420
439
|
return {
|
|
421
|
-
url: toPathString(localVarUrlObj),
|
|
440
|
+
url: localVarUrlObj ? toPathString(localVarUrlObj) : "",
|
|
422
441
|
options: localVarRequestOptions
|
|
423
442
|
};
|
|
424
443
|
}),
|
|
@@ -429,10 +448,14 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
429
448
|
* @param {*} [options] Override http request option.
|
|
430
449
|
* @throws {RequiredError}
|
|
431
450
|
*/
|
|
432
|
-
|
|
433
|
-
assertParamExists("
|
|
434
|
-
|
|
435
|
-
|
|
451
|
+
signIn: (_0, ..._1) => __async(null, [_0, ..._1], function* (signInRequest, options = {}) {
|
|
452
|
+
assertParamExists("signIn", "signInRequest", signInRequest);
|
|
453
|
+
let localVarPath;
|
|
454
|
+
let localVarUrlObj;
|
|
455
|
+
if (configuration) {
|
|
456
|
+
localVarPath = "".concat(configuration.provider, "/sign-in");
|
|
457
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
458
|
+
}
|
|
436
459
|
let baseOptions;
|
|
437
460
|
if (configuration) {
|
|
438
461
|
baseOptions = configuration.baseOptions;
|
|
@@ -443,7 +466,9 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
443
466
|
const localVarHeaderParameter = {};
|
|
444
467
|
const localVarQueryParameter = {};
|
|
445
468
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
446
|
-
|
|
469
|
+
if (localVarUrlObj) {
|
|
470
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
471
|
+
}
|
|
447
472
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
448
473
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
449
474
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
@@ -452,7 +477,7 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
452
477
|
configuration
|
|
453
478
|
);
|
|
454
479
|
return {
|
|
455
|
-
url: toPathString(localVarUrlObj),
|
|
480
|
+
url: localVarUrlObj ? toPathString(localVarUrlObj) : "",
|
|
456
481
|
options: localVarRequestOptions
|
|
457
482
|
};
|
|
458
483
|
}),
|
|
@@ -464,85 +489,15 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
464
489
|
* @param {*} [options] Override http request option.
|
|
465
490
|
* @throws {RequiredError}
|
|
466
491
|
*/
|
|
467
|
-
|
|
468
|
-
assertParamExists("
|
|
469
|
-
assertParamExists("
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
let baseOptions;
|
|
492
|
+
viewPrintInvoice: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, stax, options = {}) {
|
|
493
|
+
assertParamExists("viewPrintInvoice", "id", id);
|
|
494
|
+
assertParamExists("viewPrintInvoice", "stax", stax);
|
|
495
|
+
let localVarPath;
|
|
496
|
+
let localVarUrlObj;
|
|
473
497
|
if (configuration) {
|
|
474
|
-
|
|
498
|
+
localVarPath = "".concat(configuration.provider, "/view-print-invoice");
|
|
499
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
475
500
|
}
|
|
476
|
-
const localVarRequestOptions = __spreadValues(__spreadValues({
|
|
477
|
-
method: "GET"
|
|
478
|
-
}, baseOptions), options);
|
|
479
|
-
const localVarHeaderParameter = {};
|
|
480
|
-
const localVarQueryParameter = {};
|
|
481
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
482
|
-
if (id !== void 0) {
|
|
483
|
-
localVarQueryParameter["id"] = id;
|
|
484
|
-
}
|
|
485
|
-
if (stax !== void 0) {
|
|
486
|
-
localVarQueryParameter["stax"] = stax;
|
|
487
|
-
}
|
|
488
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
489
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
490
|
-
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
491
|
-
return {
|
|
492
|
-
url: toPathString(localVarUrlObj),
|
|
493
|
-
options: localVarRequestOptions
|
|
494
|
-
};
|
|
495
|
-
}),
|
|
496
|
-
/**
|
|
497
|
-
* Tạo một hóa đơn mới dựa trên thông tin được cung cấp.
|
|
498
|
-
* @summary API tạo hóa đơn
|
|
499
|
-
* @param {mInvoiceCreateInvoiceRequest} createInvoiceRequest
|
|
500
|
-
* @param {*} [options] Override http request option.
|
|
501
|
-
* @throws {RequiredError}
|
|
502
|
-
*/
|
|
503
|
-
mInvoiceCreateInvoice: (_0, ..._1) => __async(null, [_0, ..._1], function* (createInvoiceRequest, options = {}) {
|
|
504
|
-
assertParamExists(
|
|
505
|
-
"mInvoiceCreateInvoice",
|
|
506
|
-
"createInvoiceRequest",
|
|
507
|
-
createInvoiceRequest
|
|
508
|
-
);
|
|
509
|
-
const localVarPath = "/m-invoice/create-invoice";
|
|
510
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
511
|
-
let baseOptions;
|
|
512
|
-
if (configuration) {
|
|
513
|
-
baseOptions = configuration.baseOptions;
|
|
514
|
-
}
|
|
515
|
-
const localVarRequestOptions = __spreadValues(__spreadValues({
|
|
516
|
-
method: "POST"
|
|
517
|
-
}, baseOptions), options);
|
|
518
|
-
const localVarHeaderParameter = {};
|
|
519
|
-
const localVarQueryParameter = {};
|
|
520
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
521
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
522
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
523
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
524
|
-
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
525
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
526
|
-
createInvoiceRequest,
|
|
527
|
-
localVarRequestOptions,
|
|
528
|
-
configuration
|
|
529
|
-
);
|
|
530
|
-
return {
|
|
531
|
-
url: toPathString(localVarUrlObj),
|
|
532
|
-
options: localVarRequestOptions
|
|
533
|
-
};
|
|
534
|
-
}),
|
|
535
|
-
/**
|
|
536
|
-
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
537
|
-
* @summary API lấy thông tin hóa đơn
|
|
538
|
-
* @param {string} id id hóa đơn.
|
|
539
|
-
* @param {*} [options] Override http request option.
|
|
540
|
-
* @throws {RequiredError}
|
|
541
|
-
*/
|
|
542
|
-
mInvoiceGetInvoice: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
543
|
-
assertParamExists("mInvoiceGetInvoice", "id", id);
|
|
544
|
-
const localVarPath = "/m-invoice/get-invoice";
|
|
545
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
546
501
|
let baseOptions;
|
|
547
502
|
if (configuration) {
|
|
548
503
|
baseOptions = configuration.baseOptions;
|
|
@@ -556,165 +511,16 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
556
511
|
if (id !== void 0) {
|
|
557
512
|
localVarQueryParameter["id"] = id;
|
|
558
513
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
562
|
-
return {
|
|
563
|
-
url: toPathString(localVarUrlObj),
|
|
564
|
-
options: localVarRequestOptions
|
|
565
|
-
};
|
|
566
|
-
}),
|
|
567
|
-
/**
|
|
568
|
-
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
569
|
-
* @summary API lấy danh sách hóa đơn
|
|
570
|
-
* @param {string} fromDate Ngày bắt đầu lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
571
|
-
* @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
572
|
-
* @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
|
|
573
|
-
* @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
|
|
574
|
-
* @param {string} [serial] Ký hiệu hóa đơn để lọc
|
|
575
|
-
* @param {*} [options] Override http request option.
|
|
576
|
-
* @throws {RequiredError}
|
|
577
|
-
*/
|
|
578
|
-
mInvoiceGetInvoices: (_0, _1, _2, _3, _4, ..._5) => __async(null, [_0, _1, _2, _3, _4, ..._5], function* (fromDate, toDate, start, count, serial, options = {}) {
|
|
579
|
-
assertParamExists("mInvoiceGetInvoices", "fromDate", fromDate);
|
|
580
|
-
assertParamExists("mInvoiceGetInvoices", "toDate", toDate);
|
|
581
|
-
const localVarPath = "/m-invoice/get-invoices";
|
|
582
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
583
|
-
let baseOptions;
|
|
584
|
-
if (configuration) {
|
|
585
|
-
baseOptions = configuration.baseOptions;
|
|
586
|
-
}
|
|
587
|
-
const localVarRequestOptions = __spreadValues(__spreadValues({
|
|
588
|
-
method: "GET"
|
|
589
|
-
}, baseOptions), options);
|
|
590
|
-
const localVarHeaderParameter = {};
|
|
591
|
-
const localVarQueryParameter = {};
|
|
592
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
593
|
-
if (start !== void 0) {
|
|
594
|
-
localVarQueryParameter["start"] = start;
|
|
595
|
-
}
|
|
596
|
-
if (count !== void 0) {
|
|
597
|
-
localVarQueryParameter["count"] = count;
|
|
598
|
-
}
|
|
599
|
-
if (serial !== void 0) {
|
|
600
|
-
localVarQueryParameter["serial"] = serial;
|
|
601
|
-
}
|
|
602
|
-
if (fromDate !== void 0) {
|
|
603
|
-
localVarQueryParameter["from_date"] = fromDate instanceof Date ? fromDate.toISOString().substring(0, 10) : fromDate;
|
|
604
|
-
}
|
|
605
|
-
if (toDate !== void 0) {
|
|
606
|
-
localVarQueryParameter["to_date"] = toDate instanceof Date ? toDate.toISOString().substring(0, 10) : toDate;
|
|
607
|
-
}
|
|
608
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
609
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
610
|
-
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
611
|
-
return {
|
|
612
|
-
url: toPathString(localVarUrlObj),
|
|
613
|
-
options: localVarRequestOptions
|
|
614
|
-
};
|
|
615
|
-
}),
|
|
616
|
-
/**
|
|
617
|
-
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
618
|
-
* @summary API ký hóa đơn
|
|
619
|
-
* @param {SignContractRequest} signContractRequest
|
|
620
|
-
* @param {*} [options] Override http request option.
|
|
621
|
-
* @throws {RequiredError}
|
|
622
|
-
*/
|
|
623
|
-
mInvoiceSignContract: (_0, ..._1) => __async(null, [_0, ..._1], function* (signContractRequest, options = {}) {
|
|
624
|
-
assertParamExists(
|
|
625
|
-
"mInvoiceSignContract",
|
|
626
|
-
"signContractRequest",
|
|
627
|
-
signContractRequest
|
|
628
|
-
);
|
|
629
|
-
const localVarPath = "/m-invoice/sign-contract";
|
|
630
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
631
|
-
let baseOptions;
|
|
632
|
-
if (configuration) {
|
|
633
|
-
baseOptions = configuration.baseOptions;
|
|
634
|
-
}
|
|
635
|
-
const localVarRequestOptions = __spreadValues(__spreadValues({
|
|
636
|
-
method: "POST"
|
|
637
|
-
}, baseOptions), options);
|
|
638
|
-
const localVarHeaderParameter = {};
|
|
639
|
-
const localVarQueryParameter = {};
|
|
640
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
641
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
642
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
643
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
644
|
-
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
645
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
646
|
-
signContractRequest,
|
|
647
|
-
localVarRequestOptions,
|
|
648
|
-
configuration
|
|
649
|
-
);
|
|
650
|
-
return {
|
|
651
|
-
url: toPathString(localVarUrlObj),
|
|
652
|
-
options: localVarRequestOptions
|
|
653
|
-
};
|
|
654
|
-
}),
|
|
655
|
-
/**
|
|
656
|
-
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
657
|
-
* @summary API đăng nhập
|
|
658
|
-
* @param {SignInRequest} signInRequest
|
|
659
|
-
* @param {*} [options] Override http request option.
|
|
660
|
-
* @throws {RequiredError}
|
|
661
|
-
*/
|
|
662
|
-
mInvoiceSignIn: (_0, ..._1) => __async(null, [_0, ..._1], function* (signInRequest, options = {}) {
|
|
663
|
-
assertParamExists("mInvoiceSignIn", "signInRequest", signInRequest);
|
|
664
|
-
const localVarPath = "/m-invoice/sign-in";
|
|
665
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
666
|
-
let baseOptions;
|
|
667
|
-
if (configuration) {
|
|
668
|
-
baseOptions = configuration.baseOptions;
|
|
669
|
-
}
|
|
670
|
-
const localVarRequestOptions = __spreadValues(__spreadValues({
|
|
671
|
-
method: "POST"
|
|
672
|
-
}, baseOptions), options);
|
|
673
|
-
const localVarHeaderParameter = {};
|
|
674
|
-
const localVarQueryParameter = {};
|
|
675
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
676
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
677
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
678
|
-
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
679
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
680
|
-
signInRequest,
|
|
681
|
-
localVarRequestOptions,
|
|
682
|
-
configuration
|
|
683
|
-
);
|
|
684
|
-
return {
|
|
685
|
-
url: toPathString(localVarUrlObj),
|
|
686
|
-
options: localVarRequestOptions
|
|
687
|
-
};
|
|
688
|
-
}),
|
|
689
|
-
/**
|
|
690
|
-
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
691
|
-
* @summary API xem in hóa đơn
|
|
692
|
-
* @param {string} id id hóa đơn.
|
|
693
|
-
* @param {*} [options] Override http request option.
|
|
694
|
-
* @throws {RequiredError}
|
|
695
|
-
*/
|
|
696
|
-
mInvoiceViewPrintInvoice: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
697
|
-
assertParamExists("mInvoiceViewPrintInvoice", "id", id);
|
|
698
|
-
const localVarPath = "/m-invoice/view-print-invoice";
|
|
699
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
700
|
-
let baseOptions;
|
|
701
|
-
if (configuration) {
|
|
702
|
-
baseOptions = configuration.baseOptions;
|
|
514
|
+
if (stax !== void 0) {
|
|
515
|
+
localVarQueryParameter["stax"] = stax;
|
|
703
516
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}, baseOptions), options);
|
|
707
|
-
const localVarHeaderParameter = {};
|
|
708
|
-
const localVarQueryParameter = {};
|
|
709
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
710
|
-
if (id !== void 0) {
|
|
711
|
-
localVarQueryParameter["id"] = id;
|
|
517
|
+
if (localVarUrlObj) {
|
|
518
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
712
519
|
}
|
|
713
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
714
520
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
715
521
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
716
522
|
return {
|
|
717
|
-
url: toPathString(localVarUrlObj),
|
|
523
|
+
url: localVarUrlObj ? toPathString(localVarUrlObj) : "",
|
|
718
524
|
options: localVarRequestOptions
|
|
719
525
|
};
|
|
720
526
|
}),
|
|
@@ -855,7 +661,11 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
855
661
|
* @throws {RequiredError}
|
|
856
662
|
*/
|
|
857
663
|
checkCustomerDeclarationStatus: (_0, ..._1) => __async(null, [_0, ..._1], function* (params, options = {}) {
|
|
858
|
-
assertParamExists(
|
|
664
|
+
assertParamExists(
|
|
665
|
+
"checkCustomerDeclarationStatus",
|
|
666
|
+
"checkCustomerDeclarationStatusRequest",
|
|
667
|
+
params
|
|
668
|
+
);
|
|
859
669
|
const localVarPath = "/core-api/customers/declaration-status";
|
|
860
670
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
861
671
|
let baseOptions;
|
|
@@ -899,6 +709,46 @@ const DefaultApiAxiosParamCreator = function(configuration) {
|
|
|
899
709
|
url: toPathString(localVarUrlObj),
|
|
900
710
|
options: localVarRequestOptions
|
|
901
711
|
};
|
|
712
|
+
}),
|
|
713
|
+
/**
|
|
714
|
+
* Check customer declaration status with filtering options.
|
|
715
|
+
* @summary API check customer declaration status
|
|
716
|
+
* @param {number} invType
|
|
717
|
+
* @param {*} [options] Override http request option.
|
|
718
|
+
* @throws {RequiredError}
|
|
719
|
+
*/
|
|
720
|
+
getInvoiceSerials: (_0, ..._1) => __async(null, [_0, ..._1], function* (params, options = {}) {
|
|
721
|
+
assertParamExists(
|
|
722
|
+
"getInvoiceSerials",
|
|
723
|
+
"getInvoiceSerialsRequest",
|
|
724
|
+
params
|
|
725
|
+
);
|
|
726
|
+
let baseOptions;
|
|
727
|
+
let localVarPath;
|
|
728
|
+
let localVarUrlObj;
|
|
729
|
+
if (configuration) {
|
|
730
|
+
baseOptions = configuration.baseOptions;
|
|
731
|
+
localVarPath = "".concat(configuration.provider, "/get-invoice-serials");
|
|
732
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
733
|
+
}
|
|
734
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({
|
|
735
|
+
method: "GET"
|
|
736
|
+
}, baseOptions), options);
|
|
737
|
+
const localVarHeaderParameter = {};
|
|
738
|
+
const localVarQueryParameter = {};
|
|
739
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
740
|
+
if (params.inv_type !== void 0) {
|
|
741
|
+
localVarQueryParameter["inv_type"] = params.inv_type;
|
|
742
|
+
}
|
|
743
|
+
if (localVarUrlObj) {
|
|
744
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
745
|
+
}
|
|
746
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
747
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
748
|
+
return {
|
|
749
|
+
url: localVarUrlObj ? toPathString(localVarUrlObj) : "",
|
|
750
|
+
options: localVarRequestOptions
|
|
751
|
+
};
|
|
902
752
|
})
|
|
903
753
|
};
|
|
904
754
|
};
|
|
@@ -909,19 +759,19 @@ const DefaultApiFp = function(configuration) {
|
|
|
909
759
|
/**
|
|
910
760
|
* 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.
|
|
911
761
|
* @summary FPT
|
|
912
|
-
* @param {
|
|
762
|
+
* @param {CreateInvoiceRequest} createInvoiceRequest
|
|
913
763
|
* @param {*} [options] Override http request option.
|
|
914
764
|
* @throws {RequiredError}
|
|
915
765
|
*/
|
|
916
|
-
|
|
766
|
+
createInvoice(createInvoiceRequest, options) {
|
|
917
767
|
return __async(this, null, function* () {
|
|
918
768
|
var _a2, _b, _c;
|
|
919
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
920
|
-
|
|
769
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createInvoice(
|
|
770
|
+
createInvoiceRequest,
|
|
921
771
|
options
|
|
922
772
|
);
|
|
923
773
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
924
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.
|
|
774
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.createInvoice"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
925
775
|
return (axios, basePath) => createRequestFunction(
|
|
926
776
|
localVarAxiosArgs,
|
|
927
777
|
globalAxios,
|
|
@@ -938,16 +788,16 @@ const DefaultApiFp = function(configuration) {
|
|
|
938
788
|
* @param {*} [options] Override http request option.
|
|
939
789
|
* @throws {RequiredError}
|
|
940
790
|
*/
|
|
941
|
-
|
|
791
|
+
getInvoice(id, stax, options) {
|
|
942
792
|
return __async(this, null, function* () {
|
|
943
793
|
var _a2, _b, _c;
|
|
944
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
794
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoice(
|
|
945
795
|
id,
|
|
946
796
|
stax,
|
|
947
797
|
options
|
|
948
798
|
);
|
|
949
799
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
950
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.
|
|
800
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.getInvoice"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
951
801
|
return (axios, basePath) => createRequestFunction(
|
|
952
802
|
localVarAxiosArgs,
|
|
953
803
|
globalAxios,
|
|
@@ -968,10 +818,10 @@ const DefaultApiFp = function(configuration) {
|
|
|
968
818
|
* @param {*} [options] Override http request option.
|
|
969
819
|
* @throws {RequiredError}
|
|
970
820
|
*/
|
|
971
|
-
|
|
821
|
+
getInvoices(fromDate, toDate, stax, start, count, serial, options) {
|
|
972
822
|
return __async(this, null, function* () {
|
|
973
823
|
var _a2, _b, _c;
|
|
974
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
824
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(
|
|
975
825
|
fromDate,
|
|
976
826
|
toDate,
|
|
977
827
|
stax,
|
|
@@ -981,7 +831,7 @@ const DefaultApiFp = function(configuration) {
|
|
|
981
831
|
options
|
|
982
832
|
);
|
|
983
833
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
984
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.
|
|
834
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.getInvoices"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
985
835
|
return (axios, basePath) => createRequestFunction(
|
|
986
836
|
localVarAxiosArgs,
|
|
987
837
|
globalAxios,
|
|
@@ -997,162 +847,15 @@ const DefaultApiFp = function(configuration) {
|
|
|
997
847
|
* @param {*} [options] Override http request option.
|
|
998
848
|
* @throws {RequiredError}
|
|
999
849
|
*/
|
|
1000
|
-
|
|
1001
|
-
return __async(this, null, function* () {
|
|
1002
|
-
var _a2, _b, _c;
|
|
1003
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.fptSignContract(
|
|
1004
|
-
fptSignContractRequest,
|
|
1005
|
-
options
|
|
1006
|
-
);
|
|
1007
|
-
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1008
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.fptSignContract"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1009
|
-
return (axios, basePath) => createRequestFunction(
|
|
1010
|
-
localVarAxiosArgs,
|
|
1011
|
-
globalAxios,
|
|
1012
|
-
BASE_PATH,
|
|
1013
|
-
configuration
|
|
1014
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
1015
|
-
});
|
|
1016
|
-
},
|
|
1017
|
-
/**
|
|
1018
|
-
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
1019
|
-
* @summary API đăng nhập
|
|
1020
|
-
* @param {SignInRequest} signInRequest
|
|
1021
|
-
* @param {*} [options] Override http request option.
|
|
1022
|
-
* @throws {RequiredError}
|
|
1023
|
-
*/
|
|
1024
|
-
fptSignIn(signInRequest, options) {
|
|
1025
|
-
return __async(this, null, function* () {
|
|
1026
|
-
var _a2, _b, _c;
|
|
1027
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.fptSignIn(
|
|
1028
|
-
signInRequest,
|
|
1029
|
-
options
|
|
1030
|
-
);
|
|
1031
|
-
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1032
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.fptSignIn"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1033
|
-
return (axios, basePath) => createRequestFunction(
|
|
1034
|
-
localVarAxiosArgs,
|
|
1035
|
-
globalAxios,
|
|
1036
|
-
BASE_PATH,
|
|
1037
|
-
configuration
|
|
1038
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
1039
|
-
});
|
|
1040
|
-
},
|
|
1041
|
-
/**
|
|
1042
|
-
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1043
|
-
* @summary API xem in hóa đơn
|
|
1044
|
-
* @param {string} id id hóa đơn.
|
|
1045
|
-
* @param {string} stax mã số thuế bên bán
|
|
1046
|
-
* @param {*} [options] Override http request option.
|
|
1047
|
-
* @throws {RequiredError}
|
|
1048
|
-
*/
|
|
1049
|
-
fptViewPrintInvoice(id, stax, options) {
|
|
1050
|
-
return __async(this, null, function* () {
|
|
1051
|
-
var _a2, _b, _c;
|
|
1052
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.fptViewPrintInvoice(id, stax, options);
|
|
1053
|
-
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1054
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.fptViewPrintInvoice"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1055
|
-
return (axios, basePath) => createRequestFunction(
|
|
1056
|
-
localVarAxiosArgs,
|
|
1057
|
-
globalAxios,
|
|
1058
|
-
BASE_PATH,
|
|
1059
|
-
configuration
|
|
1060
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
1061
|
-
});
|
|
1062
|
-
},
|
|
1063
|
-
/**
|
|
1064
|
-
* Tạo một hóa đơn mới dựa trên thông tin được cung cấp.
|
|
1065
|
-
* @summary API tạo hóa đơn
|
|
1066
|
-
* @param {mInvoiceCreateInvoiceRequest} createInvoiceRequest
|
|
1067
|
-
* @param {*} [options] Override http request option.
|
|
1068
|
-
* @throws {RequiredError}
|
|
1069
|
-
*/
|
|
1070
|
-
mInvoiceCreateInvoice(createInvoiceRequest, options) {
|
|
1071
|
-
return __async(this, null, function* () {
|
|
1072
|
-
var _a2, _b, _c;
|
|
1073
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.mInvoiceCreateInvoice(
|
|
1074
|
-
createInvoiceRequest,
|
|
1075
|
-
options
|
|
1076
|
-
);
|
|
1077
|
-
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1078
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.mInvoiceCreateInvoice"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1079
|
-
return (axios, basePath) => createRequestFunction(
|
|
1080
|
-
localVarAxiosArgs,
|
|
1081
|
-
globalAxios,
|
|
1082
|
-
BASE_PATH,
|
|
1083
|
-
configuration
|
|
1084
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
1085
|
-
});
|
|
1086
|
-
},
|
|
1087
|
-
/**
|
|
1088
|
-
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
1089
|
-
* @summary API lấy thông tin hóa đơn
|
|
1090
|
-
* @param {string} id id hóa đơn.
|
|
1091
|
-
* @param {*} [options] Override http request option.
|
|
1092
|
-
* @throws {RequiredError}
|
|
1093
|
-
*/
|
|
1094
|
-
mInvoiceGetInvoice(id, options) {
|
|
1095
|
-
return __async(this, null, function* () {
|
|
1096
|
-
var _a2, _b, _c;
|
|
1097
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.mInvoiceGetInvoice(id, options);
|
|
1098
|
-
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1099
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.mInvoiceGetInvoice"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1100
|
-
return (axios, basePath) => createRequestFunction(
|
|
1101
|
-
localVarAxiosArgs,
|
|
1102
|
-
globalAxios,
|
|
1103
|
-
BASE_PATH,
|
|
1104
|
-
configuration
|
|
1105
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
1106
|
-
});
|
|
1107
|
-
},
|
|
1108
|
-
/**
|
|
1109
|
-
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
1110
|
-
* @summary API lấy danh sách hóa đơn
|
|
1111
|
-
* @param {string} fromDate Ngày bắt đầu lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1112
|
-
* @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1113
|
-
* @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
|
|
1114
|
-
* @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
|
|
1115
|
-
* @param {string} [serial] Ký hiệu hóa đơn để lọc
|
|
1116
|
-
* @param {*} [options] Override http request option.
|
|
1117
|
-
* @throws {RequiredError}
|
|
1118
|
-
*/
|
|
1119
|
-
mInvoiceGetInvoices(fromDate, toDate, start, count, serial, options) {
|
|
1120
|
-
return __async(this, null, function* () {
|
|
1121
|
-
var _a2, _b, _c;
|
|
1122
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.mInvoiceGetInvoices(
|
|
1123
|
-
fromDate,
|
|
1124
|
-
toDate,
|
|
1125
|
-
start,
|
|
1126
|
-
count,
|
|
1127
|
-
serial,
|
|
1128
|
-
options
|
|
1129
|
-
);
|
|
1130
|
-
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1131
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.mInvoiceGetInvoices"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1132
|
-
return (axios, basePath) => createRequestFunction(
|
|
1133
|
-
localVarAxiosArgs,
|
|
1134
|
-
globalAxios,
|
|
1135
|
-
BASE_PATH,
|
|
1136
|
-
configuration
|
|
1137
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
1138
|
-
});
|
|
1139
|
-
},
|
|
1140
|
-
/**
|
|
1141
|
-
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
1142
|
-
* @summary API ký hóa đơn
|
|
1143
|
-
* @param {SignContractRequest} signContractRequest
|
|
1144
|
-
* @param {*} [options] Override http request option.
|
|
1145
|
-
* @throws {RequiredError}
|
|
1146
|
-
*/
|
|
1147
|
-
mInvoiceSignContract(signContractRequest, options) {
|
|
850
|
+
signContract(signContractRequest, options) {
|
|
1148
851
|
return __async(this, null, function* () {
|
|
1149
852
|
var _a2, _b, _c;
|
|
1150
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
853
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.signContract(
|
|
1151
854
|
signContractRequest,
|
|
1152
855
|
options
|
|
1153
856
|
);
|
|
1154
857
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1155
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.
|
|
858
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.signContract"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1156
859
|
return (axios, basePath) => createRequestFunction(
|
|
1157
860
|
localVarAxiosArgs,
|
|
1158
861
|
globalAxios,
|
|
@@ -1168,15 +871,15 @@ const DefaultApiFp = function(configuration) {
|
|
|
1168
871
|
* @param {*} [options] Override http request option.
|
|
1169
872
|
* @throws {RequiredError}
|
|
1170
873
|
*/
|
|
1171
|
-
|
|
874
|
+
signIn(signInRequest, options) {
|
|
1172
875
|
return __async(this, null, function* () {
|
|
1173
876
|
var _a2, _b, _c;
|
|
1174
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
877
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.signIn(
|
|
1175
878
|
signInRequest,
|
|
1176
879
|
options
|
|
1177
880
|
);
|
|
1178
881
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1179
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.
|
|
882
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.signIn"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1180
883
|
return (axios, basePath) => createRequestFunction(
|
|
1181
884
|
localVarAxiosArgs,
|
|
1182
885
|
globalAxios,
|
|
@@ -1189,15 +892,16 @@ const DefaultApiFp = function(configuration) {
|
|
|
1189
892
|
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1190
893
|
* @summary API xem in hóa đơn
|
|
1191
894
|
* @param {string} id id hóa đơn.
|
|
895
|
+
* @param {string} stax mã số thuế bên bán
|
|
1192
896
|
* @param {*} [options] Override http request option.
|
|
1193
897
|
* @throws {RequiredError}
|
|
1194
898
|
*/
|
|
1195
|
-
|
|
899
|
+
viewPrintInvoice(id, stax, options) {
|
|
1196
900
|
return __async(this, null, function* () {
|
|
1197
901
|
var _a2, _b, _c;
|
|
1198
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
902
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.viewPrintInvoice(id, stax, options);
|
|
1199
903
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1200
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.
|
|
904
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.viewPrintInvoice"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1201
905
|
return (axios, basePath) => createRequestFunction(
|
|
1202
906
|
localVarAxiosArgs,
|
|
1203
907
|
globalAxios,
|
|
@@ -1328,6 +1032,27 @@ const DefaultApiFp = function(configuration) {
|
|
|
1328
1032
|
configuration
|
|
1329
1033
|
)(axios, localVarOperationServerBasePath || basePath);
|
|
1330
1034
|
});
|
|
1035
|
+
},
|
|
1036
|
+
/**
|
|
1037
|
+
* Check customer declaration status with filtering options.
|
|
1038
|
+
* @summary API check customer declaration status
|
|
1039
|
+
* @param {number} [invType]
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
getInvoiceSerials(params, options) {
|
|
1044
|
+
return __async(this, null, function* () {
|
|
1045
|
+
var _a2, _b, _c;
|
|
1046
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoiceSerials(params, options);
|
|
1047
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1048
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DefaultApi.checkCustomerDeclarationStatus"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1049
|
+
return (axios, basePath) => createRequestFunction(
|
|
1050
|
+
localVarAxiosArgs,
|
|
1051
|
+
globalAxios,
|
|
1052
|
+
BASE_PATH,
|
|
1053
|
+
configuration
|
|
1054
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
1055
|
+
});
|
|
1331
1056
|
}
|
|
1332
1057
|
};
|
|
1333
1058
|
};
|
|
@@ -1335,13 +1060,13 @@ class DefaultApi extends BaseAPI {
|
|
|
1335
1060
|
/**
|
|
1336
1061
|
* 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.
|
|
1337
1062
|
* @summary FPT
|
|
1338
|
-
* @param {
|
|
1063
|
+
* @param {CreateInvoiceRequest} createInvoiceRequest
|
|
1339
1064
|
* @param {*} [options] Override http request option.
|
|
1340
1065
|
* @throws {RequiredError}
|
|
1341
1066
|
* @memberof DefaultApi
|
|
1342
1067
|
*/
|
|
1343
|
-
|
|
1344
|
-
return DefaultApiFp(this.configuration).
|
|
1068
|
+
createInvoice(createInvoiceRequest, options) {
|
|
1069
|
+
return DefaultApiFp(this.configuration).createInvoice(createInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1345
1070
|
}
|
|
1346
1071
|
/**
|
|
1347
1072
|
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
@@ -1352,8 +1077,8 @@ class DefaultApi extends BaseAPI {
|
|
|
1352
1077
|
* @throws {RequiredError}
|
|
1353
1078
|
* @memberof DefaultApi
|
|
1354
1079
|
*/
|
|
1355
|
-
|
|
1356
|
-
return DefaultApiFp(this.configuration).
|
|
1080
|
+
getInvoice(id, stax, options) {
|
|
1081
|
+
return DefaultApiFp(this.configuration).getInvoice(id, stax, options).then((request) => request(this.axios, this.basePath));
|
|
1357
1082
|
}
|
|
1358
1083
|
/**
|
|
1359
1084
|
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
@@ -1368,79 +1093,8 @@ class DefaultApi extends BaseAPI {
|
|
|
1368
1093
|
* @throws {RequiredError}
|
|
1369
1094
|
* @memberof DefaultApi
|
|
1370
1095
|
*/
|
|
1371
|
-
|
|
1372
|
-
return DefaultApiFp(this.configuration).
|
|
1373
|
-
}
|
|
1374
|
-
/**
|
|
1375
|
-
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
1376
|
-
* @summary API ký hóa đơn
|
|
1377
|
-
* @param {FptSignContractRequest} fptSignContractRequest
|
|
1378
|
-
* @param {*} [options] Override http request option.
|
|
1379
|
-
* @throws {RequiredError}
|
|
1380
|
-
* @memberof DefaultApi
|
|
1381
|
-
*/
|
|
1382
|
-
fptSignContract(fptSignContractRequest, options) {
|
|
1383
|
-
return DefaultApiFp(this.configuration).fptSignContract(fptSignContractRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1384
|
-
}
|
|
1385
|
-
/**
|
|
1386
|
-
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
1387
|
-
* @summary API đăng nhập
|
|
1388
|
-
* @param {SignInRequest} signInRequest
|
|
1389
|
-
* @param {*} [options] Override http request option.
|
|
1390
|
-
* @throws {RequiredError}
|
|
1391
|
-
* @memberof DefaultApi
|
|
1392
|
-
*/
|
|
1393
|
-
fptSignIn(signInRequest, options) {
|
|
1394
|
-
return DefaultApiFp(this.configuration).fptSignIn(signInRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1395
|
-
}
|
|
1396
|
-
/**
|
|
1397
|
-
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1398
|
-
* @summary API xem in hóa đơn
|
|
1399
|
-
* @param {string} id id hóa đơn.
|
|
1400
|
-
* @param {string} stax mã số thuế bên bán
|
|
1401
|
-
* @param {*} [options] Override http request option.
|
|
1402
|
-
* @throws {RequiredError}
|
|
1403
|
-
* @memberof DefaultApi
|
|
1404
|
-
*/
|
|
1405
|
-
fptViewPrintInvoice(id, stax, options) {
|
|
1406
|
-
return DefaultApiFp(this.configuration).fptViewPrintInvoice(id, stax, options).then((request) => request(this.axios, this.basePath));
|
|
1407
|
-
}
|
|
1408
|
-
/**
|
|
1409
|
-
* Tạo một hóa đơn mới dựa trên thông tin được cung cấp.
|
|
1410
|
-
* @summary API tạo hóa đơn
|
|
1411
|
-
* @param {mInvoiceCreateInvoiceRequest} createInvoiceRequest
|
|
1412
|
-
* @param {*} [options] Override http request option.
|
|
1413
|
-
* @throws {RequiredError}
|
|
1414
|
-
* @memberof DefaultApi
|
|
1415
|
-
*/
|
|
1416
|
-
mInvoiceCreateInvoice(createInvoiceRequest, options) {
|
|
1417
|
-
return DefaultApiFp(this.configuration).mInvoiceCreateInvoice(createInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1418
|
-
}
|
|
1419
|
-
/**
|
|
1420
|
-
* Lấy thông tin chi tiết của một hóa đơn dựa trên ID hóa đơn.
|
|
1421
|
-
* @summary API lấy thông tin hóa đơn
|
|
1422
|
-
* @param {string} id id hóa đơn.
|
|
1423
|
-
* @param {*} [options] Override http request option.
|
|
1424
|
-
* @throws {RequiredError}
|
|
1425
|
-
* @memberof DefaultApi
|
|
1426
|
-
*/
|
|
1427
|
-
mInvoiceGetInvoice(id, options) {
|
|
1428
|
-
return DefaultApiFp(this.configuration).mInvoiceGetInvoice(id, options).then((request) => request(this.axios, this.basePath));
|
|
1429
|
-
}
|
|
1430
|
-
/**
|
|
1431
|
-
* Lấy danh sách tất cả hóa đơn dựa trên bộ lọc được cung cấp.
|
|
1432
|
-
* @summary API lấy danh sách hóa đơn
|
|
1433
|
-
* @param {string} fromDate Ngày bắt đầu lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1434
|
-
* @param {string} toDate Ngày kết thúc lọc hóa đơn (định dạng yyyy-MM-dd)
|
|
1435
|
-
* @param {number} [start] Vị trí bắt đầu của danh sách hóa đơn (phân trang)
|
|
1436
|
-
* @param {number} [count] Số lượng hóa đơn cần lấy (phân trang)
|
|
1437
|
-
* @param {string} [serial] Ký hiệu hóa đơn để lọc
|
|
1438
|
-
* @param {*} [options] Override http request option.
|
|
1439
|
-
* @throws {RequiredError}
|
|
1440
|
-
* @memberof DefaultApi
|
|
1441
|
-
*/
|
|
1442
|
-
mInvoiceGetInvoices(fromDate, toDate, start, count, serial, options) {
|
|
1443
|
-
return DefaultApiFp(this.configuration).mInvoiceGetInvoices(fromDate, toDate, start, count, serial, options).then((request) => request(this.axios, this.basePath));
|
|
1096
|
+
getInvoices(fromDate, toDate, stax, start, count, serial, options) {
|
|
1097
|
+
return DefaultApiFp(this.configuration).getInvoices(fromDate, toDate, stax, start, count, serial, options).then((request) => request(this.axios, this.basePath));
|
|
1444
1098
|
}
|
|
1445
1099
|
/**
|
|
1446
1100
|
* Ký hợp đồng điện tử với thông tin hợp đồng được cung cấp.
|
|
@@ -1450,8 +1104,8 @@ class DefaultApi extends BaseAPI {
|
|
|
1450
1104
|
* @throws {RequiredError}
|
|
1451
1105
|
* @memberof DefaultApi
|
|
1452
1106
|
*/
|
|
1453
|
-
|
|
1454
|
-
return DefaultApiFp(this.configuration).
|
|
1107
|
+
signContract(signContractRequest, options) {
|
|
1108
|
+
return DefaultApiFp(this.configuration).signContract(signContractRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1455
1109
|
}
|
|
1456
1110
|
/**
|
|
1457
1111
|
* Đăng nhập vào hệ thống với thông tin tài khoản người dùng.
|
|
@@ -1461,19 +1115,20 @@ class DefaultApi extends BaseAPI {
|
|
|
1461
1115
|
* @throws {RequiredError}
|
|
1462
1116
|
* @memberof DefaultApi
|
|
1463
1117
|
*/
|
|
1464
|
-
|
|
1465
|
-
return DefaultApiFp(this.configuration).
|
|
1118
|
+
signIn(signInRequest, options) {
|
|
1119
|
+
return DefaultApiFp(this.configuration).signIn(signInRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1466
1120
|
}
|
|
1467
1121
|
/**
|
|
1468
1122
|
* Lấy thông tin hóa đơn dưới định dạng sẵn sàng để in.
|
|
1469
1123
|
* @summary API xem in hóa đơn
|
|
1470
1124
|
* @param {string} id id hóa đơn.
|
|
1125
|
+
* @param {string} stax mã số thuế bên bán
|
|
1471
1126
|
* @param {*} [options] Override http request option.
|
|
1472
1127
|
* @throws {RequiredError}
|
|
1473
1128
|
* @memberof DefaultApi
|
|
1474
1129
|
*/
|
|
1475
|
-
|
|
1476
|
-
return DefaultApiFp(this.configuration).
|
|
1130
|
+
viewPrintInvoice(id, stax, options) {
|
|
1131
|
+
return DefaultApiFp(this.configuration).viewPrintInvoice(id, stax, options).then((request) => request(this.axios, this.basePath));
|
|
1477
1132
|
}
|
|
1478
1133
|
/**
|
|
1479
1134
|
* 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.
|
|
@@ -1533,10 +1188,18 @@ class DefaultApi extends BaseAPI {
|
|
|
1533
1188
|
* @memberof DefaultApi
|
|
1534
1189
|
*/
|
|
1535
1190
|
checkCustomerDeclarationStatus(params, options) {
|
|
1536
|
-
return DefaultApiFp(this.configuration).checkCustomerDeclarationStatus(
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1191
|
+
return DefaultApiFp(this.configuration).checkCustomerDeclarationStatus(params, options).then((request) => request(this.axios, this.basePath));
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* Check authentication status for merchants using provider and tax code.
|
|
1195
|
+
* @summary API check auth
|
|
1196
|
+
* @param {number} [invType]
|
|
1197
|
+
* @param {*} [options] Override http request option.
|
|
1198
|
+
* @throws {RequiredError}
|
|
1199
|
+
* @memberof DefaultApi
|
|
1200
|
+
*/
|
|
1201
|
+
getInvoiceSerials(params, options) {
|
|
1202
|
+
return DefaultApiFp(this.configuration).getInvoiceSerials(params, options).then((request) => request(this.axios, this.basePath));
|
|
1540
1203
|
}
|
|
1541
1204
|
}
|
|
1542
1205
|
const InvoiceApi = function(configuration, basePath, axios) {
|
|
@@ -1549,9 +1212,9 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1549
1212
|
*/
|
|
1550
1213
|
createInvoice(data, options) {
|
|
1551
1214
|
if ((configuration == null ? void 0 : configuration.provider) === Provider.FPT) {
|
|
1552
|
-
return localVarFp.
|
|
1215
|
+
return localVarFp.createInvoice(data, options).then((request) => request(axios, basePath));
|
|
1553
1216
|
} else if ((configuration == null ? void 0 : configuration.provider) === Provider.MInvoice) {
|
|
1554
|
-
return localVarFp.
|
|
1217
|
+
return localVarFp.createInvoice(data, options).then((request) => request(axios, basePath));
|
|
1555
1218
|
} else {
|
|
1556
1219
|
throw new Error("Unknown provider");
|
|
1557
1220
|
}
|
|
@@ -1562,9 +1225,9 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1562
1225
|
getInvoice(params, options) {
|
|
1563
1226
|
if ((configuration == null ? void 0 : configuration.provider) === Provider.FPT) {
|
|
1564
1227
|
if (!params.stax) throw new Error("stax is required for FPT provider");
|
|
1565
|
-
return localVarFp.
|
|
1228
|
+
return localVarFp.getInvoice(params.id, params.stax, options).then((request) => request(axios, basePath));
|
|
1566
1229
|
} else if ((configuration == null ? void 0 : configuration.provider) === Provider.MInvoice) {
|
|
1567
|
-
return localVarFp.
|
|
1230
|
+
return localVarFp.getInvoice(params.id, void 0, options).then((request) => request(axios, basePath));
|
|
1568
1231
|
} else {
|
|
1569
1232
|
throw new Error("Unknown provider");
|
|
1570
1233
|
}
|
|
@@ -1575,7 +1238,7 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1575
1238
|
getInvoices(params, options) {
|
|
1576
1239
|
if ((configuration == null ? void 0 : configuration.provider) === Provider.FPT) {
|
|
1577
1240
|
if (!params.stax) throw new Error("stax is required for FPT provider");
|
|
1578
|
-
return localVarFp.
|
|
1241
|
+
return localVarFp.getInvoices(
|
|
1579
1242
|
params.fromDate,
|
|
1580
1243
|
params.toDate,
|
|
1581
1244
|
params.stax,
|
|
@@ -1585,9 +1248,10 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1585
1248
|
options
|
|
1586
1249
|
).then((request) => request(axios, basePath));
|
|
1587
1250
|
} else if ((configuration == null ? void 0 : configuration.provider) === Provider.MInvoice) {
|
|
1588
|
-
return localVarFp.
|
|
1251
|
+
return localVarFp.getInvoices(
|
|
1589
1252
|
params.fromDate,
|
|
1590
1253
|
params.toDate,
|
|
1254
|
+
params.stax,
|
|
1591
1255
|
params.start,
|
|
1592
1256
|
params.count,
|
|
1593
1257
|
params.serial,
|
|
@@ -1602,9 +1266,9 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1602
1266
|
*/
|
|
1603
1267
|
signContract(data, options) {
|
|
1604
1268
|
if ((configuration == null ? void 0 : configuration.provider) === Provider.FPT) {
|
|
1605
|
-
return localVarFp.
|
|
1269
|
+
return localVarFp.signContract(data, options).then((request) => request(axios, basePath));
|
|
1606
1270
|
} else if ((configuration == null ? void 0 : configuration.provider) === Provider.MInvoice) {
|
|
1607
|
-
return localVarFp.
|
|
1271
|
+
return localVarFp.signContract(data, options).then((request) => request(axios, basePath));
|
|
1608
1272
|
} else {
|
|
1609
1273
|
throw new Error("Unknown provider");
|
|
1610
1274
|
}
|
|
@@ -1613,13 +1277,7 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1613
1277
|
* Sign In (Unified)
|
|
1614
1278
|
*/
|
|
1615
1279
|
signIn(data, options) {
|
|
1616
|
-
|
|
1617
|
-
return localVarFp.fptSignIn(data, options).then((request) => request(axios, basePath));
|
|
1618
|
-
} else if ((configuration == null ? void 0 : configuration.provider) === Provider.MInvoice) {
|
|
1619
|
-
return localVarFp.mInvoiceSignIn(data, options).then((request) => request(axios, basePath));
|
|
1620
|
-
} else {
|
|
1621
|
-
throw new Error("Unknown provider");
|
|
1622
|
-
}
|
|
1280
|
+
return localVarFp.signIn(data, options).then((request) => request(axios, basePath));
|
|
1623
1281
|
},
|
|
1624
1282
|
/**
|
|
1625
1283
|
* View Print Invoice (Unified)
|
|
@@ -1627,9 +1285,9 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1627
1285
|
viewPrintInvoice(params, options) {
|
|
1628
1286
|
if ((configuration == null ? void 0 : configuration.provider) === Provider.FPT) {
|
|
1629
1287
|
if (!params.stax) throw new Error("stax is required for FPT provider");
|
|
1630
|
-
return localVarFp.
|
|
1288
|
+
return localVarFp.viewPrintInvoice(params.id, params.stax, options).then((request) => request(axios, basePath));
|
|
1631
1289
|
} else if ((configuration == null ? void 0 : configuration.provider) === Provider.MInvoice) {
|
|
1632
|
-
return localVarFp.
|
|
1290
|
+
return localVarFp.viewPrintInvoice(params.id, void 0, options).then((request) => request(axios, basePath));
|
|
1633
1291
|
} else {
|
|
1634
1292
|
throw new Error("Unknown provider");
|
|
1635
1293
|
}
|
|
@@ -1662,10 +1320,13 @@ const InvoiceApi = function(configuration, basePath, axios) {
|
|
|
1662
1320
|
* Check customer declaration status with filtering options (Unified)
|
|
1663
1321
|
*/
|
|
1664
1322
|
checkCustomerDeclarationStatus(params, options) {
|
|
1665
|
-
return localVarFp.checkCustomerDeclarationStatus(
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1323
|
+
return localVarFp.checkCustomerDeclarationStatus(params, options).then((request) => request(axios, basePath));
|
|
1324
|
+
},
|
|
1325
|
+
/**
|
|
1326
|
+
* Get invoice serials
|
|
1327
|
+
*/
|
|
1328
|
+
getInvoiceSerials(params, options) {
|
|
1329
|
+
return localVarFp.getInvoiceSerials(params, options).then((request) => request(axios, basePath));
|
|
1669
1330
|
}
|
|
1670
1331
|
};
|
|
1671
1332
|
};
|