MembershipLevelsAPI

new MembershipLevelsAPI(rest)

This class is used to interact with Membership Levels in TidyHQ.
Parameters:
NameTypeDescription
restRestThe rest instance to use for requests.

Methods

(async) getMembershipLevel(membership_level_id, optionsopt) → {Promise.<TidyAPI_V1_MembershipLevel>}

Get a single membership level.
Parameters:
NameTypeAttributesDefaultDescription
membership_level_idnumberThe ID of the membership level.
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
Returns:
- The membership level.
Type: 
Promise.<TidyAPI_V1_MembershipLevel>

(async) getMembershipLevels(optionsopt) → {Promise.<TidyAPI_V1_MembershipLevels>}

Get a list of all membership levels.
Parameters:
NameTypeAttributesDefaultDescription
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
limitstring<optional>
The number of results to return.
offsetstring<optional>
The number of results to skip.
Returns:
- The list of membership levels.
Type: 
Promise.<TidyAPI_V1_MembershipLevels>

(async) getPricingVariations(membership_level_id, optionsopt) → {Promise.<TidyAPI_V1_PricingVariation>}

Get pricing variations for a membership level.
Parameters:
NameTypeAttributesDefaultDescription
membership_level_idnumberThe ID of the membership level.
optionsobject<optional>
{}
Properties
NameTypeAttributesDescription
access_tokenstring<optional>
The access token to use.
Returns:
- The pricing variations for the membership level.
Type: 
Promise.<TidyAPI_V1_PricingVariation>