| GET | /recurringPayments/mine |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class MyRecurringPaymentsRequest
{
public String phone = null;
public String getPhone() { return phone; }
public MyRecurringPaymentsRequest setPhone(String value) { this.phone = value; return this; }
}
public static class MyRecurringPaymentsResult
{
public ArrayList<RecurringSubscriptionView> items = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<RecurringSubscriptionView> getItems() { return items; }
public MyRecurringPaymentsResult setItems(ArrayList<RecurringSubscriptionView> value) { this.items = value; return this; }
public Integer getStatusCode() { return statusCode; }
public MyRecurringPaymentsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public MyRecurringPaymentsResult setMessage(String value) { this.message = value; return this; }
}
public static class RecurringSubscriptionView
{
public Integer id = null;
public String status = null;
public String phoneVerificationNumber = null;
public Date startDate = null;
public Date lastPayment = null;
public Date nextPayment = null;
public Integer ownerId = null;
public Integer ownerCardTypeId = null;
public Integer declinedCounter = null;
public Integer subscriptionLength = null;
public Integer monthsPaid = null;
public Integer monthlyPrice = null;
public BigDecimal transactionFee = null;
public String paymentTokenId = null;
public String panLastFour = null;
public String expMonth = null;
public String expYear = null;
public String mode = null;
public Integer cardId = null;
public String initialPaymentDate = null;
public String initialPaymentAmount = null;
public String initialPaymentCurrency = null;
public String initialPaymentStatus = null;
public Date cancelledAt = null;
public String cancellationReason = null;
public Integer priorSubscriptionLength = null;
public String termsVersion = null;
public Date termsAcceptedAt = null;
public Integer getId() { return id; }
public RecurringSubscriptionView setId(Integer value) { this.id = value; return this; }
public String getStatus() { return status; }
public RecurringSubscriptionView setStatus(String value) { this.status = value; return this; }
public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
public RecurringSubscriptionView setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
public Date getStartDate() { return startDate; }
public RecurringSubscriptionView setStartDate(Date value) { this.startDate = value; return this; }
public Date getLastPayment() { return lastPayment; }
public RecurringSubscriptionView setLastPayment(Date value) { this.lastPayment = value; return this; }
public Date getNextPayment() { return nextPayment; }
public RecurringSubscriptionView setNextPayment(Date value) { this.nextPayment = value; return this; }
public Integer getOwnerId() { return ownerId; }
public RecurringSubscriptionView setOwnerId(Integer value) { this.ownerId = value; return this; }
public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
public RecurringSubscriptionView setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
public Integer getDeclinedCounter() { return declinedCounter; }
public RecurringSubscriptionView setDeclinedCounter(Integer value) { this.declinedCounter = value; return this; }
public Integer getSubscriptionLength() { return subscriptionLength; }
public RecurringSubscriptionView setSubscriptionLength(Integer value) { this.subscriptionLength = value; return this; }
public Integer getMonthsPaid() { return monthsPaid; }
public RecurringSubscriptionView setMonthsPaid(Integer value) { this.monthsPaid = value; return this; }
public Integer getMonthlyPrice() { return monthlyPrice; }
public RecurringSubscriptionView setMonthlyPrice(Integer value) { this.monthlyPrice = value; return this; }
public BigDecimal getTransactionFee() { return transactionFee; }
public RecurringSubscriptionView setTransactionFee(BigDecimal value) { this.transactionFee = value; return this; }
public String getPaymentTokenId() { return paymentTokenId; }
public RecurringSubscriptionView setPaymentTokenId(String value) { this.paymentTokenId = value; return this; }
public String getPanLastFour() { return panLastFour; }
public RecurringSubscriptionView setPanLastFour(String value) { this.panLastFour = value; return this; }
public String getExpMonth() { return expMonth; }
public RecurringSubscriptionView setExpMonth(String value) { this.expMonth = value; return this; }
public String getExpYear() { return expYear; }
public RecurringSubscriptionView setExpYear(String value) { this.expYear = value; return this; }
public String getMode() { return mode; }
public RecurringSubscriptionView setMode(String value) { this.mode = value; return this; }
public Integer getCardId() { return cardId; }
public RecurringSubscriptionView setCardId(Integer value) { this.cardId = value; return this; }
public String getInitialPaymentDate() { return initialPaymentDate; }
public RecurringSubscriptionView setInitialPaymentDate(String value) { this.initialPaymentDate = value; return this; }
public String getInitialPaymentAmount() { return initialPaymentAmount; }
public RecurringSubscriptionView setInitialPaymentAmount(String value) { this.initialPaymentAmount = value; return this; }
public String getInitialPaymentCurrency() { return initialPaymentCurrency; }
public RecurringSubscriptionView setInitialPaymentCurrency(String value) { this.initialPaymentCurrency = value; return this; }
public String getInitialPaymentStatus() { return initialPaymentStatus; }
public RecurringSubscriptionView setInitialPaymentStatus(String value) { this.initialPaymentStatus = value; return this; }
public Date getCancelledAt() { return cancelledAt; }
public RecurringSubscriptionView setCancelledAt(Date value) { this.cancelledAt = value; return this; }
public String getCancellationReason() { return cancellationReason; }
public RecurringSubscriptionView setCancellationReason(String value) { this.cancellationReason = value; return this; }
public Integer getPriorSubscriptionLength() { return priorSubscriptionLength; }
public RecurringSubscriptionView setPriorSubscriptionLength(Integer value) { this.priorSubscriptionLength = value; return this; }
public String getTermsVersion() { return termsVersion; }
public RecurringSubscriptionView setTermsVersion(String value) { this.termsVersion = value; return this; }
public Date getTermsAcceptedAt() { return termsAcceptedAt; }
public RecurringSubscriptionView setTermsAcceptedAt(Date value) { this.termsAcceptedAt = value; return this; }
}
}
Java MyRecurringPaymentsRequest 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/mine 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,
startDate: 0001-01-01,
lastPayment: 0001-01-01,
nextPayment: 0001-01-01,
ownerId: 0,
ownerCardTypeId: 0,
declinedCounter: 0,
subscriptionLength: 0,
monthsPaid: 0,
monthlyPrice: 0,
transactionFee: 0,
paymentTokenId: String,
panLastFour: String,
expMonth: String,
expYear: String,
mode: String,
cardId: 0,
initialPaymentDate: String,
initialPaymentAmount: String,
initialPaymentCurrency: String,
initialPaymentStatus: String,
cancelledAt: 0001-01-01,
cancellationReason: String,
priorSubscriptionLength: 0,
termsVersion: String,
termsAcceptedAt: 0001-01-01
}
],
statusCode: 0,
message: String
}