Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
Support API Version 2022-05-01 (#106)
Browse files Browse the repository at this point in the history
* Update README.md

* Update ApiVersion to 2022-05-01
  • Loading branch information
mburumaxwell authored Jul 21, 2022
1 parent 695f41a commit 1a0e480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ FaluClient client; // omitted for brevity
var request = new EvaluationCreateModel
{
Currency = "kes",
Scope = EvaluationScope.Personal, // can also be Business
Provider = StatementProvider.Mpesa,
Name = "JOHN KAMAU ONYANGO", // full name as on statement
Phone = "+254722000000", // phone number as on statement for mobile based providers
Password = "1234567890", // password to open statement file
Content = System.IO.File.OpenRead("path-to-statement-file") // can be any readable stream
Options = new EvaluationScoringOptions
{
Scope = "personal", // can also be "business"
Statement = new EvaluationScoringOptionsForStatement { },
},
ReturnUrl = "https://my-app.com/evaluation/waiting/user_123",
};

// Request evaluation, results shall be relayed via webhooks
Expand Down
2 changes: 1 addition & 1 deletion src/FaluSdk/FaluClientOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class FaluClientOptions
private static JsonSerializerOptions? serializerOptions;

/// <summary>The ApiVersion that the SDK conforms to.</summary>
internal const string ApiVersion = "2022-01-01";
internal const string ApiVersion = "2022-05-01";

/// <summary>Serialization options.</summary>
internal JsonSerializerOptions SerializerOptions { get; } = GetSerializerOptions();
Expand Down

0 comments on commit 1a0e480

Please sign in to comment.