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 .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"uuid":"String","department":"String","item":"String","amount":0,"name":"String","customer_ip":"String","email":"String","addr1":"String","addr2":"String","city":"String","state":"String","country":"String","code":"String","phone":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"redirect_form":"String"}