CommodityFreightClass Property
Indicates the freight class of the commodity.
Syntax
fedexfreightship.getCommodityFreightClass(index, [callback]) fedexfreightship.setCommodityFreightClass(index, commodityFreightClass, [callback])
Possible Values
0 (fc50), 1 (fc55), 2 (fc60), 3 (fc65), 4 (fc70), 5 (fc77_5), 6 (fc85), 7 (fc92_5), 8 (fc100), 9 (fc110), 10 (fc125), 11 (fc150), 12 (fc175), 13 (fc200), 14 (fc250), 15 (fc300), 16 (fc400), 17 (fc500)
Default Value
0
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getCommodityFreightClass([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setCommodityFreightClass([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
Indicates the freight class of the commodity.
The following table lists freight classes available from FedEx freight services.
Freight Class | |
50 | |
55 | |
60 | |
65 | |
70 | |
77.5 | |
85 | |
92.5 | |
100 | |
110 | |
125 | |
150 | |
175 | |
200 | |
250 | |
300 | |
400 | |
500 |
The size of the array is controlled by the CommodityCount property.
This property is not available at design time.
Data Type
Integer