com.dft.api.shopify.v202410.ShopifyGraphQlFulfilmentAPI 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.GraphQlVariable;
import com.dft.api.shopify.v202410.model.common.QueryResponse;
import com.dft.api.shopify.v202410.model.fullfillment.FulfilmentData;
import com.dft.api.shopify.v202410.model.fullfillment.FulfilmentInput;
import com.fasterxml.jackson.core.type.TypeReference;
public class ShopifyGraphQlFulfilmentAPI extends ShopifyGraphQLSdk {
public ShopifyGraphQlFulfilmentAPI(AccessCredential accessCredential) {
super(accessCredential);
}
public QueryResponse createOrderFulfilment(GraphQlVariable variables) {
GraphQlQuery graphQlQuery = new GraphQlQuery();
graphQlQuery.setQuery("mutation fulfillmentCreateV2($input: FulfillmentV2Input!) { fulfillmentCreateV2(fulfillment: $input) { fulfillment { id displayStatus status totalQuantity trackingInfo(first: 10) { company number url } } userErrors { field message } } }");
graphQlQuery.setVariables(variables);
return getQueryData(graphQlQuery, new TypeReference<>() {});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy