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

com.ebay.sdk.call.GetItemShippingCall Maven / Gradle / Ivy

There is a newer version: 939.0.0
Show newest version
/*
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent  version 
thereof released by eBay.  The then-current version of the License can be found 
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that 
is under the eBay SDK ../docs directory.
*/

package com.ebay.sdk.call;

import java.lang.Integer;
import java.lang.String;

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the GetItemShipping call of eBay SOAP API.
 * 
*

Title: SOAP API wrapper library.

*

Description: Contains wrapper classes for eBay SOAP APIs.

*

Copyright: Copyright (c) 2009

*

Company: eBay Inc.

*
Input property: ItemID - The item ID that uniquely identifies the item listing for which * to retrieve the data. Required input. *
Input property: QuantitySold - Number of items sold to a single buyer and to be shipped together. *
Input property: DestinationPostalCode - Destination country postal code (or zip code for US). Ignored if no * country code is provided. Optional tag for some countries. More likely to * be required for large countries. *
Input property: DestinationCountryCode - Destination country code. If DestinationCountryCode is US, * a postal code is required and it represents the US zip code. *
Output property: ReturnedShippingDetails - Shipping-related details for the specified item. Any error about shipping services * (returned by a vendor of eBay's who calculates shipping costs) is returned in * ShippingRateErrorMessage. Errors from a shipping service are likely to be related to * issues with shipping specifications, such as package size and the selected shipping * method not supported by a particular shipping service. *
*
* If a buyer buys multiple quantities of an item and the resultant total * weight exceeds the weight limit of the shipping service, GetItemShipping * returns the shipping cost and shipping service and internally groups the * items in separate packages. A shipping service is removed from * ShippingDetails only if the weight of a single item exceeds the weight * limit of the shipping service. *
Output property: ReturnedPickUpInStoreDetails - This container is returned in GetItemShipping if In-Store Pickup is set for the listing. *

* In a future release, a fulfillment duration element will be added to this container and will be used to determine when the item will be ready for pickup in a store (immediately, two hours after sale, two days after sale, etc.). *

* * Note: At this time, the In-Store Pickup feature is generally only available to large retail merchants, and can only be applied to multi-quantity, fixed-price listings. * * This container is only returned if the version of the API is greater than or equal to 869. * * @author Ron Murphy * @version 1.0 */ public class GetItemShippingCall extends com.ebay.sdk.ApiCall { private String itemID = null; private Integer quantitySold = null; private String destinationPostalCode = null; private CountryCodeType destinationCountryCode = null; private ShippingDetailsType returnedShippingDetails=null; private PickupInStoreDetailsType returnedPickUpInStoreDetails=null; /** * Constructor. */ public GetItemShippingCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public GetItemShippingCall(ApiContext apiContext) { super(apiContext); } /** * Returns shipping cost estimates for an item for every calculated shipping service * that the seller has offered with the listing. This is analogous to the Shipping * Calculator seen in both the buyer and seller web pages. * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The ShippingDetailsType object. */ public ShippingDetailsType getItemShipping() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { GetItemShippingRequestType req; req = new GetItemShippingRequestType(); req.setDetailLevel(this.getDetailLevel()); if (this.itemID != null) req.setItemID(this.itemID); if (this.quantitySold != null) req.setQuantitySold(this.quantitySold); if (this.destinationPostalCode != null) req.setDestinationPostalCode(this.destinationPostalCode); if (this.destinationCountryCode != null) req.setDestinationCountryCode(this.destinationCountryCode); GetItemShippingResponseType resp = (GetItemShippingResponseType) execute(req); this.returnedShippingDetails = resp.getShippingDetails(); this.returnedPickUpInStoreDetails = resp.getPickUpInStoreDetails(); return this.getReturnedShippingDetails(); } /** * Gets the GetItemShippingRequestType.destinationCountryCode. * @return CountryCodeType */ public CountryCodeType getDestinationCountryCode() { return this.destinationCountryCode; } /** * Sets the GetItemShippingRequestType.destinationCountryCode. * @param destinationCountryCode CountryCodeType */ public void setDestinationCountryCode(CountryCodeType destinationCountryCode) { this.destinationCountryCode = destinationCountryCode; } /** * Gets the GetItemShippingRequestType.destinationPostalCode. * @return String */ public String getDestinationPostalCode() { return this.destinationPostalCode; } /** * Sets the GetItemShippingRequestType.destinationPostalCode. * @param destinationPostalCode String */ public void setDestinationPostalCode(String destinationPostalCode) { this.destinationPostalCode = destinationPostalCode; } /** * Gets the GetItemShippingRequestType.itemID. * @return String */ public String getItemID() { return this.itemID; } /** * Sets the GetItemShippingRequestType.itemID. * @param itemID String */ public void setItemID(String itemID) { this.itemID = itemID; } /** * Gets the GetItemShippingRequestType.quantitySold. * @return Integer */ public Integer getQuantitySold() { return this.quantitySold; } /** * Sets the GetItemShippingRequestType.quantitySold. * @param quantitySold Integer */ public void setQuantitySold(Integer quantitySold) { this.quantitySold = quantitySold; } /** * Valid after executing the API. * Gets the returned GetItemShippingResponseType.returnedPickUpInStoreDetails. * * @return PickupInStoreDetailsType */ public PickupInStoreDetailsType getReturnedPickUpInStoreDetails() { return this.returnedPickUpInStoreDetails; } /** * Valid after executing the API. * Gets the returned GetItemShippingResponseType.returnedShippingDetails. * * @return ShippingDetailsType */ public ShippingDetailsType getReturnedShippingDetails() { return this.returnedShippingDetails; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy