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

com.dft.api.shopify.v202401.ShopifyFulfillmentOrdersAPI Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy