-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: map both net and gross prices to client model (#179)
- Loading branch information
Showing
44 changed files
with
547 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 15 additions & 20 deletions
35
src/app/core/models/basket-total/basket-total.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
import { PriceItem } from 'ish-core/models/price-item/price-item.interface'; | ||
import { Price } from 'ish-core/models/price/price.model'; | ||
import { PriceItemData } from 'ish-core/models/price-item/price-item.interface'; | ||
|
||
export interface BasketTotalData { | ||
itemTotal: PriceItem; | ||
undiscountedItemTotal?: PriceItem; | ||
shippingTotal?: PriceItem; | ||
undiscountedShippingTotal: PriceItem; | ||
paymentCostsTotal?: PriceItem; | ||
surchargeTotal?: PriceItem; | ||
grandTotal: PriceItem; | ||
itemTotal: PriceItemData; | ||
undiscountedItemTotal?: PriceItemData; | ||
shippingTotal?: PriceItemData; | ||
undiscountedShippingTotal: PriceItemData; | ||
paymentCostsTotal?: PriceItemData; | ||
surchargeTotal?: PriceItemData; | ||
grandTotal: PriceItemData; | ||
|
||
itemValueDiscountsTotal?: PriceItem; | ||
basketValueDiscountsTotal?: PriceItem; | ||
itemValueDiscountsTotal?: PriceItemData; | ||
basketValueDiscountsTotal?: PriceItemData; | ||
|
||
itemShippingDiscountsTotal?: PriceItem; | ||
basketShippingDiscountsTotal?: PriceItem; | ||
itemShippingDiscountsTotal?: PriceItemData; | ||
basketShippingDiscountsTotal?: PriceItemData; | ||
|
||
shippingDiscountsTotal?: PriceItem; | ||
valueDiscountsTotal: PriceItem; | ||
discountTotal?: PriceItem; | ||
|
||
taxTotalsByTaxRate?: { | ||
calculatedTax: Price; | ||
}[]; | ||
shippingDiscountsTotal?: PriceItemData; | ||
valueDiscountsTotal: PriceItemData; | ||
discountTotal?: PriceItemData; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.