Class: UltracartClient::DistributionCenter

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DistributionCenter

Initializes the object

Parameters:

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

    Model attributes in the form of hash



200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
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
297
298
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
# File 'lib/ultracart_api/models/distribution_center.rb', line 200

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?(:'address1')
    self.address1 = attributes[:'address1']
  end

  if attributes.has_key?(:'address2')
    self.address2 = attributes[:'address2']
  end

  if attributes.has_key?(:'city')
    self.city = attributes[:'city']
  end

  if attributes.has_key?(:'code')
    self.code = attributes[:'code']
  end

  if attributes.has_key?(:'country_code')
    self.country_code = attributes[:'country_code']
  end

  if attributes.has_key?(:'default_center')
    self.default_center = attributes[:'default_center']
  end

  if attributes.has_key?(:'default_handles_all_items')
    self.default_handles_all_items = attributes[:'default_handles_all_items']
  end

  if attributes.has_key?(:'distribution_center_oid')
    self.distribution_center_oid = attributes[:'distribution_center_oid']
  end

  if attributes.has_key?(:'duns')
    self.duns = attributes[:'duns']
  end

  if attributes.has_key?(:'estimate_from_distribution_center_oid')
    self.estimate_from_distribution_center_oid = attributes[:'estimate_from_distribution_center_oid']
  end

  if attributes.has_key?(:'ftp_password')
    self.ftp_password = attributes[:'ftp_password']
  end

  if attributes.has_key?(:'hold_before_shipment_minutes')
    self.hold_before_shipment_minutes = attributes[:'hold_before_shipment_minutes']
  end

  if attributes.has_key?(:'hold_before_transmission')
    self.hold_before_transmission = attributes[:'hold_before_transmission']
  end

  if attributes.has_key?(:'holdAutoOrderBeforeShipmentMinutes')
    self.hold_auto_order_before_shipment_minutes = attributes[:'holdAutoOrderBeforeShipmentMinutes']
  end

  if attributes.has_key?(:'latitude')
    self.latitude = attributes[:'latitude']
  end

  if attributes.has_key?(:'longitude')
    self.longitude = attributes[:'longitude']
  end

  if attributes.has_key?(:'name')
    self.name = attributes[:'name']
  end

  if attributes.has_key?(:'no_customer_direct_shipments')
    self.no_customer_direct_shipments = attributes[:'no_customer_direct_shipments']
  end

  if attributes.has_key?(:'no_split_shipment')
    self.no_split_shipment = attributes[:'no_split_shipment']
  end

  if attributes.has_key?(:'postal_code')
    self.postal_code = attributes[:'postal_code']
  end

  if attributes.has_key?(:'process_days')
    self.process_days = attributes[:'process_days']
  end

  if attributes.has_key?(:'process_inventory_start_time')
    self.process_inventory_start_time = attributes[:'process_inventory_start_time']
  end

  if attributes.has_key?(:'process_inventory_stop_time')
    self.process_inventory_stop_time = attributes[:'process_inventory_stop_time']
  end

  if attributes.has_key?(:'require_asn')
    self.require_asn = attributes[:'require_asn']
  end

  if attributes.has_key?(:'send_kit_instead_of_components')
    self.send_kit_instead_of_components = attributes[:'send_kit_instead_of_components']
  end

  if attributes.has_key?(:'shipment_cutoff_time_friday')
    self.shipment_cutoff_time_friday = attributes[:'shipment_cutoff_time_friday']
  end

  if attributes.has_key?(:'shipment_cutoff_time_monday')
    self.shipment_cutoff_time_monday = attributes[:'shipment_cutoff_time_monday']
  end

  if attributes.has_key?(:'shipment_cutoff_time_saturday')
    self.shipment_cutoff_time_saturday = attributes[:'shipment_cutoff_time_saturday']
  end

  if attributes.has_key?(:'shipment_cutoff_time_sunday')
    self.shipment_cutoff_time_sunday = attributes[:'shipment_cutoff_time_sunday']
  end

  if attributes.has_key?(:'shipment_cutoff_time_thursday')
    self.shipment_cutoff_time_thursday = attributes[:'shipment_cutoff_time_thursday']
  end

  if attributes.has_key?(:'shipment_cutoff_time_tuesday')
    self.shipment_cutoff_time_tuesday = attributes[:'shipment_cutoff_time_tuesday']
  end

  if attributes.has_key?(:'shipment_cutoff_time_wednesday')
    self.shipment_cutoff_time_wednesday = attributes[:'shipment_cutoff_time_wednesday']
  end

  if attributes.has_key?(:'state')
    self.state = attributes[:'state']
  end

  if attributes.has_key?(:'transport')
    self.transport = attributes[:'transport']
  end
end

Instance Attribute Details

#address1Object

Address line 1 of the distribution center



18
19
20
# File 'lib/ultracart_api/models/distribution_center.rb', line 18

def address1
  @address1
end

#address2Object

Address line 2 of the distribution center



21
22
23
# File 'lib/ultracart_api/models/distribution_center.rb', line 21

def address2
  @address2
end

#cityObject

City of the distribution center



24
25
26
# File 'lib/ultracart_api/models/distribution_center.rb', line 24

def city
  @city
end

#codeObject

Unique code for this distribution center



27
28
29
# File 'lib/ultracart_api/models/distribution_center.rb', line 27

def code
  @code
end

#country_codeObject

Country code of the distribution center



30
31
32
# File 'lib/ultracart_api/models/distribution_center.rb', line 30

def country_code
  @country_code
end

#default_centerObject

True if this is the default distribution center on the account



33
34
35
# File 'lib/ultracart_api/models/distribution_center.rb', line 33

def default_center
  @default_center
end

#default_handles_all_itemsObject

True if this distribution center handles all new items by default



36
37
38
# File 'lib/ultracart_api/models/distribution_center.rb', line 36

def default_handles_all_items
  @default_handles_all_items
end

#distribution_center_oidObject

Distribution center object identifier



39
40
41
# File 'lib/ultracart_api/models/distribution_center.rb', line 39

def distribution_center_oid
  @distribution_center_oid
end

#dunsObject

DUNS number assigned to this distribution center (EDI)



42
43
44
# File 'lib/ultracart_api/models/distribution_center.rb', line 42

def duns
  @duns
end

#estimate_from_distribution_center_oidObject

Estimate shipments for this distribution center as if they came from the other distribution center



45
46
47
# File 'lib/ultracart_api/models/distribution_center.rb', line 45

def estimate_from_distribution_center_oid
  @estimate_from_distribution_center_oid
end

#ftp_passwordObject

Password associated with the virtual FTP



48
49
50
# File 'lib/ultracart_api/models/distribution_center.rb', line 48

def ftp_password
  @ftp_password
end

#hold_auto_order_before_shipment_minutesObject

Returns the value of attribute hold_auto_order_before_shipment_minutes.



56
57
58
# File 'lib/ultracart_api/models/distribution_center.rb', line 56

def hold_auto_order_before_shipment_minutes
  @hold_auto_order_before_shipment_minutes
end

#hold_before_shipment_minutesObject

The number of minutes to hold a shipment



51
52
53
# File 'lib/ultracart_api/models/distribution_center.rb', line 51

def hold_before_shipment_minutes
  @hold_before_shipment_minutes
end

#hold_before_transmissionObject

True if the shipment should be held before transmission and require a manual release



54
55
56
# File 'lib/ultracart_api/models/distribution_center.rb', line 54

def hold_before_transmission
  @hold_before_transmission
end

#latitudeObject

Latitude where the distribution center is located



59
60
61
# File 'lib/ultracart_api/models/distribution_center.rb', line 59

def latitude
  @latitude
end

#longitudeObject

Longitude where the distribution center is located



62
63
64
# File 'lib/ultracart_api/models/distribution_center.rb', line 62

def longitude
  @longitude
end

#nameObject

Name of this distribution center



65
66
67
# File 'lib/ultracart_api/models/distribution_center.rb', line 65

def name
  @name
end

#no_customer_direct_shipmentsObject

True if this distribution center does not handle customer direct shipments



68
69
70
# File 'lib/ultracart_api/models/distribution_center.rb', line 68

def no_customer_direct_shipments
  @no_customer_direct_shipments
end

#no_split_shipmentObject

True if this distribution center is not allowed to participate in a split shipment.



71
72
73
# File 'lib/ultracart_api/models/distribution_center.rb', line 71

def no_split_shipment
  @no_split_shipment
end

#postal_codeObject

Postal code of the distribution center



74
75
76
# File 'lib/ultracart_api/models/distribution_center.rb', line 74

def postal_code
  @postal_code
end

#process_daysObject

The number of processing days required before an order ships



77
78
79
# File 'lib/ultracart_api/models/distribution_center.rb', line 77

def process_days
  @process_days
end

#process_inventory_start_timeObject

The time (EST) after which inventory updates will be processed



80
81
82
# File 'lib/ultracart_api/models/distribution_center.rb', line 80

def process_inventory_start_time
  @process_inventory_start_time
end

#process_inventory_stop_timeObject

The time (EST) before which inventory updates will be processed



83
84
85
# File 'lib/ultracart_api/models/distribution_center.rb', line 83

def process_inventory_stop_time
  @process_inventory_stop_time
end

#require_asnObject

True if ASNs are required for this distribution center (EDI)



86
87
88
# File 'lib/ultracart_api/models/distribution_center.rb', line 86

def require_asn
  @require_asn
end

#send_kit_instead_of_componentsObject

True if we should send the kit instead of the components



89
90
91
# File 'lib/ultracart_api/models/distribution_center.rb', line 89

def send_kit_instead_of_components
  @send_kit_instead_of_components
end

#shipment_cutoff_time_fridayObject

The time (EST) after which shipments will not be processed on Friday



92
93
94
# File 'lib/ultracart_api/models/distribution_center.rb', line 92

def shipment_cutoff_time_friday
  @shipment_cutoff_time_friday
end

#shipment_cutoff_time_mondayObject

The time (EST) after which shipments will not be processed on Monday



95
96
97
# File 'lib/ultracart_api/models/distribution_center.rb', line 95

def shipment_cutoff_time_monday
  @shipment_cutoff_time_monday
end

#shipment_cutoff_time_saturdayObject

The time (EST) after which shipments will not be processed on Saturday



98
99
100
# File 'lib/ultracart_api/models/distribution_center.rb', line 98

def shipment_cutoff_time_saturday
  @shipment_cutoff_time_saturday
end

#shipment_cutoff_time_sundayObject

The time (EST) after which shipments will not be processed on Sunday



101
102
103
# File 'lib/ultracart_api/models/distribution_center.rb', line 101

def shipment_cutoff_time_sunday
  @shipment_cutoff_time_sunday
end

#shipment_cutoff_time_thursdayObject

The time (EST) after which shipments will not be processed on Thursday



104
105
106
# File 'lib/ultracart_api/models/distribution_center.rb', line 104

def shipment_cutoff_time_thursday
  @shipment_cutoff_time_thursday
end

#shipment_cutoff_time_tuesdayObject

The time (EST) after which shipments will not be processed on Tuesday



107
108
109
# File 'lib/ultracart_api/models/distribution_center.rb', line 107

def shipment_cutoff_time_tuesday
  @shipment_cutoff_time_tuesday
end

#shipment_cutoff_time_wednesdayObject

The time (EST) after which shipments will not be processed on Wednesday



110
111
112
# File 'lib/ultracart_api/models/distribution_center.rb', line 110

def shipment_cutoff_time_wednesday
  @shipment_cutoff_time_wednesday
end

#stateObject

State of the distribution center



113
114
115
# File 'lib/ultracart_api/models/distribution_center.rb', line 113

def state
  @state
end

#transportObject

Transport mechanism for this distribution center



116
117
118
# File 'lib/ultracart_api/models/distribution_center.rb', line 116

def transport
  @transport
end

Class Method Details

.attribute_mapObject

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



119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/ultracart_api/models/distribution_center.rb', line 119

def self.attribute_map
  {
    :'address1' => :'address1',
    :'address2' => :'address2',
    :'city' => :'city',
    :'code' => :'code',
    :'country_code' => :'country_code',
    :'default_center' => :'default_center',
    :'default_handles_all_items' => :'default_handles_all_items',
    :'distribution_center_oid' => :'distribution_center_oid',
    :'duns' => :'duns',
    :'estimate_from_distribution_center_oid' => :'estimate_from_distribution_center_oid',
    :'ftp_password' => :'ftp_password',
    :'hold_before_shipment_minutes' => :'hold_before_shipment_minutes',
    :'hold_before_transmission' => :'hold_before_transmission',
    :'hold_auto_order_before_shipment_minutes' => :'holdAutoOrderBeforeShipmentMinutes',
    :'latitude' => :'latitude',
    :'longitude' => :'longitude',
    :'name' => :'name',
    :'no_customer_direct_shipments' => :'no_customer_direct_shipments',
    :'no_split_shipment' => :'no_split_shipment',
    :'postal_code' => :'postal_code',
    :'process_days' => :'process_days',
    :'process_inventory_start_time' => :'process_inventory_start_time',
    :'process_inventory_stop_time' => :'process_inventory_stop_time',
    :'require_asn' => :'require_asn',
    :'send_kit_instead_of_components' => :'send_kit_instead_of_components',
    :'shipment_cutoff_time_friday' => :'shipment_cutoff_time_friday',
    :'shipment_cutoff_time_monday' => :'shipment_cutoff_time_monday',
    :'shipment_cutoff_time_saturday' => :'shipment_cutoff_time_saturday',
    :'shipment_cutoff_time_sunday' => :'shipment_cutoff_time_sunday',
    :'shipment_cutoff_time_thursday' => :'shipment_cutoff_time_thursday',
    :'shipment_cutoff_time_tuesday' => :'shipment_cutoff_time_tuesday',
    :'shipment_cutoff_time_wednesday' => :'shipment_cutoff_time_wednesday',
    :'state' => :'state',
    :'transport' => :'transport'
  }
end

.swagger_typesObject

Attribute type mapping.



159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/ultracart_api/models/distribution_center.rb', line 159

def self.swagger_types
  {
    :'address1' => :'String',
    :'address2' => :'String',
    :'city' => :'String',
    :'code' => :'String',
    :'country_code' => :'String',
    :'default_center' => :'BOOLEAN',
    :'default_handles_all_items' => :'BOOLEAN',
    :'distribution_center_oid' => :'Integer',
    :'duns' => :'String',
    :'estimate_from_distribution_center_oid' => :'Integer',
    :'ftp_password' => :'String',
    :'hold_before_shipment_minutes' => :'Integer',
    :'hold_before_transmission' => :'BOOLEAN',
    :'hold_auto_order_before_shipment_minutes' => :'Integer',
    :'latitude' => :'Float',
    :'longitude' => :'Float',
    :'name' => :'String',
    :'no_customer_direct_shipments' => :'BOOLEAN',
    :'no_split_shipment' => :'BOOLEAN',
    :'postal_code' => :'String',
    :'process_days' => :'Integer',
    :'process_inventory_start_time' => :'String',
    :'process_inventory_stop_time' => :'String',
    :'require_asn' => :'BOOLEAN',
    :'send_kit_instead_of_components' => :'BOOLEAN',
    :'shipment_cutoff_time_friday' => :'String',
    :'shipment_cutoff_time_monday' => :'String',
    :'shipment_cutoff_time_saturday' => :'String',
    :'shipment_cutoff_time_sunday' => :'String',
    :'shipment_cutoff_time_thursday' => :'String',
    :'shipment_cutoff_time_tuesday' => :'String',
    :'shipment_cutoff_time_wednesday' => :'String',
    :'state' => :'String',
    :'transport' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
# File 'lib/ultracart_api/models/distribution_center.rb', line 358

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      address1 == o.address1 &&
      address2 == o.address2 &&
      city == o.city &&
      code == o.code &&
      country_code == o.country_code &&
      default_center == o.default_center &&
      default_handles_all_items == o.default_handles_all_items &&
      distribution_center_oid == o.distribution_center_oid &&
      duns == o.duns &&
      estimate_from_distribution_center_oid == o.estimate_from_distribution_center_oid &&
      ftp_password == o.ftp_password &&
      hold_before_shipment_minutes == o.hold_before_shipment_minutes &&
      hold_before_transmission == o.hold_before_transmission &&
      hold_auto_order_before_shipment_minutes == o.hold_auto_order_before_shipment_minutes &&
      latitude == o.latitude &&
      longitude == o.longitude &&
      name == o.name &&
      no_customer_direct_shipments == o.no_customer_direct_shipments &&
      no_split_shipment == o.no_split_shipment &&
      postal_code == o.postal_code &&
      process_days == o.process_days &&
      process_inventory_start_time == o.process_inventory_start_time &&
      process_inventory_stop_time == o.process_inventory_stop_time &&
      require_asn == o.require_asn &&
      send_kit_instead_of_components == o.send_kit_instead_of_components &&
      shipment_cutoff_time_friday == o.shipment_cutoff_time_friday &&
      shipment_cutoff_time_monday == o.shipment_cutoff_time_monday &&
      shipment_cutoff_time_saturday == o.shipment_cutoff_time_saturday &&
      shipment_cutoff_time_sunday == o.shipment_cutoff_time_sunday &&
      shipment_cutoff_time_thursday == o.shipment_cutoff_time_thursday &&
      shipment_cutoff_time_tuesday == o.shipment_cutoff_time_tuesday &&
      shipment_cutoff_time_wednesday == o.shipment_cutoff_time_wednesday &&
      state == o.state &&
      transport == o.transport
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



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
# File 'lib/ultracart_api/models/distribution_center.rb', line 433

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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



499
500
501
502
503
504
505
506
507
508
509
510
511
# File 'lib/ultracart_api/models/distribution_center.rb', line 499

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



412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
# File 'lib/ultracart_api/models/distribution_center.rb', line 412

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

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


399
400
401
# File 'lib/ultracart_api/models/distribution_center.rb', line 399

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



405
406
407
# File 'lib/ultracart_api/models/distribution_center.rb', line 405

def hash
  [address1, address2, city, code, country_code, default_center, default_handles_all_items, distribution_center_oid, duns, estimate_from_distribution_center_oid, ftp_password, hold_before_shipment_minutes, hold_before_transmission, hold_auto_order_before_shipment_minutes, latitude, longitude, name, no_customer_direct_shipments, no_split_shipment, postal_code, process_days, process_inventory_start_time, process_inventory_stop_time, require_asn, send_kit_instead_of_components, shipment_cutoff_time_friday, shipment_cutoff_time_monday, shipment_cutoff_time_saturday, shipment_cutoff_time_sunday, shipment_cutoff_time_thursday, shipment_cutoff_time_tuesday, shipment_cutoff_time_wednesday, state, transport].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



345
346
347
348
# File 'lib/ultracart_api/models/distribution_center.rb', line 345

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



479
480
481
# File 'lib/ultracart_api/models/distribution_center.rb', line 479

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



485
486
487
488
489
490
491
492
493
# File 'lib/ultracart_api/models/distribution_center.rb', line 485

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



473
474
475
# File 'lib/ultracart_api/models/distribution_center.rb', line 473

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



352
353
354
# File 'lib/ultracart_api/models/distribution_center.rb', line 352

def valid?
  true
end