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

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

The 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 GetOrderTransactions 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: ItemTransactionIDArray - An array of ItemTransactionIDs. *
Input property: OrderIDArray - An array of OrderIDs. You can specify, at most, twenty OrderIDs. *
Input property: Platform - The default behavior of GetOrderTransactions is to retrieve all orders originating from eBay.com and Half.com. If the user wants to retrieve only eBay.com order line items or Half.com order line items, this filter can be used to perform that function. Inserting 'eBay' into this field will restrict retrieved order line items to those originating on eBay.com, and inserting 'Half' into this field will restrict retrieved order line items to those originating on Half.com. *
Input property: IncludeFinalValueFees - Indicates whether to include Final Value Fee (FVF) in the response. For most * listing types, the Final Value Fee is returned in Transaction.FinalValueFee. * The Final Value Fee is returned on a transaction-by-transaction basis for * FixedPriceItem listing type. For all other listing * types, the Final Value Fee is returned when the listing status is Completed. * This value is not returned if the auction ended with Buy It Now. *
Output property: ReturnedOrderArray - An array of Orders. * * @author Ron Murphy * @version 1.0 */ public class GetOrderTransactionsCall extends com.ebay.sdk.ApiCall { private ItemTransactionIDArrayType itemTransactionIDArray = null; private OrderIDArrayType orderIDArray = null; private TransactionPlatformCodeType platform = null; private Boolean includeFinalValueFees = null; private OrderArrayType returnedOrderArray=null; /** * Constructor. */ public GetOrderTransactionsCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public GetOrderTransactionsCall(ApiContext apiContext) { super(apiContext); } /** * Retrieves information about one or more orders based on OrderIDs, ItemIDs, or SKU values.  Also for Half.com. * *
* @throws ApiException one or more errors reported by an API call. * @throws SdkException The super class of all SDK exception types. * @throws Exception * @return The OrderArrayType object. */ public OrderArrayType getOrderTransactions() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { GetOrderTransactionsRequestType req; req = new GetOrderTransactionsRequestType(); if (this.itemTransactionIDArray != null) req.setItemTransactionIDArray(this.itemTransactionIDArray); if (this.orderIDArray != null) req.setOrderIDArray(this.orderIDArray); if (this.platform != null) req.setPlatform(this.platform); if (this.includeFinalValueFees != null) req.setIncludeFinalValueFees(this.includeFinalValueFees); GetOrderTransactionsResponseType resp = (GetOrderTransactionsResponseType) execute(req); this.returnedOrderArray = resp.getOrderArray(); return this.getReturnedOrderArray(); } /** * Gets the GetOrderTransactionsRequestType.includeFinalValueFees. * @return Boolean */ public Boolean getIncludeFinalValueFees() { return this.includeFinalValueFees; } /** * Sets the GetOrderTransactionsRequestType.includeFinalValueFees. * @param includeFinalValueFees Boolean */ public void setIncludeFinalValueFees(Boolean includeFinalValueFees) { this.includeFinalValueFees = includeFinalValueFees; } /** * Gets the GetOrderTransactionsRequestType.itemTransactionIDArray. * @return ItemTransactionIDArrayType */ public ItemTransactionIDArrayType getItemTransactionIDArray() { return this.itemTransactionIDArray; } /** * Sets the GetOrderTransactionsRequestType.itemTransactionIDArray. * @param itemTransactionIDArray ItemTransactionIDArrayType */ public void setItemTransactionIDArray(ItemTransactionIDArrayType itemTransactionIDArray) { this.itemTransactionIDArray = itemTransactionIDArray; } /** * Gets the GetOrderTransactionsRequestType.orderIDArray. * @return OrderIDArrayType */ public OrderIDArrayType getOrderIDArray() { return this.orderIDArray; } /** * Sets the GetOrderTransactionsRequestType.orderIDArray. * @param orderIDArray OrderIDArrayType */ public void setOrderIDArray(OrderIDArrayType orderIDArray) { this.orderIDArray = orderIDArray; } /** * Gets the GetOrderTransactionsRequestType.platform. * @return TransactionPlatformCodeType */ public TransactionPlatformCodeType getPlatform() { return this.platform; } /** * Sets the GetOrderTransactionsRequestType.platform. * @param platform TransactionPlatformCodeType */ public void setPlatform(TransactionPlatformCodeType platform) { this.platform = platform; } /** * Valid after executing the API. * Gets the returned GetOrderTransactionsResponseType.returnedOrderArray. * * @return OrderArrayType */ public OrderArrayType getReturnedOrderArray() { return this.returnedOrderArray; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy