src/test/java/com/squareup/connect/api/CatalogApiTest.java
@Test
    public void updateItemModifierListsTest() throws ApiException {
        String coffeeId = idMap.get("#Coffee");
        String milksId = idMap.get("#Milks");
        String syrupsId = idMap.get("#Syrups");

        RetrieveCatalogObjectResponse objectBefore = api.retrieveCatalogObject(coffeeId, false);
        assertEquals(1, objectBefore.getObject().getItemData().getModifierListInfo().size());
        assertEquals(milksId, objectBefore.getObject().getItemData().getModifierListInfo().get(0).getModifierListId());

        UpdateItemModifierListsRequest body = new UpdateItemModifierListsRequest()
            .addItemIdsItem(coffeeId)
            .addModifierListsToDisableItem(milksId)
            .addModifierListsToEnableItem(syrupsId);
        UpdateItemModifierListsResponse response = api.updateItemModifierLists(body);

        RetrieveCatalogObjectResponse objectAfter = api.retrieveCatalogObject(coffeeId, false);
        assertEquals(1, objectAfter.getObject().getItemData().getModifierListInfo().size());
        assertEquals(syrupsId, objectAfter.getObject().getItemData().getModifierListInfo().get(0).getModifierListId());
    }
/**
     * UpdateItemModifierLists
     * <p>
     * Updates the [CatalogModifierList](#type-catalogmodifierlist) objects that apply to the targeted [CatalogItem](#type-catalogitem) without having to perform an upsert on the entire item.
     *
     * @throws ApiException if the Api call fails
     */
UpdateItemModifierLists

Updates the [CatalogModifierList](#type-catalogmodifierlist) objects that apply to the targeted [CatalogItem](#type-catalogitem) without having to perform an upsert on the entire item.

@throws ApiException if the Api call fails
UpdateItemModifierLists Updates the [ CatalogModifierList ] ( #type - catalogmodifierlist ) objects that apply to the targeted [ CatalogItem ] ( #type - catalogitem ) without having to perform an upsert on the entire item . @throws ApiException if the Api call fails
@Test
    public void updateItemModifierListsTest() throws ApiException {
        String coffeeId = idMap.get("#Coffee");
        String milksId = idMap.get("#Milks");
        String syrupsId = idMap.get("#Syrups");
        RetrieveCatalogObjectResponse objectBefore = api.retrieveCatalogObject(coffeeId, false);
        assertEquals(1, objectBefore.getObject().getItemData().getModifierListInfo().size());
        assertEquals(milksId, objectBefore.getObject().getItemData().getModifierListInfo().get(0).getModifierListId());
        UpdateItemModifierListsRequest body = new UpdateItemModifierListsRequest()
            .addItemIdsItem(coffeeId)
            .addModifierListsToDisableItem(milksId)
            .addModifierListsToEnableItem(syrupsId);
        UpdateItemModifierListsResponse response = api.updateItemModifierLists(body);
        RetrieveCatalogObjectResponse objectAfter = api.retrieveCatalogObject(coffeeId, false);
        assertEquals(1, objectAfter.getObject().getItemData().getModifierListInfo().size());
        assertEquals(syrupsId, objectAfter.getObject().getItemData().getModifierListInfo().get(0).getModifierListId());
    }
@ Test public void updateItemModifierListsTest ( ) throws ApiException { String coffeeId = idMap . get ( "#Coffee" ) ; String milksId = idMap . get ( "#Milks" ) ; String syrupsId = idMap . get ( "#Syrups" ) ; RetrieveCatalogObjectResponse objectBefore = api . retrieveCatalogObject ( coffeeId , false ) ; assertEquals ( 1 , objectBefore . getObject ( ) . getItemData ( ) . getModifierListInfo ( ) . size ( ) ) ; assertEquals ( milksId , objectBefore . getObject ( ) . getItemData ( ) . getModifierListInfo ( ) . get ( 0 ) . getModifierListId ( ) ) ; UpdateItemModifierListsRequest body = new UpdateItemModifierListsRequest ( ) . addItemIdsItem ( coffeeId ) . addModifierListsToDisableItem ( milksId ) . addModifierListsToEnableItem ( syrupsId ) ; UpdateItemModifierListsResponse response = api . updateItemModifierLists ( body ) ; RetrieveCatalogObjectResponse objectAfter = api . retrieveCatalogObject ( coffeeId , false ) ; assertEquals ( 1 , objectAfter . getObject ( ) . getItemData ( ) . getModifierListInfo ( ) . size ( ) ) ; assertEquals ( syrupsId , objectAfter . getObject ( ) . getItemData ( ) . getModifierListInfo ( ) . get ( 0 ) . getModifierListId ( ) ) ; }
UpdateItemModifierLists
 <p>
 Updates the [CatalogModifierList](#type-catalogmodifierlist) objects that apply to the targeted [CatalogItem](#type-catalogitem) without having to perform an upsert on the entire item.
UpdateItemModifierLists <p > Updates the [ CatalogModifierList ] ( #type - catalogmodifierlist ) objects that apply to the targeted [ CatalogItem ] ( #type - catalogitem ) without having to perform an upsert on the entire item .