Interface CatalogUserApi

  • All Superinterfaces:
    KillbillApi

    public interface CatalogUserApi
    extends KillbillApi
    The interface CatalogUserApi to retrieve catalog information
    • Method Detail

      • validateCatalog

        CatalogValidation validateCatalog​(String catalogXML,
                                          CallContext context)
        Validates a catalog
        Parameters:
        catalogXML - the catalog XML
        context - the user context
        Returns:
        the CatalogValidation
      • createDefaultEmptyCatalog

        void createDefaultEmptyCatalog​(org.joda.time.DateTime effectiveDate,
                                       CallContext callContext)
                                throws CatalogApiException
        Creates a per-tenant default template catalog
        Parameters:
        effectiveDate - the effective date for this catalog
        callContext - the user context
        Throws:
        CatalogApiException
      • addSimplePlan

        void addSimplePlan​(SimplePlanDescriptor planDescriptor,
                           org.joda.time.DateTime requestedDate,
                           CallContext context)
                    throws CatalogApiException
        Allows to add plan definition in existing per-tenant catalog. The simplicity of the api limits the types of plans that can be added (recurring evergreen plans defined for one currency with or without a trial)
        Parameters:
        planDescriptor -
        requestedDate -
        context -
        Throws:
        CatalogApiException