Class: UltracartClient::DistributionCenter
- Inherits:
-
Object
- Object
- UltracartClient::DistributionCenter
- Defined in:
- lib/ultracart_api/models/distribution_center.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Address line 1 of the distribution center.
-
#address2 ⇒ Object
Address line 2 of the distribution center.
-
#city ⇒ Object
City of the distribution center.
-
#code ⇒ Object
Unique code for this distribution center.
-
#country_code ⇒ Object
Country code of the distribution center.
-
#default_center ⇒ Object
True if this is the default distribution center on the account.
-
#default_handles_all_items ⇒ Object
True if this distribution center handles all new items by default.
-
#distribution_center_oid ⇒ Object
Distribution center object identifier.
-
#duns ⇒ Object
DUNS number assigned to this distribution center (EDI).
-
#estimate_from_distribution_center_oid ⇒ Object
Estimate shipments for this distribution center as if they came from the other distribution center.
-
#ftp_password ⇒ Object
Password associated with the virtual FTP.
-
#hold_auto_order_before_shipment_minutes ⇒ Object
Returns the value of attribute hold_auto_order_before_shipment_minutes.
-
#hold_before_shipment_minutes ⇒ Object
The number of minutes to hold a shipment.
-
#hold_before_transmission ⇒ Object
True if the shipment should be held before transmission and require a manual release.
-
#latitude ⇒ Object
Latitude where the distribution center is located.
-
#longitude ⇒ Object
Longitude where the distribution center is located.
-
#name ⇒ Object
Name of this distribution center.
-
#no_customer_direct_shipments ⇒ Object
True if this distribution center does not handle customer direct shipments.
-
#no_split_shipment ⇒ Object
True if this distribution center is not allowed to participate in a split shipment.
-
#pickup_cutoff_time_friday ⇒ Object
The time (EST) after which pickups will not be available on Friday.
-
#pickup_cutoff_time_monday ⇒ Object
The time (EST) after which pickups will not be available on Monday.
-
#pickup_cutoff_time_saturday ⇒ Object
The time (EST) after which pickups will not be available on Saturday.
-
#pickup_cutoff_time_sunday ⇒ Object
The time (EST) after which pickups will not be available on Sunday.
-
#pickup_cutoff_time_thursday ⇒ Object
The time (EST) after which pickups will not be available on Thursday.
-
#pickup_cutoff_time_tuesday ⇒ Object
The time (EST) after which pickups will not be available on Tuesday.
-
#pickup_cutoff_time_wednesday ⇒ Object
The time (EST) after which pickups will not be available on Wednesday.
-
#pickup_start_time_friday ⇒ Object
The time (EST) after which pickups are available on Friday.
-
#pickup_start_time_monday ⇒ Object
The time (EST) after which pickups are available on Monday.
-
#pickup_start_time_saturday ⇒ Object
The time (EST) after which pickups are available on Saturday.
-
#pickup_start_time_sunday ⇒ Object
The time (EST) after which pickups are available on Sunday.
-
#pickup_start_time_thursday ⇒ Object
The time (EST) after which pickups are available on Thursday.
-
#pickup_start_time_tuesday ⇒ Object
The time (EST) after which pickups are available on Tuesday.
-
#pickup_start_time_wednesday ⇒ Object
The time (EST) after which pickups are available on Wednesday.
-
#pickup_tz ⇒ Object
The IANA timezone for all pickup times.
-
#postal_code ⇒ Object
Postal code of the distribution center.
-
#process_days ⇒ Object
The number of processing days required before an order ships.
-
#process_inventory_start_time ⇒ Object
The time (EST) after which inventory updates will be processed.
-
#process_inventory_stop_time ⇒ Object
The time (EST) before which inventory updates will be processed.
-
#require_asn ⇒ Object
True if ASNs are required for this distribution center (EDI).
-
#send_kit_instead_of_components ⇒ Object
True if we should send the kit instead of the components.
-
#shipment_cutoff_time_friday ⇒ Object
The time (EST) after which shipments will not be processed on Friday.
-
#shipment_cutoff_time_monday ⇒ Object
The time (EST) after which shipments will not be processed on Monday.
-
#shipment_cutoff_time_saturday ⇒ Object
The time (EST) after which shipments will not be processed on Saturday.
-
#shipment_cutoff_time_sunday ⇒ Object
The time (EST) after which shipments will not be processed on Sunday.
-
#shipment_cutoff_time_thursday ⇒ Object
The time (EST) after which shipments will not be processed on Thursday.
-
#shipment_cutoff_time_tuesday ⇒ Object
The time (EST) after which shipments will not be processed on Tuesday.
-
#shipment_cutoff_time_wednesday ⇒ Object
The time (EST) after which shipments will not be processed on Wednesday.
-
#state ⇒ Object
State of the distribution center.
-
#transmit_blank_costs ⇒ Object
True if monetary amounts should be zeroed before transmission.
-
#transport ⇒ Object
Transport mechanism for this distribution center.
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 = {}) ⇒ DistributionCenter
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 = {}) ⇒ DistributionCenter
Initializes the object
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 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 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 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 280 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?(:'pickup_cutoff_time_friday') self.pickup_cutoff_time_friday = attributes[:'pickup_cutoff_time_friday'] end if attributes.has_key?(:'pickup_cutoff_time_monday') self.pickup_cutoff_time_monday = attributes[:'pickup_cutoff_time_monday'] end if attributes.has_key?(:'pickup_cutoff_time_saturday') self.pickup_cutoff_time_saturday = attributes[:'pickup_cutoff_time_saturday'] end if attributes.has_key?(:'pickup_cutoff_time_sunday') self.pickup_cutoff_time_sunday = attributes[:'pickup_cutoff_time_sunday'] end if attributes.has_key?(:'pickup_cutoff_time_thursday') self.pickup_cutoff_time_thursday = attributes[:'pickup_cutoff_time_thursday'] end if attributes.has_key?(:'pickup_cutoff_time_tuesday') self.pickup_cutoff_time_tuesday = attributes[:'pickup_cutoff_time_tuesday'] end if attributes.has_key?(:'pickup_cutoff_time_wednesday') self.pickup_cutoff_time_wednesday = attributes[:'pickup_cutoff_time_wednesday'] end if attributes.has_key?(:'pickup_start_time_friday') self.pickup_start_time_friday = attributes[:'pickup_start_time_friday'] end if attributes.has_key?(:'pickup_start_time_monday') self.pickup_start_time_monday = attributes[:'pickup_start_time_monday'] end if attributes.has_key?(:'pickup_start_time_saturday') self.pickup_start_time_saturday = attributes[:'pickup_start_time_saturday'] end if attributes.has_key?(:'pickup_start_time_sunday') self.pickup_start_time_sunday = attributes[:'pickup_start_time_sunday'] end if attributes.has_key?(:'pickup_start_time_thursday') self.pickup_start_time_thursday = attributes[:'pickup_start_time_thursday'] end if attributes.has_key?(:'pickup_start_time_tuesday') self.pickup_start_time_tuesday = attributes[:'pickup_start_time_tuesday'] end if attributes.has_key?(:'pickup_start_time_wednesday') self.pickup_start_time_wednesday = attributes[:'pickup_start_time_wednesday'] end if attributes.has_key?(:'pickup_tz') self.pickup_tz = attributes[:'pickup_tz'] 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?(:'transmit_blank_costs') self.transmit_blank_costs = attributes[:'transmit_blank_costs'] end if attributes.has_key?(:'transport') self.transport = attributes[:'transport'] end end |
Instance Attribute Details
#address1 ⇒ Object
Address line 1 of the distribution center
18 19 20 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 18 def address1 @address1 end |
#address2 ⇒ Object
Address line 2 of the distribution center
21 22 23 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 21 def address2 @address2 end |
#city ⇒ Object
City of the distribution center
24 25 26 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 24 def city @city end |
#code ⇒ Object
Unique code for this distribution center
27 28 29 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 27 def code @code end |
#country_code ⇒ Object
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_center ⇒ Object
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_items ⇒ Object
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_oid ⇒ Object
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 |
#duns ⇒ Object
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_oid ⇒ Object
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_password ⇒ Object
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_minutes ⇒ Object
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_minutes ⇒ Object
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_transmission ⇒ Object
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 |
#latitude ⇒ Object
Latitude where the distribution center is located
59 60 61 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 59 def latitude @latitude end |
#longitude ⇒ Object
Longitude where the distribution center is located
62 63 64 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 62 def longitude @longitude end |
#name ⇒ Object
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_shipments ⇒ Object
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_shipment ⇒ Object
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 |
#pickup_cutoff_time_friday ⇒ Object
The time (EST) after which pickups will not be available on Friday
74 75 76 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 74 def pickup_cutoff_time_friday @pickup_cutoff_time_friday end |
#pickup_cutoff_time_monday ⇒ Object
The time (EST) after which pickups will not be available on Monday
77 78 79 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 77 def pickup_cutoff_time_monday @pickup_cutoff_time_monday end |
#pickup_cutoff_time_saturday ⇒ Object
The time (EST) after which pickups will not be available on Saturday
80 81 82 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 80 def pickup_cutoff_time_saturday @pickup_cutoff_time_saturday end |
#pickup_cutoff_time_sunday ⇒ Object
The time (EST) after which pickups will not be available on Sunday
83 84 85 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 83 def pickup_cutoff_time_sunday @pickup_cutoff_time_sunday end |
#pickup_cutoff_time_thursday ⇒ Object
The time (EST) after which pickups will not be available on Thursday
86 87 88 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 86 def pickup_cutoff_time_thursday @pickup_cutoff_time_thursday end |
#pickup_cutoff_time_tuesday ⇒ Object
The time (EST) after which pickups will not be available on Tuesday
89 90 91 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 89 def pickup_cutoff_time_tuesday @pickup_cutoff_time_tuesday end |
#pickup_cutoff_time_wednesday ⇒ Object
The time (EST) after which pickups will not be available on Wednesday
92 93 94 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 92 def pickup_cutoff_time_wednesday @pickup_cutoff_time_wednesday end |
#pickup_start_time_friday ⇒ Object
The time (EST) after which pickups are available on Friday
95 96 97 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 95 def pickup_start_time_friday @pickup_start_time_friday end |
#pickup_start_time_monday ⇒ Object
The time (EST) after which pickups are available on Monday
98 99 100 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 98 def pickup_start_time_monday @pickup_start_time_monday end |
#pickup_start_time_saturday ⇒ Object
The time (EST) after which pickups are available on Saturday
101 102 103 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 101 def pickup_start_time_saturday @pickup_start_time_saturday end |
#pickup_start_time_sunday ⇒ Object
The time (EST) after which pickups are available on Sunday
104 105 106 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 104 def pickup_start_time_sunday @pickup_start_time_sunday end |
#pickup_start_time_thursday ⇒ Object
The time (EST) after which pickups are available on Thursday
107 108 109 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 107 def pickup_start_time_thursday @pickup_start_time_thursday end |
#pickup_start_time_tuesday ⇒ Object
The time (EST) after which pickups are available on Tuesday
110 111 112 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 110 def pickup_start_time_tuesday @pickup_start_time_tuesday end |
#pickup_start_time_wednesday ⇒ Object
The time (EST) after which pickups are available on Wednesday
113 114 115 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 113 def pickup_start_time_wednesday @pickup_start_time_wednesday end |
#pickup_tz ⇒ Object
The IANA timezone for all pickup times
116 117 118 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 116 def pickup_tz @pickup_tz end |
#postal_code ⇒ Object
Postal code of the distribution center
119 120 121 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 119 def postal_code @postal_code end |
#process_days ⇒ Object
The number of processing days required before an order ships
122 123 124 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 122 def process_days @process_days end |
#process_inventory_start_time ⇒ Object
The time (EST) after which inventory updates will be processed
125 126 127 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 125 def process_inventory_start_time @process_inventory_start_time end |
#process_inventory_stop_time ⇒ Object
The time (EST) before which inventory updates will be processed
128 129 130 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 128 def process_inventory_stop_time @process_inventory_stop_time end |
#require_asn ⇒ Object
True if ASNs are required for this distribution center (EDI)
131 132 133 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 131 def require_asn @require_asn end |
#send_kit_instead_of_components ⇒ Object
True if we should send the kit instead of the components
134 135 136 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 134 def send_kit_instead_of_components @send_kit_instead_of_components end |
#shipment_cutoff_time_friday ⇒ Object
The time (EST) after which shipments will not be processed on Friday
137 138 139 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 137 def shipment_cutoff_time_friday @shipment_cutoff_time_friday end |
#shipment_cutoff_time_monday ⇒ Object
The time (EST) after which shipments will not be processed on Monday
140 141 142 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 140 def shipment_cutoff_time_monday @shipment_cutoff_time_monday end |
#shipment_cutoff_time_saturday ⇒ Object
The time (EST) after which shipments will not be processed on Saturday
143 144 145 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 143 def shipment_cutoff_time_saturday @shipment_cutoff_time_saturday end |
#shipment_cutoff_time_sunday ⇒ Object
The time (EST) after which shipments will not be processed on Sunday
146 147 148 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 146 def shipment_cutoff_time_sunday @shipment_cutoff_time_sunday end |
#shipment_cutoff_time_thursday ⇒ Object
The time (EST) after which shipments will not be processed on Thursday
149 150 151 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 149 def shipment_cutoff_time_thursday @shipment_cutoff_time_thursday end |
#shipment_cutoff_time_tuesday ⇒ Object
The time (EST) after which shipments will not be processed on Tuesday
152 153 154 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 152 def shipment_cutoff_time_tuesday @shipment_cutoff_time_tuesday end |
#shipment_cutoff_time_wednesday ⇒ Object
The time (EST) after which shipments will not be processed on Wednesday
155 156 157 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 155 def shipment_cutoff_time_wednesday @shipment_cutoff_time_wednesday end |
#state ⇒ Object
State of the distribution center
158 159 160 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 158 def state @state end |
#transmit_blank_costs ⇒ Object
True if monetary amounts should be zeroed before transmission
161 162 163 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 161 def transmit_blank_costs @transmit_blank_costs end |
#transport ⇒ Object
Transport mechanism for this distribution center
164 165 166 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 164 def transport @transport end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 167 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', :'pickup_cutoff_time_friday' => :'pickup_cutoff_time_friday', :'pickup_cutoff_time_monday' => :'pickup_cutoff_time_monday', :'pickup_cutoff_time_saturday' => :'pickup_cutoff_time_saturday', :'pickup_cutoff_time_sunday' => :'pickup_cutoff_time_sunday', :'pickup_cutoff_time_thursday' => :'pickup_cutoff_time_thursday', :'pickup_cutoff_time_tuesday' => :'pickup_cutoff_time_tuesday', :'pickup_cutoff_time_wednesday' => :'pickup_cutoff_time_wednesday', :'pickup_start_time_friday' => :'pickup_start_time_friday', :'pickup_start_time_monday' => :'pickup_start_time_monday', :'pickup_start_time_saturday' => :'pickup_start_time_saturday', :'pickup_start_time_sunday' => :'pickup_start_time_sunday', :'pickup_start_time_thursday' => :'pickup_start_time_thursday', :'pickup_start_time_tuesday' => :'pickup_start_time_tuesday', :'pickup_start_time_wednesday' => :'pickup_start_time_wednesday', :'pickup_tz' => :'pickup_tz', :'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', :'transmit_blank_costs' => :'transmit_blank_costs', :'transport' => :'transport' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 223 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', :'pickup_cutoff_time_friday' => :'String', :'pickup_cutoff_time_monday' => :'String', :'pickup_cutoff_time_saturday' => :'String', :'pickup_cutoff_time_sunday' => :'String', :'pickup_cutoff_time_thursday' => :'String', :'pickup_cutoff_time_tuesday' => :'String', :'pickup_cutoff_time_wednesday' => :'String', :'pickup_start_time_friday' => :'String', :'pickup_start_time_monday' => :'String', :'pickup_start_time_saturday' => :'String', :'pickup_start_time_sunday' => :'String', :'pickup_start_time_thursday' => :'String', :'pickup_start_time_tuesday' => :'String', :'pickup_start_time_wednesday' => :'String', :'pickup_tz' => :'String', :'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', :'transmit_blank_costs' => :'BOOLEAN', :'transport' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 502 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 && pickup_cutoff_time_friday == o.pickup_cutoff_time_friday && pickup_cutoff_time_monday == o.pickup_cutoff_time_monday && pickup_cutoff_time_saturday == o.pickup_cutoff_time_saturday && pickup_cutoff_time_sunday == o.pickup_cutoff_time_sunday && pickup_cutoff_time_thursday == o.pickup_cutoff_time_thursday && pickup_cutoff_time_tuesday == o.pickup_cutoff_time_tuesday && pickup_cutoff_time_wednesday == o.pickup_cutoff_time_wednesday && pickup_start_time_friday == o.pickup_start_time_friday && pickup_start_time_monday == o.pickup_start_time_monday && pickup_start_time_saturday == o.pickup_start_time_saturday && pickup_start_time_sunday == o.pickup_start_time_sunday && pickup_start_time_thursday == o.pickup_start_time_thursday && pickup_start_time_tuesday == o.pickup_start_time_tuesday && pickup_start_time_wednesday == o.pickup_start_time_wednesday && pickup_tz == o.pickup_tz && 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 && transmit_blank_costs == o.transmit_blank_costs && transport == o.transport end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 593 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
659 660 661 662 663 664 665 666 667 668 669 670 671 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 659 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
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 572 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
559 560 561 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 559 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
565 566 567 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 565 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, pickup_cutoff_time_friday, pickup_cutoff_time_monday, pickup_cutoff_time_saturday, pickup_cutoff_time_sunday, pickup_cutoff_time_thursday, pickup_cutoff_time_tuesday, pickup_cutoff_time_wednesday, pickup_start_time_friday, pickup_start_time_monday, pickup_start_time_saturday, pickup_start_time_sunday, pickup_start_time_thursday, pickup_start_time_tuesday, pickup_start_time_wednesday, pickup_tz, 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, transmit_blank_costs, transport].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
489 490 491 492 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 489 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
639 640 641 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 639 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
645 646 647 648 649 650 651 652 653 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 645 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
633 634 635 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 633 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
496 497 498 |
# File 'lib/ultracart_api/models/distribution_center.rb', line 496 def valid? true end |