Package com.morpheusdata.core
Interface MorpheusAccountPriceSetService
- All Superinterfaces:
- MorpheusDataQueryService<AccountPriceSet>,- MorpheusDataService<AccountPriceSet,,- AccountPriceSetIdentityProjection> - MorpheusIdentityService<AccountPriceSetIdentityProjection>
public interface MorpheusAccountPriceSetService
extends MorpheusDataService<AccountPriceSet,AccountPriceSetIdentityProjection>, MorpheusIdentityService<AccountPriceSetIdentityProjection> 
Context methods for syncing AccountPriceSets in Morpheus
- Since:
- 0.14.3
- 
Method SummaryModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>addPriceSetToParent(AccountPriceSet accountPriceSet, MorpheusModel parent) Adds a price set to parent associationio.reactivex.rxjava3.core.Single<Boolean>addToPriceSet(AccountPriceSet accountPriceSet, AccountPrice accountPrice) Adds a price to a price set and purges and expired pricesio.reactivex.rxjava3.core.Single<Boolean>addToPriceSet(AccountPriceSetIdentityProjection accountPriceSetIdp, AccountPriceIdentityProjection accountPriceIdp) Adds a price to a price set and purges and expired pricesio.reactivex.rxjava3.core.Observable<AccountPriceSet>listByCode(Collection<String> codes) Get a list of AccountPriceSet objects from a list of projection codesio.reactivex.rxjava3.core.Observable<AccountPriceSet>listById(Collection<Long> ids) Get a list of AccountPriceSet objects from a list of projection idsio.reactivex.rxjava3.core.Observable<AccountPriceSetIdentityProjection>listSyncProjections(Account account) Get a list of AccountPriceSet projections based onAccountAccount must, at least, have an idio.reactivex.rxjava3.core.Observable<AccountPriceSetIdentityProjection>listSyncProjectionsByCode(List<String> codeList) Get a list of AccountPriceSet projections based on codeMethods inherited from interface com.morpheusdata.core.MorpheusDataQueryServicecount, find, get, list, list, listById, listOptions, listOptions, searchMethods inherited from interface com.morpheusdata.core.MorpheusDataServicebulkCreate, bulkRemove, bulkSave, create, create, remove, remove, save, saveMethods inherited from interface com.morpheusdata.core.MorpheusIdentityServicegetIdentityProperties, listIdentityProjections
- 
Method Details- 
listSyncProjectionsio.reactivex.rxjava3.core.Observable<AccountPriceSetIdentityProjection> listSyncProjections(Account account) Get a list of AccountPriceSet projections based onAccountAccount must, at least, have an id- Parameters:
- account-- Account
- Returns:
- Observable stream of sync projection
 
- 
listSyncProjectionsByCodeio.reactivex.rxjava3.core.Observable<AccountPriceSetIdentityProjection> listSyncProjectionsByCode(List<String> codeList) Get a list of AccountPriceSet projections based on code- Parameters:
- codeList- a list of AccountPriceSet codes
- Returns:
- Observable stream of sync projection
 
- 
listByIdGet a list of AccountPriceSet objects from a list of projection ids- Parameters:
- ids- AccountPriceSet ids
- Returns:
- Observable stream of AccountPriceSets
 
- 
listByCodeGet a list of AccountPriceSet objects from a list of projection codes- Parameters:
- codes- AccountPriceSet codes
- Returns:
- Observable stream of AccountPriceSets
 
- 
addPriceSetToParentio.reactivex.rxjava3.core.Single<Boolean> addPriceSetToParent(AccountPriceSet accountPriceSet, MorpheusModel parent) Adds a price set to parent association- Parameters:
- accountPriceSet- accountPriceSet to associate
- parent- target of the association
- Returns:
- status of add results
 
- 
addToPriceSetio.reactivex.rxjava3.core.Single<Boolean> addToPriceSet(AccountPriceSet accountPriceSet, AccountPrice accountPrice) Adds a price to a price set and purges and expired prices- Parameters:
- accountPriceSet- AccountPriceSet to modify
- accountPrice- AccountPrice to add to the AccountPriceSet
- Returns:
- status of add results
 
- 
addToPriceSetio.reactivex.rxjava3.core.Single<Boolean> addToPriceSet(AccountPriceSetIdentityProjection accountPriceSetIdp, AccountPriceIdentityProjection accountPriceIdp) Adds a price to a price set and purges and expired prices- Parameters:
- accountPriceSetIdp- identityProjection of the AccountPriceSet to modify
- accountPriceIdp- identityProjection of AccountPrice to add to the AccountPriceSet
- Returns:
- status of add results
 
 
-