/* Options: Date: 2026-04-30 21:02:26 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: SearchPurchaseHistoryRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/purchase-history/search", Verbs="GET") public static class SearchPurchaseHistoryRequest extends PagingRequest implements IReturn> { public String name = null; public Integer workflowId = null; public Integer equipmentId = null; public Integer providerId = null; public Date createdFrom = null; public Date createdTo = null; public Boolean onlyMissingEquipment = null; public String getName() { return name; } public SearchPurchaseHistoryRequest setName(String value) { this.name = value; return this; } public Integer getWorkflowId() { return workflowId; } public SearchPurchaseHistoryRequest setWorkflowId(Integer value) { this.workflowId = value; return this; } public Integer getEquipmentId() { return equipmentId; } public SearchPurchaseHistoryRequest setEquipmentId(Integer value) { this.equipmentId = value; return this; } public Integer getProviderId() { return providerId; } public SearchPurchaseHistoryRequest setProviderId(Integer value) { this.providerId = value; return this; } public Date getCreatedFrom() { return createdFrom; } public SearchPurchaseHistoryRequest setCreatedFrom(Date value) { this.createdFrom = value; return this; } public Date getCreatedTo() { return createdTo; } public SearchPurchaseHistoryRequest setCreatedTo(Date value) { this.createdTo = value; return this; } public Boolean isOnlyMissingEquipment() { return onlyMissingEquipment; } public SearchPurchaseHistoryRequest setOnlyMissingEquipment(Boolean value) { this.onlyMissingEquipment = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } public static class PageResponse implements IResponseRequest { public Integer code = null; public String message = null; public ArrayList data = null; public Pagination pagination = null; public Integer getCode() { return code; } public PageResponse setCode(Integer value) { this.code = value; return this; } public String getMessage() { return message; } public PageResponse setMessage(String value) { this.message = value; return this; } public ArrayList getData() { return data; } public PageResponse setData(ArrayList value) { this.data = value; return this; } public Pagination getPagination() { return pagination; } public PageResponse setPagination(Pagination value) { this.pagination = value; return this; } } public static class PagingRequest { public Integer page = null; public Integer limit = null; public Integer getPage() { return page; } public PagingRequest setPage(Integer value) { this.page = value; return this; } public Integer getLimit() { return limit; } public PagingRequest setLimit(Integer value) { this.limit = value; return this; } } }