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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<BeanstreamCreditCardPaymentRequest 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>
  <card_name>String</card_name>
  <card_number>String</card_number>
  <city>String</city>
  <code>String</code>
  <country>String</country>
  <customer_ip>String</customer_ip>
  <cvd>String</cvd>
  <department>String</department>
  <email>String</email>
  <expiry_month>String</expiry_month>
  <expiry_year>String</expiry_year>
  <item>String</item>
  <name>String</name>
  <phone>String</phone>
  <state>String</state>
  <uuid>String</uuid>
</BeanstreamCreditCardPaymentRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BeanstreamCreditCardCompletionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses">
  <approved>false</approved>
  <id>String</id>
  <message>String</message>
  <order_number>String</order_number>
  <uuid>String</uuid>
</BeanstreamCreditCardCompletionResponse>