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.*


open class RecurringPaymentCreateRequest
{
    var phoneVerificationNumber:String? = null
    var token:String? = null
    var panLastFour:String? = null
    var expYear:String? = null
    var expMonth:String? = null
    var deviceId:String? = null
    var monthlyPrice:Int? = null
    var subscriptionLength:Int? = null
    var chargeFirstMonth:Boolean? = null
    var ownerId:Int? = null
    var ownerCardTypeId:Int? = null
    var paymentTokenId:String? = null
    var transactionFee:BigDecimal? = null
    var currency:String? = null
    var mode:String? = null
    var startDate:Date? = null
    var lastPayment:Date? = null
    var nextPayment:Date? = null
    var jsonResponse:String? = null
    var termsVersion:String? = null
    var termsAcceptedAt:Date? = null
}

open class RecurringPaymentGetResult
{
    var item:RecurringPayment? = null
    var alreadyExisted:Boolean? = null
    var statusCode:Int? = null
    var message:String? = null
}

open class RecurringPayment
{
    var id:Int? = null
    var status:String? = null
    var phoneVerificationNumber:String? = null
    var deviceId:String? = null
    var panLastFour:String? = null
    var expYear:String? = null
    var expMonth:String? = null
    var token:String? = null
    var monthlyPrice:Int? = null
    var subscriptionLength:Int? = null
    var monthsPaid:Int? = null
    var chargeFirstMonth:Boolean? = null
    @References(EventOwner.class)
    var ownerId:Int? = null

    var ownerCardTypeId:Int? = null
    @StringLength(2147483647)
    var jsonResponse:String? = null

    var startDate:Date? = null
    var lastPayment:Date? = null
    var nextPayment:Date? = null
    var paymentTokenId:String? = null
    var declinedCounter:Int? = null
    var transactionFee:BigDecimal? = null
    var termsVersion:String? = null
    var termsAcceptedAt:Date? = null
    var currency:String? = null
    var mode:String? = null
    var lastDeclineReason:String? = null
    var lastDeclineDate:Date? = null
    var lastDunningStage:Short? = null
    var lastDunningNotifiedAt:Date? = null
}

Kotlin RecurringPaymentCreateRequest DTOs

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

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
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-01,
	lastPayment: 0001-01-01,
	nextPayment: 0001-01-01,
	jsonResponse: String,
	termsVersion: String,
	termsAcceptedAt: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-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
	},
	alreadyExisted: False,
	statusCode: 0,
	message: String
}