Skip to content

Commit

Permalink
Update to schema version 529
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Fauser committed Sep 17, 2007
1 parent c70bb7f commit 2ba8b3c
Show file tree
Hide file tree
Showing 59 changed files with 404 additions and 142 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# * Update to eBay XML Schema Version 529
# * Update to eBay XML Schema Version 517
# * Update the end_item example to include the ending reason
# * Update the Rakefile to include the examples, set version 0.10.2
Expand Down
32 changes: 8 additions & 24 deletions lib/ebay/api_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,6 @@ def get_categories(params = {})
def get_category2_cs(params = {})
commit(Ebay::Requests::GetCategory2CS, params)
end
# Builds Ebay::Requests#GetCategory2FinanceOffer
#
# Returns Ebay::Responses#GetCategory2FinanceOffer
#
# Official Documentation for GetCategory2FinanceOffer[http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/io_GetCategory2FinanceOffer.html]
def get_category2_finance_offer(params = {})
commit(Ebay::Requests::GetCategory2FinanceOffer, params)
end
# Builds Ebay::Requests#GetCategoryFeatures
#
# Returns Ebay::Responses#GetCategoryFeatures
Expand All @@ -257,6 +249,14 @@ def get_category_listings(params = {})
def get_category_mappings(params = {})
commit(Ebay::Requests::GetCategoryMappings, params)
end
# Builds Ebay::Requests#GetCategorySpecifics
#
# Returns Ebay::Responses#GetCategorySpecifics
#
# Official Documentation for GetCategorySpecifics[http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/io_GetCategorySpecifics.html]
def get_category_specifics(params = {})
commit(Ebay::Requests::GetCategorySpecifics, params)
end
# Builds Ebay::Requests#GetChallengeToken
#
# Returns Ebay::Responses#GetChallengeToken
Expand Down Expand Up @@ -313,14 +313,6 @@ def get_dispute(params = {})
def get_feedback(params = {})
commit(Ebay::Requests::GetFeedback, params)
end
# Builds Ebay::Requests#GetFinanceOffers
#
# Returns Ebay::Responses#GetFinanceOffers
#
# Official Documentation for GetFinanceOffers[http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/io_GetFinanceOffers.html]
def get_finance_offers(params = {})
commit(Ebay::Requests::GetFinanceOffers, params)
end
# Builds Ebay::Requests#GetHighBidders
#
# Returns Ebay::Responses#GetHighBidders
Expand Down Expand Up @@ -921,14 +913,6 @@ def set_notification_preferences(params = {})
def set_picture_manager_details(params = {})
commit(Ebay::Requests::SetPictureManagerDetails, params)
end
# Builds Ebay::Requests#SetPromotionRules
#
# Returns Ebay::Responses#SetPromotionRules
#
# Official Documentation for SetPromotionRules[http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/io_SetPromotionRules.html]
def set_promotion_rules(params = {})
commit(Ebay::Requests::SetPromotionRules, params)
end
# Builds Ebay::Requests#SetPromotionalSale
#
# Returns Ebay::Responses#SetPromotionalSale
Expand Down
4 changes: 1 addition & 3 deletions lib/ebay/requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@
require 'ebay/requests/get_cart'
require 'ebay/requests/get_categories'
require 'ebay/requests/get_category2_cs'
require 'ebay/requests/get_category2_finance_offer'
require 'ebay/requests/get_category_features'
require 'ebay/requests/get_category_listings'
require 'ebay/requests/get_category_mappings'
require 'ebay/requests/get_category_specifics'
require 'ebay/requests/get_challenge_token'
require 'ebay/requests/get_charities'
require 'ebay/requests/get_contextual_keywords'
require 'ebay/requests/get_cross_promotions'
require 'ebay/requests/get_description_templates'
require 'ebay/requests/get_dispute'
require 'ebay/requests/get_feedback'
require 'ebay/requests/get_finance_offers'
require 'ebay/requests/get_high_bidders'
require 'ebay/requests/get_item'
require 'ebay/requests/get_item_recommendations'
Expand Down Expand Up @@ -114,7 +113,6 @@
require 'ebay/requests/set_message_preferences'
require 'ebay/requests/set_notification_preferences'
require 'ebay/requests/set_picture_manager_details'
require 'ebay/requests/set_promotion_rules'
require 'ebay/requests/set_promotional_sale'
require 'ebay/requests/set_promotional_sale_listings'
require 'ebay/requests/set_return_url'
Expand Down
3 changes: 3 additions & 0 deletions lib/ebay/requests/abstract.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'ebay/types/xml_requester_credentials'
require 'ebay/types/bot_block_request'

module Ebay # :nodoc:
module Requests # :nodoc:
Expand All @@ -12,6 +13,7 @@ module Requests # :nodoc:
# text_node :error_handling, 'ErrorHandling', :optional => true
# text_node :invocation_id, 'InvocationID', :optional => true
# text_node :warning_level, 'WarningLevel', :optional => true
# object_node :bot_block, 'BotBlock', :class => BotBlockRequest, :optional => true
class Abstract < Base
include XML::Mapping
include Initializer
Expand All @@ -25,6 +27,7 @@ class Abstract < Base
text_node :error_handling, 'ErrorHandling', :optional => true
text_node :invocation_id, 'InvocationID', :optional => true
text_node :warning_level, 'WarningLevel', :optional => true
object_node :bot_block, 'BotBlock', :class => BotBlockRequest, :optional => true
# eBay specifies the detail level as a collection. The usual case is to use
# only a single detail level, so it is more appropriate to add an accessor for
# the normal case.
Expand Down
2 changes: 2 additions & 0 deletions lib/ebay/requests/fetch_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ module Ebay # :nodoc:
module Requests # :nodoc:
# == Attributes
# text_node :secret_id, 'SecretID', :optional => true
# boolean_node :include_rest_token, 'IncludeRESTToken', 'true', 'false', :optional => true
class FetchToken < Abstract
include XML::Mapping
include Initializer
root_element_name 'FetchTokenRequest'
text_node :secret_id, 'SecretID', :optional => true
boolean_node :include_rest_token, 'IncludeRESTToken', 'true', 'false', :optional => true
end
end
end
Expand Down
17 changes: 0 additions & 17 deletions lib/ebay/requests/get_category2_finance_offer.rb

This file was deleted.

23 changes: 23 additions & 0 deletions lib/ebay/requests/get_category_specifics.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

module Ebay # :nodoc:
module Requests # :nodoc:
# == Attributes
# text_node :category_id, 'CategoryID', :optional => true
# time_node :last_update_time, 'LastUpdateTime', :optional => true
# numeric_node :max_names, 'MaxNames', :optional => true
# numeric_node :max_values_per_name, 'MaxValuesPerName', :optional => true
# text_node :name, 'Name', :optional => true
class GetCategorySpecifics < Abstract
include XML::Mapping
include Initializer
root_element_name 'GetCategorySpecificsRequest'
text_node :category_id, 'CategoryID', :optional => true
time_node :last_update_time, 'LastUpdateTime', :optional => true
numeric_node :max_names, 'MaxNames', :optional => true
numeric_node :max_values_per_name, 'MaxValuesPerName', :optional => true
text_node :name, 'Name', :optional => true
end
end
end


17 changes: 0 additions & 17 deletions lib/ebay/requests/get_finance_offers.rb

This file was deleted.

2 changes: 2 additions & 0 deletions lib/ebay/requests/get_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Requests # :nodoc:
# boolean_node :include_express_requirements, 'IncludeExpressRequirements', 'true', 'false', :optional => true
# boolean_node :include_watch_count, 'IncludeWatchCount', 'true', 'false', :optional => true
# boolean_node :include_cross_promotion, 'IncludeCrossPromotion', 'true', 'false', :optional => true
# boolean_node :include_item_specifics, 'IncludeItemSpecifics', 'true', 'false', :optional => true
class GetItem < Abstract
include XML::Mapping
include Initializer
Expand All @@ -14,6 +15,7 @@ class GetItem < Abstract
boolean_node :include_express_requirements, 'IncludeExpressRequirements', 'true', 'false', :optional => true
boolean_node :include_watch_count, 'IncludeWatchCount', 'true', 'false', :optional => true
boolean_node :include_cross_promotion, 'IncludeCrossPromotion', 'true', 'false', :optional => true
boolean_node :include_item_specifics, 'IncludeItemSpecifics', 'true', 'false', :optional => true
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/ebay/requests/get_item_transactions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module Requests # :nodoc:
# object_node :pagination, 'Pagination', :class => Pagination, :optional => true
# boolean_node :include_final_value_fee, 'IncludeFinalValueFee', 'true', 'false', :optional => true
# boolean_node :include_containing_order, 'IncludeContainingOrder', 'true', 'false', :optional => true
# text_node :platform, 'Platform', :optional => true
class GetItemTransactions < Abstract
include XML::Mapping
include Initializer
Expand All @@ -21,6 +22,7 @@ class GetItemTransactions < Abstract
object_node :pagination, 'Pagination', :class => Pagination, :optional => true
boolean_node :include_final_value_fee, 'IncludeFinalValueFee', 'true', 'false', :optional => true
boolean_node :include_containing_order, 'IncludeContainingOrder', 'true', 'false', :optional => true
text_node :platform, 'Platform', :optional => true
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/ebay/requests/get_order_transactions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ module Requests # :nodoc:
# == Attributes
# array_node :item_transaction_ids, 'ItemTransactionIDArray', 'ItemTransactionID', :class => ItemTransactionID, :default_value => []
# value_array_node :order_ids, 'OrderIDArray', 'OrderID', :default_value => []
# text_node :platform, 'Platform', :optional => true
class GetOrderTransactions < Abstract
include XML::Mapping
include Initializer
root_element_name 'GetOrderTransactionsRequest'
array_node :item_transaction_ids, 'ItemTransactionIDArray', 'ItemTransactionID', :class => ItemTransactionID, :default_value => []
value_array_node :order_ids, 'OrderIDArray', 'OrderID', :default_value => []
text_node :platform, 'Platform', :optional => true
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/ebay/requests/get_seller_transactions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Requests # :nodoc:
# boolean_node :include_final_value_fee, 'IncludeFinalValueFee', 'true', 'false', :optional => true
# boolean_node :include_containing_order, 'IncludeContainingOrder', 'true', 'false', :optional => true
# value_array_node :skus, 'SKUArray', 'SKU', :default_value => []
# text_node :platform, 'Platform', :optional => true
class GetSellerTransactions < Abstract
include XML::Mapping
include Initializer
Expand All @@ -19,6 +20,7 @@ class GetSellerTransactions < Abstract
boolean_node :include_final_value_fee, 'IncludeFinalValueFee', 'true', 'false', :optional => true
boolean_node :include_containing_order, 'IncludeContainingOrder', 'true', 'false', :optional => true
value_array_node :skus, 'SKUArray', 'SKU', :default_value => []
text_node :platform, 'Platform', :optional => true
end
end
end
Expand Down
3 changes: 3 additions & 0 deletions lib/ebay/requests/place_offer.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
require 'ebay/types/offer'
require 'ebay/types/affiliate_tracking_details'

module Ebay # :nodoc:
module Requests # :nodoc:
# == Attributes
# object_node :offer, 'Offer', :class => Offer, :optional => true
# text_node :item_id, 'ItemID', :optional => true
# boolean_node :block_on_warning, 'BlockOnWarning', 'true', 'false', :optional => true
# object_node :affiliate_tracking_details, 'AffiliateTrackingDetails', :class => AffiliateTrackingDetails, :optional => true
class PlaceOffer < Abstract
include XML::Mapping
include Initializer
root_element_name 'PlaceOfferRequest'
object_node :offer, 'Offer', :class => Offer, :optional => true
text_node :item_id, 'ItemID', :optional => true
boolean_node :block_on_warning, 'BlockOnWarning', 'true', 'false', :optional => true
object_node :affiliate_tracking_details, 'AffiliateTrackingDetails', :class => AffiliateTrackingDetails, :optional => true
end
end
end
Expand Down
18 changes: 0 additions & 18 deletions lib/ebay/requests/set_promotion_rules.rb

This file was deleted.

4 changes: 1 addition & 3 deletions lib/ebay/responses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@
require 'ebay/responses/get_cart'
require 'ebay/responses/get_categories'
require 'ebay/responses/get_category2_cs'
require 'ebay/responses/get_category2_finance_offer'
require 'ebay/responses/get_category_features'
require 'ebay/responses/get_category_listings'
require 'ebay/responses/get_category_mappings'
require 'ebay/responses/get_category_specifics'
require 'ebay/responses/get_challenge_token'
require 'ebay/responses/get_charities'
require 'ebay/responses/get_contextual_keywords'
require 'ebay/responses/get_cross_promotions'
require 'ebay/responses/get_description_templates'
require 'ebay/responses/get_dispute'
require 'ebay/responses/get_feedback'
require 'ebay/responses/get_finance_offers'
require 'ebay/responses/get_high_bidders'
require 'ebay/responses/get_item'
require 'ebay/responses/get_item_recommendations'
Expand Down Expand Up @@ -114,7 +113,6 @@
require 'ebay/responses/set_message_preferences'
require 'ebay/responses/set_notification_preferences'
require 'ebay/responses/set_picture_manager_details'
require 'ebay/responses/set_promotion_rules'
require 'ebay/responses/set_promotional_sale'
require 'ebay/responses/set_promotional_sale_listings'
require 'ebay/responses/set_return_url'
Expand Down
3 changes: 3 additions & 0 deletions lib/ebay/responses/abstract.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'ebay/types/error'
require 'ebay/types/duplicate_invocation_details'
require 'ebay/types/bot_block_response'

module Ebay # :nodoc:
module Responses # :nodoc:
Expand All @@ -17,6 +18,7 @@ module Responses # :nodoc:
# text_node :eias_token, 'EIASToken', :optional => true
# text_node :notification_signature, 'NotificationSignature', :optional => true
# text_node :hard_expiration_warning, 'HardExpirationWarning', :optional => true
# object_node :bot_block, 'BotBlock', :class => BotBlockResponse, :optional => true
class Abstract < Base
include XML::Mapping
include Initializer
Expand All @@ -34,6 +36,7 @@ class Abstract < Base
text_node :eias_token, 'EIASToken', :optional => true
text_node :notification_signature, 'NotificationSignature', :optional => true
text_node :hard_expiration_warning, 'HardExpirationWarning', :optional => true
object_node :bot_block, 'BotBlock', :class => BotBlockResponse, :optional => true
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/ebay/responses/fetch_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ module Responses # :nodoc:
# == Attributes
# text_node :ebay_auth_token, 'eBayAuthToken', :optional => true
# time_node :hard_expiration_time, 'HardExpirationTime', :optional => true
# text_node :rest_token, 'RESTToken', :optional => true
class FetchToken < Abstract
include XML::Mapping
include Initializer
root_element_name 'FetchTokenResponse'
text_node :ebay_auth_token, 'eBayAuthToken', :optional => true
time_node :hard_expiration_time, 'HardExpirationTime', :optional => true
text_node :rest_token, 'RESTToken', :optional => true
end
end
end
Expand Down
18 changes: 0 additions & 18 deletions lib/ebay/responses/get_category2_finance_offer.rb

This file was deleted.

16 changes: 16 additions & 0 deletions lib/ebay/responses/get_category_specifics.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require 'ebay/types/category_item_specifics'

module Ebay # :nodoc:
module Responses # :nodoc:
# == Attributes
# array_node :category_item_specifics, 'CategoryItemSpecifics', :class => CategoryItemSpecifics, :default_value => []
class GetCategorySpecifics < Abstract
include XML::Mapping
include Initializer
root_element_name 'GetCategorySpecificsResponse'
array_node :category_item_specifics, 'CategoryItemSpecifics', :class => CategoryItemSpecifics, :default_value => []
end
end
end


Loading

0 comments on commit 2ba8b3c

Please sign in to comment.