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

Support API Version 2022-05-01 #106

Merged
merged 2 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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