com.dft.api.shopify.v202401.ShopifyFulfillmentOrdersAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shopify-admin-rest Show documentation
Show all versions of shopify-admin-rest Show documentation
Shopify Admin REST API using JDK 11 and Reactive Programming
The newest version!
package com.dft.api.shopify.v202401;
import com.dft.api.shopify.ShopifySdkNew;
import com.dft.api.shopify.model.auth.AccessCredential;
import com.dft.api.shopify.v202401.model.fulfillmentorder.FulfillmentOrderWrapper;
import java.net.URI;
import java.net.http.HttpRequest;
import static com.dft.api.shopify.constantcode.ConstantCodes.FORWARD_SLASH;
public class ShopifyFulfillmentOrdersAPI extends ShopifySdkNew {
private static final String FULFILLMENT_ORDERS_ENDPOINT = "/fulfillment_orders";
public static final String VERSION_2024_01 = "/2024-01";
public ShopifyFulfillmentOrdersAPI(AccessCredential accessCredential) {
super(accessCredential);
}
public FulfillmentOrderWrapper getFulfillmentOrder(Long fulfillmentId) {
URI uri = baseUrl(VERSION_2024_01, FULFILLMENT_ORDERS_ENDPOINT + FORWARD_SLASH + fulfillmentId);
HttpRequest request = get(uri);
return getRequestWrapped(request, FulfillmentOrderWrapper.class);
}
}