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
# Markdown file folder path | |
# Change this value as required to the right location | |
path = "C:\\Users\\domollo\\Desktop\\Elvis\\pesapal\\Static-Generator\\markdowns" |
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
using System.Runtime.Serialization; | |
namespace DAL.ViewModels.Enums; | |
public enum PaymentMethods | |
{ | |
[EnumMember(Value = "01")] | |
Cash, | |
[EnumMember(Value = "02")] | |
Credit, |
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
using System.Runtime.Serialization; | |
namespace DAL.ViewModels.Enums; | |
public enum PaymentMethod | |
{ | |
[EnumMember(Value = "01")] | |
Cash, | |
[EnumMember(Value = "02")] | |
Credit, |
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
using System.Runtime.Serialization; | |
namespace DAL.ViewModels.Enums; | |
public enum PaymentMethod | |
{ | |
[EnumMember(Value = "01")] | |
Cash, | |
[EnumMember(Value = "02")] | |
Credit, |
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
using System.Runtime.Serialization; | |
namespace DAL.ViewModels.Enums; | |
public enum PaymentMethod | |
{ | |
[EnumMember(Value = "01")] | |
Cash, | |
[EnumMember(Value = "02")] | |
Credit, |
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
using System.ComponentModel.DataAnnotations; | |
using DAL.ViewModels.Enums; | |
namespace DAL.ViewModels; | |
public class ReceiptModelDto | |
{ | |
[Required] | |
public string pin { get; set; } | |
[Required] |
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
using System.Runtime.Serialization; | |
namespace DAL.ViewModels.Enums; | |
public enum PaymentMethod | |
{ | |
[EnumMember(Value = "01")] | |
Cash, | |
[EnumMember(Value = "02")] | |
Credit, |
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
using System.ComponentModel.DataAnnotations; | |
using DAL.ViewModels.Enums; | |
namespace DAL.ViewModels; | |
public class ReceiptModelDto | |
{ | |
[Required] | |
public string businessId { get; set; } | |
[Required] |
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
using System.ComponentModel.DataAnnotations; | |
namespace DAL.ViewModels; | |
public class ItemModelDto | |
{ | |
[Required] | |
public string BusinessId { get; set; } | |
// [Required] | |
// public string Pin { get; set; } |
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
using Serilog; | |
var builder = WebApplication.CreateBuilder(args); | |
builder.Host.UseSerilog((ctx, cfg) => cfg | |
.WriteTo.Console() | |
.ReadFrom.Configuration(ctx.Configuration)); | |
builder.Services.AddControllers(); | |
builder.Services.AddEndpointsApiExplorer(); |
OlderNewer