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