| Requires any of the roles: | Client, Admin, Partner |
| POST | /payment_gateways |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class PaymentGatewaysAdd
{
@DataMember(Order=2)
@Validate(Validator="NotNull")
public Integer TenantsId = null;
@DataMember(Order=3)
@Validate(Validator="NotNull")
public Long PaymentActionsId = null;
@DataMember(Order=4)
@Validate(Validator="NotNull")
public String Name = null;
@DataMember(Order=5)
public String ServiceKey = null;
@DataMember(Order=6)
public String NotifyUrl = null;
@DataMember(Order=7)
public String RedirectUrl = null;
public Integer getTenantsId() { return TenantsId; }
public PaymentGatewaysAdd setTenantsId(Integer value) { this.TenantsId = value; return this; }
public Long getPaymentActionsId() { return PaymentActionsId; }
public PaymentGatewaysAdd setPaymentActionsId(Long value) { this.PaymentActionsId = value; return this; }
public String getName() { return Name; }
public PaymentGatewaysAdd setName(String value) { this.Name = value; return this; }
public String getServiceKey() { return ServiceKey; }
public PaymentGatewaysAdd setServiceKey(String value) { this.ServiceKey = value; return this; }
public String getNotifyUrl() { return NotifyUrl; }
public PaymentGatewaysAdd setNotifyUrl(String value) { this.NotifyUrl = value; return this; }
public String getRedirectUrl() { return RedirectUrl; }
public PaymentGatewaysAdd setRedirectUrl(String value) { this.RedirectUrl = value; return this; }
}
public static class PaymentGatewaysAddResponse
{
@DataMember(Order=2)
public Integer TenantsId = null;
@DataMember(Order=3)
public Long PaymentActionsId = null;
@DataMember(Order=4)
public String Name = null;
@DataMember(Order=5)
public String ServiceKey = null;
@DataMember(Order=6)
public String NotifyUrl = null;
@DataMember(Order=7)
public String RedirectUrl = null;
@DataMember(Order=9)
public ResponseStatus ResponseStatus = null;
public Integer getTenantsId() { return TenantsId; }
public PaymentGatewaysAddResponse setTenantsId(Integer value) { this.TenantsId = value; return this; }
public Long getPaymentActionsId() { return PaymentActionsId; }
public PaymentGatewaysAddResponse setPaymentActionsId(Long value) { this.PaymentActionsId = value; return this; }
public String getName() { return Name; }
public PaymentGatewaysAddResponse setName(String value) { this.Name = value; return this; }
public String getServiceKey() { return ServiceKey; }
public PaymentGatewaysAddResponse setServiceKey(String value) { this.ServiceKey = value; return this; }
public String getNotifyUrl() { return NotifyUrl; }
public PaymentGatewaysAddResponse setNotifyUrl(String value) { this.NotifyUrl = value; return this; }
public String getRedirectUrl() { return RedirectUrl; }
public PaymentGatewaysAddResponse setRedirectUrl(String value) { this.RedirectUrl = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PaymentGatewaysAddResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
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 /payment_gateways HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"TenantsId":0,"PaymentActionsId":0,"Name":"String","ServiceKey":"String","NotifyUrl":"String","RedirectUrl":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"TenantsId":0,"PaymentActionsId":0,"Name":"String","ServiceKey":"String","NotifyUrl":"String","RedirectUrl":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}