afc_salesforce 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/afc_salesforce/account.rb +60 -9
- data/lib/afc_salesforce/borrower.rb +36 -19
- data/lib/afc_salesforce/models/account.rb +291 -75
- data/lib/afc_salesforce/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 17782ef60824bde194f4f6c3b1861784f5d9299f
         | 
| 4 | 
            +
              data.tar.gz: e936bd212abf3857d4fb46c8d5e2bd48a5939701
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6ed1cbd5c7b6baef9bab248f09743b43b23207f0a01398e1c1d537bea1ebe9369487f12214220dd110e033c5030870a79a0cb5c61bcc029091add4fbcfed449d
         | 
| 7 | 
            +
              data.tar.gz: cba9d20526f34793f465765b2d6fd3b5363bd132f235678ec474067a9bd409f93d07c7cd2b0ce1aa7a28c8c74aeb18293d6c902ff83d1aa8930393623a3cdaaa
         | 
| @@ -1,14 +1,63 @@ | |
| 1 1 | 
             
            module AFCSalesforce
         | 
| 2 2 | 
             
              class Account < Base
         | 
| 3 | 
            -
                attr_accessor : | 
| 4 | 
            -
                              : | 
| 5 | 
            -
                              : | 
| 6 | 
            -
                              : | 
| 7 | 
            -
                              : | 
| 8 | 
            -
                              : | 
| 9 | 
            -
                              : | 
| 10 | 
            -
                              : | 
| 11 | 
            -
                              : | 
| 3 | 
            +
                attr_accessor :appraised_value,
         | 
| 4 | 
            +
                              :approximate_value,
         | 
| 5 | 
            +
                              :condo_type,
         | 
| 6 | 
            +
                              :date_of_last_appraisal,
         | 
| 7 | 
            +
                              :date_of_purchase,
         | 
| 8 | 
            +
                              :email,
         | 
| 9 | 
            +
                              :endorser,
         | 
| 10 | 
            +
                              :first_mortgage_balance,
         | 
| 11 | 
            +
                              :first_mortgage_interest_rate,
         | 
| 12 | 
            +
                              :first_mortgage_payment,
         | 
| 13 | 
            +
                              :former_bankruptcy,
         | 
| 14 | 
            +
                              :hoa_dues,
         | 
| 15 | 
            +
                              :initial_purchase_price,
         | 
| 16 | 
            +
                              :internet_source,
         | 
| 17 | 
            +
                              :is_escrowed,
         | 
| 18 | 
            +
                              :is_va_eligible,
         | 
| 19 | 
            +
                              :last_appraisal__c,
         | 
| 20 | 
            +
                              :loan_purpose,
         | 
| 21 | 
            +
                              :loan_type,
         | 
| 22 | 
            +
                              :monthly_insurance,
         | 
| 23 | 
            +
                              :monthly_taxes,
         | 
| 24 | 
            +
                              :name,
         | 
| 25 | 
            +
                              :number_of_units,
         | 
| 26 | 
            +
                              :occupancy_type,
         | 
| 27 | 
            +
                              :phone,
         | 
| 28 | 
            +
                              :program_type,
         | 
| 29 | 
            +
                              :property_acre_count,
         | 
| 30 | 
            +
                              :property_bathroom_count,
         | 
| 31 | 
            +
                              :property_bedroom_count,
         | 
| 32 | 
            +
                              :property_city,
         | 
| 33 | 
            +
                              :property_close_date,
         | 
| 34 | 
            +
                              :property_down_payment,
         | 
| 35 | 
            +
                              :property_price,
         | 
| 36 | 
            +
                              :property_state,
         | 
| 37 | 
            +
                              :property_street,
         | 
| 38 | 
            +
                              :property_type,
         | 
| 39 | 
            +
                              :property_zip,
         | 
| 40 | 
            +
                              :purchase_close_date,
         | 
| 41 | 
            +
                              :purchase_date,
         | 
| 42 | 
            +
                              :realtor_email,
         | 
| 43 | 
            +
                              :realtor_name,
         | 
| 44 | 
            +
                              :realtor_phone,
         | 
| 45 | 
            +
                              :realtor_sign_up_date,
         | 
| 46 | 
            +
                              :refinance_loan_type,
         | 
| 47 | 
            +
                              :refinance_reason,
         | 
| 48 | 
            +
                              :residence_type,
         | 
| 49 | 
            +
                              :second_mortgage,
         | 
| 50 | 
            +
                              :second_mortgage_balance,
         | 
| 51 | 
            +
                              :second_mortgage_date_opened,
         | 
| 52 | 
            +
                              :second_mortgage_payment,
         | 
| 53 | 
            +
                              :second_mortgage_rate,
         | 
| 54 | 
            +
                              :session_uuid,
         | 
| 55 | 
            +
                              :source,
         | 
| 56 | 
            +
                              :square_feet,
         | 
| 57 | 
            +
                              :subject_property_city,
         | 
| 58 | 
            +
                              :subject_property_state,
         | 
| 59 | 
            +
                              :working_with_realtor,
         | 
| 60 | 
            +
                              :x2nd_mortgage_date_opened__c
         | 
| 12 61 |  | 
| 13 62 | 
             
                def to_h
         | 
| 14 63 | 
             
                  AFCSalesforce::Models::Account.new(
         | 
| @@ -51,6 +100,8 @@ module AFCSalesforce | |
| 51 100 | 
             
                    session_uuid__c: @session_uuid,
         | 
| 52 101 | 
             
                    source__c: @source,
         | 
| 53 102 | 
             
                    square_feet__c: @square_feet,
         | 
| 103 | 
            +
                    subject_property_city__c: @subject_property_city,
         | 
| 104 | 
            +
                    subject_property_state__c: @subject_property_state,
         | 
| 54 105 | 
             
                    type__c: @loan_type,
         | 
| 55 106 | 
             
                    va_eligible__c: @is_va_eligible,
         | 
| 56 107 | 
             
                    working_with_realtor__c: @working_with_realtor,
         | 
| @@ -1,36 +1,53 @@ | |
| 1 1 | 
             
            module AFCSalesforce
         | 
| 2 2 | 
             
              class Borrower < Base
         | 
| 3 | 
            -
                attr_accessor : | 
| 4 | 
            -
                              : | 
| 5 | 
            -
                              : | 
| 3 | 
            +
                attr_accessor :city,
         | 
| 4 | 
            +
                              :company_name,
         | 
| 5 | 
            +
                              :email,
         | 
| 6 | 
            +
                              :first_name,
         | 
| 7 | 
            +
                              :income_type,
         | 
| 8 | 
            +
                              :last_name,
         | 
| 9 | 
            +
                              :marital_status,
         | 
| 10 | 
            +
                              :middle_name,
         | 
| 11 | 
            +
                              :phone,
         | 
| 12 | 
            +
                              :session_uuid,
         | 
| 13 | 
            +
                              :ssn,
         | 
| 14 | 
            +
                              :state,
         | 
| 15 | 
            +
                              :street,
         | 
| 16 | 
            +
                              :suffix,
         | 
| 17 | 
            +
                              :zip
         | 
| 18 | 
            +
             | 
| 19 | 
            +
                set_as_integer :monthly_income,
         | 
| 20 | 
            +
                               :yearly_income,
         | 
| 21 | 
            +
                               :years_on_job
         | 
| 22 | 
            +
             | 
| 23 | 
            +
                set_as_boolean :is_primary,
         | 
| 24 | 
            +
                               :is_self_employed
         | 
| 6 25 |  | 
| 7 | 
            -
                set_as_integer :monthly_income, :yearly_income, :years_on_job
         | 
| 8 | 
            -
                set_as_boolean :is_self_employed, :is_primary
         | 
| 9 26 | 
             
                set_as_date :birthdate
         | 
| 10 27 |  | 
| 11 28 | 
             
                def to_h
         | 
| 12 29 | 
             
                  AFCSalesforce::Models::Contact.new(
         | 
| 13 30 | 
             
                    additional_income_type__c: @income_type,
         | 
| 31 | 
            +
                    birthdate: @birthdate,
         | 
| 32 | 
            +
                    bor_company_name__c: @company_name,
         | 
| 33 | 
            +
                    email: @email,
         | 
| 14 34 | 
             
                    firstname: @first_name,
         | 
| 15 | 
            -
                     | 
| 35 | 
            +
                    is_self_employed__c: @is_self_employed,
         | 
| 16 36 | 
             
                    lastname: @last_name,
         | 
| 17 | 
            -
                    suffix__c: @suffix,
         | 
| 18 | 
            -
                    phone: @phone,
         | 
| 19 | 
            -
                    ssn__c: @ssn,
         | 
| 20 | 
            -
                    email: @email,
         | 
| 21 | 
            -
                    marital_status__c: @marital_status,
         | 
| 22 | 
            -
                    mailingstreet: @street,
         | 
| 23 37 | 
             
                    mailingcity: @city,
         | 
| 24 | 
            -
                    mailingstate: @state,
         | 
| 25 38 | 
             
                    mailingpostalcode: @zip,
         | 
| 26 | 
            -
                     | 
| 39 | 
            +
                    mailingstate: @state,
         | 
| 40 | 
            +
                    mailingstreet: @street,
         | 
| 41 | 
            +
                    marital_status__c: @marital_status,
         | 
| 42 | 
            +
                    middle_name__c: @middle_name,
         | 
| 27 43 | 
             
                    monthly_income__c: @monthly_income,
         | 
| 28 | 
            -
                     | 
| 29 | 
            -
                    years_on_the_job__c: @years_on_job,
         | 
| 30 | 
            -
                    is_self_employed__c: @is_self_employed,
         | 
| 44 | 
            +
                    phone: @phone,
         | 
| 31 45 | 
             
                    primary_borrower__c: @is_primary,
         | 
| 32 | 
            -
                     | 
| 33 | 
            -
                     | 
| 46 | 
            +
                    session_uuid__c: @session_uuid,
         | 
| 47 | 
            +
                    ssn__c: @ssn,
         | 
| 48 | 
            +
                    suffix__c: @suffix,
         | 
| 49 | 
            +
                    yearly_income__c: @yearly_income,
         | 
| 50 | 
            +
                    years_on_the_job__c: @years_on_job
         | 
| 34 51 | 
             
                  ).to_h
         | 
| 35 52 | 
             
                end
         | 
| 36 53 | 
             
              end
         | 
| @@ -2,70 +2,286 @@ module AFCSalesforce | |
| 2 2 | 
             
              module Models
         | 
| 3 3 | 
             
                class Account < AFCSalesforce::Models::Base
         | 
| 4 4 |  | 
| 5 | 
            -
                  attr_accessor :account_number, | 
| 6 | 
            -
                                : | 
| 7 | 
            -
                                : | 
| 8 | 
            -
                                : | 
| 9 | 
            -
                                : | 
| 10 | 
            -
                                : | 
| 11 | 
            -
                                : | 
| 12 | 
            -
                                : | 
| 13 | 
            -
                                : | 
| 14 | 
            -
                                : | 
| 15 | 
            -
                                : | 
| 16 | 
            -
                                : | 
| 17 | 
            -
                                : | 
| 18 | 
            -
                                : | 
| 19 | 
            -
                                : | 
| 20 | 
            -
                                : | 
| 21 | 
            -
                                : | 
| 22 | 
            -
                                : | 
| 23 | 
            -
                                : | 
| 24 | 
            -
                                : | 
| 25 | 
            -
                                : | 
| 26 | 
            -
                                : | 
| 27 | 
            -
                                : | 
| 28 | 
            -
                                : | 
| 29 | 
            -
                                : | 
| 30 | 
            -
                                : | 
| 31 | 
            -
                                : | 
| 32 | 
            -
                                : | 
| 33 | 
            -
                                : | 
| 34 | 
            -
                                : | 
| 35 | 
            -
                                : | 
| 36 | 
            -
                                : | 
| 37 | 
            -
                                : | 
| 38 | 
            -
                                : | 
| 39 | 
            -
                                : | 
| 40 | 
            -
                                : | 
| 41 | 
            -
                                : | 
| 42 | 
            -
                                : | 
| 43 | 
            -
                                : | 
| 44 | 
            -
                                : | 
| 45 | 
            -
                                : | 
| 46 | 
            -
                                : | 
| 47 | 
            -
                                : | 
| 5 | 
            +
                  attr_accessor :account_number,
         | 
| 6 | 
            +
                                :account_source,
         | 
| 7 | 
            +
                                :acres__c,
         | 
| 8 | 
            +
                                :adjusted_gross_income__c,
         | 
| 9 | 
            +
                                :aha_appt__c,
         | 
| 10 | 
            +
                                :aha_appt_date__c,
         | 
| 11 | 
            +
                                :aha_csr__c,
         | 
| 12 | 
            +
                                :aha_lead__c,
         | 
| 13 | 
            +
                                :aha_listing__c,
         | 
| 14 | 
            +
                                :aha_property_address__c,
         | 
| 15 | 
            +
                                :aha_property_city__c,
         | 
| 16 | 
            +
                                :aha_property_state__c,
         | 
| 17 | 
            +
                                :aha_property_zip__c,
         | 
| 18 | 
            +
                                :aha_purchase_price__c,
         | 
| 19 | 
            +
                                :aha_realtor__c,
         | 
| 20 | 
            +
                                :aha_status__c,
         | 
| 21 | 
            +
                                :annual_revenue,
         | 
| 22 | 
            +
                                :application_status__c,
         | 
| 23 | 
            +
                                :application_status_timestamp__c,
         | 
| 24 | 
            +
                                :appointment__c,
         | 
| 25 | 
            +
                                :appraisal_objection_date__c,
         | 
| 26 | 
            +
                                :appraisal_ordered__c,
         | 
| 27 | 
            +
                                :appraisal_received__c,
         | 
| 28 | 
            +
                                :appraised_value__c,
         | 
| 29 | 
            +
                                :approximate_value__c,
         | 
| 30 | 
            +
                                :bankruptcy_date__c,
         | 
| 31 | 
            +
                                :bathrooms__c,
         | 
| 32 | 
            +
                                :bedrooms__c,
         | 
| 33 | 
            +
                                :billingcity,
         | 
| 34 | 
            +
                                :billingpostalcode,
         | 
| 35 | 
            +
                                :billingstate,
         | 
| 36 | 
            +
                                :billingstreet,
         | 
| 37 | 
            +
                                :broker_commission__c,
         | 
| 38 | 
            +
                                :buyer_agency_date__c,
         | 
| 39 | 
            +
                                :buyer_to_contract__c,
         | 
| 40 | 
            +
                                :cap__c,
         | 
| 41 | 
            +
                                :ccd_closed_date__c,
         | 
| 42 | 
            +
                                :ccd_closed_lost_reason__c,
         | 
| 43 | 
            +
                                :ccd_closing_status__c,
         | 
| 44 | 
            +
                                :client_docs__c,
         | 
| 45 | 
            +
                                :close_date_w_aha__c,
         | 
| 46 | 
            +
                                :closed_docs__c,
         | 
| 47 | 
            +
                                :closed_purchase_val__c,
         | 
| 48 | 
            +
                                :closed_with_aha__c,
         | 
| 49 | 
            +
                                :closedgrosscommission__c,
         | 
| 50 | 
            +
                                :cnd_date_stamp__c,
         | 
| 51 | 
            +
                                :cndforcredit__c,
         | 
| 52 | 
            +
                                :commission_to_broker__c,
         | 
| 53 | 
            +
                                :condo_type__c,
         | 
| 54 | 
            +
                                :contract_to_close__c,
         | 
| 55 | 
            +
                                :created_by,
         | 
| 56 | 
            +
                                :credit_agent__c,
         | 
| 57 | 
            +
                                :credit_care_status__c,
         | 
| 58 | 
            +
                                :credit_repair_referral__c,
         | 
| 59 | 
            +
                                :csr__c,
         | 
| 60 | 
            +
                                :current_rent__c,
         | 
| 61 | 
            +
                                :days_old__c,
         | 
| 62 | 
            +
                                :description,
         | 
| 63 | 
            +
                                :dng_reason__c,
         | 
| 64 | 
            +
                                :down_payment__c,
         | 
| 65 | 
            +
                                :down_payment_notes__c,
         | 
| 66 | 
            +
                                :endorser__c, :escrowed__c,
         | 
| 67 | 
            +
                                :est_close_date_w_aha__c,
         | 
| 68 | 
            +
                                :estimated_date_to_complete_cap__c,
         | 
| 69 | 
            +
                                :estimated_time_to_complete_program__c,
         | 
| 70 | 
            +
                                :fax,
         | 
| 71 | 
            +
                                :filedataid__c,
         | 
| 72 | 
            +
                                :flat_fee__c,
         | 
| 73 | 
            +
                                :foreclosure_date__c,
         | 
| 74 | 
            +
                                :former_bankruptcy__c,
         | 
| 75 | 
            +
                                :former_foreclosure__c,
         | 
| 76 | 
            +
                                :gross_commission__c,
         | 
| 77 | 
            +
                                :gross_commission_all__c,
         | 
| 78 | 
            +
                                :hoa_dues__c,
         | 
| 79 | 
            +
                                :if_va_eligible_have_they_used_it__c,
         | 
| 80 | 
            +
                                :industry,
         | 
| 81 | 
            +
                                :inside_realtor__c,
         | 
| 82 | 
            +
                                :inspection_objection_date__c,
         | 
| 83 | 
            +
                                :internet_lead__c,
         | 
| 84 | 
            +
                                :internet_source__c,
         | 
| 85 | 
            +
                                :is_customer_portal,
         | 
| 86 | 
            +
                                :jigsaw,
         | 
| 87 | 
            +
                                :last_appraisal__c,
         | 
| 88 | 
            +
                                :last_date_listed__c,
         | 
| 89 | 
            +
                                :last_modified_by,
         | 
| 90 | 
            +
                                :last_price_listed_for__c,
         | 
| 91 | 
            +
                                :lead_sent_to_sqlbyte__c,
         | 
| 92 | 
            +
                                :lead_type__c,
         | 
| 93 | 
            +
                                :listing_agent_broker__c,
         | 
| 94 | 
            +
                                :listing_agent_cell_phone__c,
         | 
| 95 | 
            +
                                :listing_agent_company__c,
         | 
| 96 | 
            +
                                :listing_agent_email__c,
         | 
| 97 | 
            +
                                :listing_agent_work_phone__c,
         | 
| 98 | 
            +
                                :listing_contract_date__c, :loan_commitment_date__c,
         | 
| 99 | 
            +
                                :loan_purpose__c,
         | 
| 100 | 
            +
                                :loan_type__c,
         | 
| 101 | 
            +
                                :los_issues__c,
         | 
| 102 | 
            +
                                :median_score__c,
         | 
| 103 | 
            +
                                :monthly_budget__c,
         | 
| 104 | 
            +
                                :monthly_insurance__c,
         | 
| 105 | 
            +
                                :monthly_taxes__c,
         | 
| 106 | 
            +
                                :mortgage_notes__c,
         | 
| 107 | 
            +
                                :name,
         | 
| 108 | 
            +
                                :new_file_to_buyer__c,
         | 
| 109 | 
            +
                                :new_purchase_price__c,
         | 
| 110 | 
            +
                                :not_a_lead__c,
         | 
| 111 | 
            +
                                :number_of_units__c,
         | 
| 112 | 
            +
                                :numberofemployees,
         | 
| 113 | 
            +
                                :occupancy_type__c,
         | 
| 114 | 
            +
                                :original_endorser__c,
         | 
| 115 | 
            +
                                :original_purchase_price__c,
         | 
| 116 | 
            +
                                :original_source__c,
         | 
| 117 | 
            +
                                :outside_financing__c,
         | 
| 118 | 
            +
                                :outside_real_estate_company__c,
         | 
| 119 | 
            +
                                :owner,
         | 
| 120 | 
            +
                                :ownercell__c, :owner_from_original_lead__c,
         | 
| 121 | 
            +
                                :ownership,
         | 
| 122 | 
            +
                                :parent,
         | 
| 123 | 
            +
                                :pending_docs__c,
         | 
| 124 | 
            +
                                :phone,
         | 
| 125 | 
            +
                                :previous_year_30_day_mortgage_lates__c,
         | 
| 126 | 
            +
                                :price_range__c,
         | 
| 127 | 
            +
                                :primary_borrower_email__c,
         | 
| 128 | 
            +
                                :primary_borrower_name__c,
         | 
| 129 | 
            +
                                :primary_borrower_phone__c,
         | 
| 130 | 
            +
                                :processor__c, :program_coordinator__c,
         | 
| 131 | 
            +
                                :program_type__c,
         | 
| 132 | 
            +
                                :property_type__c,
         | 
| 133 | 
            +
                                :puchase_close_date__c,
         | 
| 134 | 
            +
                                :purchase_contract_date__c,
         | 
| 135 | 
            +
                                :rating,
         | 
| 136 | 
            +
                                :realtor_email__c, :realtor_name__c,
         | 
| 137 | 
            +
                                :realtor_phone_number__c,
         | 
| 138 | 
            +
                                :referral_commission__c,
         | 
| 139 | 
            +
                                :refinance_purpose__c, :related_file__c,
         | 
| 140 | 
            +
                                :renting_current_home__c,
         | 
| 141 | 
            +
                                :rescore_date__c,
         | 
| 142 | 
            +
                                :rescore_done__c,
         | 
| 143 | 
            +
                                :residence_type__c,
         | 
| 144 | 
            +
                                :score_update__c,
         | 
| 145 | 
            +
                                :searchadgroup__c,
         | 
| 146 | 
            +
                                :searchcampaign__c,
         | 
| 147 | 
            +
                                :searchkeyword__c,
         | 
| 148 | 
            +
                                :searchsource__c,
         | 
| 149 | 
            +
                                :selling_current_home__c,
         | 
| 150 | 
            +
                                :session_uuid__c,
         | 
| 151 | 
            +
                                :shipping_address,
         | 
| 152 | 
            +
                                :sic,
         | 
| 153 | 
            +
                                :sic_description,
         | 
| 154 | 
            +
                                :sign_off_location__c,
         | 
| 155 | 
            +
                                :sign_up_date__c, :source__c,
         | 
| 156 | 
            +
                                :site,
         | 
| 157 | 
            +
                                :square_feet__c,
         | 
| 158 | 
            +
                                :subject_property_address__c,
         | 
| 159 | 
            +
                                :subject_property_city__c, :subject_property_zip__c,
         | 
| 160 | 
            +
                                :subject_property_state__c,
         | 
| 161 | 
            +
                                :ticker_symbol,
         | 
| 162 | 
            +
                                :title_address__c,
         | 
| 163 | 
            +
                                :title_closer_name__c,
         | 
| 164 | 
            +
                                :title_company_name__c,
         | 
| 165 | 
            +
                                :title_email__c,
         | 
| 166 | 
            +
                                :title_fax__c,
         | 
| 167 | 
            +
                                :title_phone__c,
         | 
| 168 | 
            +
                                :title_state__c,
         | 
| 169 | 
            +
                                :title_zip__c,
         | 
| 170 | 
            +
                                :type,
         | 
| 171 | 
            +
                                :type__c,
         | 
| 172 | 
            +
                                :va_eligible__c,
         | 
| 173 | 
            +
                                :velo__apex_context__c,
         | 
| 174 | 
            +
                                :velo__is_synced_with_velocify__c,
         | 
| 175 | 
            +
                                :velo__lead360recordid__c,
         | 
| 176 | 
            +
                                :velo__leads360_milestoneid__c,
         | 
| 177 | 
            +
                                :velo__record_history__c,
         | 
| 178 | 
            +
                                :velo__salesforce_owner_name__c,
         | 
| 179 | 
            +
                                :velo__salesforce_owner_profilename__c,
         | 
| 180 | 
            +
                                :velo__salesforce_owner_role_name__c, :scanning_complete__c,
         | 
| 181 | 
            +
                                :velo__status__c,
         | 
| 182 | 
            +
                                :velo__time_zone__c,
         | 
| 183 | 
            +
                                :velo_last_action_date__c,
         | 
| 184 | 
            +
                                :velocify_owner__c,
         | 
| 185 | 
            +
                                :website,
         | 
| 186 | 
            +
                                :whenselling__c,
         | 
| 187 | 
            +
                                :working_with_realtor__c,
         | 
| 188 | 
            +
                                :x1_referral_date__c,
         | 
| 189 | 
            +
                                :x1_referral_name__c,
         | 
| 190 | 
            +
                                :x1_referral_phone__c,
         | 
| 191 | 
            +
                                :x1st_mortgage_balance__c,
         | 
| 192 | 
            +
                                :x1st_mortgage_payment__c,
         | 
| 193 | 
            +
                                :x1st_mortgage_rate__c,
         | 
| 194 | 
            +
                                :x2_referral_date__c,
         | 
| 195 | 
            +
                                :x2_referral_name__c,
         | 
| 196 | 
            +
                                :x2_referral_phone__c,
         | 
| 197 | 
            +
                                :x2nd_mortgage__c,
         | 
| 198 | 
            +
                                :x2nd_mortgage_balance__c,
         | 
| 199 | 
            +
                                :x2nd_mortgage_date_opened__c,
         | 
| 200 | 
            +
                                :x2nd_mortgage_payment__c,
         | 
| 201 | 
            +
                                :x2nd_mortgage_rate__c,
         | 
| 202 | 
            +
                                :x3_referral_date__c,
         | 
| 203 | 
            +
                                :x3_referral_name__c,
         | 
| 204 | 
            +
                                :x3_referral_phone__c,
         | 
| 205 | 
            +
                                :x4_referral_date__c,
         | 
| 206 | 
            +
                                :x4_referral_name__c,
         | 
| 207 | 
            +
                                :x4_referral_phone__c
         | 
| 48 208 |  | 
| 49 | 
            -
                  set_as_float :annual_revenue, :x1st_mortgage_rate__c, :appraised_value__c, :approximate_value__c, :down_payment__c, :hoa_dues__c,
         | 
| 50 | 
            -
                               :monthly_insurance__c, :monthly_taxes__c, :new_purchase_price__c, :original_purchase_price__c, :square_feet__c,
         | 
| 51 | 
            -
                               :x1st_mortgage_balance__c, :x1st_mortgage_payment__c, :x2nd_mortgage_balance__c, :x2nd_mortgage_payment__c,
         | 
| 52 | 
            -
                               :x2nd_mortgage_rate__c, :acres__c, :adjusted_gross_income__c, :broker_commission__c, :buyer_to_contract__c,
         | 
| 53 | 
            -
                               :closedgrosscommission__c, :closed_purchase_val__c, :commission_to_broker__c, :current_rent__c, :flat_fee__c,
         | 
| 54 | 
            -
                               :gross_commission__c, :hoa_dues__c, :last_price_listed_for__c, :monthly_budget__c, :monthly_insurance__c,
         | 
| 55 | 
            -
                               :monthly_taxes__c, :original_purchase_price__c, :square_feet__c
         | 
| 56 209 |  | 
| 57 | 
            -
                   | 
| 58 | 
            -
             | 
| 210 | 
            +
                  set_as_float :adjusted_gross_income__c,
         | 
| 211 | 
            +
                               :annual_revenue,
         | 
| 212 | 
            +
                               :appraised_value__c,
         | 
| 213 | 
            +
                               :approximate_value__c,
         | 
| 214 | 
            +
                               :broker_commission__c,
         | 
| 215 | 
            +
                               :buyer_to_contract__c,
         | 
| 216 | 
            +
                               :closed_purchase_val__c,
         | 
| 217 | 
            +
                               :closedgrosscommission__c,
         | 
| 218 | 
            +
                               :commission_to_broker__c,
         | 
| 219 | 
            +
                               :current_rent__c,
         | 
| 220 | 
            +
                               :down_payment__c,
         | 
| 221 | 
            +
                               :flat_fee__c,
         | 
| 222 | 
            +
                               :gross_commission__c,
         | 
| 223 | 
            +
                               :hoa_dues__c,
         | 
| 224 | 
            +
                               :hoa_dues__c,
         | 
| 225 | 
            +
                               :last_price_listed_for__c,
         | 
| 226 | 
            +
                               :monthly_budget__c,
         | 
| 227 | 
            +
                               :monthly_insurance__c,
         | 
| 228 | 
            +
                               :monthly_insurance__c,
         | 
| 229 | 
            +
                               :monthly_taxes__c,
         | 
| 230 | 
            +
                               :monthly_taxes__c,
         | 
| 231 | 
            +
                               :new_purchase_price__c,
         | 
| 232 | 
            +
                               :original_purchase_price__c,
         | 
| 233 | 
            +
                               :original_purchase_price__c,
         | 
| 234 | 
            +
                               :square_feet__c,
         | 
| 235 | 
            +
                               :square_feet__c,
         | 
| 236 | 
            +
                               :x1st_mortgage_balance__c,
         | 
| 237 | 
            +
                               :x1st_mortgage_payment__c,
         | 
| 238 | 
            +
                               :x1st_mortgage_rate__c,
         | 
| 239 | 
            +
                               :x2nd_mortgage_balance__c,
         | 
| 240 | 
            +
                               :x2nd_mortgage_payment__c,
         | 
| 241 | 
            +
                               :x2nd_mortgage_rate__c, :acres__c,
         | 
| 59 242 |  | 
| 60 | 
            -
                   | 
| 61 | 
            -
             | 
| 62 | 
            -
             | 
| 63 | 
            -
             | 
| 64 | 
            -
             | 
| 65 | 
            -
             | 
| 66 | 
            -
             | 
| 243 | 
            +
                  set_as_integer :aha_purchase_price__c,
         | 
| 244 | 
            +
                                 :bathrooms__c,
         | 
| 245 | 
            +
                                 :bedrooms__c,
         | 
| 246 | 
            +
                                 :median_score__c,
         | 
| 247 | 
            +
                                 :new_purchase_price__c,
         | 
| 248 | 
            +
                                 :numberofemployees,
         | 
| 249 | 
            +
                                 :score_update__c,
         | 
| 250 | 
            +
                                 :velo__leads360_milestoneid__c
         | 
| 67 251 |  | 
| 68 | 
            -
                   | 
| 252 | 
            +
                  set_as_date :aha_appt_date__c,
         | 
| 253 | 
            +
                              :application_status_timestamp__c,
         | 
| 254 | 
            +
                              :appointment__c,
         | 
| 255 | 
            +
                              :appraisal_objection_date__c,
         | 
| 256 | 
            +
                              :appraisal_ordered__c, :appraisal_received__c,
         | 
| 257 | 
            +
                              :bankruptcy_date__c,
         | 
| 258 | 
            +
                              :buyer_agency_date__c,
         | 
| 259 | 
            +
                              :ccd_closed_date__c,
         | 
| 260 | 
            +
                              :client_docs__c, :close_date_w_aha__c,
         | 
| 261 | 
            +
                              :closed_docs__c,
         | 
| 262 | 
            +
                              :cnd_date_stamp__c,
         | 
| 263 | 
            +
                              :est_close_date_w_aha__c,
         | 
| 264 | 
            +
                              :estimated_date_to_complete_cap__c,
         | 
| 265 | 
            +
                              :foreclosure_date__c,
         | 
| 266 | 
            +
                              :inspection_objection_date__c,
         | 
| 267 | 
            +
                              :last_appraisal__c,
         | 
| 268 | 
            +
                              :last_date_listed__c,
         | 
| 269 | 
            +
                              :listing_contract_date__c,
         | 
| 270 | 
            +
                              :loan_commitment_date__c, :pending_docs__c,
         | 
| 271 | 
            +
                              :puchase_close_date__c,
         | 
| 272 | 
            +
                              :puchase_close_date__c,
         | 
| 273 | 
            +
                              :purchase_contract_date__c,
         | 
| 274 | 
            +
                              :purchase_date__c,
         | 
| 275 | 
            +
                              :rescore_date__c,
         | 
| 276 | 
            +
                              :sign_up_date__c,
         | 
| 277 | 
            +
                              :velo_last_action_date__c,
         | 
| 278 | 
            +
                              :x1_referral_date__c,
         | 
| 279 | 
            +
                              :x2_referral_date__c,
         | 
| 280 | 
            +
                              :x3_referral_date__c,
         | 
| 281 | 
            +
                              :x4_referral_date__c
         | 
| 282 | 
            +
             | 
| 283 | 
            +
                  set_as_boolean :escrowed__c,
         | 
| 284 | 
            +
                                 :x2nd_mortgage__c
         | 
| 69 285 |  | 
| 70 286 | 
             
                  def to_h
         | 
| 71 287 | 
             
                    {
         | 
| @@ -79,9 +295,9 @@ module AFCSalesforce | |
| 79 295 | 
             
                      :"Bathrooms__c"                           => @bathrooms__c,
         | 
| 80 296 | 
             
                      :"Bedrooms__c"                            => @bedrooms__c,
         | 
| 81 297 | 
             
                      :"BillingCity"                            => @billingcity,
         | 
| 82 | 
            -
                      :"BillingStreet"                          => @billingstreet,
         | 
| 83 | 
            -
                      :"BillingState"                           => @billingstate,
         | 
| 84 298 | 
             
                      :"BillingPostalCode"                      => @billingpostalcode,
         | 
| 299 | 
            +
                      :"BillingState"                           => @billingstate,
         | 
| 300 | 
            +
                      :"BillingStreet"                          => @billingstreet,
         | 
| 85 301 | 
             
                      :"Broker_Commission__c"                   => @broker_commission__c,
         | 
| 86 302 | 
             
                      :"Buyer_Agency_Date__c"                   => @buyer_agency_date__c,
         | 
| 87 303 | 
             
                      :"Buyer_to_Contract__c"                   => @buyer_to_contract__c,
         | 
| @@ -89,14 +305,15 @@ module AFCSalesforce | |
| 89 305 | 
             
                      :"CCD_Closed_Date__c"                     => @ccd_closed_date__c,
         | 
| 90 306 | 
             
                      :"CCD_Closed_Lost_Reason__c"              => @ccd_closed_lost_reason__c,
         | 
| 91 307 | 
             
                      :"CCD_Closing_Status__c"                  => @ccd_closing_status__c,
         | 
| 308 | 
            +
                      :"CNDForCredit__c"                        => @cndforcredit__c,
         | 
| 309 | 
            +
                      :"CND_Date_Stamp__c"                      => @cnd_date_stamp__c,
         | 
| 310 | 
            +
                      :"CSR__c"                                 => @csr__c,
         | 
| 92 311 | 
             
                      :"Client_Docs__c"                         => @client_docs__c,
         | 
| 93 312 | 
             
                      :"Close_Date_w_AHA__c"                    => @close_date_w_aha__c,
         | 
| 313 | 
            +
                      :"ClosedGrossCommission__c"               => @closedgrosscommission__c,
         | 
| 94 314 | 
             
                      :"Closed_Docs__c"                         => @closed_docs__c,
         | 
| 95 315 | 
             
                      :"Closed_Purchase_Val__c"                 => @closed_purchase_val__c,
         | 
| 96 316 | 
             
                      :"Closed_With_AHA__c"                     => @closed_with_aha__c,
         | 
| 97 | 
            -
                      :"ClosedGrossCommission__c"               => @closedgrosscommission__c,
         | 
| 98 | 
            -
                      :"CND_Date_Stamp__c"                      => @cnd_date_stamp__c,
         | 
| 99 | 
            -
                      :"CNDForCredit__c"                        => @cndforcredit__c,
         | 
| 100 317 | 
             
                      :"Commission_to_Broker__c"                => @commission_to_broker__c,
         | 
| 101 318 | 
             
                      :"Condo_Type__c"                          => @condo_type__c,
         | 
| 102 319 | 
             
                      :"Contract_to_Close__c"                   => @contract_to_close__c,
         | 
| @@ -104,13 +321,12 @@ module AFCSalesforce | |
| 104 321 | 
             
                      :"Credit_Agent__c"                        => @credit_agent__c,
         | 
| 105 322 | 
             
                      :"Credit_Care_Status__c"                  => @credit_care_status__c,
         | 
| 106 323 | 
             
                      :"Credit_Repair_Referral__c"              => @credit_repair_referral__c,
         | 
| 107 | 
            -
                      :"CSR__c"                                 => @csr__c,
         | 
| 108 324 | 
             
                      :"Current_Rent__c"                        => @current_rent__c,
         | 
| 325 | 
            +
                      :"DNG_Reason__c"                          => @dng_reason__c,
         | 
| 109 326 | 
             
                      :"Days_Old__c"                            => @days_old__c,
         | 
| 110 327 | 
             
                      :"Description"                            => @description,
         | 
| 111 | 
            -
                      :"DNG_Reason__c"                          => @dng_reason__c,
         | 
| 112 | 
            -
                      :"Down_Payment__c"                        => @down_payment__c,
         | 
| 113 328 | 
             
                      :"Down_Payment_Notes__c"                  => @down_payment_notes__c,
         | 
| 329 | 
            +
                      :"Down_Payment__c"                        => @down_payment__c,
         | 
| 114 330 | 
             
                      :"Endorser__c"                            => @endorser__c,
         | 
| 115 331 | 
             
                      :"Escrowed__c"                            => @escrowed__c,
         | 
| 116 332 | 
             
                      :"Est_Close_Date_w_AHA__c"                => @est_close_date_w_aha__c,
         | 
| @@ -122,8 +338,8 @@ module AFCSalesforce | |
| 122 338 | 
             
                      :"Foreclosure_Date__c"                    => @foreclosure_date__c,
         | 
| 123 339 | 
             
                      :"Former_Bankruptcy__c"                   => @former_bankruptcy__c,
         | 
| 124 340 | 
             
                      :"Former_Foreclosure__c"                  => @former_foreclosure__c,
         | 
| 125 | 
            -
                      :"Gross_Commission__c"                    => @gross_commission__c,
         | 
| 126 341 | 
             
                      :"Gross_Commission_All__c"                => @gross_commission_all__c,
         | 
| 342 | 
            +
                      :"Gross_Commission__c"                    => @gross_commission__c,
         | 
| 127 343 | 
             
                      :"HOA_Dues__c"                            => @hoa_dues__c,
         | 
| 128 344 | 
             
                      :"If_VA_Eligible_have_they_used_it__c"    => @if_va_eligible_have_they_used_it__c,
         | 
| 129 345 | 
             
                      :"Industry"                               => @industry,
         | 
| @@ -133,10 +349,11 @@ module AFCSalesforce | |
| 133 349 | 
             
                      :"Internet_Source__c"                     => @internet_source__c,
         | 
| 134 350 | 
             
                      :"IsCustomerPortal"                       => @is_customer_portal,
         | 
| 135 351 | 
             
                      :"Jigsaw"                                 => @jigsaw,
         | 
| 352 | 
            +
                      :"LOS_Issues__c"                          => @los_issues__c,
         | 
| 353 | 
            +
                      :"LastModifiedBy"                         => @last_modified_by,
         | 
| 136 354 | 
             
                      :"Last_Appraisal__c"                      => @last_appraisal__c,
         | 
| 137 355 | 
             
                      :"Last_Date_Listed__c"                    => @last_date_listed__c,
         | 
| 138 356 | 
             
                      :"Last_Price_Listed_For__c"               => @last_price_listed_for__c,
         | 
| 139 | 
            -
                      :"LastModifiedBy"                         => @last_modified_by,
         | 
| 140 357 | 
             
                      :"Lead_Sent_to_SqlByte__c"                => @lead_sent_to_sqlbyte__c,
         | 
| 141 358 | 
             
                      :"Lead_Type__c"                           => @lead_type__c,
         | 
| 142 359 | 
             
                      :"Listing_Agent_Broker__c"                => @listing_agent_broker__c,
         | 
| @@ -148,7 +365,6 @@ module AFCSalesforce | |
| 148 365 | 
             
                      :"Loan_Commitment_Date__c"                => @loan_commitment_date__c,
         | 
| 149 366 | 
             
                      :"Loan_Purpose__c"                        => @loan_purpose__c,
         | 
| 150 367 | 
             
                      :"Loan_Type__c"                           => @loan_type__c,
         | 
| 151 | 
            -
                      :"LOS_Issues__c"                          => @los_issues__c,
         | 
| 152 368 | 
             
                      :"Median_Score__c"                        => @median_score__c,
         | 
| 153 369 | 
             
                      :"Monthly_Budget__c"                      => @monthly_budget__c,
         | 
| 154 370 | 
             
                      :"Monthly_Insurance__c"                   => @monthly_insurance__c,
         | 
| @@ -167,8 +383,8 @@ module AFCSalesforce | |
| 167 383 | 
             
                      :"Outside_Financing__c"                   => @outside_financing__c,
         | 
| 168 384 | 
             
                      :"Outside_Real_Estate_Company__c"         => @outside_real_estate_company__c,
         | 
| 169 385 | 
             
                      :"Owner"                                  => @owner,
         | 
| 170 | 
            -
                      :"Owner_from_Original_Lead__c"            => @owner_from_original_lead__c,
         | 
| 171 386 | 
             
                      :"OwnerCell__c"                           => @ownercell__c,
         | 
| 387 | 
            +
                      :"Owner_from_Original_Lead__c"            => @owner_from_original_lead__c,
         | 
| 172 388 | 
             
                      :"Ownership"                              => @ownership,
         | 
| 173 389 | 
             
                      :"Parent"                                 => @parent,
         | 
| 174 390 | 
             
                      :"Pending_Docs__c"                        => @pending_docs__c,
         | 
| @@ -227,6 +443,7 @@ module AFCSalesforce | |
| 227 443 | 
             
                      :"Type"                                   => @type,
         | 
| 228 444 | 
             
                      :"Type__c"                                => @type__c,
         | 
| 229 445 | 
             
                      :"VA_Eligible__c"                         => @va_eligible__c,
         | 
| 446 | 
            +
                      :"Velo_Last_Action_Date__c"               => @velo_last_action_date__c,
         | 
| 230 447 | 
             
                      :"Velo__Is_Synced_with_Velocify__c"       => @velo__is_synced_with_velocify__c,
         | 
| 231 448 | 
             
                      :"Velo__Lead360RecordId__c"               => @velo__lead360recordid__c,
         | 
| 232 449 | 
             
                      :"Velo__Leads360_MileStoneId__c"          => @velo__leads360_milestoneid__c,
         | 
| @@ -236,7 +453,6 @@ module AFCSalesforce | |
| 236 453 | 
             
                      :"Velo__Salesforce_Owner_Role_Name__c"    => @velo__salesforce_owner_role_name__c,
         | 
| 237 454 | 
             
                      :"Velo__Status__c"                        => @velo__status__c,
         | 
| 238 455 | 
             
                      :"Velo__Time_Zone__c"                     => @velo__time_zone__c,
         | 
| 239 | 
            -
                      :"Velo_Last_Action_Date__c"               => @velo_last_action_date__c,
         | 
| 240 456 | 
             
                      :"Velocify_Owner__c"                      => @velocify_owner__c,
         | 
| 241 457 | 
             
                      :"Website"                                => @website,
         | 
| 242 458 | 
             
                      :"WhenSelling__c"                         => @whenselling__c,
         | 
| @@ -250,11 +466,11 @@ module AFCSalesforce | |
| 250 466 | 
             
                      :"X2_Referral_Date__c"                    => @x2_referral_date__c,
         | 
| 251 467 | 
             
                      :"X2_Referral_Name__c"                    => @x2_referral_name__c,
         | 
| 252 468 | 
             
                      :"X2_Referral_Phone__c"                   => @x2_referral_phone__c,
         | 
| 253 | 
            -
                      :"X2nd_Mortgage__c"                       => @x2nd_mortgage__c,
         | 
| 254 469 | 
             
                      :"X2nd_Mortgage_Balance__c"               => @x2nd_mortgage_balance__c,
         | 
| 255 470 | 
             
                      :"X2nd_Mortgage_Date_Opened__c"           => @x2nd_mortgage_date_opened__c,
         | 
| 256 471 | 
             
                      :"X2nd_Mortgage_Payment__c"               => @x2nd_mortgage_payment__c,
         | 
| 257 472 | 
             
                      :"X2nd_Mortgage_Rate__c"                  => @x2nd_mortgage_rate__c,
         | 
| 473 | 
            +
                      :"X2nd_Mortgage__c"                       => @x2nd_mortgage__c,
         | 
| 258 474 | 
             
                      :"X3_Referral_Date__c"                    => @x3_referral_date__c,
         | 
| 259 475 | 
             
                      :"X3_Referral_Name__c"                    => @x3_referral_name__c,
         | 
| 260 476 | 
             
                      :"X3_Referral_Phone__c"                   => @x3_referral_phone__c,
         | 
| @@ -265,4 +481,4 @@ module AFCSalesforce | |
| 265 481 | 
             
                  end
         | 
| 266 482 | 
             
                end
         | 
| 267 483 | 
             
              end
         | 
| 268 | 
            -
            end
         | 
| 484 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: afc_salesforce
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.15
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Donavan White
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2018-05- | 
| 11 | 
            +
            date: 2018-05-24 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: pry
         |