@emilgroup/billing-sdk-node
Advanced tools
| /** | ||
| * EMIL BillingService | ||
| * The EMIL BillingService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { InvoiceClass } from './invoice-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface RevertInvoiceResponseClass | ||
| */ | ||
| export interface RevertInvoiceResponseClass { | ||
| /** | ||
| * Revert invoice response. | ||
| * @type {InvoiceClass} | ||
| * @memberof RevertInvoiceResponseClass | ||
| */ | ||
| 'invoice': InvoiceClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL BillingService | ||
| * The EMIL BillingService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL BillingService | ||
| * The EMIL BillingService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { InvoiceClass } from './invoice-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface RevertInvoiceResponseClass | ||
| */ | ||
| export interface RevertInvoiceResponseClass { | ||
| /** | ||
| * Revert invoice response. | ||
| * @type {InvoiceClass} | ||
| * @memberof RevertInvoiceResponseClass | ||
| */ | ||
| 'invoice': InvoiceClass; | ||
| } | ||
@@ -27,2 +27,6 @@ /* tslint:disable */ | ||
| import { CreateInvoiceForPolicyRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { RevertInvoiceRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { RevertInvoiceResponseClass } from '../models'; | ||
| // URLSearchParams not necessarily used | ||
@@ -90,2 +94,48 @@ // @ts-ignore | ||
| }, | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| revertInvoice: async (revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'revertInvoiceRequestDto' is not null or undefined | ||
| assertParamExists('revertInvoice', 'revertInvoiceRequestDto', revertInvoiceRequestDto) | ||
| const localVarPath = `/billingservice/v1/correction-invoices/revert`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(revertInvoiceRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| } | ||
@@ -114,2 +164,13 @@ }; | ||
| }, | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevertInvoiceResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.revertInvoice(revertInvoiceRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| } | ||
@@ -137,2 +198,12 @@ }; | ||
| }, | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<RevertInvoiceResponseClass> { | ||
| return localVarFp.revertInvoice(revertInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| }; | ||
@@ -170,2 +241,23 @@ }; | ||
| /** | ||
| * Request parameters for revertInvoice operation in CorrectionInvoicesApi. | ||
| * @export | ||
| * @interface CorrectionInvoicesApiRevertInvoiceRequest | ||
| */ | ||
| export interface CorrectionInvoicesApiRevertInvoiceRequest { | ||
| /** | ||
| * | ||
| * @type {RevertInvoiceRequestDto} | ||
| * @memberof CorrectionInvoicesApiRevertInvoice | ||
| */ | ||
| readonly revertInvoiceRequestDto: RevertInvoiceRequestDto | ||
| /** | ||
| * Bearer Token | ||
| * @type {string} | ||
| * @memberof CorrectionInvoicesApiRevertInvoice | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * CorrectionInvoicesApi - object-oriented interface | ||
@@ -188,2 +280,13 @@ * @export | ||
| } | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CorrectionInvoicesApi | ||
| */ | ||
| public revertInvoice(requestParameters: CorrectionInvoicesApiRevertInvoiceRequest, options?: AxiosRequestConfig) { | ||
| return CorrectionInvoicesApiFp(this.configuration).revertInvoice(requestParameters.revertInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| } |
@@ -17,2 +17,4 @@ /** | ||
| import { CreateInvoiceForPolicyRequestDto } from '../models'; | ||
| import { RevertInvoiceRequestDto } from '../models'; | ||
| import { RevertInvoiceResponseClass } from '../models'; | ||
| /** | ||
@@ -33,2 +35,10 @@ * CorrectionInvoicesApi - axios parameter creator | ||
| createCorrectionInvoice: (createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| revertInvoice: (revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| }; | ||
@@ -50,2 +60,10 @@ /** | ||
| createCorrectionInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCorrectionInvoicesResponseClass>>; | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevertInvoiceResponseClass>>; | ||
| }; | ||
@@ -67,2 +85,10 @@ /** | ||
| createCorrectionInvoice(createInvoiceForPolicyRequestDto: CreateInvoiceForPolicyRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass>; | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| revertInvoice(revertInvoiceRequestDto: RevertInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<RevertInvoiceResponseClass>; | ||
| }; | ||
@@ -95,2 +121,21 @@ /** | ||
| /** | ||
| * Request parameters for revertInvoice operation in CorrectionInvoicesApi. | ||
| * @export | ||
| * @interface CorrectionInvoicesApiRevertInvoiceRequest | ||
| */ | ||
| export interface CorrectionInvoicesApiRevertInvoiceRequest { | ||
| /** | ||
| * | ||
| * @type {RevertInvoiceRequestDto} | ||
| * @memberof CorrectionInvoicesApiRevertInvoice | ||
| */ | ||
| readonly revertInvoiceRequestDto: RevertInvoiceRequestDto; | ||
| /** | ||
| * Bearer Token | ||
| * @type {string} | ||
| * @memberof CorrectionInvoicesApiRevertInvoice | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * CorrectionInvoicesApi - object-oriented interface | ||
@@ -111,2 +156,10 @@ * @export | ||
| createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCorrectionInvoicesResponseClass, any, {}>>; | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CorrectionInvoicesApi | ||
| */ | ||
| revertInvoice(requestParameters: CorrectionInvoicesApiRevertInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RevertInvoiceResponseClass, any, {}>>; | ||
| } |
@@ -152,2 +152,50 @@ "use strict"; | ||
| }, | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| revertInvoice: function (revertInvoiceRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'revertInvoiceRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('revertInvoice', 'revertInvoiceRequestDto', revertInvoiceRequestDto); | ||
| localVarPath = "/billingservice/v1/correction-invoices/revert"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revertInvoiceRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
@@ -185,2 +233,22 @@ }; | ||
| }, | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| revertInvoice: function (revertInvoiceRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.revertInvoice(revertInvoiceRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
@@ -208,2 +276,12 @@ }; | ||
| }, | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {RevertInvoiceRequestDto} revertInvoiceRequestDto | ||
| * @param {string} [authorization] Bearer Token | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| revertInvoice: function (revertInvoiceRequestDto, authorization, options) { | ||
| return localVarFp.revertInvoice(revertInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| }; | ||
@@ -235,4 +313,15 @@ }; | ||
| }; | ||
| /** | ||
| * undefined **Required Permissions** \"billing-management.invoices.update\" | ||
| * @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CorrectionInvoicesApi | ||
| */ | ||
| CorrectionInvoicesApi.prototype.revertInvoice = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CorrectionInvoicesApiFp)(this.configuration).revertInvoice(requestParameters.revertInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| return CorrectionInvoicesApi; | ||
| }(base_1.BaseAPI)); | ||
| exports.CorrectionInvoicesApi = CorrectionInvoicesApi; |
@@ -42,4 +42,5 @@ export * from './create-correction-invoices-response-class'; | ||
| export * from './revert-invoice-request-dto'; | ||
| export * from './revert-invoice-response-class'; | ||
| export * from './timeslice-dto'; | ||
| export * from './update-policy-billing-request-dto'; | ||
| export * from './update-policy-billing-response-class'; |
@@ -58,4 +58,5 @@ "use strict"; | ||
| __exportStar(require("./revert-invoice-request-dto"), exports); | ||
| __exportStar(require("./revert-invoice-response-class"), exports); | ||
| __exportStar(require("./timeslice-dto"), exports); | ||
| __exportStar(require("./update-policy-billing-request-dto"), exports); | ||
| __exportStar(require("./update-policy-billing-response-class"), exports); |
+1
-0
@@ -42,4 +42,5 @@ export * from './create-correction-invoices-response-class'; | ||
| export * from './revert-invoice-request-dto'; | ||
| export * from './revert-invoice-response-class'; | ||
| export * from './timeslice-dto'; | ||
| export * from './update-policy-billing-request-dto'; | ||
| export * from './update-policy-billing-response-class'; |
+1
-1
| { | ||
| "name": "@emilgroup/billing-sdk-node", | ||
| "version": "1.57.0", | ||
| "version": "1.57.1-beta.5", | ||
| "description": "OpenAPI client for @emilgroup/billing-sdk-node", | ||
@@ -5,0 +5,0 @@ "author": "OpenAPI-Generator Contributors", |
+2
-2
@@ -20,7 +20,7 @@ # Emil Billing SDK for Nodejs | ||
| ``` | ||
| npm install @emilgroup/billing-sdk-node@1.57.0 --save | ||
| npm install @emilgroup/billing-sdk-node@1.57.1-beta.5 --save | ||
| ``` | ||
| or | ||
| ``` | ||
| yarn add @emilgroup/billing-sdk-node@1.57.0 | ||
| yarn add @emilgroup/billing-sdk-node@1.57.1-beta.5 | ||
| ``` | ||
@@ -27,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
724346
2.2%187
1.63%15965
1.94%2
100%40
2.56%