Class CustomerSubscriptionDetails


  • public final class CustomerSubscriptionDetails
    extends Object
    Holds Customer subscription details. Clients can display available products to unregistered customers by explicitly passing subscription details.
    • Constructor Detail

      • CustomerSubscriptionDetails

        public CustomerSubscriptionDetails()
    • Method Detail

      • registeredFeatures

        public List<CustomerSubscriptionRegisteredFeatures> registeredFeatures()
        Get the registeredFeatures property: List of registered feature flags for subscription.
        Returns:
        the registeredFeatures value.
      • withRegisteredFeatures

        public CustomerSubscriptionDetails withRegisteredFeatures​(List<CustomerSubscriptionRegisteredFeatures> registeredFeatures)
        Set the registeredFeatures property: List of registered feature flags for subscription.
        Parameters:
        registeredFeatures - the registeredFeatures value to set.
        Returns:
        the CustomerSubscriptionDetails object itself.
      • locationPlacementId

        public String locationPlacementId()
        Get the locationPlacementId property: Location placement Id of a subscription.
        Returns:
        the locationPlacementId value.
      • withLocationPlacementId

        public CustomerSubscriptionDetails withLocationPlacementId​(String locationPlacementId)
        Set the locationPlacementId property: Location placement Id of a subscription.
        Parameters:
        locationPlacementId - the locationPlacementId value to set.
        Returns:
        the CustomerSubscriptionDetails object itself.
      • quotaId

        public String quotaId()
        Get the quotaId property: Quota ID of a subscription.
        Returns:
        the quotaId value.
      • withQuotaId

        public CustomerSubscriptionDetails withQuotaId​(String quotaId)
        Set the quotaId property: Quota ID of a subscription.
        Parameters:
        quotaId - the quotaId value to set.
        Returns:
        the CustomerSubscriptionDetails object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.