From ebb2ab1104c598e87f587acc97a242a13e606513 Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Mon, 19 Dec 2022 14:41:40 -0500 Subject: [PATCH] add address to IProductCheckout (#641) Signed-off-by: Pierre Tessier Signed-off-by: Pierre Tessier Co-authored-by: Juliano Costa --- src/frontend/pages/cart/checkout/[orderId]/index.tsx | 2 +- src/frontend/types/Cart.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/pages/cart/checkout/[orderId]/index.tsx b/src/frontend/pages/cart/checkout/[orderId]/index.tsx index 7778eb7d25..e5f7d561d2 100644 --- a/src/frontend/pages/cart/checkout/[orderId]/index.tsx +++ b/src/frontend/pages/cart/checkout/[orderId]/index.tsx @@ -31,7 +31,7 @@ const Checkout: NextPage = () => { ))} diff --git a/src/frontend/types/Cart.ts b/src/frontend/types/Cart.ts index e384ec6b21..a9f547e847 100644 --- a/src/frontend/types/Cart.ts +++ b/src/frontend/types/Cart.ts @@ -1,4 +1,4 @@ -import { Cart, OrderItem, OrderResult, Product } from '../protos/demo'; +import {Address, Cart, OrderItem, OrderResult, Product} from '../protos/demo'; export interface IProductCartItem { productId: string; @@ -12,6 +12,7 @@ export interface IProductCheckoutItem extends OrderItem { export interface IProductCheckout extends OrderResult { items: IProductCheckoutItem[]; + shippingAddress: Address; } export interface IProductCart extends Cart {