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

com.ebay.sdk.call.AddDisputeCall 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.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 buyer or seller opened a * case (or why seller canceled an order line item). 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 - The unique identifier of the Unpaid Item or Mutually Canceled Transaction case * that was successfully created with the AddDispute call. * * @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. *

* Note: * This call is only used by sellers to create an Unpaid Item case or to mutually cancel a single line item order. * * *
* @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 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy