-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds confirmationNumber to order Fixes formatting Fixes formatting Adds changeset
- Loading branch information
Showing
7 changed files
with
94 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/ui-extensions': minor | ||
--- | ||
|
||
Exposes order-confirmation api and adds confirmationNumber to order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/ui-extensions/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type {StatefulRemoteSubscribable} from '@remote-ui/async-subscription'; | ||
|
||
export interface OrderConfirmation { | ||
order: { | ||
/** | ||
* The globally-uniqueID of the OrderConfirmation. This will be the ID of the Order once successfully created. | ||
*/ | ||
id: string; | ||
}; | ||
/** | ||
* A randomly generated alpha-numeric identifier for the order. | ||
* This number should always be present, but 2023 orders predate confirmation numbers and may not have it. | ||
*/ | ||
number?: string; | ||
} | ||
|
||
export interface OrderConfirmationApi { | ||
/** | ||
* Order information that's available post-checkout. | ||
*/ | ||
orderConfirmation: StatefulRemoteSubscribable<OrderConfirmation>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../ui-extensions/src/surfaces/customer-account/api/order-confirmation/order-confirmation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type {StatefulRemoteSubscribable} from '@remote-ui/async-subscription'; | ||
|
||
export interface OrderConfirmation { | ||
order: { | ||
/** | ||
* The globally-uniqueID of the OrderConfirmation. This will be the ID of the Order once successfully created. | ||
*/ | ||
id: string; | ||
}; | ||
/** | ||
* A randomly generated alpha-numeric identifier for the order. | ||
* This number should always be present, but 2023 orders predate confirmation numbers and may not have it. | ||
*/ | ||
number?: string; | ||
} | ||
|
||
export interface OrderConfirmationApi { | ||
/** | ||
* Order information that's available post-checkout. | ||
*/ | ||
orderConfirmation: StatefulRemoteSubscribable<OrderConfirmation>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters