| 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 .other suffix or ?format=other
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: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"PaymentType":"OneTime","TransactionId":"String","Uuid":"String","PaymentId":"String","Result":0,"Message":"String","TotalAmount":0,"AdjustmentAmount":0,"TransactionAmount":0,"FeeAmount":0,"RecurringId":"String","Signature":"String"}