Skip to content

Commit

Permalink
feat(order): ORDERS-5715 add OrderFee interface, add fees field to Or…
Browse files Browse the repository at this point in the history
…der interface (#2066)

Co-authored-by: Matthew Evangelidis <matthew.evangelidis@bigcommerce.com.au>
  • Loading branch information
matt-evangelidis and Matthew Evangelidis authored Jul 19, 2023
1 parent 8258026 commit 9b09886
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/core/src/order/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ export default interface Order {
taxes: Tax[];
taxTotal: number;
channelId: number;
fees: OrderFee[];
}

export interface OrderFee {
id: number;
type: string;
customerDisplayName: string;
cost: number;
source: string;
}

export type OrderPayments = Array<GatewayOrderPayment | GiftCertificateOrderPayment>;
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/order/orders.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function getOrder(): Order {
],
taxTotal: 3,
channelId: 1,
fees: [],
};
}

Expand Down

0 comments on commit 9b09886

Please sign in to comment.