regis

<back to all web services

BeanstreamCreditCardPaymentRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/Beanstream/Payment/{uuid}/CreditCard/Create
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class BeanstreamCreditCardPaymentRequest
    {
        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 card_number = null;
        public String card_name = null;
        public String expiry_month = null;
        public String expiry_year = null;
        public String cvd = null;
        
        public String getUuid() { return uuid; }
        public BeanstreamCreditCardPaymentRequest setUuid(String value) { this.uuid = value; return this; }
        public String getDepartment() { return department; }
        public BeanstreamCreditCardPaymentRequest setDepartment(String value) { this.department = value; return this; }
        public String getItem() { return item; }
        public BeanstreamCreditCardPaymentRequest setItem(String value) { this.item = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public BeanstreamCreditCardPaymentRequest setAmount(BigDecimal value) { this.amount = value; return this; }
        public String getName() { return name; }
        public BeanstreamCreditCardPaymentRequest setName(String value) { this.name = value; return this; }
        public String getCustomerIp() { return customer_ip; }
        public BeanstreamCreditCardPaymentRequest setCustomerIp(String value) { this.customer_ip = value; return this; }
        public String getEmail() { return email; }
        public BeanstreamCreditCardPaymentRequest setEmail(String value) { this.email = value; return this; }
        public String getAddr1() { return addr1; }
        public BeanstreamCreditCardPaymentRequest setAddr1(String value) { this.addr1 = value; return this; }
        public String getAddr2() { return addr2; }
        public BeanstreamCreditCardPaymentRequest setAddr2(String value) { this.addr2 = value; return this; }
        public String getCity() { return city; }
        public BeanstreamCreditCardPaymentRequest setCity(String value) { this.city = value; return this; }
        public String getState() { return state; }
        public BeanstreamCreditCardPaymentRequest setState(String value) { this.state = value; return this; }
        public String getCountry() { return country; }
        public BeanstreamCreditCardPaymentRequest setCountry(String value) { this.country = value; return this; }
        public String getCode() { return code; }
        public BeanstreamCreditCardPaymentRequest setCode(String value) { this.code = value; return this; }
        public String getPhone() { return phone; }
        public BeanstreamCreditCardPaymentRequest setPhone(String value) { this.phone = value; return this; }
        public String getCardNumber() { return card_number; }
        public BeanstreamCreditCardPaymentRequest setCardNumber(String value) { this.card_number = value; return this; }
        public String getCardName() { return card_name; }
        public BeanstreamCreditCardPaymentRequest setCardName(String value) { this.card_name = value; return this; }
        public String getExpiryMonth() { return expiry_month; }
        public BeanstreamCreditCardPaymentRequest setExpiryMonth(String value) { this.expiry_month = value; return this; }
        public String getExpiryYear() { return expiry_year; }
        public BeanstreamCreditCardPaymentRequest setExpiryYear(String value) { this.expiry_year = value; return this; }
        public String getCvd() { return cvd; }
        public BeanstreamCreditCardPaymentRequest setCvd(String value) { this.cvd = value; return this; }
    }

    public static class BeanstreamCreditCardCompletionResponse
    {
        public String uuid = null;
        public String id = null;
        public Boolean approved = null;
        public String message = null;
        public String order_number = null;
        
        public String getUuid() { return uuid; }
        public BeanstreamCreditCardCompletionResponse setUuid(String value) { this.uuid = value; return this; }
        public String getId() { return id; }
        public BeanstreamCreditCardCompletionResponse setId(String value) { this.id = value; return this; }
        public Boolean isApproved() { return approved; }
        public BeanstreamCreditCardCompletionResponse setApproved(Boolean value) { this.approved = value; return this; }
        public String getMessage() { return message; }
        public BeanstreamCreditCardCompletionResponse setMessage(String value) { this.message = value; return this; }
        public String getOrderNumber() { return order_number; }
        public BeanstreamCreditCardCompletionResponse setOrderNumber(String value) { this.order_number = value; return this; }
    }

}

Java BeanstreamCreditCardPaymentRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Beanstream/Payment/{uuid}/CreditCard/Create HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
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,
	card_number: String,
	card_name: String,
	expiry_month: String,
	expiry_year: String,
	cvd: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	uuid: String,
	id: String,
	approved: False,
	message: String,
	order_number: String
}