Interface B2BCommerceUnitService

    • Method Detail

      • getCustomerForUid

        <T extends B2BCustomerModel> T getCustomerForUid​(java.lang.String uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets a customer for a given uid
        Parameters:
        uid - A unique identifier for B2BCustomerModel
        Returns:
        A B2BCustomerModel for the given uid
      • addApproverToUnit

        B2BCustomerModel addApproverToUnit​(java.lang.String unitId,
                                           java.lang.String approverId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Add approver to given unit
        Parameters:
        unitId - A unique identifier for B2BUnitModel
        approverId - A unique identifier for B2BCustomerModel who is a approver
        Returns:
        Updated B2BCustomerModel object after adding approver to customer.
      • removeApproverFromUnit

        B2BCustomerModel removeApproverFromUnit​(java.lang.String unitUid,
                                                java.lang.String approverUid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        If an approver is a member of the B2BUnit remove b2bapprovergroup role, if the approver is a member of the current branch of units the approver will be removed from B2BUnitModel.getApprovers() relationship
        Parameters:
        unitUid - A unique identifier of B2BUnitModel
        approverUid - A unique identifier of B2BCustomerModel
        Returns:
        An approver who was removed from a B2BUnitModel.getApprovers()