예제 #1
0
 /// <summary>
 /// This utility fetches all settlements
 /// </summary>
 /// <param name="from">This is the specified date to start the list from. YYYY-MM-DD</param>
 /// <param name="page">This is the page number to retrieve e.g. setting 1 retrieves the first page</param>
 /// <param name="to">The is the specified end period for the search . YYYY-MM-DD</param>
 /// <param name="subaccount_id">This is the unique id of the sub account you want to fetch. It is returned in the call to create a sub account</param>
 /// <returns>GetAllSettlementsResponse</returns>
 public GetAllSettlementsResponse GetAllSettlements(DateTime from, int page = 1, string to = null, string subaccount_id = null)
 => _api.GetWithParameters <GetAllSettlementsResponse>("settlements", new Dictionary <string, object>()
 {
     { "page", 1 },
     { "from", from },
     { "to", to },
     { "subaccount_id", subaccount_id }
 });
예제 #2
0
 /// <summary>
 /// This utility fetches all transactions on your account
 /// </summary>
 /// <param name="from">This is the specified date to start the list from. YYYY-MM-DD</param>
 /// <param name="to">The is the specified end period for the search . YYYY-MM-DD</param>
 /// <param name="page">This is the page number to retrieve e.g. setting 1 retrieves the first page</param>
 /// <param name="customer_email">This is the email of the customer who carried out a transaction. Use for more specific listing.</param>
 /// <param name="status">This is the transaction status, can be set to successful, failed etc to filter the listing</param>
 /// <param name="tx_ref">This is the merchant reference tied to a transaction. Use for more specific listing</param>
 /// <param name="customer_fullname">This is the combination of the customer first name and last name passed to rave during transaction.</param>
 /// <param name="currency">This is the currency the transaction list should come in e.g. NGN, USD, EUR, GHS, KES, GBP and ZAR</param>
 /// <returns></returns>
 public GetAllTransactionsResponse GetAllTransactions(string from = null, string to = null, int page = 1, string customer_email = null, string status = null, string tx_ref = null, string customer_fullname = null, string currency = "NGN")
 => _api.GetWithParameters <GetAllTransactionsResponse>("transactions", new Dictionary <string, object>()
 {
     { "from", from },
     { "to", to },
     { "page", page },
     { "customer_email", customer_email },
     { "status", status },
     { "tx_ref", tx_ref },
     { "customer_fullname", customer_fullname },
     { "currency", currency }
 });
예제 #3
0
 public GetAllTransfersResponse GetAllTransfers(string page = null, string status = null) => _api.GetWithParameters <GetAllTransfersResponse>("transfers", new Dictionary <string, object>()
 {
     { "page", page },
     { "status", status }
 });
예제 #4
0
 /// <summary>
 /// Get all AIRTIME bill categories on Flutterwave
 /// </summary>
 /// <returns>GetBillCategoriesResponse</returns>
 public GetBillCategoriesResponse GetBillCategoriesAirtime() => _api.GetWithParameters <GetBillCategoriesResponse>("bill-categories", new Dictionary <string, object>()
 {
     { "airtime", 1 }
 });
예제 #5
0
 /// <summary>
 /// This allows you to perform actions like decline or accept chargebacks on your account
 /// </summary>
 /// <param name="id">Unique identifier for the chargeback you want to accept/decline</param>
 /// <param name="action">This is the action you want to perform on the chargeback. It can be accept or decline</param>
 /// <returns></returns>
 public AcceptOrDeclineChargebackResponse AcceptOrDeclineChargeback(string id, string action) => _api.GetWithParameters <AcceptOrDeclineChargebackResponse>($"chargebacks/{id}", new Dictionary <string, object>()
 {
     { "action", action }
 });
예제 #6
0
 public FxRatesResponse FxRates(string from, string to, int amount) => _api.GetWithParameters <FxRatesResponse>("rates", new Dictionary <string, object>()
 {
     { "from", from },
     { "to", to },
     { "amount", amount }
 });