public interface SharingExtensionContext
Modifier and Type | Method and Description |
---|---|
ExtensionBalance |
getBalance(java.lang.String balanceId)
Gets the balance for the passed balance identifier
|
ExtensionBillingUnit |
getBillingUnit(java.lang.String billingUnitId)
Gets the billing Unit for the passed billing Unit identifier
|
ExtensionCustomer |
getCustomer(java.lang.String customerId)
Gets the customer for the passed customer identifier
|
ExtensionProduct |
getProduct(java.lang.String productId)
Gets the product for the passed product identifier
|
java.util.Collection<java.lang.String> |
getSharingBalanceIds()
Method to return the sharing balance Ids
|
java.util.Collection<java.lang.String> |
getSharingBillingUnitIds()
Method to return the sharing billing unit Ids
|
java.util.Collection<java.lang.String> |
getSharingCustomerIds()
Method to return the sharing customer Ids
|
java.util.Collection<java.lang.String> |
getSharingProductIds()
Method to return the sharing product Ids
|
java.util.Map<java.lang.String,java.lang.String> |
getSubscriberPreferences(java.lang.String productId,
java.lang.String customerId)
Returns the subscriber preferences for sharing customer/product.
|
ExtensionBalance getBalance(java.lang.String balanceId)
balanceId
- input balance identifierExtensionBillingUnit getBillingUnit(java.lang.String billingUnitId)
billingUnitId
- input billing Unit identifierExtensionCustomer getCustomer(java.lang.String customerId)
customerId
- input customer identifierExtensionProduct getProduct(java.lang.String productId)
productId
- input product identifierjava.util.Collection<java.lang.String> getSharingCustomerIds()
java.util.Collection<java.lang.String> getSharingProductIds()
java.util.Collection<java.lang.String> getSharingBalanceIds()
java.util.Collection<java.lang.String> getSharingBillingUnitIds()
java.util.Map<java.lang.String,java.lang.String> getSubscriberPreferences(java.lang.String productId, java.lang.String customerId)
productId
- ID of the product for which the preferences should be fetched. If not provided, only the customer level preferences will be returnedcustomerId
- ID of the customer for which the preferences should be fetched