ebayapi 0.10.2 → 0.11.0
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 +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/test/test_helper.rb
CHANGED
@@ -2,17 +2,8 @@ $:.unshift File.dirname(__FILE__)
|
|
2
2
|
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
3
3
|
$:.unshift File.join(File.dirname(__FILE__), "..", "lib", "schema")
|
4
4
|
|
5
|
-
begin
|
6
|
-
require 'active_support'
|
7
|
-
rescue LoadError
|
8
|
-
require 'rubygems'
|
9
|
-
require 'active_support'
|
10
|
-
end
|
11
|
-
|
12
|
-
|
13
5
|
require 'test/unit'
|
14
6
|
require 'ebay'
|
15
|
-
require 'ebay/schema/mapper'
|
16
7
|
require 'http_mock'
|
17
8
|
require 'credentials'
|
18
9
|
|
@@ -22,7 +22,14 @@ class MoneyNodeTest < Test::Unit::TestCase
|
|
22
22
|
assert_instance_of Money, item.amount
|
23
23
|
assert_equal 1000, item.amount.cents
|
24
24
|
assert_equal 'CAD', item.amount.currency
|
25
|
-
end
|
25
|
+
end
|
26
26
|
|
27
|
+
def test_to_xml
|
28
|
+
item = Widget.new
|
29
|
+
item.amount = Money.new(100, 'CAD')
|
30
|
+
item_xml = item.save_to_xml
|
31
|
+
assert_equal '1.00', item_xml.elements[1].text
|
32
|
+
assert_equal 'CAD', item_xml.elements[1].attributes['currencyID']
|
33
|
+
end
|
27
34
|
end
|
28
35
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ebayapi
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.11.0
|
7
|
+
date: 2007-09-21 00:00:00 -04:00
|
8
8
|
summary: Ruby client for the eBay unified schema XML API
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -79,10 +79,10 @@ files:
|
|
79
79
|
- lib/ebay/requests/get_cart.rb
|
80
80
|
- lib/ebay/requests/get_categories.rb
|
81
81
|
- lib/ebay/requests/get_category2_cs.rb
|
82
|
-
- lib/ebay/requests/get_category2_finance_offer.rb
|
83
82
|
- lib/ebay/requests/get_category_features.rb
|
84
83
|
- lib/ebay/requests/get_category_listings.rb
|
85
84
|
- lib/ebay/requests/get_category_mappings.rb
|
85
|
+
- lib/ebay/requests/get_category_specifics.rb
|
86
86
|
- lib/ebay/requests/get_challenge_token.rb
|
87
87
|
- lib/ebay/requests/get_charities.rb
|
88
88
|
- lib/ebay/requests/get_contextual_keywords.rb
|
@@ -92,7 +92,6 @@ files:
|
|
92
92
|
- lib/ebay/requests/get_ebay_details.rb
|
93
93
|
- lib/ebay/requests/get_ebay_official_time.rb
|
94
94
|
- lib/ebay/requests/get_feedback.rb
|
95
|
-
- lib/ebay/requests/get_finance_offers.rb
|
96
95
|
- lib/ebay/requests/get_high_bidders.rb
|
97
96
|
- lib/ebay/requests/get_item.rb
|
98
97
|
- lib/ebay/requests/get_item_recommendations.rb
|
@@ -166,7 +165,6 @@ files:
|
|
166
165
|
- lib/ebay/requests/set_message_preferences.rb
|
167
166
|
- lib/ebay/requests/set_notification_preferences.rb
|
168
167
|
- lib/ebay/requests/set_picture_manager_details.rb
|
169
|
-
- lib/ebay/requests/set_promotion_rules.rb
|
170
168
|
- lib/ebay/requests/set_promotional_sale.rb
|
171
169
|
- lib/ebay/requests/set_promotional_sale_listings.rb
|
172
170
|
- lib/ebay/requests/set_return_url.rb
|
@@ -214,10 +212,10 @@ files:
|
|
214
212
|
- lib/ebay/responses/get_cart.rb
|
215
213
|
- lib/ebay/responses/get_categories.rb
|
216
214
|
- lib/ebay/responses/get_category2_cs.rb
|
217
|
-
- lib/ebay/responses/get_category2_finance_offer.rb
|
218
215
|
- lib/ebay/responses/get_category_features.rb
|
219
216
|
- lib/ebay/responses/get_category_listings.rb
|
220
217
|
- lib/ebay/responses/get_category_mappings.rb
|
218
|
+
- lib/ebay/responses/get_category_specifics.rb
|
221
219
|
- lib/ebay/responses/get_challenge_token.rb
|
222
220
|
- lib/ebay/responses/get_charities.rb
|
223
221
|
- lib/ebay/responses/get_contextual_keywords.rb
|
@@ -227,7 +225,6 @@ files:
|
|
227
225
|
- lib/ebay/responses/get_ebay_details.rb
|
228
226
|
- lib/ebay/responses/get_ebay_official_time.rb
|
229
227
|
- lib/ebay/responses/get_feedback.rb
|
230
|
-
- lib/ebay/responses/get_finance_offers.rb
|
231
228
|
- lib/ebay/responses/get_high_bidders.rb
|
232
229
|
- lib/ebay/responses/get_item.rb
|
233
230
|
- lib/ebay/responses/get_item_recommendations.rb
|
@@ -302,7 +299,6 @@ files:
|
|
302
299
|
- lib/ebay/responses/set_message_preferences.rb
|
303
300
|
- lib/ebay/responses/set_notification_preferences.rb
|
304
301
|
- lib/ebay/responses/set_picture_manager_details.rb
|
305
|
-
- lib/ebay/responses/set_promotion_rules.rb
|
306
302
|
- lib/ebay/responses/set_promotional_sale.rb
|
307
303
|
- lib/ebay/responses/set_promotional_sale_listings.rb
|
308
304
|
- lib/ebay/responses/set_return_url.rb
|
@@ -369,6 +365,7 @@ files:
|
|
369
365
|
- lib/ebay/types/attribute.rb
|
370
366
|
- lib/ebay/types/attribute_recommendations.rb
|
371
367
|
- lib/ebay/types/attribute_set.rb
|
368
|
+
- lib/ebay/types/auth_token_type_code.rb
|
372
369
|
- lib/ebay/types/authentication_entry.rb
|
373
370
|
- lib/ebay/types/average_rating_detail_array.rb
|
374
371
|
- lib/ebay/types/average_rating_details.rb
|
@@ -401,6 +398,8 @@ files:
|
|
401
398
|
- lib/ebay/types/bidder_type_code.rb
|
402
399
|
- lib/ebay/types/bidding_details.rb
|
403
400
|
- lib/ebay/types/bidding_summary.rb
|
401
|
+
- lib/ebay/types/bot_block_request.rb
|
402
|
+
- lib/ebay/types/bot_block_response.rb
|
404
403
|
- lib/ebay/types/bulk_catalog_lister_status_code.rb
|
405
404
|
- lib/ebay/types/buyer.rb
|
406
405
|
- lib/ebay/types/buyer_payment_method_code.rb
|
@@ -425,7 +424,7 @@ files:
|
|
425
424
|
- lib/ebay/types/category.rb
|
426
425
|
- lib/ebay/types/category_feature.rb
|
427
426
|
- lib/ebay/types/category_feature_detail_level_code.rb
|
428
|
-
- lib/ebay/types/
|
427
|
+
- lib/ebay/types/category_item_specifics.rb
|
429
428
|
- lib/ebay/types/category_listings_order_code.rb
|
430
429
|
- lib/ebay/types/category_listings_search_code.rb
|
431
430
|
- lib/ebay/types/category_mapping.rb
|
@@ -558,7 +557,6 @@ files:
|
|
558
557
|
- lib/ebay/types/feedback_requirements.rb
|
559
558
|
- lib/ebay/types/feedback_response_code.rb
|
560
559
|
- lib/ebay/types/feedback_summary.rb
|
561
|
-
- lib/ebay/types/finance_offer.rb
|
562
560
|
- lib/ebay/types/flat_rate_insurance_range_code.rb
|
563
561
|
- lib/ebay/types/flat_rate_insurance_range_cost.rb
|
564
562
|
- lib/ebay/types/flat_shipping_discount.rb
|
@@ -593,6 +591,11 @@ files:
|
|
593
591
|
- lib/ebay/types/item_rating_details.rb
|
594
592
|
- lib/ebay/types/item_sort_filter_code.rb
|
595
593
|
- lib/ebay/types/item_sort_type_code.rb
|
594
|
+
- lib/ebay/types/item_specific_details.rb
|
595
|
+
- lib/ebay/types/item_specific_source_code.rb
|
596
|
+
- lib/ebay/types/item_specifics_enabled_code.rb
|
597
|
+
- lib/ebay/types/item_specifics_enabled_definition.rb
|
598
|
+
- lib/ebay/types/item_specifics_recommendations.rb
|
596
599
|
- lib/ebay/types/item_totals.rb
|
597
600
|
- lib/ebay/types/item_transaction_id.rb
|
598
601
|
- lib/ebay/types/item_type_filter_code.rb
|
@@ -644,6 +647,7 @@ files:
|
|
644
647
|
- lib/ebay/types/message_type_code.rb
|
645
648
|
- lib/ebay/types/minimum_reserve_price_definition.rb
|
646
649
|
- lib/ebay/types/modify_action_code.rb
|
650
|
+
- lib/ebay/types/motors_local_market_enabled_definition.rb
|
647
651
|
- lib/ebay/types/my_ebay_favorite_search.rb
|
648
652
|
- lib/ebay/types/my_ebay_favorite_search_list.rb
|
649
653
|
- lib/ebay/types/my_ebay_favorite_seller.rb
|
@@ -680,7 +684,6 @@ files:
|
|
680
684
|
- lib/ebay/types/notification_user_data.rb
|
681
685
|
- lib/ebay/types/offer.rb
|
682
686
|
- lib/ebay/types/offer_array.rb
|
683
|
-
- lib/ebay/types/operation_type_code.rb
|
684
687
|
- lib/ebay/types/order.rb
|
685
688
|
- lib/ebay/types/order_role_code.rb
|
686
689
|
- lib/ebay/types/order_status_code.rb
|
@@ -880,6 +883,8 @@ files:
|
|
880
883
|
- lib/ebay/types/transaction_platform_code.rb
|
881
884
|
- lib/ebay/types/transaction_status.rb
|
882
885
|
- lib/ebay/types/unit_code.rb
|
886
|
+
- lib/ebay/types/unit_of_measurement.rb
|
887
|
+
- lib/ebay/types/unit_of_measurement_details.rb
|
883
888
|
- lib/ebay/types/ups_rate_option_code.rb
|
884
889
|
- lib/ebay/types/url_details.rb
|
885
890
|
- lib/ebay/types/url_type_code.rb
|
@@ -916,6 +921,7 @@ files:
|
|
916
921
|
- test/credentials.rb
|
917
922
|
- test/fixtures
|
918
923
|
- test/http_mock.rb
|
924
|
+
- test/mapping
|
919
925
|
- test/test_helper.rb
|
920
926
|
- test/unit
|
921
927
|
- test/fixtures/notifications
|
@@ -936,22 +942,22 @@ files:
|
|
936
942
|
- test/fixtures/templates/abstract_response.erb
|
937
943
|
- test/fixtures/templates/base.erb
|
938
944
|
- test/fixtures/templates/ebay_class.erb
|
945
|
+
- test/mapping/class_definition_test.rb
|
946
|
+
- test/mapping/generate_from_xsd.rb
|
947
|
+
- test/mapping/mapping_subclass_test.rb
|
948
|
+
- test/mapping/node_test.rb
|
949
|
+
- test/mapping/template_test.rb
|
939
950
|
- test/unit/abstract_request_test.rb
|
940
951
|
- test/unit/application_delivery_preferences_test.rb
|
941
|
-
- test/unit/class_definition_test.rb
|
942
952
|
- test/unit/config_test.rb
|
943
953
|
- test/unit/ebay_test.rb
|
944
|
-
- test/unit/generate_from_xsd.rb
|
945
954
|
- test/unit/get_attributes_cs_test.rb
|
946
955
|
- test/unit/get_attributes_xsl_test.rb
|
947
956
|
- test/unit/get_product_finder_xsl_test.rb
|
948
957
|
- test/unit/inflections_test.rb
|
949
958
|
- test/unit/initializer_test.rb
|
950
|
-
- test/unit/mapping_subclass_test.rb
|
951
|
-
- test/unit/node_test.rb
|
952
959
|
- test/unit/notification_signature_test.rb
|
953
960
|
- test/unit/notifications_test.rb
|
954
|
-
- test/unit/template_test.rb
|
955
961
|
- test/unit/xml_mapping_cdata_node_test.rb
|
956
962
|
- test/unit/xml_mapping_money_node_test.rb
|
957
963
|
- test/unit/xml_mapping_test.rb
|
@@ -1008,15 +1014,6 @@ dependencies:
|
|
1008
1014
|
- !ruby/object:Gem::Version
|
1009
1015
|
version: 0.8.1
|
1010
1016
|
version:
|
1011
|
-
- !ruby/object:Gem::Dependency
|
1012
|
-
name: activesupport
|
1013
|
-
version_requirement:
|
1014
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
1015
|
-
requirements:
|
1016
|
-
- - ">="
|
1017
|
-
- !ruby/object:Gem::Version
|
1018
|
-
version: 1.3.1
|
1019
|
-
version:
|
1020
1017
|
- !ruby/object:Gem::Dependency
|
1021
1018
|
name: money
|
1022
1019
|
version_requirement:
|
@@ -1,17 +0,0 @@
|
|
1
|
-
|
2
|
-
module Ebay # :nodoc:
|
3
|
-
module Requests # :nodoc:
|
4
|
-
# == Attributes
|
5
|
-
# text_node :category_id, 'CategoryID', :optional => true
|
6
|
-
# time_node :last_modified_date, 'LastModifiedDate', :optional => true
|
7
|
-
class GetCategory2FinanceOffer < Abstract
|
8
|
-
include XML::Mapping
|
9
|
-
include Initializer
|
10
|
-
root_element_name 'GetCategory2FinanceOfferRequest'
|
11
|
-
text_node :category_id, 'CategoryID', :optional => true
|
12
|
-
time_node :last_modified_date, 'LastModifiedDate', :optional => true
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
|
2
|
-
module Ebay # :nodoc:
|
3
|
-
module Requests # :nodoc:
|
4
|
-
# == Attributes
|
5
|
-
# text_node :finance_offer_id, 'FinanceOfferID', :optional => true
|
6
|
-
# time_node :last_modified_date, 'LastModifiedDate', :optional => true
|
7
|
-
class GetFinanceOffers < Abstract
|
8
|
-
include XML::Mapping
|
9
|
-
include Initializer
|
10
|
-
root_element_name 'GetFinanceOffersRequest'
|
11
|
-
text_node :finance_offer_id, 'FinanceOfferID', :optional => true
|
12
|
-
time_node :last_modified_date, 'LastModifiedDate', :optional => true
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'ebay/types/promotion_rule'
|
2
|
-
|
3
|
-
module Ebay # :nodoc:
|
4
|
-
module Requests # :nodoc:
|
5
|
-
# == Attributes
|
6
|
-
# text_node :operation_type, 'OperationType', :optional => true
|
7
|
-
# array_node :promotion_rules, 'PromotionRuleArray', 'PromotionRule', :class => PromotionRule, :default_value => []
|
8
|
-
class SetPromotionRules < Abstract
|
9
|
-
include XML::Mapping
|
10
|
-
include Initializer
|
11
|
-
root_element_name 'SetPromotionRulesRequest'
|
12
|
-
text_node :operation_type, 'OperationType', :optional => true
|
13
|
-
array_node :promotion_rules, 'PromotionRuleArray', 'PromotionRule', :class => PromotionRule, :default_value => []
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'ebay/types/category_finance_offer'
|
2
|
-
|
3
|
-
module Ebay # :nodoc:
|
4
|
-
module Responses # :nodoc:
|
5
|
-
# == Attributes
|
6
|
-
# numeric_node :count, 'Count', :optional => true
|
7
|
-
# array_node :category_finance_offers, 'CategoryFinanceOfferArray', 'CategoryFinanceOffer', :class => CategoryFinanceOffer, :default_value => []
|
8
|
-
class GetCategory2FinanceOffer < Abstract
|
9
|
-
include XML::Mapping
|
10
|
-
include Initializer
|
11
|
-
root_element_name 'GetCategory2FinanceOfferResponse'
|
12
|
-
numeric_node :count, 'Count', :optional => true
|
13
|
-
array_node :category_finance_offers, 'CategoryFinanceOfferArray', 'CategoryFinanceOffer', :class => CategoryFinanceOffer, :default_value => []
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'ebay/types/finance_offer'
|
2
|
-
|
3
|
-
module Ebay # :nodoc:
|
4
|
-
module Responses # :nodoc:
|
5
|
-
# == Attributes
|
6
|
-
# numeric_node :count, 'Count', :optional => true
|
7
|
-
# array_node :finance_offers, 'FinanceOfferArray', 'FinanceOffer', :class => FinanceOffer, :default_value => []
|
8
|
-
class GetFinanceOffers < Abstract
|
9
|
-
include XML::Mapping
|
10
|
-
include Initializer
|
11
|
-
root_element_name 'GetFinanceOffersResponse'
|
12
|
-
numeric_node :count, 'Count', :optional => true
|
13
|
-
array_node :finance_offers, 'FinanceOfferArray', 'FinanceOffer', :class => FinanceOffer, :default_value => []
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
|
2
|
-
module Ebay # :nodoc:
|
3
|
-
module Types # :nodoc:
|
4
|
-
# == Attributes
|
5
|
-
# text_node :finance_offer_id, 'FinanceOfferID', :optional => true
|
6
|
-
# text_node :category_id, 'CategoryID', :optional => true
|
7
|
-
class CategoryFinanceOffer
|
8
|
-
include XML::Mapping
|
9
|
-
include Initializer
|
10
|
-
root_element_name 'CategoryFinanceOffer'
|
11
|
-
text_node :finance_offer_id, 'FinanceOfferID', :optional => true
|
12
|
-
text_node :category_id, 'CategoryID', :optional => true
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
|
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
module Ebay # :nodoc:
|
3
|
-
module Types # :nodoc:
|
4
|
-
# == Attributes
|
5
|
-
# text_node :finance_offer_id, 'FinanceOfferID', :optional => true
|
6
|
-
# text_node :buyer_terms, 'BuyerTerms', :optional => true
|
7
|
-
# text_node :seller_terms, 'SellerTerms', :optional => true
|
8
|
-
# time_node :start_date, 'StartDate', :optional => true
|
9
|
-
# time_node :last_modified_date, 'LastModifiedDate', :optional => true
|
10
|
-
# money_node :minimum_amount, 'MinimumAmount', :optional => true
|
11
|
-
# numeric_node :rate_factor, 'RateFactor'
|
12
|
-
# numeric_node :priority, 'Priority'
|
13
|
-
class FinanceOffer
|
14
|
-
include XML::Mapping
|
15
|
-
include Initializer
|
16
|
-
root_element_name 'FinanceOffer'
|
17
|
-
text_node :finance_offer_id, 'FinanceOfferID', :optional => true
|
18
|
-
text_node :buyer_terms, 'BuyerTerms', :optional => true
|
19
|
-
text_node :seller_terms, 'SellerTerms', :optional => true
|
20
|
-
time_node :start_date, 'StartDate', :optional => true
|
21
|
-
time_node :last_modified_date, 'LastModifiedDate', :optional => true
|
22
|
-
money_node :minimum_amount, 'MinimumAmount', :optional => true
|
23
|
-
numeric_node :rate_factor, 'RateFactor'
|
24
|
-
numeric_node :priority, 'Priority'
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
|