Click or drag to resize

LoyaltyClientSelectDateOfLastTransaction Method

Syntax
C#
public ResultOfdateTime SelectDateOfLastTransaction(
	ManagementGroupRequestOfTransactionProductSearch request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfTransactionProductSearch

Return Value

Type: ResultOfdateTime
Examples
C#
using (var svc = new LoyaltyService.LoyaltyClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfTransactionProductSearch();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var search = new LoyaltyService.TransactionProductSearch();
  search.Member_RSN = new Guid("15377e10-218a-4cf2-b531-bae3bfad99bb");;//Optional - RSN of member
  search.ProductCode = "Product_123";//Optional

  //add search to request
  request.Value = search;

  LoyaltyService.ResultOfdateTime result = svc.SelectDateOfLastTransaction(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also