feat(core-flows,types,cart): add credit lines to cart (#11419)

* feat(core-flows,types,cart): add credit lines to cart

* chore: fix specs

* chore: credit lines hook

* chore: update types

* chore: added credit line totals

* chore: add totals fields to query config

* chore: add complete cart hook

* chore: add credit lines creation to order

* chore: pr ready for review

* chore: fix tests

* Apply suggestions from code review

* chore: fix types

* chore: adjust summary calculations with new totals
This commit is contained in:
Riqwan Thamir authored and GitHub committed 2025-02-24 14:34:36 +01:00
1 parent be566ca6fb
commit fb2e86484a
27 files changed
+802 -58

No files matched your search

@@ -27,6 +27,9 @@ export const defaultStoreCartFields = [
"original_shipping_tax_total",
"original_shipping_subtotal",
"original_shipping_total",
"credit_lines_subtotal",
"credit_lines_tax_total",
"credit_lines_total",
"metadata",
"sales_channel_id",
"promotions.id",
@@ -121,6 +124,7 @@ export const defaultStoreCartFields = [
"*region.countries",
"*payment_collection",
"*payment_collection.payment_sessions",
"*credit_lines",
]
export const retrieveTransformQueryConfig = {
@@ -42,6 +42,7 @@ export const defaultStoreRetrieveOrderFields = [
"original_shipping_total",
"created_at",
"updated_at",
"*credit_lines",
"*items",
"*items.tax_lines",
"*items.adjustments",