Skip to content

Commit

Permalink
5.7.5 (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Unknown <[email protected]>
  • Loading branch information
magnomoreira and samuelleitemundipagg authored Jun 22, 2023
1 parent de04ac8 commit 7295334
Show file tree
Hide file tree
Showing 27 changed files with 4,413 additions and 4,284 deletions.
3 changes: 3 additions & 0 deletions PagarmeCoreApi.Standard/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ public partial class Configuration
//The base Uri for API calls
public static string BaseUri = "https://api.pagar.me/core/v5";

//TODO: Replace the ServiceRefererName with an appropriate value
public static string ServiceRefererName = "";

//The username to use with basic authentication
//TODO: Replace the BasicAuthUserName with an appropriate value
public static string BasicAuthUserName = "";
Expand Down
527 changes: 270 additions & 257 deletions PagarmeCoreApi.Standard/Controllers/ChargesController.cs

Large diffs are not rendered by default.

877 changes: 449 additions & 428 deletions PagarmeCoreApi.Standard/Controllers/CustomersController.cs

Large diffs are not rendered by default.

188 changes: 94 additions & 94 deletions PagarmeCoreApi.Standard/Controllers/IChargesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,6 @@ namespace PagarmeCoreApi.Standard.Controllers
{
public partial interface IChargesController
{
/// <summary>
/// Updates the metadata from a charge
/// </summary>
/// <param name="chargeId">Required parameter: The charge id</param>
/// <param name="body">Required parameter: Request for updating the charge metadata</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse UpdateChargeMetadata(string chargeId, Models.UpdateMetadataRequest body, string idempotencyKey = null);

/// <summary>
/// Updates the metadata from a charge
/// </summary>
/// <param name="chargeId">Required parameter: The charge id</param>
/// <param name="body">Required parameter: Request for updating the charge metadata</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> UpdateChargeMetadataAsync(string chargeId, Models.UpdateMetadataRequest body, string idempotencyKey = null);

/// <summary>
/// Captures a charge
/// </summary>
Expand All @@ -56,24 +38,6 @@ public partial interface IChargesController
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> CaptureChargeAsync(string chargeId, string idempotencyKey = null, Models.CreateCaptureChargeRequest body = null);

/// <summary>
/// Updates a charge's payment method
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="body">Required parameter: Request for updating the payment method from a charge</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse UpdateChargePaymentMethod(string chargeId, Models.UpdateChargePaymentMethodRequest body, string idempotencyKey = null);

/// <summary>
/// Updates a charge's payment method
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="body">Required parameter: Request for updating the payment method from a charge</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> UpdateChargePaymentMethodAsync(string chargeId, Models.UpdateChargePaymentMethodRequest body, string idempotencyKey = null);

/// <summary>
/// GetChargeTransactions
/// </summary>
Expand All @@ -92,24 +56,6 @@ public partial interface IChargesController
/// <return>Returns the Models.ListChargeTransactionsResponse response from the API call</return>
Task<Models.ListChargeTransactionsResponse> GetChargeTransactionsAsync(string chargeId, int? page = null, int? size = null);

/// <summary>
/// Updates the due date from a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge Id</param>
/// <param name="body">Required parameter: Request for updating the due date</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse UpdateChargeDueDate(string chargeId, Models.UpdateChargeDueDateRequest body, string idempotencyKey = null);

/// <summary>
/// Updates the due date from a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge Id</param>
/// <param name="body">Required parameter: Request for updating the due date</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> UpdateChargeDueDateAsync(string chargeId, Models.UpdateChargeDueDateRequest body, string idempotencyKey = null);

/// <summary>
/// Lists all charges
/// </summary>
Expand Down Expand Up @@ -159,22 +105,58 @@ Models.ListChargesResponse GetCharges(
DateTime? createdUntil = null);

/// <summary>
/// Updates the card from a charge
/// Updates a charge's payment method
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="body">Required parameter: Request for updating a charge's card</param>
/// <param name="body">Required parameter: Request for updating the payment method from a charge</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse UpdateChargeCard(string chargeId, Models.UpdateChargeCardRequest body, string idempotencyKey = null);
Models.GetChargeResponse UpdateChargePaymentMethod(string chargeId, Models.UpdateChargePaymentMethodRequest body, string idempotencyKey = null);

/// <summary>
/// Updates the card from a charge
/// Updates a charge's payment method
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="body">Required parameter: Request for updating a charge's card</param>
/// <param name="body">Required parameter: Request for updating the payment method from a charge</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> UpdateChargeCardAsync(string chargeId, Models.UpdateChargeCardRequest body, string idempotencyKey = null);
Task<Models.GetChargeResponse> UpdateChargePaymentMethodAsync(string chargeId, Models.UpdateChargePaymentMethodRequest body, string idempotencyKey = null);

/// <summary>
/// Updates the due date from a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge Id</param>
/// <param name="body">Required parameter: Request for updating the due date</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse UpdateChargeDueDate(string chargeId, Models.UpdateChargeDueDateRequest body, string idempotencyKey = null);

/// <summary>
/// Updates the due date from a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge Id</param>
/// <param name="body">Required parameter: Request for updating the due date</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> UpdateChargeDueDateAsync(string chargeId, Models.UpdateChargeDueDateRequest body, string idempotencyKey = null);

/// <summary>
/// ConfirmPayment
/// </summary>
/// <param name="chargeId">Required parameter: Example: </param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <param name="body">Optional parameter: Request for confirm payment</param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse ConfirmPayment(string chargeId, string idempotencyKey = null, Models.CreateConfirmPaymentRequest body = null);

/// <summary>
/// ConfirmPayment
/// </summary>
/// <param name="chargeId">Required parameter: Example: </param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <param name="body">Optional parameter: Request for confirm payment</param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> ConfirmPaymentAsync(string chargeId, string idempotencyKey = null, Models.CreateConfirmPaymentRequest body = null);

/// <summary>
/// Get a charge from its id
Expand All @@ -190,6 +172,58 @@ Models.ListChargesResponse GetCharges(
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> GetChargeAsync(string chargeId);

/// <summary>
/// Retries a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse RetryCharge(string chargeId, string idempotencyKey = null);

/// <summary>
/// Retries a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> RetryChargeAsync(string chargeId, string idempotencyKey = null);

/// <summary>
/// Updates the metadata from a charge
/// </summary>
/// <param name="chargeId">Required parameter: The charge id</param>
/// <param name="body">Required parameter: Request for updating the charge metadata</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse UpdateChargeMetadata(string chargeId, Models.UpdateMetadataRequest body, string idempotencyKey = null);

/// <summary>
/// Updates the metadata from a charge
/// </summary>
/// <param name="chargeId">Required parameter: The charge id</param>
/// <param name="body">Required parameter: Request for updating the charge metadata</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> UpdateChargeMetadataAsync(string chargeId, Models.UpdateMetadataRequest body, string idempotencyKey = null);

/// <summary>
/// Updates the card from a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="body">Required parameter: Request for updating a charge's card</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse UpdateChargeCard(string chargeId, Models.UpdateChargeCardRequest body, string idempotencyKey = null);

/// <summary>
/// Updates the card from a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="body">Required parameter: Request for updating a charge's card</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> UpdateChargeCardAsync(string chargeId, Models.UpdateChargeCardRequest body, string idempotencyKey = null);

/// <summary>
/// Cancel a charge
/// </summary>
Expand Down Expand Up @@ -226,22 +260,6 @@ Models.ListChargesResponse GetCharges(
/// <return>Returns the Models.GetChargesSummaryResponse response from the API call</return>
Task<Models.GetChargesSummaryResponse> GetChargesSummaryAsync(string status, DateTime? createdSince = null, DateTime? createdUntil = null);

/// <summary>
/// Retries a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse RetryCharge(string chargeId, string idempotencyKey = null);

/// <summary>
/// Retries a charge
/// </summary>
/// <param name="chargeId">Required parameter: Charge id</param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> RetryChargeAsync(string chargeId, string idempotencyKey = null);

/// <summary>
/// Creates a new charge
/// </summary>
Expand All @@ -258,23 +276,5 @@ Models.ListChargesResponse GetCharges(
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> CreateChargeAsync(Models.CreateChargeRequest body, string idempotencyKey = null);

/// <summary>
/// ConfirmPayment
/// </summary>
/// <param name="chargeId">Required parameter: Example: </param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <param name="body">Optional parameter: Request for confirm payment</param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Models.GetChargeResponse ConfirmPayment(string chargeId, string idempotencyKey = null, Models.CreateConfirmPaymentRequest body = null);

/// <summary>
/// ConfirmPayment
/// </summary>
/// <param name="chargeId">Required parameter: Example: </param>
/// <param name="idempotencyKey">Optional parameter: Example: </param>
/// <param name="body">Optional parameter: Request for confirm payment</param>
/// <return>Returns the Models.GetChargeResponse response from the API call</return>
Task<Models.GetChargeResponse> ConfirmPaymentAsync(string chargeId, string idempotencyKey = null, Models.CreateConfirmPaymentRequest body = null);

}
}
Loading

0 comments on commit 7295334

Please sign in to comment.