Skip to content

Commit

Permalink
Automated commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
andreals committed May 9, 2024
1 parent 87bc481 commit b243ac5
Show file tree
Hide file tree
Showing 42 changed files with 5,558 additions and 5,259 deletions.
52 changes: 26 additions & 26 deletions PagarmeApiSDK.Standard/Controllers/BalanceOperationsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,6 @@ internal class BalanceOperationsController : BaseController, IBalanceOperationsC
/// </summary>
internal BalanceOperationsController(GlobalConfiguration globalConfiguration) : base(globalConfiguration) { }

/// <summary>
/// GetBalanceOperationById EndPoint.
/// </summary>
/// <param name="id">Required parameter: Example: .</param>
/// <returns>Returns the Models.GetBalanceOperationResponse response from the API call.</returns>
public Models.GetBalanceOperationResponse GetBalanceOperationById(
long id)
=> CoreHelper.RunTask(GetBalanceOperationByIdAsync(id));

/// <summary>
/// GetBalanceOperationById EndPoint.
/// </summary>
/// <param name="id">Required parameter: Example: .</param>
/// <param name="cancellationToken"> cancellationToken. </param>
/// <returns>Returns the Models.GetBalanceOperationResponse response from the API call.</returns>
public async Task<Models.GetBalanceOperationResponse> GetBalanceOperationByIdAsync(
long id,
CancellationToken cancellationToken = default)
=> await CreateApiCall<Models.GetBalanceOperationResponse>()
.RequestBuilder(_requestBuilder => _requestBuilder
.Setup(HttpMethod.Get, "/balance/operations/{id}")
.WithAuth("httpBasic")
.Parameters(_parameters => _parameters
.Template(_template => _template.Setup("id", id))))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// GetBalanceOperations EndPoint.
/// </summary>
Expand Down Expand Up @@ -98,5 +72,31 @@ public Models.ListBalanceOperationResponse GetBalanceOperations(
.Query(_query => _query.Setup("created_until", createdUntil.HasValue ? createdUntil.Value.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK") : null))
.Query(_query => _query.Setup("recipient_id", recipientId))))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// GetBalanceOperationById EndPoint.
/// </summary>
/// <param name="id">Required parameter: Example: .</param>
/// <returns>Returns the Models.GetBalanceOperationResponse response from the API call.</returns>
public Models.GetBalanceOperationResponse GetBalanceOperationById(
long id)
=> CoreHelper.RunTask(GetBalanceOperationByIdAsync(id));

/// <summary>
/// GetBalanceOperationById EndPoint.
/// </summary>
/// <param name="id">Required parameter: Example: .</param>
/// <param name="cancellationToken"> cancellationToken. </param>
/// <returns>Returns the Models.GetBalanceOperationResponse response from the API call.</returns>
public async Task<Models.GetBalanceOperationResponse> GetBalanceOperationByIdAsync(
long id,
CancellationToken cancellationToken = default)
=> await CreateApiCall<Models.GetBalanceOperationResponse>()
.RequestBuilder(_requestBuilder => _requestBuilder
.Setup(HttpMethod.Get, "/balance/operations/{id}")
.WithAuth("httpBasic")
.Parameters(_parameters => _parameters
.Template(_template => _template.Setup("id", id))))
.ExecuteAsync(cancellationToken).ConfigureAwait(false);
}
}
376 changes: 188 additions & 188 deletions PagarmeApiSDK.Standard/Controllers/ChargesController.cs

Large diffs are not rendered by default.

546 changes: 273 additions & 273 deletions PagarmeApiSDK.Standard/Controllers/CustomersController.cs

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions PagarmeApiSDK.Standard/Controllers/IBalanceOperationsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,6 @@ namespace PagarmeApiSDK.Standard.Controllers
/// </summary>
public interface IBalanceOperationsController
{
/// <summary>
/// GetBalanceOperationById EndPoint.
/// </summary>
/// <param name="id">Required parameter: Example: .</param>
/// <returns>Returns the Models.GetBalanceOperationResponse response from the API call.</returns>
Models.GetBalanceOperationResponse GetBalanceOperationById(
long id);

/// <summary>
/// GetBalanceOperationById EndPoint.
/// </summary>
/// <param name="id">Required parameter: Example: .</param>
/// <param name="cancellationToken"> cancellationToken. </param>
/// <returns>Returns the Models.GetBalanceOperationResponse response from the API call.</returns>
Task<Models.GetBalanceOperationResponse> GetBalanceOperationByIdAsync(
long id,
CancellationToken cancellationToken = default);

/// <summary>
/// GetBalanceOperations EndPoint.
/// </summary>
Expand Down Expand Up @@ -69,5 +51,23 @@ Models.ListBalanceOperationResponse GetBalanceOperations(
DateTime? createdUntil = null,
string recipientId = null,
CancellationToken cancellationToken = default);

/// <summary>
/// GetBalanceOperationById EndPoint.
/// </summary>
/// <param name="id">Required parameter: Example: .</param>
/// <returns>Returns the Models.GetBalanceOperationResponse response from the API call.</returns>
Models.GetBalanceOperationResponse GetBalanceOperationById(
long id);

/// <summary>
/// GetBalanceOperationById EndPoint.
/// </summary>
/// <param name="id">Required parameter: Example: .</param>
/// <param name="cancellationToken"> cancellationToken. </param>
/// <returns>Returns the Models.GetBalanceOperationResponse response from the API call.</returns>
Task<Models.GetBalanceOperationResponse> GetBalanceOperationByIdAsync(
long id,
CancellationToken cancellationToken = default);
}
}
Loading

0 comments on commit b243ac5

Please sign in to comment.