/// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='request'>
 /// </param>
 public static SaveProfileResponse AddPaymentProfileByRequest(this IPaymentProfile operations, AddPaymentProfileRequest request)
 {
     return Task.Factory.StartNew(s => ((IPaymentProfile)s).AddPaymentProfileByRequestAsync(request), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='request'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task<SaveProfileResponse> AddPaymentProfileByRequestAsync( this IPaymentProfile operations, AddPaymentProfileRequest request, CancellationToken cancellationToken = default(CancellationToken))
 {
     var _result = await operations.AddPaymentProfileByRequestWithHttpMessagesAsync(request, null, cancellationToken).ConfigureAwait(false);
     return _result.Body;
 }