34 lines
658 B
TypeScript
34 lines
658 B
TypeScript
import gql from "graphql-tag";
|
|
|
|
export const countryFragment = gql`
|
|
fragment CountryFragment on CountryDisplay {
|
|
country
|
|
code
|
|
}
|
|
`;
|
|
export const countryWithTaxesFragment = gql`
|
|
${countryFragment}
|
|
fragment CountryWithTaxesFragment on CountryDisplay {
|
|
...CountryFragment
|
|
vat {
|
|
standardRate
|
|
reducedRates {
|
|
rateType
|
|
rate
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
export const shopTaxesFragment = gql`
|
|
fragment ShopTaxesFragment on Shop {
|
|
chargeTaxesOnShipping
|
|
includeTaxesInPrices
|
|
displayGrossPrices
|
|
}
|
|
`;
|
|
export const taxTypeFragment = gql`
|
|
fragment TaxTypeFragment on TaxType {
|
|
description
|
|
taxCode
|
|
}
|
|
`;
|