| 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
paymentTokenId: String,
ownerId: 0,
reason: String,
via: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ok: False,
id: 0,
effect: String,
status: String,
subscriptionLength: 0,
monthsPaid: 0,
statusCode: 0,
message: String
}