@emilgroup/accounting-sdk 1.34.1-beta.90 → 1.34.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@1.34.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk@1.34.1-beta.91 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk@1.34.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk@1.34.1-beta.91
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -285,7 +285,7 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
285
285
|
};
|
|
286
286
|
},
|
|
287
287
|
/**
|
|
288
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
288
|
+
* 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\"
|
|
289
289
|
* @summary Create the booking entry from a source entity
|
|
290
290
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
291
291
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -402,7 +402,7 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
402
402
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
403
403
|
},
|
|
404
404
|
/**
|
|
405
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
405
|
+
* 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\"
|
|
406
406
|
* @summary Create the booking entry from a source entity
|
|
407
407
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
408
408
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -475,7 +475,7 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
475
475
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
476
476
|
},
|
|
477
477
|
/**
|
|
478
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
478
|
+
* 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\"
|
|
479
479
|
* @summary Create the booking entry from a source entity
|
|
480
480
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
481
481
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -698,7 +698,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
/**
|
|
701
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
701
|
+
* 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\"
|
|
702
702
|
* @summary Create the booking entry from a source entity
|
|
703
703
|
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
704
704
|
* @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.
|
|
@@ -339,7 +339,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
|
|
|
339
339
|
});
|
|
340
340
|
},
|
|
341
341
|
/**
|
|
342
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
342
|
+
* 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\"
|
|
343
343
|
* @summary Create the booking entry from a source entity
|
|
344
344
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
345
345
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -496,7 +496,7 @@ var BookingEntriesApiFp = function (configuration) {
|
|
|
496
496
|
});
|
|
497
497
|
},
|
|
498
498
|
/**
|
|
499
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
499
|
+
* 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\"
|
|
500
500
|
* @summary Create the booking entry from a source entity
|
|
501
501
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
502
502
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -578,7 +578,7 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
|
|
|
578
578
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
579
579
|
},
|
|
580
580
|
/**
|
|
581
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
581
|
+
* 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\"
|
|
582
582
|
* @summary Create the booking entry from a source entity
|
|
583
583
|
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
584
584
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -652,7 +652,7 @@ var BookingEntriesApi = /** @class */ (function (_super) {
|
|
|
652
652
|
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); });
|
|
653
653
|
};
|
|
654
654
|
/**
|
|
655
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation
|
|
655
|
+
* 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\"
|
|
656
656
|
* @summary Create the booking entry from a source entity
|
|
657
657
|
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
658
658
|
* @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];
|