The GiftlistSearchActor is used to find a customer’s gift list. This actor is located at /atg/commerce/gifts/GiftlistSearchActor, and contains the search actor-chain.

Parameter

Description

firstName

The first name of the customer.

lastName

The last name of the customer.

eventType

The list event type.

eventDate

The list event date.

sortField

Indicates the field used to sort the results.

sortDirection

Indicates the direction that the results are sorted.

resultsPerPage

The number of results that are displayed per page.

currentPage

The paging results of the search to display.

Search for Customer Gift List Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
"firstName" : "Stuart", "lastName" : "Schmidt", "eventType": "Other", "eventDate"
: \"AUG 30, 2013\", "sortDirection": "desc", "sortField" : "eventName",
"currentPage": 1, "resultsPerPage": 5 }" "http://localhost:8180/rest/model/atg/
commerce/gifts/CSRGiftlistSearchActor/search"

The server response may be similar to the following:

{"giftlists": [
  {
    "giftlistItems": [],
    "instructions": null,
    "description": null,
    "name": "Birthday",
    "public": true,
    "date": {"time": 1377837000000},
    "type": "Other",
    "repositoryId": "gl140010",
    "addressId": null
  },
  {
    "giftlistItems": [{
      "siteId": "storeSiteUS",
      "skuId": "xsku1043",
      "quantity": 2,
      "repositoryId": "gi50001",
      "productId": "xprod1015"
    }],
    "instructions": null,
    "description": null,
    "name": "updated test",
    "public": true,
    "date": {"time": 1377837000000},
    "type": "Other",
    "repositoryId": "gl120010",
    "addressId": null
  },
  {
    "giftlistItems": [],
    "instructions": null,
    "description": null,
    "name": "Anniversary",
    "public": true,
    "date": {"time": 1377837000000},
    "type": "Other",
    "repositoryId": "gl120011",
    "addressId": null
  }
]
}

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices