public function matches_brand_purchase_promo_code(Model_Brand_Purchase $brand_purchase) { $promo_code = $brand_purchase->get_insist('purchase')->promo_code; if (!$promo_code) { return FALSE; } return $this->has_promo_code($promo_code); }
public function model_call_shipping_address(Model_Brand_Purchase $brand_purchase, Jam_Event_Data $data) { $data->return = $brand_purchase->get_insist('purchase')->shipping_address(); }