regis

<back to all web services

BeanstreamCreditCardExternalTokenPaymentRequest

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

public class dtos
{

    public static class BeanstreamCreditCardExternalTokenPaymentRequest
    {
        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 token = null;
        public String token_last_four = null;
        public String card_type = null;
        public String card_name = null;
        
        public String getUuid() { return uuid; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setUuid(String value) { this.uuid = value; return this; }
        public String getDepartment() { return department; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setDepartment(String value) { this.department = value; return this; }
        public String getItem() { return item; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setItem(String value) { this.item = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setAmount(BigDecimal value) { this.amount = value; return this; }
        public String getName() { return name; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setName(String value) { this.name = value; return this; }
        public String getCustomerIp() { return customer_ip; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setCustomerIp(String value) { this.customer_ip = value; return this; }
        public String getEmail() { return email; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setEmail(String value) { this.email = value; return this; }
        public String getAddr1() { return addr1; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setAddr1(String value) { this.addr1 = value; return this; }
        public String getAddr2() { return addr2; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setAddr2(String value) { this.addr2 = value; return this; }
        public String getCity() { return city; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setCity(String value) { this.city = value; return this; }
        public String getState() { return state; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setState(String value) { this.state = value; return this; }
        public String getCountry() { return country; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setCountry(String value) { this.country = value; return this; }
        public String getCode() { return code; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setCode(String value) { this.code = value; return this; }
        public String getPhone() { return phone; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setPhone(String value) { this.phone = value; return this; }
        public String getToken() { return token; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setToken(String value) { this.token = value; return this; }
        public String getTokenLastFour() { return token_last_four; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setTokenLastFour(String value) { this.token_last_four = value; return this; }
        public String getCardType() { return card_type; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setCardType(String value) { this.card_type = value; return this; }
        public String getCardName() { return card_name; }
        public BeanstreamCreditCardExternalTokenPaymentRequest setCardName(String value) { this.card_name = value; return this; }
    }

    public static class BeanstreamCreditCardExternalTokenPaymentResponse
    {
        public String uuid = null;
        public String id = null;
        public Boolean approved = null;
        public String message_id = null;
        public String message = null;
        public String order_number = null;
        public String payment_method = null;
        public String card_type = null;
        public String card_last_four = null;
        
        public String getUuid() { return uuid; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setUuid(String value) { this.uuid = value; return this; }
        public String getId() { return id; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setId(String value) { this.id = value; return this; }
        public Boolean isApproved() { return approved; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setApproved(Boolean value) { this.approved = value; return this; }
        public String getMessageId() { return message_id; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setMessageId(String value) { this.message_id = value; return this; }
        public String getMessage() { return message; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setMessage(String value) { this.message = value; return this; }
        public String getOrderNumber() { return order_number; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setOrderNumber(String value) { this.order_number = value; return this; }
        public String getPaymentMethod() { return payment_method; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setPaymentMethod(String value) { this.payment_method = value; return this; }
        public String getCardType() { return card_type; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setCardType(String value) { this.card_type = value; return this; }
        public String getCardLastFour() { return card_last_four; }
        public BeanstreamCreditCardExternalTokenPaymentResponse setCardLastFour(String value) { this.card_last_four = value; return this; }
    }

}

Java BeanstreamCreditCardExternalTokenPaymentRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /Beanstream/Payment/{uuid}/CreditCard/ExternalToken/Create HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/json
Content-Type: application/json
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","token":"String","token_last_four":"String","card_type":"String","card_name":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"uuid":"String","id":"String","approved":false,"message_id":"String","message":"String","order_number":"String","payment_method":"String","card_type":"String","card_last_four":"String"}