saleor-dashboard/src/fragments/taxes.ts
Dominik Żegleń 2a52eb581c
Update apollo to v3 (#1837)
* Update apollo to v3

* Fix imports

* Add generated file to ignored

* Use proper import

* Tidy up code

* Remove unused packages

* Fix tests
2022-02-21 14:32:38 +01:00

34 lines
665 B
TypeScript

import { gql } from "@apollo/client";
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
}
`;