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

currentPage

Sets the current page.

searchInput

Looks for matching strings in owner.firstName or owner.lastName.

firstName

The first name of the customer.

lastName

The last name of the customer.

eventType

The list event type.

eventDate

The list event date.

resultsPerPage

Sets the number of results to display per page.

state

The state or province of the billing address.

Search for Gift List Example
curl -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{
"firstName" : "Stuart", "lastName" : "Schmidt", "eventType": "Other", "eventDate"
: \"AUG 30, 2013\"} "http://localhost:8280/rest/model/atg/commerce/
gifts/GiftlistSearchActor/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