Subscription wrapped object with camel case properties. Each properties maps to a field on the SObject that has _ for each capital letter. Ex. (salesOrderLine -> Sales_Order_Line__c)

Method Summary

Modifier and Type Method and Description
Subscription getInstance()
Subscription getInstance(OrderApi__Subscription__c sub)
List<Subscription> getInstance(List subs)
void Subscription()
void fromSObject(SObject subscriptionObj)

Method Detail

This class supports the following methods:

global static Subscription getInstance()

Get base instance with no initial S0bject.


global static Subscription getInstance(OrderApi__Subscription__c sub)

Get base instance with an initial SObject.
Parameters

Name Type Description
sub OrderApi__Subscription__c OrderApi__Subscription__c

global static List<Subscription> getInstance(List<OrderApi__Subscription__c> subs)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
subs List<OrderApi__Subscription__c> List

global Subscription()

Subscription Constructor that should not be called directly.


global virtual override void fromSObject(SObject subscriptionObj)

Parameters

Name Type Description
subscriptionObj SObject undefined

Properties

Name Type Description
id Id
name String
status String
description String
currentTermStartDate String
currentTermEndDate String
enableAutoRenew Boolean
subscriptionPlan String
item Id
itemClass Id
contact Id
account Id
salesOrderLine Id
upgradedSubscription Id
paymentMethod Id
renewalOverride String
isUpgraded Boolean
isCancelled Boolean
isSuspended Boolean
isPending Boolean
isExpired Boolean
inGracePeriod Boolean
isActive Boolean
subscriptionManagementPageOverride String
termStartDate Date
termEndDate Date
nextScheduledPaymentDate Date
termAssignmentsAllowed Decimal
termActiveAssignments Decimal
gracePeriodEndDate Date
terms List