ClubManager.Api

<back to all web services

Command.AddMembershipCommandRequest

Requires Authentication
The following routes are available for this service:
POST/api/Command/AddMembershipCommand
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class AddMembershipResult implements ICommandResult, IConvertible
{
    int? MembershipId;
    int? RecurrenceId;
    bool? HasRecurringPayments;

    AddMembershipResult({this.MembershipId,this.RecurrenceId,this.HasRecurringPayments});
    AddMembershipResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        MembershipId = json['MembershipId'];
        RecurrenceId = json['RecurrenceId'];
        HasRecurringPayments = json['HasRecurringPayments'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'MembershipId': MembershipId,
        'RecurrenceId': RecurrenceId,
        'HasRecurringPayments': HasRecurringPayments
    };

    getTypeName() => "AddMembershipResult";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: <String, TypeInfo> {
    'AddMembershipResult': TypeInfo(TypeOf.Class, create:() => AddMembershipResult()),
});

Dart Command.AddMembershipCommandRequest DTOs

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

HTTP + CSV

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

POST /api/Command/AddMembershipCommand HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"MemberId":0,"UserId":0,"MembershipTypeId":0,"StartDate":"0001-01-01T00:00:00.0000000","PreviousMembershipAction":"Nothing","ExternallyCreated":false,"IsOnlineJoining":false,"MembershipType":{"BranchId":0,"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","Length":0,"LengthPeriod":"Day","Payments":[{"Name":"String","PaymentType":"Deposit","Amount":0,"PaymentPeriod":"Single","DirectDebitPeriod":"Daily","Recurring":0,"StartingOffset":0,"StartingOffsetPeriod":"Day","StartDate":"0001-01-01T00:00:00.0000000","PaymentMethod":"0","AutoRecur":false,"ProRata":false,"ProRataAmount":0,"ProRataStartDate":"0001-01-01T00:00:00.0000000","ProRataPaymentMethod":"0","ProRataAddToFirstPayment":false,"ChargePerLicense":false}],"AddToBalance":0,"SessionsRemaining":0,"ClassesRemaining":0,"LicensesRemaining":0,"MultiSiteAccess":false,"MemberLimit":0,"Definition":"String","BookingAccessOnly":false},"CreateRecurringPaymentsOnly":false,"MembershipReviewAttributes":[{"CustomAttributeId":0,"CustomAttributeValueId":0,"InstanceId":0,"StoredValue":"String","TypeName":"String","ReadOnly":false}],"RegistrationAttributes":[{"CustomAttributeId":0,"CustomAttributeValueId":0,"InstanceId":0,"StoredValue":"String","TypeName":"String","ReadOnly":false}],"FeeRecurrenceDisabled":false,"Expired":false,"EndDate":"0001-01-01T00:00:00.0000000","RefererMemberId":0,"PromotionId":0,"RecurringAmount":0,"RecurringStartDate":"0001-01-01T00:00:00.0000000","PaymentMethodId":0,"BookingId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'AddMembershipResult' using the custom 'csv' filter}No parameterless constructor defined for this object.