Java Requires Chilkat v11.0.0+
Chilkat2 Java
Activix CRM Update a Lead
See more Activix CRM Examples
Demonstrates how to update a lead and returns the updated lead.Chilkat Java Downloads
import com.chilkatsoft.chilkat2.ChilkatException;
import com.chilkatsoft.chilkat2.Http;
import com.chilkatsoft.chilkat2.HttpResponse;
import com.chilkatsoft.chilkat2.JsonObject;
public class ChilkatExample {
public static void main(String[] args) {
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Http http = new Http();
http.setAuthToken("ACCESS_TOKEN");
http.setAccept("application/json");
// The following JSON is sent in the request body:
// {
// "first_name": "John",
// "last_name": "Doe",
// "advisor": {
// "first_name": "Johan",
// "last_name": "Strauss"
// }
// }
// Use this online tool to generate the code from sample JSON:
// Generate Code to Create JSON
JsonObject jsonRequestBody = new JsonObject();
jsonRequestBody.updateString("first_name", "John");
jsonRequestBody.updateString("last_name", "Doe");
jsonRequestBody.updateString("advisor.first_name", "Johan");
jsonRequestBody.updateString("advisor.last_name", "Strauss");
String url = "https://crm.activix.ca/api/v2/leads/LEAD_ID";
HttpResponse resp = new HttpResponse();
try {
http.httpJson("PUT", url, jsonRequestBody, "application/json", resp);
} catch (ChilkatException e) {
System.out.println(e.getLastErrorText());
return;
}
System.out.println("Response Status Code: " + resp.getStatusCode());
JsonObject jsonResponse = new JsonObject();
jsonResponse.load(resp.getBodyStr());
jsonResponse.setEmitCompact(false);
System.out.println(jsonResponse.emit());
if (resp.getStatusCode() >= 300) {
System.out.println("Failed.");
return;
}
// Sample output...
// (See the parsing code below..)
//
// Use the this online tool to generate parsing code from sample JSON:
// Generate Parsing Code from JSON
// {
// "data": {
// "id": 3387562,
// "created_at": "2018-04-09T18:05:00+00:00",
// "updated_at": "2018-04-09T18:07:00+00:00",
// "first_name": "John",
// "last_name": "Doe",
// ...
// "account": {
// "id": 66,
// ...
// },
// "advisor": {
// "id": 51112,
// ...
// },
// "emails": [
// {
// "id": 3664451,
// ...
// },
// ...
// ],
// "phones": [
// {
// "id": 9465546,
// ...
// },
// ...
// ],
// "vehicles": [
// {
// "id": 4542214,
// ...
// },
// ...
// ]
// }
// }
int id = 0;
String created_at = "";
String updated_at = "";
int lead_id = 0;
String address = "";
String v_type = "";
boolean valid = false;
String extension = "";
String number = "";
boolean validated = false;
boolean mobile = false;
String accessories = "";
String allowed_odometer = "";
int balance = 0;
String budget_max = "";
String budget_min = "";
String cash_down = "";
String category = "";
String category_rv = "";
String client_number = "";
String color_exterior = "";
String color_interior = "";
String comment = "";
String condition = "";
String end_contract_date = "";
String end_warranty_date = "";
String engine = "";
String extended_warranty = "";
String fuel = "";
String length_max = "";
String length_min = "";
String license_plate = "";
String make = "";
String modality = "";
String model = "";
String odometer = "";
String offer_number = "";
String v_option = "";
String order_number = "";
String payment = "";
String payment_frequency = "";
String preparation = "";
String price = "";
String profit = "";
String purchase_date = "";
String rate = "";
String recall = "";
String recorded_date = "";
String residual = "";
String security_deposit = "";
String sleeping = "";
boolean sold = false;
String sold_by = "";
String sold_date = "";
String stock = "";
String stock_state = "";
String term = "";
boolean tire = false;
String transmission = "";
String trim = "";
String value = "";
String vin = "";
String warranty = "";
String weight = "";
String year = "";
String year_max = "";
String year_min = "";
int dataId = jsonResponse.intOf("data.id");
String dataCreated_at = jsonResponse.stringOf("data.created_at");
String dataUpdated_at = jsonResponse.stringOf("data.updated_at");
int dataAccount_id = jsonResponse.intOf("data.account_id");
String dataAddress_line1 = jsonResponse.stringOf("data.address_line1");
String dataAddress_line2 = jsonResponse.stringOf("data.address_line2");
String dataAppointment_date = jsonResponse.stringOf("data.appointment_date");
boolean dataAppt_call = jsonResponse.boolOf("data.appt_call");
String dataAvailable_date = jsonResponse.stringOf("data.available_date");
String dataAverage_spending = jsonResponse.stringOf("data.average_spending");
String dataBe_back_date = jsonResponse.stringOf("data.be_back_date");
String dataBirth_date = jsonResponse.stringOf("data.birth_date");
String dataBusiness = jsonResponse.stringOf("data.business");
String dataCall_date = jsonResponse.stringOf("data.call_date");
String dataCity = jsonResponse.stringOf("data.city");
String dataCivility = jsonResponse.stringOf("data.civility");
String dataCode = jsonResponse.stringOf("data.code");
String dataCountry = jsonResponse.stringOf("data.country");
String dataCsi_date = jsonResponse.stringOf("data.csi_date");
String dataDelivered_by_id = jsonResponse.stringOf("data.delivered_by_id");
String dataDelivered_date = jsonResponse.stringOf("data.delivered_date");
String dataDelivery_date = jsonResponse.stringOf("data.delivery_date");
String dataDivision = jsonResponse.stringOf("data.division");
String dataEnd_service_date = jsonResponse.stringOf("data.end_service_date");
String dataFirst_name = jsonResponse.stringOf("data.first_name");
String dataGas = jsonResponse.stringOf("data.gas");
int dataGender = jsonResponse.intOf("data.gender");
boolean dataInvoiced = jsonResponse.boolOf("data.invoiced");
String dataLast_name = jsonResponse.stringOf("data.last_name");
String dataLast_visit_date = jsonResponse.stringOf("data.last_visit_date");
String dataLocale = jsonResponse.stringOf("data.locale");
String dataLoyalty = jsonResponse.stringOf("data.loyalty");
String dataNext_visit_date = jsonResponse.stringOf("data.next_visit_date");
String dataOdometer_last_visit = jsonResponse.stringOf("data.odometer_last_visit");
String dataOpen_work_order_date = jsonResponse.stringOf("data.open_work_order_date");
String dataPlanned_pick_up_date = jsonResponse.stringOf("data.planned_pick_up_date");
String dataPostal_code = jsonResponse.stringOf("data.postal_code");
String dataPrepaid = jsonResponse.stringOf("data.prepaid");
boolean dataPrepared = jsonResponse.boolOf("data.prepared");
String dataPresented_date = jsonResponse.stringOf("data.presented_date");
String dataPromised_date = jsonResponse.stringOf("data.promised_date");
String dataProvince = jsonResponse.stringOf("data.province");
String dataRating = jsonResponse.stringOf("data.rating");
boolean dataReached_client = jsonResponse.boolOf("data.reached_client");
String dataRefinanced_date = jsonResponse.stringOf("data.refinanced_date");
String dataRepair_date = jsonResponse.stringOf("data.repair_date");
String dataRepair_order = jsonResponse.stringOf("data.repair_order");
String dataResult = jsonResponse.stringOf("data.result");
String dataRoad_test_date = jsonResponse.stringOf("data.road_test_date");
String dataSale_date = jsonResponse.stringOf("data.sale_date");
String dataSecond_contact = jsonResponse.stringOf("data.second_contact");
String dataSecond_contact_civility = jsonResponse.stringOf("data.second_contact_civility");
String dataSegment = jsonResponse.stringOf("data.segment");
boolean dataService_cleaned = jsonResponse.boolOf("data.service_cleaned");
String dataService_interval_km = jsonResponse.stringOf("data.service_interval_km");
String dataService_monthly_km = jsonResponse.stringOf("data.service_monthly_km");
String dataService_processIntention = jsonResponse.stringOf("data.service_process.intention");
String dataService_processTransport = jsonResponse.stringOf("data.service_process.transport");
String dataService_processWalk_around = jsonResponse.stringOf("data.service_process.walk_around");
String dataSex = jsonResponse.stringOf("data.sex");
String dataSource = jsonResponse.stringOf("data.source");
String dataStatus = jsonResponse.stringOf("data.status");
String dataStorage = jsonResponse.stringOf("data.storage");
String dataTake_over_date = jsonResponse.stringOf("data.take_over_date");
String dataType = jsonResponse.stringOf("data.type");
String dataUnsubscribe_all_date = jsonResponse.stringOf("data.unsubscribe_all_date");
String dataUnsubscribe_call_date = jsonResponse.stringOf("data.unsubscribe_call_date");
String dataUnsubscribe_email_date = jsonResponse.stringOf("data.unsubscribe_email_date");
String dataUnsubscribe_sms_date = jsonResponse.stringOf("data.unsubscribe_sms_date");
String dataWork_order = jsonResponse.stringOf("data.work_order");
int dataAccountId = jsonResponse.intOf("data.account.id");
String dataAccountCreated_at = jsonResponse.stringOf("data.account.created_at");
String dataAccountUpdated_at = jsonResponse.stringOf("data.account.updated_at");
int dataAccountPartner_id = jsonResponse.intOf("data.account.partner_id");
boolean dataAccountActivity_report = jsonResponse.boolOf("data.account.activity_report");
boolean dataAccountCommercial = jsonResponse.boolOf("data.account.commercial");
boolean dataAccountEvent = jsonResponse.boolOf("data.account.event");
boolean dataAccountLeadxpress = jsonResponse.boolOf("data.account.leadxpress");
boolean dataAccountLoyalty = jsonResponse.boolOf("data.account.loyalty");
boolean dataAccountPhone_up = jsonResponse.boolOf("data.account.phone_up");
boolean dataAccountRenewal = jsonResponse.boolOf("data.account.renewal");
boolean dataAccountSale_table = jsonResponse.boolOf("data.account.sale_table");
boolean dataAccountService = jsonResponse.boolOf("data.account.service");
boolean dataAccountWalk_in = jsonResponse.boolOf("data.account.walk_in");
boolean dataAccountWebboost = jsonResponse.boolOf("data.account.webboost");
boolean dataAccountAccount_manager = jsonResponse.boolOf("data.account.account_manager");
String dataAccountActivation_date = jsonResponse.stringOf("data.account.activation_date");
boolean dataAccountActive = jsonResponse.boolOf("data.account.active");
boolean dataAccountAssigned_lead = jsonResponse.boolOf("data.account.assigned_lead");
boolean dataAccountAuto_renewal = jsonResponse.boolOf("data.account.auto_renewal");
boolean dataAccountAuto_renewal_new = jsonResponse.boolOf("data.account.auto_renewal_new");
boolean dataAccountAuto_renewal_used = jsonResponse.boolOf("data.account.auto_renewal_used");
boolean dataAccountAutomation = jsonResponse.boolOf("data.account.automation");
boolean dataAccountBdc_advisor = jsonResponse.boolOf("data.account.bdc_advisor");
boolean dataAccountCalendar_options = jsonResponse.boolOf("data.account.calendar_options");
boolean dataAccountClient_card_fieldsProcessGas = jsonResponse.boolOf("data.account.client_card_fields.process.gas");
boolean dataAccountClient_card_fieldsProcessRecorded = jsonResponse.boolOf("data.account.client_card_fields.process.recorded");
boolean dataAccountClient_card_fieldsProcessAvailable = jsonResponse.boolOf("data.account.client_card_fields.process.available");
boolean dataAccountClient_card_fieldsProcessDiscounted = jsonResponse.boolOf("data.account.client_card_fields.process.discounted");
boolean dataAccountClient_card_fieldsCommercialProfit = jsonResponse.boolOf("data.account.client_card_fields.commercial.profit");
boolean dataAccountClient_card_fieldsCommercialExclude = jsonResponse.boolOf("data.account.client_card_fields.commercial.exclude");
boolean dataAccountClient_card_fieldsCommercialMeeting = jsonResponse.boolOf("data.account.client_card_fields.commercial.meeting");
boolean dataAccountClient_card_fieldsPerformanceDeposit = jsonResponse.boolOf("data.account.client_card_fields.performance.deposit");
boolean dataAccountClient_card_fieldsPerformanceRefinanced = jsonResponse.boolOf("data.account.client_card_fields.performance.refinanced");
boolean dataAccountClient_card_fieldsPerformanceDealer_tour = jsonResponse.boolOf("data.account.client_card_fields.performance.dealer_tour");
boolean dataAccountClient_card_fieldsPerformanceWalk_around = jsonResponse.boolOf("data.account.client_card_fields.performance.walk_around");
boolean dataAccountClient_card_fieldsPerformanceQualification = jsonResponse.boolOf("data.account.client_card_fields.performance.qualification");
boolean dataAccountClient_card_fieldsPerformanceTwenty_four_hour = jsonResponse.boolOf("data.account.client_card_fields.performance.twenty_four_hour");
boolean dataAccountClient_card_fieldsGeneral_infoBudget = jsonResponse.boolOf("data.account.client_card_fields.general_info.budget");
boolean dataAccountClient_card_fieldsGeneral_infoSector = jsonResponse.boolOf("data.account.client_card_fields.general_info.sector");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_1 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_1");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_2 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_2");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_3 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_3");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_4 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_4");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_5 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_5");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_6 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_6");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_7 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_7");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_8 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_8");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_9 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_9");
boolean dataAccountClient_card_fieldsGeneral_infoCustom_10 = jsonResponse.boolOf("data.account.client_card_fields.general_info.custom_10");
boolean dataAccountClient_card_fieldsGeneral_infoCommunication_preference = jsonResponse.boolOf("data.account.client_card_fields.general_info.communication_preference");
boolean dataAccountClient_card_fieldsWanted_vehicleVin = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.vin");
boolean dataAccountClient_card_fieldsWanted_vehicleFuel = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.fuel");
boolean dataAccountClient_card_fieldsWanted_vehicleRate = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.rate");
boolean dataAccountClient_card_fieldsWanted_vehicleTerm = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.term");
boolean dataAccountClient_card_fieldsWanted_vehicleTire = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.tire");
boolean dataAccountClient_card_fieldsWanted_vehicleYear = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.year");
boolean dataAccountClient_card_fieldsWanted_vehicleColor = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.color");
boolean dataAccountClient_card_fieldsWanted_vehiclePrice = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.price");
boolean dataAccountClient_card_fieldsWanted_vehicleStock = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.stock");
boolean dataAccountClient_card_fieldsWanted_vehicleTotal = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.total");
boolean dataAccountClient_card_fieldsWanted_vehicleBudget = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.budget");
boolean dataAccountClient_card_fieldsWanted_vehicleEngine = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.engine");
boolean dataAccountClient_card_fieldsWanted_vehicleLength = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.length");
boolean dataAccountClient_card_fieldsWanted_vehicleProfit = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.profit");
boolean dataAccountClient_card_fieldsWanted_vehicleSuffix = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.suffix");
boolean dataAccountClient_card_fieldsWanted_vehicleWeight = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.weight");
boolean dataAccountClient_card_fieldsWanted_vehicleComment = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.comment");
boolean dataAccountClient_card_fieldsWanted_vehicleMileage = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.mileage");
boolean dataAccountClient_card_fieldsWanted_vehiclePayment = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.payment");
boolean dataAccountClient_card_fieldsWanted_vehicleBodyType = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.bodyType");
boolean dataAccountClient_card_fieldsWanted_vehicleCategory = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.category");
boolean dataAccountClient_card_fieldsWanted_vehicleModality = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.modality");
boolean dataAccountClient_card_fieldsWanted_vehicleResidual = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.residual");
boolean dataAccountClient_card_fieldsWanted_vehicleSleeping = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.sleeping");
boolean dataAccountClient_card_fieldsWanted_vehicleWarranty = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.warranty");
boolean dataAccountClient_card_fieldsWanted_vehicleFrequency = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.frequency");
boolean dataAccountClient_card_fieldsWanted_vehicleAccessories = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.accessories");
boolean dataAccountClient_card_fieldsWanted_vehicleCategory_rv = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.category_rv");
boolean dataAccountClient_card_fieldsWanted_vehiclePreparation = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.preparation");
boolean dataAccountClient_card_fieldsWanted_vehicleInitial_cash = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.initial_cash");
boolean dataAccountClient_card_fieldsWanted_vehicleOffer_number = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.offer_number");
boolean dataAccountClient_card_fieldsWanted_vehicleOrder_number = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.order_number");
boolean dataAccountClient_card_fieldsWanted_vehicleTransmission = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.transmission");
boolean dataAccountClient_card_fieldsWanted_vehicleDocumentation = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.documentation");
boolean dataAccountClient_card_fieldsWanted_vehicleDrivingWheels = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.drivingWheels");
boolean dataAccountClient_card_fieldsWanted_vehicleColor_exterior = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.color_exterior");
boolean dataAccountClient_card_fieldsWanted_vehicleColor_interior = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.color_interior");
boolean dataAccountClient_card_fieldsWanted_vehicleAllowed_mileage = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.allowed_mileage");
boolean dataAccountClient_card_fieldsWanted_vehicleSecurity_deposit = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.security_deposit");
boolean dataAccountClient_card_fieldsWanted_vehicleEnd_contract_date = jsonResponse.boolOf("data.account.client_card_fields.wanted_vehicle.end_contract_date");
boolean dataAccountClient_card_fieldsExchange_vehicleVin = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.vin");
boolean dataAccountClient_card_fieldsExchange_vehicleFuel = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.fuel");
boolean dataAccountClient_card_fieldsExchange_vehicleLink = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.link");
boolean dataAccountClient_card_fieldsExchange_vehicleRate = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.rate");
boolean dataAccountClient_card_fieldsExchange_vehicleTerm = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.term");
boolean dataAccountClient_card_fieldsExchange_vehicleYear = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.year");
boolean dataAccountClient_card_fieldsExchange_vehicleColor = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.color");
boolean dataAccountClient_card_fieldsExchange_vehiclePrice = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.price");
boolean dataAccountClient_card_fieldsExchange_vehicleStock = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.stock");
boolean dataAccountClient_card_fieldsExchange_vehicleValue = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.value");
boolean dataAccountClient_card_fieldsExchange_vehicleBudget = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.budget");
boolean dataAccountClient_card_fieldsExchange_vehicleEngine = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.engine");
boolean dataAccountClient_card_fieldsExchange_vehicleLength = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.length");
boolean dataAccountClient_card_fieldsExchange_vehicleProfit = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.profit");
boolean dataAccountClient_card_fieldsExchange_vehicleSuffix = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.suffix");
boolean dataAccountClient_card_fieldsExchange_vehicleWeight = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.weight");
boolean dataAccountClient_card_fieldsExchange_vehicleBalance = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.balance");
boolean dataAccountClient_card_fieldsExchange_vehicleComment = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.comment");
boolean dataAccountClient_card_fieldsExchange_vehicleMileage = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.mileage");
boolean dataAccountClient_card_fieldsExchange_vehiclePayment = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.payment");
boolean dataAccountClient_card_fieldsExchange_vehicleRenewal = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.renewal");
boolean dataAccountClient_card_fieldsExchange_vehicleSold_by = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.sold_by");
boolean dataAccountClient_card_fieldsExchange_vehicleBodyType = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.bodyType");
boolean dataAccountClient_card_fieldsExchange_vehicleCategory = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.category");
boolean dataAccountClient_card_fieldsExchange_vehicleModality = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.modality");
boolean dataAccountClient_card_fieldsExchange_vehicleResidual = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.residual");
boolean dataAccountClient_card_fieldsExchange_vehicleSleeping = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.sleeping");
boolean dataAccountClient_card_fieldsExchange_vehicleWarranty = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.warranty");
boolean dataAccountClient_card_fieldsExchange_vehicleCondition = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.condition");
boolean dataAccountClient_card_fieldsExchange_vehicleFrequency = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.frequency");
boolean dataAccountClient_card_fieldsExchange_vehicleIntention = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.intention");
boolean dataAccountClient_card_fieldsExchange_vehicleRefinance = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.refinance");
boolean dataAccountClient_card_fieldsExchange_vehicleRequested = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.requested");
boolean dataAccountClient_card_fieldsExchange_vehicleSold_date = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.sold_date");
boolean dataAccountClient_card_fieldsExchange_vehicleCategory_rv = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.category_rv");
boolean dataAccountClient_card_fieldsExchange_vehicleInstitution = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.institution");
boolean dataAccountClient_card_fieldsExchange_vehicleInitial_cash = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.initial_cash");
boolean dataAccountClient_card_fieldsExchange_vehicleOffer_number = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.offer_number");
boolean dataAccountClient_card_fieldsExchange_vehicleTransmission = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.transmission");
boolean dataAccountClient_card_fieldsExchange_vehicleDrivingWheels = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.drivingWheels");
boolean dataAccountClient_card_fieldsExchange_vehicleColor_exterior = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.color_exterior");
boolean dataAccountClient_card_fieldsExchange_vehicleColor_interior = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.color_interior");
boolean dataAccountClient_card_fieldsExchange_vehicleAllowed_mileage = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.allowed_mileage");
boolean dataAccountClient_card_fieldsExchange_vehicleSecurity_deposit = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.security_deposit");
boolean dataAccountClient_card_fieldsExchange_vehicleEnd_contract_date = jsonResponse.boolOf("data.account.client_card_fields.exchange_vehicle.end_contract_date");
boolean dataAccountClient_number = jsonResponse.boolOf("data.account.client_number");
boolean dataAccountConfirmation_appt = jsonResponse.boolOf("data.account.confirmation_appt");
boolean dataAccountCredit = jsonResponse.boolOf("data.account.credit");
boolean dataAccountCsi = jsonResponse.boolOf("data.account.csi");
boolean dataAccountCsi_used = jsonResponse.boolOf("data.account.csi_used");
String dataAccountDefault_deliveryman_user_id = jsonResponse.stringOf("data.account.default_deliveryman_user_id");
boolean dataAccountDelivered_by = jsonResponse.boolOf("data.account.delivered_by");
boolean dataAccountDisable_communication_audio = jsonResponse.boolOf("data.account.disable_communication_audio");
boolean dataAccountDuplicates = jsonResponse.boolOf("data.account.duplicates");
boolean dataAccountGuest_action = jsonResponse.boolOf("data.account.guest_action");
boolean dataAccountEmail_client = jsonResponse.boolOf("data.account.email_client");
boolean dataAccountIn_turn = jsonResponse.boolOf("data.account.in_turn");
boolean dataAccountIn_turn_director_management = jsonResponse.boolOf("data.account.in_turn_director_management");
boolean dataAccountLeads_other_division = jsonResponse.boolOf("data.account.leads_other_division");
int dataAccountLeadxpress_optionPriority = jsonResponse.intOf("data.account.leadxpress_option.priority");
int dataAccountLeadxpress_optionReminderFrequency = jsonResponse.intOf("data.account.leadxpress_option.reminder.frequency");
int dataAccountLeadxpress_optionReminderRecurrence = jsonResponse.intOf("data.account.leadxpress_option.reminder.recurrence");
boolean dataAccountLeadxpress_optionScheduleAccount = jsonResponse.boolOf("data.account.leadxpress_option.schedule.account");
boolean dataAccountLeadxpress_optionScheduleAdvisor = jsonResponse.boolOf("data.account.leadxpress_option.schedule.advisor");
boolean dataAccountLimited_audio_access = jsonResponse.boolOf("data.account.limited_audio_access");
String dataAccountLogo = jsonResponse.stringOf("data.account.logo");
String dataAccountLogo_en = jsonResponse.stringOf("data.account.logo_en");
boolean dataAccountMandatory_coordinate = jsonResponse.boolOf("data.account.mandatory_coordinate");
boolean dataAccountManually_status = jsonResponse.boolOf("data.account.manually_status");
String dataAccountMerge_rule = jsonResponse.stringOf("data.account.merge_rule");
int dataAccountMonth_start_day = jsonResponse.intOf("data.account.month_start_day");
String dataAccountName = jsonResponse.stringOf("data.account.name");
boolean dataAccountNiotext = jsonResponse.boolOf("data.account.niotext");
boolean dataAccountNiotext_phone = jsonResponse.boolOf("data.account.niotext_phone");
String dataAccountPhone = jsonResponse.stringOf("data.account.phone");
boolean dataAccountPower_sport = jsonResponse.boolOf("data.account.power_sport");
boolean dataAccountProcess = jsonResponse.boolOf("data.account.process");
boolean dataAccountRecreative_special = jsonResponse.boolOf("data.account.recreative_special");
boolean dataAccountResult_date_validation = jsonResponse.boolOf("data.account.result_date_validation");
boolean dataAccountSale_accessories = jsonResponse.boolOf("data.account.sale_accessories");
boolean dataAccountSale_by_phone = jsonResponse.boolOf("data.account.sale_by_phone");
boolean dataAccountSale_date_month = jsonResponse.boolOf("data.account.sale_date_month");
boolean dataAccountSale_table_optionsAccessory_column = jsonResponse.boolOf("data.account.sale_table_options.accessory_column");
boolean dataAccountSale_table_optionsCommercial_column = jsonResponse.boolOf("data.account.sale_table_options.commercial_column");
boolean dataAccountSale_table_optionsDivision_grouped_total_column = jsonResponse.boolOf("data.account.sale_table_options.division_grouped_total_column");
boolean dataAccountSale_validation = jsonResponse.boolOf("data.account.sale_validation");
boolean dataAccountScan = jsonResponse.boolOf("data.account.scan");
boolean dataAccountStock_required_for_sale = jsonResponse.boolOf("data.account.stock_required_for_sale");
boolean dataAccountTake_over_director = jsonResponse.boolOf("data.account.take_over_director");
boolean dataAccountTrade_report = jsonResponse.boolOf("data.account.trade_report");
boolean dataAccountUnrestricted_assignment = jsonResponse.boolOf("data.account.unrestricted_assignment");
boolean dataAccountUnsubscribe = jsonResponse.boolOf("data.account.unsubscribe");
boolean dataAccountUntreated_lead = jsonResponse.boolOf("data.account.untreated_lead");
boolean dataAccountVehicle_model_text = jsonResponse.boolOf("data.account.vehicle_model_text");
boolean dataAccountVehicle_text = jsonResponse.boolOf("data.account.vehicle_text");
boolean dataAccountVerified_sale = jsonResponse.boolOf("data.account.verified_sale");
boolean dataAccountVin_decoder = jsonResponse.boolOf("data.account.vin_decoder");
String dataAccountWaiting_sale_date = jsonResponse.stringOf("data.account.waiting_sale_date");
boolean dataAccountWaiting_sale_option = jsonResponse.boolOf("data.account.waiting_sale_option");
String dataAdvisor = jsonResponse.stringOf("data.advisor");
String dataBdc = jsonResponse.stringOf("data.bdc");
String dataCommercial = jsonResponse.stringOf("data.commercial");
String dataService_advisor = jsonResponse.stringOf("data.service_advisor");
String dataService_agent = jsonResponse.stringOf("data.service_agent");
int i = 0;
int count_i = jsonResponse.sizeOfArray("data.emails");
while (i < count_i) {
jsonResponse.setI(i);
id = jsonResponse.intOf("data.emails[i].id");
created_at = jsonResponse.stringOf("data.emails[i].created_at");
updated_at = jsonResponse.stringOf("data.emails[i].updated_at");
lead_id = jsonResponse.intOf("data.emails[i].lead_id");
address = jsonResponse.stringOf("data.emails[i].address");
v_type = jsonResponse.stringOf("data.emails[i].type");
valid = jsonResponse.boolOf("data.emails[i].valid");
i = i + 1;
}
i = 0;
count_i = jsonResponse.sizeOfArray("data.phones");
while (i < count_i) {
jsonResponse.setI(i);
id = jsonResponse.intOf("data.phones[i].id");
created_at = jsonResponse.stringOf("data.phones[i].created_at");
updated_at = jsonResponse.stringOf("data.phones[i].updated_at");
lead_id = jsonResponse.intOf("data.phones[i].lead_id");
extension = jsonResponse.stringOf("data.phones[i].extension");
number = jsonResponse.stringOf("data.phones[i].number");
v_type = jsonResponse.stringOf("data.phones[i].type");
valid = jsonResponse.boolOf("data.phones[i].valid");
validated = jsonResponse.boolOf("data.phones[i].validated");
mobile = jsonResponse.boolOf("data.phones[i].mobile");
i = i + 1;
}
i = 0;
count_i = jsonResponse.sizeOfArray("data.vehicles");
while (i < count_i) {
jsonResponse.setI(i);
id = jsonResponse.intOf("data.vehicles[i].id");
created_at = jsonResponse.stringOf("data.vehicles[i].created_at");
updated_at = jsonResponse.stringOf("data.vehicles[i].updated_at");
lead_id = jsonResponse.intOf("data.vehicles[i].lead_id");
accessories = jsonResponse.stringOf("data.vehicles[i].accessories");
allowed_odometer = jsonResponse.stringOf("data.vehicles[i].allowed_odometer");
balance = jsonResponse.intOf("data.vehicles[i].balance");
budget_max = jsonResponse.stringOf("data.vehicles[i].budget_max");
budget_min = jsonResponse.stringOf("data.vehicles[i].budget_min");
cash_down = jsonResponse.stringOf("data.vehicles[i].cash_down");
category = jsonResponse.stringOf("data.vehicles[i].category");
category_rv = jsonResponse.stringOf("data.vehicles[i].category_rv");
client_number = jsonResponse.stringOf("data.vehicles[i].client_number");
color_exterior = jsonResponse.stringOf("data.vehicles[i].color_exterior");
color_interior = jsonResponse.stringOf("data.vehicles[i].color_interior");
comment = jsonResponse.stringOf("data.vehicles[i].comment");
condition = jsonResponse.stringOf("data.vehicles[i].condition");
end_contract_date = jsonResponse.stringOf("data.vehicles[i].end_contract_date");
end_warranty_date = jsonResponse.stringOf("data.vehicles[i].end_warranty_date");
engine = jsonResponse.stringOf("data.vehicles[i].engine");
extended_warranty = jsonResponse.stringOf("data.vehicles[i].extended_warranty");
fuel = jsonResponse.stringOf("data.vehicles[i].fuel");
length_max = jsonResponse.stringOf("data.vehicles[i].length_max");
length_min = jsonResponse.stringOf("data.vehicles[i].length_min");
license_plate = jsonResponse.stringOf("data.vehicles[i].license_plate");
make = jsonResponse.stringOf("data.vehicles[i].make");
modality = jsonResponse.stringOf("data.vehicles[i].modality");
model = jsonResponse.stringOf("data.vehicles[i].model");
odometer = jsonResponse.stringOf("data.vehicles[i].odometer");
offer_number = jsonResponse.stringOf("data.vehicles[i].offer_number");
v_option = jsonResponse.stringOf("data.vehicles[i].option");
order_number = jsonResponse.stringOf("data.vehicles[i].order_number");
payment = jsonResponse.stringOf("data.vehicles[i].payment");
payment_frequency = jsonResponse.stringOf("data.vehicles[i].payment_frequency");
preparation = jsonResponse.stringOf("data.vehicles[i].preparation");
price = jsonResponse.stringOf("data.vehicles[i].price");
profit = jsonResponse.stringOf("data.vehicles[i].profit");
purchase_date = jsonResponse.stringOf("data.vehicles[i].purchase_date");
rate = jsonResponse.stringOf("data.vehicles[i].rate");
recall = jsonResponse.stringOf("data.vehicles[i].recall");
recorded_date = jsonResponse.stringOf("data.vehicles[i].recorded_date");
residual = jsonResponse.stringOf("data.vehicles[i].residual");
security_deposit = jsonResponse.stringOf("data.vehicles[i].security_deposit");
sleeping = jsonResponse.stringOf("data.vehicles[i].sleeping");
sold = jsonResponse.boolOf("data.vehicles[i].sold");
sold_by = jsonResponse.stringOf("data.vehicles[i].sold_by");
sold_date = jsonResponse.stringOf("data.vehicles[i].sold_date");
stock = jsonResponse.stringOf("data.vehicles[i].stock");
stock_state = jsonResponse.stringOf("data.vehicles[i].stock_state");
term = jsonResponse.stringOf("data.vehicles[i].term");
tire = jsonResponse.boolOf("data.vehicles[i].tire");
transmission = jsonResponse.stringOf("data.vehicles[i].transmission");
trim = jsonResponse.stringOf("data.vehicles[i].trim");
v_type = jsonResponse.stringOf("data.vehicles[i].type");
url = jsonResponse.stringOf("data.vehicles[i].url");
value = jsonResponse.stringOf("data.vehicles[i].value");
vin = jsonResponse.stringOf("data.vehicles[i].vin");
warranty = jsonResponse.stringOf("data.vehicles[i].warranty");
weight = jsonResponse.stringOf("data.vehicles[i].weight");
year = jsonResponse.stringOf("data.vehicles[i].year");
year_max = jsonResponse.stringOf("data.vehicles[i].year_max");
year_min = jsonResponse.stringOf("data.vehicles[i].year_min");
i = i + 1;
}
i = 0;
count_i = jsonResponse.sizeOfArray("data.related_ids");
while (i < count_i) {
jsonResponse.setI(i);
i = i + 1;
}
}
}