lib/LossReasonsService.php
public function create(array $lossReason, array $options = array())
  {
    $attributes = array_intersect_key($lossReason, array_flip(self::$keysToPersist));

    list($code, $createdLossReason) = $this->httpClient->post("/loss_reasons", $attributes, $options);
    return $createdLossReason;
  }
public function create(array $lossReason, array $options = array())
  {
    $attributes = array_intersect_key($lossReason, array_flip(self::$keysToPersist));

    list($code, $createdLossReason) = $this->httpClient->post("/loss_reasons", $attributes, $options);
    return $createdLossReason;
  }
public function create ( array $ lossReason , array $ options = array ( ) ) { $ attributes = array_intersect_key ( $ lossReason , array_flip ( self :: $ keysToPersist ) ) ; list ( $ code , $ createdLossReason ) = $ this -> httpClient -> post ( "/loss_reasons" , $ attributes , $ options ) ; return $ createdLossReason ; }
Create a loss reason

post '/loss_reasons'

Create a new loss reason
<figure class="notice">
Loss reason's name **must** be unique
</figure>

@param array $lossReason This array's attributes describe the object to be created.
@param array $options Additional request's options.

@return array The resulting object representing created resource.
Create a loss reason