/* Options: Date: 2024-12-29 04:21:41 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: FinanceCreateSaleRequest.* //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="/Dynamics/CreateSale/{regent_id}", Verbs="POST") public static class FinanceCreateSaleRequest implements IReturn { public Integer regent_id = null; public BigDecimal amount = null; public String code = null; public String rebate_code = null; public BigDecimal rebate_amount = null; public String payment_id = null; public String reporting_term = null; public ArrayList sale_items = null; public Integer getRegentId() { return regent_id; } public FinanceCreateSaleRequest setRegentId(Integer value) { this.regent_id = value; return this; } public BigDecimal getAmount() { return amount; } public FinanceCreateSaleRequest setAmount(BigDecimal value) { this.amount = value; return this; } public String getCode() { return code; } public FinanceCreateSaleRequest setCode(String value) { this.code = value; return this; } public String getRebateCode() { return rebate_code; } public FinanceCreateSaleRequest setRebateCode(String value) { this.rebate_code = value; return this; } public BigDecimal getRebateAmount() { return rebate_amount; } public FinanceCreateSaleRequest setRebateAmount(BigDecimal value) { this.rebate_amount = value; return this; } public String getPaymentId() { return payment_id; } public FinanceCreateSaleRequest setPaymentId(String value) { this.payment_id = value; return this; } public String getReportingTerm() { return reporting_term; } public FinanceCreateSaleRequest setReportingTerm(String value) { this.reporting_term = value; return this; } public ArrayList getSaleItems() { return sale_items; } public FinanceCreateSaleRequest setSaleItems(ArrayList value) { this.sale_items = value; return this; } private static Object responseType = ResponseStatus.class; public Object getResponseType() { return responseType; } } @DataContract public static class ResponseStatus { @DataMember(Order=1) public String errorCode = null; @DataMember(Order=2) public String message = null; @DataMember(Order=3) public String stackTrace = null; @DataMember(Order=4) public ArrayList errors = null; @DataMember(Order=5) public HashMap meta = null; public String getErrorCode() { return errorCode; } public ResponseStatus setErrorCode(String value) { this.errorCode = value; return this; } public String getMessage() { return message; } public ResponseStatus setMessage(String value) { this.message = value; return this; } public String getStackTrace() { return stackTrace; } public ResponseStatus setStackTrace(String value) { this.stackTrace = value; return this; } public ArrayList getErrors() { return errors; } public ResponseStatus setErrors(ArrayList value) { this.errors = value; return this; } public HashMap getMeta() { return meta; } public ResponseStatus setMeta(HashMap value) { this.meta = value; return this; } } public static class FinanceCreateSaleItemsRequest { public BigDecimal amount = null; public String code = null; public BigDecimal getAmount() { return amount; } public FinanceCreateSaleItemsRequest setAmount(BigDecimal value) { this.amount = value; return this; } public String getCode() { return code; } public FinanceCreateSaleItemsRequest setCode(String value) { this.code = value; return this; } } }