Skip to content

Commit

Permalink
Add order api (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
oluwatimio authored Oct 4, 2023
1 parent 1dbc956 commit 523ad93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ export type {
Company,
Localization,
CompanyLocationApi,
OrderApi,
} from './api/standard-api/standard-api';
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export interface CompanyLocationApi {
locationId: string;
}

export interface OrderApi {
orderId: string;
}

export interface BuyerIdentity {
/**
* Provides the company info that the business customer is purchasing on behalf of.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
StandardApi,
FullExtensionNavigation,
CompanyLocationApi,
OrderApi,
} from './api/standard-api/standard-api';

type Components = typeof import('./components');
Expand Down Expand Up @@ -144,11 +145,11 @@ export interface CustomerAccountExtensionTargets {
AllComponents
>;
'customer-account.order.action.menu-item.render': RenderExtension<
StandardApi & {orderId: string},
StandardApi & OrderApi,
AllComponents
>;
'customer-account.order.action.render': RenderExtension<
StandardApi & ActionExtensionApi & {orderId: string},
StandardApi & ActionExtensionApi & OrderApi,
AllComponents
>;
}
Expand Down

0 comments on commit 523ad93

Please sign in to comment.