2022-02-21 13:32:38 +00:00
|
|
|
import { gql } from "@apollo/client";
|
2020-07-07 10:14:12 +00:00
|
|
|
|
2022-03-09 08:56:55 +00:00
|
|
|
export const taxedMoneyFragment = gql`
|
|
|
|
fragment TaxedMoney on TaxedMoney {
|
|
|
|
net {
|
|
|
|
...Money
|
|
|
|
}
|
|
|
|
gross {
|
|
|
|
...Money
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-07-07 10:14:12 +00:00
|
|
|
export const countryFragment = gql`
|
2022-03-09 08:56:55 +00:00
|
|
|
fragment Country on CountryDisplay {
|
2020-07-07 10:14:12 +00:00
|
|
|
country
|
|
|
|
code
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
export const countryWithTaxesFragment = gql`
|
2022-03-09 08:56:55 +00:00
|
|
|
fragment CountryWithTaxes on CountryDisplay {
|
|
|
|
...Country
|
2020-07-07 10:14:12 +00:00
|
|
|
vat {
|
|
|
|
standardRate
|
|
|
|
reducedRates {
|
|
|
|
rateType
|
|
|
|
rate
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
export const shopTaxesFragment = gql`
|
2022-03-09 08:56:55 +00:00
|
|
|
fragment ShopTaxes on Shop {
|
2020-07-07 10:14:12 +00:00
|
|
|
chargeTaxesOnShipping
|
|
|
|
includeTaxesInPrices
|
|
|
|
displayGrossPrices
|
|
|
|
}
|
|
|
|
`;
|
2020-09-23 08:29:13 +00:00
|
|
|
export const taxTypeFragment = gql`
|
2022-03-09 08:56:55 +00:00
|
|
|
fragment TaxType on TaxType {
|
2020-09-23 08:29:13 +00:00
|
|
|
description
|
|
|
|
taxCode
|
|
|
|
}
|
|
|
|
`;
|