/**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if (!$this->get_id()) {
         return;
     }
     $this->set_props(array('product_id' => get_metadata('order_item', $this->get_id(), '_product_id', true), 'variation_id' => get_metadata('order_item', $this->get_id(), '_variation_id', true), 'quantity' => get_metadata('order_item', $this->get_id(), '_qty', true), 'tax_class' => get_metadata('order_item', $this->get_id(), '_tax_class', true), 'subtotal' => get_metadata('order_item', $this->get_id(), '_line_subtotal', true), 'total' => get_metadata('order_item', $this->get_id(), '_line_total', true), 'taxes' => get_metadata('order_item', $this->get_id(), '_line_tax_data', true)));
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if (!$this->get_id()) {
         return;
     }
     $this->set_props(array('tax_class' => get_metadata('order_item', $this->get_id(), '_tax_class', true), 'tax_status' => get_metadata('order_item', $this->get_id(), '_tax_status', true), 'total' => get_metadata('order_item', $this->get_id(), '_line_total', true), 'taxes' => get_metadata('order_item', $this->get_id(), '_line_tax_data', true)));
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if (!$this->get_id()) {
         return;
     }
     $this->set_props(array('method_id' => get_metadata('order_item', $this->get_id(), 'method_id', true), 'total' => get_metadata('order_item', $this->get_id(), 'cost', true), 'taxes' => get_metadata('order_item', $this->get_id(), 'taxes', true)));
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if (!$this->get_id()) {
         return;
     }
     $this->set_props(array('rate_id' => get_metadata('order_item', $this->get_id(), 'rate_id', true), 'label' => get_metadata('order_item', $this->get_id(), 'label', true), 'compound' => get_metadata('order_item', $this->get_id(), 'compound', true), 'tax_total' => get_metadata('order_item', $this->get_id(), 'tax_amount', true), 'shipping_tax_total' => get_metadata('order_item', $this->get_id(), 'shipping_tax_amount', true)));
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if ($this->get_id()) {
         $this->set_discount(get_metadata('order_item', $this->get_id(), 'discount_amount', true));
         $this->set_discount_tax(get_metadata('order_item', $this->get_id(), 'discount_amount_tax', true));
     }
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if (!$this->get_id()) {
         return;
     }
     $this->set_props(array('discount' => get_metadata('order_item', $this->get_id(), 'discount_amount', true), 'discount_tax' => get_metadata('order_item', $this->get_id(), 'discount_amount_tax', true)));
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if ($this->get_id()) {
         $this->set_method_id(get_metadata('order_item', $this->get_id(), 'method_id', true));
         $this->set_total(get_metadata('order_item', $this->get_id(), 'cost', true));
         $this->set_total_tax(get_metadata('order_item', $this->get_id(), 'total_tax', true));
         $this->set_taxes(get_metadata('order_item', $this->get_id(), 'taxes', true));
     }
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if ($this->get_id()) {
         $this->set_tax_class(get_metadata('order_item', $this->get_id(), '_tax_class', true));
         $this->set_tax_status(get_metadata('order_item', $this->get_id(), '_tax_status', true));
         $this->set_total(get_metadata('order_item', $this->get_id(), '_line_total', true));
         $this->set_total_tax(get_metadata('order_item', $this->get_id(), '_line_tax', true));
         $this->set_taxes(get_metadata('order_item', $this->get_id(), '_line_tax_data', true));
     }
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if ($this->get_id()) {
         $this->set_rate_id(get_metadata('order_item', $this->get_id(), 'rate_id', true));
         $this->set_label(get_metadata('order_item', $this->get_id(), 'label', true));
         $this->set_compound(get_metadata('order_item', $this->get_id(), 'compound', true));
         $this->set_tax_total(get_metadata('order_item', $this->get_id(), 'tax_amount', true));
         $this->set_shipping_tax_total(get_metadata('order_item', $this->get_id(), 'shipping_tax_amount', true));
     }
 }
 /**
  * Read/populate data properties specific to this order item.
  */
 public function read($id)
 {
     parent::read($id);
     if ($this->get_id()) {
         $this->set_product_id(get_metadata('order_item', $this->get_id(), '_product_id', true));
         $this->set_variation_id(get_metadata('order_item', $this->get_id(), '_variation_id', true));
         $this->set_quantity(get_metadata('order_item', $this->get_id(), '_qty', true));
         $this->set_tax_class(get_metadata('order_item', $this->get_id(), '_tax_class', true));
         $this->set_subtotal(get_metadata('order_item', $this->get_id(), '_line_subtotal', true));
         $this->set_subtotal_tax(get_metadata('order_item', $this->get_id(), '_line_subtotal_tax', true));
         $this->set_total(get_metadata('order_item', $this->get_id(), '_line_total', true));
         $this->set_total_tax(get_metadata('order_item', $this->get_id(), '_line_tax', true));
         $this->set_taxes(get_metadata('order_item', $this->get_id(), '_line_tax_data', true));
     }
 }