/* Options: Date: 2026-10-01 11:24:07 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: OwnerCardsPreviewDiscountRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/OrderOwnerCards/previewDiscount", Verbs="POST") public static class OwnerCardsPreviewDiscountRequest implements IReturn { public String code = null; public ArrayList ownerCardTypeIds = null; public String fullPhoneNumber = null; public Boolean isSubscription = null; public String getCode() { return code; } public OwnerCardsPreviewDiscountRequest setCode(String value) { this.code = value; return this; } public ArrayList getOwnerCardTypeIds() { return ownerCardTypeIds; } public OwnerCardsPreviewDiscountRequest setOwnerCardTypeIds(ArrayList value) { this.ownerCardTypeIds = value; return this; } public String getFullPhoneNumber() { return fullPhoneNumber; } public OwnerCardsPreviewDiscountRequest setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; } public Boolean getIsSubscription() { return isSubscription; } public OwnerCardsPreviewDiscountRequest setIsSubscription(Boolean value) { this.isSubscription = value; return this; } private static Object responseType = PreviewDiscountResult.class; public Object getResponseType() { return responseType; } } public static class PreviewDiscountResult { public String status = null; public String reason = null; public LocalizedMessage message = null; public Integer discountCodeId = null; public Integer discountCodeTypeId = null; public DiscountSummary discount = null; public ArrayList lines = null; public BigDecimal subtotalBefore = null; public BigDecimal subtotalAfter = null; public BigDecimal totalSavings = null; public String currency = null; public Integer statusCode = null; public String getStatus() { return status; } public PreviewDiscountResult setStatus(String value) { this.status = value; return this; } public String getReason() { return reason; } public PreviewDiscountResult setReason(String value) { this.reason = value; return this; } public LocalizedMessage getMessage() { return message; } public PreviewDiscountResult setMessage(LocalizedMessage value) { this.message = value; return this; } public Integer getDiscountCodeId() { return discountCodeId; } public PreviewDiscountResult setDiscountCodeId(Integer value) { this.discountCodeId = value; return this; } public Integer getDiscountCodeTypeId() { return discountCodeTypeId; } public PreviewDiscountResult setDiscountCodeTypeId(Integer value) { this.discountCodeTypeId = value; return this; } public DiscountSummary getDiscount() { return discount; } public PreviewDiscountResult setDiscount(DiscountSummary value) { this.discount = value; return this; } public ArrayList getLines() { return lines; } public PreviewDiscountResult setLines(ArrayList value) { this.lines = value; return this; } public BigDecimal getSubtotalBefore() { return subtotalBefore; } public PreviewDiscountResult setSubtotalBefore(BigDecimal value) { this.subtotalBefore = value; return this; } public BigDecimal getSubtotalAfter() { return subtotalAfter; } public PreviewDiscountResult setSubtotalAfter(BigDecimal value) { this.subtotalAfter = value; return this; } public BigDecimal getTotalSavings() { return totalSavings; } public PreviewDiscountResult setTotalSavings(BigDecimal value) { this.totalSavings = value; return this; } public String getCurrency() { return currency; } public PreviewDiscountResult setCurrency(String value) { this.currency = value; return this; } public Integer getStatusCode() { return statusCode; } public PreviewDiscountResult setStatusCode(Integer value) { this.statusCode = value; return this; } } public static class LocalizedMessage { public String is = null; public String en = null; public String getIs() { return is; } public LocalizedMessage setIs(String value) { this.is = value; return this; } public String getEn() { return en; } public LocalizedMessage setEn(String value) { this.en = value; return this; } } public static class DiscountSummary { public String type = null; public BigDecimal value = null; public String getType() { return type; } public DiscountSummary setType(String value) { this.type = value; return this; } public BigDecimal getValue() { return value; } public DiscountSummary setValue(BigDecimal value) { this.value = value; return this; } } public static class DiscountLineResult { public Integer ticketTypeId = null; public Integer count = null; public Boolean applied = null; public BigDecimal unitBefore = null; public BigDecimal unitAfter = null; public BigDecimal lineBefore = null; public BigDecimal lineAfter = null; public Integer getTicketTypeId() { return ticketTypeId; } public DiscountLineResult setTicketTypeId(Integer value) { this.ticketTypeId = value; return this; } public Integer getCount() { return count; } public DiscountLineResult setCount(Integer value) { this.count = value; return this; } public Boolean isApplied() { return applied; } public DiscountLineResult setApplied(Boolean value) { this.applied = value; return this; } public BigDecimal getUnitBefore() { return unitBefore; } public DiscountLineResult setUnitBefore(BigDecimal value) { this.unitBefore = value; return this; } public BigDecimal getUnitAfter() { return unitAfter; } public DiscountLineResult setUnitAfter(BigDecimal value) { this.unitAfter = value; return this; } public BigDecimal getLineBefore() { return lineBefore; } public DiscountLineResult setLineBefore(BigDecimal value) { this.lineBefore = value; return this; } public BigDecimal getLineAfter() { return lineAfter; } public DiscountLineResult setLineAfter(BigDecimal value) { this.lineAfter = value; return this; } } }