Ejemplo n.º 1
0
 protected function doUnserialize(array $json)
 {
     // consult parent for further unserialization
     parent::doUnserialize($json);
     $this->unserializeEntity('newSubscription', Bf_Subscription::getClassName(), $json);
     $this->unserializeEntity('previousSubscription', Bf_Subscription::getClassName(), $json);
 }
Ejemplo n.º 2
0
 protected function doUnserialize(array $json)
 {
     // consult parent for further unserialization
     parent::doUnserialize($json);
     $this->unserializeArrayEntities('subscriptions', Bf_Subscription::getClassName(), $json);
     $this->unserializeArrayEntities('invoices', Bf_Invoice::getClassName(), $json);
 }
Ejemplo n.º 3
0
 protected function doUnserialize(array $json)
 {
     // consult parent for further unserialization
     parent::doUnserialize($json);
     $this->unserializeEntity('subscription', Bf_Subscription::getClassName(), $json);
     $this->unserializeEntity('codeType', Bf_AmendmentPriceRequestCodeType::getClassName(), $json);
     $this->unserializeArrayEntities('pricingComponentValues', Bf_PricingComponentValue::getClassName(), $json);
 }
Ejemplo n.º 4
0
 /**
  * Gets a list of subscriptions to which the specified coupon code has been applied.
  * Expects a 'base' coupon code.
  * @param string The Coupon code on which to search.
  * @return Bf_Subscription[] The fetched subscriptions.
  */
 public static function getSubscriptionApplicationsForBaseCode($baseCode, $options = NULL, $customClient = NULL)
 {
     // empty IDs are no good!
     if (!$baseCode) {
         throw new Bf_EmptyArgumentException("Cannot lookup empty coupon base code!");
     }
     $endpoint = sprintf("%s/subscriptions", rawurlencode($baseCode));
     $responseEntity = Bf_Subscription::getClassName();
     return static::getCollection($endpoint, $options, $customClient, $responseEntity);
 }