-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ankurvr-payment-method-page-error
- Loading branch information
Showing
34 changed files
with
641 additions
and
140 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
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,2 @@ | ||
// This is used here in peregrine and in the storefront. | ||
export const CACHE_PERSIST_PREFIX = 'apollo-cache-persist'; |
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
13 changes: 13 additions & 0 deletions
13
packages/peregrine/lib/talons/CartPage/PriceSummary/discountSummary.gql.js
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,13 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const DiscountSummaryFragment = gql` | ||
fragment DiscountSummaryFragment on CartPrices { | ||
discounts { | ||
amount { | ||
currency | ||
value | ||
} | ||
label | ||
} | ||
} | ||
`; |
6 changes: 3 additions & 3 deletions
6
...age/PriceSummary/priceSummaryFragments.js → ...PriceSummary/priceSummaryFragments.gql.js
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
8 changes: 8 additions & 0 deletions
8
packages/peregrine/lib/talons/CartPage/PriceSummary/queries/giftCardSummary.ce.js
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 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const GiftCardSummaryFragment = gql` | ||
fragment GiftCardSummaryFragment on Cart { | ||
id | ||
__typename | ||
} | ||
`; |
15 changes: 15 additions & 0 deletions
15
packages/peregrine/lib/talons/CartPage/PriceSummary/queries/giftCardSummary.ee.js
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,15 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const GiftCardSummaryFragment = gql` | ||
fragment GiftCardSummaryFragment on Cart { | ||
id | ||
applied_gift_cards { | ||
# code is "id" of the gift cards, used to merge cache data with incoming. | ||
code | ||
applied_balance { | ||
value | ||
currency | ||
} | ||
} | ||
} | ||
`; |
16 changes: 16 additions & 0 deletions
16
packages/peregrine/lib/talons/CartPage/PriceSummary/shippingSummary.gql.js
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,16 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const ShippingSummaryFragment = gql` | ||
fragment ShippingSummaryFragment on Cart { | ||
id | ||
shipping_addresses { | ||
selected_shipping_method { | ||
amount { | ||
currency | ||
value | ||
} | ||
} | ||
street | ||
} | ||
} | ||
`; |
12 changes: 12 additions & 0 deletions
12
packages/peregrine/lib/talons/CartPage/PriceSummary/taxSummary.gql.js
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,12 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const TaxSummaryFragment = gql` | ||
fragment TaxSummaryFragment on CartPrices { | ||
applied_taxes { | ||
amount { | ||
currency | ||
value | ||
} | ||
} | ||
} | ||
`; |
Oops, something went wrong.