com.dft.api.shopify.v202410.ShopifyGraphQlLocationAPI Maven / Gradle / Ivy
package com.dft.api.shopify.v202410;
import com.dft.api.shopify.ShopifyGraphQLSdk;
import com.dft.api.shopify.model.auth.AccessCredential;
import com.dft.api.shopify.v202410.model.common.GraphQlQuery;
import com.dft.api.shopify.v202410.model.common.QueryResponse;
import com.dft.api.shopify.v202410.model.location.LocationData;
import com.fasterxml.jackson.core.type.TypeReference;
public class ShopifyGraphQlLocationAPI extends ShopifyGraphQLSdk {
public ShopifyGraphQlLocationAPI(AccessCredential accessCredential) {
super(accessCredential);
}
public QueryResponse getLocationAndInventoryLevelDetails() {
GraphQlQuery graphQlQuery = new GraphQlQuery();
graphQlQuery.setQuery("query { locations(first: 250, includeInactive: true, includeLegacy: true) { nodes { id legacyResourceId name isActive shipsInventory address { address1 address2 city zip province provinceCode country countryCode } activatable addressVerified inventoryLevels(first: 250) { nodes { id createdAt item { id legacyResourceId updatedAt } quantities (names:\"available\") { id name quantity updatedAt } updatedAt } pageInfo { hasNextPage endCursor } } } } }");
return getQueryData(graphQlQuery, new TypeReference<>() {});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy