Search in sources :

Example 1 with ResultSyncLead

use of com.marketo.mktows.ResultSyncLead in project components by Talend.

the class MarketoSOAPClientTest method getSyncLeadResult.

public SuccessSyncLead getSyncLeadResult() {
    SuccessSyncLead resut = new SuccessSyncLead();
    ResultSyncLead rsl = new ResultSyncLead();
    rsl.setLeadId(12345);
    SyncStatus status = new SyncStatus();
    status.setLeadId(12345);
    status.setStatus(LeadSyncStatus.CREATED);
    status.setError(objectFactory.createSyncStatusError(null));
    rsl.setSyncStatus(status);
    LeadRecord r = objectFactory.createLeadRecord();
    r.setId(objectFactory.createLeadRecordId(12345));
    r.setEmail(objectFactory.createLeadRecordEmail("t@t.com"));
    r.setForeignSysPersonId(objectFactory.createLeadRecordForeignSysPersonId(""));
    r.setForeignSysType(objectFactory.createLeadRecordForeignSysType(null));
    rsl.setLeadRecord(objectFactory.createResultSyncLeadLeadRecord(r));
    resut.setResult(rsl);
    return resut;
}
Also used : ArrayOfLeadRecord(com.marketo.mktows.ArrayOfLeadRecord) LeadRecord(com.marketo.mktows.LeadRecord) ResultSyncLead(com.marketo.mktows.ResultSyncLead) ArrayOfSyncStatus(com.marketo.mktows.ArrayOfSyncStatus) LeadSyncStatus(com.marketo.mktows.LeadSyncStatus) SyncStatus(com.marketo.mktows.SyncStatus) SuccessSyncLead(com.marketo.mktows.SuccessSyncLead)

Aggregations

ArrayOfLeadRecord (com.marketo.mktows.ArrayOfLeadRecord)1 ArrayOfSyncStatus (com.marketo.mktows.ArrayOfSyncStatus)1 LeadRecord (com.marketo.mktows.LeadRecord)1 LeadSyncStatus (com.marketo.mktows.LeadSyncStatus)1 ResultSyncLead (com.marketo.mktows.ResultSyncLead)1 SuccessSyncLead (com.marketo.mktows.SuccessSyncLead)1 SyncStatus (com.marketo.mktows.SyncStatus)1