@emilgroup/accounting-sdk-node 1.32.1-beta.90 → 1.32.1-beta.91
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/README.md +2 -2
- package/api/booking-entries-api.ts +4 -4
- package/dist/api/booking-entries-api.d.ts +4 -4
- package/dist/api/booking-entries-api.js +4 -4
- package/dist/models/booking-entry-class.d.ts +1 -0
- package/dist/models/booking-entry-class.js +1 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +1 -0
- package/dist/models/create-booking-entry-request-dto.js +1 -0
- package/dist/models/post-financial-event-request-dto.d.ts +3 -2
- package/dist/models/post-financial-event-request-dto.js +2 -1
- package/models/booking-entry-class.ts +1 -0
- package/models/create-booking-entry-request-dto.ts +1 -0
- package/models/post-financial-event-request-dto.ts +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/accounting-sdk-node@1.32.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk-node@1.32.1-beta.91 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.91
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -289,7 +289,7 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
289
289
|
};
|
|
290
290
|
},
|
|
291
291
|
/**
|
|
292
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
292
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
293
293
|
* @summary Create the booking entry from a source entity
|
|
294
294
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
295
295
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -406,7 +406,7 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
406
406
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
407
407
|
},
|
|
408
408
|
/**
|
|
409
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
409
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
410
410
|
* @summary Create the booking entry from a source entity
|
|
411
411
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
412
412
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -479,7 +479,7 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
479
479
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
480
480
|
},
|
|
481
481
|
/**
|
|
482
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
482
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
483
483
|
* @summary Create the booking entry from a source entity
|
|
484
484
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
485
485
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -702,7 +702,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
702
702
|
}
|
|
703
703
|
|
|
704
704
|
/**
|
|
705
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
705
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
706
706
|
* @summary Create the booking entry from a source entity
|
|
707
707
|
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
708
708
|
* @param {*} [options] Override http request option.
|
|
@@ -69,7 +69,7 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
|
|
|
69
69
|
*/
|
|
70
70
|
listBookingEntries: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
71
|
/**
|
|
72
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
72
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
73
73
|
* @summary Create the booking entry from a source entity
|
|
74
74
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
75
75
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -127,7 +127,7 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
|
|
|
127
127
|
*/
|
|
128
128
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingEntriesResponseClass>>;
|
|
129
129
|
/**
|
|
130
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
130
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
131
131
|
* @summary Create the booking entry from a source entity
|
|
132
132
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
133
133
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -185,7 +185,7 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
|
|
|
185
185
|
*/
|
|
186
186
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass>;
|
|
187
187
|
/**
|
|
188
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
188
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
189
189
|
* @summary Create the booking entry from a source entity
|
|
190
190
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
191
191
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -375,7 +375,7 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
375
375
|
*/
|
|
376
376
|
listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}, any>>;
|
|
377
377
|
/**
|
|
378
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
378
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
379
379
|
* @summary Create the booking entry from a source entity
|
|
380
380
|
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
381
381
|
* @param {*} [options] Override http request option.
|
|
@@ -343,7 +343,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
|
|
|
343
343
|
});
|
|
344
344
|
},
|
|
345
345
|
/**
|
|
346
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
346
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
347
347
|
* @summary Create the booking entry from a source entity
|
|
348
348
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
349
349
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -500,7 +500,7 @@ var BookingEntriesApiFp = function (configuration) {
|
|
|
500
500
|
});
|
|
501
501
|
},
|
|
502
502
|
/**
|
|
503
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
503
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
504
504
|
* @summary Create the booking entry from a source entity
|
|
505
505
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
506
506
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -582,7 +582,7 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
|
|
|
582
582
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
583
583
|
},
|
|
584
584
|
/**
|
|
585
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
585
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
586
586
|
* @summary Create the booking entry from a source entity
|
|
587
587
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
588
588
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -656,7 +656,7 @@ var BookingEntriesApi = /** @class */ (function (_super) {
|
|
|
656
656
|
return (0, exports.BookingEntriesApiFp)(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
657
657
|
};
|
|
658
658
|
/**
|
|
659
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
659
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
660
660
|
* @summary Create the booking entry from a source entity
|
|
661
661
|
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
@@ -152,6 +152,7 @@ export declare const BookingEntryClassSourceEntityTypeEnum: {
|
|
|
152
152
|
readonly CreditAllocation: "credit_allocation";
|
|
153
153
|
readonly ClaimRegulation: "claim_regulation";
|
|
154
154
|
readonly Commission: "commission";
|
|
155
|
+
readonly PaymentReceipt: "payment_receipt";
|
|
155
156
|
readonly Manual: "manual";
|
|
156
157
|
};
|
|
157
158
|
export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
|
|
@@ -79,6 +79,7 @@ export declare const CreateBookingEntryRequestDtoSourceEntityTypeEnum: {
|
|
|
79
79
|
readonly CreditAllocation: "credit_allocation";
|
|
80
80
|
readonly ClaimRegulation: "claim_regulation";
|
|
81
81
|
readonly Commission: "commission";
|
|
82
|
+
readonly PaymentReceipt: "payment_receipt";
|
|
82
83
|
readonly Manual: "manual";
|
|
83
84
|
};
|
|
84
85
|
export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
|
|
@@ -22,13 +22,13 @@ export interface PostFinancialEventRequestDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'sourceEntityType': PostFinancialEventRequestDtoSourceEntityTypeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation, commission
|
|
25
|
+
* The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt code.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PostFinancialEventRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'sourceEntityCode': string;
|
|
30
30
|
/**
|
|
31
|
-
* The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment, credit allocation or claim regulation, where it must match the entity\'s own partner. Not accepted for an invoice, whose partner is derived from the policy,
|
|
31
|
+
* The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment, credit allocation or claim regulation, where it must match the entity\'s own partner. Not accepted for an invoice, whose partner is derived from the policy, not accepted for a commission, which names its own recipient, and not accepted for a payment receipt, whose payment request names it.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof PostFinancialEventRequestDto
|
|
34
34
|
*/
|
|
@@ -41,5 +41,6 @@ export declare const PostFinancialEventRequestDtoSourceEntityTypeEnum: {
|
|
|
41
41
|
readonly CreditAllocation: "credit_allocation";
|
|
42
42
|
readonly ClaimRegulation: "claim_regulation";
|
|
43
43
|
readonly Commission: "commission";
|
|
44
|
+
readonly PaymentReceipt: "payment_receipt";
|
|
44
45
|
};
|
|
45
46
|
export type PostFinancialEventRequestDtoSourceEntityTypeEnum = typeof PostFinancialEventRequestDtoSourceEntityTypeEnum[keyof typeof PostFinancialEventRequestDtoSourceEntityTypeEnum];
|
|
@@ -27,13 +27,13 @@ export interface PostFinancialEventRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'sourceEntityType': PostFinancialEventRequestDtoSourceEntityTypeEnum;
|
|
29
29
|
/**
|
|
30
|
-
* The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation, commission
|
|
30
|
+
* The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt code.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof PostFinancialEventRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'sourceEntityCode': string;
|
|
35
35
|
/**
|
|
36
|
-
* The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment, credit allocation or claim regulation, where it must match the entity\'s own partner. Not accepted for an invoice, whose partner is derived from the policy,
|
|
36
|
+
* The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment, credit allocation or claim regulation, where it must match the entity\'s own partner. Not accepted for an invoice, whose partner is derived from the policy, not accepted for a commission, which names its own recipient, and not accepted for a payment receipt, whose payment request names it.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof PostFinancialEventRequestDto
|
|
39
39
|
*/
|
|
@@ -46,7 +46,8 @@ export const PostFinancialEventRequestDtoSourceEntityTypeEnum = {
|
|
|
46
46
|
Credit: 'credit',
|
|
47
47
|
CreditAllocation: 'credit_allocation',
|
|
48
48
|
ClaimRegulation: 'claim_regulation',
|
|
49
|
-
Commission: 'commission'
|
|
49
|
+
Commission: 'commission',
|
|
50
|
+
PaymentReceipt: 'payment_receipt'
|
|
50
51
|
} as const;
|
|
51
52
|
|
|
52
53
|
export type PostFinancialEventRequestDtoSourceEntityTypeEnum = typeof PostFinancialEventRequestDtoSourceEntityTypeEnum[keyof typeof PostFinancialEventRequestDtoSourceEntityTypeEnum];
|
package/package.json
CHANGED