Search in sources :

Example 1 with StatusDetail

use of com.netsuite.webservices.v2016_2.platform.core.StatusDetail in project components by Talend.

the class NetSuiteClientServiceImpl method toNsStatus.

public static NsStatus toNsStatus(Status status) {
    if (status == null) {
        return null;
    }
    NsStatus nsStatus = new NsStatus();
    nsStatus.setSuccess(status.getIsSuccess());
    for (StatusDetail detail : status.getStatusDetail()) {
        nsStatus.getDetails().add(toNsStatusDetail(detail));
    }
    return nsStatus;
}
Also used : StatusDetail(com.netsuite.webservices.v2016_2.platform.core.StatusDetail) NsStatus(org.talend.components.netsuite.client.NsStatus)

Example 2 with StatusDetail

use of com.netsuite.webservices.v2016_2.platform.core.StatusDetail in project components by Talend.

the class NetSuiteClientServiceImpl method toNsStatus.

public static NsStatus toNsStatus(Status status) {
    if (status == null) {
        return null;
    }
    NsStatus nsStatus = new NsStatus();
    nsStatus.setSuccess(status.getIsSuccess());
    for (StatusDetail detail : status.getStatusDetail()) {
        nsStatus.getDetails().add(toNsStatusDetail(detail));
    }
    return nsStatus;
}
Also used : StatusDetail(com.netsuite.webservices.v2014_2.platform.core.StatusDetail) NsStatus(org.talend.components.netsuite.client.NsStatus)

Aggregations

NsStatus (org.talend.components.netsuite.client.NsStatus)2 StatusDetail (com.netsuite.webservices.v2014_2.platform.core.StatusDetail)1 StatusDetail (com.netsuite.webservices.v2016_2.platform.core.StatusDetail)1