Class: FedexWebServices::Soap::Ship::Commodity

Inherits:
Object
  • Object
show all
Defined in:
lib/fedex_web_services/soap/ShipServiceDefinitions.rb

Overview

http://fedex.com/ws/ship/v12Commodity

name - SOAP::SOAPString
numberOfPieces - SOAP::SOAPNonNegativeInteger
description - SOAP::SOAPString
countryOfManufacture - SOAP::SOAPString
harmonizedCode - SOAP::SOAPString
weight - FedexWebServices::Soap::Ship::Weight
quantity - SOAP::SOAPNonNegativeInteger
quantityUnits - SOAP::SOAPString
additionalMeasures - FedexWebServices::Soap::Ship::Measure
unitPrice - FedexWebServices::Soap::Ship::Money
customsValue - FedexWebServices::Soap::Ship::Money
exciseConditions - FedexWebServices::Soap::Ship::EdtExciseCondition
exportLicenseNumber - SOAP::SOAPString
exportLicenseExpirationDate - SOAP::SOAPDate
cIMarksAndNumbers - SOAP::SOAPString
partNumber - SOAP::SOAPString
naftaDetail - FedexWebServices::Soap::Ship::NaftaCommodityDetail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, numberOfPieces = nil, description = nil, countryOfManufacture = nil, harmonizedCode = nil, weight = nil, quantity = nil, quantityUnits = nil, additionalMeasures = [], unitPrice = nil, customsValue = nil, exciseConditions = [], exportLicenseNumber = nil, exportLicenseExpirationDate = nil, cIMarksAndNumbers = nil, partNumber = nil, naftaDetail = nil) ⇒ Commodity

Returns a new instance of Commodity.



353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 353

def initialize(name = nil, numberOfPieces = nil, description = nil, countryOfManufacture = nil, harmonizedCode = nil, weight = nil, quantity = nil, quantityUnits = nil, additionalMeasures = [], unitPrice = nil, customsValue = nil, exciseConditions = [], exportLicenseNumber = nil, exportLicenseExpirationDate = nil, cIMarksAndNumbers = nil, partNumber = nil, naftaDetail = nil)
  @name = name
  @numberOfPieces = numberOfPieces
  @description = description
  @countryOfManufacture = countryOfManufacture
  @harmonizedCode = harmonizedCode
  @weight = weight
  @quantity = quantity
  @quantityUnits = quantityUnits
  @additionalMeasures = additionalMeasures
  @unitPrice = unitPrice
  @customsValue = customsValue
  @exciseConditions = exciseConditions
  @exportLicenseNumber = exportLicenseNumber
  @exportLicenseExpirationDate = exportLicenseExpirationDate
  @cIMarksAndNumbers = cIMarksAndNumbers
  @partNumber = partNumber
  @naftaDetail = naftaDetail
end

Instance Attribute Details

#additionalMeasuresObject

Returns the value of attribute additionalMeasures.



343
344
345
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 343

def additionalMeasures
  @additionalMeasures
end

#cIMarksAndNumbersObject

Returns the value of attribute cIMarksAndNumbers.



349
350
351
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 349

def cIMarksAndNumbers
  @cIMarksAndNumbers
end

#countryOfManufactureObject

Returns the value of attribute countryOfManufacture.



338
339
340
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 338

def countryOfManufacture
  @countryOfManufacture
end

#customsValueObject

Returns the value of attribute customsValue.



345
346
347
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 345

def customsValue
  @customsValue
end

#descriptionObject

Returns the value of attribute description.



337
338
339
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 337

def description
  @description
end

#exciseConditionsObject

Returns the value of attribute exciseConditions.



346
347
348
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 346

def exciseConditions
  @exciseConditions
end

#exportLicenseExpirationDateObject

Returns the value of attribute exportLicenseExpirationDate.



348
349
350
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 348

def exportLicenseExpirationDate
  @exportLicenseExpirationDate
end

#exportLicenseNumberObject

Returns the value of attribute exportLicenseNumber.



347
348
349
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 347

def exportLicenseNumber
  @exportLicenseNumber
end

#harmonizedCodeObject

Returns the value of attribute harmonizedCode.



339
340
341
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 339

def harmonizedCode
  @harmonizedCode
end

#naftaDetailObject

Returns the value of attribute naftaDetail.



351
352
353
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 351

def naftaDetail
  @naftaDetail
end

#nameObject

Returns the value of attribute name.



335
336
337
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 335

def name
  @name
end

#numberOfPiecesObject

Returns the value of attribute numberOfPieces.



336
337
338
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 336

def numberOfPieces
  @numberOfPieces
end

#partNumberObject

Returns the value of attribute partNumber.



350
351
352
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 350

def partNumber
  @partNumber
end

#quantityObject

Returns the value of attribute quantity.



341
342
343
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 341

def quantity
  @quantity
end

#quantityUnitsObject

Returns the value of attribute quantityUnits.



342
343
344
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 342

def quantityUnits
  @quantityUnits
end

#unitPriceObject

Returns the value of attribute unitPrice.



344
345
346
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 344

def unitPrice
  @unitPrice
end

#weightObject

Returns the value of attribute weight.



340
341
342
# File 'lib/fedex_web_services/soap/ShipServiceDefinitions.rb', line 340

def weight
  @weight
end