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 Summary
Modifier 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 onAccount
Account 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.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, create, remove, remove, save, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listSyncProjections
io.reactivex.rxjava3.core.Observable<AccountPriceSetIdentityProjection> listSyncProjections(Account account) Get a list of AccountPriceSet projections based onAccount
Account must, at least, have an id- Parameters:
account
-Account
- Returns:
- Observable stream of sync projection
-
listSyncProjectionsByCode
io.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
-
listById
Get a list of AccountPriceSet objects from a list of projection ids- Parameters:
ids
- AccountPriceSet ids- Returns:
- Observable stream of AccountPriceSets
-
listByCode
Get a list of AccountPriceSet objects from a list of projection codes- Parameters:
codes
- AccountPriceSet codes- Returns:
- Observable stream of AccountPriceSets
-
addPriceSetToParent
io.reactivex.rxjava3.core.Single<Boolean> addPriceSetToParent(AccountPriceSet accountPriceSet, MorpheusModel parent) Adds a price set to parent association- Parameters:
accountPriceSet
- accountPriceSet to associateparent
- target of the association- Returns:
- status of add results
-
addToPriceSet
io.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 modifyaccountPrice
- AccountPrice to add to the AccountPriceSet- Returns:
- status of add results
-
addToPriceSet
io.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 modifyaccountPriceIdp
- identityProjection of AccountPrice to add to the AccountPriceSet- Returns:
- status of add results
-