Class: UltracartClient::ItemEbay

Inherits:
Object
  • Object
show all
Defined in:
lib/ultracart_api/models/item_ebay.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ItemEbay

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



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
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
# File 'lib/ultracart_api/models/item_ebay.rb', line 387

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ItemEbay` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ItemEbay`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'active')
    self.active = attributes[:'active']
  end

  if attributes.key?(:'category_id')
    self.category_id = attributes[:'category_id']
  end

  if attributes.key?(:'category_specifics')
    if (value = attributes[:'category_specifics']).is_a?(Array)
      self.category_specifics = value
    end
  end

  if attributes.key?(:'condition_description')
    self.condition_description = attributes[:'condition_description']
  end

  if attributes.key?(:'condition_id')
    self.condition_id = attributes[:'condition_id']
  end

  if attributes.key?(:'consecutive_failures')
    self.consecutive_failures = attributes[:'consecutive_failures']
  end

  if attributes.key?(:'custom_category1')
    self.custom_category1 = attributes[:'custom_category1']
  end

  if attributes.key?(:'custom_category2')
    self.custom_category2 = attributes[:'custom_category2']
  end

  if attributes.key?(:'dispatch_time_max')
    self.dispatch_time_max = attributes[:'dispatch_time_max']
  end

  if attributes.key?(:'domestic_1_additional_cost')
    self.domestic_1_additional_cost = attributes[:'domestic_1_additional_cost']
  end

  if attributes.key?(:'domestic_1_first_cost')
    self.domestic_1_first_cost = attributes[:'domestic_1_first_cost']
  end

  if attributes.key?(:'domestic_2_additional_cost')
    self.domestic_2_additional_cost = attributes[:'domestic_2_additional_cost']
  end

  if attributes.key?(:'domestic_2_first_cost')
    self.domestic_2_first_cost = attributes[:'domestic_2_first_cost']
  end

  if attributes.key?(:'domestic_3_additional_cost')
    self.domestic_3_additional_cost = attributes[:'domestic_3_additional_cost']
  end

  if attributes.key?(:'domestic_3_first_cost')
    self.domestic_3_first_cost = attributes[:'domestic_3_first_cost']
  end

  if attributes.key?(:'domestic_4_additional_cost')
    self.domestic_4_additional_cost = attributes[:'domestic_4_additional_cost']
  end

  if attributes.key?(:'domestic_4_first_cost')
    self.domestic_4_first_cost = attributes[:'domestic_4_first_cost']
  end

  if attributes.key?(:'ebay_auction_id')
    self.ebay_auction_id = attributes[:'ebay_auction_id']
  end

  if attributes.key?(:'ebay_specific_inventory')
    self.ebay_specific_inventory = attributes[:'ebay_specific_inventory']
  end

  if attributes.key?(:'ebay_template_name')
    self.ebay_template_name = attributes[:'ebay_template_name']
  end

  if attributes.key?(:'ebay_template_oid')
    self.ebay_template_oid = attributes[:'ebay_template_oid']
  end

  if attributes.key?(:'end_time')
    self.end_time = attributes[:'end_time']
  end

  if attributes.key?(:'free_shipping')
    self.free_shipping = attributes[:'free_shipping']
  end

  if attributes.key?(:'free_shipping_method')
    self.free_shipping_method = attributes[:'free_shipping_method']
  end

  if attributes.key?(:'international_1_additional_cost')
    self.international_1_additional_cost = attributes[:'international_1_additional_cost']
  end

  if attributes.key?(:'international_1_first_cost')
    self.international_1_first_cost = attributes[:'international_1_first_cost']
  end

  if attributes.key?(:'international_2_additional_cost')
    self.international_2_additional_cost = attributes[:'international_2_additional_cost']
  end

  if attributes.key?(:'international_2_first_cost')
    self.international_2_first_cost = attributes[:'international_2_first_cost']
  end

  if attributes.key?(:'international_3_additional_cost')
    self.international_3_additional_cost = attributes[:'international_3_additional_cost']
  end

  if attributes.key?(:'international_3_first_cost')
    self.international_3_first_cost = attributes[:'international_3_first_cost']
  end

  if attributes.key?(:'international_4_additional_cost')
    self.international_4_additional_cost = attributes[:'international_4_additional_cost']
  end

  if attributes.key?(:'international_4_first_cost')
    self.international_4_first_cost = attributes[:'international_4_first_cost']
  end

  if attributes.key?(:'last_status_dts')
    self.last_status_dts = attributes[:'last_status_dts']
  end

  if attributes.key?(:'listed_dispatch_time_max')
    self.listed_dispatch_time_max = attributes[:'listed_dispatch_time_max']
  end

  if attributes.key?(:'listed_ebay_template_oid')
    self.listed_ebay_template_oid = attributes[:'listed_ebay_template_oid']
  end

  if attributes.key?(:'listing_dts')
    self.listing_dts = attributes[:'listing_dts']
  end

  if attributes.key?(:'listing_duration')
    self.listing_duration = attributes[:'listing_duration']
  end

  if attributes.key?(:'listing_price')
    self.listing_price = attributes[:'listing_price']
  end

  if attributes.key?(:'listing_price_override')
    self.listing_price_override = attributes[:'listing_price_override']
  end

  if attributes.key?(:'listing_type')
    self.listing_type = attributes[:'listing_type']
  end

  if attributes.key?(:'marketplace_analysis')
    self.marketplace_analysis = attributes[:'marketplace_analysis']
  end

  if attributes.key?(:'marketplace_analysis_perform')
    self.marketplace_analysis_perform = attributes[:'marketplace_analysis_perform']
  end

  if attributes.key?(:'marketplace_final_value_fee_percentage')
    self.marketplace_final_value_fee_percentage = attributes[:'marketplace_final_value_fee_percentage']
  end

  if attributes.key?(:'marketplace_last_check_dts')
    self.marketplace_last_check_dts = attributes[:'marketplace_last_check_dts']
  end

  if attributes.key?(:'marketplace_lowest')
    self.marketplace_lowest = attributes[:'marketplace_lowest']
  end

  if attributes.key?(:'marketplace_map_violation')
    self.marketplace_map_violation = attributes[:'marketplace_map_violation']
  end

  if attributes.key?(:'marketplace_multiplier')
    self.marketplace_multiplier = attributes[:'marketplace_multiplier']
  end

  if attributes.key?(:'marketplace_other_price')
    self.marketplace_other_price = attributes[:'marketplace_other_price']
  end

  if attributes.key?(:'marketplace_other_seller')
    self.marketplace_other_seller = attributes[:'marketplace_other_seller']
  end

  if attributes.key?(:'marketplace_other_shipping')
    self.marketplace_other_shipping = attributes[:'marketplace_other_shipping']
  end

  if attributes.key?(:'marketplace_other_total')
    self.marketplace_other_total = attributes[:'marketplace_other_total']
  end

  if attributes.key?(:'marketplace_our_additional_profit_potential')
    self.marketplace_our_additional_profit_potential = attributes[:'marketplace_our_additional_profit_potential']
  end

  if attributes.key?(:'marketplace_our_price')
    self.marketplace_our_price = attributes[:'marketplace_our_price']
  end

  if attributes.key?(:'marketplace_our_profit')
    self.marketplace_our_profit = attributes[:'marketplace_our_profit']
  end

  if attributes.key?(:'marketplace_our_shipping')
    self.marketplace_our_shipping = attributes[:'marketplace_our_shipping']
  end

  if attributes.key?(:'marketplace_our_total')
    self.marketplace_our_total = attributes[:'marketplace_our_total']
  end

  if attributes.key?(:'marketplace_overhead')
    self.marketplace_overhead = attributes[:'marketplace_overhead']
  end

  if attributes.key?(:'marketplace_profitable')
    self.marketplace_profitable = attributes[:'marketplace_profitable']
  end

  if attributes.key?(:'next_attempt_dts')
    self.next_attempt_dts = attributes[:'next_attempt_dts']
  end

  if attributes.key?(:'next_listing_duration')
    self.next_listing_duration = attributes[:'next_listing_duration']
  end

  if attributes.key?(:'no_promotional_shipping')
    self.no_promotional_shipping = attributes[:'no_promotional_shipping']
  end

  if attributes.key?(:'packaging_handling_costs')
    self.packaging_handling_costs = attributes[:'packaging_handling_costs']
  end

  if attributes.key?(:'previous_ebay_auction_id')
    self.previous_ebay_auction_id = attributes[:'previous_ebay_auction_id']
  end

  if attributes.key?(:'quantity')
    self.quantity = attributes[:'quantity']
  end

  if attributes.key?(:'reserve_price')
    self.reserve_price = attributes[:'reserve_price']
  end

  if attributes.key?(:'send_dimensions_and_weight')
    self.send_dimensions_and_weight = attributes[:'send_dimensions_and_weight']
  end

  if attributes.key?(:'start_time')
    self.start_time = attributes[:'start_time']
  end

  if attributes.key?(:'status')
    self.status = attributes[:'status']
  end

  if attributes.key?(:'target_dispatch_time_max')
    self.target_dispatch_time_max = attributes[:'target_dispatch_time_max']
  end
end

Instance Attribute Details

#activeObject

True if the item is active for listing



19
20
21
# File 'lib/ultracart_api/models/item_ebay.rb', line 19

def active
  @active
end

#category_idObject

e-Bay category ID



22
23
24
# File 'lib/ultracart_api/models/item_ebay.rb', line 22

def category_id
  @category_id
end

#category_specificsObject

Answers to category specific questions



25
26
27
# File 'lib/ultracart_api/models/item_ebay.rb', line 25

def category_specifics
  @category_specifics
end

#condition_descriptionObject

Description of the condition (e-Bay constant)



28
29
30
# File 'lib/ultracart_api/models/item_ebay.rb', line 28

def condition_description
  @condition_description
end

#condition_idObject

Numerical ID of the condition (e-Bay constant)



31
32
33
# File 'lib/ultracart_api/models/item_ebay.rb', line 31

def condition_id
  @condition_id
end

#consecutive_failuresObject

Number of consecutive failures trying to list this item



34
35
36
# File 'lib/ultracart_api/models/item_ebay.rb', line 34

def consecutive_failures
  @consecutive_failures
end

#custom_category1Object

e-Bay Store category 1



37
38
39
# File 'lib/ultracart_api/models/item_ebay.rb', line 37

def custom_category1
  @custom_category1
end

#custom_category2Object

e-Bay Store category 2



40
41
42
# File 'lib/ultracart_api/models/item_ebay.rb', line 40

def custom_category2
  @custom_category2
end

#dispatch_time_maxObject

Maximum number of days it will take to ship the item



43
44
45
# File 'lib/ultracart_api/models/item_ebay.rb', line 43

def dispatch_time_max
  @dispatch_time_max
end

#domestic_1_additional_costObject

Domestic 1 method additional item cost



46
47
48
# File 'lib/ultracart_api/models/item_ebay.rb', line 46

def domestic_1_additional_cost
  @domestic_1_additional_cost
end

#domestic_1_first_costObject

Domestic 1 method first item cost



49
50
51
# File 'lib/ultracart_api/models/item_ebay.rb', line 49

def domestic_1_first_cost
  @domestic_1_first_cost
end

#domestic_2_additional_costObject

Domestic 2 method additional item cost



52
53
54
# File 'lib/ultracart_api/models/item_ebay.rb', line 52

def domestic_2_additional_cost
  @domestic_2_additional_cost
end

#domestic_2_first_costObject

Domestic 2 method first item cost



55
56
57
# File 'lib/ultracart_api/models/item_ebay.rb', line 55

def domestic_2_first_cost
  @domestic_2_first_cost
end

#domestic_3_additional_costObject

Domestic 3 method additional item cost



58
59
60
# File 'lib/ultracart_api/models/item_ebay.rb', line 58

def domestic_3_additional_cost
  @domestic_3_additional_cost
end

#domestic_3_first_costObject

Domestic 3 method first item cost



61
62
63
# File 'lib/ultracart_api/models/item_ebay.rb', line 61

def domestic_3_first_cost
  @domestic_3_first_cost
end

#domestic_4_additional_costObject

Domestic 4 method additional item cost



64
65
66
# File 'lib/ultracart_api/models/item_ebay.rb', line 64

def domestic_4_additional_cost
  @domestic_4_additional_cost
end

#domestic_4_first_costObject

Domestic 4 method first item cost



67
68
69
# File 'lib/ultracart_api/models/item_ebay.rb', line 67

def domestic_4_first_cost
  @domestic_4_first_cost
end

#ebay_auction_idObject

If listed, this is the e-Bay auction id



70
71
72
# File 'lib/ultracart_api/models/item_ebay.rb', line 70

def ebay_auction_id
  @ebay_auction_id
end

#ebay_specific_inventoryObject

e-Bay specific inventory



73
74
75
# File 'lib/ultracart_api/models/item_ebay.rb', line 73

def ebay_specific_inventory
  @ebay_specific_inventory
end

#ebay_template_nameObject

The template name to use hwen rendering the e-Bay listing



76
77
78
# File 'lib/ultracart_api/models/item_ebay.rb', line 76

def ebay_template_name
  @ebay_template_name
end

#ebay_template_oidObject

The template object identifier to use when rendering the e-Bay listing



79
80
81
# File 'lib/ultracart_api/models/item_ebay.rb', line 79

def ebay_template_oid
  @ebay_template_oid
end

#end_timeObject

Date/time of the auction end



82
83
84
# File 'lib/ultracart_api/models/item_ebay.rb', line 82

def end_time
  @end_time
end

#free_shippingObject

True if item receives free shipping



85
86
87
# File 'lib/ultracart_api/models/item_ebay.rb', line 85

def free_shipping
  @free_shipping
end

#free_shipping_methodObject

The method that is free for free shipping



88
89
90
# File 'lib/ultracart_api/models/item_ebay.rb', line 88

def free_shipping_method
  @free_shipping_method
end

#international_1_additional_costObject

International 1 method additional item cost



91
92
93
# File 'lib/ultracart_api/models/item_ebay.rb', line 91

def international_1_additional_cost
  @international_1_additional_cost
end

#international_1_first_costObject

International 1 method first item cost



94
95
96
# File 'lib/ultracart_api/models/item_ebay.rb', line 94

def international_1_first_cost
  @international_1_first_cost
end

#international_2_additional_costObject

International 2 method additional item cost



97
98
99
# File 'lib/ultracart_api/models/item_ebay.rb', line 97

def international_2_additional_cost
  @international_2_additional_cost
end

#international_2_first_costObject

International 2 method first item cost



100
101
102
# File 'lib/ultracart_api/models/item_ebay.rb', line 100

def international_2_first_cost
  @international_2_first_cost
end

#international_3_additional_costObject

International 3 method additional item cost



103
104
105
# File 'lib/ultracart_api/models/item_ebay.rb', line 103

def international_3_additional_cost
  @international_3_additional_cost
end

#international_3_first_costObject

International 3 method first item cost



106
107
108
# File 'lib/ultracart_api/models/item_ebay.rb', line 106

def international_3_first_cost
  @international_3_first_cost
end

#international_4_additional_costObject

International 4 method additional item cost



109
110
111
# File 'lib/ultracart_api/models/item_ebay.rb', line 109

def international_4_additional_cost
  @international_4_additional_cost
end

#international_4_first_costObject

International 4 method first item cost



112
113
114
# File 'lib/ultracart_api/models/item_ebay.rb', line 112

def international_4_first_cost
  @international_4_first_cost
end

#last_status_dtsObject

Date/time of the last status check



115
116
117
# File 'lib/ultracart_api/models/item_ebay.rb', line 115

def last_status_dts
  @last_status_dts
end

#listed_dispatch_time_maxObject

Current listing dispatch time maximum



118
119
120
# File 'lib/ultracart_api/models/item_ebay.rb', line 118

def listed_dispatch_time_max
  @listed_dispatch_time_max
end

#listed_ebay_template_oidObject

The template object identifier used for the listing



121
122
123
# File 'lib/ultracart_api/models/item_ebay.rb', line 121

def listed_ebay_template_oid
  @listed_ebay_template_oid
end

#listing_dtsObject

Date/time of the listing



124
125
126
# File 'lib/ultracart_api/models/item_ebay.rb', line 124

def listing_dts
  @listing_dts
end

#listing_durationObject

The duration of the listing



127
128
129
# File 'lib/ultracart_api/models/item_ebay.rb', line 127

def listing_duration
  @listing_duration
end

#listing_priceObject

Price to list the item at



130
131
132
# File 'lib/ultracart_api/models/item_ebay.rb', line 130

def listing_price
  @listing_price
end

#listing_price_overrideObject

The price to list the item at if different than the regular UltraCart item price



133
134
135
# File 'lib/ultracart_api/models/item_ebay.rb', line 133

def listing_price_override
  @listing_price_override
end

#listing_typeObject

The type of e-Bay listing



136
137
138
# File 'lib/ultracart_api/models/item_ebay.rb', line 136

def listing_type
  @listing_type
end

#marketplace_analysisObject

Returns the value of attribute marketplace_analysis.



138
139
140
# File 'lib/ultracart_api/models/item_ebay.rb', line 138

def marketplace_analysis
  @marketplace_analysis
end

#marketplace_analysis_performObject

True if marketplace analysis should be performed



141
142
143
# File 'lib/ultracart_api/models/item_ebay.rb', line 141

def marketplace_analysis_perform
  @marketplace_analysis_perform
end

#marketplace_final_value_fee_percentageObject

Marketplace FVF percentage



144
145
146
# File 'lib/ultracart_api/models/item_ebay.rb', line 144

def marketplace_final_value_fee_percentage
  @marketplace_final_value_fee_percentage
end

#marketplace_last_check_dtsObject

Date/time of the marketplace analysis last check



147
148
149
# File 'lib/ultracart_api/models/item_ebay.rb', line 147

def marketplace_last_check_dts
  @marketplace_last_check_dts
end

#marketplace_lowestObject

True if we are the lowest offer in the marketplace



150
151
152
# File 'lib/ultracart_api/models/item_ebay.rb', line 150

def marketplace_lowest
  @marketplace_lowest
end

#marketplace_map_violationObject

True if another seller is violating MAP



153
154
155
# File 'lib/ultracart_api/models/item_ebay.rb', line 153

def marketplace_map_violation
  @marketplace_map_violation
end

#marketplace_multiplierObject

Marketplace multiplier



156
157
158
# File 'lib/ultracart_api/models/item_ebay.rb', line 156

def marketplace_multiplier
  @marketplace_multiplier
end

#marketplace_other_priceObject

Marketplace other price



159
160
161
# File 'lib/ultracart_api/models/item_ebay.rb', line 159

def marketplace_other_price
  @marketplace_other_price
end

#marketplace_other_sellerObject

Marketplace other seller



162
163
164
# File 'lib/ultracart_api/models/item_ebay.rb', line 162

def marketplace_other_seller
  @marketplace_other_seller
end

#marketplace_other_shippingObject

Marketplace other shipping



165
166
167
# File 'lib/ultracart_api/models/item_ebay.rb', line 165

def marketplace_other_shipping
  @marketplace_other_shipping
end

#marketplace_other_totalObject

Marketplace other total



168
169
170
# File 'lib/ultracart_api/models/item_ebay.rb', line 168

def marketplace_other_total
  @marketplace_other_total
end

#marketplace_our_additional_profit_potentialObject

Marketplace our additional profit potential



171
172
173
# File 'lib/ultracart_api/models/item_ebay.rb', line 171

def marketplace_our_additional_profit_potential
  @marketplace_our_additional_profit_potential
end

#marketplace_our_priceObject

Marketplace our price



174
175
176
# File 'lib/ultracart_api/models/item_ebay.rb', line 174

def marketplace_our_price
  @marketplace_our_price
end

#marketplace_our_profitObject

Marketplace our profit



177
178
179
# File 'lib/ultracart_api/models/item_ebay.rb', line 177

def marketplace_our_profit
  @marketplace_our_profit
end

#marketplace_our_shippingObject

Marketplace our shipping



180
181
182
# File 'lib/ultracart_api/models/item_ebay.rb', line 180

def marketplace_our_shipping
  @marketplace_our_shipping
end

#marketplace_our_totalObject

Marketplace our total



183
184
185
# File 'lib/ultracart_api/models/item_ebay.rb', line 183

def marketplace_our_total
  @marketplace_our_total
end

#marketplace_overheadObject

Marketplace overhead



186
187
188
# File 'lib/ultracart_api/models/item_ebay.rb', line 186

def marketplace_overhead
  @marketplace_overhead
end

#marketplace_profitableObject

True if our listing is profitable to sell



189
190
191
# File 'lib/ultracart_api/models/item_ebay.rb', line 189

def marketplace_profitable
  @marketplace_profitable
end

#next_attempt_dtsObject

Date/time for the next attempt to list



192
193
194
# File 'lib/ultracart_api/models/item_ebay.rb', line 192

def next_attempt_dts
  @next_attempt_dts
end

#next_listing_durationObject

The next listing duration to use when the current listing ends.



195
196
197
# File 'lib/ultracart_api/models/item_ebay.rb', line 195

def next_listing_duration
  @next_listing_duration
end

#no_promotional_shippingObject

True if the item should not qualify for promotional shipping



198
199
200
# File 'lib/ultracart_api/models/item_ebay.rb', line 198

def no_promotional_shipping
  @no_promotional_shipping
end

#packaging_handling_costsObject

Packaging and handling costs



201
202
203
# File 'lib/ultracart_api/models/item_ebay.rb', line 201

def packaging_handling_costs
  @packaging_handling_costs
end

#previous_ebay_auction_idObject

Previous e-Bay auction id



204
205
206
# File 'lib/ultracart_api/models/item_ebay.rb', line 204

def previous_ebay_auction_id
  @previous_ebay_auction_id
end

#quantityObject

Quantity available of the item



207
208
209
# File 'lib/ultracart_api/models/item_ebay.rb', line 207

def quantity
  @quantity
end

#reserve_priceObject

Reserve price



210
211
212
# File 'lib/ultracart_api/models/item_ebay.rb', line 210

def reserve_price
  @reserve_price
end

#send_dimensions_and_weightObject

How to send the item dimensions and weights to e-Bay



213
214
215
# File 'lib/ultracart_api/models/item_ebay.rb', line 213

def send_dimensions_and_weight
  @send_dimensions_and_weight
end

#start_timeObject

Date/time of the auction start



216
217
218
# File 'lib/ultracart_api/models/item_ebay.rb', line 216

def start_time
  @start_time
end

#statusObject

Status of the item’s listing



219
220
221
# File 'lib/ultracart_api/models/item_ebay.rb', line 219

def status
  @status
end

#target_dispatch_time_maxObject

Typical number of days it will take to ship the item



222
223
224
# File 'lib/ultracart_api/models/item_ebay.rb', line 222

def target_dispatch_time_max
  @target_dispatch_time_max
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



300
301
302
# File 'lib/ultracart_api/models/item_ebay.rb', line 300

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



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
297
# File 'lib/ultracart_api/models/item_ebay.rb', line 225

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

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



783
784
785
# File 'lib/ultracart_api/models/item_ebay.rb', line 783

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



380
381
382
383
# File 'lib/ultracart_api/models/item_ebay.rb', line 380

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



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
372
373
374
375
376
377
# File 'lib/ultracart_api/models/item_ebay.rb', line 305

def self.openapi_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.

Parameters:

  • Object (Object)

    to be compared



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
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
# File 'lib/ultracart_api/models/item_ebay.rb', line 694

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

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
# File 'lib/ultracart_api/models/item_ebay.rb', line 814

def _deserialize(type, value)
  case type.to_sym
  when :Time
    Time.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
    # models (e.g. Pet) or oneOf
    klass = UltracartClient.const_get(type)
    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



885
886
887
888
889
890
891
892
893
894
895
896
897
# File 'lib/ultracart_api/models/item_ebay.rb', line 885

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
# File 'lib/ultracart_api/models/item_ebay.rb', line 790

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  self.class.openapi_types.each_pair do |key, type|
    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    elsif 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
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


770
771
772
# File 'lib/ultracart_api/models/item_ebay.rb', line 770

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



776
777
778
# File 'lib/ultracart_api/models/item_ebay.rb', line 776

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_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



681
682
683
684
# File 'lib/ultracart_api/models/item_ebay.rb', line 681

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



861
862
863
# File 'lib/ultracart_api/models/item_ebay.rb', line 861

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



867
868
869
870
871
872
873
874
875
876
877
878
879
# File 'lib/ultracart_api/models/item_ebay.rb', line 867

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



855
856
857
# File 'lib/ultracart_api/models/item_ebay.rb', line 855

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



688
689
690
# File 'lib/ultracart_api/models/item_ebay.rb', line 688

def valid?
  true
end