@emilgroup/commission-sdk-node 1.0.0-beta.23 → 1.0.0-beta.24
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
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/commission-sdk-node@1.0.0-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk-node@1.0.0-beta.24 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk-node@1.0.0-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk-node@1.0.0-beta.24
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -23,7 +23,7 @@ export interface CommissionConfigDto {
|
|
|
23
23
|
*/
|
|
24
24
|
'type': CommissionConfigDtoTypeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Mathematical expression to calculate commission (e.g., \'invoice.
|
|
26
|
+
* Mathematical expression to calculate commission (e.g., \'invoice.netAmount * 0.10\'). Always return value in cents.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof CommissionConfigDto
|
|
29
29
|
*/
|
|
@@ -17,7 +17,7 @@ import { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-co
|
|
|
17
17
|
*/
|
|
18
18
|
export interface EvaluateCommissionAgreementRuleRequestDto {
|
|
19
19
|
/**
|
|
20
|
-
* Mock data object containing invoice, policy, and other data needed for expression evaluation (e.g., { invoice: {
|
|
20
|
+
* Mock data object containing invoice, policy, and other data needed for expression evaluation (e.g., { invoice: { netAmount: 1000 }, policy: { ... } })
|
|
21
21
|
* @type {object}
|
|
22
22
|
* @memberof EvaluateCommissionAgreementRuleRequestDto
|
|
23
23
|
*/
|
|
@@ -28,7 +28,7 @@ export interface CommissionConfigDto {
|
|
|
28
28
|
*/
|
|
29
29
|
'type': CommissionConfigDtoTypeEnum;
|
|
30
30
|
/**
|
|
31
|
-
* Mathematical expression to calculate commission (e.g., \'invoice.
|
|
31
|
+
* Mathematical expression to calculate commission (e.g., \'invoice.netAmount * 0.10\'). Always return value in cents.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CommissionConfigDto
|
|
34
34
|
*/
|
|
@@ -22,7 +22,7 @@ import { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-co
|
|
|
22
22
|
*/
|
|
23
23
|
export interface EvaluateCommissionAgreementRuleRequestDto {
|
|
24
24
|
/**
|
|
25
|
-
* Mock data object containing invoice, policy, and other data needed for expression evaluation (e.g., { invoice: {
|
|
25
|
+
* Mock data object containing invoice, policy, and other data needed for expression evaluation (e.g., { invoice: { netAmount: 1000 }, policy: { ... } })
|
|
26
26
|
* @type {object}
|
|
27
27
|
* @memberof EvaluateCommissionAgreementRuleRequestDto
|
|
28
28
|
*/
|