Click or drag to resize

LoyaltyClientSelectMemberNonFinancialPointsPotential Method

Returns the maximum number of potential points the Member would earn from a particular Non Financial Transaction that contains a combination of Non Financial Transaction Properties.

Remarks
The Non Financial Transaction Properties can include:
  • Card Number
  • Product Category
  • Product Code
  • Product Department
  • Product Department
Syntax
C#
public ResultOfMemberPointsPotential SelectMemberNonFinancialPointsPotential(
	ManagementGroupRequestOfCardPointsProductSearch request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfCardPointsProductSearch

Return Value

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

  var search = new LoyaltyService.CardPointsProductSearch();
  search.Card_Number = "21000005";//Required
  search.Period = "WEEK";//Required - valid values are : 'DAY', 'WEEK', 'MONTH', 'CALENDARYEAR', 'JOINEDYEAR' OR 'ANNIVERSARYYEAR'
  search.ProductCategory = "Clothes";//Optional
  search.ProductCode = "Product_123";//Optional
  search.ProductDepartment = "Merchandise";//Optional

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

  LoyaltyService.ResultOfMemberPointsPotential result = svc.SelectMemberNonFinancialPointsPotential(request);

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