-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize client and method names (#359)
* Rename DeletePayment to CancelPayment in PaymentClient * Move the "Create order refund" method and the "List order refunds" methods from the OrderClient to the RefundClient * Rename GetChargebacksListAsync to GetChargebackListAsync for consistency * Rename GetCapturesListAsync to GetCaptureListAsync * Rename GetShipmentsListAsync to GetShipmentListAsync * Rename GetOrganizationsListAsync to GetOrganizationListAsync * Rename ListBalanceTransactionsAsync to GetBalanceTransactionListAsync Rename ListPrimaryBalanceTransactionsAsync to GetPrimaryBalanceTransactionListAsync Rename ListBalancesAsync to GetBalanceListAsync * Standardize method names in ISettlementsClient * Standardize client names, all clientnames are now singular * Standardize API names in readme
- Loading branch information
1 parent
104e560
commit 0eb334b
Showing
41 changed files
with
391 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Threading.Tasks; | ||
using Mollie.Api.Models.Chargeback.Response; | ||
using Mollie.Api.Models.List.Response; | ||
using Mollie.Api.Models.Url; | ||
|
||
namespace Mollie.Api.Client.Abstract { | ||
public interface IChargebackClient : IBaseMollieClient { | ||
Task<ChargebackResponse> GetChargebackAsync(string paymentId, string chargebackId, bool testmode = false); | ||
Task<ListResponse<ChargebackResponse>> GetChargebackListAsync(string paymentId, string? from = null, int? limit = null, bool testmode = false); | ||
Task<ListResponse<ChargebackResponse>> GetChargebackListAsync(string? profileId = null, bool testmode = false); | ||
Task<ListResponse<ChargebackResponse>> GetChargebackListAsync(UrlObjectLink<ListResponse<ChargebackResponse>> url); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Threading.Tasks; | ||
using Mollie.Api.Models.Capture.Response; | ||
using Mollie.Api.Models.Chargeback.Response; | ||
using Mollie.Api.Models.List.Response; | ||
using Mollie.Api.Models.Payment.Response; | ||
using Mollie.Api.Models.Refund.Response; | ||
using Mollie.Api.Models.Settlement.Response; | ||
using Mollie.Api.Models.Url; | ||
|
||
namespace Mollie.Api.Client.Abstract { | ||
public interface ISettlementClient : IBaseMollieClient { | ||
Task<SettlementResponse> GetSettlementAsync(string settlementId); | ||
Task<SettlementResponse> GetNextSettlement(); | ||
Task<SettlementResponse> GetOpenSettlement(); | ||
Task<ListResponse<SettlementResponse>> GetSettlementListAsync(string? reference = null, string? from = null, int? limit = null); | ||
Task<ListResponse<SettlementResponse>> GetSettlementListAsync(UrlObjectLink<ListResponse<SettlementResponse>> url); | ||
Task<ListResponse<PaymentResponse>> GetSettlementPaymentListAsync(string settlementId, string? from = null, int? limit = null); | ||
Task<ListResponse<PaymentResponse>> GetSettlementPaymentListAsync(UrlObjectLink<ListResponse<PaymentResponse>> url); | ||
Task<ListResponse<RefundResponse>> GetSettlementRefundListAsync(string settlementId, string? from = null, int? limit = null); | ||
Task<ListResponse<RefundResponse>> GetSettlementRefundListAsync(UrlObjectLink<ListResponse<RefundResponse>> url); | ||
Task<ListResponse<ChargebackResponse>> GetSettlementChargebackListAsync(string settlementId, string? from = null, int? limit = null); | ||
Task<ListResponse<ChargebackResponse>> GetSettlementChargebackListAsync(UrlObjectLink<ListResponse<ChargebackResponse>> url); | ||
Task<ListResponse<CaptureResponse>> GetSettlementCaptureListAsync(string settlementId, string? offset = null, int? count = null); | ||
Task<ListResponse<CaptureResponse>> GetSettlementCaptureListAsync(UrlObjectLink<ListResponse<CaptureResponse>> url); | ||
Task<SettlementResponse> GetSettlementAsync(UrlObjectLink<SettlementResponse> url); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.