saleor-apps-redis_apl/apps/taxes/graphql/queries/TaxConfigurations.graphql
Adrian Pilarczyk 9f0dd813a4
feat: add taxes app (#223)
* feat:  add taxes app

* chore: 🔥 remove files, use monorepo ones instead

* chore:  add all env vars to .env.example

* refactor: 🔧 use saleor eslint config

* build: ⬆️ app-sdk, remove vercel from apl

* refactor: ♻️ remove providers/index, infer taxProviders from providerConfig

* refactor: ♻️ use tuples to use objects

* refactor: 🚚 move types to taxes module

* refactor: ♻️ tax-prepare-data -> tax-line-resolver

* refactor: get isInFrame from apps-shared

* build: ⬆️ next

* feat:  add appRegister allowlist

* Update apps/taxes/src/pages/api/manifest.ts

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

* Update apps/taxes/src/pages/api/manifest.ts

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

* chore: 💡 improve comments

* refactor: 🔥 app-dashboard-link

* docs: 📝 add taxes to readme

* refactor: 🔥 app-main-bar

* refactor: ♻️ align saleor-app.ts with the rest

* refactor: ♻️ use defaultValues

* chore: ♻️ misc

---------

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-03-02 12:01:17 +01:00

51 lines
883 B
GraphQL

query TaxConfigurationsList(
$before: String
$after: String
$first: Int
$last: Int
$filter: TaxConfigurationFilterInput
) {
taxConfigurations(before: $before, after: $after, first: $first, last: $last, filter: $filter) {
edges {
node {
...TaxConfiguration
__typename
}
__typename
}
__typename
}
}
fragment TaxConfiguration on TaxConfiguration {
id
channel {
...Channel
}
displayGrossPrices
pricesEnteredWithTax
chargeTaxes
taxCalculationStrategy
countries {
...TaxConfigurationPerCountry
__typename
}
__typename
}
fragment TaxConfigurationPerCountry on TaxConfigurationPerCountry {
country {
...CountryWithCode
__typename
}
chargeTaxes
taxCalculationStrategy
displayGrossPrices
__typename
}
fragment CountryWithCode on CountryDisplay {
country
code
__typename
}