ClubManager.Api

<back to all web services

FindPaymentRecurrence

Requires Authentication
Required role:API
The following routes are available for this service:
All Verbs/api/Query/PaymentRecurrence
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


@AutoQueryViewer(Description="", IconUrl="octicon:database", Title="PaymentRecurrence")
open class FindPaymentRecurrence : QueryDb<PaymentRecurrenceInstance>()
{
}

open class QueryDb<T> : QueryBase()
{
}

@DataContract
open class QueryBase
{
    @DataMember(Order=1)
    var Skip:Int? = null

    @DataMember(Order=2)
    var Take:Int? = null

    @DataMember(Order=3)
    var OrderBy:String? = null

    @DataMember(Order=4)
    var OrderByDesc:String? = null

    @DataMember(Order=5)
    var Include:String? = null

    @DataMember(Order=6)
    var Fields:String? = null

    @DataMember(Order=7)
    var Meta:HashMap<String,String> = HashMap<String,String>()
}

open class PaymentRecurrenceInstance
{
    var PaymentRecurrenceId:Int? = null
    var CheckDate:Date? = null
    var NextDate:Date? = null
    var EndDate:Date? = null
    var Amount:BigDecimal? = null
    var Recurrence:Int? = null
    var PaymentType:Int? = null
    var Deleted:Boolean? = null
    @References(MembershipInstance.class)
    var MembershipId:Int? = null

    var ChargePerLicense:Boolean? = null
    var LastPaymentAmount:BigDecimal? = null
    var LastPaymentMethodId:Int? = null
    var Disabled:Boolean? = null
}

@DataContract
open class QueryResponse<T>
{
    @DataMember(Order=1)
    var Offset:Int? = null

    @DataMember(Order=2)
    var Total:Int? = null

    @DataMember(Order=3)
    var Results:ArrayList<T> = ArrayList<T>()

    @DataMember(Order=4)
    var Meta:HashMap<String,String> = HashMap<String,String>()

    @DataMember(Order=5)
    var ResponseStatus:ResponseStatus? = null
}

Kotlin FindPaymentRecurrence 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 /api/Query/PaymentRecurrence HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Skip":0,"Take":0,"OrderBy":"String","OrderByDesc":"String","Include":"String","Fields":"String","Meta":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Offset":0,"Total":0,"Results":[{"PaymentRecurrenceId":0,"CheckDate":"0001-01-01T00:00:00.0000000","NextDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","Amount":0,"Recurrence":0,"PaymentType":0,"Deleted":false,"MembershipId":0,"ChargePerLicense":false,"LastPaymentAmount":0,"LastPaymentMethodId":0,"Disabled":false}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}