Class LexOfficeServiceImpl

    • Field Detail

      • fileManagerService

        @Autowired
        private co.mastermindcms.modules.filestorage.services.FileManagerService fileManagerService
      • lexofficeApi

        private io.rocketbase.lexoffice.LexofficeApi lexofficeApi
    • Constructor Detail

      • LexOfficeServiceImpl

        public LexOfficeServiceImpl()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • createPayoutInvoice

        public Attachment createPayoutInvoice​(java.lang.String orderId,
                                              java.lang.String profileId)
        Description copied from interface: LexOfficeService
        This method creates an invoice for payout
        Specified by:
        createPayoutInvoice in interface LexOfficeService
        Parameters:
        orderId - order unique identifier
        profileId - user profile unique identifier
        Returns:
        definition of attachment
      • createCommissionInvoice

        public Attachment createCommissionInvoice​(java.lang.String orderId,
                                                  java.lang.String profileId)
        Description copied from interface: LexOfficeService
        This method creates an invoice for payout
        Specified by:
        createCommissionInvoice in interface LexOfficeService
        Parameters:
        orderId - order unique identifier
        profileId - user profile unique identifier
        Returns:
        definition of attachment
      • createContact

        public io.rocketbase.lexoffice.model.Contact createContact​(io.rocketbase.lexoffice.model.Contact contact)
        Description copied from interface: LexOfficeService
        This method creates a contact
        Specified by:
        createContact in interface LexOfficeService
        Parameters:
        contact - contact
        Returns:
        created contact
      • retrieveContact

        public io.rocketbase.lexoffice.model.Contact retrieveContact​(java.lang.String id)
        Description copied from interface: LexOfficeService
        This method retrieves a contact
        Specified by:
        retrieveContact in interface LexOfficeService
        Parameters:
        id - identifier of contact
        Returns:
        retrieved contact
      • updateContact

        public io.rocketbase.lexoffice.model.Contact updateContact​(io.rocketbase.lexoffice.model.Contact contact)
        Description copied from interface: LexOfficeService
        This method does update a contact
        Specified by:
        updateContact in interface LexOfficeService
        Parameters:
        contact - contact to update
        Returns:
        updated contact
      • getInvoicePath

        private java.lang.String getInvoicePath​(java.lang.String orderId,
                                                java.lang.String vendorId,
                                                java.lang.String fileName)
      • mapLineItem

        private io.rocketbase.lexoffice.model.LineItem mapLineItem​(CommerceItem commerceItem)
      • findContact

        private io.rocketbase.lexoffice.model.Contact findContact​(Profile profile,
                                                                  Seller vendor)
      • createContact

        private io.rocketbase.lexoffice.model.Contact createContact​(Profile profile,
                                                                    Seller vendor)
      • prepareCommissionLineItem

        private io.rocketbase.lexoffice.model.LineItem prepareCommissionLineItem​(Order order,
                                                                                 java.lang.Boolean isNegative)