lib/recurly/adjustment.php
public function toRefundAttributes($quantity = null, $prorate = false) {
    if (is_null($quantity)) $quantity = $this->quantity;

    return array('uuid' => $this->uuid, 'quantity' => $quantity, 'prorate' => $prorate);
  }
public function toRefundAttributes($quantity = null, $prorate = false) {
    if (is_null($quantity)) $quantity = $this->quantity;

    return array('uuid' => $this->uuid, 'quantity' => $quantity, 'prorate' => $prorate);
  }
public function toRefundAttributes ( $ quantity = null , $ prorate = false ) { if ( is_null ( $ quantity ) ) $ quantity = $ this -> quantity ; return array ( 'uuid' => $ this -> uuid , 'quantity' => $ quantity , 'prorate' => $ prorate ) ; }
Converts this adjustment into the attributes needed for a refund.

@param Integer the quantity you wish to refund, defaults to refunding the entire quantity
@param Boolean indicates whether you want this adjustment refund prorated
@return Array an array of refund attributes to be fed into invoice->refund()
Converts this adjustment into the attributes needed for a refund .