Class DunningAddressServiceImpl

java.lang.Object
ch.tocco.nice2.optional.debitor.impl.services.dunning.DunningAddressServiceImpl
All Implemented Interfaces:
DunningAddressService

@Component public class DunningAddressServiceImpl extends Object implements DunningAddressService
  • Constructor Details

  • Method Details

    • getChangedDunningAddressBlock

      public Optional<String> getChangedDunningAddressBlock(Entity debitor)
      Description copied from interface: DunningAddressService
      Resolve the address block for the given debitor. Only return something if the address was changed. step 1: check if the address of the order is changed - user of order + address of order + address addition of order step 2: check if the address of the user is changed - user of order, billing address of user + address addition of order - only applicable if the order is linked with a user - only applicable if no alternate billing address was used
      Specified by:
      getChangedDunningAddressBlock in interface DunningAddressService
      Parameters:
      debitor - the debitor for which the address should be resolved
      Returns:
      the changed address or empty
    • setInvoiceContributions

      @Autowired(required=false) public void setInvoiceContributions(List<InvoicePropertiesContribution> invoiceContributions)