/* Options: Date: 2026-09-09 10:58:15 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://services.acct.2service.nl //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: GetPartInfo.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/dealers/part", Verbs="GET") public static class GetPartInfo extends AuthenticatedRequest implements IReturn { /** * Part number to retrieve info for. */ @ApiMember(Description="Part number to retrieve info for.", IsRequired=true) public String PartNumber = null; public String getPartNumber() { return PartNumber; } public GetPartInfo setPartNumber(String value) { this.PartNumber = value; return this; } private static Object responseType = PartInfoResponse.class; public Object getResponseType() { return responseType; } } public static class PartInfoResponse extends OperationResult_1 { } public static class AuthenticatedRequest { /** * Session token received from successful authentication. */ @ApiMember(Description="Session token received from successful authentication.", IsRequired=true, ParameterType="query") public String SessionToken = null; public String getSessionToken() { return SessionToken; } public AuthenticatedRequest setSessionToken(String value) { this.SessionToken = value; return this; } } public static class OperationResult_1 extends OperationResult { /** * Result value */ @ApiMember(Description="Result value", ParameterType="model") public T Result = null; public T getResult() { return Result; } public OperationResult_1 setResult(T value) { this.Result = value; return this; } } public static class PartInfoResult { /** * Unique ID for the part. */ @ApiMember(Description="Unique ID for the part.") public Integer Id = null; /** * Part number. */ @ApiMember(Description="Part number.") public String PartNumber = null; /** * Description of the part. */ @ApiMember(Description="Description of the part.") public String Description = null; /** * Part manufacturer. */ @ApiMember(Description="Part manufacturer.") public String Manufacturer = null; /** * Determines if the part can be ordered. */ @ApiMember(Description="Determines if the part can be ordered.") public Boolean CanBeOrdered = null; /** * Textual representation of the status of the part. */ @ApiMember(Description="Textual representation of the status of the part.") public String StatusText = null; /** * Available stock to order. */ @ApiMember(Description="Available stock to order.") public Integer AvailableStockQuantity = null; /** * Average days needed for delivery. */ @ApiMember(Description="Average days needed for delivery.") public Integer AverageDeliveryInDays = null; /** * Price of a single unit, excluding VAT. */ @ApiMember(Description="Price of a single unit, excluding VAT.") public BigDecimal UnitPrice = null; /** * EAN number. */ @ApiMember(Description="EAN number.") public String EanNumber = null; /** * Images */ @ApiMember(Description="Images") public ArrayList Images = null; /** * Secondary article numbers */ @ApiMember(Description="Secondary article numbers") public ArrayList SecondaryArticleNumbers = null; /** * Replacement article numbers */ @ApiMember(Description="Replacement article numbers") public ArrayList ReplacementArticleNumbers = null; /** * Stock quantities */ @ApiMember(Description="Stock quantities") public ArrayList StockQuantities = null; public Integer getId() { return Id; } public PartInfoResult setId(Integer value) { this.Id = value; return this; } public String getPartNumber() { return PartNumber; } public PartInfoResult setPartNumber(String value) { this.PartNumber = value; return this; } public String getDescription() { return Description; } public PartInfoResult setDescription(String value) { this.Description = value; return this; } public String getManufacturer() { return Manufacturer; } public PartInfoResult setManufacturer(String value) { this.Manufacturer = value; return this; } public Boolean isCanBeOrdered() { return CanBeOrdered; } public PartInfoResult setCanBeOrdered(Boolean value) { this.CanBeOrdered = value; return this; } public String getStatusText() { return StatusText; } public PartInfoResult setStatusText(String value) { this.StatusText = value; return this; } public Integer getAvailableStockQuantity() { return AvailableStockQuantity; } public PartInfoResult setAvailableStockQuantity(Integer value) { this.AvailableStockQuantity = value; return this; } public Integer getAverageDeliveryInDays() { return AverageDeliveryInDays; } public PartInfoResult setAverageDeliveryInDays(Integer value) { this.AverageDeliveryInDays = value; return this; } public BigDecimal getUnitPrice() { return UnitPrice; } public PartInfoResult setUnitPrice(BigDecimal value) { this.UnitPrice = value; return this; } public String getEanNumber() { return EanNumber; } public PartInfoResult setEanNumber(String value) { this.EanNumber = value; return this; } public ArrayList getImages() { return Images; } public PartInfoResult setImages(ArrayList value) { this.Images = value; return this; } public ArrayList getSecondaryArticleNumbers() { return SecondaryArticleNumbers; } public PartInfoResult setSecondaryArticleNumbers(ArrayList value) { this.SecondaryArticleNumbers = value; return this; } public ArrayList getReplacementArticleNumbers() { return ReplacementArticleNumbers; } public PartInfoResult setReplacementArticleNumbers(ArrayList value) { this.ReplacementArticleNumbers = value; return this; } public ArrayList getStockQuantities() { return StockQuantities; } public PartInfoResult setStockQuantities(ArrayList value) { this.StockQuantities = value; return this; } } public static class OperationResult { /** * Specifies if the operation was successful. */ @ApiMember(Description="Specifies if the operation was successful.", ParameterType="model") public Boolean IsSuccessful = null; /** * States error message in case of unsuccessful operation. */ @ApiMember(Description="States error message in case of unsuccessful operation.", ParameterType="model") public String ErrorMessage = null; public Boolean getIsSuccessful() { return IsSuccessful; } public OperationResult setIsSuccessful(Boolean value) { this.IsSuccessful = value; return this; } public String getErrorMessage() { return ErrorMessage; } public OperationResult setErrorMessage(String value) { this.ErrorMessage = value; return this; } } public static class PartInfoResultImage { /** * Image number */ @ApiMember(Description="Image number") public Integer ImageNumber = null; /** * Image URL */ @ApiMember(Description="Image URL") public String ImageUrl = null; public Integer getImageNumber() { return ImageNumber; } public PartInfoResultImage setImageNumber(Integer value) { this.ImageNumber = value; return this; } public String getImageUrl() { return ImageUrl; } public PartInfoResultImage setImageUrl(String value) { this.ImageUrl = value; return this; } } public static class PartStockQuantity { /** * Location ID */ @ApiMember(Description="Location ID") public Integer LocationId = null; /** * Location code */ @ApiMember(Description="Location code") public String LocationCode = null; /** * Stock quantity in location */ @ApiMember(Description="Stock quantity in location") public Integer StockQuantity = null; public Integer getLocationId() { return LocationId; } public PartStockQuantity setLocationId(Integer value) { this.LocationId = value; return this; } public String getLocationCode() { return LocationCode; } public PartStockQuantity setLocationCode(String value) { this.LocationCode = value; return this; } public Integer getStockQuantity() { return StockQuantity; } public PartStockQuantity setStockQuantity(Integer value) { this.StockQuantity = value; return this; } } }