Interface SubscriptionItemAdjustmentService<P extends SubscriptionItemAdjustment>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
- All Known Implementing Classes:
DefaultSubscriptionItemAdjustmentService
public interface SubscriptionItemAdjustmentService<P extends SubscriptionItemAdjustment>
extends com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PaddItemAdjustment(P subscriptionItemAdjustment) Deprecated.bulkRemoveSubscriptionItemAdjustments(RemoveSubscriptionItemAdjustmentRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) RemovesSubscriptionItemAdjustmentwith the provided ids.voidcommit(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Apply any uncommitted changes to the production state.findAllByIds(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findAllByIds(List<String> ids) Deprecated.findAllBySubscriptionItemIdsIn(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of theSubscriptionItemAdjustmentsfor all the providedIDs.Deprecated.UsefindById(String, ContextInfo)insteadfindById(String itemAdjustmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findBySubscriptionItemId(String subscriptionItemId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findForSubscriptionItemId(String subscriptionItemId) Deprecated.UsefindBySubscriptionItemId(String, ContextInfo)insteaddefault voidremoveItemAdjustment(String itemAdjustmentId) Deprecated.UseCrudEntityService.delete(String, ContextInfo)insteadvoidrevert(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Revert any uncommitted changes.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
-
Method Details
-
findById
Deprecated.UsefindById(String, ContextInfo)instead -
findById
-
findAllByIds
Deprecated. -
findAllByIds
List<P> findAllByIds(Collection<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
findAllBySubscriptionItemIdsIn
List<P> findAllBySubscriptionItemIdsIn(Collection<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of theSubscriptionItemAdjustmentsfor all the providedIDs.- Parameters:
ids- TheSubscriptionItem IDswhoseSubscriptionItemAdjustmentsshould be read.contextInfo- Additional sandbox and multitenant info- Returns:
- All of the
SubscriptionItemAdjustmentsfor all the providedIDs.
-
findForSubscriptionItemId
Deprecated.UsefindBySubscriptionItemId(String, ContextInfo)instead -
findBySubscriptionItemId
-
addItemAdjustment
Deprecated.UseCrudEntityService.create(Object, ContextInfo)instead -
removeItemAdjustment
Deprecated.UseCrudEntityService.delete(String, ContextInfo)instead -
commit
void commit(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Apply any uncommitted changes to the production state. Subscriptions are not only locked during a modification flow, but changes are also stored in a temporary modification state. When the modification flow is complete, this method is called to finalize the changes.Special note, during the modification flow, any retrieval of the subscription (and dependents) will return the modified state. However, the billing view of the subscription will continue to see the unmodified state until this method is called and the changes are finalized.
- Parameters:
subscriptionId- the subscription to commitcontextInfo- context information around multi-tenant state
-
revert
void revert(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Revert any uncommitted changes. This will remove any changes that have been made during the modification flow and leave the production state untouched.- Parameters:
subscriptionId- the subscription to revertcontextInfo- context information around multi-tenant state- See Also:
-
bulkRemoveSubscriptionItemAdjustments
RemoveSubscriptionItemAdjustmentResponse bulkRemoveSubscriptionItemAdjustments(RemoveSubscriptionItemAdjustmentRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) RemovesSubscriptionItemAdjustmentwith the provided ids.- Parameters:
request- theRemoveSubscriptionItemAdjustmentRequestto remove the item adjustmentscontextInfo- context information around multi-tenant state- Returns:
- the
RemoveSubscriptionItemAdjustmentResponsethat contains an information about removedSubscriptionItemAdjustments
-
CrudEntityService.create(Object, ContextInfo)instead