Class: UltracartClient::ItemEbay
- Inherits:
-
Object
- Object
- UltracartClient::ItemEbay
- Defined in:
- lib/ultracart_api/models/item_ebay.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
True if the item is active for listing.
-
#category_id ⇒ Object
e-Bay category ID.
-
#category_specifics ⇒ Object
Answers to category specific questions.
-
#condition_description ⇒ Object
Description of the condition (e-Bay constant).
-
#condition_id ⇒ Object
Numerical ID of the condition (e-Bay constant).
-
#consecutive_failures ⇒ Object
Number of consecutive failures trying to list this item.
-
#custom_category1 ⇒ Object
e-Bay Store category 1.
-
#custom_category2 ⇒ Object
e-Bay Store category 2.
-
#dispatch_time_max ⇒ Object
Maximum number of days it will take to ship the item.
-
#domestic_1_additional_cost ⇒ Object
Domestic 1 method additional item cost.
-
#domestic_1_first_cost ⇒ Object
Domestic 1 method first item cost.
-
#domestic_2_additional_cost ⇒ Object
Domestic 2 method additional item cost.
-
#domestic_2_first_cost ⇒ Object
Domestic 2 method first item cost.
-
#domestic_3_additional_cost ⇒ Object
Domestic 3 method additional item cost.
-
#domestic_3_first_cost ⇒ Object
Domestic 3 method first item cost.
-
#domestic_4_additional_cost ⇒ Object
Domestic 4 method additional item cost.
-
#domestic_4_first_cost ⇒ Object
Domestic 4 method first item cost.
-
#ebay_auction_id ⇒ Object
If listed, this is the e-Bay auction id.
-
#ebay_specific_inventory ⇒ Object
e-Bay specific inventory.
-
#ebay_template_name ⇒ Object
The template name to use hwen rendering the e-Bay listing.
-
#ebay_template_oid ⇒ Object
The template object identifier to use when rendering the e-Bay listing.
-
#end_time ⇒ Object
Date/time of the auction end.
-
#free_shipping ⇒ Object
True if item receives free shipping.
-
#free_shipping_method ⇒ Object
The method that is free for free shipping.
-
#international_1_additional_cost ⇒ Object
International 1 method additional item cost.
-
#international_1_first_cost ⇒ Object
International 1 method first item cost.
-
#international_2_additional_cost ⇒ Object
International 2 method additional item cost.
-
#international_2_first_cost ⇒ Object
International 2 method first item cost.
-
#international_3_additional_cost ⇒ Object
International 3 method additional item cost.
-
#international_3_first_cost ⇒ Object
International 3 method first item cost.
-
#international_4_additional_cost ⇒ Object
International 4 method additional item cost.
-
#international_4_first_cost ⇒ Object
International 4 method first item cost.
-
#last_status_dts ⇒ Object
Date/time of the last status check.
-
#listed_dispatch_time_max ⇒ Object
Current listing dispatch time maximum.
-
#listed_ebay_template_oid ⇒ Object
The template object identifier used for the listing.
-
#listing_dts ⇒ Object
Date/time of the listing.
-
#listing_duration ⇒ Object
The duration of the listing.
-
#listing_price ⇒ Object
Price to list the item at.
-
#listing_price_override ⇒ Object
The price to list the item at if different than the regular UltraCart item price.
-
#listing_type ⇒ Object
The type of e-Bay listing.
-
#marketplace_analysis ⇒ Object
Returns the value of attribute marketplace_analysis.
-
#marketplace_analysis_perform ⇒ Object
True if marketplace analysis should be performed.
-
#marketplace_final_value_fee_percentage ⇒ Object
Marketplace FVF percentage.
-
#marketplace_last_check_dts ⇒ Object
Date/time of the marketplace analysis last check.
-
#marketplace_lowest ⇒ Object
True if we are the lowest offer in the marketplace.
-
#marketplace_map_violation ⇒ Object
True if another seller is violating MAP.
-
#marketplace_multiplier ⇒ Object
Marketplace multiplier.
-
#marketplace_other_price ⇒ Object
Marketplace other price.
-
#marketplace_other_seller ⇒ Object
Marketplace other seller.
-
#marketplace_other_shipping ⇒ Object
Marketplace other shipping.
-
#marketplace_other_total ⇒ Object
Marketplace other total.
-
#marketplace_our_additional_profit_potential ⇒ Object
Marketplace our additional profit potential.
-
#marketplace_our_price ⇒ Object
Marketplace our price.
-
#marketplace_our_profit ⇒ Object
Marketplace our profit.
-
#marketplace_our_shipping ⇒ Object
Marketplace our shipping.
-
#marketplace_our_total ⇒ Object
Marketplace our total.
-
#marketplace_overhead ⇒ Object
Marketplace overhead.
-
#marketplace_profitable ⇒ Object
True if our listing is profitable to sell.
-
#next_attempt_dts ⇒ Object
Date/time for the next attempt to list.
-
#next_listing_duration ⇒ Object
The next listing duration to use when the current listing ends.
-
#no_promotional_shipping ⇒ Object
True if the item should not qualify for promotional shipping.
-
#packaging_handling_costs ⇒ Object
Packaging and handling costs.
-
#previous_ebay_auction_id ⇒ Object
Previous e-Bay auction id.
-
#quantity ⇒ Object
Quantity available of the item.
-
#reserve_price ⇒ Object
Reserve price.
-
#send_dimensions_and_weight ⇒ Object
How to send the item dimensions and weights to e-Bay.
-
#start_time ⇒ Object
Date/time of the auction start.
-
#status ⇒ Object
Status of the item’s listing.
-
#target_dispatch_time_max ⇒ Object
Typical number of days it will take to ship the item.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ItemEbay
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ ItemEbay
Initializes the object
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 375 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'active') self.active = attributes[:'active'] end if attributes.has_key?(:'category_id') self.category_id = attributes[:'category_id'] end if attributes.has_key?(:'category_specifics') if (value = attributes[:'category_specifics']).is_a?(Array) self.category_specifics = value end end if attributes.has_key?(:'condition_description') self.condition_description = attributes[:'condition_description'] end if attributes.has_key?(:'condition_id') self.condition_id = attributes[:'condition_id'] end if attributes.has_key?(:'consecutive_failures') self.consecutive_failures = attributes[:'consecutive_failures'] end if attributes.has_key?(:'custom_category1') self.custom_category1 = attributes[:'custom_category1'] end if attributes.has_key?(:'custom_category2') self.custom_category2 = attributes[:'custom_category2'] end if attributes.has_key?(:'dispatch_time_max') self.dispatch_time_max = attributes[:'dispatch_time_max'] end if attributes.has_key?(:'domestic_1_additional_cost') self.domestic_1_additional_cost = attributes[:'domestic_1_additional_cost'] end if attributes.has_key?(:'domestic_1_first_cost') self.domestic_1_first_cost = attributes[:'domestic_1_first_cost'] end if attributes.has_key?(:'domestic_2_additional_cost') self.domestic_2_additional_cost = attributes[:'domestic_2_additional_cost'] end if attributes.has_key?(:'domestic_2_first_cost') self.domestic_2_first_cost = attributes[:'domestic_2_first_cost'] end if attributes.has_key?(:'domestic_3_additional_cost') self.domestic_3_additional_cost = attributes[:'domestic_3_additional_cost'] end if attributes.has_key?(:'domestic_3_first_cost') self.domestic_3_first_cost = attributes[:'domestic_3_first_cost'] end if attributes.has_key?(:'domestic_4_additional_cost') self.domestic_4_additional_cost = attributes[:'domestic_4_additional_cost'] end if attributes.has_key?(:'domestic_4_first_cost') self.domestic_4_first_cost = attributes[:'domestic_4_first_cost'] end if attributes.has_key?(:'ebay_auction_id') self.ebay_auction_id = attributes[:'ebay_auction_id'] end if attributes.has_key?(:'ebay_specific_inventory') self.ebay_specific_inventory = attributes[:'ebay_specific_inventory'] end if attributes.has_key?(:'ebay_template_name') self.ebay_template_name = attributes[:'ebay_template_name'] end if attributes.has_key?(:'ebay_template_oid') self.ebay_template_oid = attributes[:'ebay_template_oid'] end if attributes.has_key?(:'end_time') self.end_time = attributes[:'end_time'] end if attributes.has_key?(:'free_shipping') self.free_shipping = attributes[:'free_shipping'] end if attributes.has_key?(:'free_shipping_method') self.free_shipping_method = attributes[:'free_shipping_method'] end if attributes.has_key?(:'international_1_additional_cost') self.international_1_additional_cost = attributes[:'international_1_additional_cost'] end if attributes.has_key?(:'international_1_first_cost') self.international_1_first_cost = attributes[:'international_1_first_cost'] end if attributes.has_key?(:'international_2_additional_cost') self.international_2_additional_cost = attributes[:'international_2_additional_cost'] end if attributes.has_key?(:'international_2_first_cost') self.international_2_first_cost = attributes[:'international_2_first_cost'] end if attributes.has_key?(:'international_3_additional_cost') self.international_3_additional_cost = attributes[:'international_3_additional_cost'] end if attributes.has_key?(:'international_3_first_cost') self.international_3_first_cost = attributes[:'international_3_first_cost'] end if attributes.has_key?(:'international_4_additional_cost') self.international_4_additional_cost = attributes[:'international_4_additional_cost'] end if attributes.has_key?(:'international_4_first_cost') self.international_4_first_cost = attributes[:'international_4_first_cost'] end if attributes.has_key?(:'last_status_dts') self.last_status_dts = attributes[:'last_status_dts'] end if attributes.has_key?(:'listed_dispatch_time_max') self.listed_dispatch_time_max = attributes[:'listed_dispatch_time_max'] end if attributes.has_key?(:'listed_ebay_template_oid') self.listed_ebay_template_oid = attributes[:'listed_ebay_template_oid'] end if attributes.has_key?(:'listing_dts') self.listing_dts = attributes[:'listing_dts'] end if attributes.has_key?(:'listing_duration') self.listing_duration = attributes[:'listing_duration'] end if attributes.has_key?(:'listing_price') self.listing_price = attributes[:'listing_price'] end if attributes.has_key?(:'listing_price_override') self.listing_price_override = attributes[:'listing_price_override'] end if attributes.has_key?(:'listing_type') self.listing_type = attributes[:'listing_type'] end if attributes.has_key?(:'marketplace_analysis') self.marketplace_analysis = attributes[:'marketplace_analysis'] end if attributes.has_key?(:'marketplace_analysis_perform') self.marketplace_analysis_perform = attributes[:'marketplace_analysis_perform'] end if attributes.has_key?(:'marketplace_final_value_fee_percentage') self.marketplace_final_value_fee_percentage = attributes[:'marketplace_final_value_fee_percentage'] end if attributes.has_key?(:'marketplace_last_check_dts') self.marketplace_last_check_dts = attributes[:'marketplace_last_check_dts'] end if attributes.has_key?(:'marketplace_lowest') self.marketplace_lowest = attributes[:'marketplace_lowest'] end if attributes.has_key?(:'marketplace_map_violation') self.marketplace_map_violation = attributes[:'marketplace_map_violation'] end if attributes.has_key?(:'marketplace_multiplier') self.marketplace_multiplier = attributes[:'marketplace_multiplier'] end if attributes.has_key?(:'marketplace_other_price') self.marketplace_other_price = attributes[:'marketplace_other_price'] end if attributes.has_key?(:'marketplace_other_seller') self.marketplace_other_seller = attributes[:'marketplace_other_seller'] end if attributes.has_key?(:'marketplace_other_shipping') self.marketplace_other_shipping = attributes[:'marketplace_other_shipping'] end if attributes.has_key?(:'marketplace_other_total') self.marketplace_other_total = attributes[:'marketplace_other_total'] end if attributes.has_key?(:'marketplace_our_additional_profit_potential') self.marketplace_our_additional_profit_potential = attributes[:'marketplace_our_additional_profit_potential'] end if attributes.has_key?(:'marketplace_our_price') self.marketplace_our_price = attributes[:'marketplace_our_price'] end if attributes.has_key?(:'marketplace_our_profit') self.marketplace_our_profit = attributes[:'marketplace_our_profit'] end if attributes.has_key?(:'marketplace_our_shipping') self.marketplace_our_shipping = attributes[:'marketplace_our_shipping'] end if attributes.has_key?(:'marketplace_our_total') self.marketplace_our_total = attributes[:'marketplace_our_total'] end if attributes.has_key?(:'marketplace_overhead') self.marketplace_overhead = attributes[:'marketplace_overhead'] end if attributes.has_key?(:'marketplace_profitable') self.marketplace_profitable = attributes[:'marketplace_profitable'] end if attributes.has_key?(:'next_attempt_dts') self.next_attempt_dts = attributes[:'next_attempt_dts'] end if attributes.has_key?(:'next_listing_duration') self.next_listing_duration = attributes[:'next_listing_duration'] end if attributes.has_key?(:'no_promotional_shipping') self.no_promotional_shipping = attributes[:'no_promotional_shipping'] end if attributes.has_key?(:'packaging_handling_costs') self.packaging_handling_costs = attributes[:'packaging_handling_costs'] end if attributes.has_key?(:'previous_ebay_auction_id') self.previous_ebay_auction_id = attributes[:'previous_ebay_auction_id'] end if attributes.has_key?(:'quantity') self.quantity = attributes[:'quantity'] end if attributes.has_key?(:'reserve_price') self.reserve_price = attributes[:'reserve_price'] end if attributes.has_key?(:'send_dimensions_and_weight') self.send_dimensions_and_weight = attributes[:'send_dimensions_and_weight'] end if attributes.has_key?(:'start_time') self.start_time = attributes[:'start_time'] end if attributes.has_key?(:'status') self.status = attributes[:'status'] end if attributes.has_key?(:'target_dispatch_time_max') self.target_dispatch_time_max = attributes[:'target_dispatch_time_max'] end end |
Instance Attribute Details
#active ⇒ Object
True if the item is active for listing
18 19 20 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 18 def active @active end |
#category_id ⇒ Object
e-Bay category ID
21 22 23 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 21 def category_id @category_id end |
#category_specifics ⇒ Object
Answers to category specific questions
24 25 26 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 24 def category_specifics @category_specifics end |
#condition_description ⇒ Object
Description of the condition (e-Bay constant)
27 28 29 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 27 def condition_description @condition_description end |
#condition_id ⇒ Object
Numerical ID of the condition (e-Bay constant)
30 31 32 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 30 def condition_id @condition_id end |
#consecutive_failures ⇒ Object
Number of consecutive failures trying to list this item
33 34 35 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 33 def consecutive_failures @consecutive_failures end |
#custom_category1 ⇒ Object
e-Bay Store category 1
36 37 38 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 36 def custom_category1 @custom_category1 end |
#custom_category2 ⇒ Object
e-Bay Store category 2
39 40 41 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 39 def custom_category2 @custom_category2 end |
#dispatch_time_max ⇒ Object
Maximum number of days it will take to ship the item
42 43 44 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 42 def dispatch_time_max @dispatch_time_max end |
#domestic_1_additional_cost ⇒ Object
Domestic 1 method additional item cost
45 46 47 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 45 def domestic_1_additional_cost @domestic_1_additional_cost end |
#domestic_1_first_cost ⇒ Object
Domestic 1 method first item cost
48 49 50 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 48 def domestic_1_first_cost @domestic_1_first_cost end |
#domestic_2_additional_cost ⇒ Object
Domestic 2 method additional item cost
51 52 53 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 51 def domestic_2_additional_cost @domestic_2_additional_cost end |
#domestic_2_first_cost ⇒ Object
Domestic 2 method first item cost
54 55 56 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 54 def domestic_2_first_cost @domestic_2_first_cost end |
#domestic_3_additional_cost ⇒ Object
Domestic 3 method additional item cost
57 58 59 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 57 def domestic_3_additional_cost @domestic_3_additional_cost end |
#domestic_3_first_cost ⇒ Object
Domestic 3 method first item cost
60 61 62 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 60 def domestic_3_first_cost @domestic_3_first_cost end |
#domestic_4_additional_cost ⇒ Object
Domestic 4 method additional item cost
63 64 65 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 63 def domestic_4_additional_cost @domestic_4_additional_cost end |
#domestic_4_first_cost ⇒ Object
Domestic 4 method first item cost
66 67 68 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 66 def domestic_4_first_cost @domestic_4_first_cost end |
#ebay_auction_id ⇒ Object
If listed, this is the e-Bay auction id
69 70 71 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 69 def ebay_auction_id @ebay_auction_id end |
#ebay_specific_inventory ⇒ Object
e-Bay specific inventory
72 73 74 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 72 def ebay_specific_inventory @ebay_specific_inventory end |
#ebay_template_name ⇒ Object
The template name to use hwen rendering the e-Bay listing
75 76 77 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 75 def ebay_template_name @ebay_template_name end |
#ebay_template_oid ⇒ Object
The template object identifier to use when rendering the e-Bay listing
78 79 80 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 78 def ebay_template_oid @ebay_template_oid end |
#end_time ⇒ Object
Date/time of the auction end
81 82 83 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 81 def end_time @end_time end |
#free_shipping ⇒ Object
True if item receives free shipping
84 85 86 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 84 def free_shipping @free_shipping end |
#free_shipping_method ⇒ Object
The method that is free for free shipping
87 88 89 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 87 def free_shipping_method @free_shipping_method end |
#international_1_additional_cost ⇒ Object
International 1 method additional item cost
90 91 92 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 90 def international_1_additional_cost @international_1_additional_cost end |
#international_1_first_cost ⇒ Object
International 1 method first item cost
93 94 95 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 93 def international_1_first_cost @international_1_first_cost end |
#international_2_additional_cost ⇒ Object
International 2 method additional item cost
96 97 98 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 96 def international_2_additional_cost @international_2_additional_cost end |
#international_2_first_cost ⇒ Object
International 2 method first item cost
99 100 101 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 99 def international_2_first_cost @international_2_first_cost end |
#international_3_additional_cost ⇒ Object
International 3 method additional item cost
102 103 104 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 102 def international_3_additional_cost @international_3_additional_cost end |
#international_3_first_cost ⇒ Object
International 3 method first item cost
105 106 107 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 105 def international_3_first_cost @international_3_first_cost end |
#international_4_additional_cost ⇒ Object
International 4 method additional item cost
108 109 110 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 108 def international_4_additional_cost @international_4_additional_cost end |
#international_4_first_cost ⇒ Object
International 4 method first item cost
111 112 113 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 111 def international_4_first_cost @international_4_first_cost end |
#last_status_dts ⇒ Object
Date/time of the last status check
114 115 116 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 114 def last_status_dts @last_status_dts end |
#listed_dispatch_time_max ⇒ Object
Current listing dispatch time maximum
117 118 119 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 117 def listed_dispatch_time_max @listed_dispatch_time_max end |
#listed_ebay_template_oid ⇒ Object
The template object identifier used for the listing
120 121 122 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 120 def listed_ebay_template_oid @listed_ebay_template_oid end |
#listing_dts ⇒ Object
Date/time of the listing
123 124 125 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 123 def listing_dts @listing_dts end |
#listing_duration ⇒ Object
The duration of the listing
126 127 128 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 126 def listing_duration @listing_duration end |
#listing_price ⇒ Object
Price to list the item at
129 130 131 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 129 def listing_price @listing_price end |
#listing_price_override ⇒ Object
The price to list the item at if different than the regular UltraCart item price
132 133 134 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 132 def listing_price_override @listing_price_override end |
#listing_type ⇒ Object
The type of e-Bay listing
135 136 137 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 135 def listing_type @listing_type end |
#marketplace_analysis ⇒ Object
Returns the value of attribute marketplace_analysis.
137 138 139 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 137 def marketplace_analysis @marketplace_analysis end |
#marketplace_analysis_perform ⇒ Object
True if marketplace analysis should be performed
140 141 142 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 140 def marketplace_analysis_perform @marketplace_analysis_perform end |
#marketplace_final_value_fee_percentage ⇒ Object
Marketplace FVF percentage
143 144 145 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 143 def marketplace_final_value_fee_percentage @marketplace_final_value_fee_percentage end |
#marketplace_last_check_dts ⇒ Object
Date/time of the marketplace analysis last check
146 147 148 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 146 def marketplace_last_check_dts @marketplace_last_check_dts end |
#marketplace_lowest ⇒ Object
True if we are the lowest offer in the marketplace
149 150 151 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 149 def marketplace_lowest @marketplace_lowest end |
#marketplace_map_violation ⇒ Object
True if another seller is violating MAP
152 153 154 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 152 def marketplace_map_violation @marketplace_map_violation end |
#marketplace_multiplier ⇒ Object
Marketplace multiplier
155 156 157 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 155 def marketplace_multiplier @marketplace_multiplier end |
#marketplace_other_price ⇒ Object
Marketplace other price
158 159 160 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 158 def marketplace_other_price @marketplace_other_price end |
#marketplace_other_seller ⇒ Object
Marketplace other seller
161 162 163 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 161 def marketplace_other_seller @marketplace_other_seller end |
#marketplace_other_shipping ⇒ Object
Marketplace other shipping
164 165 166 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 164 def marketplace_other_shipping @marketplace_other_shipping end |
#marketplace_other_total ⇒ Object
Marketplace other total
167 168 169 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 167 def marketplace_other_total @marketplace_other_total end |
#marketplace_our_additional_profit_potential ⇒ Object
Marketplace our additional profit potential
170 171 172 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 170 def marketplace_our_additional_profit_potential @marketplace_our_additional_profit_potential end |
#marketplace_our_price ⇒ Object
Marketplace our price
173 174 175 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 173 def marketplace_our_price @marketplace_our_price end |
#marketplace_our_profit ⇒ Object
Marketplace our profit
176 177 178 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 176 def marketplace_our_profit @marketplace_our_profit end |
#marketplace_our_shipping ⇒ Object
Marketplace our shipping
179 180 181 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 179 def marketplace_our_shipping @marketplace_our_shipping end |
#marketplace_our_total ⇒ Object
Marketplace our total
182 183 184 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 182 def marketplace_our_total @marketplace_our_total end |
#marketplace_overhead ⇒ Object
Marketplace overhead
185 186 187 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 185 def marketplace_overhead @marketplace_overhead end |
#marketplace_profitable ⇒ Object
True if our listing is profitable to sell
188 189 190 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 188 def marketplace_profitable @marketplace_profitable end |
#next_attempt_dts ⇒ Object
Date/time for the next attempt to list
191 192 193 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 191 def next_attempt_dts @next_attempt_dts end |
#next_listing_duration ⇒ Object
The next listing duration to use when the current listing ends.
194 195 196 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 194 def next_listing_duration @next_listing_duration end |
#no_promotional_shipping ⇒ Object
True if the item should not qualify for promotional shipping
197 198 199 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 197 def no_promotional_shipping @no_promotional_shipping end |
#packaging_handling_costs ⇒ Object
Packaging and handling costs
200 201 202 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 200 def packaging_handling_costs @packaging_handling_costs end |
#previous_ebay_auction_id ⇒ Object
Previous e-Bay auction id
203 204 205 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 203 def previous_ebay_auction_id @previous_ebay_auction_id end |
#quantity ⇒ Object
Quantity available of the item
206 207 208 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 206 def quantity @quantity end |
#reserve_price ⇒ Object
Reserve price
209 210 211 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 209 def reserve_price @reserve_price end |
#send_dimensions_and_weight ⇒ Object
How to send the item dimensions and weights to e-Bay
212 213 214 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 212 def send_dimensions_and_weight @send_dimensions_and_weight end |
#start_time ⇒ Object
Date/time of the auction start
215 216 217 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 215 def start_time @start_time end |
#status ⇒ Object
Status of the item’s listing
218 219 220 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 218 def status @status end |
#target_dispatch_time_max ⇒ Object
Typical number of days it will take to ship the item
221 222 223 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 221 def target_dispatch_time_max @target_dispatch_time_max end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 224 def self.attribute_map { :'active' => :'active', :'category_id' => :'category_id', :'category_specifics' => :'category_specifics', :'condition_description' => :'condition_description', :'condition_id' => :'condition_id', :'consecutive_failures' => :'consecutive_failures', :'custom_category1' => :'custom_category1', :'custom_category2' => :'custom_category2', :'dispatch_time_max' => :'dispatch_time_max', :'domestic_1_additional_cost' => :'domestic_1_additional_cost', :'domestic_1_first_cost' => :'domestic_1_first_cost', :'domestic_2_additional_cost' => :'domestic_2_additional_cost', :'domestic_2_first_cost' => :'domestic_2_first_cost', :'domestic_3_additional_cost' => :'domestic_3_additional_cost', :'domestic_3_first_cost' => :'domestic_3_first_cost', :'domestic_4_additional_cost' => :'domestic_4_additional_cost', :'domestic_4_first_cost' => :'domestic_4_first_cost', :'ebay_auction_id' => :'ebay_auction_id', :'ebay_specific_inventory' => :'ebay_specific_inventory', :'ebay_template_name' => :'ebay_template_name', :'ebay_template_oid' => :'ebay_template_oid', :'end_time' => :'end_time', :'free_shipping' => :'free_shipping', :'free_shipping_method' => :'free_shipping_method', :'international_1_additional_cost' => :'international_1_additional_cost', :'international_1_first_cost' => :'international_1_first_cost', :'international_2_additional_cost' => :'international_2_additional_cost', :'international_2_first_cost' => :'international_2_first_cost', :'international_3_additional_cost' => :'international_3_additional_cost', :'international_3_first_cost' => :'international_3_first_cost', :'international_4_additional_cost' => :'international_4_additional_cost', :'international_4_first_cost' => :'international_4_first_cost', :'last_status_dts' => :'last_status_dts', :'listed_dispatch_time_max' => :'listed_dispatch_time_max', :'listed_ebay_template_oid' => :'listed_ebay_template_oid', :'listing_dts' => :'listing_dts', :'listing_duration' => :'listing_duration', :'listing_price' => :'listing_price', :'listing_price_override' => :'listing_price_override', :'listing_type' => :'listing_type', :'marketplace_analysis' => :'marketplace_analysis', :'marketplace_analysis_perform' => :'marketplace_analysis_perform', :'marketplace_final_value_fee_percentage' => :'marketplace_final_value_fee_percentage', :'marketplace_last_check_dts' => :'marketplace_last_check_dts', :'marketplace_lowest' => :'marketplace_lowest', :'marketplace_map_violation' => :'marketplace_map_violation', :'marketplace_multiplier' => :'marketplace_multiplier', :'marketplace_other_price' => :'marketplace_other_price', :'marketplace_other_seller' => :'marketplace_other_seller', :'marketplace_other_shipping' => :'marketplace_other_shipping', :'marketplace_other_total' => :'marketplace_other_total', :'marketplace_our_additional_profit_potential' => :'marketplace_our_additional_profit_potential', :'marketplace_our_price' => :'marketplace_our_price', :'marketplace_our_profit' => :'marketplace_our_profit', :'marketplace_our_shipping' => :'marketplace_our_shipping', :'marketplace_our_total' => :'marketplace_our_total', :'marketplace_overhead' => :'marketplace_overhead', :'marketplace_profitable' => :'marketplace_profitable', :'next_attempt_dts' => :'next_attempt_dts', :'next_listing_duration' => :'next_listing_duration', :'no_promotional_shipping' => :'no_promotional_shipping', :'packaging_handling_costs' => :'packaging_handling_costs', :'previous_ebay_auction_id' => :'previous_ebay_auction_id', :'quantity' => :'quantity', :'reserve_price' => :'reserve_price', :'send_dimensions_and_weight' => :'send_dimensions_and_weight', :'start_time' => :'start_time', :'status' => :'status', :'target_dispatch_time_max' => :'target_dispatch_time_max' } end |
.swagger_types ⇒ Object
Attribute type mapping.
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 299 def self.swagger_types { :'active' => :'BOOLEAN', :'category_id' => :'Integer', :'category_specifics' => :'Array<ItemEbayCategorySpecific>', :'condition_description' => :'String', :'condition_id' => :'Integer', :'consecutive_failures' => :'Integer', :'custom_category1' => :'Integer', :'custom_category2' => :'Integer', :'dispatch_time_max' => :'Integer', :'domestic_1_additional_cost' => :'Float', :'domestic_1_first_cost' => :'Float', :'domestic_2_additional_cost' => :'Float', :'domestic_2_first_cost' => :'Float', :'domestic_3_additional_cost' => :'Float', :'domestic_3_first_cost' => :'Float', :'domestic_4_additional_cost' => :'Float', :'domestic_4_first_cost' => :'Float', :'ebay_auction_id' => :'String', :'ebay_specific_inventory' => :'Integer', :'ebay_template_name' => :'String', :'ebay_template_oid' => :'Integer', :'end_time' => :'String', :'free_shipping' => :'BOOLEAN', :'free_shipping_method' => :'String', :'international_1_additional_cost' => :'Float', :'international_1_first_cost' => :'Float', :'international_2_additional_cost' => :'Float', :'international_2_first_cost' => :'Float', :'international_3_additional_cost' => :'Float', :'international_3_first_cost' => :'Float', :'international_4_additional_cost' => :'Float', :'international_4_first_cost' => :'Float', :'last_status_dts' => :'String', :'listed_dispatch_time_max' => :'Integer', :'listed_ebay_template_oid' => :'Integer', :'listing_dts' => :'String', :'listing_duration' => :'String', :'listing_price' => :'Float', :'listing_price_override' => :'Float', :'listing_type' => :'String', :'marketplace_analysis' => :'ItemEbayMarketPlaceAnalysis', :'marketplace_analysis_perform' => :'BOOLEAN', :'marketplace_final_value_fee_percentage' => :'Float', :'marketplace_last_check_dts' => :'String', :'marketplace_lowest' => :'BOOLEAN', :'marketplace_map_violation' => :'BOOLEAN', :'marketplace_multiplier' => :'Float', :'marketplace_other_price' => :'Float', :'marketplace_other_seller' => :'String', :'marketplace_other_shipping' => :'Float', :'marketplace_other_total' => :'Float', :'marketplace_our_additional_profit_potential' => :'Float', :'marketplace_our_price' => :'Float', :'marketplace_our_profit' => :'Float', :'marketplace_our_shipping' => :'Float', :'marketplace_our_total' => :'Float', :'marketplace_overhead' => :'Float', :'marketplace_profitable' => :'BOOLEAN', :'next_attempt_dts' => :'String', :'next_listing_duration' => :'String', :'no_promotional_shipping' => :'BOOLEAN', :'packaging_handling_costs' => :'Float', :'previous_ebay_auction_id' => :'String', :'quantity' => :'Integer', :'reserve_price' => :'Float', :'send_dimensions_and_weight' => :'String', :'start_time' => :'String', :'status' => :'String', :'target_dispatch_time_max' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 675 def ==(o) return true if self.equal?(o) self.class == o.class && active == o.active && category_id == o.category_id && category_specifics == o.category_specifics && condition_description == o.condition_description && condition_id == o.condition_id && consecutive_failures == o.consecutive_failures && custom_category1 == o.custom_category1 && custom_category2 == o.custom_category2 && dispatch_time_max == o.dispatch_time_max && domestic_1_additional_cost == o.domestic_1_additional_cost && domestic_1_first_cost == o.domestic_1_first_cost && domestic_2_additional_cost == o.domestic_2_additional_cost && domestic_2_first_cost == o.domestic_2_first_cost && domestic_3_additional_cost == o.domestic_3_additional_cost && domestic_3_first_cost == o.domestic_3_first_cost && domestic_4_additional_cost == o.domestic_4_additional_cost && domestic_4_first_cost == o.domestic_4_first_cost && ebay_auction_id == o.ebay_auction_id && ebay_specific_inventory == o.ebay_specific_inventory && ebay_template_name == o.ebay_template_name && ebay_template_oid == o.ebay_template_oid && end_time == o.end_time && free_shipping == o.free_shipping && free_shipping_method == o.free_shipping_method && international_1_additional_cost == o.international_1_additional_cost && international_1_first_cost == o.international_1_first_cost && international_2_additional_cost == o.international_2_additional_cost && international_2_first_cost == o.international_2_first_cost && international_3_additional_cost == o.international_3_additional_cost && international_3_first_cost == o.international_3_first_cost && international_4_additional_cost == o.international_4_additional_cost && international_4_first_cost == o.international_4_first_cost && last_status_dts == o.last_status_dts && listed_dispatch_time_max == o.listed_dispatch_time_max && listed_ebay_template_oid == o.listed_ebay_template_oid && listing_dts == o.listing_dts && listing_duration == o.listing_duration && listing_price == o.listing_price && listing_price_override == o.listing_price_override && listing_type == o.listing_type && marketplace_analysis == o.marketplace_analysis && marketplace_analysis_perform == o.marketplace_analysis_perform && marketplace_final_value_fee_percentage == o.marketplace_final_value_fee_percentage && marketplace_last_check_dts == o.marketplace_last_check_dts && marketplace_lowest == o.marketplace_lowest && marketplace_map_violation == o.marketplace_map_violation && marketplace_multiplier == o.marketplace_multiplier && marketplace_other_price == o.marketplace_other_price && marketplace_other_seller == o.marketplace_other_seller && marketplace_other_shipping == o.marketplace_other_shipping && marketplace_other_total == o.marketplace_other_total && marketplace_our_additional_profit_potential == o.marketplace_our_additional_profit_potential && marketplace_our_price == o.marketplace_our_price && marketplace_our_profit == o.marketplace_our_profit && marketplace_our_shipping == o.marketplace_our_shipping && marketplace_our_total == o.marketplace_our_total && marketplace_overhead == o.marketplace_overhead && marketplace_profitable == o.marketplace_profitable && next_attempt_dts == o.next_attempt_dts && next_listing_duration == o.next_listing_duration && no_promotional_shipping == o.no_promotional_shipping && packaging_handling_costs == o.packaging_handling_costs && previous_ebay_auction_id == o.previous_ebay_auction_id && quantity == o.quantity && reserve_price == o.reserve_price && send_dimensions_and_weight == o.send_dimensions_and_weight && start_time == o.start_time && status == o.status && target_dispatch_time_max == o.target_dispatch_time_max end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 785 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = UltracartClient.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
851 852 853 854 855 856 857 858 859 860 861 862 863 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 851 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 764 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
751 752 753 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 751 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
757 758 759 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 757 def hash [active, category_id, category_specifics, condition_description, condition_id, consecutive_failures, custom_category1, custom_category2, dispatch_time_max, domestic_1_additional_cost, domestic_1_first_cost, domestic_2_additional_cost, domestic_2_first_cost, domestic_3_additional_cost, domestic_3_first_cost, domestic_4_additional_cost, domestic_4_first_cost, ebay_auction_id, ebay_specific_inventory, ebay_template_name, ebay_template_oid, end_time, free_shipping, free_shipping_method, international_1_additional_cost, international_1_first_cost, international_2_additional_cost, international_2_first_cost, international_3_additional_cost, international_3_first_cost, international_4_additional_cost, international_4_first_cost, last_status_dts, listed_dispatch_time_max, listed_ebay_template_oid, listing_dts, listing_duration, listing_price, listing_price_override, listing_type, marketplace_analysis, marketplace_analysis_perform, marketplace_final_value_fee_percentage, marketplace_last_check_dts, marketplace_lowest, marketplace_map_violation, marketplace_multiplier, marketplace_other_price, marketplace_other_seller, marketplace_other_shipping, marketplace_other_total, marketplace_our_additional_profit_potential, marketplace_our_price, marketplace_our_profit, marketplace_our_shipping, marketplace_our_total, marketplace_overhead, marketplace_profitable, next_attempt_dts, next_listing_duration, no_promotional_shipping, packaging_handling_costs, previous_ebay_auction_id, quantity, reserve_price, send_dimensions_and_weight, start_time, status, target_dispatch_time_max].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
662 663 664 665 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 662 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
831 832 833 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 831 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
837 838 839 840 841 842 843 844 845 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 837 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
825 826 827 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 825 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
669 670 671 |
# File 'lib/ultracart_api/models/item_ebay.rb', line 669 def valid? true end |