-
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.
Merge pull request #2579 from Shopify/js-fix-shipping-line-tax-line
Fixed minor issues with shipping line
- Loading branch information
Showing
5 changed files
with
31 additions
and
29 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
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
14 changes: 14 additions & 0 deletions
14
packages/ui-extensions/src/surfaces/point-of-sale/types/shipping-line.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,14 @@ | ||
export type ShippingLine = CalculatedShippingLine | CustomShippingLine; | ||
|
||
export interface CalculatedShippingLine { | ||
price: string; | ||
title: string; | ||
methodType: 'SHIPPING' | 'RETAIL'; | ||
type: 'Calculated'; | ||
} | ||
|
||
export interface CustomShippingLine { | ||
price: string; | ||
title: string; | ||
type: 'Custom'; | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/ui-extensions/src/surfaces/point-of-sale/types/tax-line.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,8 @@ | ||
export interface TaxLine { | ||
uuid: string; | ||
price: string; | ||
rate: number; | ||
rateRange?: {min: number; max: number}; | ||
title: string; | ||
enabled: boolean; | ||
} |