TicketUserServices

<back to all web services

RecurringPaymentCreateRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin
The following routes are available for this service:
POST/recurringPayments
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class RecurringPaymentCreateRequest
    {
        public String phoneVerificationNumber = null;
        public String token = null;
        public String panLastFour = null;
        public String expYear = null;
        public String expMonth = null;
        public String deviceId = null;
        public Integer monthlyPrice = null;
        public Integer subscriptionLength = null;
        public Boolean chargeFirstMonth = null;
        public Integer ownerId = null;
        public Integer ownerCardTypeId = null;
        public String paymentTokenId = null;
        public BigDecimal transactionFee = null;
        public String currency = null;
        public String mode = null;
        public Date startDate = null;
        public Date lastPayment = null;
        public Date nextPayment = null;
        public String jsonResponse = null;
        public String termsVersion = null;
        public Date termsAcceptedAt = null;
        
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public RecurringPaymentCreateRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
        public String getToken() { return token; }
        public RecurringPaymentCreateRequest setToken(String value) { this.token = value; return this; }
        public String getPanLastFour() { return panLastFour; }
        public RecurringPaymentCreateRequest setPanLastFour(String value) { this.panLastFour = value; return this; }
        public String getExpYear() { return expYear; }
        public RecurringPaymentCreateRequest setExpYear(String value) { this.expYear = value; return this; }
        public String getExpMonth() { return expMonth; }
        public RecurringPaymentCreateRequest setExpMonth(String value) { this.expMonth = value; return this; }
        public String getDeviceId() { return deviceId; }
        public RecurringPaymentCreateRequest setDeviceId(String value) { this.deviceId = value; return this; }
        public Integer getMonthlyPrice() { return monthlyPrice; }
        public RecurringPaymentCreateRequest setMonthlyPrice(Integer value) { this.monthlyPrice = value; return this; }
        public Integer getSubscriptionLength() { return subscriptionLength; }
        public RecurringPaymentCreateRequest setSubscriptionLength(Integer value) { this.subscriptionLength = value; return this; }
        public Boolean isChargeFirstMonth() { return chargeFirstMonth; }
        public RecurringPaymentCreateRequest setChargeFirstMonth(Boolean value) { this.chargeFirstMonth = value; return this; }
        public Integer getOwnerId() { return ownerId; }
        public RecurringPaymentCreateRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
        public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
        public RecurringPaymentCreateRequest setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
        public String getPaymentTokenId() { return paymentTokenId; }
        public RecurringPaymentCreateRequest setPaymentTokenId(String value) { this.paymentTokenId = value; return this; }
        public BigDecimal getTransactionFee() { return transactionFee; }
        public RecurringPaymentCreateRequest setTransactionFee(BigDecimal value) { this.transactionFee = value; return this; }
        public String getCurrency() { return currency; }
        public RecurringPaymentCreateRequest setCurrency(String value) { this.currency = value; return this; }
        public String getMode() { return mode; }
        public RecurringPaymentCreateRequest setMode(String value) { this.mode = value; return this; }
        public Date getStartDate() { return startDate; }
        public RecurringPaymentCreateRequest setStartDate(Date value) { this.startDate = value; return this; }
        public Date getLastPayment() { return lastPayment; }
        public RecurringPaymentCreateRequest setLastPayment(Date value) { this.lastPayment = value; return this; }
        public Date getNextPayment() { return nextPayment; }
        public RecurringPaymentCreateRequest setNextPayment(Date value) { this.nextPayment = value; return this; }
        public String getJsonResponse() { return jsonResponse; }
        public RecurringPaymentCreateRequest setJsonResponse(String value) { this.jsonResponse = value; return this; }
        public String getTermsVersion() { return termsVersion; }
        public RecurringPaymentCreateRequest setTermsVersion(String value) { this.termsVersion = value; return this; }
        public Date getTermsAcceptedAt() { return termsAcceptedAt; }
        public RecurringPaymentCreateRequest setTermsAcceptedAt(Date value) { this.termsAcceptedAt = value; return this; }
    }

    public static class RecurringPaymentGetResult
    {
        public RecurringPayment item = null;
        public Boolean alreadyExisted = null;
        public Integer statusCode = null;
        public String message = null;
        
        public RecurringPayment getItem() { return item; }
        public RecurringPaymentGetResult setItem(RecurringPayment value) { this.item = value; return this; }
        public Boolean isAlreadyExisted() { return alreadyExisted; }
        public RecurringPaymentGetResult setAlreadyExisted(Boolean value) { this.alreadyExisted = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public RecurringPaymentGetResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public RecurringPaymentGetResult 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 RecurringPaymentCreateRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /recurringPayments HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"phoneVerificationNumber":"String","token":"String","panLastFour":"String","expYear":"String","expMonth":"String","deviceId":"String","monthlyPrice":0,"subscriptionLength":0,"chargeFirstMonth":false,"ownerId":0,"ownerCardTypeId":0,"paymentTokenId":"String","transactionFee":0,"currency":"String","mode":"String","startDate":"0001-01-01T00:00:00.0000000","lastPayment":"0001-01-01T00:00:00.0000000","nextPayment":"0001-01-01T00:00:00.0000000","jsonResponse":"String","termsVersion":"String","termsAcceptedAt":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"item":{"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-01T00:00:00.0000000","lastPayment":"0001-01-01T00:00:00.0000000","nextPayment":"0001-01-01T00:00:00.0000000","paymentTokenId":"String","declinedCounter":0,"transactionFee":0,"termsVersion":"String","termsAcceptedAt":"0001-01-01T00:00:00.0000000","currency":"String","mode":"String","lastDeclineReason":"String","lastDeclineDate":"0001-01-01T00:00:00.0000000","lastDunningStage":0,"lastDunningNotifiedAt":"0001-01-01T00:00:00.0000000"},"alreadyExisted":false,"statusCode":0,"message":"String"}