Commit Graph
118 Commits
Author SHA1 Message Date
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Jacopo Cappellato 49285d92ad Fix to allow for the status change in eBay also when we have the itemId but no transactionId.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820650 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 13:25:45 +00:00
Jacques Le Roux c06d783daa A better name for eBay, suggested by Ashish on dev ML. I also prefer to have the real name!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819464 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 07:18:57 +00:00
Jacques Le Roux 385c5f3bcc Fix bugs when no siteName is provided
Ebay was missing one I added "Ebay" please check if something better should be put there, thanks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819306 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 13:41:33 +00:00
Ashish Vijaywargiya 596c742486 Navigated OrderId link to OrderMgr component.
Also removed default values for productStoreId and webSiteUrl.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818720 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 05:23:54 +00:00
Ashish Vijaywargiya 2d4d1535e7 Encouraging use of Generics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818713 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 04:09:21 +00:00
Ashish Vijaywargiya 8af4d64db6 Encouraging use of Generics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818048 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 10:48:57 +00:00
Ashish Vijaywargiya f7e334910d Here comes another update on eBay for the newly created screen before few days.
That screen was showing the deleted Transactions & Orders that were associated with Seller.

So we have implemented new call "GetMyeBaySelling" (and for sure without this call you can't exclude the deleted orders / transactions). It was more and more of reading and exploring things in eBay area and finally we got good results - so feeling little better now :-).

Thanks Jacopo for your comment to include this feature in OFBiz trunk.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817628 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 12:11:50 +00:00
Ashish Vijaywargiya 8e5a746460 The lowest supported version in eBay is 577.
eBay also recommend to use the latest supported version so changing it to 635 which is the latest and there were so many changes in this version and looks good to go with. Please refer: http://developer.ebay.com/DevZone/XML/docs/WebHelp/ReleaseNotes.html

For more details please refer: 
http://developer.ebay.com/DevZone/XML/docs/HowTo/eBayWS/eBaySchemaVersioning.html#VersionSupportSchedule

For eBay recommendation please refer following line on the same link as shown above:

>>If your application is using a version lower than the lowest supported version, you should upgrade your software to use a supported version. You are encouraged to use the latest version available.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817511 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 06:28:56 +00:00
Ashish Vijaywargiya 97194a5633 Save eiasTokenBuyer value in the PartyAttribute entity so that it can be of use later on for searching partyId value before creating new in database.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817264 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 14:13:53 +00:00
Ashish Vijaywargiya 31783076c3 Now we don't need to parse date. As we are sending the OFBiz supported date format from the previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817225 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 12:26:24 +00:00
Ashish Vijaywargiya 152a2ea426 Display date that we prefer in OFBiz instead of showing eBay date format.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817217 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 12:07:51 +00:00
Ashish Vijaywargiya 2fa5111d99 Removed unused code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817213 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 11:46:40 +00:00
Ashish Vijaywargiya a7bfd07027 Passing productStoreId in context map so it will search database for eBay configuration settings first & then from property file if not found.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817211 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 11:40:44 +00:00
Ashish Vijaywargiya e239469f56 This will allow to fetch eBay configuration values from database first and then from property file if not found.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817206 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 11:06:28 +00:00
Ashish Vijaywargiya d470781162 Minor Fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816499 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 07:12:27 +00:00
Ashish Vijaywargiya 3541e51cb2 Here comes more improvement on the new eBay order screen.
The checkbox will not be visible for the imported orders.
Tooltip is provided for the eBay Transactions and Orders.

PS: Jacopo -> The resultant screen will look like: http://farm3.static.flickr.com/2465/3931094976_fe6e785e3b_b.jpg

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816498 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 07:09:27 +00:00
Ashish Vijaywargiya 928536dedc Now here comes the another update on combining GetOrders & GetSellerTransactions request.
Things are looking pretty good now as we are able to display transactions & orders on the same page.
Also we are able to create Orders for "Ebay Orders" & "Ebay Transactions".



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816473 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 06:04:03 +00:00
Ashish Vijaywargiya df0d501dfb Another pass in Ebay Integration.
-- We are trying to merge GetSellerTransactions & GetOrders request.
-- As GetOrders request don't read the seperate Transactions.

For more details please refer: 
http://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=1468&p_created=1252434669&p_sid=mSqK4dIj&p_accessibility=0&p_redirect=&p_lva=&p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9MzAsMzAmcF9wcm9kcz0wJnBfY2F0cz0mcF9wdj0mcF9jdj0mcF9zZWFyY2hfdHlwZT1hbnN3ZXJzLnNlYXJjaF9ubCZwX3NjZl85PSZwX3NjZl8xMD0mcF9zY2ZfMTI9JnBfc2NmXzEzPSZwX3BhZ2U9MSZwX3NlYXJjaF90ZXh0PUdldE9yZGVycw!!&p_li=&p_topview=1




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816459 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 03:53:06 +00:00
Ashish Vijaywargiya 84556eab7e Removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816152 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 11:47:04 +00:00
Ashish Vijaywargiya 7717818c3a Oops just missed to revert these changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816149 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 11:36:11 +00:00
Ashish Vijaywargiya 5a91a1308c Provided option to see the list of orders from eBay first and then CSR can import the required orders in the system.
Thanks a lot Mridul & Rishi for discussing the better way to handle this case.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816148 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 11:31:48 +00:00
Ashish Vijaywargiya 35fe74d6e5 Here comes the GUI support for eBay Configurations (CRUD operation for EbayConfig entity).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816060 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 05:43:32 +00:00
Ashish Vijaywargiya 2b501534c2 Here comes the GUI support for eBay Shipping Methods (CRUD operation for EbayShippingMethod entity).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815789 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 14:04:31 +00:00
Ashish Vijaywargiya a80dd88866 Moved ShippingMethod & Carrier Party info into entity named "EbayShippingMethod"(new entity).
Prepared demo data to support this feature.Ebay supports couple of shipping method. 
Supported shipping methods list: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/ShippingServiceCodeType.html

In future if we plan to support more methods then we should prepare demo data and we will be done by then.
I will also provide GUI support for this feature soon.

Thanks Jacopo for your comment on this feature implementation.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815743 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 12:48:21 +00:00
Ashish Vijaywargiya 8fcdabd321 Code cleanup for error / success message in old implementation of AddItemRequest in eBay.
It is not good practice to break the process of exporting to eBay if some product don't have starting price.

Instead of this I have collected all the products in the list that don't have starting price and then returned this list at the end. 
Also returned the list of products that has starting price and exported successfully to eBay.
Now after export the screen will looks like: http://farm3.static.flickr.com/2549/3924985627_60903d63bd_b.jpg


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815696 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 09:49:54 +00:00
Ashish Vijaywargiya 1c98c491ab AddItemRequest in ebay code was not allowing export of more then one item to ebay.
In the request you can send the single item at a time and if you wanted to exported more then one item then you may need to call the same request multiple times.For more details please refer link shown below.
http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddItem.html#Request.Item

-- After this commit you can either export one item or more then one item from OFBiz to eBay (OFBiz --> eBay).
-- Moved while loop in the main method so you will also see formating changes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815650 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 07:48:22 +00:00
Ashish Vijaywargiya f52eba705c Improved error and success message in eBay service implemented before few days.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815365 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15 15:22:55 +00:00
Ashish Vijaywargiya 5ea1a35422 Now we have GetOrders request working fine so changing old screen to import only single transactions.
This will help to avoid the duplicate order being created in the system with the help of old screen for importing eBay orders.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815248 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15 10:11:50 +00:00
Ashish Vijaywargiya d2e8033fd1 On testing I observed that GetOrders request was creating duplicate party records if the party with the same name already exists in OFBiz. Fixed the problem in this patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815155 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15 06:01:56 +00:00
Ashish Vijaywargiya 03578ad7f8 Minor fix - This was slipped from my mind in previous commit in eBay.
This will help to ignore already imported orders in the system.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814674 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 14:58:10 +00:00
Ashish Vijaywargiya 55acacfc14 Another pass on eBay Order Imports using GetOrders request.
Following things are done in this patch:

-- Moved commonly used methods to EbayHelper.java file.
-- Created two main methods "readGetOrdersResponse" & "createShoppingCart" to read xml data coming from Ebay and then create order in OFBiz respectively.
-- Also provided sample response XML data that is being generated from Ebay.
-- Changed the UI in which first it was searching orders and then from the orders list we were importing orders.
Now we have only one screen available in which search criteria for order is provided & on the basis of that search criteria order gets imported in OFBiz.
-- Previous work for importing Orders(Not exactly order - it was transaction) is working fine OOTB. 

Here are few things that I am thinking to do in this area soon:
-- Improve error handling code - code cleanup.
-- Provide scheduled service UI(or prepare demo data for scheduling job) in which the orders will be imported automatically in the system instead of searching and then importing done by end user. - Thinking the best way to handle it.

Thanks Rishi & Sumit for discussing few things/ issues in b/w the development of this pass.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814560 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 10:18:43 +00:00
Ashish Vijaywargiya d824f87f4f Initial pass on new call "GetOrders" (More to come in a day or so) - http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetOrders.html. OOTB we have "GetSellersTransactions" call implemented but we have observed something strange in its functionality.
Here are few reason for this implementation:
-- In "GetSellersTransactions" itemId(ProductId in ebay) is provided in the OrderHeader.externalId field which doesn't seems correct.
-- Suppose we have Single Order created in eBay if some one wins the auction and in that order we have 3 order items.
Then "GetSellersTransaction" call creates three orders in OFBiz for all those three items that are associated with Single Ebay order.
In short "GetSellersTransaction" request treat three item as three transactions.
-- "GetOrders" call will return the list of orders on the basis of search criteria and then we will create(Import) the Order in OFBiz from the resultant list of orders.
-- Current implementation for "GetSellersTransactions" will remain as it is in trunk - as we don't know if someone might be using it in their custom projects.

Also did miscellaneous cleanup.
Thanks Jacopo for providing your notes for this implementation & also discussing issues in b/w development - as always your notes were awesome.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813444 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 13:58:33 +00:00
Ashish Vijaywargiya ceea618353 Cleanup - Moved the screens definition to appropriate location.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812948 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 13:25:25 +00:00
Ashish Vijaywargiya 7e4472151c Improved the eBay code for OrderImport - as it was broken due to missing ShipmentMethodType values.
Now I am able to import order successfully in ebay component.
Thanks Jacopo for discussing things with me in this Ebay component(like workflow and many more) and providing useful notes in achieving the goals.
My previous contribution in Ebay area was based on Jacopo's notes - more to come in a day or so.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812777 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 05:24:43 +00:00
Ashish Vijaywargiya ab2399edd3 Removed duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812462 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 11:15:20 +00:00
Ashish Vijaywargiya b9e1b86fd0 Moving a method that prepares EbayConfigurations to Helper class - These configuration settings can be used by few methods / services present inside ImportOrdersFromEbay.java. Will reduce the duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812437 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 10:28:55 +00:00
Ashish Vijaywargiya 0a735c1e4a Added following feature in ebay export:
-- Buy it now is the optional value for a product that you send to eBay. Once this value is entered by user - this option allow user to win auction immediately. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812343 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 05:00:56 +00:00
Ashish Vijaywargiya 1b3f6bd28b User friendly message will be displayed to User Interface. More improvements can be done in this commit.
Now the message looks like:

In case of success:
The following occurred:
The data exported successfully to eBay.

In case of error:
The Following Errors Occurred:
Input data for tag <Item.Quantity> is invalid or missing. Please check API documentation.

Previously the message was shown as it is in XML form returned from ebay server.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812213 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 16:04:16 +00:00
Hans Bakker 42ce8ca70c added dummy record to make ebay demo data load the first time
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811965 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 01:32:43 +00:00
Ashish Vijaywargiya 0a7be805af Now added customXml on the User Interface so that user can change the values passed from there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811652 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 14:19:23 +00:00
Ashish Vijaywargiya 763c933850 Following things are done in this commit.
-- Moved eBay configuration settings to a new entity - EbayConfig. Property file configuration support also exists in current code.
-- Also prepared the demo data for this new entity.
-- For default webSiteUrl prepared demo data in WebSite entity so we can show default value on the form.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811645 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 13:32:12 +00:00
Ashish Vijaywargiya d60557d9b4 Removed Duplicate Code - Created new method that fetch values from property file and return those values in a map.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811619 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 10:47:59 +00:00
Ashish Vijaywargiya e5a723cb59 Few more improvements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811606 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 08:43:36 +00:00
Ashish Vijaywargiya 4b5702211c Minor Improvements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811600 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 08:01:59 +00:00
Jacopo Cappellato 53008d2f2b Misc enhancements to the eBay export: hardcoded values moved from source files to configuration file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811380 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 13:12:07 +00:00
Ashish Vijaywargiya 709ccb6927 Small fix - This was blocking Ebay request with empty description.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@810981 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 14:51:29 +00:00
Jacopo Cappellato 094d1b184f A bunch of enhancements and cleanups for the eBay component; added ability to:
* export product images to eBay Action
* export a description based on content (a new product content type has been added for this purpose)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809539 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 11:24:43 +00:00
Jacopo Cappellato 21d7ea22e0 Enhancements to the way eBay categories are set:
* improved ui to better handle manual selection of the ebay category
* added support for automatic export of category based on the ProductCategory set (for eBay) for the product


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808972 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 17:59:39 +00:00
Jacopo Cappellato 4d6a38a7fb Better default values for export options for eBay auctions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808849 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 11:11:23 +00:00