< Summary

Information
Class: /home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Api/PaymentRequestsApi.cs
Assembly: Default
File(s): /home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Api/PaymentRequestsApi.cs
Line coverage
42%
Covered lines: 192
Uncovered lines: 260
Coverable lines: 452
Total lines: 1209
Line coverage: 42.4%
Branch coverage
36%
Covered branches: 39
Total branches: 108
Branch coverage: 36.1%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

/home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Api/PaymentRequestsApi.cs

#LineLine coverage
 1/*
 2 * WeShare API
 3 *
 4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 5 *
 6 * The version of the OpenAPI document: 1.0
 7 * Generated by: https://github.com/openapitools/openapi-generator.git
 8 */
 9
 10
 11using System;
 12using System.Collections.Generic;
 13using System.Collections.ObjectModel;
 14using System.Linq;
 15using System.Net;
 16using System.Net.Mime;
 17using Applications.WeShare.Swagger.Client;
 18using Applications.WeShare.Swagger.Model;
 19
 20namespace Applications.WeShare.Swagger.Api
 21{
 22
 23    /// <summary>
 24    /// Represents a collection of functions to interact with the API endpoints
 25    /// </summary>
 26    public interface IPaymentRequestsApiSync : IApiAccessor
 27    {
 28        #region Synchronous Operations
 29        /// <summary>
 30        /// Create a new payment request
 31        /// </summary>
 32        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 33        /// <param name="newPaymentRequestDTO"> (optional)</param>
 34        /// <param name="operationIndex">Index associated with the operation.</param>
 35        /// <returns>PaymentRequestDTO</returns>
 36        PaymentRequestDTO CreatePaymentRequest(NewPaymentRequestDTO newPaymentRequestDTO = default(NewPaymentRequestDTO)
 37
 38        /// <summary>
 39        /// Create a new payment request
 40        /// </summary>
 41        /// <remarks>
 42        ///
 43        /// </remarks>
 44        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 45        /// <param name="newPaymentRequestDTO"> (optional)</param>
 46        /// <param name="operationIndex">Index associated with the operation.</param>
 47        /// <returns>ApiResponse of PaymentRequestDTO</returns>
 48        ApiResponse<PaymentRequestDTO> CreatePaymentRequestWithHttpInfo(NewPaymentRequestDTO newPaymentRequestDTO = defa
 49        /// <summary>
 50        /// Find all payment requests
 51        /// </summary>
 52        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 53        /// <param name="operationIndex">Index associated with the operation.</param>
 54        /// <returns>List&lt;PaymentRequestDTO&gt;</returns>
 55        List<PaymentRequestDTO> FindAllPaymentRequests(int operationIndex = 0);
 56
 57        /// <summary>
 58        /// Find all payment requests
 59        /// </summary>
 60        /// <remarks>
 61        ///
 62        /// </remarks>
 63        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 64        /// <param name="operationIndex">Index associated with the operation.</param>
 65        /// <returns>ApiResponse of List&lt;PaymentRequestDTO&gt;</returns>
 66        ApiResponse<List<PaymentRequestDTO>> FindAllPaymentRequestsWithHttpInfo(int operationIndex = 0);
 67        /// <summary>
 68        /// Find payment requests received by a person
 69        /// </summary>
 70        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 71        /// <param name="personId">The ID of the person that received payment requests</param>
 72        /// <param name="operationIndex">Index associated with the operation.</param>
 73        /// <returns>List&lt;PaymentRequestDTO&gt;</returns>
 74        List<PaymentRequestDTO> FindPaymentRequestsReceived(int personId, int operationIndex = 0);
 75
 76        /// <summary>
 77        /// Find payment requests received by a person
 78        /// </summary>
 79        /// <remarks>
 80        ///
 81        /// </remarks>
 82        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 83        /// <param name="personId">The ID of the person that received payment requests</param>
 84        /// <param name="operationIndex">Index associated with the operation.</param>
 85        /// <returns>ApiResponse of List&lt;PaymentRequestDTO&gt;</returns>
 86        ApiResponse<List<PaymentRequestDTO>> FindPaymentRequestsReceivedWithHttpInfo(int personId, int operationIndex = 
 87        /// <summary>
 88        /// Find payment requests sent by a person
 89        /// </summary>
 90        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 91        /// <param name="personId">The ID of the person that sent payment requests</param>
 92        /// <param name="operationIndex">Index associated with the operation.</param>
 93        /// <returns>List&lt;PaymentRequestDTO&gt;</returns>
 94        List<PaymentRequestDTO> FindPaymentRequestsSent(int personId, int operationIndex = 0);
 95
 96        /// <summary>
 97        /// Find payment requests sent by a person
 98        /// </summary>
 99        /// <remarks>
 100        ///
 101        /// </remarks>
 102        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 103        /// <param name="personId">The ID of the person that sent payment requests</param>
 104        /// <param name="operationIndex">Index associated with the operation.</param>
 105        /// <returns>ApiResponse of List&lt;PaymentRequestDTO&gt;</returns>
 106        ApiResponse<List<PaymentRequestDTO>> FindPaymentRequestsSentWithHttpInfo(int personId, int operationIndex = 0);
 107        /// <summary>
 108        /// Get payment request by ID
 109        /// </summary>
 110        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 111        /// <param name="paymentRequestId">The payment request ID</param>
 112        /// <param name="operationIndex">Index associated with the operation.</param>
 113        /// <returns>PaymentRequestDTO</returns>
 114        PaymentRequestDTO GetPaymentRequestById(int paymentRequestId, int operationIndex = 0);
 115
 116        /// <summary>
 117        /// Get payment request by ID
 118        /// </summary>
 119        /// <remarks>
 120        ///
 121        /// </remarks>
 122        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 123        /// <param name="paymentRequestId">The payment request ID</param>
 124        /// <param name="operationIndex">Index associated with the operation.</param>
 125        /// <returns>ApiResponse of PaymentRequestDTO</returns>
 126        ApiResponse<PaymentRequestDTO> GetPaymentRequestByIdWithHttpInfo(int paymentRequestId, int operationIndex = 0);
 127        /// <summary>
 128        /// Recall an unpaid payment request
 129        /// </summary>
 130        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 131        /// <param name="paymentRequestId">The payment request ID</param>
 132        /// <param name="operationIndex">Index associated with the operation.</param>
 133        /// <returns></returns>
 134        void RecallUnpaidPaymentRequest(int paymentRequestId, int operationIndex = 0);
 135
 136        /// <summary>
 137        /// Recall an unpaid payment request
 138        /// </summary>
 139        /// <remarks>
 140        ///
 141        /// </remarks>
 142        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 143        /// <param name="paymentRequestId">The payment request ID</param>
 144        /// <param name="operationIndex">Index associated with the operation.</param>
 145        /// <returns>ApiResponse of Object(void)</returns>
 146        ApiResponse<Object> RecallUnpaidPaymentRequestWithHttpInfo(int paymentRequestId, int operationIndex = 0);
 147        #endregion Synchronous Operations
 148    }
 149
 150    /// <summary>
 151    /// Represents a collection of functions to interact with the API endpoints
 152    /// </summary>
 153    public interface IPaymentRequestsApiAsync : IApiAccessor
 154    {
 155        #region Asynchronous Operations
 156        /// <summary>
 157        /// Create a new payment request
 158        /// </summary>
 159        /// <remarks>
 160        ///
 161        /// </remarks>
 162        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 163        /// <param name="newPaymentRequestDTO"> (optional)</param>
 164        /// <param name="operationIndex">Index associated with the operation.</param>
 165        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 166        /// <returns>Task of PaymentRequestDTO</returns>
 167        System.Threading.Tasks.Task<PaymentRequestDTO> CreatePaymentRequestAsync(NewPaymentRequestDTO newPaymentRequestD
 168
 169        /// <summary>
 170        /// Create a new payment request
 171        /// </summary>
 172        /// <remarks>
 173        ///
 174        /// </remarks>
 175        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 176        /// <param name="newPaymentRequestDTO"> (optional)</param>
 177        /// <param name="operationIndex">Index associated with the operation.</param>
 178        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 179        /// <returns>Task of ApiResponse (PaymentRequestDTO)</returns>
 180        System.Threading.Tasks.Task<ApiResponse<PaymentRequestDTO>> CreatePaymentRequestWithHttpInfoAsync(NewPaymentRequ
 181        /// <summary>
 182        /// Find all payment requests
 183        /// </summary>
 184        /// <remarks>
 185        ///
 186        /// </remarks>
 187        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 188        /// <param name="operationIndex">Index associated with the operation.</param>
 189        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 190        /// <returns>Task of List&lt;PaymentRequestDTO&gt;</returns>
 191        System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindAllPaymentRequestsAsync(int operationIndex = 0, System.
 192
 193        /// <summary>
 194        /// Find all payment requests
 195        /// </summary>
 196        /// <remarks>
 197        ///
 198        /// </remarks>
 199        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 200        /// <param name="operationIndex">Index associated with the operation.</param>
 201        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 202        /// <returns>Task of ApiResponse (List&lt;PaymentRequestDTO&gt;)</returns>
 203        System.Threading.Tasks.Task<ApiResponse<List<PaymentRequestDTO>>> FindAllPaymentRequestsWithHttpInfoAsync(int op
 204        /// <summary>
 205        /// Find payment requests received by a person
 206        /// </summary>
 207        /// <remarks>
 208        ///
 209        /// </remarks>
 210        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 211        /// <param name="personId">The ID of the person that received payment requests</param>
 212        /// <param name="operationIndex">Index associated with the operation.</param>
 213        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 214        /// <returns>Task of List&lt;PaymentRequestDTO&gt;</returns>
 215        System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindPaymentRequestsReceivedAsync(int personId, int operatio
 216
 217        /// <summary>
 218        /// Find payment requests received by a person
 219        /// </summary>
 220        /// <remarks>
 221        ///
 222        /// </remarks>
 223        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 224        /// <param name="personId">The ID of the person that received payment requests</param>
 225        /// <param name="operationIndex">Index associated with the operation.</param>
 226        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 227        /// <returns>Task of ApiResponse (List&lt;PaymentRequestDTO&gt;)</returns>
 228        System.Threading.Tasks.Task<ApiResponse<List<PaymentRequestDTO>>> FindPaymentRequestsReceivedWithHttpInfoAsync(i
 229        /// <summary>
 230        /// Find payment requests sent by a person
 231        /// </summary>
 232        /// <remarks>
 233        ///
 234        /// </remarks>
 235        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 236        /// <param name="personId">The ID of the person that sent payment requests</param>
 237        /// <param name="operationIndex">Index associated with the operation.</param>
 238        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 239        /// <returns>Task of List&lt;PaymentRequestDTO&gt;</returns>
 240        System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindPaymentRequestsSentAsync(int personId, int operationInd
 241
 242        /// <summary>
 243        /// Find payment requests sent by a person
 244        /// </summary>
 245        /// <remarks>
 246        ///
 247        /// </remarks>
 248        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 249        /// <param name="personId">The ID of the person that sent payment requests</param>
 250        /// <param name="operationIndex">Index associated with the operation.</param>
 251        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 252        /// <returns>Task of ApiResponse (List&lt;PaymentRequestDTO&gt;)</returns>
 253        System.Threading.Tasks.Task<ApiResponse<List<PaymentRequestDTO>>> FindPaymentRequestsSentWithHttpInfoAsync(int p
 254        /// <summary>
 255        /// Get payment request by ID
 256        /// </summary>
 257        /// <remarks>
 258        ///
 259        /// </remarks>
 260        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 261        /// <param name="paymentRequestId">The payment request ID</param>
 262        /// <param name="operationIndex">Index associated with the operation.</param>
 263        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 264        /// <returns>Task of PaymentRequestDTO</returns>
 265        System.Threading.Tasks.Task<PaymentRequestDTO> GetPaymentRequestByIdAsync(int paymentRequestId, int operationInd
 266
 267        /// <summary>
 268        /// Get payment request by ID
 269        /// </summary>
 270        /// <remarks>
 271        ///
 272        /// </remarks>
 273        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 274        /// <param name="paymentRequestId">The payment request ID</param>
 275        /// <param name="operationIndex">Index associated with the operation.</param>
 276        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 277        /// <returns>Task of ApiResponse (PaymentRequestDTO)</returns>
 278        System.Threading.Tasks.Task<ApiResponse<PaymentRequestDTO>> GetPaymentRequestByIdWithHttpInfoAsync(int paymentRe
 279        /// <summary>
 280        /// Recall an unpaid payment request
 281        /// </summary>
 282        /// <remarks>
 283        ///
 284        /// </remarks>
 285        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 286        /// <param name="paymentRequestId">The payment request ID</param>
 287        /// <param name="operationIndex">Index associated with the operation.</param>
 288        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 289        /// <returns>Task of void</returns>
 290        System.Threading.Tasks.Task RecallUnpaidPaymentRequestAsync(int paymentRequestId, int operationIndex = 0, System
 291
 292        /// <summary>
 293        /// Recall an unpaid payment request
 294        /// </summary>
 295        /// <remarks>
 296        ///
 297        /// </remarks>
 298        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 299        /// <param name="paymentRequestId">The payment request ID</param>
 300        /// <param name="operationIndex">Index associated with the operation.</param>
 301        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 302        /// <returns>Task of ApiResponse</returns>
 303        System.Threading.Tasks.Task<ApiResponse<Object>> RecallUnpaidPaymentRequestWithHttpInfoAsync(int paymentRequestI
 304        #endregion Asynchronous Operations
 305    }
 306
 307    /// <summary>
 308    /// Represents a collection of functions to interact with the API endpoints
 309    /// </summary>
 310    public interface IPaymentRequestsApi : IPaymentRequestsApiSync, IPaymentRequestsApiAsync
 311    {
 312
 313    }
 314
 315    /// <summary>
 316    /// Represents a collection of functions to interact with the API endpoints
 317    /// </summary>
 318    public partial class PaymentRequestsApi : IPaymentRequestsApi
 319    {
 1320        private Applications.WeShare.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
 321
 322        /// <summary>
 323        /// Initializes a new instance of the <see cref="PaymentRequestsApi"/> class.
 324        /// </summary>
 325        /// <returns></returns>
 0326        public PaymentRequestsApi() : this((string)null)
 0327        {
 0328        }
 329
 330        /// <summary>
 331        /// Initializes a new instance of the <see cref="PaymentRequestsApi"/> class.
 332        /// </summary>
 333        /// <returns></returns>
 1334        public PaymentRequestsApi(string basePath)
 1335        {
 1336            this.Configuration = Applications.WeShare.Swagger.Client.Configuration.MergeConfigurations(
 1337                Applications.WeShare.Swagger.Client.GlobalConfiguration.Instance,
 1338                new Applications.WeShare.Swagger.Client.Configuration { BasePath = basePath }
 1339            );
 1340            this.Client = new Applications.WeShare.Swagger.Client.ApiClient(this.Configuration.BasePath);
 1341            this.AsynchronousClient = new Applications.WeShare.Swagger.Client.ApiClient(this.Configuration.BasePath);
 1342            this.ExceptionFactory = Applications.WeShare.Swagger.Client.Configuration.DefaultExceptionFactory;
 1343        }
 344
 345        /// <summary>
 346        /// Initializes a new instance of the <see cref="PaymentRequestsApi"/> class
 347        /// using Configuration object
 348        /// </summary>
 349        /// <param name="configuration">An instance of Configuration</param>
 350        /// <returns></returns>
 0351        public PaymentRequestsApi(Applications.WeShare.Swagger.Client.Configuration configuration)
 0352        {
 0353            if (configuration == null) throw new ArgumentNullException("configuration");
 354
 0355            this.Configuration = Applications.WeShare.Swagger.Client.Configuration.MergeConfigurations(
 0356                Applications.WeShare.Swagger.Client.GlobalConfiguration.Instance,
 0357                configuration
 0358            );
 0359            this.Client = new Applications.WeShare.Swagger.Client.ApiClient(this.Configuration.BasePath);
 0360            this.AsynchronousClient = new Applications.WeShare.Swagger.Client.ApiClient(this.Configuration.BasePath);
 0361            ExceptionFactory = Applications.WeShare.Swagger.Client.Configuration.DefaultExceptionFactory;
 0362        }
 363
 364        /// <summary>
 365        /// Initializes a new instance of the <see cref="PaymentRequestsApi"/> class
 366        /// using a Configuration object and client instance.
 367        /// </summary>
 368        /// <param name="client">The client interface for synchronous API access.</param>
 369        /// <param name="asyncClient">The client interface for asynchronous API access.</param>
 370        /// <param name="configuration">The configuration object.</param>
 0371        public PaymentRequestsApi(Applications.WeShare.Swagger.Client.ISynchronousClient client, Applications.WeShare.Sw
 0372        {
 0373            if (client == null) throw new ArgumentNullException("client");
 0374            if (asyncClient == null) throw new ArgumentNullException("asyncClient");
 0375            if (configuration == null) throw new ArgumentNullException("configuration");
 376
 0377            this.Client = client;
 0378            this.AsynchronousClient = asyncClient;
 0379            this.Configuration = configuration;
 0380            this.ExceptionFactory = Applications.WeShare.Swagger.Client.Configuration.DefaultExceptionFactory;
 0381        }
 382
 383        /// <summary>
 384        /// The client for accessing this underlying API asynchronously.
 385        /// </summary>
 1386        public Applications.WeShare.Swagger.Client.IAsynchronousClient AsynchronousClient { get; set; }
 387
 388        /// <summary>
 389        /// The client for accessing this underlying API synchronously.
 390        /// </summary>
 16391        public Applications.WeShare.Swagger.Client.ISynchronousClient Client { get; set; }
 392
 393        /// <summary>
 394        /// Gets the base path of the API client.
 395        /// </summary>
 396        /// <value>The base path</value>
 397        public string GetBasePath()
 0398        {
 0399            return this.Configuration.BasePath;
 0400        }
 401
 402        /// <summary>
 403        /// Gets or sets the configuration object
 404        /// </summary>
 405        /// <value>An instance of the Configuration</value>
 18406        public Applications.WeShare.Swagger.Client.IReadableConfiguration Configuration { get; set; }
 407
 408        /// <summary>
 409        /// Provides a factory method hook for the creation of exceptions.
 410        /// </summary>
 411        public Applications.WeShare.Swagger.Client.ExceptionFactory ExceptionFactory
 412        {
 413            get
 30414            {
 30415                if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
 0416                {
 0417                    throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
 418                }
 30419                return _exceptionFactory;
 30420            }
 3421            set { _exceptionFactory = value; }
 422        }
 423
 424        /// <summary>
 425        /// Create a new payment request
 426        /// </summary>
 427        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 428        /// <param name="newPaymentRequestDTO"> (optional)</param>
 429        /// <param name="operationIndex">Index associated with the operation.</param>
 430        /// <returns>PaymentRequestDTO</returns>
 431        public PaymentRequestDTO CreatePaymentRequest(NewPaymentRequestDTO newPaymentRequestDTO = default(NewPaymentRequ
 1432        {
 1433            Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> localVarResponse = CreatePaymentRequestWi
 0434            return localVarResponse.Data;
 0435        }
 436
 437        /// <summary>
 438        /// Create a new payment request
 439        /// </summary>
 440        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 441        /// <param name="newPaymentRequestDTO"> (optional)</param>
 442        /// <param name="operationIndex">Index associated with the operation.</param>
 443        /// <returns>ApiResponse of PaymentRequestDTO</returns>
 444        public Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> CreatePaymentRequestWithHttpInfo(NewPa
 1445        {
 1446            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 447
 1448            string[] _contentTypes = new string[] {
 1449                "application/json"
 1450            };
 451
 452            // to determine the Accept header
 1453            string[] _accepts = new string[] {
 1454                "application/json"
 1455            };
 456
 1457            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 1458            if (localVarContentType != null)
 1459            {
 1460                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 1461            }
 462
 1463            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 1464            if (localVarAccept != null)
 1465            {
 1466                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 1467            }
 468
 1469            localVarRequestOptions.Data = newPaymentRequestDTO;
 470
 1471            localVarRequestOptions.Operation = "PaymentRequestsApi.CreatePaymentRequest";
 1472            localVarRequestOptions.OperationIndex = operationIndex;
 473
 474
 475            // make the HTTP request
 1476            var localVarResponse = this.Client.Post<PaymentRequestDTO>("/api/paymentrequests", localVarRequestOptions, t
 1477            if (this.ExceptionFactory != null)
 1478            {
 1479                Exception _exception = this.ExceptionFactory("CreatePaymentRequest", localVarResponse);
 1480                if (_exception != null)
 1481                {
 1482                    throw _exception;
 483                }
 0484            }
 485
 0486            return localVarResponse;
 0487        }
 488
 489        /// <summary>
 490        /// Create a new payment request
 491        /// </summary>
 492        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 493        /// <param name="newPaymentRequestDTO"> (optional)</param>
 494        /// <param name="operationIndex">Index associated with the operation.</param>
 495        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 496        /// <returns>Task of PaymentRequestDTO</returns>
 497        public async System.Threading.Tasks.Task<PaymentRequestDTO> CreatePaymentRequestAsync(NewPaymentRequestDTO newPa
 0498        {
 0499            Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> localVarResponse = await CreatePaymentReq
 0500            return localVarResponse.Data;
 0501        }
 502
 503        /// <summary>
 504        /// Create a new payment request
 505        /// </summary>
 506        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 507        /// <param name="newPaymentRequestDTO"> (optional)</param>
 508        /// <param name="operationIndex">Index associated with the operation.</param>
 509        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 510        /// <returns>Task of ApiResponse (PaymentRequestDTO)</returns>
 511        public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO>> Cre
 0512        {
 513
 0514            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 515
 0516            string[] _contentTypes = new string[] {
 0517                "application/json"
 0518            };
 519
 520            // to determine the Accept header
 0521            string[] _accepts = new string[] {
 0522                "application/json"
 0523            };
 524
 0525            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 0526            if (localVarContentType != null)
 0527            {
 0528                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 0529            }
 530
 0531            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 0532            if (localVarAccept != null)
 0533            {
 0534                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 0535            }
 536
 0537            localVarRequestOptions.Data = newPaymentRequestDTO;
 538
 0539            localVarRequestOptions.Operation = "PaymentRequestsApi.CreatePaymentRequest";
 0540            localVarRequestOptions.OperationIndex = operationIndex;
 541
 542
 543            // make the HTTP request
 0544            var localVarResponse = await this.AsynchronousClient.PostAsync<PaymentRequestDTO>("/api/paymentrequests", lo
 545
 0546            if (this.ExceptionFactory != null)
 0547            {
 0548                Exception _exception = this.ExceptionFactory("CreatePaymentRequest", localVarResponse);
 0549                if (_exception != null)
 0550                {
 0551                    throw _exception;
 552                }
 0553            }
 554
 0555            return localVarResponse;
 0556        }
 557
 558        /// <summary>
 559        /// Find all payment requests
 560        /// </summary>
 561        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 562        /// <param name="operationIndex">Index associated with the operation.</param>
 563        /// <returns>List&lt;PaymentRequestDTO&gt;</returns>
 564        public List<PaymentRequestDTO> FindAllPaymentRequests(int operationIndex = 0)
 1565        {
 1566            Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = FindAllPaymentRe
 1567            return localVarResponse.Data;
 1568        }
 569
 570        /// <summary>
 571        /// Find all payment requests
 572        /// </summary>
 573        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 574        /// <param name="operationIndex">Index associated with the operation.</param>
 575        /// <returns>ApiResponse of List&lt;PaymentRequestDTO&gt;</returns>
 576        public Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> FindAllPaymentRequestsWithHttpIn
 1577        {
 1578            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 579
 1580            string[] _contentTypes = new string[] {
 1581            };
 582
 583            // to determine the Accept header
 1584            string[] _accepts = new string[] {
 1585                "application/json"
 1586            };
 587
 1588            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 1589            if (localVarContentType != null)
 0590            {
 0591                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 0592            }
 593
 1594            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 1595            if (localVarAccept != null)
 1596            {
 1597                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 1598            }
 599
 600
 1601            localVarRequestOptions.Operation = "PaymentRequestsApi.FindAllPaymentRequests";
 1602            localVarRequestOptions.OperationIndex = operationIndex;
 603
 604
 605            // make the HTTP request
 1606            var localVarResponse = this.Client.Get<List<PaymentRequestDTO>>("/api/paymentrequests", localVarRequestOptio
 1607            if (this.ExceptionFactory != null)
 1608            {
 1609                Exception _exception = this.ExceptionFactory("FindAllPaymentRequests", localVarResponse);
 1610                if (_exception != null)
 0611                {
 0612                    throw _exception;
 613                }
 1614            }
 615
 1616            return localVarResponse;
 1617        }
 618
 619        /// <summary>
 620        /// Find all payment requests
 621        /// </summary>
 622        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 623        /// <param name="operationIndex">Index associated with the operation.</param>
 624        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 625        /// <returns>Task of List&lt;PaymentRequestDTO&gt;</returns>
 626        public async System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindAllPaymentRequestsAsync(int operationIndex
 0627        {
 0628            Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = await FindAllPay
 0629            return localVarResponse.Data;
 0630        }
 631
 632        /// <summary>
 633        /// Find all payment requests
 634        /// </summary>
 635        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 636        /// <param name="operationIndex">Index associated with the operation.</param>
 637        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 638        /// <returns>Task of ApiResponse (List&lt;PaymentRequestDTO&gt;)</returns>
 639        public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>
 0640        {
 641
 0642            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 643
 0644            string[] _contentTypes = new string[] {
 0645            };
 646
 647            // to determine the Accept header
 0648            string[] _accepts = new string[] {
 0649                "application/json"
 0650            };
 651
 0652            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 0653            if (localVarContentType != null)
 0654            {
 0655                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 0656            }
 657
 0658            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 0659            if (localVarAccept != null)
 0660            {
 0661                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 0662            }
 663
 664
 0665            localVarRequestOptions.Operation = "PaymentRequestsApi.FindAllPaymentRequests";
 0666            localVarRequestOptions.OperationIndex = operationIndex;
 667
 668
 669            // make the HTTP request
 0670            var localVarResponse = await this.AsynchronousClient.GetAsync<List<PaymentRequestDTO>>("/api/paymentrequests
 671
 0672            if (this.ExceptionFactory != null)
 0673            {
 0674                Exception _exception = this.ExceptionFactory("FindAllPaymentRequests", localVarResponse);
 0675                if (_exception != null)
 0676                {
 0677                    throw _exception;
 678                }
 0679            }
 680
 0681            return localVarResponse;
 0682        }
 683
 684        /// <summary>
 685        /// Find payment requests received by a person
 686        /// </summary>
 687        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 688        /// <param name="personId">The ID of the person that received payment requests</param>
 689        /// <param name="operationIndex">Index associated with the operation.</param>
 690        /// <returns>List&lt;PaymentRequestDTO&gt;</returns>
 691        public List<PaymentRequestDTO> FindPaymentRequestsReceived(int personId, int operationIndex = 0)
 5692        {
 5693            Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = FindPaymentReque
 3694            return localVarResponse.Data;
 3695        }
 696
 697        /// <summary>
 698        /// Find payment requests received by a person
 699        /// </summary>
 700        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 701        /// <param name="personId">The ID of the person that received payment requests</param>
 702        /// <param name="operationIndex">Index associated with the operation.</param>
 703        /// <returns>ApiResponse of List&lt;PaymentRequestDTO&gt;</returns>
 704        public Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> FindPaymentRequestsReceivedWithH
 5705        {
 5706            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 707
 5708            string[] _contentTypes = new string[] {
 5709            };
 710
 711            // to determine the Accept header
 5712            string[] _accepts = new string[] {
 5713                "application/json"
 5714            };
 715
 5716            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 5717            if (localVarContentType != null)
 0718            {
 0719                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 0720            }
 721
 5722            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 5723            if (localVarAccept != null)
 5724            {
 5725                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 5726            }
 727
 5728            localVarRequestOptions.PathParameters.Add("personId", Applications.WeShare.Swagger.Client.ClientUtils.Parame
 729
 5730            localVarRequestOptions.Operation = "PaymentRequestsApi.FindPaymentRequestsReceived";
 5731            localVarRequestOptions.OperationIndex = operationIndex;
 732
 733
 734            // make the HTTP request
 5735            var localVarResponse = this.Client.Get<List<PaymentRequestDTO>>("/api/paymentrequests/received/{personId}", 
 5736            if (this.ExceptionFactory != null)
 5737            {
 5738                Exception _exception = this.ExceptionFactory("FindPaymentRequestsReceived", localVarResponse);
 5739                if (_exception != null)
 2740                {
 2741                    throw _exception;
 742                }
 3743            }
 744
 3745            return localVarResponse;
 3746        }
 747
 748        /// <summary>
 749        /// Find payment requests received by a person
 750        /// </summary>
 751        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 752        /// <param name="personId">The ID of the person that received payment requests</param>
 753        /// <param name="operationIndex">Index associated with the operation.</param>
 754        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 755        /// <returns>Task of List&lt;PaymentRequestDTO&gt;</returns>
 756        public async System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindPaymentRequestsReceivedAsync(int personId,
 0757        {
 0758            Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = await FindPaymen
 0759            return localVarResponse.Data;
 0760        }
 761
 762        /// <summary>
 763        /// Find payment requests received by a person
 764        /// </summary>
 765        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 766        /// <param name="personId">The ID of the person that received payment requests</param>
 767        /// <param name="operationIndex">Index associated with the operation.</param>
 768        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 769        /// <returns>Task of ApiResponse (List&lt;PaymentRequestDTO&gt;)</returns>
 770        public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>
 0771        {
 772
 0773            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 774
 0775            string[] _contentTypes = new string[] {
 0776            };
 777
 778            // to determine the Accept header
 0779            string[] _accepts = new string[] {
 0780                "application/json"
 0781            };
 782
 0783            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 0784            if (localVarContentType != null)
 0785            {
 0786                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 0787            }
 788
 0789            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 0790            if (localVarAccept != null)
 0791            {
 0792                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 0793            }
 794
 0795            localVarRequestOptions.PathParameters.Add("personId", Applications.WeShare.Swagger.Client.ClientUtils.Parame
 796
 0797            localVarRequestOptions.Operation = "PaymentRequestsApi.FindPaymentRequestsReceived";
 0798            localVarRequestOptions.OperationIndex = operationIndex;
 799
 800
 801            // make the HTTP request
 0802            var localVarResponse = await this.AsynchronousClient.GetAsync<List<PaymentRequestDTO>>("/api/paymentrequests
 803
 0804            if (this.ExceptionFactory != null)
 0805            {
 0806                Exception _exception = this.ExceptionFactory("FindPaymentRequestsReceived", localVarResponse);
 0807                if (_exception != null)
 0808                {
 0809                    throw _exception;
 810                }
 0811            }
 812
 0813            return localVarResponse;
 0814        }
 815
 816        /// <summary>
 817        /// Find payment requests sent by a person
 818        /// </summary>
 819        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 820        /// <param name="personId">The ID of the person that sent payment requests</param>
 821        /// <param name="operationIndex">Index associated with the operation.</param>
 822        /// <returns>List&lt;PaymentRequestDTO&gt;</returns>
 823        public List<PaymentRequestDTO> FindPaymentRequestsSent(int personId, int operationIndex = 0)
 3824        {
 3825            Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = FindPaymentReque
 1826            return localVarResponse.Data;
 1827        }
 828
 829        /// <summary>
 830        /// Find payment requests sent by a person
 831        /// </summary>
 832        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 833        /// <param name="personId">The ID of the person that sent payment requests</param>
 834        /// <param name="operationIndex">Index associated with the operation.</param>
 835        /// <returns>ApiResponse of List&lt;PaymentRequestDTO&gt;</returns>
 836        public Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> FindPaymentRequestsSentWithHttpI
 3837        {
 3838            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 839
 3840            string[] _contentTypes = new string[] {
 3841            };
 842
 843            // to determine the Accept header
 3844            string[] _accepts = new string[] {
 3845                "application/json"
 3846            };
 847
 3848            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 3849            if (localVarContentType != null)
 0850            {
 0851                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 0852            }
 853
 3854            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 3855            if (localVarAccept != null)
 3856            {
 3857                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 3858            }
 859
 3860            localVarRequestOptions.PathParameters.Add("personId", Applications.WeShare.Swagger.Client.ClientUtils.Parame
 861
 3862            localVarRequestOptions.Operation = "PaymentRequestsApi.FindPaymentRequestsSent";
 3863            localVarRequestOptions.OperationIndex = operationIndex;
 864
 865
 866            // make the HTTP request
 3867            var localVarResponse = this.Client.Get<List<PaymentRequestDTO>>("/api/paymentrequests/sent/{personId}", loca
 3868            if (this.ExceptionFactory != null)
 3869            {
 3870                Exception _exception = this.ExceptionFactory("FindPaymentRequestsSent", localVarResponse);
 3871                if (_exception != null)
 2872                {
 2873                    throw _exception;
 874                }
 1875            }
 876
 1877            return localVarResponse;
 1878        }
 879
 880        /// <summary>
 881        /// Find payment requests sent by a person
 882        /// </summary>
 883        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 884        /// <param name="personId">The ID of the person that sent payment requests</param>
 885        /// <param name="operationIndex">Index associated with the operation.</param>
 886        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 887        /// <returns>Task of List&lt;PaymentRequestDTO&gt;</returns>
 888        public async System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindPaymentRequestsSentAsync(int personId, int
 0889        {
 0890            Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = await FindPaymen
 0891            return localVarResponse.Data;
 0892        }
 893
 894        /// <summary>
 895        /// Find payment requests sent by a person
 896        /// </summary>
 897        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 898        /// <param name="personId">The ID of the person that sent payment requests</param>
 899        /// <param name="operationIndex">Index associated with the operation.</param>
 900        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 901        /// <returns>Task of ApiResponse (List&lt;PaymentRequestDTO&gt;)</returns>
 902        public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>
 0903        {
 904
 0905            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 906
 0907            string[] _contentTypes = new string[] {
 0908            };
 909
 910            // to determine the Accept header
 0911            string[] _accepts = new string[] {
 0912                "application/json"
 0913            };
 914
 0915            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 0916            if (localVarContentType != null)
 0917            {
 0918                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 0919            }
 920
 0921            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 0922            if (localVarAccept != null)
 0923            {
 0924                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 0925            }
 926
 0927            localVarRequestOptions.PathParameters.Add("personId", Applications.WeShare.Swagger.Client.ClientUtils.Parame
 928
 0929            localVarRequestOptions.Operation = "PaymentRequestsApi.FindPaymentRequestsSent";
 0930            localVarRequestOptions.OperationIndex = operationIndex;
 931
 932
 933            // make the HTTP request
 0934            var localVarResponse = await this.AsynchronousClient.GetAsync<List<PaymentRequestDTO>>("/api/paymentrequests
 935
 0936            if (this.ExceptionFactory != null)
 0937            {
 0938                Exception _exception = this.ExceptionFactory("FindPaymentRequestsSent", localVarResponse);
 0939                if (_exception != null)
 0940                {
 0941                    throw _exception;
 942                }
 0943            }
 944
 0945            return localVarResponse;
 0946        }
 947
 948        /// <summary>
 949        /// Get payment request by ID
 950        /// </summary>
 951        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 952        /// <param name="paymentRequestId">The payment request ID</param>
 953        /// <param name="operationIndex">Index associated with the operation.</param>
 954        /// <returns>PaymentRequestDTO</returns>
 955        public PaymentRequestDTO GetPaymentRequestById(int paymentRequestId, int operationIndex = 0)
 3956        {
 3957            Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> localVarResponse = GetPaymentRequestByIdW
 1958            return localVarResponse.Data;
 1959        }
 960
 961        /// <summary>
 962        /// Get payment request by ID
 963        /// </summary>
 964        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 965        /// <param name="paymentRequestId">The payment request ID</param>
 966        /// <param name="operationIndex">Index associated with the operation.</param>
 967        /// <returns>ApiResponse of PaymentRequestDTO</returns>
 968        public Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> GetPaymentRequestByIdWithHttpInfo(int 
 3969        {
 3970            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 971
 3972            string[] _contentTypes = new string[] {
 3973            };
 974
 975            // to determine the Accept header
 3976            string[] _accepts = new string[] {
 3977                "application/json"
 3978            };
 979
 3980            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 3981            if (localVarContentType != null)
 0982            {
 0983                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 0984            }
 985
 3986            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 3987            if (localVarAccept != null)
 3988            {
 3989                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 3990            }
 991
 3992            localVarRequestOptions.PathParameters.Add("paymentRequestId", Applications.WeShare.Swagger.Client.ClientUtil
 993
 3994            localVarRequestOptions.Operation = "PaymentRequestsApi.GetPaymentRequestById";
 3995            localVarRequestOptions.OperationIndex = operationIndex;
 996
 997
 998            // make the HTTP request
 3999            var localVarResponse = this.Client.Get<PaymentRequestDTO>("/api/paymentrequests/{paymentRequestId}", localVa
 31000            if (this.ExceptionFactory != null)
 31001            {
 31002                Exception _exception = this.ExceptionFactory("GetPaymentRequestById", localVarResponse);
 31003                if (_exception != null)
 21004                {
 21005                    throw _exception;
 1006                }
 11007            }
 1008
 11009            return localVarResponse;
 11010        }
 1011
 1012        /// <summary>
 1013        /// Get payment request by ID
 1014        /// </summary>
 1015        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 1016        /// <param name="paymentRequestId">The payment request ID</param>
 1017        /// <param name="operationIndex">Index associated with the operation.</param>
 1018        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 1019        /// <returns>Task of PaymentRequestDTO</returns>
 1020        public async System.Threading.Tasks.Task<PaymentRequestDTO> GetPaymentRequestByIdAsync(int paymentRequestId, int
 01021        {
 01022            Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> localVarResponse = await GetPaymentReques
 01023            return localVarResponse.Data;
 01024        }
 1025
 1026        /// <summary>
 1027        /// Get payment request by ID
 1028        /// </summary>
 1029        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 1030        /// <param name="paymentRequestId">The payment request ID</param>
 1031        /// <param name="operationIndex">Index associated with the operation.</param>
 1032        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 1033        /// <returns>Task of ApiResponse (PaymentRequestDTO)</returns>
 1034        public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO>> Get
 01035        {
 1036
 01037            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 1038
 01039            string[] _contentTypes = new string[] {
 01040            };
 1041
 1042            // to determine the Accept header
 01043            string[] _accepts = new string[] {
 01044                "application/json"
 01045            };
 1046
 01047            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 01048            if (localVarContentType != null)
 01049            {
 01050                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 01051            }
 1052
 01053            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 01054            if (localVarAccept != null)
 01055            {
 01056                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 01057            }
 1058
 01059            localVarRequestOptions.PathParameters.Add("paymentRequestId", Applications.WeShare.Swagger.Client.ClientUtil
 1060
 01061            localVarRequestOptions.Operation = "PaymentRequestsApi.GetPaymentRequestById";
 01062            localVarRequestOptions.OperationIndex = operationIndex;
 1063
 1064
 1065            // make the HTTP request
 01066            var localVarResponse = await this.AsynchronousClient.GetAsync<PaymentRequestDTO>("/api/paymentrequests/{paym
 1067
 01068            if (this.ExceptionFactory != null)
 01069            {
 01070                Exception _exception = this.ExceptionFactory("GetPaymentRequestById", localVarResponse);
 01071                if (_exception != null)
 01072                {
 01073                    throw _exception;
 1074                }
 01075            }
 1076
 01077            return localVarResponse;
 01078        }
 1079
 1080        /// <summary>
 1081        /// Recall an unpaid payment request
 1082        /// </summary>
 1083        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 1084        /// <param name="paymentRequestId">The payment request ID</param>
 1085        /// <param name="operationIndex">Index associated with the operation.</param>
 1086        /// <returns></returns>
 1087        public void RecallUnpaidPaymentRequest(int paymentRequestId, int operationIndex = 0)
 21088        {
 21089            RecallUnpaidPaymentRequestWithHttpInfo(paymentRequestId);
 01090        }
 1091
 1092        /// <summary>
 1093        /// Recall an unpaid payment request
 1094        /// </summary>
 1095        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 1096        /// <param name="paymentRequestId">The payment request ID</param>
 1097        /// <param name="operationIndex">Index associated with the operation.</param>
 1098        /// <returns>ApiResponse of Object(void)</returns>
 1099        public Applications.WeShare.Swagger.Client.ApiResponse<Object> RecallUnpaidPaymentRequestWithHttpInfo(int paymen
 21100        {
 21101            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 1102
 21103            string[] _contentTypes = new string[] {
 21104            };
 1105
 1106            // to determine the Accept header
 21107            string[] _accepts = new string[] {
 21108            };
 1109
 21110            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 21111            if (localVarContentType != null)
 01112            {
 01113                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 01114            }
 1115
 21116            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 21117            if (localVarAccept != null)
 01118            {
 01119                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 01120            }
 1121
 21122            localVarRequestOptions.PathParameters.Add("paymentRequestId", Applications.WeShare.Swagger.Client.ClientUtil
 1123
 21124            localVarRequestOptions.Operation = "PaymentRequestsApi.RecallUnpaidPaymentRequest";
 21125            localVarRequestOptions.OperationIndex = operationIndex;
 1126
 1127
 1128            // make the HTTP request
 21129            var localVarResponse = this.Client.Delete<Object>("/api/paymentrequests/{paymentRequestId}", localVarRequest
 21130            if (this.ExceptionFactory != null)
 21131            {
 21132                Exception _exception = this.ExceptionFactory("RecallUnpaidPaymentRequest", localVarResponse);
 21133                if (_exception != null)
 21134                {
 21135                    throw _exception;
 1136                }
 01137            }
 1138
 01139            return localVarResponse;
 01140        }
 1141
 1142        /// <summary>
 1143        /// Recall an unpaid payment request
 1144        /// </summary>
 1145        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 1146        /// <param name="paymentRequestId">The payment request ID</param>
 1147        /// <param name="operationIndex">Index associated with the operation.</param>
 1148        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 1149        /// <returns>Task of void</returns>
 1150        public async System.Threading.Tasks.Task RecallUnpaidPaymentRequestAsync(int paymentRequestId, int operationInde
 01151        {
 01152            await RecallUnpaidPaymentRequestWithHttpInfoAsync(paymentRequestId, operationIndex, cancellationToken).Confi
 01153        }
 1154
 1155        /// <summary>
 1156        /// Recall an unpaid payment request
 1157        /// </summary>
 1158        /// <exception cref="Applications.WeShare.Swagger.Client.ApiException">Thrown when fails to make API call</excep
 1159        /// <param name="paymentRequestId">The payment request ID</param>
 1160        /// <param name="operationIndex">Index associated with the operation.</param>
 1161        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
 1162        /// <returns>Task of ApiResponse</returns>
 1163        public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<Object>> RecallUnpaidPa
 01164        {
 1165
 01166            Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger
 1167
 01168            string[] _contentTypes = new string[] {
 01169            };
 1170
 1171            // to determine the Accept header
 01172            string[] _accepts = new string[] {
 01173            };
 1174
 01175            var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy
 01176            if (localVarContentType != null)
 01177            {
 01178                localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
 01179            }
 1180
 01181            var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts);
 01182            if (localVarAccept != null)
 01183            {
 01184                localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
 01185            }
 1186
 01187            localVarRequestOptions.PathParameters.Add("paymentRequestId", Applications.WeShare.Swagger.Client.ClientUtil
 1188
 01189            localVarRequestOptions.Operation = "PaymentRequestsApi.RecallUnpaidPaymentRequest";
 01190            localVarRequestOptions.OperationIndex = operationIndex;
 1191
 1192
 1193            // make the HTTP request
 01194            var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/api/paymentrequests/{paymentReque
 1195
 01196            if (this.ExceptionFactory != null)
 01197            {
 01198                Exception _exception = this.ExceptionFactory("RecallUnpaidPaymentRequest", localVarResponse);
 01199                if (_exception != null)
 01200                {
 01201                    throw _exception;
 1202                }
 01203            }
 1204
 01205            return localVarResponse;
 01206        }
 1207
 1208    }
 1209}

Methods/Properties

System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi::.ctor(System.String)
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi::.ctor()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi::.ctor(Applications.WeShare.Swagger.Client.Configuration)
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi::.ctor(Applications.WeShare.Swagger.Client.ISynchronousClient,Applications.WeShare.Swagger.Client.IAsynchronousClient,Applications.WeShare.Swagger.Client.IReadableConfiguration)
Applications.WeShare.Swagger.Client.IAsynchronousClient Applications.WeShare.Swagger.Api.PaymentRequestsApi::get_AsynchronousClient()
Applications.WeShare.Swagger.Client.ISynchronousClient Applications.WeShare.Swagger.Api.PaymentRequestsApi::get_Client()
System.String Applications.WeShare.Swagger.Api.PaymentRequestsApi::GetBasePath()
Applications.WeShare.Swagger.Client.IReadableConfiguration Applications.WeShare.Swagger.Api.PaymentRequestsApi::get_Configuration()
Applications.WeShare.Swagger.Client.ExceptionFactory Applications.WeShare.Swagger.Api.PaymentRequestsApi::get_ExceptionFactory()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi::set_ExceptionFactory(Applications.WeShare.Swagger.Client.ExceptionFactory)
Applications.WeShare.Swagger.Model.PaymentRequestDTO Applications.WeShare.Swagger.Api.PaymentRequestsApi::CreatePaymentRequest(Applications.WeShare.Swagger.Model.NewPaymentRequestDTO,System.Int32)
Applications.WeShare.Swagger.Client.ApiResponse`1<Applications.WeShare.Swagger.Model.PaymentRequestDTO> Applications.WeShare.Swagger.Api.PaymentRequestsApi::CreatePaymentRequestWithHttpInfo(Applications.WeShare.Swagger.Model.NewPaymentRequestDTO,System.Int32)
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<CreatePaymentRequestAsync>d__23::MoveNext()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<CreatePaymentRequestWithHttpInfoAsync>d__24::MoveNext()
System.Collections.Generic.List`1<Applications.WeShare.Swagger.Model.PaymentRequestDTO> Applications.WeShare.Swagger.Api.PaymentRequestsApi::FindAllPaymentRequests(System.Int32)
Applications.WeShare.Swagger.Client.ApiResponse`1<System.Collections.Generic.List`1<Applications.WeShare.Swagger.Model.PaymentRequestDTO>> Applications.WeShare.Swagger.Api.PaymentRequestsApi::FindAllPaymentRequestsWithHttpInfo(System.Int32)
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<FindAllPaymentRequestsAsync>d__27::MoveNext()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<FindAllPaymentRequestsWithHttpInfoAsync>d__28::MoveNext()
System.Collections.Generic.List`1<Applications.WeShare.Swagger.Model.PaymentRequestDTO> Applications.WeShare.Swagger.Api.PaymentRequestsApi::FindPaymentRequestsReceived(System.Int32,System.Int32)
Applications.WeShare.Swagger.Client.ApiResponse`1<System.Collections.Generic.List`1<Applications.WeShare.Swagger.Model.PaymentRequestDTO>> Applications.WeShare.Swagger.Api.PaymentRequestsApi::FindPaymentRequestsReceivedWithHttpInfo(System.Int32,System.Int32)
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<FindPaymentRequestsReceivedAsync>d__31::MoveNext()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<FindPaymentRequestsReceivedWithHttpInfoAsync>d__32::MoveNext()
System.Collections.Generic.List`1<Applications.WeShare.Swagger.Model.PaymentRequestDTO> Applications.WeShare.Swagger.Api.PaymentRequestsApi::FindPaymentRequestsSent(System.Int32,System.Int32)
Applications.WeShare.Swagger.Client.ApiResponse`1<System.Collections.Generic.List`1<Applications.WeShare.Swagger.Model.PaymentRequestDTO>> Applications.WeShare.Swagger.Api.PaymentRequestsApi::FindPaymentRequestsSentWithHttpInfo(System.Int32,System.Int32)
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<FindPaymentRequestsSentAsync>d__35::MoveNext()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<FindPaymentRequestsSentWithHttpInfoAsync>d__36::MoveNext()
Applications.WeShare.Swagger.Model.PaymentRequestDTO Applications.WeShare.Swagger.Api.PaymentRequestsApi::GetPaymentRequestById(System.Int32,System.Int32)
Applications.WeShare.Swagger.Client.ApiResponse`1<Applications.WeShare.Swagger.Model.PaymentRequestDTO> Applications.WeShare.Swagger.Api.PaymentRequestsApi::GetPaymentRequestByIdWithHttpInfo(System.Int32,System.Int32)
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<GetPaymentRequestByIdAsync>d__39::MoveNext()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<GetPaymentRequestByIdWithHttpInfoAsync>d__40::MoveNext()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi::RecallUnpaidPaymentRequest(System.Int32,System.Int32)
Applications.WeShare.Swagger.Client.ApiResponse`1<System.Object> Applications.WeShare.Swagger.Api.PaymentRequestsApi::RecallUnpaidPaymentRequestWithHttpInfo(System.Int32,System.Int32)
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<RecallUnpaidPaymentRequestAsync>d__43::MoveNext()
System.Void Applications.WeShare.Swagger.Api.PaymentRequestsApi/<RecallUnpaidPaymentRequestWithHttpInfoAsync>d__44::MoveNext()