All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dft.api.shopify.v202410.ShopifyGraphQlLocationAPI Maven / Gradle / Ivy

The newest version!
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 getLocations() {
        GraphQlQuery graphQlQuery = new GraphQlQuery();
        graphQlQuery.setQuery("query { locations(first: 250, includeInactive: true, includeLegacy: true) { nodes { id legacyResourceId name isActive shipsInventory address { phone address1 address2 city zip province provinceCode country countryCode } activatable addressVerified isFulfillmentService } } }");
        return getQueryData(graphQlQuery, new TypeReference<>() {});
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy