public CreditCard Update(APIContext apiContext, PatchRequest patchRequest)
{
// Validate the arguments to be used in the request
ArgumentValidator.ValidateAndSetupAPIContext(apiContext);
ArgumentValidator.Validate(this.id, "Id");
ArgumentValidator.Validate(patchRequest, "patchRequest");
// Configure and send the request
var pattern = "v1/vault/credit-cards/{0}";
var resourcePath = SDKUtil.FormatURIPath(pattern, new object[] { this.id });
return PayPalResource.ConfigureAndExecute<CreditCard>(apiContext, HttpMethod.PATCH, resourcePath, patchRequest.ConvertToJson());
}