src/Resource/Orders.php
public function setDiscount($value)
    {
        $this->data->amount->subtotals->discount = (float) $value;

        return $this;
    }
public function setDiscount($value)
    {
        $this->data->amount->subtotals->discount = (float) $value;

        return $this;
    }
public function setDiscount ( $ value ) { $ this -> data -> amount -> subtotals -> discount = ( float ) $ value ; return $ this ; }
Set discounted value of the item will be subtracted from the total value of the items.

@param int|float $value discounted value.

@return $this
Set discounted value of the item will be subtracted from the total value of the items .