| | 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 | |
|
| | 11 | | using System; |
| | 12 | | using System.Collections.Generic; |
| | 13 | | using System.Collections.ObjectModel; |
| | 14 | | using System.Linq; |
| | 15 | | using System.Net; |
| | 16 | | using System.Net.Mime; |
| | 17 | | using Applications.WeShare.Swagger.Client; |
| | 18 | | using Applications.WeShare.Swagger.Model; |
| | 19 | |
|
| | 20 | | namespace 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<PaymentRequestDTO></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<PaymentRequestDTO></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<PaymentRequestDTO></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<PaymentRequestDTO></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<PaymentRequestDTO></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<PaymentRequestDTO></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<PaymentRequestDTO></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<PaymentRequestDTO>)</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<PaymentRequestDTO></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<PaymentRequestDTO>)</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<PaymentRequestDTO></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<PaymentRequestDTO>)</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 | | { |
| 1 | 320 | | 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> |
| 0 | 326 | | public PaymentRequestsApi() : this((string)null) |
| 0 | 327 | | { |
| 0 | 328 | | } |
| | 329 | |
|
| | 330 | | /// <summary> |
| | 331 | | /// Initializes a new instance of the <see cref="PaymentRequestsApi"/> class. |
| | 332 | | /// </summary> |
| | 333 | | /// <returns></returns> |
| 1 | 334 | | public PaymentRequestsApi(string basePath) |
| 1 | 335 | | { |
| 1 | 336 | | this.Configuration = Applications.WeShare.Swagger.Client.Configuration.MergeConfigurations( |
| 1 | 337 | | Applications.WeShare.Swagger.Client.GlobalConfiguration.Instance, |
| 1 | 338 | | new Applications.WeShare.Swagger.Client.Configuration { BasePath = basePath } |
| 1 | 339 | | ); |
| 1 | 340 | | this.Client = new Applications.WeShare.Swagger.Client.ApiClient(this.Configuration.BasePath); |
| 1 | 341 | | this.AsynchronousClient = new Applications.WeShare.Swagger.Client.ApiClient(this.Configuration.BasePath); |
| 1 | 342 | | this.ExceptionFactory = Applications.WeShare.Swagger.Client.Configuration.DefaultExceptionFactory; |
| 1 | 343 | | } |
| | 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> |
| 0 | 351 | | public PaymentRequestsApi(Applications.WeShare.Swagger.Client.Configuration configuration) |
| 0 | 352 | | { |
| 0 | 353 | | if (configuration == null) throw new ArgumentNullException("configuration"); |
| | 354 | |
|
| 0 | 355 | | this.Configuration = Applications.WeShare.Swagger.Client.Configuration.MergeConfigurations( |
| 0 | 356 | | Applications.WeShare.Swagger.Client.GlobalConfiguration.Instance, |
| 0 | 357 | | configuration |
| 0 | 358 | | ); |
| 0 | 359 | | this.Client = new Applications.WeShare.Swagger.Client.ApiClient(this.Configuration.BasePath); |
| 0 | 360 | | this.AsynchronousClient = new Applications.WeShare.Swagger.Client.ApiClient(this.Configuration.BasePath); |
| 0 | 361 | | ExceptionFactory = Applications.WeShare.Swagger.Client.Configuration.DefaultExceptionFactory; |
| 0 | 362 | | } |
| | 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> |
| 0 | 371 | | public PaymentRequestsApi(Applications.WeShare.Swagger.Client.ISynchronousClient client, Applications.WeShare.Sw |
| 0 | 372 | | { |
| 0 | 373 | | if (client == null) throw new ArgumentNullException("client"); |
| 0 | 374 | | if (asyncClient == null) throw new ArgumentNullException("asyncClient"); |
| 0 | 375 | | if (configuration == null) throw new ArgumentNullException("configuration"); |
| | 376 | |
|
| 0 | 377 | | this.Client = client; |
| 0 | 378 | | this.AsynchronousClient = asyncClient; |
| 0 | 379 | | this.Configuration = configuration; |
| 0 | 380 | | this.ExceptionFactory = Applications.WeShare.Swagger.Client.Configuration.DefaultExceptionFactory; |
| 0 | 381 | | } |
| | 382 | |
|
| | 383 | | /// <summary> |
| | 384 | | /// The client for accessing this underlying API asynchronously. |
| | 385 | | /// </summary> |
| 1 | 386 | | public Applications.WeShare.Swagger.Client.IAsynchronousClient AsynchronousClient { get; set; } |
| | 387 | |
|
| | 388 | | /// <summary> |
| | 389 | | /// The client for accessing this underlying API synchronously. |
| | 390 | | /// </summary> |
| 16 | 391 | | 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() |
| 0 | 398 | | { |
| 0 | 399 | | return this.Configuration.BasePath; |
| 0 | 400 | | } |
| | 401 | |
|
| | 402 | | /// <summary> |
| | 403 | | /// Gets or sets the configuration object |
| | 404 | | /// </summary> |
| | 405 | | /// <value>An instance of the Configuration</value> |
| 18 | 406 | | 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 |
| 30 | 414 | | { |
| 30 | 415 | | if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) |
| 0 | 416 | | { |
| 0 | 417 | | throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); |
| | 418 | | } |
| 30 | 419 | | return _exceptionFactory; |
| 30 | 420 | | } |
| 3 | 421 | | 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 |
| 1 | 432 | | { |
| 1 | 433 | | Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> localVarResponse = CreatePaymentRequestWi |
| 0 | 434 | | return localVarResponse.Data; |
| 0 | 435 | | } |
| | 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 |
| 1 | 445 | | { |
| 1 | 446 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 447 | |
|
| 1 | 448 | | string[] _contentTypes = new string[] { |
| 1 | 449 | | "application/json" |
| 1 | 450 | | }; |
| | 451 | |
|
| | 452 | | // to determine the Accept header |
| 1 | 453 | | string[] _accepts = new string[] { |
| 1 | 454 | | "application/json" |
| 1 | 455 | | }; |
| | 456 | |
|
| 1 | 457 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 1 | 458 | | if (localVarContentType != null) |
| 1 | 459 | | { |
| 1 | 460 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 1 | 461 | | } |
| | 462 | |
|
| 1 | 463 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 1 | 464 | | if (localVarAccept != null) |
| 1 | 465 | | { |
| 1 | 466 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 1 | 467 | | } |
| | 468 | |
|
| 1 | 469 | | localVarRequestOptions.Data = newPaymentRequestDTO; |
| | 470 | |
|
| 1 | 471 | | localVarRequestOptions.Operation = "PaymentRequestsApi.CreatePaymentRequest"; |
| 1 | 472 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 473 | |
|
| | 474 | |
|
| | 475 | | // make the HTTP request |
| 1 | 476 | | var localVarResponse = this.Client.Post<PaymentRequestDTO>("/api/paymentrequests", localVarRequestOptions, t |
| 1 | 477 | | if (this.ExceptionFactory != null) |
| 1 | 478 | | { |
| 1 | 479 | | Exception _exception = this.ExceptionFactory("CreatePaymentRequest", localVarResponse); |
| 1 | 480 | | if (_exception != null) |
| 1 | 481 | | { |
| 1 | 482 | | throw _exception; |
| | 483 | | } |
| 0 | 484 | | } |
| | 485 | |
|
| 0 | 486 | | return localVarResponse; |
| 0 | 487 | | } |
| | 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 |
| 0 | 498 | | { |
| 0 | 499 | | Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> localVarResponse = await CreatePaymentReq |
| 0 | 500 | | return localVarResponse.Data; |
| 0 | 501 | | } |
| | 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 |
| 0 | 512 | | { |
| | 513 | |
|
| 0 | 514 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 515 | |
|
| 0 | 516 | | string[] _contentTypes = new string[] { |
| 0 | 517 | | "application/json" |
| 0 | 518 | | }; |
| | 519 | |
|
| | 520 | | // to determine the Accept header |
| 0 | 521 | | string[] _accepts = new string[] { |
| 0 | 522 | | "application/json" |
| 0 | 523 | | }; |
| | 524 | |
|
| 0 | 525 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 0 | 526 | | if (localVarContentType != null) |
| 0 | 527 | | { |
| 0 | 528 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 529 | | } |
| | 530 | |
|
| 0 | 531 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 0 | 532 | | if (localVarAccept != null) |
| 0 | 533 | | { |
| 0 | 534 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 0 | 535 | | } |
| | 536 | |
|
| 0 | 537 | | localVarRequestOptions.Data = newPaymentRequestDTO; |
| | 538 | |
|
| 0 | 539 | | localVarRequestOptions.Operation = "PaymentRequestsApi.CreatePaymentRequest"; |
| 0 | 540 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 541 | |
|
| | 542 | |
|
| | 543 | | // make the HTTP request |
| 0 | 544 | | var localVarResponse = await this.AsynchronousClient.PostAsync<PaymentRequestDTO>("/api/paymentrequests", lo |
| | 545 | |
|
| 0 | 546 | | if (this.ExceptionFactory != null) |
| 0 | 547 | | { |
| 0 | 548 | | Exception _exception = this.ExceptionFactory("CreatePaymentRequest", localVarResponse); |
| 0 | 549 | | if (_exception != null) |
| 0 | 550 | | { |
| 0 | 551 | | throw _exception; |
| | 552 | | } |
| 0 | 553 | | } |
| | 554 | |
|
| 0 | 555 | | return localVarResponse; |
| 0 | 556 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 564 | | public List<PaymentRequestDTO> FindAllPaymentRequests(int operationIndex = 0) |
| 1 | 565 | | { |
| 1 | 566 | | Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = FindAllPaymentRe |
| 1 | 567 | | return localVarResponse.Data; |
| 1 | 568 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 576 | | public Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> FindAllPaymentRequestsWithHttpIn |
| 1 | 577 | | { |
| 1 | 578 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 579 | |
|
| 1 | 580 | | string[] _contentTypes = new string[] { |
| 1 | 581 | | }; |
| | 582 | |
|
| | 583 | | // to determine the Accept header |
| 1 | 584 | | string[] _accepts = new string[] { |
| 1 | 585 | | "application/json" |
| 1 | 586 | | }; |
| | 587 | |
|
| 1 | 588 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 1 | 589 | | if (localVarContentType != null) |
| 0 | 590 | | { |
| 0 | 591 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 592 | | } |
| | 593 | |
|
| 1 | 594 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 1 | 595 | | if (localVarAccept != null) |
| 1 | 596 | | { |
| 1 | 597 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 1 | 598 | | } |
| | 599 | |
|
| | 600 | |
|
| 1 | 601 | | localVarRequestOptions.Operation = "PaymentRequestsApi.FindAllPaymentRequests"; |
| 1 | 602 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 603 | |
|
| | 604 | |
|
| | 605 | | // make the HTTP request |
| 1 | 606 | | var localVarResponse = this.Client.Get<List<PaymentRequestDTO>>("/api/paymentrequests", localVarRequestOptio |
| 1 | 607 | | if (this.ExceptionFactory != null) |
| 1 | 608 | | { |
| 1 | 609 | | Exception _exception = this.ExceptionFactory("FindAllPaymentRequests", localVarResponse); |
| 1 | 610 | | if (_exception != null) |
| 0 | 611 | | { |
| 0 | 612 | | throw _exception; |
| | 613 | | } |
| 1 | 614 | | } |
| | 615 | |
|
| 1 | 616 | | return localVarResponse; |
| 1 | 617 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 626 | | public async System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindAllPaymentRequestsAsync(int operationIndex |
| 0 | 627 | | { |
| 0 | 628 | | Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = await FindAllPay |
| 0 | 629 | | return localVarResponse.Data; |
| 0 | 630 | | } |
| | 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<PaymentRequestDTO>)</returns> |
| | 639 | | public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO> |
| 0 | 640 | | { |
| | 641 | |
|
| 0 | 642 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 643 | |
|
| 0 | 644 | | string[] _contentTypes = new string[] { |
| 0 | 645 | | }; |
| | 646 | |
|
| | 647 | | // to determine the Accept header |
| 0 | 648 | | string[] _accepts = new string[] { |
| 0 | 649 | | "application/json" |
| 0 | 650 | | }; |
| | 651 | |
|
| 0 | 652 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 0 | 653 | | if (localVarContentType != null) |
| 0 | 654 | | { |
| 0 | 655 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 656 | | } |
| | 657 | |
|
| 0 | 658 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 0 | 659 | | if (localVarAccept != null) |
| 0 | 660 | | { |
| 0 | 661 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 0 | 662 | | } |
| | 663 | |
|
| | 664 | |
|
| 0 | 665 | | localVarRequestOptions.Operation = "PaymentRequestsApi.FindAllPaymentRequests"; |
| 0 | 666 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 667 | |
|
| | 668 | |
|
| | 669 | | // make the HTTP request |
| 0 | 670 | | var localVarResponse = await this.AsynchronousClient.GetAsync<List<PaymentRequestDTO>>("/api/paymentrequests |
| | 671 | |
|
| 0 | 672 | | if (this.ExceptionFactory != null) |
| 0 | 673 | | { |
| 0 | 674 | | Exception _exception = this.ExceptionFactory("FindAllPaymentRequests", localVarResponse); |
| 0 | 675 | | if (_exception != null) |
| 0 | 676 | | { |
| 0 | 677 | | throw _exception; |
| | 678 | | } |
| 0 | 679 | | } |
| | 680 | |
|
| 0 | 681 | | return localVarResponse; |
| 0 | 682 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 691 | | public List<PaymentRequestDTO> FindPaymentRequestsReceived(int personId, int operationIndex = 0) |
| 5 | 692 | | { |
| 5 | 693 | | Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = FindPaymentReque |
| 3 | 694 | | return localVarResponse.Data; |
| 3 | 695 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 704 | | public Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> FindPaymentRequestsReceivedWithH |
| 5 | 705 | | { |
| 5 | 706 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 707 | |
|
| 5 | 708 | | string[] _contentTypes = new string[] { |
| 5 | 709 | | }; |
| | 710 | |
|
| | 711 | | // to determine the Accept header |
| 5 | 712 | | string[] _accepts = new string[] { |
| 5 | 713 | | "application/json" |
| 5 | 714 | | }; |
| | 715 | |
|
| 5 | 716 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 5 | 717 | | if (localVarContentType != null) |
| 0 | 718 | | { |
| 0 | 719 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 720 | | } |
| | 721 | |
|
| 5 | 722 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 5 | 723 | | if (localVarAccept != null) |
| 5 | 724 | | { |
| 5 | 725 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 5 | 726 | | } |
| | 727 | |
|
| 5 | 728 | | localVarRequestOptions.PathParameters.Add("personId", Applications.WeShare.Swagger.Client.ClientUtils.Parame |
| | 729 | |
|
| 5 | 730 | | localVarRequestOptions.Operation = "PaymentRequestsApi.FindPaymentRequestsReceived"; |
| 5 | 731 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 732 | |
|
| | 733 | |
|
| | 734 | | // make the HTTP request |
| 5 | 735 | | var localVarResponse = this.Client.Get<List<PaymentRequestDTO>>("/api/paymentrequests/received/{personId}", |
| 5 | 736 | | if (this.ExceptionFactory != null) |
| 5 | 737 | | { |
| 5 | 738 | | Exception _exception = this.ExceptionFactory("FindPaymentRequestsReceived", localVarResponse); |
| 5 | 739 | | if (_exception != null) |
| 2 | 740 | | { |
| 2 | 741 | | throw _exception; |
| | 742 | | } |
| 3 | 743 | | } |
| | 744 | |
|
| 3 | 745 | | return localVarResponse; |
| 3 | 746 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 756 | | public async System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindPaymentRequestsReceivedAsync(int personId, |
| 0 | 757 | | { |
| 0 | 758 | | Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = await FindPaymen |
| 0 | 759 | | return localVarResponse.Data; |
| 0 | 760 | | } |
| | 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<PaymentRequestDTO>)</returns> |
| | 770 | | public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO> |
| 0 | 771 | | { |
| | 772 | |
|
| 0 | 773 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 774 | |
|
| 0 | 775 | | string[] _contentTypes = new string[] { |
| 0 | 776 | | }; |
| | 777 | |
|
| | 778 | | // to determine the Accept header |
| 0 | 779 | | string[] _accepts = new string[] { |
| 0 | 780 | | "application/json" |
| 0 | 781 | | }; |
| | 782 | |
|
| 0 | 783 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 0 | 784 | | if (localVarContentType != null) |
| 0 | 785 | | { |
| 0 | 786 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 787 | | } |
| | 788 | |
|
| 0 | 789 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 0 | 790 | | if (localVarAccept != null) |
| 0 | 791 | | { |
| 0 | 792 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 0 | 793 | | } |
| | 794 | |
|
| 0 | 795 | | localVarRequestOptions.PathParameters.Add("personId", Applications.WeShare.Swagger.Client.ClientUtils.Parame |
| | 796 | |
|
| 0 | 797 | | localVarRequestOptions.Operation = "PaymentRequestsApi.FindPaymentRequestsReceived"; |
| 0 | 798 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 799 | |
|
| | 800 | |
|
| | 801 | | // make the HTTP request |
| 0 | 802 | | var localVarResponse = await this.AsynchronousClient.GetAsync<List<PaymentRequestDTO>>("/api/paymentrequests |
| | 803 | |
|
| 0 | 804 | | if (this.ExceptionFactory != null) |
| 0 | 805 | | { |
| 0 | 806 | | Exception _exception = this.ExceptionFactory("FindPaymentRequestsReceived", localVarResponse); |
| 0 | 807 | | if (_exception != null) |
| 0 | 808 | | { |
| 0 | 809 | | throw _exception; |
| | 810 | | } |
| 0 | 811 | | } |
| | 812 | |
|
| 0 | 813 | | return localVarResponse; |
| 0 | 814 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 823 | | public List<PaymentRequestDTO> FindPaymentRequestsSent(int personId, int operationIndex = 0) |
| 3 | 824 | | { |
| 3 | 825 | | Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = FindPaymentReque |
| 1 | 826 | | return localVarResponse.Data; |
| 1 | 827 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 836 | | public Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> FindPaymentRequestsSentWithHttpI |
| 3 | 837 | | { |
| 3 | 838 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 839 | |
|
| 3 | 840 | | string[] _contentTypes = new string[] { |
| 3 | 841 | | }; |
| | 842 | |
|
| | 843 | | // to determine the Accept header |
| 3 | 844 | | string[] _accepts = new string[] { |
| 3 | 845 | | "application/json" |
| 3 | 846 | | }; |
| | 847 | |
|
| 3 | 848 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 3 | 849 | | if (localVarContentType != null) |
| 0 | 850 | | { |
| 0 | 851 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 852 | | } |
| | 853 | |
|
| 3 | 854 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 3 | 855 | | if (localVarAccept != null) |
| 3 | 856 | | { |
| 3 | 857 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 3 | 858 | | } |
| | 859 | |
|
| 3 | 860 | | localVarRequestOptions.PathParameters.Add("personId", Applications.WeShare.Swagger.Client.ClientUtils.Parame |
| | 861 | |
|
| 3 | 862 | | localVarRequestOptions.Operation = "PaymentRequestsApi.FindPaymentRequestsSent"; |
| 3 | 863 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 864 | |
|
| | 865 | |
|
| | 866 | | // make the HTTP request |
| 3 | 867 | | var localVarResponse = this.Client.Get<List<PaymentRequestDTO>>("/api/paymentrequests/sent/{personId}", loca |
| 3 | 868 | | if (this.ExceptionFactory != null) |
| 3 | 869 | | { |
| 3 | 870 | | Exception _exception = this.ExceptionFactory("FindPaymentRequestsSent", localVarResponse); |
| 3 | 871 | | if (_exception != null) |
| 2 | 872 | | { |
| 2 | 873 | | throw _exception; |
| | 874 | | } |
| 1 | 875 | | } |
| | 876 | |
|
| 1 | 877 | | return localVarResponse; |
| 1 | 878 | | } |
| | 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<PaymentRequestDTO></returns> |
| | 888 | | public async System.Threading.Tasks.Task<List<PaymentRequestDTO>> FindPaymentRequestsSentAsync(int personId, int |
| 0 | 889 | | { |
| 0 | 890 | | Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO>> localVarResponse = await FindPaymen |
| 0 | 891 | | return localVarResponse.Data; |
| 0 | 892 | | } |
| | 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<PaymentRequestDTO>)</returns> |
| | 902 | | public async System.Threading.Tasks.Task<Applications.WeShare.Swagger.Client.ApiResponse<List<PaymentRequestDTO> |
| 0 | 903 | | { |
| | 904 | |
|
| 0 | 905 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 906 | |
|
| 0 | 907 | | string[] _contentTypes = new string[] { |
| 0 | 908 | | }; |
| | 909 | |
|
| | 910 | | // to determine the Accept header |
| 0 | 911 | | string[] _accepts = new string[] { |
| 0 | 912 | | "application/json" |
| 0 | 913 | | }; |
| | 914 | |
|
| 0 | 915 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 0 | 916 | | if (localVarContentType != null) |
| 0 | 917 | | { |
| 0 | 918 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 919 | | } |
| | 920 | |
|
| 0 | 921 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 0 | 922 | | if (localVarAccept != null) |
| 0 | 923 | | { |
| 0 | 924 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 0 | 925 | | } |
| | 926 | |
|
| 0 | 927 | | localVarRequestOptions.PathParameters.Add("personId", Applications.WeShare.Swagger.Client.ClientUtils.Parame |
| | 928 | |
|
| 0 | 929 | | localVarRequestOptions.Operation = "PaymentRequestsApi.FindPaymentRequestsSent"; |
| 0 | 930 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 931 | |
|
| | 932 | |
|
| | 933 | | // make the HTTP request |
| 0 | 934 | | var localVarResponse = await this.AsynchronousClient.GetAsync<List<PaymentRequestDTO>>("/api/paymentrequests |
| | 935 | |
|
| 0 | 936 | | if (this.ExceptionFactory != null) |
| 0 | 937 | | { |
| 0 | 938 | | Exception _exception = this.ExceptionFactory("FindPaymentRequestsSent", localVarResponse); |
| 0 | 939 | | if (_exception != null) |
| 0 | 940 | | { |
| 0 | 941 | | throw _exception; |
| | 942 | | } |
| 0 | 943 | | } |
| | 944 | |
|
| 0 | 945 | | return localVarResponse; |
| 0 | 946 | | } |
| | 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) |
| 3 | 956 | | { |
| 3 | 957 | | Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> localVarResponse = GetPaymentRequestByIdW |
| 1 | 958 | | return localVarResponse.Data; |
| 1 | 959 | | } |
| | 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 |
| 3 | 969 | | { |
| 3 | 970 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 971 | |
|
| 3 | 972 | | string[] _contentTypes = new string[] { |
| 3 | 973 | | }; |
| | 974 | |
|
| | 975 | | // to determine the Accept header |
| 3 | 976 | | string[] _accepts = new string[] { |
| 3 | 977 | | "application/json" |
| 3 | 978 | | }; |
| | 979 | |
|
| 3 | 980 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 3 | 981 | | if (localVarContentType != null) |
| 0 | 982 | | { |
| 0 | 983 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 984 | | } |
| | 985 | |
|
| 3 | 986 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 3 | 987 | | if (localVarAccept != null) |
| 3 | 988 | | { |
| 3 | 989 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 3 | 990 | | } |
| | 991 | |
|
| 3 | 992 | | localVarRequestOptions.PathParameters.Add("paymentRequestId", Applications.WeShare.Swagger.Client.ClientUtil |
| | 993 | |
|
| 3 | 994 | | localVarRequestOptions.Operation = "PaymentRequestsApi.GetPaymentRequestById"; |
| 3 | 995 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 996 | |
|
| | 997 | |
|
| | 998 | | // make the HTTP request |
| 3 | 999 | | var localVarResponse = this.Client.Get<PaymentRequestDTO>("/api/paymentrequests/{paymentRequestId}", localVa |
| 3 | 1000 | | if (this.ExceptionFactory != null) |
| 3 | 1001 | | { |
| 3 | 1002 | | Exception _exception = this.ExceptionFactory("GetPaymentRequestById", localVarResponse); |
| 3 | 1003 | | if (_exception != null) |
| 2 | 1004 | | { |
| 2 | 1005 | | throw _exception; |
| | 1006 | | } |
| 1 | 1007 | | } |
| | 1008 | |
|
| 1 | 1009 | | return localVarResponse; |
| 1 | 1010 | | } |
| | 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 |
| 0 | 1021 | | { |
| 0 | 1022 | | Applications.WeShare.Swagger.Client.ApiResponse<PaymentRequestDTO> localVarResponse = await GetPaymentReques |
| 0 | 1023 | | return localVarResponse.Data; |
| 0 | 1024 | | } |
| | 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 |
| 0 | 1035 | | { |
| | 1036 | |
|
| 0 | 1037 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 1038 | |
|
| 0 | 1039 | | string[] _contentTypes = new string[] { |
| 0 | 1040 | | }; |
| | 1041 | |
|
| | 1042 | | // to determine the Accept header |
| 0 | 1043 | | string[] _accepts = new string[] { |
| 0 | 1044 | | "application/json" |
| 0 | 1045 | | }; |
| | 1046 | |
|
| 0 | 1047 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 0 | 1048 | | if (localVarContentType != null) |
| 0 | 1049 | | { |
| 0 | 1050 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 1051 | | } |
| | 1052 | |
|
| 0 | 1053 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 0 | 1054 | | if (localVarAccept != null) |
| 0 | 1055 | | { |
| 0 | 1056 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 0 | 1057 | | } |
| | 1058 | |
|
| 0 | 1059 | | localVarRequestOptions.PathParameters.Add("paymentRequestId", Applications.WeShare.Swagger.Client.ClientUtil |
| | 1060 | |
|
| 0 | 1061 | | localVarRequestOptions.Operation = "PaymentRequestsApi.GetPaymentRequestById"; |
| 0 | 1062 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 1063 | |
|
| | 1064 | |
|
| | 1065 | | // make the HTTP request |
| 0 | 1066 | | var localVarResponse = await this.AsynchronousClient.GetAsync<PaymentRequestDTO>("/api/paymentrequests/{paym |
| | 1067 | |
|
| 0 | 1068 | | if (this.ExceptionFactory != null) |
| 0 | 1069 | | { |
| 0 | 1070 | | Exception _exception = this.ExceptionFactory("GetPaymentRequestById", localVarResponse); |
| 0 | 1071 | | if (_exception != null) |
| 0 | 1072 | | { |
| 0 | 1073 | | throw _exception; |
| | 1074 | | } |
| 0 | 1075 | | } |
| | 1076 | |
|
| 0 | 1077 | | return localVarResponse; |
| 0 | 1078 | | } |
| | 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) |
| 2 | 1088 | | { |
| 2 | 1089 | | RecallUnpaidPaymentRequestWithHttpInfo(paymentRequestId); |
| 0 | 1090 | | } |
| | 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 |
| 2 | 1100 | | { |
| 2 | 1101 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 1102 | |
|
| 2 | 1103 | | string[] _contentTypes = new string[] { |
| 2 | 1104 | | }; |
| | 1105 | |
|
| | 1106 | | // to determine the Accept header |
| 2 | 1107 | | string[] _accepts = new string[] { |
| 2 | 1108 | | }; |
| | 1109 | |
|
| 2 | 1110 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 2 | 1111 | | if (localVarContentType != null) |
| 0 | 1112 | | { |
| 0 | 1113 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 1114 | | } |
| | 1115 | |
|
| 2 | 1116 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 2 | 1117 | | if (localVarAccept != null) |
| 0 | 1118 | | { |
| 0 | 1119 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 0 | 1120 | | } |
| | 1121 | |
|
| 2 | 1122 | | localVarRequestOptions.PathParameters.Add("paymentRequestId", Applications.WeShare.Swagger.Client.ClientUtil |
| | 1123 | |
|
| 2 | 1124 | | localVarRequestOptions.Operation = "PaymentRequestsApi.RecallUnpaidPaymentRequest"; |
| 2 | 1125 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 1126 | |
|
| | 1127 | |
|
| | 1128 | | // make the HTTP request |
| 2 | 1129 | | var localVarResponse = this.Client.Delete<Object>("/api/paymentrequests/{paymentRequestId}", localVarRequest |
| 2 | 1130 | | if (this.ExceptionFactory != null) |
| 2 | 1131 | | { |
| 2 | 1132 | | Exception _exception = this.ExceptionFactory("RecallUnpaidPaymentRequest", localVarResponse); |
| 2 | 1133 | | if (_exception != null) |
| 2 | 1134 | | { |
| 2 | 1135 | | throw _exception; |
| | 1136 | | } |
| 0 | 1137 | | } |
| | 1138 | |
|
| 0 | 1139 | | return localVarResponse; |
| 0 | 1140 | | } |
| | 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 |
| 0 | 1151 | | { |
| 0 | 1152 | | await RecallUnpaidPaymentRequestWithHttpInfoAsync(paymentRequestId, operationIndex, cancellationToken).Confi |
| 0 | 1153 | | } |
| | 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 |
| 0 | 1164 | | { |
| | 1165 | |
|
| 0 | 1166 | | Applications.WeShare.Swagger.Client.RequestOptions localVarRequestOptions = new Applications.WeShare.Swagger |
| | 1167 | |
|
| 0 | 1168 | | string[] _contentTypes = new string[] { |
| 0 | 1169 | | }; |
| | 1170 | |
|
| | 1171 | | // to determine the Accept header |
| 0 | 1172 | | string[] _accepts = new string[] { |
| 0 | 1173 | | }; |
| | 1174 | |
|
| 0 | 1175 | | var localVarContentType = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderContentType(_contentTy |
| 0 | 1176 | | if (localVarContentType != null) |
| 0 | 1177 | | { |
| 0 | 1178 | | localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); |
| 0 | 1179 | | } |
| | 1180 | |
|
| 0 | 1181 | | var localVarAccept = Applications.WeShare.Swagger.Client.ClientUtils.SelectHeaderAccept(_accepts); |
| 0 | 1182 | | if (localVarAccept != null) |
| 0 | 1183 | | { |
| 0 | 1184 | | localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); |
| 0 | 1185 | | } |
| | 1186 | |
|
| 0 | 1187 | | localVarRequestOptions.PathParameters.Add("paymentRequestId", Applications.WeShare.Swagger.Client.ClientUtil |
| | 1188 | |
|
| 0 | 1189 | | localVarRequestOptions.Operation = "PaymentRequestsApi.RecallUnpaidPaymentRequest"; |
| 0 | 1190 | | localVarRequestOptions.OperationIndex = operationIndex; |
| | 1191 | |
|
| | 1192 | |
|
| | 1193 | | // make the HTTP request |
| 0 | 1194 | | var localVarResponse = await this.AsynchronousClient.DeleteAsync<Object>("/api/paymentrequests/{paymentReque |
| | 1195 | |
|
| 0 | 1196 | | if (this.ExceptionFactory != null) |
| 0 | 1197 | | { |
| 0 | 1198 | | Exception _exception = this.ExceptionFactory("RecallUnpaidPaymentRequest", localVarResponse); |
| 0 | 1199 | | if (_exception != null) |
| 0 | 1200 | | { |
| 0 | 1201 | | throw _exception; |
| | 1202 | | } |
| 0 | 1203 | | } |
| | 1204 | |
|
| 0 | 1205 | | return localVarResponse; |
| 0 | 1206 | | } |
| | 1207 | |
|
| | 1208 | | } |
| | 1209 | | } |