Skip to content

Commit

Permalink
Merge pull request #77 from pagarme/CodeGen-NetStandard
Browse files Browse the repository at this point in the history
Automated commit message
  • Loading branch information
devandremachado authored Oct 28, 2024
2 parents a53ad8f + 120b77c commit fcf24a1
Show file tree
Hide file tree
Showing 51 changed files with 5,644 additions and 5,285 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,6 +32,32 @@ 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 @@ -72,31 +98,5 @@ 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.

542 changes: 271 additions & 271 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,6 +22,24 @@ 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 @@ -51,23 +69,5 @@ 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 fcf24a1

Please sign in to comment.