@emilgroup/billing-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +37 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/correction-invoices-api.ts +161 -0
- package/api/estimated-invoices-api.ts +264 -0
- package/api/initial-invoices-api.ts +161 -0
- package/api/invoices-api.ts +398 -0
- package/api/recurring-invoices-api.ts +161 -0
- package/api.ts +40 -0
- package/base.ts +247 -0
- package/common.ts +198 -0
- package/configuration.ts +101 -0
- package/dist/api/correction-invoices-api.d.ts +93 -0
- package/dist/api/correction-invoices-api.js +220 -0
- package/dist/api/estimated-invoices-api.d.ts +146 -0
- package/dist/api/estimated-invoices-api.js +309 -0
- package/dist/api/initial-invoices-api.d.ts +93 -0
- package/dist/api/initial-invoices-api.js +220 -0
- package/dist/api/invoices-api.d.ts +234 -0
- package/dist/api/invoices-api.js +369 -0
- package/dist/api/recurring-invoices-api.d.ts +93 -0
- package/dist/api/recurring-invoices-api.js +220 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +40 -0
- package/dist/base.d.ts +72 -0
- package/dist/base.js +293 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/create-correction-invoices-response-class.d.ts +25 -0
- package/dist/models/create-correction-invoices-response-class.js +15 -0
- package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +35 -0
- package/dist/models/create-custom-estimated-invoice-request-dto.js +20 -0
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +24 -0
- package/dist/models/create-custom-estimated-invoice-response-class.js +15 -0
- package/dist/models/create-estimated-invoice-request-dto.d.ts +31 -0
- package/dist/models/create-estimated-invoice-request-dto.js +15 -0
- package/dist/models/create-estimated-invoice-response-class.d.ts +31 -0
- package/dist/models/create-estimated-invoice-response-class.js +15 -0
- package/dist/models/create-invoice-request-dto.d.ts +75 -0
- package/dist/models/create-invoice-request-dto.js +24 -0
- package/dist/models/create-invoice-response-class.d.ts +25 -0
- package/dist/models/create-invoice-response-class.js +15 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +35 -0
- package/dist/models/invoice-class.d.ts +121 -0
- package/dist/models/invoice-class.js +15 -0
- package/dist/models/invoice-item-class.d.ts +108 -0
- package/dist/models/invoice-item-class.js +15 -0
- package/dist/models/list-invoices-response-class.d.ts +31 -0
- package/dist/models/list-invoices-response-class.js +15 -0
- package/dist/models/list-policies-billing-dates-response-class.d.ts +30 -0
- package/dist/models/list-policies-billing-dates-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/policy-dto.d.ts +85 -0
- package/dist/models/policy-dto.js +15 -0
- package/dist/models/policy-object-dto.d.ts +42 -0
- package/dist/models/policy-object-dto.js +15 -0
- package/dist/models/policy-premium-dto.d.ts +43 -0
- package/dist/models/policy-premium-dto.js +15 -0
- package/dist/models/policy-premium-item-dto.d.ts +49 -0
- package/dist/models/policy-premium-item-dto.js +15 -0
- package/dist/models/policy-version-dto.d.ts +55 -0
- package/dist/models/policy-version-dto.js +15 -0
- package/dist/models/premium-formula-dto.d.ts +72 -0
- package/dist/models/premium-formula-dto.js +15 -0
- package/dist/models/timeslice-dto.d.ts +62 -0
- package/dist/models/timeslice-dto.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-correction-invoices-response-class.ts +31 -0
- package/models/create-custom-estimated-invoice-request-dto.ts +44 -0
- package/models/create-custom-estimated-invoice-response-class.ts +30 -0
- package/models/create-estimated-invoice-request-dto.ts +37 -0
- package/models/create-estimated-invoice-response-class.ts +37 -0
- package/models/create-invoice-request-dto.ts +84 -0
- package/models/create-invoice-response-class.ts +31 -0
- package/models/index.ts +19 -0
- package/models/invoice-class.ts +127 -0
- package/models/invoice-item-class.ts +114 -0
- package/models/list-invoices-response-class.ts +37 -0
- package/models/list-policies-billing-dates-response-class.ts +36 -0
- package/models/list-request-dto.ts +60 -0
- package/models/policy-dto.ts +91 -0
- package/models/policy-object-dto.ts +48 -0
- package/models/policy-premium-dto.ts +49 -0
- package/models/policy-premium-item-dto.ts +55 -0
- package/models/policy-version-dto.ts +61 -0
- package/models/premium-formula-dto.ts +78 -0
- package/models/timeslice-dto.ts +68 -0
- package/package.json +27 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL BillingService
|
|
3
|
+
* The EMIL BillingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ListInvoicesResponseClass } from '../models';
|
|
16
|
+
import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* InvoicesApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param {string} [authorization] Bearer Token
|
|
25
|
+
* @param {number} [pageSize] Page size
|
|
26
|
+
* @param {string} [pageToken] Page token
|
|
27
|
+
* @param {string} [filter] List filter
|
|
28
|
+
* @param {string} [search] Search query
|
|
29
|
+
* @param {string} [order] Ordering criteria
|
|
30
|
+
* @param {string} [expand] Extra fields to fetch
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
listInvoices: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {number} [pageSize] Page size
|
|
39
|
+
* @param {string} [pageToken] Page token
|
|
40
|
+
* @param {string} [filter] List filter
|
|
41
|
+
* @param {string} [search] Search query
|
|
42
|
+
* @param {string} [order] Ordering criteria
|
|
43
|
+
* @param {string} [expand] Extra fields to fetch
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
listPoliciesBillingDates: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* InvoicesApi - functional programming interface
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @param {string} [authorization] Bearer Token
|
|
57
|
+
* @param {number} [pageSize] Page size
|
|
58
|
+
* @param {string} [pageToken] Page token
|
|
59
|
+
* @param {string} [filter] List filter
|
|
60
|
+
* @param {string} [search] Search query
|
|
61
|
+
* @param {string} [order] Ordering criteria
|
|
62
|
+
* @param {string} [expand] Extra fields to fetch
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
listInvoices(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @param {string} [authorization] Bearer Token
|
|
70
|
+
* @param {number} [pageSize] Page size
|
|
71
|
+
* @param {string} [pageToken] Page token
|
|
72
|
+
* @param {string} [filter] List filter
|
|
73
|
+
* @param {string} [search] Search query
|
|
74
|
+
* @param {string} [order] Ordering criteria
|
|
75
|
+
* @param {string} [expand] Extra fields to fetch
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>>;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* InvoicesApi - factory interface
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export declare const InvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @param {string} [authorization] Bearer Token
|
|
89
|
+
* @param {number} [pageSize] Page size
|
|
90
|
+
* @param {string} [pageToken] Page token
|
|
91
|
+
* @param {string} [filter] List filter
|
|
92
|
+
* @param {string} [search] Search query
|
|
93
|
+
* @param {string} [order] Ordering criteria
|
|
94
|
+
* @param {string} [expand] Extra fields to fetch
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
listInvoices(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @param {string} [authorization] Bearer Token
|
|
102
|
+
* @param {number} [pageSize] Page size
|
|
103
|
+
* @param {string} [pageToken] Page token
|
|
104
|
+
* @param {string} [filter] List filter
|
|
105
|
+
* @param {string} [search] Search query
|
|
106
|
+
* @param {string} [order] Ordering criteria
|
|
107
|
+
* @param {string} [expand] Extra fields to fetch
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass>;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Request parameters for listInvoices operation in InvoicesApi.
|
|
115
|
+
* @export
|
|
116
|
+
* @interface InvoicesApiListInvoicesRequest
|
|
117
|
+
*/
|
|
118
|
+
export interface InvoicesApiListInvoicesRequest {
|
|
119
|
+
/**
|
|
120
|
+
* Bearer Token
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof InvoicesApiListInvoices
|
|
123
|
+
*/
|
|
124
|
+
readonly authorization?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Page size
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof InvoicesApiListInvoices
|
|
129
|
+
*/
|
|
130
|
+
readonly pageSize?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Page token
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof InvoicesApiListInvoices
|
|
135
|
+
*/
|
|
136
|
+
readonly pageToken?: string;
|
|
137
|
+
/**
|
|
138
|
+
* List filter
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof InvoicesApiListInvoices
|
|
141
|
+
*/
|
|
142
|
+
readonly filter?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Search query
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof InvoicesApiListInvoices
|
|
147
|
+
*/
|
|
148
|
+
readonly search?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Ordering criteria
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @memberof InvoicesApiListInvoices
|
|
153
|
+
*/
|
|
154
|
+
readonly order?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Extra fields to fetch
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof InvoicesApiListInvoices
|
|
159
|
+
*/
|
|
160
|
+
readonly expand?: string;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Request parameters for listPoliciesBillingDates operation in InvoicesApi.
|
|
164
|
+
* @export
|
|
165
|
+
* @interface InvoicesApiListPoliciesBillingDatesRequest
|
|
166
|
+
*/
|
|
167
|
+
export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
168
|
+
/**
|
|
169
|
+
* Bearer Token
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
172
|
+
*/
|
|
173
|
+
readonly authorization?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Page size
|
|
176
|
+
* @type {number}
|
|
177
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
178
|
+
*/
|
|
179
|
+
readonly pageSize?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Page token
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
184
|
+
*/
|
|
185
|
+
readonly pageToken?: string;
|
|
186
|
+
/**
|
|
187
|
+
* List filter
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
190
|
+
*/
|
|
191
|
+
readonly filter?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Search query
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
196
|
+
*/
|
|
197
|
+
readonly search?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Ordering criteria
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
202
|
+
*/
|
|
203
|
+
readonly order?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Extra fields to fetch
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
208
|
+
*/
|
|
209
|
+
readonly expand?: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* InvoicesApi - object-oriented interface
|
|
213
|
+
* @export
|
|
214
|
+
* @class InvoicesApi
|
|
215
|
+
* @extends {BaseAPI}
|
|
216
|
+
*/
|
|
217
|
+
export declare class InvoicesApi extends BaseAPI {
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
* @memberof InvoicesApi
|
|
224
|
+
*/
|
|
225
|
+
listInvoices(requestParameters?: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any>>;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
* @memberof InvoicesApi
|
|
232
|
+
*/
|
|
233
|
+
listPoliciesBillingDates(requestParameters?: InvoicesApiListPoliciesBillingDatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesBillingDatesResponseClass, any>>;
|
|
234
|
+
}
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL BillingService
|
|
6
|
+
* The EMIL BillingService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.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 (_) 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.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = 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
|
+
/**
|
|
89
|
+
* InvoicesApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @param {string} [authorization] Bearer Token
|
|
98
|
+
* @param {number} [pageSize] Page size
|
|
99
|
+
* @param {string} [pageToken] Page token
|
|
100
|
+
* @param {string} [filter] List filter
|
|
101
|
+
* @param {string} [search] Search query
|
|
102
|
+
* @param {string} [order] Ordering criteria
|
|
103
|
+
* @param {string} [expand] Extra fields to fetch
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, 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
|
+
switch (_a.label) {
|
|
113
|
+
case 0:
|
|
114
|
+
localVarPath = "/billingservice/v1/invoices";
|
|
115
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
116
|
+
if (configuration) {
|
|
117
|
+
baseOptions = configuration.baseOptions;
|
|
118
|
+
baseAccessToken = configuration.accessToken;
|
|
119
|
+
}
|
|
120
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
121
|
+
localVarHeaderParameter = {};
|
|
122
|
+
localVarQueryParameter = {};
|
|
123
|
+
// authentication bearer required
|
|
124
|
+
// http bearer authentication required
|
|
125
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
126
|
+
case 1:
|
|
127
|
+
// authentication bearer required
|
|
128
|
+
// http bearer authentication required
|
|
129
|
+
_a.sent();
|
|
130
|
+
if (pageSize !== undefined) {
|
|
131
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
132
|
+
}
|
|
133
|
+
if (pageToken !== undefined) {
|
|
134
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
135
|
+
}
|
|
136
|
+
if (filter !== undefined) {
|
|
137
|
+
localVarQueryParameter['filter'] = filter;
|
|
138
|
+
}
|
|
139
|
+
if (search !== undefined) {
|
|
140
|
+
localVarQueryParameter['search'] = search;
|
|
141
|
+
}
|
|
142
|
+
if (order !== undefined) {
|
|
143
|
+
localVarQueryParameter['order'] = order;
|
|
144
|
+
}
|
|
145
|
+
if (expand !== undefined) {
|
|
146
|
+
localVarQueryParameter['expand'] = expand;
|
|
147
|
+
}
|
|
148
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
149
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
150
|
+
}
|
|
151
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
152
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
154
|
+
return [2 /*return*/, {
|
|
155
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
}];
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @param {string} [authorization] Bearer Token
|
|
165
|
+
* @param {number} [pageSize] Page size
|
|
166
|
+
* @param {string} [pageToken] Page token
|
|
167
|
+
* @param {string} [filter] List filter
|
|
168
|
+
* @param {string} [search] Search query
|
|
169
|
+
* @param {string} [order] Ordering criteria
|
|
170
|
+
* @param {string} [expand] Extra fields to fetch
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
*/
|
|
174
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
175
|
+
if (options === void 0) { options = {}; }
|
|
176
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
177
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
178
|
+
return __generator(this, function (_a) {
|
|
179
|
+
switch (_a.label) {
|
|
180
|
+
case 0:
|
|
181
|
+
localVarPath = "/billingservice/v1/invoices/policies-billing-dates";
|
|
182
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
183
|
+
if (configuration) {
|
|
184
|
+
baseOptions = configuration.baseOptions;
|
|
185
|
+
baseAccessToken = configuration.accessToken;
|
|
186
|
+
}
|
|
187
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
188
|
+
localVarHeaderParameter = {};
|
|
189
|
+
localVarQueryParameter = {};
|
|
190
|
+
// authentication bearer required
|
|
191
|
+
// http bearer authentication required
|
|
192
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
193
|
+
case 1:
|
|
194
|
+
// authentication bearer required
|
|
195
|
+
// http bearer authentication required
|
|
196
|
+
_a.sent();
|
|
197
|
+
if (pageSize !== undefined) {
|
|
198
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
199
|
+
}
|
|
200
|
+
if (pageToken !== undefined) {
|
|
201
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
202
|
+
}
|
|
203
|
+
if (filter !== undefined) {
|
|
204
|
+
localVarQueryParameter['filter'] = filter;
|
|
205
|
+
}
|
|
206
|
+
if (search !== undefined) {
|
|
207
|
+
localVarQueryParameter['search'] = search;
|
|
208
|
+
}
|
|
209
|
+
if (order !== undefined) {
|
|
210
|
+
localVarQueryParameter['order'] = order;
|
|
211
|
+
}
|
|
212
|
+
if (expand !== undefined) {
|
|
213
|
+
localVarQueryParameter['expand'] = expand;
|
|
214
|
+
}
|
|
215
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
216
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
217
|
+
}
|
|
218
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
219
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
220
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
221
|
+
return [2 /*return*/, {
|
|
222
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
223
|
+
options: localVarRequestOptions,
|
|
224
|
+
}];
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
exports.InvoicesApiAxiosParamCreator = InvoicesApiAxiosParamCreator;
|
|
232
|
+
/**
|
|
233
|
+
* InvoicesApi - functional programming interface
|
|
234
|
+
* @export
|
|
235
|
+
*/
|
|
236
|
+
var InvoicesApiFp = function (configuration) {
|
|
237
|
+
var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
|
|
238
|
+
return {
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @param {string} [authorization] Bearer Token
|
|
242
|
+
* @param {number} [pageSize] Page size
|
|
243
|
+
* @param {string} [pageToken] Page token
|
|
244
|
+
* @param {string} [filter] List filter
|
|
245
|
+
* @param {string} [search] Search query
|
|
246
|
+
* @param {string} [order] Ordering criteria
|
|
247
|
+
* @param {string} [expand] Extra fields to fetch
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
253
|
+
var localVarAxiosArgs;
|
|
254
|
+
return __generator(this, function (_a) {
|
|
255
|
+
switch (_a.label) {
|
|
256
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
257
|
+
case 1:
|
|
258
|
+
localVarAxiosArgs = _a.sent();
|
|
259
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @param {string} [authorization] Bearer Token
|
|
267
|
+
* @param {number} [pageSize] Page size
|
|
268
|
+
* @param {string} [pageToken] Page token
|
|
269
|
+
* @param {string} [filter] List filter
|
|
270
|
+
* @param {string} [search] Search query
|
|
271
|
+
* @param {string} [order] Ordering criteria
|
|
272
|
+
* @param {string} [expand] Extra fields to fetch
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
278
|
+
var localVarAxiosArgs;
|
|
279
|
+
return __generator(this, function (_a) {
|
|
280
|
+
switch (_a.label) {
|
|
281
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
282
|
+
case 1:
|
|
283
|
+
localVarAxiosArgs = _a.sent();
|
|
284
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
},
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
exports.InvoicesApiFp = InvoicesApiFp;
|
|
292
|
+
/**
|
|
293
|
+
* InvoicesApi - factory interface
|
|
294
|
+
* @export
|
|
295
|
+
*/
|
|
296
|
+
var InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
297
|
+
var localVarFp = (0, exports.InvoicesApiFp)(configuration);
|
|
298
|
+
return {
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
* @param {string} [authorization] Bearer Token
|
|
302
|
+
* @param {number} [pageSize] Page size
|
|
303
|
+
* @param {string} [pageToken] Page token
|
|
304
|
+
* @param {string} [filter] List filter
|
|
305
|
+
* @param {string} [search] Search query
|
|
306
|
+
* @param {string} [order] Ordering criteria
|
|
307
|
+
* @param {string} [expand] Extra fields to fetch
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
312
|
+
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
313
|
+
},
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @param {string} [authorization] Bearer Token
|
|
317
|
+
* @param {number} [pageSize] Page size
|
|
318
|
+
* @param {string} [pageToken] Page token
|
|
319
|
+
* @param {string} [filter] List filter
|
|
320
|
+
* @param {string} [search] Search query
|
|
321
|
+
* @param {string} [order] Ordering criteria
|
|
322
|
+
* @param {string} [expand] Extra fields to fetch
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
327
|
+
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
328
|
+
},
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
exports.InvoicesApiFactory = InvoicesApiFactory;
|
|
332
|
+
/**
|
|
333
|
+
* InvoicesApi - object-oriented interface
|
|
334
|
+
* @export
|
|
335
|
+
* @class InvoicesApi
|
|
336
|
+
* @extends {BaseAPI}
|
|
337
|
+
*/
|
|
338
|
+
var InvoicesApi = /** @class */ (function (_super) {
|
|
339
|
+
__extends(InvoicesApi, _super);
|
|
340
|
+
function InvoicesApi() {
|
|
341
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
* @memberof InvoicesApi
|
|
349
|
+
*/
|
|
350
|
+
InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
|
|
351
|
+
var _this = this;
|
|
352
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
353
|
+
return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
* @memberof InvoicesApi
|
|
361
|
+
*/
|
|
362
|
+
InvoicesApi.prototype.listPoliciesBillingDates = function (requestParameters, options) {
|
|
363
|
+
var _this = this;
|
|
364
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
365
|
+
return (0, exports.InvoicesApiFp)(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
366
|
+
};
|
|
367
|
+
return InvoicesApi;
|
|
368
|
+
}(base_1.BaseAPI));
|
|
369
|
+
exports.InvoicesApi = InvoicesApi;
|