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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ClubManager.Api.Services.Query;

namespace ClubManager.Api.Services.Query
{
    [AutoQueryViewer(Description="", IconUrl="octicon:database", Title="PaymentRecurrence")]
    public partial class FindPaymentRecurrence
        : QueryDb<PaymentRecurrenceInstance>
    {
    }

    public partial class PaymentRecurrenceInstance
    {
        public virtual int PaymentRecurrenceId { get; set; }
        public virtual DateTime CheckDate { get; set; }
        public virtual DateTime NextDate { get; set; }
        public virtual DateTime? EndDate { get; set; }
        public virtual decimal Amount { get; set; }
        public virtual int Recurrence { get; set; }
        public virtual int PaymentType { get; set; }
        public virtual bool Deleted { get; set; }
        [References(typeof(ClubManager.Api.Services.Query.MembershipInstance))]
        public virtual int MembershipId { get; set; }

        public virtual bool ChargePerLicense { get; set; }
        public virtual decimal? LastPaymentAmount { get; set; }
        public virtual int? LastPaymentMethodId { get; set; }
        public virtual bool Disabled { get; set; }
    }

}

namespace ServiceStack
{
    [DataContract]
    public partial class QueryBase
    {
        public QueryBase()
        {
            Meta = new Dictionary<string, string>{};
        }

        [DataMember(Order=1)]
        public virtual int? Skip { get; set; }

        [DataMember(Order=2)]
        public virtual int? Take { get; set; }

        [DataMember(Order=3)]
        public virtual string OrderBy { get; set; }

        [DataMember(Order=4)]
        public virtual string OrderByDesc { get; set; }

        [DataMember(Order=5)]
        public virtual string Include { get; set; }

        [DataMember(Order=6)]
        public virtual string Fields { get; set; }

        [DataMember(Order=7)]
        public virtual Dictionary<string, string> Meta { get; set; }
    }

    public partial class QueryDb<T>
        : QueryBase
    {
    }

    [DataContract]
    public partial class QueryResponse<T>
    {
        public QueryResponse()
        {
            Results = new List<T>{};
            Meta = new Dictionary<string, string>{};
        }

        [DataMember(Order=1)]
        public virtual int Offset { get; set; }

        [DataMember(Order=2)]
        public virtual int Total { get; set; }

        [DataMember(Order=3)]
        public virtual List<T> Results { get; set; }

        [DataMember(Order=4)]
        public virtual Dictionary<string, string> Meta { get; set; }

        [DataMember(Order=5)]
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# FindPaymentRecurrence 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 /api/Query/PaymentRecurrence HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: text/jsv
Content-Type: text/jsv
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: text/jsv
Content-Length: length

{
	Offset: 0,
	Total: 0,
	Results: 
	[
		{
			PaymentRecurrenceId: 0,
			CheckDate: 0001-01-01,
			NextDate: 0001-01-01,
			EndDate: 0001-01-01,
			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
		}
	}
}