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