Changes since
the last release

com.ebay.sdk.call
Class SendInvoiceCall

java.lang.Object
  extended by com.ebay.sdk.ApiCall
      extended by com.ebay.sdk.call.SendInvoiceCall

public class SendInvoiceCall
extends ApiCall

Wrapper class of the SendInvoice 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: ItemID - Unique identifier for an eBay listing. Unless OrderID or OrderLineItemID is provided in the request, the ItemID (or SKU) is required and must be paired with the corresponding TransactionID to identify a single line item order. For a multiple line item (Combined Invoice) order, OrderID should be used.
Input property: TransactionID - Unique identifier for an eBay order line item. An order line item is created once there is a commitment from a buyer to purchase an item. Since an auction listing can only have one order line item during the duration of the listing, the TransactionID for auction listings is always 0. Unless OrderID or OrderLineItemID is provided in the request, the TransactionID is required and must be paired with the corresponding ItemID to identify a single line item order. For a multiple line item (Combined Invoice) order, OrderID should be used.
Input property: OrderID - A unique identifier that identifies a single line item or multiple line item (Combined Invoice) order.

For a single line item order, the OrderID value is identical to the OrderLineItemID value that is generated upon creation of the order line item. For a Combined Invoice order, the OrderID value is created by eBay when the buyer or seller (sharing multiple, common order line items) combines multiple order line items into a Combined Invoice order. A Combined Invoice order can also be created by the seller through the AddOrder call.

Unless the ItemID (or SKU) and corresponding TransactionID, or the OrderLineItemID is provided in the request to identify a single line item order, the OrderID must be specified. If OrderID is specified, OrderLineItemID, ItemID, TransactionID, and SKU are ignored if present in the same request.
Input property: InternationalShippingServiceOptions - If the buyer has an International shipping address, use this container to offer up to four International shipping services (or five if one of them is a Global Shipping Program service). If International shipping services are offered, (domestic) ShippingServiceOptions should not be included in the request.

Input property: ShippingServiceOptions - If the buyer has a domestic shipping address, use this container to offer up to four domestic shipping services. If domestic shipping services are offered, InternationalShippingServiceOptions should not be included in the request.

Input property: SalesTax - This container is used if the seller wishes to apply sales tax to the order. The amount of sales tax applied to the order is dependent on the sales tax rate in the buyer's state and whether sales tax is being applied to the cost of the order only or the cost of the order plus shipping and handling.
Input property: InsuranceOption - This field is no longer applicable as it is not longer possible for a seller to offer a buyer shipping insurance.
Input property: InsuranceFee - This field is no longer applicable as it is not longer possible for a seller to offer a buyer shipping insurance.
Input property: PaymentMethods - This optional field allows a US or German seller to add specific payment methods that were not in the original item listing. The only valid values for this field are 'PayPal' for a US listing, or 'MoneyXferAcceptedInCheckout' (CIP+) for a DE listing.
Input property: PayPalEmailAddress - If the PaymentMethods field is used and set to PayPal, the seller provides his/her PayPal email address in this field.
Input property: CheckoutInstructions - This field allows the seller to provide a message or instructions regarding checkout/payment, or the return policy.
Input property: EmailCopyToSeller - Flag indicating whether or not the seller wishes to receive an email copy of the invoice sent to the buyer.
Input property: CODCost - This dollar value indicates the money due from the buyer upon delivery of the item.

This field should only be specified in the SendInvoice request if 'COD' (cash-on-delivery) was the payment method selected by the buyer and it is included as the PaymentMethods value in the same request.
Input property: SKU - The seller's unique identifier for an item that is being tracked by this SKU. If OrderID or OrderLineItemID are not provided, both SKU (or ItemID) and corresponding TransactionID must be provided to uniquely identify a single line item order. For a multiple line item (Combined Payment) order, OrderID must be used.

This field can only be used if the Item.InventoryTrackingMethod field (set with the AddFixedPriceItem or RelistFixedPriceItem calls) is set to SKU.
Input property: OrderLineItemID - A unique identifier for an eBay order line item. This field is created as soon as there is a commitment to buy from the seller, and its value is based upon the concatenation of ItemID and TransactionID, with a hyphen in between these two IDs.

Unless the ItemID (or SKU) and corresponding TransactionID is used to identify a single line item order, or the OrderID is used to identify a single or multiple line item (Combined Invoice) order, the OrderLineItemID must be specified. For a multiple line item (Combined Invoice) order, OrderID should be used. If OrderLineItemID is specified, ItemID, TransactionID, and SKU are ignored if present in the same request.
Input property: AdjustmentAmount - This field allows the seller to adjust the total cost of the order to account for an extra charge or to pass down a discount to the buyer.

The currency used in this field must be the same currency of the listing site. A positive value in this field indicates that the amount is an extra charge being paid to the seller by the buyer, and a negative value indicates that the amount is a discount given to the buyer by the seller.

Version:
1.0
Author:
Ron Murphy

Field Summary
 
Fields inherited from class com.ebay.sdk.ApiCall
apiException, sendReqListeners
 
Constructor Summary
SendInvoiceCall()
          Constructor.
SendInvoiceCall(ApiContext apiContext)
          Constructor.
 
Method Summary
 AmountType getAdjustmentAmount()
          Gets the SendInvoiceRequestType.adjustmentAmount.
 java.lang.String getCheckoutInstructions()
          Gets the SendInvoiceRequestType.checkoutInstructions.
 AmountType getCODCost()
          Gets the SendInvoiceRequestType.cODCost.
 java.lang.Boolean getEmailCopyToSeller()
          Gets the SendInvoiceRequestType.emailCopyToSeller.
 AmountType getInsuranceFee()
          Gets the SendInvoiceRequestType.insuranceFee.
 InsuranceOptionCodeType getInsuranceOption()
          Gets the SendInvoiceRequestType.insuranceOption.
 InternationalShippingServiceOptionsType[] getInternationalShippingServiceOptions()
          Gets the SendInvoiceRequestType.internationalShippingServiceOptions.
 java.lang.String getItemID()
          Gets the SendInvoiceRequestType.itemID.
 java.lang.String getOrderID()
          Gets the SendInvoiceRequestType.orderID.
 java.lang.String getOrderLineItemID()
          Gets the SendInvoiceRequestType.orderLineItemID.
 BuyerPaymentMethodCodeType[] getPaymentMethods()
          Gets the SendInvoiceRequestType.paymentMethods.
 java.lang.String getPayPalEmailAddress()
          Gets the SendInvoiceRequestType.payPalEmailAddress.
 SalesTaxType getSalesTax()
          Gets the SendInvoiceRequestType.salesTax.
 SendInvoiceRequestType getSendInvoiceRequest()
          Gets the SendInvoiceRequestType.sendInvoiceRequest.
 ShippingServiceOptionsType[] getShippingServiceOptions()
          Gets the SendInvoiceRequestType.shippingServiceOptions.
 java.lang.String getSKU()
          Gets the SendInvoiceRequestType.sKU.
 java.lang.String getTransactionID()
          Gets the SendInvoiceRequestType.transactionID.
 void sendInvoice()
          Enables a seller to send an order invoice to a buyer.
 void setAdjustmentAmount(AmountType adjustmentAmount)
          Sets the SendInvoiceRequestType.adjustmentAmount.
 void setCheckoutInstructions(java.lang.String checkoutInstructions)
          Sets the SendInvoiceRequestType.checkoutInstructions.
 void setCODCost(AmountType cODCost)
          Sets the SendInvoiceRequestType.cODCost.
 void setEmailCopyToSeller(java.lang.Boolean emailCopyToSeller)
          Sets the SendInvoiceRequestType.emailCopyToSeller.
 void setInsuranceFee(AmountType insuranceFee)
          Sets the SendInvoiceRequestType.insuranceFee.
 void setInsuranceOption(InsuranceOptionCodeType insuranceOption)
          Sets the SendInvoiceRequestType.insuranceOption.
 void setInternationalShippingServiceOptions(InternationalShippingServiceOptionsType[] internationalShippingServiceOptions)
          Sets the SendInvoiceRequestType.internationalShippingServiceOptions.
 void setItemID(java.lang.String itemID)
          Sets the SendInvoiceRequestType.itemID.
 void setOrderID(java.lang.String orderID)
          Sets the SendInvoiceRequestType.orderID.
 void setOrderLineItemID(java.lang.String orderLineItemID)
          Sets the SendInvoiceRequestType.orderLineItemID.
 void setPaymentMethods(BuyerPaymentMethodCodeType[] paymentMethods)
          Sets the SendInvoiceRequestType.paymentMethods.
 void setPayPalEmailAddress(java.lang.String payPalEmailAddress)
          Sets the SendInvoiceRequestType.payPalEmailAddress.
 void setSalesTax(SalesTaxType salesTax)
          Sets the SendInvoiceRequestType.salesTax.
 void setSendInvoiceRequest(SendInvoiceRequestType sendInvoiceRequest)
          Sets the SendInvoiceRequestType.sendInvoiceRequest.
 void setShippingServiceOptions(ShippingServiceOptionsType[] shippingServiceOptions)
          Sets the SendInvoiceRequestType.shippingServiceOptions.
 void setSKU(java.lang.String sKU)
          Sets the SendInvoiceRequestType.sKU.
 void setTransactionID(java.lang.String transactionID)
          Sets the SendInvoiceRequestType.transactionID.
 
Methods inherited from class com.ebay.sdk.ApiCall
addDetailLevel, addSendRequestListener, execute, executeByApiName, getApiContext, getApiException, getBotBlock, getCallRetry, getDetailLevel, getEnableCompression, getEndUserIP, getErrorHandling, getInvocationID, getMessageID, getOutputSelector, getRequestXml, getResponseObject, getResponseXml, getSite, getWarningLevel, hasError, hasWarning, isEnableoAuthTokenHTTPHeader, removeSendRequestListener, setApiContext, setBotBlock, setCallRetry, setDetailLevel, setEnableCompression, setEnableoAuthTokenHTTPHeader, setEndUserIP, setErrorHandling, setInvocationID, setMessageID, setOutputSelector, setSite, setWarningLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendInvoiceCall

public SendInvoiceCall()
Constructor.


SendInvoiceCall

public SendInvoiceCall(ApiContext apiContext)
Constructor.

Parameters:
apiContext - The ApiContext object to be used to make the call.
Method Detail

sendInvoice

public void sendInvoice()
                 throws ApiException,
                        SdkException,
                        java.lang.Exception
Enables a seller to send an order invoice to a buyer. Where applicable, updates to shipping, payment methods, and sales tax made in this request are applied to the specified order as a whole and to the individual order line items whose data are stored in individual Transaction objects.

Throws:
ApiException
SdkException
java.lang.Exception

getSendInvoiceRequest

public SendInvoiceRequestType getSendInvoiceRequest()
Gets the SendInvoiceRequestType.sendInvoiceRequest.

Returns:
SendInvoiceRequestType

setSendInvoiceRequest

public void setSendInvoiceRequest(SendInvoiceRequestType sendInvoiceRequest)
Sets the SendInvoiceRequestType.sendInvoiceRequest.

Parameters:
sendInvoiceRequest - SendInvoiceRequestType

getAdjustmentAmount

public AmountType getAdjustmentAmount()
Gets the SendInvoiceRequestType.adjustmentAmount.

Returns:
AmountType

setAdjustmentAmount

public void setAdjustmentAmount(AmountType adjustmentAmount)
Sets the SendInvoiceRequestType.adjustmentAmount.

Parameters:
adjustmentAmount - AmountType

getCODCost

public AmountType getCODCost()
Gets the SendInvoiceRequestType.cODCost.

Returns:
AmountType

setCODCost

public void setCODCost(AmountType cODCost)
Sets the SendInvoiceRequestType.cODCost.

Parameters:
cODCost - AmountType

getCheckoutInstructions

public java.lang.String getCheckoutInstructions()
Gets the SendInvoiceRequestType.checkoutInstructions.

Returns:
String

setCheckoutInstructions

public void setCheckoutInstructions(java.lang.String checkoutInstructions)
Sets the SendInvoiceRequestType.checkoutInstructions.

Parameters:
checkoutInstructions - String

getEmailCopyToSeller

public java.lang.Boolean getEmailCopyToSeller()
Gets the SendInvoiceRequestType.emailCopyToSeller.

Returns:
Boolean

setEmailCopyToSeller

public void setEmailCopyToSeller(java.lang.Boolean emailCopyToSeller)
Sets the SendInvoiceRequestType.emailCopyToSeller.

Parameters:
emailCopyToSeller - Boolean

getInsuranceFee

public AmountType getInsuranceFee()
Gets the SendInvoiceRequestType.insuranceFee.

Returns:
AmountType

setInsuranceFee

public void setInsuranceFee(AmountType insuranceFee)
Sets the SendInvoiceRequestType.insuranceFee.

Parameters:
insuranceFee - AmountType

getInsuranceOption

public InsuranceOptionCodeType getInsuranceOption()
Gets the SendInvoiceRequestType.insuranceOption.

Returns:
InsuranceOptionCodeType

setInsuranceOption

public void setInsuranceOption(InsuranceOptionCodeType insuranceOption)
Sets the SendInvoiceRequestType.insuranceOption.

Parameters:
insuranceOption - InsuranceOptionCodeType

getInternationalShippingServiceOptions

public InternationalShippingServiceOptionsType[] getInternationalShippingServiceOptions()
Gets the SendInvoiceRequestType.internationalShippingServiceOptions.

Returns:
InternationalShippingServiceOptionsType[]

setInternationalShippingServiceOptions

public void setInternationalShippingServiceOptions(InternationalShippingServiceOptionsType[] internationalShippingServiceOptions)
Sets the SendInvoiceRequestType.internationalShippingServiceOptions.

Parameters:
internationalShippingServiceOptions - InternationalShippingServiceOptionsType[]

getItemID

public java.lang.String getItemID()
Gets the SendInvoiceRequestType.itemID.

Returns:
String

setItemID

public void setItemID(java.lang.String itemID)
Sets the SendInvoiceRequestType.itemID.

Parameters:
itemID - String

getOrderID

public java.lang.String getOrderID()
Gets the SendInvoiceRequestType.orderID.

Returns:
String

setOrderID

public void setOrderID(java.lang.String orderID)
Sets the SendInvoiceRequestType.orderID.

Parameters:
orderID - String

getOrderLineItemID

public java.lang.String getOrderLineItemID()
Gets the SendInvoiceRequestType.orderLineItemID.

Returns:
String

setOrderLineItemID

public void setOrderLineItemID(java.lang.String orderLineItemID)
Sets the SendInvoiceRequestType.orderLineItemID.

Parameters:
orderLineItemID - String

getPayPalEmailAddress

public java.lang.String getPayPalEmailAddress()
Gets the SendInvoiceRequestType.payPalEmailAddress.

Returns:
String

setPayPalEmailAddress

public void setPayPalEmailAddress(java.lang.String payPalEmailAddress)
Sets the SendInvoiceRequestType.payPalEmailAddress.

Parameters:
payPalEmailAddress - String

getPaymentMethods

public BuyerPaymentMethodCodeType[] getPaymentMethods()
Gets the SendInvoiceRequestType.paymentMethods.

Returns:
BuyerPaymentMethodCodeType[]

setPaymentMethods

public void setPaymentMethods(BuyerPaymentMethodCodeType[] paymentMethods)
Sets the SendInvoiceRequestType.paymentMethods.

Parameters:
paymentMethods - BuyerPaymentMethodCodeType[]

getSKU

public java.lang.String getSKU()
Gets the SendInvoiceRequestType.sKU.

Returns:
String

setSKU

public void setSKU(java.lang.String sKU)
Sets the SendInvoiceRequestType.sKU.

Parameters:
sKU - String

getSalesTax

public SalesTaxType getSalesTax()
Gets the SendInvoiceRequestType.salesTax.

Returns:
SalesTaxType

setSalesTax

public void setSalesTax(SalesTaxType salesTax)
Sets the SendInvoiceRequestType.salesTax.

Parameters:
salesTax - SalesTaxType

getShippingServiceOptions

public ShippingServiceOptionsType[] getShippingServiceOptions()
Gets the SendInvoiceRequestType.shippingServiceOptions.

Returns:
ShippingServiceOptionsType[]

setShippingServiceOptions

public void setShippingServiceOptions(ShippingServiceOptionsType[] shippingServiceOptions)
Sets the SendInvoiceRequestType.shippingServiceOptions.

Parameters:
shippingServiceOptions - ShippingServiceOptionsType[]

getTransactionID

public java.lang.String getTransactionID()
Gets the SendInvoiceRequestType.transactionID.

Returns:
String

setTransactionID

public void setTransactionID(java.lang.String transactionID)
Sets the SendInvoiceRequestType.transactionID.

Parameters:
transactionID - String

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.