com.ebay.sdk.call.AddDisputeCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebaysdkcore Show documentation
Show all versions of ebaysdkcore Show documentation
This SDK enables you to use Java to make API calls in the eBay Trading API, which is an XML API.
This maven build is provided by tonicsoft for convenience and is an exact copy of version 981 of
the project distributed by eBay via the official eBay SDK website.
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 root directory at /LICENSE.txt.
*/
package com.ebay.sdk.call;
import java.lang.String;
import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
* Wrapper class of the AddDispute 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: DisputeExplanation
- This enumerated value gives the explanation of why the seller opened a
* case (or why seller canceled a single line item order). Not all values contained in
* DisputeExplanationCodeType are allowed in the
* AddDispute call, and the values that are allowed must match
* the DisputeReason value.
*
Input property: DisputeReason
- The enumeration value passed into this required field will depend on the action being taken. The seller will pass in BuyerHasNotPaid
if the seller is creating an Unpaid Item case against the buyer, or
* TransactionMutuallyCanceled
if the seller is cancelling a single line item order at the request of the buyer, or if the seller has ran out of stock on the item or otherwise cannot fulfill the order.
*
Input property: ItemID
- Unique identifier of an eBay item listing. To identify a specific order line item, either an ItemID/TransactionID pair or an OrderLineItemID value must be passed in the request. So, unless OrderLineItemID is used, this field is required.
*
*
Input property: TransactionID
- The unique identifier of a buyer's purchase. A TransactionID is created by eBay once a buyer purchases the item through a fixed-priced listing or by using the Buy It Now feature in an auction listing, or when an auction listing ends with a winning bidder. To identify a specific order line item, either an ItemID/TransactionID pair or an OrderLineItemID value must be passed in the request. So, unless OrderLineItemID is used, this field is required.
*
*
Input property: OrderLineItemID
- OrderLineItemID is a unique identifier of an order line item, and is based upon the concatenation of ItemID and TransactionID, with a hyphen in between these two IDs. To identify a specific order line item, either an ItemID/TransactionID pair or an OrderLineItemID value must be passed in the request. So, unless ItemID/TransactionID pair is used, this field is required.
*
*
Output property: ReturnedDisputeID
- This field will show the unique identifier of an Unpaid Item case that was created, or the unique identifier of the order cancellation.
*
* @author Ron Murphy
* @version 1.0
*/
public class AddDisputeCall extends com.ebay.sdk.ApiCall
{
private DisputeExplanationCodeType disputeExplanation = null;
private DisputeReasonCodeType disputeReason = null;
private String itemID = null;
private String transactionID = null;
private String orderLineItemID = null;
private String returnedDisputeID=null;
/**
* Constructor.
*/
public AddDisputeCall() {
}
/**
* Constructor.
* @param apiContext The ApiContext object to be used to make the call.
*/
public AddDisputeCall(ApiContext apiContext) {
super(apiContext);
}
/**
* Enables a seller to create an Unpaid Item case against a buyer, or to cancel a
* single line item order. The seller is eligible to open up an Unpaid Item case two days after the buyer purchases the item or wins the item through an auction. To cancel a multiple line item order programmatically, the seller would have to use the POST /post-order/v2/cancellation call of the Post-Order API.
*
*
* @throws ApiException
* @throws SdkException
* @throws Exception
* @return The String object.
*/
public String addDispute()
throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception
{
AddDisputeRequestType req;
req = new AddDisputeRequestType();
if (this.disputeExplanation != null)
req.setDisputeExplanation(this.disputeExplanation);
if (this.disputeReason != null)
req.setDisputeReason(this.disputeReason);
if (this.itemID != null)
req.setItemID(this.itemID);
if (this.transactionID != null)
req.setTransactionID(this.transactionID);
if (this.orderLineItemID != null)
req.setOrderLineItemID(this.orderLineItemID);
AddDisputeResponseType resp = (AddDisputeResponseType) execute(req);
this.returnedDisputeID = resp.getDisputeID();
return this.getReturnedDisputeID();
}
/**
* Gets the AddDisputeRequestType.disputeExplanation.
* @return DisputeExplanationCodeType
*/
public DisputeExplanationCodeType getDisputeExplanation()
{
return this.disputeExplanation;
}
/**
* Sets the AddDisputeRequestType.disputeExplanation.
* @param disputeExplanation DisputeExplanationCodeType
*/
public void setDisputeExplanation(DisputeExplanationCodeType disputeExplanation)
{
this.disputeExplanation = disputeExplanation;
}
/**
* Gets the AddDisputeRequestType.disputeReason.
* @return DisputeReasonCodeType
*/
public DisputeReasonCodeType getDisputeReason()
{
return this.disputeReason;
}
/**
* Sets the AddDisputeRequestType.disputeReason.
* @param disputeReason DisputeReasonCodeType
*/
public void setDisputeReason(DisputeReasonCodeType disputeReason)
{
this.disputeReason = disputeReason;
}
/**
* Gets the AddDisputeRequestType.itemID.
* @return String
*/
public String getItemID()
{
return this.itemID;
}
/**
* Sets the AddDisputeRequestType.itemID.
* @param itemID String
*/
public void setItemID(String itemID)
{
this.itemID = itemID;
}
/**
* Gets the AddDisputeRequestType.orderLineItemID.
* @return String
*/
public String getOrderLineItemID()
{
return this.orderLineItemID;
}
/**
* Sets the AddDisputeRequestType.orderLineItemID.
* @param orderLineItemID String
*/
public void setOrderLineItemID(String orderLineItemID)
{
this.orderLineItemID = orderLineItemID;
}
/**
* Gets the AddDisputeRequestType.transactionID.
* @return String
*/
public String getTransactionID()
{
return this.transactionID;
}
/**
* Sets the AddDisputeRequestType.transactionID.
* @param transactionID String
*/
public void setTransactionID(String transactionID)
{
this.transactionID = transactionID;
}
/**
* Valid after executing the API.
* Gets the returned AddDisputeResponseType.returnedDisputeID.
*
* @return String
*/
public String getReturnedDisputeID()
{
return this.returnedDisputeID;
}
}