Package org.apache.ofbiz.ebay
Class EbayHelper
- java.lang.Object
-
- org.apache.ofbiz.ebay.EbayHelper
-
public class EbayHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
resource
-
Constructor Summary
Constructors Constructor Description EbayHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
appendRequesterCredentials(org.w3c.dom.Element elem, org.w3c.dom.Document doc, java.lang.String token)
static java.util.Map<java.lang.String,java.lang.Object>
buildEbayConfig(java.util.Map<java.lang.String,java.lang.Object> context, Delegator delegator)
static java.lang.String
convertDate(java.lang.String dateIn, java.lang.String fromDateFormat, java.lang.String toDateFormat)
static void
correctCityStateCountry(LocalDispatcher dispatcher, java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String city, java.lang.String state, java.lang.String country)
static java.lang.String
createAddress(LocalDispatcher dispatcher, java.lang.String partyId, GenericValue userLogin, java.lang.String contactMechPurposeTypeId, java.util.Map<java.lang.String,java.lang.Object> address)
static java.lang.String
createCustomerParty(LocalDispatcher dispatcher, java.lang.String name, GenericValue userLogin)
static void
createEbayCustomer(LocalDispatcher dispatcher, java.lang.String partyId, java.lang.String ebayUserIdBuyer, java.lang.String eias, GenericValue userLogin)
static java.lang.String
createPartyEmail(LocalDispatcher dispatcher, java.lang.String partyId, java.lang.String email, GenericValue userLogin)
static java.lang.String
createPartyPhone(LocalDispatcher dispatcher, java.lang.String partyId, java.lang.String phoneNumber, GenericValue userLogin)
static boolean
createPayment(LocalDispatcher dispatcher, GenericValue userLogin, GenericValue paymentPreference, java.lang.String orderId, java.lang.String externalId, java.sql.Timestamp orderDate, java.lang.String partyIdFrom)
static boolean
createPaymentFromPaymentPreferences(Delegator delegator, LocalDispatcher dispatcher, GenericValue userLogin, java.lang.String orderId, java.lang.String externalId, java.sql.Timestamp orderDate, java.math.BigDecimal amount, java.lang.String partyIdFrom)
static java.util.Map<java.lang.String,java.lang.Object>
getCountryGeoId(Delegator delegator, java.lang.String geoCode)
static GenericValue
makeOrderAdjustment(Delegator delegator, java.lang.String orderAdjustmentTypeId, java.lang.String orderId, java.lang.String orderItemSeqId, java.lang.String shipGroupSeqId, double amount, double sourcePercentage)
static java.util.Map<java.lang.String,java.lang.Object>
postItem(java.lang.String postItemsUrl, java.lang.StringBuffer generatedXmlData, java.lang.String devID, java.lang.String appID, java.lang.String certID, java.lang.String callName, java.lang.String compatibilityLevel, java.lang.String siteID)
static java.lang.String
retrieveProductIdFromTitle(Delegator delegator, java.lang.String title)
static java.lang.String
setEmailContactMech(LocalDispatcher dispatcher, Delegator delegator, GenericValue party, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> context)
static java.lang.String
setPhoneContactMech(LocalDispatcher dispatcher, Delegator delegator, GenericValue party, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> context)
static void
setShipmentMethodType(ShoppingCart cart, java.lang.String shippingService, java.lang.String productStoreId, Delegator delegator)
static java.lang.String
setShippingAddressContactMech(LocalDispatcher dispatcher, Delegator delegator, GenericValue party, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> context)
static java.lang.String
toString(java.io.InputStream inputStream)
-
-
-
Field Detail
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildEbayConfig
public static java.util.Map<java.lang.String,java.lang.Object> buildEbayConfig(java.util.Map<java.lang.String,java.lang.Object> context, Delegator delegator)
-
appendRequesterCredentials
public static void appendRequesterCredentials(org.w3c.dom.Element elem, org.w3c.dom.Document doc, java.lang.String token)
-
postItem
public static java.util.Map<java.lang.String,java.lang.Object> postItem(java.lang.String postItemsUrl, java.lang.StringBuffer generatedXmlData, java.lang.String devID, java.lang.String appID, java.lang.String certID, java.lang.String callName, java.lang.String compatibilityLevel, java.lang.String siteID) throws java.io.IOException
- Throws:
java.io.IOException
-
convertDate
public static java.lang.String convertDate(java.lang.String dateIn, java.lang.String fromDateFormat, java.lang.String toDateFormat)
-
toString
public static java.lang.String toString(java.io.InputStream inputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
setShipmentMethodType
public static void setShipmentMethodType(ShoppingCart cart, java.lang.String shippingService, java.lang.String productStoreId, Delegator delegator)
-
createPaymentFromPaymentPreferences
public static boolean createPaymentFromPaymentPreferences(Delegator delegator, LocalDispatcher dispatcher, GenericValue userLogin, java.lang.String orderId, java.lang.String externalId, java.sql.Timestamp orderDate, java.math.BigDecimal amount, java.lang.String partyIdFrom)
-
createPayment
public static boolean createPayment(LocalDispatcher dispatcher, GenericValue userLogin, GenericValue paymentPreference, java.lang.String orderId, java.lang.String externalId, java.sql.Timestamp orderDate, java.lang.String partyIdFrom)
-
makeOrderAdjustment
public static GenericValue makeOrderAdjustment(Delegator delegator, java.lang.String orderAdjustmentTypeId, java.lang.String orderId, java.lang.String orderItemSeqId, java.lang.String shipGroupSeqId, double amount, double sourcePercentage)
-
createCustomerParty
public static java.lang.String createCustomerParty(LocalDispatcher dispatcher, java.lang.String name, GenericValue userLogin)
-
createAddress
public static java.lang.String createAddress(LocalDispatcher dispatcher, java.lang.String partyId, GenericValue userLogin, java.lang.String contactMechPurposeTypeId, java.util.Map<java.lang.String,java.lang.Object> address)
-
correctCityStateCountry
public static void correctCityStateCountry(LocalDispatcher dispatcher, java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String city, java.lang.String state, java.lang.String country)
-
createPartyPhone
public static java.lang.String createPartyPhone(LocalDispatcher dispatcher, java.lang.String partyId, java.lang.String phoneNumber, GenericValue userLogin)
-
createPartyEmail
public static java.lang.String createPartyEmail(LocalDispatcher dispatcher, java.lang.String partyId, java.lang.String email, GenericValue userLogin)
-
createEbayCustomer
public static void createEbayCustomer(LocalDispatcher dispatcher, java.lang.String partyId, java.lang.String ebayUserIdBuyer, java.lang.String eias, GenericValue userLogin)
-
getCountryGeoId
public static java.util.Map<java.lang.String,java.lang.Object> getCountryGeoId(Delegator delegator, java.lang.String geoCode)
-
setShippingAddressContactMech
public static java.lang.String setShippingAddressContactMech(LocalDispatcher dispatcher, Delegator delegator, GenericValue party, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> context)
-
setEmailContactMech
public static java.lang.String setEmailContactMech(LocalDispatcher dispatcher, Delegator delegator, GenericValue party, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> context)
-
setPhoneContactMech
public static java.lang.String setPhoneContactMech(LocalDispatcher dispatcher, Delegator delegator, GenericValue party, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> context)
-
retrieveProductIdFromTitle
public static java.lang.String retrieveProductIdFromTitle(Delegator delegator, java.lang.String title)
-
-