Skip to content

Commit

Permalink
Update from backend dee776c8b0d1df2e2a9a460f90e7eb4321cb3630 (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions Bot <actions@github.com>
  • Loading branch information
github-actions[bot] and actions-user authored Sep 11, 2024
1 parent 3bf2ffe commit 6e4a91e
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 52 deletions.
46 changes: 28 additions & 18 deletions dist/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1312,12 +1312,6 @@ export interface CreateInvoiceRequest {
* @memberof CreateInvoiceRequest
*/
'reference': string;
/**
* Custom entries to be added to the invoice
* @type {Array<InvoiceEntryRequest>}
* @memberof CreateInvoiceRequest
*/
'customEntries'?: Array<InvoiceEntryRequest>;
/**
* IDs of the transactions to add to the Invoice.
* @type {Array<number>}
Expand Down Expand Up @@ -1360,6 +1354,12 @@ export interface CreateInvoiceRequest {
* @memberof CreateInvoiceRequest
*/
'attention'?: string;
/**
*
* @type {DineroObjectRequest}
* @memberof CreateInvoiceRequest
*/
'amount': DineroObjectRequest;
}
/**
*
Expand Down Expand Up @@ -5005,6 +5005,12 @@ export interface UpdateInvoiceRequest {
* @memberof UpdateInvoiceRequest
*/
'date'?: string;
/**
*
* @type {DineroObjectRequest}
* @memberof UpdateInvoiceRequest
*/
'amount'?: DineroObjectRequest;
}
export declare const UpdateInvoiceRequestStateEnum: {
readonly Created: "CREATED";
Expand Down Expand Up @@ -7060,11 +7066,11 @@ export declare const DebtorsApiAxiosParamCreator: (configuration?: Configuration
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {Array<string>} [userTypes] List of all user types fines should be calculated for (MEMBER, ORGAN, VOUCHER, LOCAL_USER, LOCAL_ADMIN, INVOICE, AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines: (referenceDates: Array<string>, userTypes?: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
calculateFines: (referenceDates: Array<string>, userTypes?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -7135,11 +7141,11 @@ export declare const DebtorsApiFp: (configuration?: Configuration) => {
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {Array<string>} [userTypes] List of all user types fines should be calculated for (MEMBER, ORGAN, VOUCHER, LOCAL_USER, LOCAL_ADMIN, INVOICE, AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines(referenceDates: Array<string>, userTypes?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserToFineResponse>>>;
calculateFines(referenceDates: Array<string>, userTypes?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserToFineResponse>>>;
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -7210,11 +7216,11 @@ export declare const DebtorsApiFactory: (configuration?: Configuration, basePath
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {Array<string>} [userTypes] List of all user types fines should be calculated for (MEMBER, ORGAN, VOUCHER, LOCAL_USER, LOCAL_ADMIN, INVOICE, AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateFines(referenceDates: Array<string>, userTypes?: Array<number>, options?: any): AxiosPromise<Array<UserToFineResponse>>;
calculateFines(referenceDates: Array<string>, userTypes?: Array<string>, options?: any): AxiosPromise<Array<UserToFineResponse>>;
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -7287,12 +7293,12 @@ export declare class DebtorsApi extends BaseAPI {
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {Array<string>} [userTypes] List of all user types fines should be calculated for (MEMBER, ORGAN, VOUCHER, LOCAL_USER, LOCAL_ADMIN, INVOICE, AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DebtorsApi
*/
calculateFines(referenceDates: Array<string>, userTypes?: Array<number>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserToFineResponse[], any>>;
calculateFines(referenceDates: Array<string>, userTypes?: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserToFineResponse[], any>>;
/**
*
* @summary Delete a fine
Expand Down Expand Up @@ -8050,10 +8056,11 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
*
* @summary Get an invoice pdf.
* @param {number} id The id of the invoice to return
* @param {boolean} [force] Force creation of pdf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getInvoicePdf: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
getInvoicePdf: (id: number, force?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Returns a single invoice in the system.
Expand Down Expand Up @@ -8148,10 +8155,11 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
*
* @summary Get an invoice pdf.
* @param {number} id The id of the invoice to return
* @param {boolean} [force] Force creation of pdf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getInvoicePdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
getInvoicePdf(id: number, force?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
/**
*
* @summary Returns a single invoice in the system.
Expand Down Expand Up @@ -8246,10 +8254,11 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
*
* @summary Get an invoice pdf.
* @param {number} id The id of the invoice to return
* @param {boolean} [force] Force creation of pdf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getInvoicePdf(id: number, options?: any): AxiosPromise<string>;
getInvoicePdf(id: number, force?: boolean, options?: any): AxiosPromise<string>;
/**
*
* @summary Returns a single invoice in the system.
Expand Down Expand Up @@ -8351,11 +8360,12 @@ export declare class InvoicesApi extends BaseAPI {
*
* @summary Get an invoice pdf.
* @param {number} id The id of the invoice to return
* @param {boolean} [force] Force creation of pdf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof InvoicesApi
*/
getInvoicePdf(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
getInvoicePdf(id: number, force?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
/**
*
* @summary Returns a single invoice in the system.
Expand Down
29 changes: 18 additions & 11 deletions dist/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2604,7 +2604,7 @@ const DebtorsApiAxiosParamCreator = function (configuration) {
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {Array<string>} [userTypes] List of all user types fines should be calculated for (MEMBER, ORGAN, VOUCHER, LOCAL_USER, LOCAL_ADMIN, INVOICE, AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand Down Expand Up @@ -2900,7 +2900,7 @@ const DebtorsApiFp = function (configuration) {
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {Array<string>} [userTypes] List of all user types fines should be calculated for (MEMBER, ORGAN, VOUCHER, LOCAL_USER, LOCAL_ADMIN, INVOICE, AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand Down Expand Up @@ -3043,7 +3043,7 @@ const DebtorsApiFactory = function (configuration, basePath, axios) {
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {Array<string>} [userTypes] List of all user types fines should be calculated for (MEMBER, ORGAN, VOUCHER, LOCAL_USER, LOCAL_ADMIN, INVOICE, AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
Expand Down Expand Up @@ -3138,7 +3138,7 @@ class DebtorsApi extends base_1.BaseAPI {
*
* @summary Return all users that had at most -5 euros balance both now and on the reference date. For all these users, also return their fine based on the reference date.
* @param {Array<string>} referenceDates Dates to base the fines on. Every returned user has at least five euros debt on every reference date. The height of the fine is based on the first date in the array.
* @param {Array<number>} [userTypes] List of all user types fines should be calculated for 1 (MEMBER), 2 (ORGAN), 3 (VOUCHER), 4 (LOCAL_USER), 5 (LOCAL_ADMIN), 6 (INVOICE), 7 (AUTOMATIC_INVOICE).
* @param {Array<string>} [userTypes] List of all user types fines should be calculated for (MEMBER, ORGAN, VOUCHER, LOCAL_USER, LOCAL_ADMIN, INVOICE, AUTOMATIC_INVOICE).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DebtorsApi
Expand Down Expand Up @@ -4702,10 +4702,11 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
*
* @summary Get an invoice pdf.
* @param {number} id The id of the invoice to return
* @param {boolean} [force] Force creation of pdf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getInvoicePdf: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
getInvoicePdf: (id_1, force_1, ...args_1) => __awaiter(this, [id_1, force_1, ...args_1], void 0, function* (id, force, options = {}) {
// verify required parameter 'id' is not null or undefined
(0, common_1.assertParamExists)('getInvoicePdf', 'id', id);
const localVarPath = `/invoices/{id}/pdf`
Expand All @@ -4722,6 +4723,9 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
// authentication JWT required
// http bearer authentication required
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
if (force !== undefined) {
localVarQueryParameter['force'] = force;
}
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
Expand Down Expand Up @@ -4975,13 +4979,14 @@ const InvoicesApiFp = function (configuration) {
*
* @summary Get an invoice pdf.
* @param {number} id The id of the invoice to return
* @param {boolean} [force] Force creation of pdf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getInvoicePdf(id, options) {
getInvoicePdf(id, force, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoicePdf(id, options);
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoicePdf(id, force, options);
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const operationBasePath = (_c = (_b = base_1.operationServerMap['InvoicesApi.getInvoicePdf']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
Expand Down Expand Up @@ -5127,11 +5132,12 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
*
* @summary Get an invoice pdf.
* @param {number} id The id of the invoice to return
* @param {boolean} [force] Force creation of pdf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getInvoicePdf(id, options) {
return localVarFp.getInvoicePdf(id, options).then((request) => request(axios, basePath));
getInvoicePdf(id, force, options) {
return localVarFp.getInvoicePdf(id, force, options).then((request) => request(axios, basePath));
},
/**
*
Expand Down Expand Up @@ -5254,12 +5260,13 @@ class InvoicesApi extends base_1.BaseAPI {
*
* @summary Get an invoice pdf.
* @param {number} id The id of the invoice to return
* @param {boolean} [force] Force creation of pdf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof InvoicesApi
*/
getInvoicePdf(id, options) {
return (0, exports.InvoicesApiFp)(this.configuration).getInvoicePdf(id, options).then((request) => request(this.axios, this.basePath));
getInvoicePdf(id, force, options) {
return (0, exports.InvoicesApiFp)(this.configuration).getInvoicePdf(id, force, options).then((request) => request(this.axios, this.basePath));
}
/**
*
Expand Down
2 changes: 1 addition & 1 deletion dist/api.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 6e4a91e

Please sign in to comment.