public function getDeclaredValue($only = false){
        if (isset($this->contents['Details']['SellerDeclaredValue'])){
            if ($only){
                return $this->contents['Details']['SellerDeclaredValue']['Value'];
            } else {
                return $this->contents['Details']['SellerDeclaredValue'];
            }
        } else {
            return false;
        }
    }
public function getDeclaredValue($only = false){
        if (isset($this->contents['Details']['SellerDeclaredValue'])){
            if ($only){
                return $this->contents['Details']['SellerDeclaredValue']['Value'];
            } else {
                return $this->contents['Details']['SellerDeclaredValue'];
            }
        } else {
            return false;
        }
    }
public function getDeclaredValue ( $ only = false ) { if ( isset ( $ this -> contents [ 'Details' ] [ 'SellerDeclaredValue' ] ) ) { if ( $ only ) { return $ this -> contents [ 'Details' ] [ 'SellerDeclaredValue' ] [ 'Value' ] ; } else { return $ this -> contents [ 'Details' ] [ 'SellerDeclaredValue' ] ; } } else { return false ; } }
Returns the seller's declared value for the transport request.

This value will only be set if the shipment is with an Amazon-partnered carrier and
the shipment type is set to "LTL" for Less Than Truckload/Full Truckload.
This should be the same as the data that was sent when creating the transport request.
If an array is returned, it will have the fields <b>Value</b> and <b>CurrencyCode</b>.
This method will return <b>FALSE</b> if the value has not been set yet.
@param boolean $only [optional] <p>set to <b>TRUE</b> to get only the value</p>
@return array|string|boolean array, single value, or <b>FALSE</b> if value not set yet
Returns the seller s declared value for the transport request .