Package org.killbill.billing.catalog.api
Interface CatalogUserApi
-
- All Superinterfaces:
KillbillApi
public interface CatalogUserApi extends KillbillApi
The interfaceCatalogUserApito retrieve catalog information
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSimplePlan(SimplePlanDescriptor planDescriptor, org.joda.time.DateTime requestedDate, CallContext context)Allows to add plan definition in existing per-tenant catalog.voidcreateDefaultEmptyCatalog(org.joda.time.DateTime effectiveDate, CallContext callContext)Creates a per-tenant default template catalogvoiddeleteCatalog(CallContext callContext)Delete a per-tenant catalog (should be used with caution)VersionedCataloggetCatalog(String catalogName, TenantContext context)Retrieves the multi versioned catalog.StaticCataloggetCurrentCatalog(String catalogName, TenantContext context)Retrieves the current catalogvoiduploadCatalog(String catalogXML, CallContext context)CatalogValidationvalidateCatalog(String catalogXML, CallContext context)Validates a catalog
-
-
-
Method Detail
-
getCatalog
VersionedCatalog getCatalog(String catalogName, TenantContext context) throws CatalogApiException
Retrieves the multi versioned catalog.- Parameters:
catalogName- the name of the catalogcontext- the user context that specifies the tenant information- Returns:
- the
Catalog - Throws:
CatalogApiException
-
getCurrentCatalog
StaticCatalog getCurrentCatalog(String catalogName, TenantContext context) throws CatalogApiException
Retrieves the current catalog- Parameters:
catalogName- the name of the catalogcontext- the user context that specifies the tenant information- Returns:
- the
Catalog - Throws:
CatalogApiException
-
uploadCatalog
void uploadCatalog(String catalogXML, CallContext context) throws CatalogApiException
- Parameters:
catalogXML- the catalog XMLcontext- the user context- Throws:
CatalogApiException
-
validateCatalog
CatalogValidation validateCatalog(String catalogXML, CallContext context)
Validates a catalog- Parameters:
catalogXML- the catalog XMLcontext- the user context- Returns:
- the
CatalogValidation
-
createDefaultEmptyCatalog
void createDefaultEmptyCatalog(org.joda.time.DateTime effectiveDate, CallContext callContext) throws CatalogApiExceptionCreates a per-tenant default template catalog- Parameters:
effectiveDate- the effective date for this catalogcallContext- 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
-
deleteCatalog
void deleteCatalog(CallContext callContext) throws CatalogApiException
Delete a per-tenant catalog (should be used with caution)- Parameters:
callContext- the user context- Throws:
CatalogApiException
-
-