public static void Update(APIContext apiContext, string paymentId, PatchRequest patchRequest)
{
// Validate the arguments to be used in the request
ArgumentValidator.ValidateAndSetupAPIContext(apiContext);
ArgumentValidator.Validate(paymentId, "paymentId");
ArgumentValidator.Validate(patchRequest, "patchRequest");
// Configure and send the request
var pattern = "v1/payments/payment/{0}";
var resourcePath = SDKUtil.FormatURIPath(pattern, new object[] { paymentId });
PayPalResource.ConfigureAndExecute(apiContext, HttpMethod.PATCH, resourcePath, patchRequest.ConvertToJson());
}