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

com.ebay.sdk.call.GetShippingDiscountProfilesCall 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.Boolean;

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the GetShippingDiscountProfiles 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: ReturnedCurrencyID - The three-digit code of the currency to be used for shipping cost discounts and * insurance for Combined Invoice orders. A discount profile can only be associated * with a listing if the CurrencyID value of the profile matches the * Item.Currency value specified in a listing. *
Output property: ReturnedFlatShippingDiscount - Details of an individual discount profile defined by the * user for flat rate shipping--one for each profile defined by the user. * Empty if no shipping discount profiles were defined. *
Output property: ReturnedCalculatedShippingDiscount - Details of an individual discount profile defined by the * user for calculated shipping--one for each profile defined by the user. * Empty if no shipping discount profiles were defined. *
Output property: ReturnedPromotionalShippingDiscount - Indicates whether the user defined a promotional discount (the discount is active * as soon as it exists). *
Output property: ReturnedCalculatedHandlingDiscount - This container is used by the seller to specify/modify packaging and handling discounts that are applied * for Combined Invoice orders. This container is only returned if it is set for the Shipping Discount Profile. *
Output property: ReturnedPromotionalShippingDiscountDetails - The data for the specific promotional shipping discount. * Returned only if it has been defined. *
Output property: ReturnedShippingInsurance - The data for the domestic insurance for Combined Invoice. * Returned only if it has been defined. *
Output property: ReturnedInternationalShippingInsurance - The data for the international insurance for Combined Invoice. * Returned only if it has been defined. *
Output property: ReturnedCombinedDuration - This field indicates the number of days after the sale of an * item in which the buyer or seller can combine multiple and mutual order * line items into one Combined Invoice order. In a Combined Invoice order, * the buyer makes one payment for all order line items, hence only unpaid * order line items can be combined into a Combined Invoice order. * * @author Ron Murphy * @version 1.0 */ public class GetShippingDiscountProfilesCall extends com.ebay.sdk.ApiCall { private CurrencyCodeType returnedCurrencyID=null; private FlatShippingDiscountType returnedFlatShippingDiscount=null; private CalculatedShippingDiscountType returnedCalculatedShippingDiscount=null; private Boolean returnedPromotionalShippingDiscount=null; private CalculatedHandlingDiscountType returnedCalculatedHandlingDiscount=null; private PromotionalShippingDiscountDetailsType returnedPromotionalShippingDiscountDetails=null; private ShippingInsuranceType returnedShippingInsurance=null; private ShippingInsuranceType returnedInternationalShippingInsurance=null; private CombinedPaymentPeriodCodeType returnedCombinedDuration=null; /** * Constructor. */ public GetShippingDiscountProfilesCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public GetShippingDiscountProfilesCall(ApiContext apiContext) { super(apiContext); } /** * Returns the shipping discount profiles defined by the user, along with other Combined * Invoice-related details such as packaging and handling costs. * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The CurrencyCodeType object. */ public CurrencyCodeType getShippingDiscountProfiles() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { GetShippingDiscountProfilesRequestType req; req = new GetShippingDiscountProfilesRequestType(); GetShippingDiscountProfilesResponseType resp = (GetShippingDiscountProfilesResponseType) execute(req); this.returnedCurrencyID = resp.getCurrencyID(); this.returnedFlatShippingDiscount = resp.getFlatShippingDiscount(); this.returnedCalculatedShippingDiscount = resp.getCalculatedShippingDiscount(); this.returnedPromotionalShippingDiscount = resp.isPromotionalShippingDiscount(); this.returnedCalculatedHandlingDiscount = resp.getCalculatedHandlingDiscount(); this.returnedPromotionalShippingDiscountDetails = resp.getPromotionalShippingDiscountDetails(); this.returnedShippingInsurance = resp.getShippingInsurance(); this.returnedInternationalShippingInsurance = resp.getInternationalShippingInsurance(); this.returnedCombinedDuration = resp.getCombinedDuration(); return this.getReturnedCurrencyID(); } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedCalculatedHandlingDiscount. * * @return CalculatedHandlingDiscountType */ public CalculatedHandlingDiscountType getReturnedCalculatedHandlingDiscount() { return this.returnedCalculatedHandlingDiscount; } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedCalculatedShippingDiscount. * * @return CalculatedShippingDiscountType */ public CalculatedShippingDiscountType getReturnedCalculatedShippingDiscount() { return this.returnedCalculatedShippingDiscount; } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedCombinedDuration. * * @return CombinedPaymentPeriodCodeType */ public CombinedPaymentPeriodCodeType getReturnedCombinedDuration() { return this.returnedCombinedDuration; } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedCurrencyID. * * @return CurrencyCodeType */ public CurrencyCodeType getReturnedCurrencyID() { return this.returnedCurrencyID; } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedFlatShippingDiscount. * * @return FlatShippingDiscountType */ public FlatShippingDiscountType getReturnedFlatShippingDiscount() { return this.returnedFlatShippingDiscount; } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedInternationalShippingInsurance. * * @return ShippingInsuranceType */ public ShippingInsuranceType getReturnedInternationalShippingInsurance() { return this.returnedInternationalShippingInsurance; } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedPromotionalShippingDiscount. * * @return Boolean */ public Boolean getReturnedPromotionalShippingDiscount() { return this.returnedPromotionalShippingDiscount; } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedPromotionalShippingDiscountDetails. * * @return PromotionalShippingDiscountDetailsType */ public PromotionalShippingDiscountDetailsType getReturnedPromotionalShippingDiscountDetails() { return this.returnedPromotionalShippingDiscountDetails; } /** * Valid after executing the API. * Gets the returned GetShippingDiscountProfilesResponseType.returnedShippingInsurance. * * @return ShippingInsuranceType */ public ShippingInsuranceType getReturnedShippingInsurance() { return this.returnedShippingInsurance; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy