| Requires the role: | Admin |
| POST | /recurringPayments/stop |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class StopRecurringPaymentRequest
{
public Integer id = null;
public String paymentTokenId = null;
public Integer ownerId = null;
public String reason = null;
public String via = null;
public Integer getId() { return id; }
public StopRecurringPaymentRequest setId(Integer value) { this.id = value; return this; }
public String getPaymentTokenId() { return paymentTokenId; }
public StopRecurringPaymentRequest setPaymentTokenId(String value) { this.paymentTokenId = value; return this; }
public Integer getOwnerId() { return ownerId; }
public StopRecurringPaymentRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getReason() { return reason; }
public StopRecurringPaymentRequest setReason(String value) { this.reason = value; return this; }
public String getVia() { return via; }
public StopRecurringPaymentRequest setVia(String value) { this.via = value; return this; }
}
public static class StopRecurringPaymentResult
{
public Boolean ok = null;
public Integer id = null;
public String effect = null;
public String status = null;
public Integer subscriptionLength = null;
public Integer monthsPaid = null;
public Integer statusCode = null;
public String message = null;
public Boolean isOk() { return ok; }
public StopRecurringPaymentResult setOk(Boolean value) { this.ok = value; return this; }
public Integer getId() { return id; }
public StopRecurringPaymentResult setId(Integer value) { this.id = value; return this; }
public String getEffect() { return effect; }
public StopRecurringPaymentResult setEffect(String value) { this.effect = value; return this; }
public String getStatus() { return status; }
public StopRecurringPaymentResult setStatus(String value) { this.status = value; return this; }
public Integer getSubscriptionLength() { return subscriptionLength; }
public StopRecurringPaymentResult setSubscriptionLength(Integer value) { this.subscriptionLength = value; return this; }
public Integer getMonthsPaid() { return monthsPaid; }
public StopRecurringPaymentResult setMonthsPaid(Integer value) { this.monthsPaid = value; return this; }
public Integer getStatusCode() { return statusCode; }
public StopRecurringPaymentResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public StopRecurringPaymentResult setMessage(String value) { this.message = value; return this; }
}
}
Java StopRecurringPaymentRequest 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/stop HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<StopRecurringPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Id>0</Id>
<OwnerId>0</OwnerId>
<PaymentTokenId>String</PaymentTokenId>
<Reason>String</Reason>
<Via>String</Via>
</StopRecurringPaymentRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <StopRecurringPaymentResult 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> <MonthsPaid>0</MonthsPaid> <Ok>false</Ok> <Status>String</Status> <StatusCode>0</StatusCode> <SubscriptionLength>0</SubscriptionLength> </StopRecurringPaymentResult>