TicketUserServices

<back to all web services

UpdateRecurringPaymentCardRequest

Requires Authentication
The following routes are available for this service:
POST/recurringPayments/card
POST/recurringPayments/{Id}/card
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class UpdateRecurringPaymentCardRequest
    {
        public Integer id = null;
        public String paymentTokenId = null;
        public String phone = null;
        public String token = null;
        public String panLastFour = null;
        public String expYear = null;
        public String expMonth = null;
        public String via = null;
        
        public Integer getId() { return id; }
        public UpdateRecurringPaymentCardRequest setId(Integer value) { this.id = value; return this; }
        public String getPaymentTokenId() { return paymentTokenId; }
        public UpdateRecurringPaymentCardRequest setPaymentTokenId(String value) { this.paymentTokenId = value; return this; }
        public String getPhone() { return phone; }
        public UpdateRecurringPaymentCardRequest setPhone(String value) { this.phone = value; return this; }
        public String getToken() { return token; }
        public UpdateRecurringPaymentCardRequest setToken(String value) { this.token = value; return this; }
        public String getPanLastFour() { return panLastFour; }
        public UpdateRecurringPaymentCardRequest setPanLastFour(String value) { this.panLastFour = value; return this; }
        public String getExpYear() { return expYear; }
        public UpdateRecurringPaymentCardRequest setExpYear(String value) { this.expYear = value; return this; }
        public String getExpMonth() { return expMonth; }
        public UpdateRecurringPaymentCardRequest setExpMonth(String value) { this.expMonth = value; return this; }
        public String getVia() { return via; }
        public UpdateRecurringPaymentCardRequest setVia(String value) { this.via = value; return this; }
    }

    public static class UpdateRecurringPaymentCardResult
    {
        public Boolean ok = null;
        public Integer id = null;
        public String effect = null;
        public String priorStatus = null;
        public String status = null;
        public Boolean resumed = null;
        public Date nextPayment = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Boolean isOk() { return ok; }
        public UpdateRecurringPaymentCardResult setOk(Boolean value) { this.ok = value; return this; }
        public Integer getId() { return id; }
        public UpdateRecurringPaymentCardResult setId(Integer value) { this.id = value; return this; }
        public String getEffect() { return effect; }
        public UpdateRecurringPaymentCardResult setEffect(String value) { this.effect = value; return this; }
        public String getPriorStatus() { return priorStatus; }
        public UpdateRecurringPaymentCardResult setPriorStatus(String value) { this.priorStatus = value; return this; }
        public String getStatus() { return status; }
        public UpdateRecurringPaymentCardResult setStatus(String value) { this.status = value; return this; }
        public Boolean isResumed() { return resumed; }
        public UpdateRecurringPaymentCardResult setResumed(Boolean value) { this.resumed = value; return this; }
        public Date getNextPayment() { return nextPayment; }
        public UpdateRecurringPaymentCardResult setNextPayment(Date value) { this.nextPayment = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public UpdateRecurringPaymentCardResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public UpdateRecurringPaymentCardResult setMessage(String value) { this.message = value; return this; }
    }

}

Java UpdateRecurringPaymentCardRequest 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 /recurringPayments/card HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	paymentTokenId: String,
	phone: String,
	token: String,
	panLastFour: String,
	expYear: String,
	expMonth: String,
	via: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ok: False,
	id: 0,
	effect: String,
	priorStatus: String,
	status: String,
	resumed: False,
	nextPayment: 0001-01-01,
	statusCode: 0,
	message: String
}