Interface MorpheusAccountPriceSetService

All Superinterfaces:
MorpheusDataQueryService<AccountPriceSet>, MorpheusDataService<AccountPriceSet,AccountPriceSetIdentityProjection>, MorpheusIdentityService<AccountPriceSetIdentityProjection>

Context methods for syncing AccountPriceSets in Morpheus
Since:
0.14.3
  • Method Details

    • listSyncProjections

      io.reactivex.rxjava3.core.Observable<AccountPriceSetIdentityProjection> listSyncProjections(Account account)
      Get a list of AccountPriceSet projections based on Account 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

      io.reactivex.rxjava3.core.Observable<AccountPriceSet> listById(Collection<Long> ids)
      Get a list of AccountPriceSet objects from a list of projection ids
      Parameters:
      ids - AccountPriceSet ids
      Returns:
      Observable stream of AccountPriceSets
    • listByCode

      io.reactivex.rxjava3.core.Observable<AccountPriceSet> listByCode(Collection<String> codes)
      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 associate
      parent - 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 modify
      accountPrice - 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 modify
      accountPriceIdp - identityProjection of AccountPrice to add to the AccountPriceSet
      Returns:
      status of add results