/* Options: Date: 2026-11-08 11:31:59 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CreditCardPaymentRefund.* //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="/api/CreditCard/Payment/Refund", Verbs="POST") public static class CreditCardPaymentRefund extends CreditCardPaymentRefund implements IReturn { private static Object responseType = CreditCardPaymentRefundResult.class; public Object getResponseType() { return responseType; } } public static class CreditCardPaymentRefundResult extends CreditCardCloudServiceResponse { public Long TransactionRecordID = null; public PaymentFailureType FailureType = null; public Boolean IsOverpayment = null; public Boolean PaymentNotFound = null; public Long getTransactionRecordID() { return TransactionRecordID; } public CreditCardPaymentRefundResult setTransactionRecordID(Long value) { this.TransactionRecordID = value; return this; } public PaymentFailureType getFailureType() { return FailureType; } public CreditCardPaymentRefundResult setFailureType(PaymentFailureType value) { this.FailureType = value; return this; } public Boolean getIsOverpayment() { return IsOverpayment; } public CreditCardPaymentRefundResult setIsOverpayment(Boolean value) { this.IsOverpayment = value; return this; } public Boolean isPaymentNotFound() { return PaymentNotFound; } public CreditCardPaymentRefundResult setPaymentNotFound(Boolean value) { this.PaymentNotFound = value; return this; } } public static class ApiClientHeader { public Integer ClientId = null; public String Referrer = null; public String IpAddress = null; public Integer LoggedInUserId = null; public Integer GroupId = null; public String Task = null; public String Machine = null; public String Location = null; public Integer CreatedBy = null; public Integer CampaignId = null; public BigDecimal ReCaptchaScore = null; public Integer getClientId() { return ClientId; } public ApiClientHeader setClientId(Integer value) { this.ClientId = value; return this; } public String getReferrer() { return Referrer; } public ApiClientHeader setReferrer(String value) { this.Referrer = value; return this; } public String getIpAddress() { return IpAddress; } public ApiClientHeader setIpAddress(String value) { this.IpAddress = value; return this; } public Integer getLoggedInUserId() { return LoggedInUserId; } public ApiClientHeader setLoggedInUserId(Integer value) { this.LoggedInUserId = value; return this; } public Integer getGroupId() { return GroupId; } public ApiClientHeader setGroupId(Integer value) { this.GroupId = value; return this; } public String getTask() { return Task; } public ApiClientHeader setTask(String value) { this.Task = value; return this; } public String getMachine() { return Machine; } public ApiClientHeader setMachine(String value) { this.Machine = value; return this; } public String getLocation() { return Location; } public ApiClientHeader setLocation(String value) { this.Location = value; return this; } public Integer getCreatedBy() { return CreatedBy; } public ApiClientHeader setCreatedBy(Integer value) { this.CreatedBy = value; return this; } public Integer getCampaignId() { return CampaignId; } public ApiClientHeader setCampaignId(Integer value) { this.CampaignId = value; return this; } public BigDecimal getReCaptchaScore() { return ReCaptchaScore; } public ApiClientHeader setReCaptchaScore(BigDecimal value) { this.ReCaptchaScore = value; return this; } } public static class CreditCardRefundInformation { public String CurrencyCode = null; public String GatewayTransactionId = null; public BigDecimal Amount = null; public String Memo = null; public Long MemberPaymentId = null; public PaymentTransactionType Type = null; public Integer ReasonId = null; public Integer UserId = null; public String getCurrencyCode() { return CurrencyCode; } public CreditCardRefundInformation setCurrencyCode(String value) { this.CurrencyCode = value; return this; } public String getGatewayTransactionId() { return GatewayTransactionId; } public CreditCardRefundInformation setGatewayTransactionId(String value) { this.GatewayTransactionId = value; return this; } public BigDecimal getAmount() { return Amount; } public CreditCardRefundInformation setAmount(BigDecimal value) { this.Amount = value; return this; } public String getMemo() { return Memo; } public CreditCardRefundInformation setMemo(String value) { this.Memo = value; return this; } public Long getMemberPaymentId() { return MemberPaymentId; } public CreditCardRefundInformation setMemberPaymentId(Long value) { this.MemberPaymentId = value; return this; } public PaymentTransactionType getType() { return Type; } public CreditCardRefundInformation setType(PaymentTransactionType value) { this.Type = value; return this; } public Integer getReasonId() { return ReasonId; } public CreditCardRefundInformation setReasonId(Integer value) { this.ReasonId = value; return this; } public Integer getUserId() { return UserId; } public CreditCardRefundInformation setUserId(Integer value) { this.UserId = value; return this; } } public static class CreditCardPaymentRefund { public ApiClientHeader Header = null; public CreditCardRefundInformation RefundInfo = null; public ApiClientHeader getHeader() { return Header; } public CreditCardPaymentRefund setHeader(ApiClientHeader value) { this.Header = value; return this; } public CreditCardRefundInformation getRefundInfo() { return RefundInfo; } public CreditCardPaymentRefund setRefundInfo(CreditCardRefundInformation value) { this.RefundInfo = value; return this; } } public static interface IHaveErrorField { public Boolean IsError = null; } public static enum PaymentFailureType { @SerializedName("0") None(0), @SerializedName("1") Gateway(1), @SerializedName("2") PaymentTransaction(2), @SerializedName("3") KeyProcurment(3), @SerializedName("4") CardVerification(4); private final int value; PaymentFailureType(final int intValue) { value = intValue; } public int getValue() { return value; } } public static class CreditCardCloudServiceResponse implements IHaveErrorField { public Boolean IsDuplicate = null; public Boolean IsSuccessful = null; public String ErrorCode = null; public String Message = null; public Integer GatewayId = null; public String ConfirmationNumber = null; public String NetworkTransactionId = null; public Boolean IsError = null; public Boolean getIsDuplicate() { return IsDuplicate; } public CreditCardCloudServiceResponse setIsDuplicate(Boolean value) { this.IsDuplicate = value; return this; } public Boolean getIsSuccessful() { return IsSuccessful; } public CreditCardCloudServiceResponse setIsSuccessful(Boolean value) { this.IsSuccessful = value; return this; } public String getErrorCode() { return ErrorCode; } public CreditCardCloudServiceResponse setErrorCode(String value) { this.ErrorCode = value; return this; } public String getMessage() { return Message; } public CreditCardCloudServiceResponse setMessage(String value) { this.Message = value; return this; } public Integer getGatewayId() { return GatewayId; } public CreditCardCloudServiceResponse setGatewayId(Integer value) { this.GatewayId = value; return this; } public String getConfirmationNumber() { return ConfirmationNumber; } public CreditCardCloudServiceResponse setConfirmationNumber(String value) { this.ConfirmationNumber = value; return this; } public String getNetworkTransactionId() { return NetworkTransactionId; } public CreditCardCloudServiceResponse setNetworkTransactionId(String value) { this.NetworkTransactionId = value; return this; } public Boolean getIsError() { return IsError; } public CreditCardCloudServiceResponse setIsError(Boolean value) { this.IsError = value; return this; } } public static interface IHaveErrorField { public Boolean IsError = null; } public static enum PaymentTransactionType { @SerializedName("0") None(0), @SerializedName("1") MemberPayment(1), @SerializedName("2") DonationPayment(2), @SerializedName("3") PmiPayment(3), @SerializedName("4") MemberPaymentRefund(4), @SerializedName("5") DonationRefund(5), @SerializedName("6") SmpPayment(6); private final int value; PaymentTransactionType(final int intValue) { value = intValue; } public int getValue() { return value; } } }