Skip to content

Commit

Permalink
new fields bill.customerPhone & bill.extras
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-haileselassie committed Nov 2, 2022
1 parent d319300 commit 2872d97
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ namespace WeBirr.Example
description = "hotel booking",
billReference = "dotnet/2021/132", // your unique reference number
merchantID = merchantId,
// customerPhone = "0968817878" // to use sms notification merchant needs to be activated at WeBirr
};

//bill.extras["newfield"] = "new value"; // extras is reserved for future use
//bill.extras["newcommand"] = "new value";
Console.WriteLine("Creating Bill...");

var res = await api.CreateBillAsync(bill);
Expand Down
4 changes: 4 additions & 0 deletions WeBirr.Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ public static async Task CreateAndUpdateBillAsync()
description = "hotel booking",
billReference = "dotnet/2021/132", // your unique reference number
merchantID = merchantId,
// customerPhone = "0968817878" // to use sms notification merchant needs to be activated at WeBirr
};

//bill.extras["newfield"] = "new value"; // extras is reserved for future use
//bill.extras["newcommand"] = "new value";

Console.WriteLine("Creating Bill...");

var res = await api.CreateBillAsync(bill);
Expand Down
7 changes: 6 additions & 1 deletion WeBirr/Bill.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
namespace WeBirr
using System;
using System.Collections.Generic;

namespace WeBirr
{
public class Bill
{
public string customerCode { get; set; }
public string customerName { get; set; }
public String customerPhone { get; set; }
public string billReference { get; set; }
public string time { get; set; }
public string description { get; set; }
public string amount { get; set; }
public string merchantID { get; set; }
public Dictionary<string, string> extras { get; set; } = new Dictionary<string, string>();

}
}
5 changes: 3 additions & 2 deletions WeBirr/WeBirr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>WeBirr</RootNamespace>
<PackageId>WeBirr</PackageId>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<Authors>WeBirr</Authors>
<Product>WeBirr</Product>
<Description>Official .NET Client Library for WeBirr Payment Gateway APIs</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/webirr/webirr-api-dotnet-client</RepositoryUrl>
<PackageIcon>512x512.png</PackageIcon>
<PackageIconUrl />
<PackageReleaseNotes>Initial release</PackageReleaseNotes>
<PackageReleaseNotes>new fields added to Bill. bill.customerPhone, bill.extras</PackageReleaseNotes>
<PackageTags>fintech, ethiopia</PackageTags>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://github.com/webirr/webirr-api-dotnet-client</PackageProjectUrl>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 2872d97

Please sign in to comment.