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

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

There is a newer version: 1131.1
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.util.Calendar;

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the GetTaxTable 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.

*
Output property: ReturnedLastUpdateTime - The last time (in GMT) that the tax table was updated. Only returned if the user previously created a tax table and if the site has jurisdictions. LastUpdateTime is useful for synchronization. If you cache the user's tax table, you can use GetTaxTable to check if it has changed and whether you need to update the cached tax table. *
Output property: ReturnedTaxTable - A container of tax jurisdiction information unique to a user/site combination. Returned as an empty container if no Sales Tax Table information exists for the seller's account and no DetailLevel is used. If DetailLevel is not specified, information is only returned for the jurisdictions for which the user provided tax information. If DetailLevel is set to ReturnAll, tax information is returned for all possible jurisdictions, whether specified by the user or not. ShippingIncludedInTax and SalesTaxPercent are returned but are empty. * * @author Ron Murphy * @version 1.0 */ public class GetTaxTableCall extends com.ebay.sdk.ApiCall { private Calendar returnedLastUpdateTime=null; private TaxTableType returnedTaxTable=null; /** * Constructor. */ public GetTaxTableCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public GetTaxTableCall(ApiContext apiContext) { super(apiContext); } /** * The base request type of the GetTaxTable call, which retrieves information on the seller's Sales Tax Table. This information includes all of the site's tax jurisdictions, a boolean field to indicate if sales tax is applied to shipping and handling charges, and the sales tax rate for each jurisdiction (if a sales tax rate is set for that jurisdiction). *

* Sales tax tables are only supported on the eBay US, Candada, and India sites. * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The void object. */ public void getTaxTable() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { GetTaxTableRequestType req; req = new GetTaxTableRequestType(); req.setDetailLevel(this.getDetailLevel()); GetTaxTableResponseType resp = (GetTaxTableResponseType) execute(req); this.returnedLastUpdateTime = resp.getLastUpdateTime(); this.returnedTaxTable = resp.getTaxTable(); } /** * Valid after executing the API. * Gets the returned GetTaxTableResponseType.returnedLastUpdateTime. * * @return Calendar */ public Calendar getReturnedLastUpdateTime() { return this.returnedLastUpdateTime; } /** * Valid after executing the API. * Gets the returned GetTaxTableResponseType.returnedTaxTable. * * @return TaxTableType */ public TaxTableType getReturnedTaxTable() { return this.returnedTaxTable; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy