| POST | /duenable/webhook/notify |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DuEnableNotifyRequest
{
public PaymentTypeEnum PaymentType = null;
public String TransactionId = null;
public String Uuid = null;
public String PaymentId = null;
public Integer Result = null;
public String Message = null;
public BigDecimal TotalAmount = null;
public BigDecimal AdjustmentAmount = null;
public BigDecimal TransactionAmount = null;
public BigDecimal FeeAmount = null;
public String RecurringId = null;
public String Signature = null;
public PaymentTypeEnum getPaymentType() { return PaymentType; }
public DuEnableNotifyRequest setPaymentType(PaymentTypeEnum value) { this.PaymentType = value; return this; }
public String getTransactionId() { return TransactionId; }
public DuEnableNotifyRequest setTransactionId(String value) { this.TransactionId = value; return this; }
public String getUuid() { return Uuid; }
public DuEnableNotifyRequest setUuid(String value) { this.Uuid = value; return this; }
public String getPaymentId() { return PaymentId; }
public DuEnableNotifyRequest setPaymentId(String value) { this.PaymentId = value; return this; }
public Integer getResult() { return Result; }
public DuEnableNotifyRequest setResult(Integer value) { this.Result = value; return this; }
public String getMessage() { return Message; }
public DuEnableNotifyRequest setMessage(String value) { this.Message = value; return this; }
public BigDecimal getTotalAmount() { return TotalAmount; }
public DuEnableNotifyRequest setTotalAmount(BigDecimal value) { this.TotalAmount = value; return this; }
public BigDecimal getAdjustmentAmount() { return AdjustmentAmount; }
public DuEnableNotifyRequest setAdjustmentAmount(BigDecimal value) { this.AdjustmentAmount = value; return this; }
public BigDecimal getTransactionAmount() { return TransactionAmount; }
public DuEnableNotifyRequest setTransactionAmount(BigDecimal value) { this.TransactionAmount = value; return this; }
public BigDecimal getFeeAmount() { return FeeAmount; }
public DuEnableNotifyRequest setFeeAmount(BigDecimal value) { this.FeeAmount = value; return this; }
public String getRecurringId() { return RecurringId; }
public DuEnableNotifyRequest setRecurringId(String value) { this.RecurringId = value; return this; }
public String getSignature() { return Signature; }
public DuEnableNotifyRequest setSignature(String value) { this.Signature = value; return this; }
}
public static enum PaymentTypeEnum
{
OneTime(1),
Recurring(2);
private final int value;
PaymentTypeEnum(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
}
Java DuEnableNotifyRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /duenable/webhook/notify HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DuEnableNotifyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
<AdjustmentAmount>0</AdjustmentAmount>
<FeeAmount>0</FeeAmount>
<Message>String</Message>
<PaymentId>String</PaymentId>
<PaymentType>OneTime</PaymentType>
<RecurringId>String</RecurringId>
<Result>0</Result>
<Signature>String</Signature>
<TotalAmount>0</TotalAmount>
<TransactionAmount>0</TransactionAmount>
<TransactionId>String</TransactionId>
<Uuid>String</Uuid>
</DuEnableNotifyRequest>