Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
feat(cart/order): added discount, without_discount & discounts fields…
Browse files Browse the repository at this point in the history
… to cart/order (#738)
  • Loading branch information
sarawasim1 authored Sep 27, 2022
1 parent 9b75cb2 commit 360d759
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/types/cart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ export interface CartItem extends CartItemBase {
unit: FormattedPrice
value: FormattedPrice
}
discount?: {
unit: FormattedPrice
value: FormattedPrice
}
without_discount?: {
unit: FormattedPrice
value: FormattedPrice
}
discounts?: FormattedPrice
}
timestamps: {
created_at: string
Expand Down
7 changes: 7 additions & 0 deletions src/types/order.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export interface Order extends Identifiable, OrderBase {
with_tax: FormattedPrice
without_tax: FormattedPrice
tax: FormattedPrice
discount: FormattedPrice
}
timestamps: {
created_at: string
Expand Down Expand Up @@ -168,6 +169,11 @@ export interface OrderItem extends Identifiable, OrderItemBase {
unit: FormattedPrice
value: FormattedPrice
}
without_discount?: {
unit: FormattedPrice
value: FormattedPrice
}
discounts?: FormattedPrice
}
timestamps?: {
created_at: string
Expand All @@ -185,6 +191,7 @@ export interface OrderItem extends Identifiable, OrderItemBase {
currency: string
includes_tax: string
}
id: string
code: string
}
]
Expand Down

0 comments on commit 360d759

Please sign in to comment.