Required role: | REGISUserRole |
POST | /Beanstream/Payment/{uuid}/Interac/Create |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class BeanstreamInteracPaymentRequest
{
public String uuid = null;
public String department = null;
public String item = null;
public BigDecimal amount = null;
public String name = null;
public String customer_ip = null;
public String email = null;
public String addr1 = null;
public String addr2 = null;
public String city = null;
public String state = null;
public String country = null;
public String code = null;
public String phone = null;
public String getUuid() { return uuid; }
public BeanstreamInteracPaymentRequest setUuid(String value) { this.uuid = value; return this; }
public String getDepartment() { return department; }
public BeanstreamInteracPaymentRequest setDepartment(String value) { this.department = value; return this; }
public String getItem() { return item; }
public BeanstreamInteracPaymentRequest setItem(String value) { this.item = value; return this; }
public BigDecimal getAmount() { return amount; }
public BeanstreamInteracPaymentRequest setAmount(BigDecimal value) { this.amount = value; return this; }
public String getName() { return name; }
public BeanstreamInteracPaymentRequest setName(String value) { this.name = value; return this; }
public String getCustomerIp() { return customer_ip; }
public BeanstreamInteracPaymentRequest setCustomerIp(String value) { this.customer_ip = value; return this; }
public String getEmail() { return email; }
public BeanstreamInteracPaymentRequest setEmail(String value) { this.email = value; return this; }
public String getAddr1() { return addr1; }
public BeanstreamInteracPaymentRequest setAddr1(String value) { this.addr1 = value; return this; }
public String getAddr2() { return addr2; }
public BeanstreamInteracPaymentRequest setAddr2(String value) { this.addr2 = value; return this; }
public String getCity() { return city; }
public BeanstreamInteracPaymentRequest setCity(String value) { this.city = value; return this; }
public String getState() { return state; }
public BeanstreamInteracPaymentRequest setState(String value) { this.state = value; return this; }
public String getCountry() { return country; }
public BeanstreamInteracPaymentRequest setCountry(String value) { this.country = value; return this; }
public String getCode() { return code; }
public BeanstreamInteracPaymentRequest setCode(String value) { this.code = value; return this; }
public String getPhone() { return phone; }
public BeanstreamInteracPaymentRequest setPhone(String value) { this.phone = value; return this; }
}
public static class BeanstreamInteracRedirectResponse
{
public String redirect_form = null;
public String getRedirectForm() { return redirect_form; }
public BeanstreamInteracRedirectResponse setRedirectForm(String value) { this.redirect_form = value; return this; }
}
}
Java BeanstreamInteracPaymentRequest 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 /Beanstream/Payment/{uuid}/Interac/Create HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BeanstreamInteracPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<addr1>String</addr1>
<addr2>String</addr2>
<amount>0</amount>
<city>String</city>
<code>String</code>
<country>String</country>
<customer_ip>String</customer_ip>
<department>String</department>
<email>String</email>
<item>String</item>
<name>String</name>
<phone>String</phone>
<state>String</state>
<uuid>String</uuid>
</BeanstreamInteracPaymentRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BeanstreamInteracRedirectResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses"> <redirect_form>String</redirect_form> </BeanstreamInteracRedirectResponse>