description; } /** * Retrieves order adjustment records that were refunded from this original adjustment. * * @since 3.0 * * @return Order_Adjustment[]|false */ public function get_refunded_items() { if ( null !== $this->refunded_items ) { return $this->refunded_items; } // Only fees and credits are supported. if ( ! in_array( $this->type, array( 'fee', 'credit' ) ) ) { return false; } return edd_get_order_adjustments( array( 'parent' => $this->id ) ); } /** * Backwards compatibility for the `amount` property, which is now the `total`. * * @since 3.1.0.4 */ public function get_amount() { return $this->total; } }