ebayapi 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +0 -0
- data/MIT-LICENSE +20 -0
- data/README +0 -0
- data/examples/add_item.rb +50 -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_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/init.rb +2 -0
- data/lib/ebay/api.rb +179 -0
- data/lib/ebay/ebay.rb +26 -0
- data/lib/ebay/enumeration.rb +7 -0
- data/lib/ebay/initializer.rb +19 -0
- data/lib/ebay/notification.rb +109 -0
- data/lib/ebay/request/base.rb +18 -0
- data/lib/ebay/request/connection.rb +66 -0
- data/lib/ebay/request.rb +1 -0
- data/lib/ebay/requests/abstract.rb +28 -0
- data/lib/ebay/requests/add_dispute.rb +16 -0
- data/lib/ebay/requests/add_dispute_response.rb +18 -0
- data/lib/ebay/requests/add_item.rb +16 -0
- data/lib/ebay/requests/add_live_auction_item.rb +14 -0
- data/lib/ebay/requests/add_member_message.rb +15 -0
- data/lib/ebay/requests/add_member_message_aaq_to_partner.rb +15 -0
- data/lib/ebay/requests/add_member_message_rtq.rb +15 -0
- data/lib/ebay/requests/add_member_messages_aaq_to_bidder.rb +14 -0
- data/lib/ebay/requests/add_order.rb +14 -0
- data/lib/ebay/requests/add_second_chance_item.rb +19 -0
- data/lib/ebay/requests/add_to_item_description.rb +14 -0
- data/lib/ebay/requests/add_to_watch_list.rb +13 -0
- data/lib/ebay/requests/add_transaction_confirmation_item.rb +20 -0
- data/lib/ebay/requests/approve_live_auction_bidders.rb +17 -0
- data/lib/ebay/requests/complete_sale.rb +18 -0
- data/lib/ebay/requests/delete_my_messages.rb +14 -0
- data/lib/ebay/requests/end_item.rb +15 -0
- data/lib/ebay/requests/fetch_token.rb +13 -0
- data/lib/ebay/requests/get_account.rb +22 -0
- data/lib/ebay/requests/get_ad_format_leads.rb +13 -0
- data/lib/ebay/requests/get_all_bidders.rb +15 -0
- data/lib/ebay/requests/get_api_access_rules.rb +12 -0
- data/lib/ebay/requests/get_attributes_cs.rb +16 -0
- data/lib/ebay/requests/get_attributes_xsl.rb +14 -0
- data/lib/ebay/requests/get_best_offers.rb +15 -0
- data/lib/ebay/requests/get_bidder_list.rb +17 -0
- data/lib/ebay/requests/get_categories.rb +16 -0
- data/lib/ebay/requests/get_category2_cs.rb +14 -0
- data/lib/ebay/requests/get_category2_finance_offer.rb +14 -0
- data/lib/ebay/requests/get_category_features.rb +16 -0
- data/lib/ebay/requests/get_category_listings.rb +32 -0
- data/lib/ebay/requests/get_category_mappings.rb +13 -0
- data/lib/ebay/requests/get_challenge_token.rb +12 -0
- data/lib/ebay/requests/get_charities.rb +19 -0
- data/lib/ebay/requests/get_contextual_keywords.rb +15 -0
- data/lib/ebay/requests/get_cross_promotions.rb +15 -0
- data/lib/ebay/requests/get_description_templates.rb +15 -0
- data/lib/ebay/requests/get_dispute.rb +13 -0
- data/lib/ebay/requests/get_ebay_details.rb +13 -0
- data/lib/ebay/requests/get_ebay_official_time.rb +12 -0
- data/lib/ebay/requests/get_feedback.rb +16 -0
- data/lib/ebay/requests/get_finance_offers.rb +14 -0
- data/lib/ebay/requests/get_high_bidders.rb +13 -0
- data/lib/ebay/requests/get_item.rb +16 -0
- data/lib/ebay/requests/get_item_recommendations.rb +14 -0
- data/lib/ebay/requests/get_item_shipping.rb +16 -0
- data/lib/ebay/requests/get_item_transactions.rb +20 -0
- data/lib/ebay/requests/get_items_awaiting_feedback.rb +15 -0
- data/lib/ebay/requests/get_live_auction_bidders.rb +16 -0
- data/lib/ebay/requests/get_live_auction_catalog_details.rb +12 -0
- data/lib/ebay/requests/get_member_messages.rb +21 -0
- data/lib/ebay/requests/get_my_ebay.rb +22 -0
- data/lib/ebay/requests/get_my_ebay_buying.rb +22 -0
- data/lib/ebay/requests/get_my_ebay_reminders.rb +15 -0
- data/lib/ebay/requests/get_my_ebay_selling.rb +17 -0
- data/lib/ebay/requests/get_my_messages.rb +15 -0
- data/lib/ebay/requests/get_notification_preferences.rb +13 -0
- data/lib/ebay/requests/get_notifications_usage.rb +15 -0
- data/lib/ebay/requests/get_order_transactions.rb +15 -0
- data/lib/ebay/requests/get_orders.rb +20 -0
- data/lib/ebay/requests/get_picture_manager_details.rb +15 -0
- data/lib/ebay/requests/get_picture_manager_options.rb +12 -0
- data/lib/ebay/requests/get_popular_keywords.rb +17 -0
- data/lib/ebay/requests/get_product_family_members.rb +14 -0
- data/lib/ebay/requests/get_product_finder.rb +14 -0
- data/lib/ebay/requests/get_product_finder_xsl.rb +14 -0
- data/lib/ebay/requests/get_product_search_page.rb +14 -0
- data/lib/ebay/requests/get_product_search_results.rb +14 -0
- data/lib/ebay/requests/get_product_selling_pages.rb +15 -0
- data/lib/ebay/requests/get_promotion_rules.rb +15 -0
- data/lib/ebay/requests/get_recommendations.rb +21 -0
- data/lib/ebay/requests/get_return_url.rb +12 -0
- data/lib/ebay/requests/get_ru_name.rb +13 -0
- data/lib/ebay/requests/get_search_results.rb +58 -0
- data/lib/ebay/requests/get_search_results_express.rb +34 -0
- data/lib/ebay/requests/get_seller_events.rb +21 -0
- data/lib/ebay/requests/get_seller_list.rb +24 -0
- data/lib/ebay/requests/get_seller_payments.rb +17 -0
- data/lib/ebay/requests/get_seller_transactions.rb +19 -0
- data/lib/ebay/requests/get_store.rb +15 -0
- data/lib/ebay/requests/get_store_category_update_status.rb +13 -0
- data/lib/ebay/requests/get_store_custom_page.rb +13 -0
- data/lib/ebay/requests/get_store_options.rb +12 -0
- data/lib/ebay/requests/get_store_preferences.rb +12 -0
- data/lib/ebay/requests/get_suggested_categories.rb +13 -0
- data/lib/ebay/requests/get_tax_table.rb +12 -0
- data/lib/ebay/requests/get_user.rb +15 -0
- data/lib/ebay/requests/get_user_contact_details.rb +15 -0
- data/lib/ebay/requests/get_user_disputes.rb +18 -0
- data/lib/ebay/requests/get_user_preferences.rb +20 -0
- data/lib/ebay/requests/get_want_it_now_post.rb +13 -0
- data/lib/ebay/requests/get_want_it_now_search_results.rb +18 -0
- data/lib/ebay/requests/issue_refund.rb +18 -0
- data/lib/ebay/requests/leave_feedback.rb +17 -0
- data/lib/ebay/requests/place_offer.rb +16 -0
- data/lib/ebay/requests/relist_item.rb +17 -0
- data/lib/ebay/requests/remove_from_watch_list.rb +14 -0
- data/lib/ebay/requests/respond_to_best_offer.rb +18 -0
- data/lib/ebay/requests/respond_to_feedback.rb +18 -0
- data/lib/ebay/requests/respond_to_want_it_now_post.rb +14 -0
- data/lib/ebay/requests/revise_checkout_status.rb +34 -0
- data/lib/ebay/requests/revise_item.rb +17 -0
- data/lib/ebay/requests/revise_live_auction_item.rb +17 -0
- data/lib/ebay/requests/revise_my_messages.rb +17 -0
- data/lib/ebay/requests/revise_my_messages_folders.rb +15 -0
- data/lib/ebay/requests/seller_reverse_dispute.rb +14 -0
- data/lib/ebay/requests/send_invoice.rb +27 -0
- data/lib/ebay/requests/set_notification_preferences.rb +20 -0
- data/lib/ebay/requests/set_picture_manager_details.rb +15 -0
- data/lib/ebay/requests/set_promotion_rules.rb +15 -0
- data/lib/ebay/requests/set_return_url.rb +16 -0
- data/lib/ebay/requests/set_store.rb +14 -0
- data/lib/ebay/requests/set_store_categories.rb +17 -0
- data/lib/ebay/requests/set_store_custom_page.rb +14 -0
- data/lib/ebay/requests/set_store_preferences.rb +14 -0
- data/lib/ebay/requests/set_tax_table.rb +14 -0
- data/lib/ebay/requests/set_user_notes.rb +15 -0
- data/lib/ebay/requests/set_user_preferences.rb +28 -0
- data/lib/ebay/requests/validate_challenge_input.rb +15 -0
- data/lib/ebay/requests/validate_test_user_registration.rb +18 -0
- data/lib/ebay/requests/verify_add_item.rb +17 -0
- data/lib/ebay/requests/verify_add_second_chance_item.rb +19 -0
- data/lib/ebay/requests.rb +123 -0
- data/lib/ebay/response/base.rb +27 -0
- data/lib/ebay/responses/abstract.rb +27 -0
- data/lib/ebay/responses/add_dispute.rb +13 -0
- data/lib/ebay/responses/add_dispute_response.rb +12 -0
- data/lib/ebay/responses/add_item.rb +19 -0
- data/lib/ebay/responses/add_live_auction_item.rb +17 -0
- data/lib/ebay/responses/add_member_message.rb +12 -0
- data/lib/ebay/responses/add_member_message_aaq_to_partner.rb +12 -0
- data/lib/ebay/responses/add_member_message_rtq.rb +12 -0
- data/lib/ebay/responses/add_member_messages_aaq_to_bidder.rb +14 -0
- data/lib/ebay/responses/add_order.rb +14 -0
- data/lib/ebay/responses/add_second_chance_item.rb +17 -0
- data/lib/ebay/responses/add_to_item_description.rb +12 -0
- data/lib/ebay/responses/add_to_watch_list.rb +14 -0
- data/lib/ebay/responses/add_transaction_confirmation_item.rb +15 -0
- data/lib/ebay/responses/approve_live_auction_bidders.rb +14 -0
- data/lib/ebay/responses/complete_sale.rb +12 -0
- data/lib/ebay/responses/delete_my_messages.rb +12 -0
- data/lib/ebay/responses/end_item.rb +13 -0
- data/lib/ebay/responses/fetch_token.rb +14 -0
- data/lib/ebay/responses/get_account.rb +23 -0
- data/lib/ebay/responses/get_ad_format_leads.rb +15 -0
- data/lib/ebay/responses/get_all_bidders.rb +17 -0
- data/lib/ebay/responses/get_api_access_rules.rb +14 -0
- data/lib/ebay/responses/get_attributes_cs.rb +14 -0
- data/lib/ebay/responses/get_attributes_xsl.rb +14 -0
- data/lib/ebay/responses/get_best_offers.rb +16 -0
- data/lib/ebay/responses/get_bidder_list.rb +16 -0
- data/lib/ebay/responses/get_categories.rb +23 -0
- data/lib/ebay/responses/get_category2_cs.rb +18 -0
- data/lib/ebay/responses/get_category2_finance_offer.rb +15 -0
- data/lib/ebay/responses/get_category_features.rb +20 -0
- data/lib/ebay/responses/get_category_listings.rb +24 -0
- data/lib/ebay/responses/get_category_mappings.rb +15 -0
- data/lib/ebay/responses/get_challenge_token.rb +15 -0
- data/lib/ebay/responses/get_charities.rb +14 -0
- data/lib/ebay/responses/get_contextual_keywords.rb +14 -0
- data/lib/ebay/responses/get_cross_promotions.rb +14 -0
- data/lib/ebay/responses/get_description_templates.rb +20 -0
- data/lib/ebay/responses/get_dispute.rb +14 -0
- data/lib/ebay/responses/get_ebay_details.rb +32 -0
- data/lib/ebay/responses/get_ebay_official_time.rb +12 -0
- data/lib/ebay/responses/get_feedback.rb +18 -0
- data/lib/ebay/responses/get_finance_offers.rb +15 -0
- data/lib/ebay/responses/get_high_bidders.rb +15 -0
- data/lib/ebay/responses/get_item.rb +14 -0
- data/lib/ebay/responses/get_item_recommendations.rb +14 -0
- data/lib/ebay/responses/get_item_shipping.rb +14 -0
- data/lib/ebay/responses/get_item_transactions.rb +23 -0
- data/lib/ebay/responses/get_items_awaiting_feedback.rb +14 -0
- data/lib/ebay/responses/get_live_auction_bidders.rb +20 -0
- data/lib/ebay/responses/get_live_auction_catalog_details.rb +14 -0
- data/lib/ebay/responses/get_member_messages.rb +17 -0
- data/lib/ebay/responses/get_my_ebay.rb +23 -0
- data/lib/ebay/responses/get_my_ebay_buying.rb +27 -0
- data/lib/ebay/responses/get_my_ebay_reminders.rb +15 -0
- data/lib/ebay/responses/get_my_ebay_selling.rb +20 -0
- data/lib/ebay/responses/get_my_messages.rb +18 -0
- data/lib/ebay/responses/get_notification_preferences.rb +20 -0
- data/lib/ebay/responses/get_notifications_usage.rb +20 -0
- data/lib/ebay/responses/get_order_transactions.rb +14 -0
- data/lib/ebay/responses/get_orders.rb +20 -0
- data/lib/ebay/responses/get_picture_manager_details.rb +14 -0
- data/lib/ebay/responses/get_picture_manager_options.rb +16 -0
- data/lib/ebay/responses/get_popular_keywords.rb +17 -0
- data/lib/ebay/responses/get_product_family_members.rb +16 -0
- data/lib/ebay/responses/get_product_finder.rb +14 -0
- data/lib/ebay/responses/get_product_finder_xsl.rb +14 -0
- data/lib/ebay/responses/get_product_search_page.rb +15 -0
- data/lib/ebay/responses/get_product_search_results.rb +16 -0
- data/lib/ebay/responses/get_product_selling_pages.rb +13 -0
- data/lib/ebay/responses/get_promotion_rules.rb +14 -0
- data/lib/ebay/responses/get_recommendations.rb +22 -0
- data/lib/ebay/responses/get_return_url.rb +15 -0
- data/lib/ebay/responses/get_ru_name.rb +13 -0
- data/lib/ebay/responses/get_search_results.rb +30 -0
- data/lib/ebay/responses/get_search_results_express.rb +21 -0
- data/lib/ebay/responses/get_seller_events.rb +15 -0
- data/lib/ebay/responses/get_seller_list.rb +22 -0
- data/lib/ebay/responses/get_seller_payments.rb +20 -0
- data/lib/ebay/responses/get_seller_transactions.rb +23 -0
- data/lib/ebay/responses/get_store.rb +14 -0
- data/lib/ebay/responses/get_store_category_update_status.rb +13 -0
- data/lib/ebay/responses/get_store_custom_page.rb +14 -0
- data/lib/ebay/responses/get_store_options.rb +21 -0
- data/lib/ebay/responses/get_store_preferences.rb +14 -0
- data/lib/ebay/responses/get_suggested_categories.rb +15 -0
- data/lib/ebay/responses/get_tax_table.rb +15 -0
- data/lib/ebay/responses/get_user.rb +14 -0
- data/lib/ebay/responses/get_user_contact_details.rb +16 -0
- data/lib/ebay/responses/get_user_disputes.rb +22 -0
- data/lib/ebay/responses/get_user_preferences.rb +30 -0
- data/lib/ebay/responses/get_want_it_now_post.rb +14 -0
- data/lib/ebay/responses/get_want_it_now_search_results.rb +19 -0
- data/lib/ebay/responses/issue_refund.rb +14 -0
- data/lib/ebay/responses/leave_feedback.rb +13 -0
- data/lib/ebay/responses/notification_message.rb +14 -0
- data/lib/ebay/responses/place_offer.rb +14 -0
- data/lib/ebay/responses/relist_item.rb +19 -0
- data/lib/ebay/responses/remove_from_watch_list.rb +14 -0
- data/lib/ebay/responses/respond_to_best_offer.rb +14 -0
- data/lib/ebay/responses/respond_to_feedback.rb +12 -0
- data/lib/ebay/responses/respond_to_want_it_now_post.rb +12 -0
- data/lib/ebay/responses/revise_checkout_status.rb +12 -0
- data/lib/ebay/responses/revise_item.rb +19 -0
- data/lib/ebay/responses/revise_live_auction_item.rb +17 -0
- data/lib/ebay/responses/revise_my_messages.rb +12 -0
- data/lib/ebay/responses/revise_my_messages_folders.rb +12 -0
- data/lib/ebay/responses/seller_reverse_dispute.rb +12 -0
- data/lib/ebay/responses/send_invoice.rb +12 -0
- data/lib/ebay/responses/set_notification_preferences.rb +12 -0
- data/lib/ebay/responses/set_picture_manager_details.rb +12 -0
- data/lib/ebay/responses/set_promotion_rules.rb +12 -0
- data/lib/ebay/responses/set_return_url.rb +12 -0
- data/lib/ebay/responses/set_store.rb +12 -0
- data/lib/ebay/responses/set_store_categories.rb +14 -0
- data/lib/ebay/responses/set_store_custom_page.rb +14 -0
- data/lib/ebay/responses/set_store_preferences.rb +12 -0
- data/lib/ebay/responses/set_tax_table.rb +12 -0
- data/lib/ebay/responses/set_user_notes.rb +12 -0
- data/lib/ebay/responses/set_user_preferences.rb +12 -0
- data/lib/ebay/responses/validate_challenge_input.rb +13 -0
- data/lib/ebay/responses/validate_test_user_registration.rb +12 -0
- data/lib/ebay/responses/verify_add_item.rb +20 -0
- data/lib/ebay/responses/verify_add_second_chance_item.rb +16 -0
- data/lib/ebay/responses.rb +123 -0
- data/lib/ebay/schema/mapper/class_definition.rb +48 -0
- data/lib/ebay/schema/mapper/class_template.rb +46 -0
- data/lib/ebay/schema/mapper/ebay_schema_importer.rb +108 -0
- data/lib/ebay/schema/mapper/enumeration.rb +30 -0
- data/lib/ebay/schema/mapper/enumeration_validation.rb +17 -0
- data/lib/ebay/schema/mapper/node.rb +153 -0
- data/lib/ebay/schema/mapper/parser.rb +16 -0
- data/lib/ebay/schema/mapper/ruby_class_generator.rb +273 -0
- data/lib/ebay/schema/mapper/ruby_class_generator_helper.rb +52 -0
- data/lib/ebay/schema/mapper/schema.rb +15 -0
- data/lib/ebay/schema/mapper/templates/abstract_request.erb +7 -0
- data/lib/ebay/schema/mapper/templates/application_delivery_preferences.erb +7 -0
- data/lib/ebay/schema/mapper/templates/base.erb +21 -0
- data/lib/ebay/schema/mapper/templates/value.erb +12 -0
- data/lib/ebay/schema/mapper/templates/xsl_file.erb +11 -0
- data/lib/ebay/schema/mapper/xsd2ebay.rb +13 -0
- data/lib/ebay/schema/mapper.rb +9 -0
- data/lib/ebay/schema/version.rb +5 -0
- data/lib/ebay/types/access_rule_current_status_code.rb +16 -0
- data/lib/ebay/types/access_rule_status_code.rb +12 -0
- data/lib/ebay/types/account_detail_entry_code.rb +256 -0
- data/lib/ebay/types/account_entry.rb +25 -0
- data/lib/ebay/types/account_entry_sort_type_code.rb +16 -0
- data/lib/ebay/types/account_history_selection_code.rb +12 -0
- data/lib/ebay/types/account_state_code.rb +12 -0
- data/lib/ebay/types/account_summary.rb +33 -0
- data/lib/ebay/types/ack_code.rb +13 -0
- data/lib/ebay/types/ad_format_enabled_code.rb +14 -0
- data/lib/ebay/types/ad_format_enabled_definition.rb +12 -0
- data/lib/ebay/types/ad_format_lead.rb +21 -0
- data/lib/ebay/types/add_member_messages_aaq_to_bidder_request_container.rb +16 -0
- data/lib/ebay/types/add_member_messages_aaq_to_bidder_response_container.rb +14 -0
- data/lib/ebay/types/additional_account.rb +15 -0
- data/lib/ebay/types/address.rb +40 -0
- data/lib/ebay/types/address_owner_code.rb +11 -0
- data/lib/ebay/types/address_record_type_code.rb +11 -0
- data/lib/ebay/types/address_status_code.rb +12 -0
- data/lib/ebay/types/affiliate_tracking_details.rb +16 -0
- data/lib/ebay/types/amount.rb +14 -0
- data/lib/ebay/types/api_access_rule.rb +28 -0
- data/lib/ebay/types/api_subscription_type_code.rb +29 -0
- data/lib/ebay/types/application_delivery_preferences.rb +25 -0
- data/lib/ebay/types/application_device_type_code.rb +13 -0
- data/lib/ebay/types/attribute.rb +16 -0
- data/lib/ebay/types/attribute_recommendations.rb +14 -0
- data/lib/ebay/types/attribute_set.rb +16 -0
- data/lib/ebay/types/authentication_entry.rb +17 -0
- data/lib/ebay/types/balance_code.rb +10 -0
- data/lib/ebay/types/basic_amount.rb +14 -0
- data/lib/ebay/types/basic_upgrade_pack_enabled_definition.rb +12 -0
- data/lib/ebay/types/best_offer.rb +23 -0
- data/lib/ebay/types/best_offer_action_code.rb +12 -0
- data/lib/ebay/types/best_offer_auto_decline_enabled_definition.rb +12 -0
- data/lib/ebay/types/best_offer_counter_enabled_definition.rb +12 -0
- data/lib/ebay/types/best_offer_details.rb +17 -0
- data/lib/ebay/types/best_offer_enabled_definition.rb +12 -0
- data/lib/ebay/types/best_offer_status_code.rb +18 -0
- data/lib/ebay/types/best_offer_type_code.rb +12 -0
- data/lib/ebay/types/bid_action_code.rb +19 -0
- data/lib/ebay/types/bid_approval.rb +16 -0
- data/lib/ebay/types/bid_approval_array.rb +14 -0
- data/lib/ebay/types/bidder_detail.rb +19 -0
- data/lib/ebay/types/bidder_detail_array.rb +14 -0
- data/lib/ebay/types/bidder_id.rb +28 -0
- data/lib/ebay/types/bidder_notice_preferences.rb +13 -0
- data/lib/ebay/types/bidder_status_code.rb +12 -0
- data/lib/ebay/types/bidder_type_code.rb +11 -0
- data/lib/ebay/types/bidding_details.rb +17 -0
- data/lib/ebay/types/bidding_summary.rb +20 -0
- data/lib/ebay/types/bulk_catalog_lister_status_code.rb +15 -0
- data/lib/ebay/types/buyer.rb +14 -0
- data/lib/ebay/types/buyer_payment_method_code.rb +32 -0
- data/lib/ebay/types/buyer_protection_code.rb +13 -0
- data/lib/ebay/types/buyer_requirements.rb +21 -0
- data/lib/ebay/types/buying_guide.rb +16 -0
- data/lib/ebay/types/buying_guide_details.rb +15 -0
- data/lib/ebay/types/buying_summary.rb +19 -0
- data/lib/ebay/types/calculated_shipping_charge_option_code.rb +11 -0
- data/lib/ebay/types/calculated_shipping_preferences.rb +16 -0
- data/lib/ebay/types/calculated_shipping_rate.rb +23 -0
- data/lib/ebay/types/calculated_shipping_rate_option_code.rb +11 -0
- data/lib/ebay/types/cancel_offer.rb +15 -0
- data/lib/ebay/types/cancel_offer_array.rb +14 -0
- data/lib/ebay/types/category.rb +38 -0
- data/lib/ebay/types/category_feature.rb +41 -0
- data/lib/ebay/types/category_feature_detail_level_code.rb +11 -0
- data/lib/ebay/types/category_finance_offer.rb +14 -0
- data/lib/ebay/types/category_listings_order_code.rb +17 -0
- data/lib/ebay/types/category_listings_search_code.rb +11 -0
- data/lib/ebay/types/category_mapping.rb +14 -0
- data/lib/ebay/types/characteristic.rb +21 -0
- data/lib/ebay/types/characteristic_set_ids.rb +13 -0
- data/lib/ebay/types/characteristics_search_code.rb +11 -0
- data/lib/ebay/types/characteristics_set.rb +17 -0
- data/lib/ebay/types/charity.rb +20 -0
- data/lib/ebay/types/charity_affiliation.rb +14 -0
- data/lib/ebay/types/charity_affiliation_type_code.rb +12 -0
- data/lib/ebay/types/charity_id.rb +14 -0
- data/lib/ebay/types/charity_info.rb +21 -0
- data/lib/ebay/types/charity_seller.rb +15 -0
- data/lib/ebay/types/charity_seller_status_code.rb +18 -0
- data/lib/ebay/types/charity_status_code.rb +11 -0
- data/lib/ebay/types/checkout_method_code.rb +11 -0
- data/lib/ebay/types/checkout_status.rb +16 -0
- data/lib/ebay/types/checkout_status_code.rb +13 -0
- data/lib/ebay/types/combined_payment_option_code.rb +12 -0
- data/lib/ebay/types/combined_payment_period_code.rb +14 -0
- data/lib/ebay/types/combined_payment_preferences.rb +18 -0
- data/lib/ebay/types/comment_type_code.rb +14 -0
- data/lib/ebay/types/complete_status_code.rb +12 -0
- data/lib/ebay/types/condition_selection_code.rb +11 -0
- data/lib/ebay/types/context_search_asset.rb +16 -0
- data/lib/ebay/types/country_code.rb +253 -0
- data/lib/ebay/types/country_details.rb +14 -0
- data/lib/ebay/types/cross_promotion_preferences.rb +19 -0
- data/lib/ebay/types/cross_promotions.rb +21 -0
- data/lib/ebay/types/currency_code.rb +183 -0
- data/lib/ebay/types/currency_details.rb +14 -0
- data/lib/ebay/types/custom_security_header.rb +17 -0
- data/lib/ebay/types/data_element_set.rb +15 -0
- data/lib/ebay/types/date_specifier_code.rb +12 -0
- data/lib/ebay/types/deposit_type_code.rb +12 -0
- data/lib/ebay/types/description_revise_mode_code.rb +12 -0
- data/lib/ebay/types/description_template.rb +22 -0
- data/lib/ebay/types/description_template_code.rb +11 -0
- data/lib/ebay/types/detail_level_code.rb +16 -0
- data/lib/ebay/types/detail_name_code.rb +19 -0
- data/lib/ebay/types/device_type_code.rb +11 -0
- data/lib/ebay/types/digital_delivery_details.rb +16 -0
- data/lib/ebay/types/digital_delivery_enabled_code.rb +12 -0
- data/lib/ebay/types/digital_delivery_enabled_definition.rb +12 -0
- data/lib/ebay/types/digital_delivery_method_code.rb +12 -0
- data/lib/ebay/types/dispatch_time_max_details.rb +14 -0
- data/lib/ebay/types/display_pay_now_button_code.rb +11 -0
- data/lib/ebay/types/dispute.rb +35 -0
- data/lib/ebay/types/dispute_activity_code.rb +18 -0
- data/lib/ebay/types/dispute_credit_eligibility_code.rb +11 -0
- data/lib/ebay/types/dispute_explanation_code.rb +22 -0
- data/lib/ebay/types/dispute_filter_count.rb +14 -0
- data/lib/ebay/types/dispute_filter_type_code.rb +16 -0
- data/lib/ebay/types/dispute_message.rb +16 -0
- data/lib/ebay/types/dispute_message_source_code.rb +12 -0
- data/lib/ebay/types/dispute_reason_code.rb +15 -0
- data/lib/ebay/types/dispute_record_type_code.rb +11 -0
- data/lib/ebay/types/dispute_resolution.rb +15 -0
- data/lib/ebay/types/dispute_resolution_reason_code.rb +22 -0
- data/lib/ebay/types/dispute_resolution_record_type_code.rb +20 -0
- data/lib/ebay/types/dispute_sort_type_code.rb +16 -0
- data/lib/ebay/types/dispute_state_code.rb +34 -0
- data/lib/ebay/types/dispute_status_code.rb +28 -0
- data/lib/ebay/types/distance.rb +14 -0
- data/lib/ebay/types/domain_histogram.rb +14 -0
- data/lib/ebay/types/duplicate_invocation_details.rb +15 -0
- data/lib/ebay/types/dutch_bin_enabled_definition.rb +12 -0
- data/lib/ebay/types/ebay_subscription_type_code.rb +29 -0
- data/lib/ebay/types/ebx_opt_in_preference.rb +13 -0
- data/lib/ebay/types/enable_code.rb +11 -0
- data/lib/ebay/types/end_of_auction_email_preferences.rb +19 -0
- data/lib/ebay/types/end_of_auction_logo_type_code.rb +13 -0
- data/lib/ebay/types/end_reason_code.rb +14 -0
- data/lib/ebay/types/error.rb +20 -0
- data/lib/ebay/types/error_classification_code.rb +11 -0
- data/lib/ebay/types/error_handling_code.rb +13 -0
- data/lib/ebay/types/error_parameter.rb +14 -0
- data/lib/ebay/types/escrow_code.rb +12 -0
- data/lib/ebay/types/expansion_array.rb +15 -0
- data/lib/ebay/types/express_condition_required_definition.rb +12 -0
- data/lib/ebay/types/express_detail_level_code.rb +12 -0
- data/lib/ebay/types/express_details.rb +15 -0
- data/lib/ebay/types/express_enabled_definition.rb +12 -0
- data/lib/ebay/types/express_histogram_aisle.rb +16 -0
- data/lib/ebay/types/express_histogram_department.rb +16 -0
- data/lib/ebay/types/express_histogram_domain_details.rb +17 -0
- data/lib/ebay/types/express_histogram_product.rb +14 -0
- data/lib/ebay/types/express_histogram_sort_code.rb +12 -0
- data/lib/ebay/types/express_item_requirements.rb +31 -0
- data/lib/ebay/types/express_item_sort_code.rb +12 -0
- data/lib/ebay/types/express_pictures_required_definition.rb +12 -0
- data/lib/ebay/types/express_preferences.rb +14 -0
- data/lib/ebay/types/express_product.rb +22 -0
- data/lib/ebay/types/express_product_sort_code.rb +12 -0
- data/lib/ebay/types/express_seller_requirements.rb +25 -0
- data/lib/ebay/types/express_selling_preference_code.rb +12 -0
- data/lib/ebay/types/extended_product_finder_id.rb +14 -0
- data/lib/ebay/types/external_alert_id_array.rb +13 -0
- data/lib/ebay/types/external_product_code.rb +14 -0
- data/lib/ebay/types/external_product_id.rb +19 -0
- data/lib/ebay/types/external_transaction.rb +16 -0
- data/lib/ebay/types/fault_details.rb +15 -0
- data/lib/ebay/types/feature_definitions.rb +72 -0
- data/lib/ebay/types/feature_id_code.rb +37 -0
- data/lib/ebay/types/fee.rb +14 -0
- data/lib/ebay/types/feedback_detail.rb +29 -0
- data/lib/ebay/types/feedback_info.rb +15 -0
- data/lib/ebay/types/feedback_period.rb +14 -0
- data/lib/ebay/types/feedback_period_array.rb +14 -0
- data/lib/ebay/types/feedback_rating_star_code.rb +20 -0
- data/lib/ebay/types/feedback_requirements.rb +14 -0
- data/lib/ebay/types/feedback_response_code.rb +11 -0
- data/lib/ebay/types/feedback_summary.rb +21 -0
- data/lib/ebay/types/finance_offer.rb +20 -0
- data/lib/ebay/types/flat_rate_insurance_range_code.rb +15 -0
- data/lib/ebay/types/flat_rate_insurance_range_cost.rb +14 -0
- data/lib/ebay/types/flat_shipping_preferences.rb +18 -0
- data/lib/ebay/types/flat_shipping_rate_option_code.rb +12 -0
- data/lib/ebay/types/gallery_sort_filter_code.rb +12 -0
- data/lib/ebay/types/gallery_type_code.rb +13 -0
- data/lib/ebay/types/general_payment_method_code.rb +14 -0
- data/lib/ebay/types/get_all_bidders_mode_code.rb +12 -0
- data/lib/ebay/types/get_recommendations_request_container.rb +23 -0
- data/lib/ebay/types/get_recommendations_response_container.rb +23 -0
- data/lib/ebay/types/gift_services_code.rb +12 -0
- data/lib/ebay/types/granularity_level_code.rb +12 -0
- data/lib/ebay/types/hit_counter_code.rb +16 -0
- data/lib/ebay/types/home_page_featured_enabled_definition.rb +12 -0
- data/lib/ebay/types/insurance_details.rb +14 -0
- data/lib/ebay/types/insurance_option_code.rb +14 -0
- data/lib/ebay/types/insurance_selected_code.rb +14 -0
- data/lib/ebay/types/international_shipping_service_options.rb +18 -0
- data/lib/ebay/types/invocation_status.rb +12 -0
- data/lib/ebay/types/item.rb +151 -0
- data/lib/ebay/types/item_bid_details.rb +17 -0
- data/lib/ebay/types/item_format_sort_filter_code.rb +13 -0
- data/lib/ebay/types/item_list_customization.rb +19 -0
- data/lib/ebay/types/item_location_code.rb +11 -0
- data/lib/ebay/types/item_sort_filter_code.rb +15 -0
- data/lib/ebay/types/item_sort_type_code.rb +79 -0
- data/lib/ebay/types/item_totals.rb +14 -0
- data/lib/ebay/types/item_transaction_id.rb +14 -0
- data/lib/ebay/types/item_type_filter_code.rb +18 -0
- data/lib/ebay/types/label.rb +14 -0
- data/lib/ebay/types/listing_analyzer_recommendations.rb +14 -0
- data/lib/ebay/types/listing_checkout_redirect_preference.rb +14 -0
- data/lib/ebay/types/listing_designer.rb +15 -0
- data/lib/ebay/types/listing_details.rb +36 -0
- data/lib/ebay/types/listing_duration_code.rb +21 -0
- data/lib/ebay/types/listing_duration_definition.rb +14 -0
- data/lib/ebay/types/listing_duration_definitions.rb +15 -0
- data/lib/ebay/types/listing_duration_reference.rb +14 -0
- data/lib/ebay/types/listing_enhancements_code.rb +18 -0
- data/lib/ebay/types/listing_flow_code.rb +12 -0
- data/lib/ebay/types/listing_status_code.rb +13 -0
- data/lib/ebay/types/listing_subtype_enum.rb +10 -0
- data/lib/ebay/types/listing_tip.rb +18 -0
- data/lib/ebay/types/listing_tip_field.rb +16 -0
- data/lib/ebay/types/listing_tip_message.rb +16 -0
- data/lib/ebay/types/listing_type_code.rb +21 -0
- data/lib/ebay/types/live_auction_approval_status.rb +14 -0
- data/lib/ebay/types/live_auction_approval_status_array.rb +14 -0
- data/lib/ebay/types/live_auction_bid.rb +16 -0
- data/lib/ebay/types/live_auction_bid_array.rb +14 -0
- data/lib/ebay/types/live_auction_catalog.rb +16 -0
- data/lib/ebay/types/live_auction_details.rb +17 -0
- data/lib/ebay/types/local_listing_distances_non_subscription_definition.rb +12 -0
- data/lib/ebay/types/local_listing_distances_regular_definition.rb +12 -0
- data/lib/ebay/types/local_listing_distances_specialty_definition.rb +12 -0
- data/lib/ebay/types/local_market_non_subscription_definition.rb +12 -0
- data/lib/ebay/types/local_market_premium_subscription_definition.rb +12 -0
- data/lib/ebay/types/local_market_regular_subscription_definition.rb +12 -0
- data/lib/ebay/types/local_market_speciality_subscription_definition.rb +12 -0
- data/lib/ebay/types/local_search.rb +14 -0
- data/lib/ebay/types/logo_type_code.rb +12 -0
- data/lib/ebay/types/lookup_attribute.rb +14 -0
- data/lib/ebay/types/mail_options_type_code.rb +12 -0
- data/lib/ebay/types/mark_up_mark_down_event.rb +19 -0
- data/lib/ebay/types/mark_up_mark_down_event_type_code.rb +11 -0
- data/lib/ebay/types/maximum_item_requirements.rb +14 -0
- data/lib/ebay/types/measure.rb +15 -0
- data/lib/ebay/types/measurement_system_code.rb +11 -0
- data/lib/ebay/types/member_message.rb +24 -0
- data/lib/ebay/types/member_message_exchange.rb +20 -0
- data/lib/ebay/types/member_message_exchange_array.rb +14 -0
- data/lib/ebay/types/merch_display_code.rb +11 -0
- data/lib/ebay/types/merchandizing_pref_code.rb +11 -0
- data/lib/ebay/types/message_status_type_code.rb +11 -0
- data/lib/ebay/types/message_type_code.rb +13 -0
- data/lib/ebay/types/minimum_reserve_price_definition.rb +12 -0
- data/lib/ebay/types/modified_field.rb +14 -0
- data/lib/ebay/types/modify_action_code.rb +12 -0
- data/lib/ebay/types/modify_code.rb +11 -0
- data/lib/ebay/types/my_ebay_favorite_search.rb +14 -0
- data/lib/ebay/types/my_ebay_favorite_search_list.rb +15 -0
- data/lib/ebay/types/my_ebay_favorite_seller.rb +14 -0
- data/lib/ebay/types/my_ebay_favorite_seller_list.rb +15 -0
- data/lib/ebay/types/my_ebay_second_chance_offer_list.rb +15 -0
- data/lib/ebay/types/my_ebay_selection.rb +15 -0
- data/lib/ebay/types/my_messages_alert.rb +36 -0
- data/lib/ebay/types/my_messages_alert_array.rb +14 -0
- data/lib/ebay/types/my_messages_alert_id.rb +28 -0
- data/lib/ebay/types/my_messages_alert_id_array.rb +13 -0
- data/lib/ebay/types/my_messages_alert_resolution_status_code.rb +12 -0
- data/lib/ebay/types/my_messages_folder.rb +14 -0
- data/lib/ebay/types/my_messages_folder_operation_code.rb +12 -0
- data/lib/ebay/types/my_messages_folder_summary.rb +18 -0
- data/lib/ebay/types/my_messages_forward_details.rb +14 -0
- data/lib/ebay/types/my_messages_message.rb +32 -0
- data/lib/ebay/types/my_messages_message_array.rb +14 -0
- data/lib/ebay/types/my_messages_message_id.rb +28 -0
- data/lib/ebay/types/my_messages_message_id_array.rb +13 -0
- data/lib/ebay/types/my_messages_response_details.rb +15 -0
- data/lib/ebay/types/my_messages_summary.rb +20 -0
- data/lib/ebay/types/name_value_list.rb +14 -0
- data/lib/ebay/types/name_value_list_array.rb +14 -0
- data/lib/ebay/types/notification_delivery_status_code.rb +13 -0
- data/lib/ebay/types/notification_details.rb +25 -0
- data/lib/ebay/types/notification_enable.rb +14 -0
- data/lib/ebay/types/notification_enable_array.rb +14 -0
- data/lib/ebay/types/notification_event_property.rb +15 -0
- data/lib/ebay/types/notification_event_property_name_code.rb +10 -0
- data/lib/ebay/types/notification_event_state_code.rb +19 -0
- data/lib/ebay/types/notification_event_type_code.rb +50 -0
- data/lib/ebay/types/notification_payload_type_code.rb +10 -0
- data/lib/ebay/types/notification_role_code.rb +13 -0
- data/lib/ebay/types/notification_statistics.rb +17 -0
- data/lib/ebay/types/notification_user_data.rb +16 -0
- data/lib/ebay/types/offer.rb +27 -0
- data/lib/ebay/types/offer_array.rb +14 -0
- data/lib/ebay/types/operation_type_code.rb +11 -0
- data/lib/ebay/types/order.rb +38 -0
- data/lib/ebay/types/order_role_code.rb +11 -0
- data/lib/ebay/types/order_status_code.rb +13 -0
- data/lib/ebay/types/order_transaction.rb +16 -0
- data/lib/ebay/types/paginated_item_array.rb +16 -0
- data/lib/ebay/types/paginated_order_transaction_array.rb +16 -0
- data/lib/ebay/types/paginated_transaction_array.rb +16 -0
- data/lib/ebay/types/pagination.rb +14 -0
- data/lib/ebay/types/pagination_result.rb +14 -0
- data/lib/ebay/types/paid_status_code.rb +20 -0
- data/lib/ebay/types/pay_pal_account_level_code.rb +16 -0
- data/lib/ebay/types/pay_pal_account_status_code.rb +17 -0
- data/lib/ebay/types/pay_pal_account_type_code.rb +14 -0
- data/lib/ebay/types/payment_details.rb +14 -0
- data/lib/ebay/types/payment_method_search_code.rb +12 -0
- data/lib/ebay/types/payment_option_details.rb +14 -0
- data/lib/ebay/types/payment_status_code.rb +15 -0
- data/lib/ebay/types/payment_type_code.rb +14 -0
- data/lib/ebay/types/paypal_account_level_code.rb +16 -0
- data/lib/ebay/types/paypal_account_status_code.rb +17 -0
- data/lib/ebay/types/paypal_account_type_code.rb +14 -0
- data/lib/ebay/types/photo_display_code.rb +16 -0
- data/lib/ebay/types/picture_details.rb +17 -0
- data/lib/ebay/types/picture_manager_action_code.rb +14 -0
- data/lib/ebay/types/picture_manager_detail_level_code.rb +12 -0
- data/lib/ebay/types/picture_manager_details.rb +20 -0
- data/lib/ebay/types/picture_manager_folder.rb +16 -0
- data/lib/ebay/types/picture_manager_picture.rb +17 -0
- data/lib/ebay/types/picture_manager_picture_display.rb +17 -0
- data/lib/ebay/types/picture_manager_picture_display_type_code.rb +15 -0
- data/lib/ebay/types/picture_manager_subscription.rb +15 -0
- data/lib/ebay/types/picture_manager_subscription_level_code.rb +14 -0
- data/lib/ebay/types/picture_source_code.rb +12 -0
- data/lib/ebay/types/price_range_filter.rb +14 -0
- data/lib/ebay/types/pricing_recommendations.rb +14 -0
- data/lib/ebay/types/pro_pack_enabled_definition.rb +12 -0
- data/lib/ebay/types/pro_pack_plus_enabled_definition.rb +12 -0
- data/lib/ebay/types/pro_stores_checkout_preference.rb +15 -0
- data/lib/ebay/types/pro_stores_details.rb +15 -0
- data/lib/ebay/types/product.rb +21 -0
- data/lib/ebay/types/product_family.rb +16 -0
- data/lib/ebay/types/product_finder_constraint.rb +14 -0
- data/lib/ebay/types/product_info.rb +16 -0
- data/lib/ebay/types/product_listing_details.rb +18 -0
- data/lib/ebay/types/product_search.rb +26 -0
- data/lib/ebay/types/product_search_page.rb +20 -0
- data/lib/ebay/types/product_search_result.rb +26 -0
- data/lib/ebay/types/product_use_case_code.rb +12 -0
- data/lib/ebay/types/promoted_item.rb +24 -0
- data/lib/ebay/types/promotion_details.rb +16 -0
- data/lib/ebay/types/promotion_item_price_type_code.rb +13 -0
- data/lib/ebay/types/promotion_item_selection_code.rb +11 -0
- data/lib/ebay/types/promotion_method_code.rb +11 -0
- data/lib/ebay/types/promotion_rule.rb +24 -0
- data/lib/ebay/types/promotion_scheme_code.rb +18 -0
- data/lib/ebay/types/proximity_search.rb +14 -0
- data/lib/ebay/types/proximity_search_details.rb +13 -0
- data/lib/ebay/types/purchase_purpose_type_code.rb +17 -0
- data/lib/ebay/types/quantity.rb +14 -0
- data/lib/ebay/types/quantity_operator_code.rb +14 -0
- data/lib/ebay/types/question_type_code.rb +13 -0
- data/lib/ebay/types/range_code.rb +11 -0
- data/lib/ebay/types/rcs_payment_status_code.rb +12 -0
- data/lib/ebay/types/recommendation_engine_code.rb +13 -0
- data/lib/ebay/types/refund_reason_code.rb +15 -0
- data/lib/ebay/types/refund_type_code.rb +12 -0
- data/lib/ebay/types/region_details.rb +14 -0
- data/lib/ebay/types/reminder_customization.rb +14 -0
- data/lib/ebay/types/reminders.rb +20 -0
- data/lib/ebay/types/request_categories.rb +16 -0
- data/lib/ebay/types/response_attribute_set.rb +21 -0
- data/lib/ebay/types/revise_status.rb +17 -0
- data/lib/ebay/types/sales_tax.rb +16 -0
- data/lib/ebay/types/schedule.rb +14 -0
- data/lib/ebay/types/scheduling_info.rb +15 -0
- data/lib/ebay/types/search_attributes.rb +17 -0
- data/lib/ebay/types/search_details.rb +15 -0
- data/lib/ebay/types/search_flags_code.rb +13 -0
- data/lib/ebay/types/search_location.rb +15 -0
- data/lib/ebay/types/search_location_filter.rb +17 -0
- data/lib/ebay/types/search_request.rb +16 -0
- data/lib/ebay/types/search_result_item.rb +17 -0
- data/lib/ebay/types/search_result_values_code.rb +14 -0
- data/lib/ebay/types/search_sort_order_code.rb +25 -0
- data/lib/ebay/types/search_store_filter.rb +14 -0
- data/lib/ebay/types/search_type_code.rb +11 -0
- data/lib/ebay/types/second_chance_offer_duration_code.rb +13 -0
- data/lib/ebay/types/selection_mode_code.rb +11 -0
- data/lib/ebay/types/seller.rb +39 -0
- data/lib/ebay/types/seller_business_code.rb +12 -0
- data/lib/ebay/types/seller_contact_details_enabled_definition.rb +12 -0
- data/lib/ebay/types/seller_favorite_item_preferences.rb +19 -0
- data/lib/ebay/types/seller_guarantee_level_code.rb +13 -0
- data/lib/ebay/types/seller_level_code.rb +15 -0
- data/lib/ebay/types/seller_payment.rb +26 -0
- data/lib/ebay/types/seller_payment_method_code.rb +14 -0
- data/lib/ebay/types/seller_payment_preferences.rb +20 -0
- data/lib/ebay/types/selling_manager_product_details.rb +15 -0
- data/lib/ebay/types/selling_status.rb +26 -0
- data/lib/ebay/types/selling_summary.rb +19 -0
- data/lib/ebay/types/set_user_notes_action_code.rb +11 -0
- data/lib/ebay/types/severity_code.rb +11 -0
- data/lib/ebay/types/shipment.rb +39 -0
- data/lib/ebay/types/shipment_delivery_status_code.rb +16 -0
- data/lib/ebay/types/shipment_status_code.rb +11 -0
- data/lib/ebay/types/shipping_carrier_code.rb +16 -0
- data/lib/ebay/types/shipping_details.rb +43 -0
- data/lib/ebay/types/shipping_feature_code.rb +15 -0
- data/lib/ebay/types/shipping_location_details.rb +14 -0
- data/lib/ebay/types/shipping_option_code.rb +13 -0
- data/lib/ebay/types/shipping_package_code.rb +27 -0
- data/lib/ebay/types/shipping_rate_type_code.rb +11 -0
- data/lib/ebay/types/shipping_region_code.rb +23 -0
- data/lib/ebay/types/shipping_service_code.rb +433 -0
- data/lib/ebay/types/shipping_service_details.rb +20 -0
- data/lib/ebay/types/shipping_service_options.rb +21 -0
- data/lib/ebay/types/shipping_term_required_definition.rb +12 -0
- data/lib/ebay/types/shipping_terms_code.rb +11 -0
- data/lib/ebay/types/shipping_type_code.rb +16 -0
- data/lib/ebay/types/sifftas_recommendations.rb +14 -0
- data/lib/ebay/types/site_code.rb +34 -0
- data/lib/ebay/types/site_defaults.rb +43 -0
- data/lib/ebay/types/site_details.rb +14 -0
- data/lib/ebay/types/site_hosted_picture.rb +17 -0
- data/lib/ebay/types/site_id_filter_code.rb +14 -0
- data/lib/ebay/types/site_location.rb +13 -0
- data/lib/ebay/types/site_wide_characteristics.rb +15 -0
- data/lib/ebay/types/skype_contact_option_code.rb +11 -0
- data/lib/ebay/types/skype_me_non_transactional_enabled_definition.rb +12 -0
- data/lib/ebay/types/skype_me_transactional_enabled_definition.rb +12 -0
- data/lib/ebay/types/skype_option_code.rb +11 -0
- data/lib/ebay/types/sms_subscription.rb +17 -0
- data/lib/ebay/types/sms_subscription_error_code_code.rb +14 -0
- data/lib/ebay/types/sms_subscription_user_status_code.rb +13 -0
- data/lib/ebay/types/sort_order_code.rb +11 -0
- data/lib/ebay/types/spelling_suggestion.rb +14 -0
- data/lib/ebay/types/store.rb +34 -0
- data/lib/ebay/types/store_category_update_action_code.rb +13 -0
- data/lib/ebay/types/store_color.rb +15 -0
- data/lib/ebay/types/store_color_scheme.rb +18 -0
- data/lib/ebay/types/store_color_scheme_array.rb +14 -0
- data/lib/ebay/types/store_custom_category.rb +18 -0
- data/lib/ebay/types/store_custom_category_array.rb +14 -0
- data/lib/ebay/types/store_custom_header_layout_code.rb +11 -0
- data/lib/ebay/types/store_custom_listing_header.rb +20 -0
- data/lib/ebay/types/store_custom_listing_header_display_code.rb +12 -0
- data/lib/ebay/types/store_custom_listing_header_link.rb +15 -0
- data/lib/ebay/types/store_custom_listing_header_link_code.rb +13 -0
- data/lib/ebay/types/store_custom_page.rb +21 -0
- data/lib/ebay/types/store_custom_page_array.rb +14 -0
- data/lib/ebay/types/store_custom_page_status_code.rb +12 -0
- data/lib/ebay/types/store_font.rb +21 -0
- data/lib/ebay/types/store_font_face_code.rb +13 -0
- data/lib/ebay/types/store_font_size_code.rb +16 -0
- data/lib/ebay/types/store_header_style_code.rb +11 -0
- data/lib/ebay/types/store_inventory_enabled_definition.rb +12 -0
- data/lib/ebay/types/store_item_list_layout_code.rb +11 -0
- data/lib/ebay/types/store_item_list_sort_order_code.rb +13 -0
- data/lib/ebay/types/store_logo.rb +15 -0
- data/lib/ebay/types/store_logo_array.rb +14 -0
- data/lib/ebay/types/store_preferences.rb +14 -0
- data/lib/ebay/types/store_search_code.rb +13 -0
- data/lib/ebay/types/store_subscription.rb +14 -0
- data/lib/ebay/types/store_subscription_array.rb +14 -0
- data/lib/ebay/types/store_subscription_level_code.rb +13 -0
- data/lib/ebay/types/store_theme.rb +16 -0
- data/lib/ebay/types/store_theme_array.rb +16 -0
- data/lib/ebay/types/store_vacation_preferences.rb +19 -0
- data/lib/ebay/types/storefront.rb +16 -0
- data/lib/ebay/types/string_match_code.rb +11 -0
- data/lib/ebay/types/subscription.rb +15 -0
- data/lib/ebay/types/suggested_category.rb +15 -0
- data/lib/ebay/types/summary_event_schedule.rb +15 -0
- data/lib/ebay/types/summary_frequency_code.rb +49 -0
- data/lib/ebay/types/summary_window_period_code.rb +17 -0
- data/lib/ebay/types/supported_event_types_array.rb +13 -0
- data/lib/ebay/types/task_status_code.rb +13 -0
- data/lib/ebay/types/tax_jurisdiction.rb +16 -0
- data/lib/ebay/types/tcr_enabled_definition.rb +12 -0
- data/lib/ebay/types/theme_group.rb +16 -0
- data/lib/ebay/types/token_return_method_code.rb +11 -0
- data/lib/ebay/types/trading_role_code.rb +11 -0
- data/lib/ebay/types/transaction.rb +54 -0
- data/lib/ebay/types/transaction_platform.rb +11 -0
- data/lib/ebay/types/transaction_status.rb +18 -0
- data/lib/ebay/types/unit_code.rb +15 -0
- data/lib/ebay/types/ups_rate_option_code.rb +11 -0
- data/lib/ebay/types/url_details.rb +14 -0
- data/lib/ebay/types/url_type_code.rb +20 -0
- data/lib/ebay/types/user.rb +56 -0
- data/lib/ebay/types/user_consent_required_definition.rb +12 -0
- data/lib/ebay/types/user_id_array.rb +13 -0
- data/lib/ebay/types/user_id_filter.rb +14 -0
- data/lib/ebay/types/user_id_password.rb +17 -0
- data/lib/ebay/types/user_status_code.rb +26 -0
- data/lib/ebay/types/val.rb +15 -0
- data/lib/ebay/types/value_pack_enabled_definition.rb +12 -0
- data/lib/ebay/types/vat_details.rb +15 -0
- data/lib/ebay/types/vat_status_code.rb +12 -0
- data/lib/ebay/types/vendor_hosted_picture.rb +17 -0
- data/lib/ebay/types/verified_user_requirements.rb +14 -0
- data/lib/ebay/types/want_it_now_post.rb +19 -0
- data/lib/ebay/types/warning_level_code.rb +11 -0
- data/lib/ebay/types/wireless_carrier_id_code.rb +23 -0
- data/lib/ebay/types/xml_requester_credentials.rb +15 -0
- data/lib/ebay/types/xsl_file.rb +26 -0
- data/lib/ebay/types.rb +204 -0
- data/lib/ebay.rb +32 -0
- data/lib/support/cattr_accessor.rb +57 -0
- data/lib/support/core_ext/hash.rb +24 -0
- data/lib/support/core_ext/string.rb +21 -0
- data/lib/support/xml_mapping/cdata_node.rb +7 -0
- data/lib/support/xml_mapping/money_node.rb +22 -0
- data/lib/support/xml_mapping/time_node.rb +14 -0
- data/lib/support/xml_mapping/value_array_node.rb +8 -0
- data/lib/support/xml_mapping.rb +10 -0
- data/rakefile +130 -0
- data/test/credentials.rb +7 -0
- data/test/fixtures/notifications/ask_seller_question.xml +58 -0
- data/test/fixtures/notifications/invalid_signature.xml +333 -0
- data/test/fixtures/notifications/m2m_message1.xml +333 -0
- data/test/fixtures/notifications/no_soap_body.xml +10 -0
- data/test/fixtures/responses/get_attributes_cs.xml +93188 -0
- data/test/fixtures/responses/get_attributes_xsl.xml +3973 -0
- data/test/fixtures/responses/official_time_failure.xml +2 -0
- data/test/fixtures/responses/official_time_success.xml +2 -0
- data/test/fixtures/responses/official_time_warning.xml +2 -0
- data/test/fixtures/responses/verify_add_item.xml +2 -0
- data/test/fixtures/responses/verify_add_item_failure.xml +2 -0
- data/test/fixtures/templates/abstract_response.erb +3 -0
- data/test/fixtures/templates/base.erb +19 -0
- data/test/fixtures/templates/ebay_class.erb +14 -0
- data/test/http_mock.rb +48 -0
- data/test/test_helper.rb +27 -0
- data/test/unit/abstract_request_test.rb +20 -0
- data/test/unit/application_delivery_preferences_test.rb +21 -0
- data/test/unit/class_definition_test.rb +20 -0
- data/test/unit/config_test.rb +24 -0
- data/test/unit/core_ext_hash_test.rb +61 -0
- data/test/unit/core_ext_string_test.rb +93 -0
- data/test/unit/ebay_test.rb +63 -0
- data/test/unit/generate_from_xsd.rb +35 -0
- data/test/unit/get_attributes_cs_test.rb +15 -0
- data/test/unit/get_attributes_xsl.rb +18 -0
- data/test/unit/initializer_test.rb +84 -0
- data/test/unit/mapping_subclass_test.rb +24 -0
- data/test/unit/node_test.rb +113 -0
- data/test/unit/notification_signature_test.rb +14 -0
- data/test/unit/notifications_test.rb +52 -0
- data/test/unit/template_test.rb +70 -0
- data/test/unit/xml_mapping_cdata_node_test.rb +31 -0
- data/test/unit/xml_mapping_money_node_test.rb +28 -0
- data/test/unit/xml_mapping_test.rb +28 -0
- data/test/unit/xml_mapping_time_node_test.rb +37 -0
- data/test/unit/xml_mapping_value_array_node_test.rb +57 -0
- metadata +943 -0
data/CHANGELOG
ADDED
File without changes
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2006 Cody Fauser
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOa AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SaALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
ADDED
File without changes
|
@@ -0,0 +1,50 @@
|
|
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
|
9
|
+
include Ebay::Types
|
10
|
+
|
11
|
+
# With no options, the default is to use the default site_id and the default
|
12
|
+
# auth_token configured on the Api class.
|
13
|
+
ebay = Api.new
|
14
|
+
|
15
|
+
# However, another user's auth_token can be used and the site can be selected
|
16
|
+
# at the time of creation. Ex: Canada with another user's auth token.
|
17
|
+
# ebay = Api.new(:site_id => 2, :auth_token => 'TEST')
|
18
|
+
|
19
|
+
# In this example I am simple passing in the strings 'Days_7', 'USD' and others.
|
20
|
+
# However, there are constants defined for these code types, which can be enumerated
|
21
|
+
# For example, CurrencyCode::CAD
|
22
|
+
# For enumerating through the available types: CurrencyCode.each{|code| puts code}
|
23
|
+
|
24
|
+
item = Item.new( :primary_category => Category.new(:category_id => 57882),
|
25
|
+
:title => 'Ruby eBay API Test Listing',
|
26
|
+
:description => 'Welcome!',
|
27
|
+
:location => 'Ottawa, On',
|
28
|
+
:start_price => Money.new(1200, 'USD'),
|
29
|
+
:quantity => 1,
|
30
|
+
:listing_duration => 'Days_7',
|
31
|
+
:country => 'US',
|
32
|
+
:currency => 'USD',
|
33
|
+
:payment_methods => ['VisaMC', 'PersonalCheck']
|
34
|
+
)
|
35
|
+
|
36
|
+
begin
|
37
|
+
response = ebay.add_item(:item => item)
|
38
|
+
puts "Adding item"
|
39
|
+
puts "eBay time is: #{response.timestamp}"
|
40
|
+
|
41
|
+
puts "Item ID: #{response.item_id}"
|
42
|
+
puts "Fee summary: "
|
43
|
+
response.fees.select{|f| !f.fee.zero? }.each do |f|
|
44
|
+
puts " #{f.name}: #{f.fee.format(:with_currency)}"
|
45
|
+
end
|
46
|
+
rescue Ebay::RequestError => e
|
47
|
+
e.errors.each do |error|
|
48
|
+
puts error.long_message
|
49
|
+
end
|
50
|
+
end
|
data/examples/config.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Ebay::Api.configure do |ebay|
|
2
|
+
ebay.auth_token = 'YOUR AUTH TOKEN HERE'
|
3
|
+
ebay.dev_id = 'YOUR DEVELOPER ID HERE'
|
4
|
+
ebay.app_id = 'YOUR APPLICATION ID HERE'
|
5
|
+
ebay.cert = 'YOUR CERTIFICATE HERE'
|
6
|
+
|
7
|
+
# The default environment is the production environment
|
8
|
+
# Override by setting use_sandbox to true
|
9
|
+
ebay.use_sandbox = true
|
10
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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
|
+
# End the item as passed in as the first argument
|
12
|
+
response = ebay.end_item(:item_id => ARGV.first)
|
13
|
+
puts "Successfully ended item #{ARGV.first}"
|
14
|
+
rescue Ebay::RequestError => e
|
15
|
+
e.errors.each do |error|
|
16
|
+
puts error.long_message
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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 the eBay API usage
|
12
|
+
response = ebay.get_api_access_rules
|
13
|
+
|
14
|
+
response.api_access_rules.each do |rule|
|
15
|
+
puts "#{rule.call_name}: Hourly: #{rule.hourly_usage}; Daily: #{rule.daily_usage}"
|
16
|
+
end
|
17
|
+
rescue Ebay::RequestError => e
|
18
|
+
e.errors.each do |error|
|
19
|
+
puts error.long_message
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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_attributes_xsl(:detail_level => 'ReturnAll')
|
11
|
+
|
12
|
+
# There is currently only one stylesheet, but eBay may add more in the future
|
13
|
+
file = response.xsl_files.first
|
14
|
+
puts "Downloaded version #{file.file_version}"
|
15
|
+
|
16
|
+
# Save the downloaded file
|
17
|
+
puts "Saving file to: #{file.file_name}"
|
18
|
+
File.open(file.file_name, 'w') do |f|
|
19
|
+
f.puts file.file_content
|
20
|
+
end
|
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
|
+
|
10
|
+
begin
|
11
|
+
# Get the eBay site details. This time we only want the SiteDetails, so
|
12
|
+
# specify that that is what we want with the option :detail_names
|
13
|
+
response = ebay.get_ebay_details(:detail_names => [ 'SiteDetails' ])
|
14
|
+
puts "eBay has #{response.site_details.size} total sites\n"
|
15
|
+
response.site_details.each do |site|
|
16
|
+
puts "#{site.site} (#{site.site_id})"
|
17
|
+
end
|
18
|
+
rescue Ebay::RequestError => e
|
19
|
+
e.errors.each do |error|
|
20
|
+
puts error.long_message
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
$:.unshift File.dirname(__FILE__)
|
3
|
+
$:.unshift File.join(File.dirname(__FILE__),'..', 'lib')
|
4
|
+
|
5
|
+
require 'ebay'
|
6
|
+
|
7
|
+
# config.rb contains the authentication configuration for the user account
|
8
|
+
# config.rb also tells eBay to use the Sandbox for this call
|
9
|
+
require 'config'
|
10
|
+
|
11
|
+
# Getting the official eBay time is the Hello World application of
|
12
|
+
# the eBay API. Get the official eBay time and display it.
|
13
|
+
# The request class is the camelized method call name and can be found in
|
14
|
+
# lib/ebay/requests/get_ebay_official_time.rb
|
15
|
+
# The class returned is the camelized method call name.
|
16
|
+
# In this case the returned class is Ebay::Responses::GeteBayOfficialTime
|
17
|
+
# This file can be found at lib/ebay/responses/get_ebay_official_time.rb
|
18
|
+
ebay = Ebay::Api.new
|
19
|
+
|
20
|
+
begin
|
21
|
+
response = ebay.get_ebay_official_time
|
22
|
+
puts "The returned class is: #{response.class}"
|
23
|
+
puts "The current eBay time is: #{response.timestamp}"
|
24
|
+
# Display any request errors to the user. A RequestError is only raised when
|
25
|
+
# the request has a Failure or PartialFailure status.
|
26
|
+
rescue Ebay::RequestError => e
|
27
|
+
# Display any request errors to the user. A RequestError is only raised when
|
28
|
+
# the request has a Failure or PartialFailure status.
|
29
|
+
e.errors.each do |error|
|
30
|
+
puts error.long_message
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
@@ -0,0 +1,31 @@
|
|
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
|
+
# Sometimes it is better to receive the raw XML response from eBay.
|
9
|
+
# This is beneficial for calls like get_categories(:detail_level => 'ReturnAll'),
|
10
|
+
# which can return 27,000+ categories. It is usefull in a case like that
|
11
|
+
# to use an event based XML listener and process the tags as you go.
|
12
|
+
ebay = Ebay::Api.new(:format => :raw)
|
13
|
+
|
14
|
+
begin
|
15
|
+
# Get the raw XML response. This can also be done by passing in :format => :raw
|
16
|
+
# to the call you're currently making, such as:
|
17
|
+
# ebay.get_ebay_official_time(:format => :raw)
|
18
|
+
response = ebay.get_ebay_official_time
|
19
|
+
|
20
|
+
# Create a new XML document and display the XML formatted on standard output
|
21
|
+
xml = REXML::Document.new(response)
|
22
|
+
xml.write(STDOUT, 0)
|
23
|
+
|
24
|
+
rescue Ebay::RequestError => e
|
25
|
+
# Display any request errors to the user. A RequestError is only raised when
|
26
|
+
# the request has a Failure or PartialFailure status.
|
27
|
+
e.errors.each do |error|
|
28
|
+
puts error.long_message
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
@@ -0,0 +1,25 @@
|
|
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 the item as passed in as the first argument
|
12
|
+
response = ebay.get_item(:item_id => ARGV.first)
|
13
|
+
|
14
|
+
# Get the item, which is of the type Ebay::Types::Item
|
15
|
+
item = response.item
|
16
|
+
puts "The item number is: #{item.item_id}"
|
17
|
+
puts "The item was listed at: #{item.listing_details.start_time}"
|
18
|
+
puts "The item can be viewed at: #{item.listing_details.view_item_url}"
|
19
|
+
puts "The starting price is: #{item.listing_details.converted_start_price.format(:with_currency)}"
|
20
|
+
rescue Ebay::RequestError => e
|
21
|
+
e.errors.each do |error|
|
22
|
+
puts error.long_message
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
@@ -0,0 +1,36 @@
|
|
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
|
+
# First get the item in question so that we can determine the
|
12
|
+
# modified times
|
13
|
+
response = ebay.get_item(:item_id => ARGV.first)
|
14
|
+
listing_end_time = response.item.listing_details.end_time
|
15
|
+
|
16
|
+
# Use a 29 day window, which is about the max allowable by eBay
|
17
|
+
time_to = listing_end_time + 29.days
|
18
|
+
|
19
|
+
response = ebay.get_item_transactions(
|
20
|
+
:item_id => ARGV.first,
|
21
|
+
:mod_time_from => listing_end_time,
|
22
|
+
:mod_time_to => time_to,
|
23
|
+
:detail_level => 'ItemReturnDescription'
|
24
|
+
)
|
25
|
+
|
26
|
+
puts "Total transactions: #{response.transactions.size}"
|
27
|
+
response.transactions.each do |t|
|
28
|
+
puts "Item Won On: #{listing_end_time}"
|
29
|
+
puts "Item Paid On: #{t.paid_time}"
|
30
|
+
puts "Item Shipped On: #{t.shipped_time}"
|
31
|
+
end
|
32
|
+
rescue Ebay::RequestError => e
|
33
|
+
e.errors.each do |error|
|
34
|
+
puts error.long_message
|
35
|
+
end
|
36
|
+
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
|
+
# Get the actively listed items from My eBay and sort them by TimeLeft
|
9
|
+
ebay = Ebay::Api.new
|
10
|
+
|
11
|
+
begin
|
12
|
+
response = ebay.get_my_ebay_selling(
|
13
|
+
:detail_level => 'ReturnAll',
|
14
|
+
:active_list => Ebay::Types::ItemListCustomization.new(:sort => 'TimeLeft')
|
15
|
+
)
|
16
|
+
|
17
|
+
puts "You have #{response.active_list.items.size} active listings:"
|
18
|
+
response.active_list.items.each do |item|
|
19
|
+
puts "#{item.item_id}: #{item.title}"
|
20
|
+
end
|
21
|
+
rescue Ebay::RequestError => e
|
22
|
+
e.errors.each do |error|
|
23
|
+
puts error.long_message
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
@@ -0,0 +1,21 @@
|
|
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
|
+
# Get the messages from MyMessages
|
11
|
+
begin
|
12
|
+
response = ebay.get_my_messages(:detail_level => 'ReturnHeaders')
|
13
|
+
response.messages.each do |message|
|
14
|
+
puts "Sender: #{message.sender} Subject: #{message.subject}"
|
15
|
+
end
|
16
|
+
rescue Ebay::RequestError => e
|
17
|
+
e.errors.each do |error|
|
18
|
+
puts error.long_message
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
@@ -0,0 +1,20 @@
|
|
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
|
+
response = ebay.get_my_messages(:detail_level => 'ReturnSummary')
|
12
|
+
|
13
|
+
response.summary.folder_summaries.each do |folder|
|
14
|
+
puts "#{folder.folder_id}: #{folder.folder_name}"
|
15
|
+
end
|
16
|
+
rescue Ebay::RequestError => e
|
17
|
+
e.errors.each do |error|
|
18
|
+
puts error.long_message
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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
|
+
scope = ARGV.first
|
9
|
+
|
10
|
+
ebay = Ebay::Api.new
|
11
|
+
|
12
|
+
begin
|
13
|
+
# Get the notificiation preferences for either the Application or User scope
|
14
|
+
response = ebay.get_notification_preferences(:preference_level => scope)
|
15
|
+
|
16
|
+
case scope
|
17
|
+
when 'Application'
|
18
|
+
prefs = response.application_delivery_preferences
|
19
|
+
puts "Url: #{prefs.application_url}"
|
20
|
+
puts "Alert enable: #{prefs.alert_enable}"
|
21
|
+
puts "App enable: #{prefs.application_enable}"
|
22
|
+
puts "Type: #{prefs.notification_payload_type}"
|
23
|
+
when 'User'
|
24
|
+
response.user_delivery_preferences.each do |pref|
|
25
|
+
puts "#{pref.event_type}: #{pref.event_enable}"
|
26
|
+
end
|
27
|
+
else
|
28
|
+
puts "Please specify 'Application' or 'User'"
|
29
|
+
end
|
30
|
+
rescue Ebay::RequestError => e
|
31
|
+
e.errors.each do |error|
|
32
|
+
puts error.long_message
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
|
@@ -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,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/init.rb
ADDED