com.intershop.oms.test.businessobject.OMSMultiStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iom-test-framework Show documentation
Show all versions of iom-test-framework Show documentation
An "SDK"-style library improving test automation for Intershop Order Management.
package com.intershop.oms.test.businessobject;
import java.util.ArrayList;
import java.util.List;
import com.intershop.oms.rest.transmission.v2_0.model.Link;
import lombok.EqualsAndHashCode;
/**
* Contains multiple responses `MultiStatusResponse` for different requests, that was done within one single request.
*/
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@ToString
@Accessors(chain = true)
public class OMSMultiStatus extends OMSBusinessObject
{
private Link link = null;
private Integer status = null;
private List errors = null;
public OMSMultiStatus addErrorsItem(OMSError errorsItem)
{
if (errors == null)
{
errors = new ArrayList<>();
}
errors.add(errorsItem);
return this;
}
}