ebayapi 0.10.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/Rakefile +62 -61
- data/examples/end_item.rb +3 -1
- data/lib/ebay.rb +0 -7
- data/lib/ebay/api_methods.rb +8 -24
- data/lib/ebay/inflections.rb +1 -0
- data/lib/ebay/requests.rb +1 -3
- data/lib/ebay/requests/abstract.rb +5 -0
- data/lib/ebay/requests/fetch_token.rb +2 -0
- data/lib/ebay/requests/get_category_specifics.rb +23 -0
- data/lib/ebay/requests/get_item.rb +2 -0
- data/lib/ebay/requests/get_item_transactions.rb +2 -0
- data/lib/ebay/requests/get_order_transactions.rb +2 -0
- data/lib/ebay/requests/get_seller_transactions.rb +2 -0
- data/lib/ebay/requests/get_store.rb +2 -0
- data/lib/ebay/requests/place_offer.rb +3 -0
- data/lib/ebay/responses.rb +1 -3
- data/lib/ebay/responses/abstract.rb +3 -0
- data/lib/ebay/responses/fetch_token.rb +2 -0
- data/lib/ebay/responses/get_category_specifics.rb +16 -0
- data/lib/ebay/responses/get_ebay_details.rb +6 -0
- data/lib/ebay/schema/version.rb +1 -1
- data/lib/ebay/types.rb +3 -1
- data/lib/ebay/types/ad_format_enabled_code.rb +1 -0
- data/lib/ebay/types/{operation_type_code.rb → auth_token_type_code.rb} +3 -3
- data/lib/ebay/types/bot_block_request.rb +17 -0
- data/lib/ebay/types/bot_block_response.rb +19 -0
- data/lib/ebay/types/category_feature.rb +2 -0
- data/lib/ebay/types/category_item_specifics.rb +20 -0
- data/lib/ebay/types/category_listings_order_code.rb +2 -0
- data/lib/ebay/types/country_code.rb +3 -0
- data/lib/ebay/types/currency_code.rb +1 -0
- data/lib/ebay/types/detail_name_code.rb +2 -0
- data/lib/ebay/types/feature_definitions.rb +3 -0
- data/lib/ebay/types/feature_id_code.rb +1 -0
- data/lib/ebay/types/get_recommendations_response_container.rb +3 -0
- data/lib/ebay/types/item.rb +0 -2
- data/lib/ebay/types/item_specific_details.rb +21 -0
- data/lib/ebay/types/item_specific_source_code.rb +12 -0
- data/lib/ebay/types/item_specifics_enabled_code.rb +11 -0
- data/lib/ebay/types/item_specifics_enabled_definition.rb +13 -0
- data/lib/ebay/types/item_specifics_recommendations.rb +16 -0
- data/lib/ebay/types/motors_local_market_enabled_definition.rb +13 -0
- data/lib/ebay/types/name_value_list.rb +2 -0
- data/lib/ebay/types/notification_event_type_code.rb +1 -0
- data/lib/ebay/types/order.rb +0 -2
- data/lib/ebay/types/promotion_rule.rb +0 -5
- data/lib/ebay/types/recommendation_engine_code.rb +1 -0
- data/lib/ebay/types/search_sort_order_code.rb +2 -0
- data/lib/ebay/types/selling_manager_product_details.rb +8 -0
- data/lib/ebay/types/shipping_carrier_code.rb +5 -0
- data/lib/ebay/types/shipping_package_code.rb +12 -0
- data/lib/ebay/types/shipping_service_code.rb +72 -0
- data/lib/ebay/types/shipping_service_details.rb +10 -0
- data/lib/ebay/types/site_defaults.rb +2 -0
- data/lib/ebay/types/transaction.rb +6 -2
- data/lib/ebay/types/unit_of_measurement.rb +17 -0
- data/lib/ebay/types/unit_of_measurement_details.rb +16 -0
- data/lib/support/xml_mapping/money_node.rb +1 -1
- data/lib/support/xml_mapping/time_node.rb +2 -1
- data/rakefile +62 -61
- data/test/{unit → mapping}/class_definition_test.rb +1 -0
- data/test/{unit → mapping}/generate_from_xsd.rb +2 -0
- data/test/{unit → mapping}/mapping_subclass_test.rb +1 -0
- data/test/{unit → mapping}/node_test.rb +1 -0
- data/test/{unit → mapping}/template_test.rb +1 -0
- data/test/test_helper.rb +0 -9
- data/test/unit/xml_mapping_money_node_test.rb +8 -1
- metadata +22 -25
- data/lib/ebay/requests/get_category2_finance_offer.rb +0 -17
- data/lib/ebay/requests/get_finance_offers.rb +0 -17
- data/lib/ebay/requests/set_promotion_rules.rb +0 -18
- data/lib/ebay/responses/get_category2_finance_offer.rb +0 -18
- data/lib/ebay/responses/get_finance_offers.rb +0 -18
- data/lib/ebay/responses/set_promotion_rules.rb +0 -13
- data/lib/ebay/types/category_finance_offer.rb +0 -17
- data/lib/ebay/types/finance_offer.rb +0 -29
data/lib/ebay/responses.rb
CHANGED
@@ -27,10 +27,10 @@ require 'ebay/responses/get_bidder_list'
|
|
27
27
|
require 'ebay/responses/get_cart'
|
28
28
|
require 'ebay/responses/get_categories'
|
29
29
|
require 'ebay/responses/get_category2_cs'
|
30
|
-
require 'ebay/responses/get_category2_finance_offer'
|
31
30
|
require 'ebay/responses/get_category_features'
|
32
31
|
require 'ebay/responses/get_category_listings'
|
33
32
|
require 'ebay/responses/get_category_mappings'
|
33
|
+
require 'ebay/responses/get_category_specifics'
|
34
34
|
require 'ebay/responses/get_challenge_token'
|
35
35
|
require 'ebay/responses/get_charities'
|
36
36
|
require 'ebay/responses/get_contextual_keywords'
|
@@ -38,7 +38,6 @@ require 'ebay/responses/get_cross_promotions'
|
|
38
38
|
require 'ebay/responses/get_description_templates'
|
39
39
|
require 'ebay/responses/get_dispute'
|
40
40
|
require 'ebay/responses/get_feedback'
|
41
|
-
require 'ebay/responses/get_finance_offers'
|
42
41
|
require 'ebay/responses/get_high_bidders'
|
43
42
|
require 'ebay/responses/get_item'
|
44
43
|
require 'ebay/responses/get_item_recommendations'
|
@@ -114,7 +113,6 @@ require 'ebay/responses/set_cart'
|
|
114
113
|
require 'ebay/responses/set_message_preferences'
|
115
114
|
require 'ebay/responses/set_notification_preferences'
|
116
115
|
require 'ebay/responses/set_picture_manager_details'
|
117
|
-
require 'ebay/responses/set_promotion_rules'
|
118
116
|
require 'ebay/responses/set_promotional_sale'
|
119
117
|
require 'ebay/responses/set_promotional_sale_listings'
|
120
118
|
require 'ebay/responses/set_return_url'
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'ebay/types/error'
|
2
2
|
require 'ebay/types/duplicate_invocation_details'
|
3
|
+
require 'ebay/types/bot_block_response'
|
3
4
|
|
4
5
|
module Ebay # :nodoc:
|
5
6
|
module Responses # :nodoc:
|
@@ -17,6 +18,7 @@ module Ebay # :nodoc:
|
|
17
18
|
# text_node :eias_token, 'EIASToken', :optional => true
|
18
19
|
# text_node :notification_signature, 'NotificationSignature', :optional => true
|
19
20
|
# text_node :hard_expiration_warning, 'HardExpirationWarning', :optional => true
|
21
|
+
# object_node :bot_block, 'BotBlock', :class => BotBlockResponse, :optional => true
|
20
22
|
class Abstract < Base
|
21
23
|
include XML::Mapping
|
22
24
|
include Initializer
|
@@ -34,6 +36,7 @@ module Ebay # :nodoc:
|
|
34
36
|
text_node :eias_token, 'EIASToken', :optional => true
|
35
37
|
text_node :notification_signature, 'NotificationSignature', :optional => true
|
36
38
|
text_node :hard_expiration_warning, 'HardExpirationWarning', :optional => true
|
39
|
+
object_node :bot_block, 'BotBlock', :class => BotBlockResponse, :optional => true
|
37
40
|
end
|
38
41
|
end
|
39
42
|
end
|
@@ -4,12 +4,14 @@ module Ebay # :nodoc:
|
|
4
4
|
# == Attributes
|
5
5
|
# text_node :ebay_auth_token, 'eBayAuthToken', :optional => true
|
6
6
|
# time_node :hard_expiration_time, 'HardExpirationTime', :optional => true
|
7
|
+
# text_node :rest_token, 'RESTToken', :optional => true
|
7
8
|
class FetchToken < Abstract
|
8
9
|
include XML::Mapping
|
9
10
|
include Initializer
|
10
11
|
root_element_name 'FetchTokenResponse'
|
11
12
|
text_node :ebay_auth_token, 'eBayAuthToken', :optional => true
|
12
13
|
time_node :hard_expiration_time, 'HardExpirationTime', :optional => true
|
14
|
+
text_node :rest_token, 'RESTToken', :optional => true
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'ebay/types/category_item_specifics'
|
2
|
+
|
3
|
+
module Ebay # :nodoc:
|
4
|
+
module Responses # :nodoc:
|
5
|
+
# == Attributes
|
6
|
+
# array_node :category_item_specifics, 'CategoryItemSpecifics', :class => CategoryItemSpecifics, :default_value => []
|
7
|
+
class GetCategorySpecifics < Abstract
|
8
|
+
include XML::Mapping
|
9
|
+
include Initializer
|
10
|
+
root_element_name 'GetCategorySpecificsResponse'
|
11
|
+
array_node :category_item_specifics, 'CategoryItemSpecifics', :class => CategoryItemSpecifics, :default_value => []
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
|
@@ -9,6 +9,8 @@ require 'ebay/types/site_details'
|
|
9
9
|
require 'ebay/types/tax_jurisdiction'
|
10
10
|
require 'ebay/types/url_details'
|
11
11
|
require 'ebay/types/time_zone_details'
|
12
|
+
require 'ebay/types/item_specific_details'
|
13
|
+
require 'ebay/types/unit_of_measurement_details'
|
12
14
|
|
13
15
|
module Ebay # :nodoc:
|
14
16
|
module Responses # :nodoc:
|
@@ -24,6 +26,8 @@ module Ebay # :nodoc:
|
|
24
26
|
# array_node :tax_jurisdictions, 'TaxJurisdiction', :class => TaxJurisdiction, :default_value => []
|
25
27
|
# array_node :url_details, 'URLDetails', :class => URLDetails, :default_value => []
|
26
28
|
# array_node :time_zone_details, 'TimeZoneDetails', :class => TimeZoneDetails, :default_value => []
|
29
|
+
# array_node :item_specific_details, 'ItemSpecificDetails', :class => ItemSpecificDetails, :default_value => []
|
30
|
+
# array_node :unit_of_measurement_details, 'UnitOfMeasurementDetails', :class => UnitOfMeasurementDetails, :default_value => []
|
27
31
|
class GeteBayDetails < Abstract
|
28
32
|
include XML::Mapping
|
29
33
|
include Initializer
|
@@ -39,6 +43,8 @@ module Ebay # :nodoc:
|
|
39
43
|
array_node :tax_jurisdictions, 'TaxJurisdiction', :class => TaxJurisdiction, :default_value => []
|
40
44
|
array_node :url_details, 'URLDetails', :class => URLDetails, :default_value => []
|
41
45
|
array_node :time_zone_details, 'TimeZoneDetails', :class => TimeZoneDetails, :default_value => []
|
46
|
+
array_node :item_specific_details, 'ItemSpecificDetails', :class => ItemSpecificDetails, :default_value => []
|
47
|
+
array_node :unit_of_measurement_details, 'UnitOfMeasurementDetails', :class => UnitOfMeasurementDetails, :default_value => []
|
42
48
|
end
|
43
49
|
end
|
44
50
|
end
|
data/lib/ebay/schema/version.rb
CHANGED
data/lib/ebay/types.rb
CHANGED
@@ -31,6 +31,7 @@ require 'ebay/types/address_owner_code'
|
|
31
31
|
require 'ebay/types/address_record_type_code'
|
32
32
|
require 'ebay/types/address_status_code'
|
33
33
|
require 'ebay/types/application_device_type_code'
|
34
|
+
require 'ebay/types/auth_token_type_code'
|
34
35
|
require 'ebay/types/balance_code'
|
35
36
|
require 'ebay/types/best_offer_action_code'
|
36
37
|
require 'ebay/types/best_offer_status_code'
|
@@ -107,6 +108,8 @@ require 'ebay/types/item_format_sort_filter_code'
|
|
107
108
|
require 'ebay/types/item_location_code'
|
108
109
|
require 'ebay/types/item_sort_filter_code'
|
109
110
|
require 'ebay/types/item_sort_type_code'
|
111
|
+
require 'ebay/types/item_specific_source_code'
|
112
|
+
require 'ebay/types/item_specifics_enabled_code'
|
110
113
|
require 'ebay/types/item_type_filter_code'
|
111
114
|
require 'ebay/types/listing_duration_code'
|
112
115
|
require 'ebay/types/listing_enhancements_code'
|
@@ -130,7 +133,6 @@ require 'ebay/types/notification_event_state_code'
|
|
130
133
|
require 'ebay/types/notification_event_type_code'
|
131
134
|
require 'ebay/types/notification_payload_type_code'
|
132
135
|
require 'ebay/types/notification_role_code'
|
133
|
-
require 'ebay/types/operation_type_code'
|
134
136
|
require 'ebay/types/order_role_code'
|
135
137
|
require 'ebay/types/order_status_code'
|
136
138
|
require 'ebay/types/paid_status_code'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Ebay # :nodoc:
|
2
2
|
module Types # :nodoc:
|
3
|
-
class
|
3
|
+
class AuthTokenTypeCode
|
4
4
|
extend Enumerable
|
5
5
|
extend Enumeration
|
6
|
-
|
7
|
-
|
6
|
+
RESTToken = 'RESTToken'
|
7
|
+
ClientAlertsToken = 'ClientAlertsToken'
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
module Ebay # :nodoc:
|
3
|
+
module Types # :nodoc:
|
4
|
+
# == Attributes
|
5
|
+
# text_node :bot_block_token, 'BotBlockToken', :optional => true
|
6
|
+
# text_node :bot_block_user_input, 'BotBlockUserInput', :optional => true
|
7
|
+
class BotBlockRequest
|
8
|
+
include XML::Mapping
|
9
|
+
include Initializer
|
10
|
+
root_element_name 'BotBlockRequest'
|
11
|
+
text_node :bot_block_token, 'BotBlockToken', :optional => true
|
12
|
+
text_node :bot_block_user_input, 'BotBlockUserInput', :optional => true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
module Ebay # :nodoc:
|
3
|
+
module Types # :nodoc:
|
4
|
+
# == Attributes
|
5
|
+
# text_node :bot_block_token, 'BotBlockToken', :optional => true
|
6
|
+
# text_node :bot_block_url, 'BotBlockUrl', :optional => true
|
7
|
+
# text_node :bot_block_audio_url, 'BotBlockAudioUrl', :optional => true
|
8
|
+
class BotBlockResponse
|
9
|
+
include XML::Mapping
|
10
|
+
include Initializer
|
11
|
+
root_element_name 'BotBlockResponse'
|
12
|
+
text_node :bot_block_token, 'BotBlockToken', :optional => true
|
13
|
+
text_node :bot_block_url, 'BotBlockUrl', :optional => true
|
14
|
+
text_node :bot_block_audio_url, 'BotBlockAudioUrl', :optional => true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
@@ -40,6 +40,7 @@ module Ebay # :nodoc:
|
|
40
40
|
# boolean_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', 'true', 'false', :optional => true
|
41
41
|
# boolean_node :safe_payment_required, 'SafePaymentRequired', 'true', 'false', :optional => true
|
42
42
|
# boolean_node :classified_ad_pay_per_lead_enabled, 'ClassifiedAdPayPerLeadEnabled', 'true', 'false', :optional => true
|
43
|
+
# text_node :item_specifics_enabled, 'ItemSpecificsEnabled', :optional => true
|
43
44
|
class CategoryFeature
|
44
45
|
include XML::Mapping
|
45
46
|
include Initializer
|
@@ -81,6 +82,7 @@ module Ebay # :nodoc:
|
|
81
82
|
boolean_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', 'true', 'false', :optional => true
|
82
83
|
boolean_node :safe_payment_required, 'SafePaymentRequired', 'true', 'false', :optional => true
|
83
84
|
boolean_node :classified_ad_pay_per_lead_enabled, 'ClassifiedAdPayPerLeadEnabled', 'true', 'false', :optional => true
|
85
|
+
text_node :item_specifics_enabled, 'ItemSpecificsEnabled', :optional => true
|
84
86
|
end
|
85
87
|
end
|
86
88
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'ebay/types/name_value_list'
|
2
|
+
|
3
|
+
module Ebay # :nodoc:
|
4
|
+
module Types # :nodoc:
|
5
|
+
# == Attributes
|
6
|
+
# text_node :category_id, 'CategoryID', :optional => true
|
7
|
+
# boolean_node :updated, 'Updated', 'true', 'false', :optional => true
|
8
|
+
# array_node :item_specifics, 'ItemSpecifics', 'NameValueList', :class => NameValueList, :default_value => []
|
9
|
+
class CategoryItemSpecifics
|
10
|
+
include XML::Mapping
|
11
|
+
include Initializer
|
12
|
+
root_element_name 'CategoryItemSpecifics'
|
13
|
+
text_node :category_id, 'CategoryID', :optional => true
|
14
|
+
boolean_node :updated, 'Updated', 'true', 'false', :optional => true
|
15
|
+
array_node :item_specifics, 'ItemSpecifics', 'NameValueList', :class => NameValueList, :default_value => []
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
|
@@ -12,6 +12,8 @@ module Ebay # :nodoc:
|
|
12
12
|
BestMatchSort = 'BestMatchSort'
|
13
13
|
DistanceSort = 'DistanceSort'
|
14
14
|
BestMatchCategoryGroup = 'BestMatchCategoryGroup'
|
15
|
+
PricePlusShippingAsc = 'PricePlusShippingAsc'
|
16
|
+
PricePlusShippingDesc = 'PricePlusShippingDesc'
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
@@ -14,6 +14,8 @@ module Ebay # :nodoc:
|
|
14
14
|
URLDetails = 'URLDetails'
|
15
15
|
TimeZoneDetails = 'TimeZoneDetails'
|
16
16
|
DispatchTimeMaxDetails = 'DispatchTimeMaxDetails'
|
17
|
+
ItemSpecificDetails = 'ItemSpecificDetails'
|
18
|
+
UnitOfMeasurementDetails = 'UnitOfMeasurementDetails'
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
@@ -37,6 +37,7 @@ require 'ebay/types/classified_ad_contact_by_phone_enabled_definition'
|
|
37
37
|
require 'ebay/types/classified_ad_contact_by_email_enabled_defintion'
|
38
38
|
require 'ebay/types/safe_payment_required_definition'
|
39
39
|
require 'ebay/types/classified_ad_pay_per_lead_enabled_definition'
|
40
|
+
require 'ebay/types/item_specifics_enabled_definition'
|
40
41
|
|
41
42
|
module Ebay # :nodoc:
|
42
43
|
module Types # :nodoc:
|
@@ -80,6 +81,7 @@ module Ebay # :nodoc:
|
|
80
81
|
# object_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', :class => ClassifiedAdContactByEmailEnabledDefintion, :optional => true
|
81
82
|
# object_node :safe_payment_required, 'SafePaymentRequired', :class => SafePaymentRequiredDefinition, :optional => true
|
82
83
|
# object_node :classified_ad_pay_per_lead_enabled, 'ClassifiedAdPayPerLeadEnabled', :class => ClassifiedAdPayPerLeadEnabledDefinition, :optional => true
|
84
|
+
# object_node :item_specifics_enabled, 'ItemSpecificsEnabled', :class => ItemSpecificsEnabledDefinition, :optional => true
|
83
85
|
class FeatureDefinitions
|
84
86
|
include XML::Mapping
|
85
87
|
include Initializer
|
@@ -123,6 +125,7 @@ module Ebay # :nodoc:
|
|
123
125
|
object_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', :class => ClassifiedAdContactByEmailEnabledDefintion, :optional => true
|
124
126
|
object_node :safe_payment_required, 'SafePaymentRequired', :class => SafePaymentRequiredDefinition, :optional => true
|
125
127
|
object_node :classified_ad_pay_per_lead_enabled, 'ClassifiedAdPayPerLeadEnabled', :class => ClassifiedAdPayPerLeadEnabledDefinition, :optional => true
|
128
|
+
object_node :item_specifics_enabled, 'ItemSpecificsEnabled', :class => ItemSpecificsEnabledDefinition, :optional => true
|
126
129
|
end
|
127
130
|
end
|
128
131
|
end
|
@@ -43,6 +43,7 @@ module Ebay # :nodoc:
|
|
43
43
|
ClassifiedAdMaximumBestOffersAllowed = 'ClassifiedAdMaximumBestOffersAllowed'
|
44
44
|
ClassifiedAdContactByEmailAvailable = 'ClassifiedAdContactByEmailAvailable'
|
45
45
|
ClassifiedAdPayPerLeadEnabled = 'ClassifiedAdPayPerLeadEnabled'
|
46
|
+
ItemSpecificsEnabled = 'ItemSpecificsEnabled'
|
46
47
|
end
|
47
48
|
end
|
48
49
|
end
|
@@ -3,6 +3,7 @@ require 'ebay/types/sifftas_recommendations'
|
|
3
3
|
require 'ebay/types/pricing_recommendations'
|
4
4
|
require 'ebay/types/attribute_recommendations'
|
5
5
|
require 'ebay/types/product_info'
|
6
|
+
require 'ebay/types/item_specifics_recommendations'
|
6
7
|
|
7
8
|
module Ebay # :nodoc:
|
8
9
|
module Types # :nodoc:
|
@@ -13,6 +14,7 @@ module Ebay # :nodoc:
|
|
13
14
|
# object_node :attribute_recommendations, 'AttributeRecommendations', :class => AttributeRecommendations, :optional => true
|
14
15
|
# array_node :product_recommendations, 'ProductRecommendations', 'Product', :class => ProductInfo, :default_value => []
|
15
16
|
# text_node :correlation_id, 'CorrelationID', :optional => true
|
17
|
+
# object_node :item_specifics_recommendations, 'ItemSpecificsRecommendations', :class => ItemSpecificsRecommendations, :optional => true
|
16
18
|
class GetRecommendationsResponseContainer
|
17
19
|
include XML::Mapping
|
18
20
|
include Initializer
|
@@ -23,6 +25,7 @@ module Ebay # :nodoc:
|
|
23
25
|
object_node :attribute_recommendations, 'AttributeRecommendations', :class => AttributeRecommendations, :optional => true
|
24
26
|
array_node :product_recommendations, 'ProductRecommendations', 'Product', :class => ProductInfo, :default_value => []
|
25
27
|
text_node :correlation_id, 'CorrelationID', :optional => true
|
28
|
+
object_node :item_specifics_recommendations, 'ItemSpecificsRecommendations', :class => ItemSpecificsRecommendations, :optional => true
|
26
29
|
end
|
27
30
|
end
|
28
31
|
end
|
data/lib/ebay/types/item.rb
CHANGED
@@ -52,7 +52,6 @@ module Ebay # :nodoc:
|
|
52
52
|
# cdata_node :description, 'Description', :optional => true
|
53
53
|
# text_node :description_revise_mode, 'DescriptionReviseMode', :optional => true
|
54
54
|
# object_node :distance, 'Distance', :class => Distance, :optional => true
|
55
|
-
# text_node :finance_offer_id, 'FinanceOfferID', :optional => true
|
56
55
|
# numeric_node :gift_icon, 'GiftIcon', :optional => true
|
57
56
|
# value_array_node :gift_services, 'GiftServices', :default_value => []
|
58
57
|
# text_node :hit_counter, 'HitCounter', :optional => true
|
@@ -164,7 +163,6 @@ module Ebay # :nodoc:
|
|
164
163
|
cdata_node :description, 'Description', :optional => true
|
165
164
|
text_node :description_revise_mode, 'DescriptionReviseMode', :optional => true
|
166
165
|
object_node :distance, 'Distance', :class => Distance, :optional => true
|
167
|
-
text_node :finance_offer_id, 'FinanceOfferID', :optional => true
|
168
166
|
numeric_node :gift_icon, 'GiftIcon', :optional => true
|
169
167
|
value_array_node :gift_services, 'GiftServices', :default_value => []
|
170
168
|
text_node :hit_counter, 'HitCounter', :optional => true
|
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
module Ebay # :nodoc:
|
3
|
+
module Types # :nodoc:
|
4
|
+
# == Attributes
|
5
|
+
# numeric_node :max_item_specifics_per_item, 'MaxItemSpecificsPerItem', :optional => true
|
6
|
+
# numeric_node :max_values_per_name, 'MaxValuesPerName', :optional => true
|
7
|
+
# numeric_node :max_characters_per_value, 'MaxCharactersPerValue', :optional => true
|
8
|
+
# numeric_node :max_characters_per_name, 'MaxCharactersPerName', :optional => true
|
9
|
+
class ItemSpecificDetails
|
10
|
+
include XML::Mapping
|
11
|
+
include Initializer
|
12
|
+
root_element_name 'ItemSpecificDetails'
|
13
|
+
numeric_node :max_item_specifics_per_item, 'MaxItemSpecificsPerItem', :optional => true
|
14
|
+
numeric_node :max_values_per_name, 'MaxValuesPerName', :optional => true
|
15
|
+
numeric_node :max_characters_per_value, 'MaxCharactersPerValue', :optional => true
|
16
|
+
numeric_node :max_characters_per_name, 'MaxCharactersPerName', :optional => true
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'ebay/types/name_value_list'
|
2
|
+
|
3
|
+
module Ebay # :nodoc:
|
4
|
+
module Types # :nodoc:
|
5
|
+
# == Attributes
|
6
|
+
# array_node :item_specifics, 'ItemSpecifics', 'NameValueList', :class => NameValueList, :default_value => []
|
7
|
+
class ItemSpecificsRecommendations
|
8
|
+
include XML::Mapping
|
9
|
+
include Initializer
|
10
|
+
root_element_name 'ItemSpecificsRecommendations'
|
11
|
+
array_node :item_specifics, 'ItemSpecifics', 'NameValueList', :class => NameValueList, :default_value => []
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
|