AutoBill object for the Account and examine its status, as Entitlements may remain active after an AutoBill has been stopped. For example, if a subscription is cancelled midway through a Billing Period, the AutoBill status will be Stopped, but the customer may be granted access until the paid period expires.
The Entitlement object provides two methods for retrieving entitlements by the Account object, entitlementID, or both:
$entitlement->fetchByEntitlementIdAndAccount()$entitlement->fetchByAccount()
Entitlement objects, each specifying an Account object, an entitlementID, and an endTimestamp value. To show if the Entitlement object is active on the date fetched, Subscribe sets the value of the active flag on the Entitlement objects returned by the calls according to the status of the associated AutoBill object and its end-date (the time until which the customer is expected to pay).
Parent topic:Working with Entitlements
