Last active
June 11, 2016 01:09
-
-
Save Mozu-CS/f0d28b0b00c5bc7ea5abbffbb4942357 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Update_Customer_RecomputeLifeTimeBalance() | |
{ | |
//create instance of customer account resource | |
var accountResource = new Mozu.Api.Resources.Commerce.Customer | |
.CustomerAccountResource(_apiContext); | |
var existingAcct = accountResource.GetAccountsAsync(filter: "EmailAddress eq '[email protected]'") | |
.Result | |
.Items | |
.First(); | |
accountResource.RecomputeCustomerLifetimeValue(existingAcct.Id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment