Ejemplo n.º 1
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.º 2
0
 public static function initStatics()
 {
     self::$_resourcePath = new Bf_ResourcePath('pricing-component-values', 'PricingComponentValue');
 }
Ejemplo n.º 3
0
 /**
  * Removes for the specified subscription pending value changes for the given pricing component
  * @param union[string($id|$name) | Bf_PricingComponent] Reference to pricing component whose pending changes you wish to discard. <string>: ID or name of the Bf_PricingComponent. <Bf_PricingComponent>: The Bf_PricingComponent.
  * @param union[string | Bf_Subscription] $subscription The Bf_Subscription from which the Bf_PricingComponent should be removed. <string>: ID of the Bf_Subscription. <Bf_Subscription>: The Bf_Subscription.
  * @return Bf_PricingComponentValue[] The remaining pricing component values in effect for the provided Bf_PricingComponent
  */
 public static function removePendingValueChangeFromSubscription($pricingComponent, $subscription, $queryParams = array())
 {
     $subscriptionID = Bf_Subscription::getIdentifier($subscription);
     $pricingComponentRef = Bf_PricingComponent::getIdentifier($pricingComponent);
     $endpoint = sprintf("%s/values/%s", rawurlencode($subscriptionID), rawurlencode($pricingComponentRef));
     $responseEntity = Bf_PricingComponentValue::getClassName();
     return static::retireAndGrabCollection($endpoint, NULL, $customClient, $responseEntity, $queryParams);
 }