@emilgroup/billing-v2-sdk-node 0.0.0-stage → 1.0.1-beta.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.
Files changed (265) hide show
  1. package/.openapi-generator/FILES +93 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +83 -2
  5. package/api/bill-runs-api.ts +472 -0
  6. package/api/bills-api.ts +149 -0
  7. package/api/invoices-api.ts +1534 -0
  8. package/api/jobs-api.ts +760 -0
  9. package/api/policy-billings-api.ts +595 -0
  10. package/api.ts +39 -0
  11. package/base.ts +396 -0
  12. package/common.ts +200 -0
  13. package/configuration.ts +118 -0
  14. package/dist/api/bill-runs-api.d.ts +266 -0
  15. package/dist/api/bill-runs-api.js +470 -0
  16. package/dist/api/bills-api.d.ts +87 -0
  17. package/dist/api/bills-api.js +211 -0
  18. package/dist/api/invoices-api.d.ts +847 -0
  19. package/dist/api/invoices-api.js +1357 -0
  20. package/dist/api/jobs-api.d.ts +426 -0
  21. package/dist/api/jobs-api.js +712 -0
  22. package/dist/api/policy-billings-api.d.ts +332 -0
  23. package/dist/api/policy-billings-api.js +565 -0
  24. package/dist/api.d.ts +16 -0
  25. package/dist/api.js +34 -0
  26. package/dist/base.d.ts +97 -0
  27. package/dist/base.js +493 -0
  28. package/dist/common.d.ts +92 -0
  29. package/dist/common.js +278 -0
  30. package/dist/configuration.d.ts +96 -0
  31. package/dist/configuration.js +52 -0
  32. package/dist/index.d.ts +15 -0
  33. package/dist/index.js +36 -0
  34. package/dist/models/any.d.ts +25 -0
  35. package/dist/models/any.js +15 -0
  36. package/dist/models/bill-item.d.ts +132 -0
  37. package/dist/models/bill-item.js +15 -0
  38. package/dist/models/bill-run.d.ts +145 -0
  39. package/dist/models/bill-run.js +15 -0
  40. package/dist/models/bill.d.ts +194 -0
  41. package/dist/models/bill.js +15 -0
  42. package/dist/models/cancel-job-response.d.ts +25 -0
  43. package/dist/models/cancel-job-response.js +15 -0
  44. package/dist/models/create-correction-invoices-request.d.ts +72 -0
  45. package/dist/models/create-correction-invoices-request.js +15 -0
  46. package/dist/models/create-correction-invoices-response.d.ts +31 -0
  47. package/dist/models/create-correction-invoices-response.js +15 -0
  48. package/dist/models/create-detail-export-job-request.d.ts +56 -0
  49. package/dist/models/create-detail-export-job-request.js +15 -0
  50. package/dist/models/create-detail-export-job-response.d.ts +25 -0
  51. package/dist/models/create-detail-export-job-response.js +15 -0
  52. package/dist/models/create-estimated-invoice-for-interval-request.d.ts +42 -0
  53. package/dist/models/create-estimated-invoice-for-interval-request.js +15 -0
  54. package/dist/models/create-estimated-invoice-for-interval-response.d.ts +25 -0
  55. package/dist/models/create-estimated-invoice-for-interval-response.js +15 -0
  56. package/dist/models/create-estimated-invoice-request.d.ts +36 -0
  57. package/dist/models/create-estimated-invoice-request.js +15 -0
  58. package/dist/models/create-estimated-invoice-response.d.ts +25 -0
  59. package/dist/models/create-estimated-invoice-response.js +15 -0
  60. package/dist/models/create-export-job-request.d.ts +68 -0
  61. package/dist/models/create-export-job-request.js +15 -0
  62. package/dist/models/create-export-job-response.d.ts +25 -0
  63. package/dist/models/create-export-job-response.js +15 -0
  64. package/dist/models/create-initial-invoice-request.d.ts +72 -0
  65. package/dist/models/create-initial-invoice-request.js +15 -0
  66. package/dist/models/create-initial-invoice-response.d.ts +25 -0
  67. package/dist/models/create-initial-invoice-response.js +15 -0
  68. package/dist/models/create-invoice-request.d.ts +67 -0
  69. package/dist/models/create-invoice-request.js +15 -0
  70. package/dist/models/create-invoice-response.d.ts +25 -0
  71. package/dist/models/create-invoice-response.js +15 -0
  72. package/dist/models/create-invoice-status-body.d.ts +24 -0
  73. package/dist/models/create-invoice-status-body.js +15 -0
  74. package/dist/models/create-invoice-status-response.d.ts +25 -0
  75. package/dist/models/create-invoice-status-response.js +15 -0
  76. package/dist/models/create-item-request.d.ts +36 -0
  77. package/dist/models/create-item-request.js +15 -0
  78. package/dist/models/create-policy-billing-request.d.ts +42 -0
  79. package/dist/models/create-policy-billing-request.js +15 -0
  80. package/dist/models/create-policy-billing-response.d.ts +25 -0
  81. package/dist/models/create-policy-billing-response.js +15 -0
  82. package/dist/models/create-recurring-invoice-request.d.ts +72 -0
  83. package/dist/models/create-recurring-invoice-request.js +15 -0
  84. package/dist/models/create-recurring-invoice-response.d.ts +31 -0
  85. package/dist/models/create-recurring-invoice-response.js +15 -0
  86. package/dist/models/create-termination-invoice-request.d.ts +60 -0
  87. package/dist/models/create-termination-invoice-request.js +15 -0
  88. package/dist/models/create-termination-invoice-response.d.ts +25 -0
  89. package/dist/models/create-termination-invoice-response.js +15 -0
  90. package/dist/models/create-withdraw-invoice-request.d.ts +48 -0
  91. package/dist/models/create-withdraw-invoice-request.js +15 -0
  92. package/dist/models/create-withdraw-invoice-response.d.ts +25 -0
  93. package/dist/models/create-withdraw-invoice-response.js +15 -0
  94. package/dist/models/estimate-history-entry.d.ts +36 -0
  95. package/dist/models/estimate-history-entry.js +15 -0
  96. package/dist/models/export-column.d.ts +36 -0
  97. package/dist/models/export-column.js +15 -0
  98. package/dist/models/filter-field.d.ts +110 -0
  99. package/dist/models/filter-field.js +15 -0
  100. package/dist/models/filter-value.d.ts +37 -0
  101. package/dist/models/filter-value.js +15 -0
  102. package/dist/models/get-bill-response.d.ts +25 -0
  103. package/dist/models/get-bill-response.js +15 -0
  104. package/dist/models/get-bill-run-filter-catalog-response.d.ts +31 -0
  105. package/dist/models/get-bill-run-filter-catalog-response.js +15 -0
  106. package/dist/models/get-bill-run-response.d.ts +25 -0
  107. package/dist/models/get-bill-run-response.js +15 -0
  108. package/dist/models/get-invoice-filter-catalog-response.d.ts +31 -0
  109. package/dist/models/get-invoice-filter-catalog-response.js +15 -0
  110. package/dist/models/get-invoice-response.d.ts +25 -0
  111. package/dist/models/get-invoice-response.js +15 -0
  112. package/dist/models/get-job-download-response.d.ts +25 -0
  113. package/dist/models/get-job-download-response.js +15 -0
  114. package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
  115. package/dist/models/get-job-filter-catalog-response.js +15 -0
  116. package/dist/models/get-job-response.d.ts +25 -0
  117. package/dist/models/get-job-response.js +15 -0
  118. package/dist/models/get-policies-billing-date-filter-catalog-response.d.ts +31 -0
  119. package/dist/models/get-policies-billing-date-filter-catalog-response.js +15 -0
  120. package/dist/models/get-policies-billing-filter-catalog-response.d.ts +31 -0
  121. package/dist/models/get-policies-billing-filter-catalog-response.js +15 -0
  122. package/dist/models/get-policy-billing-response.d.ts +25 -0
  123. package/dist/models/get-policy-billing-response.js +15 -0
  124. package/dist/models/highlight.d.ts +30 -0
  125. package/dist/models/highlight.js +15 -0
  126. package/dist/models/index.d.ts +75 -0
  127. package/dist/models/index.js +91 -0
  128. package/dist/models/invoice-item.d.ts +204 -0
  129. package/dist/models/invoice-item.js +15 -0
  130. package/dist/models/invoice-payment.d.ts +108 -0
  131. package/dist/models/invoice-payment.js +15 -0
  132. package/dist/models/invoice-payments.d.ts +25 -0
  133. package/dist/models/invoice-payments.js +15 -0
  134. package/dist/models/invoice-status.d.ts +54 -0
  135. package/dist/models/invoice-status.js +15 -0
  136. package/dist/models/invoice.d.ts +275 -0
  137. package/dist/models/invoice.js +15 -0
  138. package/dist/models/job-download.d.ts +36 -0
  139. package/dist/models/job-download.js +15 -0
  140. package/dist/models/job-error.d.ts +30 -0
  141. package/dist/models/job-error.js +15 -0
  142. package/dist/models/job-progress.d.ts +36 -0
  143. package/dist/models/job-progress.js +15 -0
  144. package/dist/models/job.d.ts +134 -0
  145. package/dist/models/job.js +15 -0
  146. package/dist/models/list-bill-runs-response.d.ts +37 -0
  147. package/dist/models/list-bill-runs-response.js +15 -0
  148. package/dist/models/list-invoices-response.d.ts +37 -0
  149. package/dist/models/list-invoices-response.js +15 -0
  150. package/dist/models/list-jobs-response.d.ts +37 -0
  151. package/dist/models/list-jobs-response.js +15 -0
  152. package/dist/models/list-policies-billing-dates-response.d.ts +37 -0
  153. package/dist/models/list-policies-billing-dates-response.js +15 -0
  154. package/dist/models/list-policies-billings-response.d.ts +37 -0
  155. package/dist/models/list-policies-billings-response.js +15 -0
  156. package/dist/models/list-request.d.ts +60 -0
  157. package/dist/models/list-request.js +15 -0
  158. package/dist/models/localized-text.d.ts +30 -0
  159. package/dist/models/localized-text.js +15 -0
  160. package/dist/models/match.d.ts +69 -0
  161. package/dist/models/match.js +15 -0
  162. package/dist/models/payment-term.d.ts +42 -0
  163. package/dist/models/payment-term.js +15 -0
  164. package/dist/models/policy-billing.d.ts +139 -0
  165. package/dist/models/policy-billing.js +15 -0
  166. package/dist/models/request-bill-run-request.d.ts +30 -0
  167. package/dist/models/request-bill-run-request.js +15 -0
  168. package/dist/models/request-bill-run-response.d.ts +25 -0
  169. package/dist/models/request-bill-run-response.js +15 -0
  170. package/dist/models/resolved-billing-config.d.ts +130 -0
  171. package/dist/models/resolved-billing-config.js +15 -0
  172. package/dist/models/revert-invoice-request.d.ts +24 -0
  173. package/dist/models/revert-invoice-request.js +15 -0
  174. package/dist/models/revert-invoice-response.d.ts +25 -0
  175. package/dist/models/revert-invoice-response.js +15 -0
  176. package/dist/models/slice.d.ts +30 -0
  177. package/dist/models/slice.js +15 -0
  178. package/dist/models/status.d.ts +37 -0
  179. package/dist/models/status.js +15 -0
  180. package/dist/models/tax.d.ts +30 -0
  181. package/dist/models/tax.js +15 -0
  182. package/dist/models/update-policy-billing-body.d.ts +24 -0
  183. package/dist/models/update-policy-billing-body.js +15 -0
  184. package/dist/models/update-policy-billing-response.d.ts +25 -0
  185. package/dist/models/update-policy-billing-response.js +15 -0
  186. package/git_push.sh +57 -0
  187. package/index.ts +19 -0
  188. package/models/any.ts +32 -0
  189. package/models/bill-item.ts +138 -0
  190. package/models/bill-run.ts +151 -0
  191. package/models/bill.ts +200 -0
  192. package/models/cancel-job-response.ts +31 -0
  193. package/models/create-correction-invoices-request.ts +78 -0
  194. package/models/create-correction-invoices-response.ts +37 -0
  195. package/models/create-detail-export-job-request.ts +60 -0
  196. package/models/create-detail-export-job-response.ts +31 -0
  197. package/models/create-estimated-invoice-for-interval-request.ts +48 -0
  198. package/models/create-estimated-invoice-for-interval-response.ts +31 -0
  199. package/models/create-estimated-invoice-request.ts +42 -0
  200. package/models/create-estimated-invoice-response.ts +31 -0
  201. package/models/create-export-job-request.ts +74 -0
  202. package/models/create-export-job-response.ts +31 -0
  203. package/models/create-initial-invoice-request.ts +78 -0
  204. package/models/create-initial-invoice-response.ts +31 -0
  205. package/models/create-invoice-request.ts +73 -0
  206. package/models/create-invoice-response.ts +31 -0
  207. package/models/create-invoice-status-body.ts +30 -0
  208. package/models/create-invoice-status-response.ts +31 -0
  209. package/models/create-item-request.ts +42 -0
  210. package/models/create-policy-billing-request.ts +48 -0
  211. package/models/create-policy-billing-response.ts +31 -0
  212. package/models/create-recurring-invoice-request.ts +78 -0
  213. package/models/create-recurring-invoice-response.ts +37 -0
  214. package/models/create-termination-invoice-request.ts +66 -0
  215. package/models/create-termination-invoice-response.ts +31 -0
  216. package/models/create-withdraw-invoice-request.ts +54 -0
  217. package/models/create-withdraw-invoice-response.ts +31 -0
  218. package/models/estimate-history-entry.ts +42 -0
  219. package/models/export-column.ts +42 -0
  220. package/models/filter-field.ts +116 -0
  221. package/models/filter-value.ts +43 -0
  222. package/models/get-bill-response.ts +31 -0
  223. package/models/get-bill-run-filter-catalog-response.ts +37 -0
  224. package/models/get-bill-run-response.ts +31 -0
  225. package/models/get-invoice-filter-catalog-response.ts +37 -0
  226. package/models/get-invoice-response.ts +31 -0
  227. package/models/get-job-download-response.ts +31 -0
  228. package/models/get-job-filter-catalog-response.ts +37 -0
  229. package/models/get-job-response.ts +31 -0
  230. package/models/get-policies-billing-date-filter-catalog-response.ts +37 -0
  231. package/models/get-policies-billing-filter-catalog-response.ts +37 -0
  232. package/models/get-policy-billing-response.ts +31 -0
  233. package/models/highlight.ts +36 -0
  234. package/models/index.ts +75 -0
  235. package/models/invoice-item.ts +210 -0
  236. package/models/invoice-payment.ts +114 -0
  237. package/models/invoice-payments.ts +31 -0
  238. package/models/invoice-status.ts +60 -0
  239. package/models/invoice.ts +281 -0
  240. package/models/job-download.ts +42 -0
  241. package/models/job-error.ts +36 -0
  242. package/models/job-progress.ts +42 -0
  243. package/models/job.ts +140 -0
  244. package/models/list-bill-runs-response.ts +43 -0
  245. package/models/list-invoices-response.ts +43 -0
  246. package/models/list-jobs-response.ts +43 -0
  247. package/models/list-policies-billing-dates-response.ts +43 -0
  248. package/models/list-policies-billings-response.ts +43 -0
  249. package/models/list-request.ts +66 -0
  250. package/models/localized-text.ts +36 -0
  251. package/models/match.ts +75 -0
  252. package/models/payment-term.ts +48 -0
  253. package/models/policy-billing.ts +145 -0
  254. package/models/request-bill-run-request.ts +36 -0
  255. package/models/request-bill-run-response.ts +31 -0
  256. package/models/resolved-billing-config.ts +134 -0
  257. package/models/revert-invoice-request.ts +30 -0
  258. package/models/revert-invoice-response.ts +31 -0
  259. package/models/slice.ts +36 -0
  260. package/models/status.ts +43 -0
  261. package/models/tax.ts +36 -0
  262. package/models/update-policy-billing-body.ts +30 -0
  263. package/models/update-policy-billing-response.ts +31 -0
  264. package/package.json +27 -4
  265. package/tsconfig.json +23 -0
@@ -0,0 +1,712 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Billing Service
6
+ * The billing service: bills, bill runs, invoices and policy billings.
7
+ *
8
+ * The version of the OpenAPI document: 2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * JobsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var JobsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This call is not available yet and answers Unimplemented.
101
+ * @summary Cancels a job.
102
+ * @param {string} code The job\&#39;s code.
103
+ * @param {object} body
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ jobServiceCancelJob: function (code, body, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ // verify required parameter 'code' is not null or undefined
113
+ (0, common_1.assertParamExists)('jobServiceCancelJob', 'code', code);
114
+ // verify required parameter 'body' is not null or undefined
115
+ (0, common_1.assertParamExists)('jobServiceCancelJob', 'body', body);
116
+ localVarPath = "/billingservice/v2/jobs/{code}:cancel"
117
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ localVarHeaderParameter['Content-Type'] = 'application/json';
127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
131
+ return [2 /*return*/, {
132
+ url: (0, common_1.toPathString)(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ }];
135
+ });
136
+ });
137
+ },
138
+ /**
139
+ * This call is not available yet and answers Unimplemented.
140
+ * @summary Creates a job that exports one invoice as a workbook.
141
+ * @param {CreateDetailExportJobRequest} body The request of &#x60;CreateDetailExportJob&#x60;.
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ jobServiceCreateDetailExportJob: function (body, options) {
146
+ if (options === void 0) { options = {}; }
147
+ return __awaiter(_this, void 0, void 0, function () {
148
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
149
+ return __generator(this, function (_a) {
150
+ // verify required parameter 'body' is not null or undefined
151
+ (0, common_1.assertParamExists)('jobServiceCreateDetailExportJob', 'body', body);
152
+ localVarPath = "/billingservice/v2/exports:detail";
153
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ baseAccessToken = configuration.accessToken;
157
+ }
158
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
159
+ localVarHeaderParameter = {};
160
+ localVarQueryParameter = {};
161
+ localVarHeaderParameter['Content-Type'] = 'application/json';
162
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
163
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
164
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
165
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
166
+ return [2 /*return*/, {
167
+ url: (0, common_1.toPathString)(localVarUrlObj),
168
+ options: localVarRequestOptions,
169
+ }];
170
+ });
171
+ });
172
+ },
173
+ /**
174
+ * This call is not available yet and answers Unimplemented.
175
+ * @summary Creates a job that exports a billing list as a file.
176
+ * @param {CreateExportJobRequest} body The request of &#x60;CreateExportJob&#x60;.
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ jobServiceCreateExportJob: function (body, options) {
181
+ if (options === void 0) { options = {}; }
182
+ return __awaiter(_this, void 0, void 0, function () {
183
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
184
+ return __generator(this, function (_a) {
185
+ // verify required parameter 'body' is not null or undefined
186
+ (0, common_1.assertParamExists)('jobServiceCreateExportJob', 'body', body);
187
+ localVarPath = "/billingservice/v2/exports";
188
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
189
+ if (configuration) {
190
+ baseOptions = configuration.baseOptions;
191
+ baseAccessToken = configuration.accessToken;
192
+ }
193
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
194
+ localVarHeaderParameter = {};
195
+ localVarQueryParameter = {};
196
+ localVarHeaderParameter['Content-Type'] = 'application/json';
197
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
198
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
200
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
201
+ return [2 /*return*/, {
202
+ url: (0, common_1.toPathString)(localVarUrlObj),
203
+ options: localVarRequestOptions,
204
+ }];
205
+ });
206
+ });
207
+ },
208
+ /**
209
+ * This call is not available yet and answers Unimplemented.
210
+ * @summary Returns one of the caller\'s jobs.
211
+ * @param {string} code The job\&#39;s code.
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ jobServiceGetJob: function (code, options) {
216
+ if (options === void 0) { options = {}; }
217
+ return __awaiter(_this, void 0, void 0, function () {
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
219
+ return __generator(this, function (_a) {
220
+ // verify required parameter 'code' is not null or undefined
221
+ (0, common_1.assertParamExists)('jobServiceGetJob', 'code', code);
222
+ localVarPath = "/billingservice/v2/jobs/{code}"
223
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
224
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
225
+ if (configuration) {
226
+ baseOptions = configuration.baseOptions;
227
+ baseAccessToken = configuration.accessToken;
228
+ }
229
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
230
+ localVarHeaderParameter = {};
231
+ localVarQueryParameter = {};
232
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
233
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
235
+ return [2 /*return*/, {
236
+ url: (0, common_1.toPathString)(localVarUrlObj),
237
+ options: localVarRequestOptions,
238
+ }];
239
+ });
240
+ });
241
+ },
242
+ /**
243
+ * This call is not available yet and answers Unimplemented.
244
+ * @summary Returns a signed link to the job\'s file.
245
+ * @param {string} code The job\&#39;s code.
246
+ * @param {string} [artifact] The file to download: &#x60;output&#x60;, the export file. It is the default and the only file a billing job has.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ jobServiceGetJobDownload: function (code, artifact, options) {
251
+ if (options === void 0) { options = {}; }
252
+ return __awaiter(_this, void 0, void 0, function () {
253
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
254
+ return __generator(this, function (_a) {
255
+ // verify required parameter 'code' is not null or undefined
256
+ (0, common_1.assertParamExists)('jobServiceGetJobDownload', 'code', code);
257
+ localVarPath = "/billingservice/v2/jobs/{code}:download"
258
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
259
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
260
+ if (configuration) {
261
+ baseOptions = configuration.baseOptions;
262
+ baseAccessToken = configuration.accessToken;
263
+ }
264
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
265
+ localVarHeaderParameter = {};
266
+ localVarQueryParameter = {};
267
+ if (artifact !== undefined) {
268
+ localVarQueryParameter['artifact'] = artifact;
269
+ }
270
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
271
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
272
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
273
+ return [2 /*return*/, {
274
+ url: (0, common_1.toPathString)(localVarUrlObj),
275
+ options: localVarRequestOptions,
276
+ }];
277
+ });
278
+ });
279
+ },
280
+ /**
281
+ * This call is not available yet and answers Unimplemented.
282
+ * @summary Returns the filter catalog of the job list.
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ jobServiceGetJobFilterCatalog: function (options) {
287
+ if (options === void 0) { options = {}; }
288
+ return __awaiter(_this, void 0, void 0, function () {
289
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
290
+ return __generator(this, function (_a) {
291
+ localVarPath = "/billingservice/v2/jobs:filterCatalog";
292
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
293
+ if (configuration) {
294
+ baseOptions = configuration.baseOptions;
295
+ baseAccessToken = configuration.accessToken;
296
+ }
297
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
298
+ localVarHeaderParameter = {};
299
+ localVarQueryParameter = {};
300
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
301
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
302
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
303
+ return [2 /*return*/, {
304
+ url: (0, common_1.toPathString)(localVarUrlObj),
305
+ options: localVarRequestOptions,
306
+ }];
307
+ });
308
+ });
309
+ },
310
+ /**
311
+ * This call is not available yet and answers Unimplemented.
312
+ * @summary Lists the caller\'s jobs.
313
+ * @param {number} [pageSize]
314
+ * @param {string} [pageToken]
315
+ * @param {string} [filter]
316
+ * @param {string} [search]
317
+ * @param {string} [order]
318
+ * @param {string} [expand]
319
+ * @param {string} [filters]
320
+ * @param {*} [options] Override http request option.
321
+ * @throws {RequiredError}
322
+ */
323
+ jobServiceListJobs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
324
+ if (options === void 0) { options = {}; }
325
+ return __awaiter(_this, void 0, void 0, function () {
326
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
327
+ return __generator(this, function (_a) {
328
+ localVarPath = "/billingservice/v2/jobs";
329
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
330
+ if (configuration) {
331
+ baseOptions = configuration.baseOptions;
332
+ baseAccessToken = configuration.accessToken;
333
+ }
334
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
335
+ localVarHeaderParameter = {};
336
+ localVarQueryParameter = {};
337
+ if (pageSize !== undefined) {
338
+ localVarQueryParameter['pageSize'] = pageSize;
339
+ }
340
+ if (pageToken !== undefined) {
341
+ localVarQueryParameter['pageToken'] = pageToken;
342
+ }
343
+ if (filter !== undefined) {
344
+ localVarQueryParameter['filter'] = filter;
345
+ }
346
+ if (search !== undefined) {
347
+ localVarQueryParameter['search'] = search;
348
+ }
349
+ if (order !== undefined) {
350
+ localVarQueryParameter['order'] = order;
351
+ }
352
+ if (expand !== undefined) {
353
+ localVarQueryParameter['expand'] = expand;
354
+ }
355
+ if (filters !== undefined) {
356
+ localVarQueryParameter['filters'] = filters;
357
+ }
358
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
359
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
361
+ return [2 /*return*/, {
362
+ url: (0, common_1.toPathString)(localVarUrlObj),
363
+ options: localVarRequestOptions,
364
+ }];
365
+ });
366
+ });
367
+ },
368
+ };
369
+ };
370
+ exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
371
+ /**
372
+ * JobsApi - functional programming interface
373
+ * @export
374
+ */
375
+ var JobsApiFp = function (configuration) {
376
+ var localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
377
+ return {
378
+ /**
379
+ * This call is not available yet and answers Unimplemented.
380
+ * @summary Cancels a job.
381
+ * @param {string} code The job\&#39;s code.
382
+ * @param {object} body
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ jobServiceCancelJob: function (code, body, options) {
387
+ return __awaiter(this, void 0, void 0, function () {
388
+ var localVarAxiosArgs;
389
+ return __generator(this, function (_a) {
390
+ switch (_a.label) {
391
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceCancelJob(code, body, options)];
392
+ case 1:
393
+ localVarAxiosArgs = _a.sent();
394
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
395
+ }
396
+ });
397
+ });
398
+ },
399
+ /**
400
+ * This call is not available yet and answers Unimplemented.
401
+ * @summary Creates a job that exports one invoice as a workbook.
402
+ * @param {CreateDetailExportJobRequest} body The request of &#x60;CreateDetailExportJob&#x60;.
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ jobServiceCreateDetailExportJob: function (body, options) {
407
+ return __awaiter(this, void 0, void 0, function () {
408
+ var localVarAxiosArgs;
409
+ return __generator(this, function (_a) {
410
+ switch (_a.label) {
411
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceCreateDetailExportJob(body, options)];
412
+ case 1:
413
+ localVarAxiosArgs = _a.sent();
414
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
415
+ }
416
+ });
417
+ });
418
+ },
419
+ /**
420
+ * This call is not available yet and answers Unimplemented.
421
+ * @summary Creates a job that exports a billing list as a file.
422
+ * @param {CreateExportJobRequest} body The request of &#x60;CreateExportJob&#x60;.
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ jobServiceCreateExportJob: function (body, options) {
427
+ return __awaiter(this, void 0, void 0, function () {
428
+ var localVarAxiosArgs;
429
+ return __generator(this, function (_a) {
430
+ switch (_a.label) {
431
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceCreateExportJob(body, options)];
432
+ case 1:
433
+ localVarAxiosArgs = _a.sent();
434
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
435
+ }
436
+ });
437
+ });
438
+ },
439
+ /**
440
+ * This call is not available yet and answers Unimplemented.
441
+ * @summary Returns one of the caller\'s jobs.
442
+ * @param {string} code The job\&#39;s code.
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ jobServiceGetJob: function (code, options) {
447
+ return __awaiter(this, void 0, void 0, function () {
448
+ var localVarAxiosArgs;
449
+ return __generator(this, function (_a) {
450
+ switch (_a.label) {
451
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceGetJob(code, options)];
452
+ case 1:
453
+ localVarAxiosArgs = _a.sent();
454
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
455
+ }
456
+ });
457
+ });
458
+ },
459
+ /**
460
+ * This call is not available yet and answers Unimplemented.
461
+ * @summary Returns a signed link to the job\'s file.
462
+ * @param {string} code The job\&#39;s code.
463
+ * @param {string} [artifact] The file to download: &#x60;output&#x60;, the export file. It is the default and the only file a billing job has.
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ jobServiceGetJobDownload: function (code, artifact, options) {
468
+ return __awaiter(this, void 0, void 0, function () {
469
+ var localVarAxiosArgs;
470
+ return __generator(this, function (_a) {
471
+ switch (_a.label) {
472
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceGetJobDownload(code, artifact, options)];
473
+ case 1:
474
+ localVarAxiosArgs = _a.sent();
475
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
476
+ }
477
+ });
478
+ });
479
+ },
480
+ /**
481
+ * This call is not available yet and answers Unimplemented.
482
+ * @summary Returns the filter catalog of the job list.
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
486
+ jobServiceGetJobFilterCatalog: function (options) {
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ var localVarAxiosArgs;
489
+ return __generator(this, function (_a) {
490
+ switch (_a.label) {
491
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceGetJobFilterCatalog(options)];
492
+ case 1:
493
+ localVarAxiosArgs = _a.sent();
494
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
495
+ }
496
+ });
497
+ });
498
+ },
499
+ /**
500
+ * This call is not available yet and answers Unimplemented.
501
+ * @summary Lists the caller\'s jobs.
502
+ * @param {number} [pageSize]
503
+ * @param {string} [pageToken]
504
+ * @param {string} [filter]
505
+ * @param {string} [search]
506
+ * @param {string} [order]
507
+ * @param {string} [expand]
508
+ * @param {string} [filters]
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ */
512
+ jobServiceListJobs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
513
+ return __awaiter(this, void 0, void 0, function () {
514
+ var localVarAxiosArgs;
515
+ return __generator(this, function (_a) {
516
+ switch (_a.label) {
517
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.jobServiceListJobs(pageSize, pageToken, filter, search, order, expand, filters, options)];
518
+ case 1:
519
+ localVarAxiosArgs = _a.sent();
520
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
521
+ }
522
+ });
523
+ });
524
+ },
525
+ };
526
+ };
527
+ exports.JobsApiFp = JobsApiFp;
528
+ /**
529
+ * JobsApi - factory interface
530
+ * @export
531
+ */
532
+ var JobsApiFactory = function (configuration, basePath, axios) {
533
+ var localVarFp = (0, exports.JobsApiFp)(configuration);
534
+ return {
535
+ /**
536
+ * This call is not available yet and answers Unimplemented.
537
+ * @summary Cancels a job.
538
+ * @param {string} code The job\&#39;s code.
539
+ * @param {object} body
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ jobServiceCancelJob: function (code, body, options) {
544
+ return localVarFp.jobServiceCancelJob(code, body, options).then(function (request) { return request(axios, basePath); });
545
+ },
546
+ /**
547
+ * This call is not available yet and answers Unimplemented.
548
+ * @summary Creates a job that exports one invoice as a workbook.
549
+ * @param {CreateDetailExportJobRequest} body The request of &#x60;CreateDetailExportJob&#x60;.
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ jobServiceCreateDetailExportJob: function (body, options) {
554
+ return localVarFp.jobServiceCreateDetailExportJob(body, options).then(function (request) { return request(axios, basePath); });
555
+ },
556
+ /**
557
+ * This call is not available yet and answers Unimplemented.
558
+ * @summary Creates a job that exports a billing list as a file.
559
+ * @param {CreateExportJobRequest} body The request of &#x60;CreateExportJob&#x60;.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ jobServiceCreateExportJob: function (body, options) {
564
+ return localVarFp.jobServiceCreateExportJob(body, options).then(function (request) { return request(axios, basePath); });
565
+ },
566
+ /**
567
+ * This call is not available yet and answers Unimplemented.
568
+ * @summary Returns one of the caller\'s jobs.
569
+ * @param {string} code The job\&#39;s code.
570
+ * @param {*} [options] Override http request option.
571
+ * @throws {RequiredError}
572
+ */
573
+ jobServiceGetJob: function (code, options) {
574
+ return localVarFp.jobServiceGetJob(code, options).then(function (request) { return request(axios, basePath); });
575
+ },
576
+ /**
577
+ * This call is not available yet and answers Unimplemented.
578
+ * @summary Returns a signed link to the job\'s file.
579
+ * @param {string} code The job\&#39;s code.
580
+ * @param {string} [artifact] The file to download: &#x60;output&#x60;, the export file. It is the default and the only file a billing job has.
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ jobServiceGetJobDownload: function (code, artifact, options) {
585
+ return localVarFp.jobServiceGetJobDownload(code, artifact, options).then(function (request) { return request(axios, basePath); });
586
+ },
587
+ /**
588
+ * This call is not available yet and answers Unimplemented.
589
+ * @summary Returns the filter catalog of the job list.
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ */
593
+ jobServiceGetJobFilterCatalog: function (options) {
594
+ return localVarFp.jobServiceGetJobFilterCatalog(options).then(function (request) { return request(axios, basePath); });
595
+ },
596
+ /**
597
+ * This call is not available yet and answers Unimplemented.
598
+ * @summary Lists the caller\'s jobs.
599
+ * @param {number} [pageSize]
600
+ * @param {string} [pageToken]
601
+ * @param {string} [filter]
602
+ * @param {string} [search]
603
+ * @param {string} [order]
604
+ * @param {string} [expand]
605
+ * @param {string} [filters]
606
+ * @param {*} [options] Override http request option.
607
+ * @throws {RequiredError}
608
+ */
609
+ jobServiceListJobs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
610
+ return localVarFp.jobServiceListJobs(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
611
+ },
612
+ };
613
+ };
614
+ exports.JobsApiFactory = JobsApiFactory;
615
+ /**
616
+ * JobsApi - object-oriented interface
617
+ * @export
618
+ * @class JobsApi
619
+ * @extends {BaseAPI}
620
+ */
621
+ var JobsApi = /** @class */ (function (_super) {
622
+ __extends(JobsApi, _super);
623
+ function JobsApi() {
624
+ return _super !== null && _super.apply(this, arguments) || this;
625
+ }
626
+ /**
627
+ * This call is not available yet and answers Unimplemented.
628
+ * @summary Cancels a job.
629
+ * @param {JobsApiJobServiceCancelJobRequest} requestParameters Request parameters.
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ * @memberof JobsApi
633
+ */
634
+ JobsApi.prototype.jobServiceCancelJob = function (requestParameters, options) {
635
+ var _this = this;
636
+ return (0, exports.JobsApiFp)(this.configuration).jobServiceCancelJob(requestParameters.code, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
637
+ };
638
+ /**
639
+ * This call is not available yet and answers Unimplemented.
640
+ * @summary Creates a job that exports one invoice as a workbook.
641
+ * @param {JobsApiJobServiceCreateDetailExportJobRequest} requestParameters Request parameters.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ * @memberof JobsApi
645
+ */
646
+ JobsApi.prototype.jobServiceCreateDetailExportJob = function (requestParameters, options) {
647
+ var _this = this;
648
+ return (0, exports.JobsApiFp)(this.configuration).jobServiceCreateDetailExportJob(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
649
+ };
650
+ /**
651
+ * This call is not available yet and answers Unimplemented.
652
+ * @summary Creates a job that exports a billing list as a file.
653
+ * @param {JobsApiJobServiceCreateExportJobRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ * @memberof JobsApi
657
+ */
658
+ JobsApi.prototype.jobServiceCreateExportJob = function (requestParameters, options) {
659
+ var _this = this;
660
+ return (0, exports.JobsApiFp)(this.configuration).jobServiceCreateExportJob(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
661
+ };
662
+ /**
663
+ * This call is not available yet and answers Unimplemented.
664
+ * @summary Returns one of the caller\'s jobs.
665
+ * @param {JobsApiJobServiceGetJobRequest} requestParameters Request parameters.
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ * @memberof JobsApi
669
+ */
670
+ JobsApi.prototype.jobServiceGetJob = function (requestParameters, options) {
671
+ var _this = this;
672
+ return (0, exports.JobsApiFp)(this.configuration).jobServiceGetJob(requestParameters.code, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
673
+ };
674
+ /**
675
+ * This call is not available yet and answers Unimplemented.
676
+ * @summary Returns a signed link to the job\'s file.
677
+ * @param {JobsApiJobServiceGetJobDownloadRequest} requestParameters Request parameters.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ * @memberof JobsApi
681
+ */
682
+ JobsApi.prototype.jobServiceGetJobDownload = function (requestParameters, options) {
683
+ var _this = this;
684
+ return (0, exports.JobsApiFp)(this.configuration).jobServiceGetJobDownload(requestParameters.code, requestParameters.artifact, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
685
+ };
686
+ /**
687
+ * This call is not available yet and answers Unimplemented.
688
+ * @summary Returns the filter catalog of the job list.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ * @memberof JobsApi
692
+ */
693
+ JobsApi.prototype.jobServiceGetJobFilterCatalog = function (options) {
694
+ var _this = this;
695
+ return (0, exports.JobsApiFp)(this.configuration).jobServiceGetJobFilterCatalog(this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
696
+ };
697
+ /**
698
+ * This call is not available yet and answers Unimplemented.
699
+ * @summary Lists the caller\'s jobs.
700
+ * @param {JobsApiJobServiceListJobsRequest} requestParameters Request parameters.
701
+ * @param {*} [options] Override http request option.
702
+ * @throws {RequiredError}
703
+ * @memberof JobsApi
704
+ */
705
+ JobsApi.prototype.jobServiceListJobs = function (requestParameters, options) {
706
+ var _this = this;
707
+ if (requestParameters === void 0) { requestParameters = {}; }
708
+ return (0, exports.JobsApiFp)(this.configuration).jobServiceListJobs(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
709
+ };
710
+ return JobsApi;
711
+ }(base_1.BaseAPI));
712
+ exports.JobsApi = JobsApi;