@stevenkellner/team-conduct-api 1.0.10 → 1.0.11
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.
|
@@ -8,6 +8,7 @@ export declare class MoneyAmount implements Flattable<MoneyAmount.Flatten> {
|
|
|
8
8
|
added(amount: MoneyAmount): MoneyAmount;
|
|
9
9
|
multiplied(factor: number): MoneyAmount;
|
|
10
10
|
formatted(currency: Configuration.Currency, configuration: Configuration): string;
|
|
11
|
+
get completeValue(): number;
|
|
11
12
|
get flatten(): MoneyAmount.Flatten;
|
|
12
13
|
}
|
|
13
14
|
export declare namespace MoneyAmount {
|
package/package.json
CHANGED
package/src/types/MoneyAmount.ts
CHANGED
|
@@ -32,6 +32,10 @@ export class MoneyAmount implements Flattable<MoneyAmount.Flatten> {
|
|
|
32
32
|
return numberFormat.format(this.value + this.subunitValue / 100);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
public get completeValue(): number {
|
|
36
|
+
return this.value + this.subunitValue / 100;
|
|
37
|
+
}
|
|
38
|
+
|
|
35
39
|
public get flatten(): MoneyAmount.Flatten {
|
|
36
40
|
return this.value + this.subunitValue / 100;
|
|
37
41
|
}
|