Billhighway Cloud API

<back to all web services

RefundCreditCardPayment

The following routes are available for this service:
POST/api/SalesForce/RefundCreditCardPayment
POST/payments/creditcard/refund
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class RefundCreditCardPayment
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String GroupId = null;
        public String UserId = null;
        public Integer BhUserId = null;
        public BigDecimal RefundAmount = null;
        public String Memo = null;
        public Long TransactionId = null;
        public String Reason = null;
        
        public String getClassName() { return ClassName; }
        public RefundCreditCardPayment setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public RefundCreditCardPayment setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public RefundCreditCardPayment setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public RefundCreditCardPayment setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public RefundCreditCardPayment setGroupId(String value) { this.GroupId = value; return this; }
        public String getUserId() { return UserId; }
        public RefundCreditCardPayment setUserId(String value) { this.UserId = value; return this; }
        public Integer getBhUserId() { return BhUserId; }
        public RefundCreditCardPayment setBhUserId(Integer value) { this.BhUserId = value; return this; }
        public BigDecimal getRefundAmount() { return RefundAmount; }
        public RefundCreditCardPayment setRefundAmount(BigDecimal value) { this.RefundAmount = value; return this; }
        public String getMemo() { return Memo; }
        public RefundCreditCardPayment setMemo(String value) { this.Memo = value; return this; }
        public Long getTransactionId() { return TransactionId; }
        public RefundCreditCardPayment setTransactionId(Long value) { this.TransactionId = value; return this; }
        public String getReason() { return Reason; }
        public RefundCreditCardPayment setReason(String value) { this.Reason = value; return this; }
    }

    public static class RefundCreditCardPaymentReply implements IHaveErrorField
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        public String ConfirmationNumber = null;
        public Boolean IsError = null;
        
        public String getClassName() { return ClassName; }
        public RefundCreditCardPaymentReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public RefundCreditCardPaymentReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public RefundCreditCardPaymentReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public RefundCreditCardPaymentReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public RefundCreditCardPaymentReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public String getConfirmationNumber() { return ConfirmationNumber; }
        public RefundCreditCardPaymentReply setConfirmationNumber(String value) { this.ConfirmationNumber = value; return this; }
        public Boolean getIsError() { return IsError; }
        public RefundCreditCardPaymentReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java RefundCreditCardPayment DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/SalesForce/RefundCreditCardPayment HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RefundCreditCardPayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <BhUserId>0</BhUserId>
  <ClassName>String</ClassName>
  <ClientId>0</ClientId>
  <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
  <GroupId>String</GroupId>
  <Memo>String</Memo>
  <Reason>String</Reason>
  <RefundAmount>0</RefundAmount>
  <TransactionId>0</TransactionId>
  <UniqueId>String</UniqueId>
  <UserId>String</UserId>
</RefundCreditCardPayment>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RefundCreditCardPaymentReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <ClassName>String</ClassName>
  <ConfirmationNumber>String</ConfirmationNumber>
  <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
  <ErrorCode>0</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
  <UniqueId>String</UniqueId>
</RefundCreditCardPaymentReply>