| Requires any of the roles: | Admin, TeamAdmin |
| GET | /recurringPayments |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class RecurringPaymentListRequest
{
public Integer ownerId = null;
public String status = null;
public String phoneVerificationNumber = null;
public Integer limit = null;
public Integer getOwnerId() { return ownerId; }
public RecurringPaymentListRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getStatus() { return status; }
public RecurringPaymentListRequest setStatus(String value) { this.status = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public RecurringPaymentListRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public Integer getLimit() { return limit; }
public RecurringPaymentListRequest setLimit(Integer value) { this.limit = value; return this; }
}
public static class RecurringPaymentListResult
{
public ArrayList<RecurringPayment> items = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<RecurringPayment> getItems() { return items; }
public RecurringPaymentListResult setItems(ArrayList<RecurringPayment> value) { this.items = value; return this; }
public Integer getStatusCode() { return statusCode; }
public RecurringPaymentListResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public RecurringPaymentListResult setMessage(String value) { this.message = value; return this; }
}
public static class RecurringPayment
{
public Integer id = null;
public String status = null;
public String phoneVerificationNumber = null;
public String deviceId = null;
public String panLastFour = null;
public String expYear = null;
public String expMonth = null;
public String token = null;
public Integer monthlyPrice = null;
public Integer subscriptionLength = null;
public Integer monthsPaid = null;
public Boolean chargeFirstMonth = null;
@References(EventOwner.class)
public Integer ownerId = null;
public Integer ownerCardTypeId = null;
@StringLength(2147483647)
public String jsonResponse = null;
public Date startDate = null;
public Date lastPayment = null;
public Date nextPayment = null;
public String paymentTokenId = null;
public Integer declinedCounter = null;
public BigDecimal transactionFee = null;
public String termsVersion = null;
public Date termsAcceptedAt = null;
public String currency = null;
public String mode = null;
public String lastDeclineReason = null;
public Date lastDeclineDate = null;
public Short lastDunningStage = null;
public Date lastDunningNotifiedAt = null;
public Integer getId() { return id; }
public RecurringPayment setId(Integer value) { this.id = value; return this; }
public String getStatus() { return status; }
public RecurringPayment setStatus(String value) { this.status = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public RecurringPayment setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public String getDeviceId() { return deviceId; }
public RecurringPayment setDeviceId(String value) { this.deviceId = value; return this; }
public String getPanLastFour() { return panLastFour; }
public RecurringPayment setPanLastFour(String value) { this.panLastFour = value; return this; }
public String getExpYear() { return expYear; }
public RecurringPayment setExpYear(String value) { this.expYear = value; return this; }
public String getExpMonth() { return expMonth; }
public RecurringPayment setExpMonth(String value) { this.expMonth = value; return this; }
public String getToken() { return token; }
public RecurringPayment setToken(String value) { this.token = value; return this; }
public Integer getMonthlyPrice() { return monthlyPrice; }
public RecurringPayment setMonthlyPrice(Integer value) { this.monthlyPrice = value; return this; }
public Integer getSubscriptionLength() { return subscriptionLength; }
public RecurringPayment setSubscriptionLength(Integer value) { this.subscriptionLength = value; return this; }
public Integer getMonthsPaid() { return monthsPaid; }
public RecurringPayment setMonthsPaid(Integer value) { this.monthsPaid = value; return this; }
public Boolean isChargeFirstMonth() { return chargeFirstMonth; }
public RecurringPayment setChargeFirstMonth(Boolean value) { this.chargeFirstMonth = value; return this; }
public Integer getOwnerId() { return ownerId; }
public RecurringPayment setOwnerId(Integer value) { this.ownerId = value; return this; }
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public RecurringPayment setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public String getJsonResponse() { return jsonResponse; }
public RecurringPayment setJsonResponse(String value) { this.jsonResponse = value; return this; }
public Date getStartDate() { return startDate; }
public RecurringPayment setStartDate(Date value) { this.startDate = value; return this; }
public Date getLastPayment() { return lastPayment; }
public RecurringPayment setLastPayment(Date value) { this.lastPayment = value; return this; }
public Date getNextPayment() { return nextPayment; }
public RecurringPayment setNextPayment(Date value) { this.nextPayment = value; return this; }
public String getPaymentTokenId() { return paymentTokenId; }
public RecurringPayment setPaymentTokenId(String value) { this.paymentTokenId = value; return this; }
public Integer getDeclinedCounter() { return declinedCounter; }
public RecurringPayment setDeclinedCounter(Integer value) { this.declinedCounter = value; return this; }
public BigDecimal getTransactionFee() { return transactionFee; }
public RecurringPayment setTransactionFee(BigDecimal value) { this.transactionFee = value; return this; }
public String getTermsVersion() { return termsVersion; }
public RecurringPayment setTermsVersion(String value) { this.termsVersion = value; return this; }
public Date getTermsAcceptedAt() { return termsAcceptedAt; }
public RecurringPayment setTermsAcceptedAt(Date value) { this.termsAcceptedAt = value; return this; }
public String getCurrency() { return currency; }
public RecurringPayment setCurrency(String value) { this.currency = value; return this; }
public String getMode() { return mode; }
public RecurringPayment setMode(String value) { this.mode = value; return this; }
public String getLastDeclineReason() { return lastDeclineReason; }
public RecurringPayment setLastDeclineReason(String value) { this.lastDeclineReason = value; return this; }
public Date getLastDeclineDate() { return lastDeclineDate; }
public RecurringPayment setLastDeclineDate(Date value) { this.lastDeclineDate = value; return this; }
public Short getLastDunningStage() { return lastDunningStage; }
public RecurringPayment setLastDunningStage(Short value) { this.lastDunningStage = value; return this; }
public Date getLastDunningNotifiedAt() { return lastDunningNotifiedAt; }
public RecurringPayment setLastDunningNotifiedAt(Date value) { this.lastDunningNotifiedAt = value; return this; }
}
}
Java RecurringPaymentListRequest 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.
GET /recurringPayments HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
items:
[
{
id: 0,
status: String,
phoneVerificationNumber: String,
deviceId: String,
panLastFour: String,
expYear: String,
expMonth: String,
token: String,
monthlyPrice: 0,
subscriptionLength: 0,
monthsPaid: 0,
chargeFirstMonth: False,
ownerId: 0,
ownerCardTypeId: 0,
jsonResponse: String,
startDate: 0001-01-01,
lastPayment: 0001-01-01,
nextPayment: 0001-01-01,
paymentTokenId: String,
declinedCounter: 0,
transactionFee: 0,
termsVersion: String,
termsAcceptedAt: 0001-01-01,
currency: String,
mode: String,
lastDeclineReason: String,
lastDeclineDate: 0001-01-01,
lastDunningStage: 0,
lastDunningNotifiedAt: 0001-01-01
}
],
statusCode: 0,
message: String
}