Пример #1
0
 public static function buildFromJSON($vo_json)
 {
     $o_terminal = new Terminal();
     if (array_key_exists("terminal_tip_line", $vo_json)) {
         $o_terminal->setTipLine($vo_json["terminal_tip_line"]);
     }
     if (array_key_exists("terminal_signature_floor_limit", $vo_json)) {
         $o_terminal->setSignatureFloorLimit($vo_json["terminal_signature_floor_limit"]);
     }
     if (array_key_exists("terminal_model_type", $vo_json)) {
         $o_terminal->setModelType($vo_json["terminal_model_type"]);
     }
     if (array_key_exists("terminal_quantity", $vo_json)) {
         $o_terminal->setQuantity($vo_json["terminal_quantity"]);
     }
     if (array_key_exists("terminal_connection_type", $vo_json)) {
         $o_terminal->setConnectionType($vo_json["terminal_connection_type"]);
     }
     if (array_key_exists("terminal_implementation", $vo_json)) {
         $o_terminal->setImplementation($vo_json["terminal_implementation"]);
     }
     if (array_key_exists("temrinal_billing", $vo_json)) {
         $o_terminal->setBilling($vo_json["temrinal_billing"]);
     }
     if (array_key_exists("terminal_shipping_address", $vo_json)) {
         $o_terminal->setShippingAddress(Address::buildFromJSON($vo_json["terminal_shipping_address"]));
     }
     if (array_key_exists("terminal_auto_batch_terminal", $vo_json)) {
         $o_terminal->setAutoBatchTerminal($vo_json["terminal_auto_batch_terminal"]);
     }
     if (array_key_exists("terminal_auto_batch_time", $vo_json)) {
         $o_terminal->setAutoBatchTime($vo_json["terminal_auto_batch_time"]);
     }
     if (array_key_exists("terminal_auto_batch_time_zone", $vo_json)) {
         $o_terminal->setAutoBatchTimeZone($vo_json["terminal_auto_batch_time_zone"]);
     }
     if (array_key_exists("terminal_descriptor", $vo_json)) {
         $o_terminal->setDescriptor($vo_json["terminal_descriptor"]);
     }
     if (array_key_exists("terminal_manufacturer", $vo_json)) {
         $o_terminal->setManufacturer($vo_json["terminal_manufacturer"]);
     }
     if (array_key_exists("terminal_software", $vo_json)) {
         $o_terminal->setSoftware($vo_json["terminal_software"]);
     }
     if (array_key_exists("terminal_ach_processor_id", $vo_json)) {
         $o_terminal->setAchProcessorId($vo_json["terminal_ach_processor_id"]);
     }
     if (array_key_exists("terminal_bc_processor_id", $vo_json)) {
         $o_terminal->setBankCardProcessorId($vo_json["terminal_bc_processor_id"]);
     }
     if (array_key_exists("terminal_company_name_descriptor", $vo_json)) {
         $o_terminal->setCompanyNameDescriptor($vo_json["terminal_company_name_descriptor"]);
     }
     if (array_key_exists("terminal_number_of_units", $vo_json)) {
         $o_terminal->setNumberOfUnits($vo_json["terminal_number_of_units"]);
     }
     return $o_terminal;
 }