Service class to execute CRUD operations on the Subscription object.

Method Summary

Modifier and Type Method and Description
SubscriptionService getInstance()
SubscriptionService getInstance(String version)
void getApiResponse()
List<Subscription> get(SearchRequest sr)
void getSubscriptions(Set Ids)
void getContactSubscriptions(Id contactId)
void getContactSubscriptions(Id contactId, Boolean getSubscriptionTerms)
void getSubscriptionPlan(Id subscriptionPlanId)
void getSubscriptionPlans(Set Ids)

Method Detail

This class supports the following methods:

global static SubscriptionService getInstance()

Get Instance of SubscriptionService.


global static SubscriptionService getInstance(String version)

Get Instance of SubscriptionVersionedService.
Parameters

Name Type Description
version String undefined

global SubscriptionService ()

SubscriptionService Constructor that should not be called directly.


global static void getApiResponse()

global virtual List<Subscription> get(SearchRequest sr)

Get list of Subscription objects using the SearchRequest object as criteria
Parameters

Name Type Description
sr SearchRequest SearchRequest

global List<Subscription> getSubscriptions(Set<Id> Ids)

Parameters

Name Type Description
Ids Set<Id> undefined

global List<Subscription> getContactSubscriptions(Id contactId)

Parameters

Name Type Description
contactId Id undefined

global List<Subscription> getContactSubscriptions(Id contactId, Boolean getSubscriptionTerms)

Parameters

Name Type Description
contactId Id undefined
getSubscriptionTerms Boolean undefined

global SubscriptionPlan getSubscriptionPlan(Id subscriptionPlanId)

Parameters

Name Type Description
subscriptionPlanId Id undefined

global List<SubscriptionPlan> getSubscriptionPlans(Set<Id> Ids)

Parameters

Name Type Description
Ids Set<Id> undefined