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.
- data/CHANGELOG +6 -0
- data/Rakefile +2 -2
- data/examples/add_item.rb +50 -0
- data/examples/add_member_message_aaq_to_partner.rb +33 -0
- data/examples/config.rb +10 -0
- data/examples/end_item.rb +18 -0
- data/examples/get_api_usage.rb +21 -0
- data/examples/get_attributes_xsl.rb +26 -0
- data/examples/get_ebay_details.rb +22 -0
- data/examples/get_ebay_time.rb +33 -0
- data/examples/get_ebay_time_raw.rb +31 -0
- data/examples/get_item.rb +25 -0
- data/examples/get_item_transactions.rb +36 -0
- data/examples/get_items_selling.rb +26 -0
- data/examples/get_my_messages.rb +21 -0
- data/examples/get_my_messages_folders.rb +20 -0
- data/examples/get_notification_preferences.rb +36 -0
- data/examples/get_notifications_usage.rb +23 -0
- data/examples/get_product_finder_xsl.rb +27 -0
- data/examples/get_search_results.rb +51 -0
- data/examples/get_user.rb +26 -0
- data/examples/mark_my_messages_message_as_read.rb +22 -0
- data/examples/revise_item.rb +34 -0
- data/examples/set_notification_preferences.rb +27 -0
- data/examples/verify_add_item.rb +37 -0
- data/lib/ebay/api.rb +5 -5
- data/lib/ebay/api_methods.rb +8 -0
- data/lib/ebay/requests.rb +1 -0
- data/lib/ebay/requests/get_category_listings.rb +3 -0
- data/lib/ebay/requests/get_my_ebay_buying.rb +3 -0
- data/lib/ebay/requests/get_search_results.rb +11 -0
- data/lib/ebay/requests/set_shipping_discount_profiles.rb +3 -3
- data/lib/ebay/requests/upload_site_hosted_pictures.rb +22 -0
- data/lib/ebay/responses.rb +1 -0
- data/lib/ebay/responses/get_my_ebay_buying.rb +3 -0
- data/lib/ebay/responses/get_shipping_discount_profiles.rb +3 -3
- data/lib/ebay/responses/upload_site_hosted_pictures.rb +18 -0
- data/lib/ebay/schema/mapper/ebay_schema_importer.rb +1 -1
- data/lib/ebay/schema/mapper/ruby_class_generator.rb +1 -1
- data/lib/ebay/schema/mapper/templates/xsl_file.erb +2 -1
- data/lib/ebay/schema/version.rb +1 -1
- data/lib/ebay/types.rb +8 -0
- data/lib/ebay/types/ad_format_lead.rb +2 -0
- data/lib/ebay/types/base64_binary.rb +17 -0
- data/lib/ebay/types/bid_assistant_list.rb +17 -0
- data/lib/ebay/types/bid_group.rb +22 -0
- data/lib/ebay/types/bid_group_array.rb +16 -0
- data/lib/ebay/types/bid_group_item.rb +20 -0
- data/lib/ebay/types/bid_group_item_status_code.rb +16 -0
- data/lib/ebay/types/bid_group_status_code.rb +11 -0
- data/lib/ebay/types/bid_range.rb +17 -0
- data/lib/ebay/types/bidding_details.rb +2 -0
- data/lib/ebay/types/buyer_protection_details.rb +17 -0
- data/lib/ebay/types/buyer_protection_source_code.rb +11 -0
- data/lib/ebay/types/category_feature.rb +2 -0
- data/lib/ebay/types/category_listings_order_code.rb +1 -0
- data/lib/ebay/types/classified_ad_pay_per_lead_enabled_definition.rb +13 -0
- data/lib/ebay/types/date.rb +19 -0
- data/lib/ebay/types/extended_contact_details.rb +4 -0
- data/lib/ebay/types/feature_definitions.rb +3 -0
- data/lib/ebay/types/feature_id_code.rb +4 -0
- data/lib/ebay/types/group.rb +17 -0
- data/lib/ebay/types/item.rb +9 -0
- data/lib/ebay/types/item_condition_code.rb +11 -0
- data/lib/ebay/types/item_sort_type_code.rb +2 -0
- data/lib/ebay/types/listing_details.rb +2 -0
- data/lib/ebay/types/picture_format_code.rb +11 -0
- data/lib/ebay/types/picture_set_code.rb +12 -0
- data/lib/ebay/types/picture_set_member.rb +19 -0
- data/lib/ebay/types/request_categories.rb +2 -0
- data/lib/ebay/types/search_sort_order_code.rb +1 -0
- data/lib/ebay/types/shipping_details.rb +2 -0
- data/lib/ebay/types/shipping_service_code.rb +3 -0
- data/lib/ebay/types/site_defaults.rb +2 -0
- data/lib/ebay/types/site_hosted_picture_details.rb +26 -0
- data/lib/ebay/types/store_custom_listing_header.rb +0 -2
- data/lib/ebay/types/ticket_details.rb +24 -0
- data/lib/ebay/types/ticket_event_type_code.rb +31 -0
- data/lib/ebay/types/transaction.rb +4 -0
- data/lib/ebay/types/transaction_platform_code.rb +13 -0
- data/lib/ebay/types/xsl_file.rb +2 -1
- data/rakefile +2 -2
- metadata +49 -4
- data/lib/ebay/types/promotional_shipping_discount.rb +0 -21
@@ -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/
|
4
|
+
require 'ebay/types/promotional_shipping_discount_details'
|
5
5
|
require 'ebay/types/shipping_insurance'
|
6
6
|
|
7
7
|
module Ebay # :nodoc:
|
@@ -12,7 +12,7 @@ module Ebay # :nodoc:
|
|
12
12
|
# object_node :calculated_shipping_discount, 'CalculatedShippingDiscount', :class => CalculatedShippingDiscount, :optional => true
|
13
13
|
# boolean_node :promotional_shipping_discount, 'PromotionalShippingDiscount', 'true', 'false', :optional => true
|
14
14
|
# object_node :calculated_handling_discount, 'CalculatedHandlingDiscount', :class => CalculatedHandlingDiscount, :optional => true
|
15
|
-
# object_node :promotional_shipping_discount_details, 'PromotionalShippingDiscountDetails', :class =>
|
15
|
+
# object_node :promotional_shipping_discount_details, 'PromotionalShippingDiscountDetails', :class => PromotionalShippingDiscountDetails, :optional => true
|
16
16
|
# object_node :shipping_insurance, 'ShippingInsurance', :class => ShippingInsurance, :optional => true
|
17
17
|
# object_node :international_shipping_insurance, 'InternationalShippingInsurance', :class => ShippingInsurance, :optional => true
|
18
18
|
# text_node :combined_duration, 'CombinedDuration', :optional => true
|
@@ -25,7 +25,7 @@ module Ebay # :nodoc:
|
|
25
25
|
object_node :calculated_shipping_discount, 'CalculatedShippingDiscount', :class => CalculatedShippingDiscount, :optional => true
|
26
26
|
boolean_node :promotional_shipping_discount, 'PromotionalShippingDiscount', 'true', 'false', :optional => true
|
27
27
|
object_node :calculated_handling_discount, 'CalculatedHandlingDiscount', :class => CalculatedHandlingDiscount, :optional => true
|
28
|
-
object_node :promotional_shipping_discount_details, 'PromotionalShippingDiscountDetails', :class =>
|
28
|
+
object_node :promotional_shipping_discount_details, 'PromotionalShippingDiscountDetails', :class => PromotionalShippingDiscountDetails, :optional => true
|
29
29
|
object_node :shipping_insurance, 'ShippingInsurance', :class => ShippingInsurance, :optional => true
|
30
30
|
object_node :international_shipping_insurance, 'InternationalShippingInsurance', :class => ShippingInsurance, :optional => true
|
31
31
|
text_node :combined_duration, 'CombinedDuration', :optional => true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'ebay/types/site_hosted_picture_details'
|
2
|
+
|
3
|
+
module Ebay # :nodoc:
|
4
|
+
module Responses # :nodoc:
|
5
|
+
# == Attributes
|
6
|
+
# numeric_node :picture_system_version, 'PictureSystemVersion', :optional => true
|
7
|
+
# object_node :site_hosted_picture_details, 'SiteHostedPictureDetails', :class => SiteHostedPictureDetails, :optional => true
|
8
|
+
class UploadSiteHostedPictures < Abstract
|
9
|
+
include XML::Mapping
|
10
|
+
include Initializer
|
11
|
+
root_element_name 'UploadSiteHostedPicturesResponse'
|
12
|
+
numeric_node :picture_system_version, 'PictureSystemVersion', :optional => true
|
13
|
+
object_node :site_hosted_picture_details, 'SiteHostedPictureDetails', :class => SiteHostedPictureDetails, :optional => true
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
@@ -250,7 +250,7 @@ module Ebay
|
|
250
250
|
# Found a container!
|
251
251
|
child = element.elements[0]
|
252
252
|
|
253
|
-
ignored = %w( MemberMessage BidApproval PromotionalSaleDetails )
|
253
|
+
ignored = %w( MemberMessage BidApproval PromotionalSaleDetails BidAssistantList )
|
254
254
|
|
255
255
|
unless BuiltInTypes.include?(child.type.name)
|
256
256
|
@ignored_classes << name unless ignored.include?(name)
|
@@ -8,5 +8,6 @@ end
|
|
8
8
|
private
|
9
9
|
def unpack_stylesheet(base64string)
|
10
10
|
stylesheet = base64string.unpack('m').first
|
11
|
-
stylesheet.
|
11
|
+
stylesheet.sub!(/urn:schemas-microsoft-com:xslt/, 'http://exslt.org/common')
|
12
|
+
stylesheet.sub!(/exclude-result-prefixes="x"/, 'exclude-result-prefixes="x xal"')
|
12
13
|
end
|
data/lib/ebay/schema/version.rb
CHANGED
data/lib/ebay/types.rb
CHANGED
@@ -36,10 +36,13 @@ require 'ebay/types/best_offer_action_code'
|
|
36
36
|
require 'ebay/types/best_offer_status_code'
|
37
37
|
require 'ebay/types/best_offer_type_code'
|
38
38
|
require 'ebay/types/bid_action_code'
|
39
|
+
require 'ebay/types/bid_group_item_status_code'
|
40
|
+
require 'ebay/types/bid_group_status_code'
|
39
41
|
require 'ebay/types/bidder_status_code'
|
40
42
|
require 'ebay/types/bidder_type_code'
|
41
43
|
require 'ebay/types/bulk_catalog_lister_status_code'
|
42
44
|
require 'ebay/types/buyer_protection_code'
|
45
|
+
require 'ebay/types/buyer_protection_source_code'
|
43
46
|
require 'ebay/types/calculated_shipping_charge_option_code'
|
44
47
|
require 'ebay/types/calculated_shipping_rate_option_code'
|
45
48
|
require 'ebay/types/category_feature_detail_level_code'
|
@@ -99,6 +102,7 @@ require 'ebay/types/handling_name_code'
|
|
99
102
|
require 'ebay/types/hit_counter_code'
|
100
103
|
require 'ebay/types/insurance_option_code'
|
101
104
|
require 'ebay/types/insurance_selected_code'
|
105
|
+
require 'ebay/types/item_condition_code'
|
102
106
|
require 'ebay/types/item_format_sort_filter_code'
|
103
107
|
require 'ebay/types/item_location_code'
|
104
108
|
require 'ebay/types/item_sort_filter_code'
|
@@ -137,10 +141,12 @@ require 'ebay/types/payment_method_search_code'
|
|
137
141
|
require 'ebay/types/payment_status_code'
|
138
142
|
require 'ebay/types/payment_type_code'
|
139
143
|
require 'ebay/types/photo_display_code'
|
144
|
+
require 'ebay/types/picture_format_code'
|
140
145
|
require 'ebay/types/picture_manager_action_code'
|
141
146
|
require 'ebay/types/picture_manager_detail_level_code'
|
142
147
|
require 'ebay/types/picture_manager_picture_display_type_code'
|
143
148
|
require 'ebay/types/picture_manager_subscription_level_code'
|
149
|
+
require 'ebay/types/picture_set_code'
|
144
150
|
require 'ebay/types/picture_source_code'
|
145
151
|
require 'ebay/types/product_sort_code'
|
146
152
|
require 'ebay/types/product_use_case_code'
|
@@ -199,8 +205,10 @@ require 'ebay/types/string_match_code'
|
|
199
205
|
require 'ebay/types/summary_frequency_code'
|
200
206
|
require 'ebay/types/summary_window_period_code'
|
201
207
|
require 'ebay/types/task_status_code'
|
208
|
+
require 'ebay/types/ticket_event_type_code'
|
202
209
|
require 'ebay/types/token_return_method_code'
|
203
210
|
require 'ebay/types/trading_role_code'
|
211
|
+
require 'ebay/types/transaction_platform_code'
|
204
212
|
require 'ebay/types/transaction_platform'
|
205
213
|
require 'ebay/types/ups_rate_option_code'
|
206
214
|
require 'ebay/types/url_type_code'
|
@@ -18,6 +18,7 @@ module Ebay # :nodoc:
|
|
18
18
|
# array_node :member_messages, 'MemberMessage', 'MemberMessageExchange', :class => MemberMessageExchange, :default_value => []
|
19
19
|
# text_node :status, 'Status', :optional => true
|
20
20
|
# text_node :phone2, 'Phone2', :optional => true
|
21
|
+
# money_node :lead_fee, 'LeadFee', :optional => true
|
21
22
|
class AdFormatLead
|
22
23
|
include XML::Mapping
|
23
24
|
include Initializer
|
@@ -36,6 +37,7 @@ module Ebay # :nodoc:
|
|
36
37
|
array_node :member_messages, 'MemberMessage', 'MemberMessageExchange', :class => MemberMessageExchange, :default_value => []
|
37
38
|
text_node :status, 'Status', :optional => true
|
38
39
|
text_node :phone2, 'Phone2', :optional => true
|
40
|
+
money_node :lead_fee, 'LeadFee', :optional => true
|
39
41
|
end
|
40
42
|
end
|
41
43
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
module Ebay # :nodoc:
|
3
|
+
module Types # :nodoc:
|
4
|
+
# == Attributes
|
5
|
+
#
|
6
|
+
# text_node :string, '@contentType', :optional => true
|
7
|
+
class Base64Binary
|
8
|
+
include XML::Mapping
|
9
|
+
include Initializer
|
10
|
+
root_element_name 'Base64Binary'
|
11
|
+
|
12
|
+
text_node :string, '@contentType', :optional => true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
module Ebay # :nodoc:
|
3
|
+
module Types # :nodoc:
|
4
|
+
# == Attributes
|
5
|
+
# numeric_node :bid_group_id, 'BidGroupID', :optional => true
|
6
|
+
# boolean_node :include_notes, 'IncludeNotes', 'true', 'false', :optional => true
|
7
|
+
class BidAssistantList
|
8
|
+
include XML::Mapping
|
9
|
+
include Initializer
|
10
|
+
root_element_name 'BidAssistantList'
|
11
|
+
numeric_node :bid_group_id, 'BidGroupID', :optional => true
|
12
|
+
boolean_node :include_notes, 'IncludeNotes', 'true', 'false', :optional => true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'ebay/types/bid_group_item'
|
2
|
+
|
3
|
+
module Ebay # :nodoc:
|
4
|
+
module Types # :nodoc:
|
5
|
+
# == Attributes
|
6
|
+
# array_node :bid_group_items, 'BidGroupItem', :class => BidGroupItem, :default_value => []
|
7
|
+
# numeric_node :bid_group_id, 'BidGroupID', :optional => true
|
8
|
+
# text_node :bid_group_name, 'BidGroupName', :optional => true
|
9
|
+
# text_node :bid_group_status, 'BidGroupStatus', :optional => true
|
10
|
+
class BidGroup
|
11
|
+
include XML::Mapping
|
12
|
+
include Initializer
|
13
|
+
root_element_name 'BidGroup'
|
14
|
+
array_node :bid_group_items, 'BidGroupItem', :class => BidGroupItem, :default_value => []
|
15
|
+
numeric_node :bid_group_id, 'BidGroupID', :optional => true
|
16
|
+
text_node :bid_group_name, 'BidGroupName', :optional => true
|
17
|
+
text_node :bid_group_status, 'BidGroupStatus', :optional => true
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'ebay/types/bid_group'
|
2
|
+
|
3
|
+
module Ebay # :nodoc:
|
4
|
+
module Types # :nodoc:
|
5
|
+
# == Attributes
|
6
|
+
# array_node :bid_groups, 'BidGroup', :class => BidGroup, :default_value => []
|
7
|
+
class BidGroupArray
|
8
|
+
include XML::Mapping
|
9
|
+
include Initializer
|
10
|
+
root_element_name 'BidGroupArray'
|
11
|
+
array_node :bid_groups, 'BidGroup', :class => BidGroup, :default_value => []
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'ebay/types/item'
|
2
|
+
|
3
|
+
module Ebay # :nodoc:
|
4
|
+
module Types # :nodoc:
|
5
|
+
# == Attributes
|
6
|
+
# object_node :item, 'Item', :class => Item, :optional => true
|
7
|
+
# text_node :bid_group_item_status, 'BidGroupItemStatus', :optional => true
|
8
|
+
# money_node :max_bid_amount, 'MaxBidAmount', :optional => true
|
9
|
+
class BidGroupItem
|
10
|
+
include XML::Mapping
|
11
|
+
include Initializer
|
12
|
+
root_element_name 'BidGroupItem'
|
13
|
+
object_node :item, 'Item', :class => Item, :optional => true
|
14
|
+
text_node :bid_group_item_status, 'BidGroupItemStatus', :optional => true
|
15
|
+
money_node :max_bid_amount, 'MaxBidAmount', :optional => true
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Ebay # :nodoc:
|
2
|
+
module Types # :nodoc:
|
3
|
+
class BidGroupItemStatusCode
|
4
|
+
extend Enumerable
|
5
|
+
extend Enumeration
|
6
|
+
CurrentBid = 'CurrentBid'
|
7
|
+
Cancelled = 'Cancelled'
|
8
|
+
Pending = 'Pending'
|
9
|
+
Skipped = 'Skipped'
|
10
|
+
Ended = 'Ended'
|
11
|
+
Won = 'Won'
|
12
|
+
GroupClosed = 'GroupClosed'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
module Ebay # :nodoc:
|
3
|
+
module Types # :nodoc:
|
4
|
+
# == Attributes
|
5
|
+
# numeric_node :minimum_bid_count, 'MinimumBidCount', :optional => true
|
6
|
+
# numeric_node :maximum_bid_count, 'MaximumBidCount', :optional => true
|
7
|
+
class BidRange
|
8
|
+
include XML::Mapping
|
9
|
+
include Initializer
|
10
|
+
root_element_name 'BidRange'
|
11
|
+
numeric_node :minimum_bid_count, 'MinimumBidCount', :optional => true
|
12
|
+
numeric_node :maximum_bid_count, 'MaximumBidCount', :optional => true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
@@ -7,6 +7,7 @@ module Ebay # :nodoc:
|
|
7
7
|
# numeric_node :quantity_bid, 'QuantityBid', :optional => true
|
8
8
|
# numeric_node :quantity_won, 'QuantityWon', :optional => true
|
9
9
|
# boolean_node :winning, 'Winning', 'true', 'false', :optional => true
|
10
|
+
# boolean_node :bid_assistant, 'BidAssistant', 'true', 'false', :optional => true
|
10
11
|
class BiddingDetails
|
11
12
|
include XML::Mapping
|
12
13
|
include Initializer
|
@@ -16,6 +17,7 @@ module Ebay # :nodoc:
|
|
16
17
|
numeric_node :quantity_bid, 'QuantityBid', :optional => true
|
17
18
|
numeric_node :quantity_won, 'QuantityWon', :optional => true
|
18
19
|
boolean_node :winning, 'Winning', 'true', 'false', :optional => true
|
20
|
+
boolean_node :bid_assistant, 'BidAssistant', 'true', 'false', :optional => true
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
module Ebay # :nodoc:
|
3
|
+
module Types # :nodoc:
|
4
|
+
# == Attributes
|
5
|
+
# text_node :buyer_protection_source, 'BuyerProtectionSource', :optional => true
|
6
|
+
# text_node :buyer_protection_status, 'BuyerProtectionStatus', :optional => true
|
7
|
+
class BuyerProtectionDetails
|
8
|
+
include XML::Mapping
|
9
|
+
include Initializer
|
10
|
+
root_element_name 'BuyerProtectionDetails'
|
11
|
+
text_node :buyer_protection_source, 'BuyerProtectionSource', :optional => true
|
12
|
+
text_node :buyer_protection_status, 'BuyerProtectionStatus', :optional => true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
@@ -39,6 +39,7 @@ module Ebay # :nodoc:
|
|
39
39
|
# boolean_node :classified_ad_contact_by_phone_enabled, 'ClassifiedAdContactByPhoneEnabled', 'true', 'false', :optional => true
|
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
|
+
# boolean_node :classified_ad_pay_per_lead_enabled, 'ClassifiedAdPayPerLeadEnabled', 'true', 'false', :optional => true
|
42
43
|
class CategoryFeature
|
43
44
|
include XML::Mapping
|
44
45
|
include Initializer
|
@@ -79,6 +80,7 @@ module Ebay # :nodoc:
|
|
79
80
|
boolean_node :classified_ad_contact_by_phone_enabled, 'ClassifiedAdContactByPhoneEnabled', 'true', 'false', :optional => true
|
80
81
|
boolean_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', 'true', 'false', :optional => true
|
81
82
|
boolean_node :safe_payment_required, 'SafePaymentRequired', 'true', 'false', :optional => true
|
83
|
+
boolean_node :classified_ad_pay_per_lead_enabled, 'ClassifiedAdPayPerLeadEnabled', 'true', 'false', :optional => true
|
82
84
|
end
|
83
85
|
end
|
84
86
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
module Ebay # :nodoc:
|
3
|
+
module Types # :nodoc:
|
4
|
+
# == Attributes
|
5
|
+
# numeric_node :year, 'Year', :optional => true
|
6
|
+
# numeric_node :month, 'Month', :optional => true
|
7
|
+
# numeric_node :day, 'Day', :optional => true
|
8
|
+
class Date
|
9
|
+
include XML::Mapping
|
10
|
+
include Initializer
|
11
|
+
root_element_name 'Date'
|
12
|
+
numeric_node :year, 'Year', :optional => true
|
13
|
+
numeric_node :month, 'Month', :optional => true
|
14
|
+
numeric_node :day, 'Day', :optional => true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
@@ -4,11 +4,15 @@ module Ebay # :nodoc:
|
|
4
4
|
module Types # :nodoc:
|
5
5
|
# == Attributes
|
6
6
|
# object_node :contact_hours_details, 'ContactHoursDetails', :class => ContactHoursDetails, :optional => true
|
7
|
+
# boolean_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', 'true', 'false', :optional => true
|
8
|
+
# text_node :pay_per_lead_phone_number, 'PayPerLeadPhoneNumber', :optional => true
|
7
9
|
class ExtendedContactDetails
|
8
10
|
include XML::Mapping
|
9
11
|
include Initializer
|
10
12
|
root_element_name 'ExtendedContactDetails'
|
11
13
|
object_node :contact_hours_details, 'ContactHoursDetails', :class => ContactHoursDetails, :optional => true
|
14
|
+
boolean_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', 'true', 'false', :optional => true
|
15
|
+
text_node :pay_per_lead_phone_number, 'PayPerLeadPhoneNumber', :optional => true
|
12
16
|
end
|
13
17
|
end
|
14
18
|
end
|
@@ -36,6 +36,7 @@ require 'ebay/types/classified_ad_auto_decline_enabled_definition'
|
|
36
36
|
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
|
+
require 'ebay/types/classified_ad_pay_per_lead_enabled_definition'
|
39
40
|
|
40
41
|
module Ebay # :nodoc:
|
41
42
|
module Types # :nodoc:
|
@@ -78,6 +79,7 @@ module Ebay # :nodoc:
|
|
78
79
|
# object_node :classified_ad_contact_by_phone_enabled, 'ClassifiedAdContactByPhoneEnabled', :class => ClassifiedAdContactByPhoneEnabledDefinition, :optional => true
|
79
80
|
# object_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', :class => ClassifiedAdContactByEmailEnabledDefintion, :optional => true
|
80
81
|
# object_node :safe_payment_required, 'SafePaymentRequired', :class => SafePaymentRequiredDefinition, :optional => true
|
82
|
+
# object_node :classified_ad_pay_per_lead_enabled, 'ClassifiedAdPayPerLeadEnabled', :class => ClassifiedAdPayPerLeadEnabledDefinition, :optional => true
|
81
83
|
class FeatureDefinitions
|
82
84
|
include XML::Mapping
|
83
85
|
include Initializer
|
@@ -120,6 +122,7 @@ module Ebay # :nodoc:
|
|
120
122
|
object_node :classified_ad_contact_by_phone_enabled, 'ClassifiedAdContactByPhoneEnabled', :class => ClassifiedAdContactByPhoneEnabledDefinition, :optional => true
|
121
123
|
object_node :classified_ad_contact_by_email_enabled, 'ClassifiedAdContactByEmailEnabled', :class => ClassifiedAdContactByEmailEnabledDefintion, :optional => true
|
122
124
|
object_node :safe_payment_required, 'SafePaymentRequired', :class => SafePaymentRequiredDefinition, :optional => true
|
125
|
+
object_node :classified_ad_pay_per_lead_enabled, 'ClassifiedAdPayPerLeadEnabled', :class => ClassifiedAdPayPerLeadEnabledDefinition, :optional => true
|
123
126
|
end
|
124
127
|
end
|
125
128
|
end
|