| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateRecurringPaymentCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<ExpMonth>String</ExpMonth>
<ExpYear>String</ExpYear>
<Id>0</Id>
<PanLastFour>String</PanLastFour>
<PaymentTokenId>String</PaymentTokenId>
<Phone>String</Phone>
<Token>String</Token>
<Via>String</Via>
</UpdateRecurringPaymentCardRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UpdateRecurringPaymentCardResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Effect>String</Effect> <Id>0</Id> <Message>String</Message> <NextPayment>0001-01-01T00:00:00</NextPayment> <Ok>false</Ok> <PriorStatus>String</PriorStatus> <Resumed>false</Resumed> <Status>String</Status> <StatusCode>0</StatusCode> </UpdateRecurringPaymentCardResult>