Required role: | API |
All Verbs | /api/Query/PaymentRecurrence |
---|
import Foundation
import ServiceStack
// @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="PaymentRecurrence")
public class FindPaymentRecurrence : QueryDb<PaymentRecurrenceInstance>
{
required public init(){ super.init() }
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}
public class PaymentRecurrenceInstance : Codable
{
public var paymentRecurrenceId:Int?
public var checkDate:Date?
public var nextDate:Date?
public var endDate:Date?
public var amount:Double?
public var recurrence:Int?
public var paymentType:Int?
public var deleted:Bool?
// @References(typeof(MembershipInstance))
public var membershipId:Int?
public var chargePerLicense:Bool?
public var lastPaymentAmount:Double?
public var lastPaymentMethodId:Int?
public var disabled:Bool?
required public init(){}
}
Swift FindPaymentRecurrence DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
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/csv 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"}}}