ebayapi 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. data/CHANGELOG +6 -0
  2. data/Rakefile +2 -2
  3. data/examples/add_item.rb +50 -0
  4. data/examples/add_member_message_aaq_to_partner.rb +33 -0
  5. data/examples/config.rb +10 -0
  6. data/examples/end_item.rb +18 -0
  7. data/examples/get_api_usage.rb +21 -0
  8. data/examples/get_attributes_xsl.rb +26 -0
  9. data/examples/get_ebay_details.rb +22 -0
  10. data/examples/get_ebay_time.rb +33 -0
  11. data/examples/get_ebay_time_raw.rb +31 -0
  12. data/examples/get_item.rb +25 -0
  13. data/examples/get_item_transactions.rb +36 -0
  14. data/examples/get_items_selling.rb +26 -0
  15. data/examples/get_my_messages.rb +21 -0
  16. data/examples/get_my_messages_folders.rb +20 -0
  17. data/examples/get_notification_preferences.rb +36 -0
  18. data/examples/get_notifications_usage.rb +23 -0
  19. data/examples/get_product_finder_xsl.rb +27 -0
  20. data/examples/get_search_results.rb +51 -0
  21. data/examples/get_user.rb +26 -0
  22. data/examples/mark_my_messages_message_as_read.rb +22 -0
  23. data/examples/revise_item.rb +34 -0
  24. data/examples/set_notification_preferences.rb +27 -0
  25. data/examples/verify_add_item.rb +37 -0
  26. data/lib/ebay/api.rb +5 -5
  27. data/lib/ebay/api_methods.rb +8 -0
  28. data/lib/ebay/requests.rb +1 -0
  29. data/lib/ebay/requests/get_category_listings.rb +3 -0
  30. data/lib/ebay/requests/get_my_ebay_buying.rb +3 -0
  31. data/lib/ebay/requests/get_search_results.rb +11 -0
  32. data/lib/ebay/requests/set_shipping_discount_profiles.rb +3 -3
  33. data/lib/ebay/requests/upload_site_hosted_pictures.rb +22 -0
  34. data/lib/ebay/responses.rb +1 -0
  35. data/lib/ebay/responses/get_my_ebay_buying.rb +3 -0
  36. data/lib/ebay/responses/get_shipping_discount_profiles.rb +3 -3
  37. data/lib/ebay/responses/upload_site_hosted_pictures.rb +18 -0
  38. data/lib/ebay/schema/mapper/ebay_schema_importer.rb +1 -1
  39. data/lib/ebay/schema/mapper/ruby_class_generator.rb +1 -1
  40. data/lib/ebay/schema/mapper/templates/xsl_file.erb +2 -1
  41. data/lib/ebay/schema/version.rb +1 -1
  42. data/lib/ebay/types.rb +8 -0
  43. data/lib/ebay/types/ad_format_lead.rb +2 -0
  44. data/lib/ebay/types/base64_binary.rb +17 -0
  45. data/lib/ebay/types/bid_assistant_list.rb +17 -0
  46. data/lib/ebay/types/bid_group.rb +22 -0
  47. data/lib/ebay/types/bid_group_array.rb +16 -0
  48. data/lib/ebay/types/bid_group_item.rb +20 -0
  49. data/lib/ebay/types/bid_group_item_status_code.rb +16 -0
  50. data/lib/ebay/types/bid_group_status_code.rb +11 -0
  51. data/lib/ebay/types/bid_range.rb +17 -0
  52. data/lib/ebay/types/bidding_details.rb +2 -0
  53. data/lib/ebay/types/buyer_protection_details.rb +17 -0
  54. data/lib/ebay/types/buyer_protection_source_code.rb +11 -0
  55. data/lib/ebay/types/category_feature.rb +2 -0
  56. data/lib/ebay/types/category_listings_order_code.rb +1 -0
  57. data/lib/ebay/types/classified_ad_pay_per_lead_enabled_definition.rb +13 -0
  58. data/lib/ebay/types/date.rb +19 -0
  59. data/lib/ebay/types/extended_contact_details.rb +4 -0
  60. data/lib/ebay/types/feature_definitions.rb +3 -0
  61. data/lib/ebay/types/feature_id_code.rb +4 -0
  62. data/lib/ebay/types/group.rb +17 -0
  63. data/lib/ebay/types/item.rb +9 -0
  64. data/lib/ebay/types/item_condition_code.rb +11 -0
  65. data/lib/ebay/types/item_sort_type_code.rb +2 -0
  66. data/lib/ebay/types/listing_details.rb +2 -0
  67. data/lib/ebay/types/picture_format_code.rb +11 -0
  68. data/lib/ebay/types/picture_set_code.rb +12 -0
  69. data/lib/ebay/types/picture_set_member.rb +19 -0
  70. data/lib/ebay/types/request_categories.rb +2 -0
  71. data/lib/ebay/types/search_sort_order_code.rb +1 -0
  72. data/lib/ebay/types/shipping_details.rb +2 -0
  73. data/lib/ebay/types/shipping_service_code.rb +3 -0
  74. data/lib/ebay/types/site_defaults.rb +2 -0
  75. data/lib/ebay/types/site_hosted_picture_details.rb +26 -0
  76. data/lib/ebay/types/store_custom_listing_header.rb +0 -2
  77. data/lib/ebay/types/ticket_details.rb +24 -0
  78. data/lib/ebay/types/ticket_event_type_code.rb +31 -0
  79. data/lib/ebay/types/transaction.rb +4 -0
  80. data/lib/ebay/types/transaction_platform_code.rb +13 -0
  81. data/lib/ebay/types/xsl_file.rb +2 -1
  82. data/rakefile +2 -2
  83. metadata +49 -4
  84. data/lib/ebay/types/promotional_shipping_discount.rb +0 -21
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.dirname(__FILE__)
3
+ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
4
+ require 'ebay'
5
+ require 'config'
6
+
7
+ ebay = Ebay::Api.new
8
+
9
+ begin
10
+ response = ebay.get_notifications_usage
11
+
12
+ puts "Notifications Usage Counts"
13
+ puts "--------------------------"
14
+ puts "Delivered: #{response.notification_statistics.delivered_count}"
15
+ puts "Expired: #{response.notification_statistics.expired_count}"
16
+ puts "Queued Pending: #{response.notification_statistics.queued_pending_count}"
17
+ puts "Queued New: #{response.notification_statistics.queued_new_count}"
18
+ puts "Error: #{response.notification_statistics.error_count}"
19
+ rescue Ebay::RequestError => e
20
+ e.errors.each do |error|
21
+ puts error.long_message
22
+ end
23
+ end
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.dirname(__FILE__)
3
+ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
4
+ require 'ebay'
5
+ require 'config'
6
+ require 'rexml/document'
7
+
8
+ ebay = Ebay::Api.new
9
+
10
+ begin
11
+ response = ebay.get_product_finder_xsl(:detail_level => 'ReturnAll')
12
+
13
+ # There is currently only one stylesheet, but eBay may add more in the future
14
+ file = response.xsl_files.first
15
+ puts "Downloaded version #{file.file_version}"
16
+
17
+ # Save the downloaded file
18
+ puts "Saving file to: #{file.file_name}"
19
+ File.open(file.file_name, 'w') do |f|
20
+ f.puts file.file_content
21
+ end
22
+ rescue Ebay::RequestError => e
23
+ e.errors.each do |error|
24
+ puts error.long_message
25
+ end
26
+ end
27
+
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.dirname(__FILE__)
3
+ $:.unshift File.join(File.dirname(__FILE__),'..', 'lib')
4
+
5
+ require 'ebay'
6
+ require 'config'
7
+
8
+ include Ebay::Types
9
+
10
+ ebay = Ebay::Api.new
11
+
12
+ begin
13
+
14
+ # Uncomment the following to add list 13 products to the sandbox
15
+ # Wait 2 - 3 minutes for the items to be indexed by eBay for searching
16
+ #1.upto(13) do |i|
17
+ # item = Item.new( :primary_category => Category.new(:category_id => 57882),
18
+ # :title => "Ruby eBay API Test Listing #{i}",
19
+ # :description => 'Welcome!',
20
+ # :location => 'Ottawa, On',
21
+ # :start_price => Money.new(1200, 'USD'),
22
+ # :quantity => 1,
23
+ # :listing_duration => 'Days_7',
24
+ # :country => 'US',
25
+ # :currency => 'USD',
26
+ # :payment_methods => ['VisaMC', 'PersonalCheck']
27
+ # )
28
+ # ebay.add_item(:item => item)
29
+ #end
30
+
31
+ current_page = 1
32
+
33
+ begin
34
+ response = ebay.get_search_results(
35
+ :query => 'ruby',
36
+ :pagination => Pagination.new(:entries_per_page => 5, :page_number => current_page)
37
+ )
38
+
39
+ puts "Page #{response.page_number} of #{response.pagination_result.total_number_of_pages}"
40
+ response.search_result_items.each do |r|
41
+ puts r.item.title
42
+ end
43
+
44
+ current_page += 1
45
+ end while response.has_more_items
46
+
47
+ rescue Ebay::RequestError => e
48
+ e.errors.each do |error|
49
+ puts error.long_message
50
+ end
51
+ end
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.dirname(__FILE__)
3
+ $:.unshift File.join(File.dirname(__FILE__),'..', 'lib')
4
+
5
+ require 'ebay'
6
+ require 'config'
7
+
8
+ ebay = Ebay::Api.new
9
+
10
+ begin
11
+ # Get details about the user passed in as the first argument
12
+ # You must include an :item_id if you wish to retrieve the user's email address.
13
+ # You must also be in a transactional relationship with a user to get their
14
+ # email address
15
+ response = ebay.get_user(:user_id => ARGV.shift)
16
+ user = response.user
17
+ puts "The user's feedback score is: #{user.feedback_score}"
18
+ puts "The user is registered in #{user.site}"
19
+ puts "The user is new? #{user.new_user}"
20
+ puts "The user is in good standing with eBay? #{user.ebay_good_standing}"
21
+ rescue Ebay::RequestError => e
22
+ e.errors.each do |error|
23
+ puts error.long_message
24
+ end
25
+ end
26
+
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.dirname(__FILE__)
3
+ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
4
+
5
+ require 'ebay'
6
+ require 'config'
7
+
8
+ ebay = Ebay::Api.new
9
+ begin
10
+ # Mark all message id's as passed in on the command line as read
11
+ response = ebay.revise_my_messages(
12
+ :message_ids => ARGV,
13
+ :read => true
14
+ # You can also specify a folder to move the messages to
15
+ # :folder_id => 2
16
+ )
17
+ puts "Successfully marked the messages as read"
18
+ rescue Ebay::RequestError => e
19
+ e.errors.each do |error|
20
+ puts error.long_message
21
+ end
22
+ end
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.dirname(__FILE__)
3
+ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
4
+ require 'ebay'
5
+ require 'config'
6
+
7
+ ebay = Ebay::Api.new
8
+
9
+ # Revise the item identified by the item_id passed in on the command line
10
+ item = Ebay::Types::Item.new(
11
+ :item_id => ARGV.first,
12
+ :description => 'Revised Body'
13
+ )
14
+
15
+ begin
16
+ response = ebay.revise_item(:item => item)
17
+ puts "Successfully revised item: #{response.item_id}"
18
+ puts "Item start time: #{response.start_time}"
19
+ puts "Item end time: #{response.end_time}"
20
+
21
+ # Display any additional fees
22
+ fees = response.fees.select{|f| !f.fee.zero? }
23
+
24
+ if fees.any?
25
+ puts "Incurred additional fees:"
26
+ fees.each do |f|
27
+ puts " #{f.name}: #{f.fee.format(:with_currency)}"
28
+ end
29
+ end
30
+ rescue Ebay::RequestError => e
31
+ e.errors.each do |error|
32
+ puts error.long_message
33
+ end
34
+ end
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.dirname(__FILE__)
3
+ $:.unshift File.join(File.dirname(__FILE__),'..', 'lib')
4
+
5
+ require 'ebay'
6
+ require 'config'
7
+
8
+ ebay = Ebay::Api.new
9
+
10
+ # Set the 'Disable' to 'Enable' to enable the notifications
11
+ preferences = Ebay::Types::ApplicationDeliveryPreferences.new(
12
+ :application_url => 'http://example.com/notify',
13
+ :application_enable => 'Disable',
14
+ :alert_enable => 'Disable'
15
+ )
16
+
17
+ # Disable eBay Platform Notifications at the application level
18
+ begin
19
+ response = ebay.set_notification_preferences(
20
+ :application_delivery_preferences => preferences
21
+ )
22
+ puts "Successfully disabled application platform notifications: #{response.success?}"
23
+ rescue Ebay::RequestError => e
24
+ e.errors.each do |error|
25
+ puts error.long_message
26
+ end
27
+ end
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.dirname(__FILE__)
3
+ $:.unshift File.join(File.dirname(__FILE__),'..', 'lib')
4
+
5
+ require 'ebay'
6
+ require 'config'
7
+
8
+ # This is the same as add_item, but doesn't actually list the item
9
+ ebay = Ebay::Api.new
10
+
11
+ item = Ebay::Types::Item.new(
12
+ :primary_category => Ebay::Types::Category.new(:category_id => 57882),
13
+ :title => 'Ruby eBay API Test Listing',
14
+ :description => 'Welcome!',
15
+ :location => 'Ottawa, On',
16
+ :start_price => Money.new(1200, 'USD'),
17
+ :quantity => 1,
18
+ :listing_duration => 'Days_7',
19
+ :country => 'US',
20
+ :currency => 'USD',
21
+ :payment_methods => ['VisaMC', 'PersonalCheck']
22
+ )
23
+
24
+ begin
25
+ response = ebay.verify_add_item(:item => item)
26
+ puts "Verifying item"
27
+
28
+ puts "Item ID: #{response.item_id}"
29
+ puts "Fee summary: "
30
+ response.fees.select{|f| !f.fee.zero? }.each do |f|
31
+ puts " #{f.name}: #{f.fee.format(:with_currency)}"
32
+ end
33
+ rescue Ebay::RequestError => e
34
+ e.errors.each do |error|
35
+ puts error.long_message
36
+ end
37
+ end
data/lib/ebay/api.rb CHANGED
@@ -132,12 +132,12 @@ module Ebay #:nodoc:
132
132
 
133
133
  def build_headers(call_name)
134
134
  {
135
- 'X-EBAY-API-COMPATIBILITY-LEVEL' => schema_version,
135
+ 'X-EBAY-API-COMPATIBILITY-LEVEL' => schema_version.to_s,
136
136
  'X-EBAY-API-SESSION-CERTIFICATE' => "#{dev_id};#{app_id};#{cert}",
137
- 'X-EBAY-API-DEV-NAME' => dev_id,
138
- 'X-EBAY-API-APP-NAME' => app_id,
139
- 'X-EBAY-API-CERT-NAME' => cert,
140
- 'X-EBAY-API-CALL-NAME' => call_name,
137
+ 'X-EBAY-API-DEV-NAME' => dev_id.to_s,
138
+ 'X-EBAY-API-APP-NAME' => app_id.to_s,
139
+ 'X-EBAY-API-CERT-NAME' => cert.to_s,
140
+ 'X-EBAY-API-CALL-NAME' => call_name.to_s,
141
141
  'X-EBAY-API-SITEID' => site_id.to_s,
142
142
  'Content-Type' => 'text/xml',
143
143
  'Accept-Encoding' => 'gzip'
@@ -1017,6 +1017,14 @@ module Ebay
1017
1017
  def set_user_preferences(params = {})
1018
1018
  commit(Ebay::Requests::SetUserPreferences, params)
1019
1019
  end
1020
+ # Builds Ebay::Requests#UploadSiteHostedPictures
1021
+ #
1022
+ # Returns Ebay::Responses#UploadSiteHostedPictures
1023
+ #
1024
+ # Official Documentation for UploadSiteHostedPictures[http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/io_UploadSiteHostedPictures.html]
1025
+ def upload_site_hosted_pictures(params = {})
1026
+ commit(Ebay::Requests::UploadSiteHostedPictures, params)
1027
+ end
1020
1028
  # Builds Ebay::Requests#ValidateChallengeInput
1021
1029
  #
1022
1030
  # Returns Ebay::Responses#ValidateChallengeInput
data/lib/ebay/requests.rb CHANGED
@@ -126,6 +126,7 @@ require 'ebay/requests/set_store_preferences'
126
126
  require 'ebay/requests/set_tax_table'
127
127
  require 'ebay/requests/set_user_notes'
128
128
  require 'ebay/requests/set_user_preferences'
129
+ require 'ebay/requests/upload_site_hosted_pictures'
129
130
  require 'ebay/requests/validate_challenge_input'
130
131
  require 'ebay/requests/validate_test_user_registration'
131
132
  require 'ebay/requests/vero_report_items'
@@ -1,6 +1,7 @@
1
1
  require 'ebay/types/pagination'
2
2
  require 'ebay/types/search_location'
3
3
  require 'ebay/types/proximity_search'
4
+ require 'ebay/types/group'
4
5
 
5
6
  module Ebay # :nodoc:
6
7
  module Requests # :nodoc:
@@ -22,6 +23,7 @@ module Ebay # :nodoc:
22
23
  # boolean_node :include_feedback, 'IncludeFeedback', 'true', 'false', :optional => true
23
24
  # text_node :local_search_postal_code, 'LocalSearchPostalCode', :optional => true
24
25
  # numeric_node :max_related_search_keywords, 'MaxRelatedSearchKeywords', :optional => true
26
+ # object_node :group, 'Group', :class => Group, :optional => true
25
27
  class GetCategoryListings < Abstract
26
28
  include XML::Mapping
27
29
  include Initializer
@@ -43,6 +45,7 @@ module Ebay # :nodoc:
43
45
  boolean_node :include_feedback, 'IncludeFeedback', 'true', 'false', :optional => true
44
46
  text_node :local_search_postal_code, 'LocalSearchPostalCode', :optional => true
45
47
  numeric_node :max_related_search_keywords, 'MaxRelatedSearchKeywords', :optional => true
48
+ object_node :group, 'Group', :class => Group, :optional => true
46
49
  end
47
50
  end
48
51
  end
@@ -1,5 +1,6 @@
1
1
  require 'ebay/types/item_list_customization'
2
2
  require 'ebay/types/my_ebay_selection'
3
+ require 'ebay/types/bid_assistant_list'
3
4
 
4
5
  module Ebay # :nodoc:
5
6
  module Requests # :nodoc:
@@ -12,6 +13,7 @@ module Ebay # :nodoc:
12
13
  # object_node :favorite_searches, 'FavoriteSearches', :class => MyeBaySelection, :optional => true
13
14
  # object_node :favorite_sellers, 'FavoriteSellers', :class => MyeBaySelection, :optional => true
14
15
  # object_node :second_chance_offer, 'SecondChanceOffer', :class => MyeBaySelection, :optional => true
16
+ # object_node :bid_assistant_list, 'BidAssistantList', :class => BidAssistantList, :optional => true
15
17
  class GetMyeBayBuying < Abstract
16
18
  include XML::Mapping
17
19
  include Initializer
@@ -24,6 +26,7 @@ module Ebay # :nodoc:
24
26
  object_node :favorite_searches, 'FavoriteSearches', :class => MyeBaySelection, :optional => true
25
27
  object_node :favorite_sellers, 'FavoriteSellers', :class => MyeBaySelection, :optional => true
26
28
  object_node :second_chance_offer, 'SecondChanceOffer', :class => MyeBaySelection, :optional => true
29
+ object_node :bid_assistant_list, 'BidAssistantList', :class => BidAssistantList, :optional => true
27
30
  end
28
31
  end
29
32
  end
@@ -8,6 +8,9 @@ require 'ebay/types/search_request'
8
8
  require 'ebay/types/external_product_id'
9
9
  require 'ebay/types/request_categories'
10
10
  require 'ebay/types/affiliate_tracking_details'
11
+ require 'ebay/types/bid_range'
12
+ require 'ebay/types/ticket_details'
13
+ require 'ebay/types/group'
11
14
 
12
15
  module Ebay # :nodoc:
13
16
  module Requests # :nodoc:
@@ -50,6 +53,10 @@ module Ebay # :nodoc:
50
53
  # text_node :local_search_postal_code, 'LocalSearchPostalCode', :optional => true
51
54
  # numeric_node :max_related_search_keywords, 'MaxRelatedSearchKeywords', :optional => true
52
55
  # object_node :affiliate_tracking_details, 'AffiliateTrackingDetails', :class => AffiliateTrackingDetails, :optional => true
56
+ # object_node :bid_range, 'BidRange', :class => BidRange, :optional => true
57
+ # text_node :item_condition, 'ItemCondition', :optional => true
58
+ # object_node :ticket_finder, 'TicketFinder', :class => TicketDetails, :optional => true
59
+ # object_node :group, 'Group', :class => Group, :optional => true
53
60
  class GetSearchResults < Abstract
54
61
  include XML::Mapping
55
62
  include Initializer
@@ -92,6 +99,10 @@ module Ebay # :nodoc:
92
99
  text_node :local_search_postal_code, 'LocalSearchPostalCode', :optional => true
93
100
  numeric_node :max_related_search_keywords, 'MaxRelatedSearchKeywords', :optional => true
94
101
  object_node :affiliate_tracking_details, 'AffiliateTrackingDetails', :class => AffiliateTrackingDetails, :optional => true
102
+ object_node :bid_range, 'BidRange', :class => BidRange, :optional => true
103
+ text_node :item_condition, 'ItemCondition', :optional => true
104
+ object_node :ticket_finder, 'TicketFinder', :class => TicketDetails, :optional => true
105
+ object_node :group, 'Group', :class => Group, :optional => true
95
106
  end
96
107
  end
97
108
  end
@@ -1,7 +1,7 @@
1
1
  require 'ebay/types/flat_shipping_discount'
2
2
  require 'ebay/types/calculated_shipping_discount'
3
3
  require 'ebay/types/calculated_handling_discount'
4
- require 'ebay/types/promotional_shipping_discount'
4
+ require 'ebay/types/promotional_shipping_discount_details'
5
5
  require 'ebay/types/shipping_insurance'
6
6
 
7
7
  module Ebay # :nodoc:
@@ -13,7 +13,7 @@ module Ebay # :nodoc:
13
13
  # object_node :flat_shipping_discount, 'FlatShippingDiscount', :class => FlatShippingDiscount, :optional => true
14
14
  # object_node :calculated_shipping_discount, 'CalculatedShippingDiscount', :class => CalculatedShippingDiscount, :optional => true
15
15
  # object_node :calculated_handling_discount, 'CalculatedHandlingDiscount', :class => CalculatedHandlingDiscount, :optional => true
16
- # object_node :promotional_shipping_discount, 'PromotionalShippingDiscount', :class => PromotionalShippingDiscount, :optional => true
16
+ # object_node :promotional_shipping_discount_details, 'PromotionalShippingDiscountDetails', :class => PromotionalShippingDiscountDetails, :optional => true
17
17
  # object_node :shipping_insurance, 'ShippingInsurance', :class => ShippingInsurance, :optional => true
18
18
  # object_node :international_shipping_insurance, 'InternationalShippingInsurance', :class => ShippingInsurance, :optional => true
19
19
  class SetShippingDiscountProfiles < Abstract
@@ -26,7 +26,7 @@ module Ebay # :nodoc:
26
26
  object_node :flat_shipping_discount, 'FlatShippingDiscount', :class => FlatShippingDiscount, :optional => true
27
27
  object_node :calculated_shipping_discount, 'CalculatedShippingDiscount', :class => CalculatedShippingDiscount, :optional => true
28
28
  object_node :calculated_handling_discount, 'CalculatedHandlingDiscount', :class => CalculatedHandlingDiscount, :optional => true
29
- object_node :promotional_shipping_discount, 'PromotionalShippingDiscount', :class => PromotionalShippingDiscount, :optional => true
29
+ object_node :promotional_shipping_discount_details, 'PromotionalShippingDiscountDetails', :class => PromotionalShippingDiscountDetails, :optional => true
30
30
  object_node :shipping_insurance, 'ShippingInsurance', :class => ShippingInsurance, :optional => true
31
31
  object_node :international_shipping_insurance, 'InternationalShippingInsurance', :class => ShippingInsurance, :optional => true
32
32
  end
@@ -0,0 +1,22 @@
1
+ require 'ebay/types/base64_binary'
2
+
3
+ module Ebay # :nodoc:
4
+ module Requests # :nodoc:
5
+ # == Attributes
6
+ # text_node :picture_name, 'PictureName', :optional => true
7
+ # numeric_node :picture_system_version, 'PictureSystemVersion', :optional => true
8
+ # text_node :picture_set, 'PictureSet', :optional => true
9
+ # object_node :picture_data, 'PictureData', :class => Base64Binary, :optional => true
10
+ class UploadSiteHostedPictures < Abstract
11
+ include XML::Mapping
12
+ include Initializer
13
+ root_element_name 'UploadSiteHostedPicturesRequest'
14
+ text_node :picture_name, 'PictureName', :optional => true
15
+ numeric_node :picture_system_version, 'PictureSystemVersion', :optional => true
16
+ text_node :picture_set, 'PictureSet', :optional => true
17
+ object_node :picture_data, 'PictureData', :class => Base64Binary, :optional => true
18
+ end
19
+ end
20
+ end
21
+
22
+
@@ -126,6 +126,7 @@ require 'ebay/responses/set_store_preferences'
126
126
  require 'ebay/responses/set_tax_table'
127
127
  require 'ebay/responses/set_user_notes'
128
128
  require 'ebay/responses/set_user_preferences'
129
+ require 'ebay/responses/upload_site_hosted_pictures'
129
130
  require 'ebay/responses/validate_challenge_input'
130
131
  require 'ebay/responses/validate_test_user_registration'
131
132
  require 'ebay/responses/vero_report_items'
@@ -4,6 +4,7 @@ require 'ebay/types/paginated_order_transaction_array'
4
4
  require 'ebay/types/my_ebay_favorite_search_list'
5
5
  require 'ebay/types/my_ebay_favorite_seller_list'
6
6
  require 'ebay/types/item'
7
+ require 'ebay/types/bid_group'
7
8
 
8
9
  module Ebay # :nodoc:
9
10
  module Responses # :nodoc:
@@ -17,6 +18,7 @@ module Ebay # :nodoc:
17
18
  # object_node :favorite_searches, 'FavoriteSearches', :class => MyeBayFavoriteSearchList, :optional => true
18
19
  # object_node :favorite_sellers, 'FavoriteSellers', :class => MyeBayFavoriteSellerList, :optional => true
19
20
  # array_node :second_chance_offers, 'SecondChanceOffer', :class => Item, :default_value => []
21
+ # array_node :bid_assistant_lists, 'BidAssistantList', 'BidGroup', :class => BidGroup, :default_value => []
20
22
  class GetMyeBayBuying < Abstract
21
23
  include XML::Mapping
22
24
  include Initializer
@@ -30,6 +32,7 @@ module Ebay # :nodoc:
30
32
  object_node :favorite_searches, 'FavoriteSearches', :class => MyeBayFavoriteSearchList, :optional => true
31
33
  object_node :favorite_sellers, 'FavoriteSellers', :class => MyeBayFavoriteSellerList, :optional => true
32
34
  array_node :second_chance_offers, 'SecondChanceOffer', :class => Item, :default_value => []
35
+ array_node :bid_assistant_lists, 'BidAssistantList', 'BidGroup', :class => BidGroup, :default_value => []
33
36
  end
34
37
  end
35
38
  end