예제 #1
0
 static function buildFromJSON($vo_json)
 {
     $o_ach_details = new ACHDetails();
     if (array_key_exists("ach_details_auth_method_conversion_percentage", $vo_json)) {
         $o_ach_details->setAuthMethodConversionPercentage($vo_json["ach_details_auth_method_conversion_percentage"]);
     }
     if (array_key_exists("ach_details_auth_method_online_percentage", $vo_json)) {
         $o_ach_details->setAuthMethodOnlinePercentage($vo_json["ach_details_auth_method_online_percentage"]);
     }
     if (array_key_exists("ach_details_auth_method_verbal_percentage", $vo_json)) {
         $o_ach_details->setAuthMethodVerbalPercentage($vo_json["ach_details_auth_method_verbal_percentage"]);
     }
     if (array_key_exists("ach_details_average_monthly_amount", $vo_json)) {
         $o_ach_details->setAverageMonthlyAmount($vo_json["ach_details_average_monthly_amount"]);
     }
     if (array_key_exists("ach_details_average_ticket_amount", $vo_json)) {
         $o_ach_details->setAverageTicketAmount($vo_json["ach_details_average_ticket_amount"]);
     }
     if (array_key_exists("ach_details_chargeback_fee", $vo_json)) {
         $o_ach_details->setChargebackFee($vo_json["ach_details_chargeback_fee"]);
     }
     if (array_key_exists("ach_details_collections_service_fee", $vo_json)) {
         $o_ach_details->setCollectionsServiceFee($vo_json["ach_details_collections_service_fee"]);
     }
     if (array_key_exists("ach_details_company_name_descriptor", $vo_json)) {
         $o_ach_details->setCompanyNameDescriptor($vo_json["ach_details_company_name_descriptor"]);
     }
     if (array_key_exists("ach_details_descriptor", $vo_json)) {
         $o_ach_details->setDescriptor($vo_json["ach_details_descriptor"]);
     }
     if (array_key_exists("ach_details_discount_rate", $vo_json)) {
         $o_ach_details->setDiscountRate($vo_json["ach_details_discount_rate"]);
     }
     if (array_key_exists("ach_details_issue_credits", $vo_json)) {
         $o_ach_details->setIssueCredits($vo_json["ach_details_issue_credits"]);
     }
     if (array_key_exists("ach_details_issue_debits", $vo_json)) {
         $o_ach_details->setIssueDebits($vo_json["ach_details_issue_debits"]);
     }
     if (array_key_exists("ach_details_max_daily_amount", $vo_json)) {
         $o_ach_details->setMaxDailyAmount($vo_json["ach_details_max_daily_amount"]);
     }
     if (array_key_exists("ach_details_max_daily_transactions", $vo_json)) {
         $o_ach_details->setMaxDailyTransactions($vo_json["ach_details_max_daily_transactions"]);
     }
     if (array_key_exists("ach_details_max_monthly_amount", $vo_json)) {
         $o_ach_details->setMaxMonthlyAmount($vo_json["ach_details_max_monthly_amount"]);
     }
     if (array_key_exists("ach_details_max_monthly_transactions", $vo_json)) {
         $o_ach_details->setMaxMonthlyTransactions($vo_json["ach_details_max_monthly_transactions"]);
     }
     if (array_key_exists("ach_details_max_single_transaction_amount", $vo_json)) {
         $o_ach_details->setMaxSingleTransactionAmount($vo_json["ach_details_max_single_transaction_amount"]);
     }
     if (array_key_exists("ach_details_monthly_fee", $vo_json)) {
         $o_ach_details->setMonthlyFee($vo_json["ach_details_monthly_fee"]);
     }
     if (array_key_exists("ach_details_monthly_minimum_fee", $vo_json)) {
         $o_ach_details->setMonthlyMinimumFee($vo_json["ach_details_monthly_minimum_fee"]);
     }
     if (array_key_exists("ach_details_payer_auth", $vo_json)) {
         $o_ach_details->setPayerAuth($vo_json["ach_details_payer_auth"]);
     }
     if (array_key_exists("ach_details_proof_of_auth_fee", $vo_json)) {
         $o_ach_details->setProofOfAuthFee($vo_json["ach_details_proof_of_auth_fee"]);
     }
     if (array_key_exists("ach_details_payment_to_from", $vo_json)) {
         $o_payment_to_from = $vo_json["ach_details_payment_to_from"];
         for ($n_index = 0, $n_size = count($o_payment_to_from); $n_index < $n_size; $n_index++) {
             $o_ach_details->addPaymentToFrom($o_payment_to_from[$n_index]);
         }
     }
     if (array_key_exists("ach_details_payment_url", $vo_json)) {
         $o_ach_details->setPaymentUrl($vo_json["ach_details_payment_url"]);
     }
     if (array_key_exists("ach_details_recurring", $vo_json)) {
         $o_ach_details->setRecurring($vo_json["ach_details_recurring"]);
     }
     if (array_key_exists("ach_details_return_fee", $vo_json)) {
         $o_ach_details->setReturnFee($vo_json["ach_details_return_fee"]);
     }
     if (array_key_exists("ach_details_submission_methods", $vo_json)) {
         $o_submission_methods = $vo_json["ach_details_submission_methods"];
         for ($n_index = 0, $n_size = count($o_submission_methods); $n_index < $n_size; $n_index++) {
             $o_ach_details->addSubmissionMethod($o_submission_methods[$n_index]);
         }
     }
     if (array_key_exists("ach_details_termination_fee", $vo_json)) {
         $o_ach_details->setTerminationFee($vo_json["ach_details_termination_fee"]);
     }
     if (array_key_exists("ach_details_transaction_fee", $vo_json)) {
         $o_ach_details->setTransactionFee($vo_json["ach_details_transaction_fee"]);
     }
     if (array_key_exists("ach_details_unauth_return", $vo_json)) {
         $o_ach_details->setUnauthReturn($vo_json["ach_details_unauth_return"]);
     }
     if (array_key_exists("ach_details_submission_methods", $vo_json)) {
         $o_fees_client_requests = $vo_json["ach_details_fees_client_requests"];
         for ($n_index = 0, $n_size = count($o_fees_client_requests); $n_index < $n_size; $n_index++) {
             $o_ach_details->addFeesClientRequests($o_fees_client_requests[$n_index]);
         }
     }
     if (array_key_exists("ach_details_merchant_reports", $vo_json)) {
         $o_ach_details->setMerchantReports($vo_json["ach_details_merchant_reports"]);
     }
     if (array_key_exists("ach_details_payment_url_2", $vo_json)) {
         $o_ach_details->setPaymentUrl2($vo_json["ach_details_payment_url_2"]);
     }
     if (array_key_exists("ach_details_url_passwords", $vo_json)) {
         $o_ach_details->setUrlPasswords($vo_json["ach_details_url_passwords"]);
     }
     if (array_key_exists("ach_details_has_current_processor", $vo_json)) {
         $o_ach_details->setHasCurrentProcessor($vo_json["ach_details_has_current_processor"]);
     }
     if (array_key_exists("ach_details_username", $vo_json)) {
         $o_ach_details->setUsername($vo_json["ach_details_username"]);
     }
     if (array_key_exists("ach_details_password", $vo_json)) {
         $o_ach_details->setPassword($vo_json["ach_details_password"]);
     }
     if (array_key_exists("ach_details_in_person_signature", $vo_json)) {
         $o_ach_details->setInPersonSignaturePercentage($vo_json["ach_details_in_person_signature"]);
     }
     if (array_key_exists("ach_details_duplicates", $vo_json)) {
         $o_ach_details->setDuplicates($vo_json["ach_details_duplicates"]);
     }
     if (array_key_exists("ach_details_current_processor", $vo_json)) {
         $o_ach_details->setCurrentProcessor($vo_json["ach_details_current_processor"]);
     }
     if (array_key_exists("ach_details_represent_fee", $vo_json)) {
         $o_ach_details->setRepresentFee($vo_json["ach_details_represent_fee"]);
     }
     if (array_key_exists("ach_details_auth_method_written_in_person_percentage", $vo_json)) {
         $o_ach_details->setAuthMethodWrittenInPersonPercentage($vo_json["ach_details_auth_method_written_in_person_percentage"]);
     }
     if (array_key_exists("ach_details_auth_method_written_in_faxed_percentage", $vo_json)) {
         $o_ach_details->setAuthMethodWrittenFaxedPercentage($vo_json["ach_details_auth_method_written_in_faxed_percentage"]);
     }
     if (array_key_exists("ach_details_fee_other", $vo_json)) {
         $o_ach_details->setFeeOther($vo_json["ach_details_fee_other"]);
     }
     if (array_key_exists("ach_details_payment_url_3", $vo_json)) {
         $o_ach_details->setPaymentUrl3($vo_json["ach_details_payment_url_3"]);
     }
     if (array_key_exists("ach_details_url_passwords_2", $vo_json)) {
         $o_ach_details->setUrlPasswords2($vo_json["ach_details_url_passwords_2"]);
     }
     if (array_key_exists("ach_details_url_passwords_3", $vo_json)) {
         $o_ach_details->setUrlPasswords3($vo_json["ach_details_url_passwords_3"]);
     }
     if (array_key_exists("ach_details_merchant_rep_email", $vo_json)) {
         $o_ach_details->setMerchantRepEmail($vo_json["ach_details_merchant_rep_email"]);
     }
     return $o_ach_details;
 }