Commit d66408ab authored by Sandeep Sagar Panjala's avatar Sandeep Sagar Panjala

initial commit

parent c873da39
namespace Hims.Domain.Entities.Vaccine
{
using Hims.Shared.Dapper.Attributes;
using System.ComponentModel.DataAnnotations;
/// <summary>
/// The vaccine type.
/// </summary>
public class VaccineType
{
/// <summary>
/// Gets or sets the vaccine type identifier.
/// </summary>
/// <value>
/// The vaaccine type identifier.
/// </value>
[Key,Identity]
public int VaccineTypeId { get; set; }
/// <summary>
/// Gets or sets the name of the type.
/// </summary>
/// <value>
/// The name of the type.
/// </value>
public string TypeName { get; set; }
/// <summary>
/// Gets or sets the color of the row.
/// </summary>
/// <value>
/// The color of the row.
/// </value>
public string RowColor { get; set; }
}
}
namespace Hims.Domain.Entities.Vendors
{
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Shared.Dapper.Attributes;
/// <summary>
/// The incoming quoatation detail.
/// </summary>
[Table("IncomingQuotationDetail", Schema = "vendors")]
public class IncomingQuotationDetail
{
/// <summary>
/// Gets or sets the incoming quotation detail identifier.
/// </summary>
/// <value>
/// The incoming quotation detail identifier.
/// </value>
[Key, Identity]
public long IncomingQuotationDetailId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product approval identifier.
/// </summary>
/// <value>
/// The pharmacy product approval identifier.
/// </value>
public long PharmacyProductApprovalId { get; set; }
/// <summary>
/// Gets or sets the incoming quotation header identifier.
/// </summary>
/// <value>
/// The incoming quotation header identifier.
/// </value>
public long IncomingQuotationHeaderId { get; set; }
/// <summary>
/// Gets or sets the product for quotation detail identifier.
/// </summary>
/// <value>
/// The product for quotation detail identifier.
/// </value>
public long ProductForQuotationDetailId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public int PharmacyProductId { get; set; }
/// <summary>
/// Gets or sets the tax.
/// </summary>
/// <value>
/// The tax.
/// </value>
public int Tax { get; set; }
/// <summary>
/// Gets or sets the purchase rate.
/// </summary>
/// <value>
/// The purchase rate.
/// </value>
public double PurchaseRate { get; set; }
/// <summary>
/// Gets or sets the MRP.
/// </summary>
/// <value>
/// The MRP.
/// </value>
public double MRP { get; set; }
/// <summary>
/// Gets or sets the amount.
/// </summary>
/// <value>
/// The amount.
/// </value>
public double Amount { get; set; }
/// <summary>
/// Gets or sets the tax amount.
/// </summary>
/// <value>
/// The tax amount.
/// </value>
public double TaxAmount { get; set; }
/// <summary>
/// Gets or sets the discount percentage.
/// </summary>
/// <value>
/// The discount percentage.
/// </value>
public double DiscountPercentage { get; set; }
/// <summary>
/// Gets or sets the discount amount.
/// </summary>
/// <value>
/// The discount amount.
/// </value>
public double DiscountAmount { get; set; }
/// <summary>
/// Gets or sets the net amount.
/// </summary>
/// <value>
/// The net amount.
/// </value>
public double NetAmount { get; set; }
/// <summary>
/// Gets or sets the quantity.
/// </summary>
/// <value>
/// The quantity.
/// </value>
public int Quantity { get; set; }
/// <summary>
/// Gets or sets the free.
/// </summary>
/// <value>
/// The free.
/// </value>
public int? Free { get; set; }
}
}
namespace Hims.Domain.Entities.Vendors
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Shared.Dapper.Attributes;
/// <summary>
/// The incoming quoatation header.
/// </summary>
[Table("IncomingQuotationHeader", Schema = "vendors")]
public class IncomingQuotationHeader
{
/// <summary>
/// Gets or sets the incoming quotation header identifier.
/// </summary>
/// <value>
/// The incoming quotation header identifier.
/// </value>
[Key,Identity]
public long IncomingQuotationHeaderId { get; set; }
/// <summary>
/// Gets or sets the product for quotation header identifier.
/// </summary>
/// <value>
/// The product for quotation header identifier.
/// </value>
public long ProductForQuotationHeaderId { get; set; }
/// <summary>
/// Gets or sets the supplier identifier.
/// </summary>
/// <value>
/// The supplier identifier.
/// </value>
public int SupplierId { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the modified by.
/// </summary>
/// <value>
/// The modified by.
/// </value>
public int? ModifiedBy { get; set; }
/// <summary>
/// Gets or sets the modified date.
/// </summary>
/// <value>
/// The modified date.
/// </value>
public DateTime? ModifiedDate { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is finalized.
/// </summary>
/// <value>
/// <c>true</c> if this instance is finalized; otherwise, <c>false</c>.
/// </value>
public bool IsFinalized { get; set; }
/// <summary>
/// Gets or sets the finalized by.
/// </summary>
/// <value>
/// The finalized by.
/// </value>
public int? FinalizedBy { get; set; }
/// <summary>
/// Gets or sets the finalized date.
/// </summary>
/// <value>
/// The finalized date.
/// </value>
public DateTime? FinalizedDate { get; set; }
/// <summary>
/// Gets or sets the delivery date.
/// </summary>
/// <value>
/// The delivery date.
/// </value>
public DateTime? DeliveryDate { get; set; }
/// <summary>
/// Gets or sets the total amount.
/// </summary>
/// <value>
/// The total amount.
/// </value>
public double TotalAmount { get; set; }
/// <summary>
/// Gets or sets the total tax.
/// </summary>
/// <value>
/// The total tax.
/// </value>
public double TotalTax { get; set; }
/// <summary>
/// Gets or sets the total net amount.
/// </summary>
/// <value>
/// The total net amount.
/// </value>
public double TotalNetAmount { get; set; }
/// <summary>
/// Gets or sets the total discount.
/// </summary>
/// <value>
/// The total discount.
/// </value>
public double TotalDiscount { get; set; }
}
}
namespace Hims.Domain.Entities.Vendors
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Shared.Dapper.Attributes;
/// <summary>
/// The inventory product request.
/// </summary>
[Table("InventoryProductRequest", Schema = "vendors")]
public class InventoryProductRequest
{
/// <summary>
/// Gets or sets the inventory product request identifier.
/// </summary>
/// <value>
/// The inventory product request identifier.
/// </value>
[Key,Identity]
public int InventoryProductRequestId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public int? PharmacyProductId { get; set; }
/// <summary>
/// Gets or sets the name of the request product.
/// </summary>
/// <value>
/// The name of the request product.
/// </value>
public string RequestProductName { get; set; }
/// <summary>
/// Gets or sets the reason for request.
/// </summary>
/// <value>
/// The reason for request.
/// </value>
public string ReasonForRequest { get; set; }
/// <summary>
/// Gets or sets the requested quantity.
/// </summary>
/// <value>
/// The requested quantity.
/// </value>
public int RequestedQuantity { get; set; }
/// <summary>
/// Gets or sets the type of the request.
/// </summary>
/// <value>
/// The type of the request.
/// </value>
public string RequestType { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the pharmacy product request identifier.
/// </summary>
/// <value>
/// The pharmacy product request identifier.
/// </value>
public long? PharmacyProductRequestId { get; set; }
/// <summary>
/// Gets or sets the rejected by.
/// </summary>
/// <value>
/// The rejected by.
/// </value>
public int? RejectedBy { get; set; }
/// <summary>
/// Gets or sets the rejected date.
/// </summary>
/// <value>
/// The rejected date.
/// </value>
public DateTime? RejectedDate { get; set; }
/// <summary>
/// Gets or sets the reject reason.
/// </summary>
/// <value>
/// The reject reason.
/// </value>
public string RejectReason { get; set; }
/// <summary>
/// Gets or sets the modified by.
/// </summary>
/// <value>
/// The modified by.
/// </value>
public int? ModifiedBy { get; set; }
/// <summary>
/// Gets or sets the modified date.
/// </summary>
/// <value>
/// The modified date.
/// </value>
public DateTime? ModifiedDate { get; set; }
/// <summary>
/// Gets or sets the document URL.
/// </summary>
/// <value>
/// The document URL.
/// </value>
public string DocumentUrl { get; set; }
/// <summary>
/// Gets or sets the location identifier.
/// </summary>
/// <value>
/// The location identifier.
/// </value>
public int? LocationId { get; set; }
}
}
namespace Hims.Domain.Entities.Vendors
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Shared.Dapper.Attributes;
/// <summary>
/// The pharmacy product approval.
/// </summary>
[Table("PharmacyProductApproval", Schema = "vendors")]
public class PharmacyProductApproval
{
/// <summary>
/// Gets or sets the pharmacy product approval identifier.
/// </summary>
/// <value>
/// The pharmacy product approval identifier.
/// </value>
[Key, Identity]
public long PharmacyProductApprovalId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public int PharmacyProductId { get; set; }
/// <summary>
/// Gets or sets the pharmacy ware house identifier.
/// </summary>
/// <value>
/// The pharmacy stock identifier.
/// </value>
public int PharmacyWareHouseId { get; set; }
/// <summary>
/// Gets or sets the purchase rate.
/// </summary>
/// <value>
/// The purchase rate.
/// </value>
public double? PurchaseRate { get; set; }
/// <summary>
/// Gets or sets the MRP.
/// </summary>
/// <value>
/// The MRP.
/// </value>
public double? Mrp { get; set; }
/// <summary>
/// Gets or sets the supplier identifier.
/// </summary>
/// <value>
/// The supplier identifier.
/// </value>
public int? SupplierId { get; set; }
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public int TenderStatusId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product request identifier.
/// </summary>
/// <value>
/// The pharmacy product request identifier.
/// </value>
public int PharmacyProductRequestId { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the quantity.
/// </summary>
/// <value>
/// The quantity.
/// </value>
public int Quantity { get; set; }
/// <summary>
/// Gets or sets the free.
/// </summary>
/// <value>
/// The free.
/// </value>
public int? Free { get; set; }
/// <summary>
/// Gets or sets the incoming quotation header identifier.
/// </summary>
/// <value>
/// The incoming quotation header identifier.
/// </value>
public long? ProductForQuotationHeaderId { get; set; }
}
}
namespace Hims.Domain.Entities.Vendors
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Shared.Dapper.Attributes;
/// <summary>
/// The component.
/// </summary>
[Table("PharmacyProductRequest", Schema = "vendors")]
public class PharmacyProductRequest
{
/// <summary>
/// Gets or sets the pharmacy product request identifier.
/// </summary>
/// <value>
/// The pharmacy product request identifier.
/// </value>
[Key, Identity]
public long PharmacyProductRequestId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public int PharmacyProductId { get; set; }
/// <summary>
/// Gets or sets the pharmacy warehouse identifier.
/// </summary>
/// <value>
/// The pharmacy stock identifier.
/// </value>
public int PharmacyWareHouseId { get; set; }
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public int TenderStatusId { get; set; }
/// <summary>
/// Gets or sets the raised by.
/// </summary>
/// <value>
/// The raised by.
/// </value>
public int RaisedBy { get; set; }
/// <summary>
/// Gets or sets the raised date.
/// </summary>
/// <value>
/// The raised date.
/// </value>
public DateTime RaisedDate { get; set; }
/// <summary>
/// Gets or sets the approved by.
/// </summary>
/// <value>
/// The approved by.
/// </value>
public int? ApprovedBy { get; set; }
/// <summary>
/// Gets or sets the approved date.
/// </summary>
/// <value>
/// The approved date.
/// </value>
public DateTime? ApprovedDate { get; set; }
/// <summary>
/// Gets or sets the approval given by.
/// </summary>
/// <value>
/// The approval given by.
/// </value>
public int? ApprovalGivenBy { get; set; }
/// <summary>
/// Gets or sets the approval given date.
/// </summary>
/// <value>
/// The approved date.
/// </value>
public DateTime? ApprovalGivenDate { get; set; }
/// <summary>
/// Gets or sets the requested quantity.
/// </summary>
/// <value>
/// The requested quantity.
/// </value>
public int? RequestedQuantity { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Hims.Domain.Entities.Vendors
{
/// <summary>
/// The product for quotation detail.
/// </summary>
[Table("ProductForQuotationDetail", Schema = "vendors")]
public class ProductForQuotationDetail
{
/// <summary>
/// Gets or sets the product for quotation detail identifier.
/// </summary>
/// <value>
/// The product for quotation detail identifier.
/// </value>
[Key,Identity]
public long ProductForQuotationDetailId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product approval identifier.
/// </summary>
/// <value>
/// The pharmacy product approval identifier.
/// </value>
public long PharmacyProductApprovalId { get; set; }
/// <summary>
/// Gets or sets the product for quotation header identifier.
/// </summary>
/// <value>
/// The product for quotation header identifier.
/// </value>
public long ProductForQuotationHeaderId { get; set; }
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public int TenderStatusId { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Hims.Domain.Entities.Vendors
{
/// <summary>
/// The product for quotation header.
/// </summary>
[Table("ProductForQuotationHeader", Schema = "vendors")]
public class ProductForQuotationHeader
{
/// <summary>
/// Gets or sets the product for quotation header identifier.
/// </summary>
/// <value>
/// The product for quotation header identifier.
/// </value>
[Key,Identity]
public long ProductForQuotationHeaderId { get; set; }
/// <summary>
/// Gets or sets the quotation number.
/// </summary>
/// <value>
/// The quotation number.
/// </value>
public string QuotationNumber { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public int TenderStatusId { get; set; }
}
}
namespace Hims.Domain.Entities.Vendors
{
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Shared.Dapper.Attributes;
/// <summary>
/// The purchase order detail.
/// </summary>
[Table("PurchaseOrderDetail", Schema = "vendors")]
public class PurchaseOrderDetail
{
/// <summary>
/// Gets or sets the purchase order detail identifier.
/// </summary>
/// <value>
/// The purchase order detail identifier.
/// </value>
[Key,Identity]
public long PurchaseOrderDetailId { get; set; }
/// <summary>
/// Gets or sets the purchase order header identifier.
/// </summary>
/// <value>
/// The purchase order header identifier.
/// </value>
public long PurchaseOrderHeaderId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product approval identifier.
/// </summary>
/// <value>
/// The pharmacy product approval identifier.
/// </value>
public long PharmacyProductApprovalId { get; set; }
/// <summary>
/// Gets or sets the quantity.
/// </summary>
/// <value>
/// The quantity.
/// </value>
public int Quantity { get; set; }
/// <summary>
/// Gets or sets the free.
/// </summary>
/// <value>
/// The free.
/// </value>
public int Free { get; set; }
/// <summary>
/// Gets or sets the amount.
/// </summary>
/// <value>
/// The amount.
/// </value>
public double Amount { get; set; }
/// <summary>
/// Gets or sets the tax amount.
/// </summary>
/// <value>
/// The tax amount.
/// </value>
public double TaxAmount { get; set; }
/// <summary>
/// Gets or sets the net amount.
/// </summary>
/// <value>
/// The net amount.
/// </value>
public double NetAmount { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is added by GRN.
/// </summary>
/// <value>
/// <c>true</c> if this instance is added by GRN; otherwise, <c>false</c>.
/// </value>
public bool IsAddedByGrn { get; set; }
}
}
namespace Hims.Domain.Entities.Vendors
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Shared.Dapper.Attributes;
/// <summary>
/// The purchase order header.
/// </summary>
[Table("PurchaseOrderHeader", Schema = "vendors")]
public class PurchaseOrderHeader
{
/// <summary>
/// Gets or sets the purchase order header identifier.
/// </summary>
/// <value>
/// The purchase order header identifier.
/// </value>
[Key,Identity]
public long PurchaseOrderHeaderId { get; set; }
/// <summary>
/// Gets or sets the po number.
/// </summary>
/// <value>
/// The po number.
/// </value>
public string PONumber { get; set; }
/// <summary>
/// Gets or sets the po raise date.
/// </summary>
/// <value>
/// The po raise date.
/// </value>
public DateTime PORaiseDate { get; set; }
/// <summary>
/// Gets or sets the estimated delivery date.
/// </summary>
/// <value>
/// The estimated delivery date.
/// </value>
public DateTime? EstimatedDeliveryDate { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public int TenderStatusId { get; set; }
/// <summary>
/// Gets or sets the total amount.
/// </summary>
/// <value>
/// The total amount.
/// </value>
public double TotalAmount { get; set; }
/// <summary>
/// Gets or sets the total tax.
/// </summary>
/// <value>
/// The total tax.
/// </value>
public double TotalTax { get; set; }
/// <summary>
/// Gets or sets the total net amount.
/// </summary>
/// <value>
/// The total net amount.
/// </value>
public double TotalNetAmount { get; set; }
/// <summary>
/// Gets or sets the supplier identifier.
/// </summary>
/// <value>
/// The supplier identifier.
/// </value>
public int SupplierId { get; set; }
/// <summary>
/// Gets or sets the pharmacy ware house identifier.
/// </summary>
/// <value>
/// The pharmacy ware house identifier.
/// </value>
public int PharmacyWareHouseId { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Hims.Domain.Entities.Vendors
{
/// <summary>
/// The supplier product detail.
/// </summary>
[Table("SupplierProductDetail", Schema = "vendors")]
public class SupplierProductDetail
{
/// <summary>
/// Gets or sets the supplier product detail identifier.
/// </summary>
/// <value>
/// The supplier product detail identifier.
/// </value>
[Key, Identity]
public int SupplierProductDetailId { get; set; }
/// <summary>
/// Gets or sets the supplier product header identifier.
/// </summary>
/// <value>
/// The supplier product header identifier.
/// </value>
public int SupplierProductHeaderId { get; set; }
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public int PharmacyProductId { get; set; }
/// <summary>
/// Gets or sets the purchase rate.
/// </summary>
/// <value>
/// The purchase rate.
/// </value>
public double PurchaseRate { get; set; }
/// <summary>
/// Gets or sets the MRP.
/// </summary>
/// <value>
/// The MRP.
/// </value>
public double Mrp { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Hims.Domain.Entities.Vendors
{
/// <summary>
/// The supplier product formulation.
/// </summary>
[Table("SupplierProductFormulation", Schema = "vendors")]
public class SupplierProductFormulation
{
/// <summary>
/// Gets or sets the supplier product formulation identifier.
/// </summary>
/// <value>
/// The supplier product formulation identifier.
/// </value>
[Key,Identity]
public int SupplierProductFormulationId { get; set; }
/// <summary>
/// Gets or sets the supplier product detail identifier.
/// </summary>
/// <value>
/// The supplier product header identifier.
/// </value>
public int SupplierProductDetailId{ get; set; }
/// <summary>
/// Gets or sets the operator.
/// </summary>
/// <value>
/// The operator.
/// </value>
public string Operator { get; set; }
/// <summary>
/// Gets or sets the condition.
/// </summary>
/// <value>
/// The condition.
/// </value>
public int Condition { get; set; }
/// <summary>
/// Gets or sets the foc quantity.
/// </summary>
/// <value>
/// The foc quantity.
/// </value>
public int FOCQuantity { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Hims.Domain.Entities.Vendors
{
/// <summary>
/// The supplier product header.
/// </summary>
[Table("SupplierProductHeader", Schema = "vendors")]
public class SupplierProductHeader
{
/// <summary>
/// Gets or sets the supplier product header identifier.
/// </summary>
/// <value>
/// The supplier product header identifier.
/// </value>
[Key,Identity]
public int SupplierProductHeaderId { get; set; }
/// <summary>
/// Gets or sets the supplier identifier.
/// </summary>
/// <value>
/// The supplier identifier.
/// </value>
public int SupplierId { get; set; }
/// <summary>
/// Gets or sets the start date.
/// </summary>
/// <value>
/// The start date.
/// </value>
public DateTime StartDate { get; set; }
/// <summary>
/// Gets or sets the end date.
/// </summary>
/// <value>
/// The end date.
/// </value>
public DateTime EndDate { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the modified by.
/// </summary>
/// <value>
/// The modified by.
/// </value>
public int? ModifiedBy { get; set; }
/// <summary>
/// Gets or sets the modified date.
/// </summary>
/// <value>
/// The modified date.
/// </value>
public DateTime? ModifiedDate { get; set; }
/// <summary>
/// Gets or sets the rate card URL.
/// </summary>
/// <value>
/// The rate card URL.
/// </value>
public string RateCardUrl { get; set; }
}
}
namespace Hims.Domain.Entities.Vendors
{
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Shared.Dapper.Attributes;
/// <summary>
/// The tendor status.
/// </summary>
[Table("TendorStatus", Schema = "vendors")]
public class TendorStatus
{
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
[Key, Identity]
public int TenderStatusId { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>
/// The status.
/// </value>
public string Status { get; set; }
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Helpers.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Helpers.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="IdentityModel" Version="4.4.0" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="Microsoft.AspNetCore.Http.Features" Version="3.1.9" />
<PackageReference Include="Microsoft.VisualStudio.TaskRunnerExplorer.14.0" Version="14.0.0" />
<PackageReference Include="RestSharp" Version="106.11.7" />
<PackageReference Include="TaskRunner" Version="1.0.0" />
<PackageReference Include="Webpack" Version="4.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Shared\Hims.Shared.EntityModels\Hims.Shared.EntityModels.csproj" />
<ProjectReference Include="..\..\Shared\Hims.Shared.Library\Hims.Shared.Library.csproj" />
<ProjectReference Include="..\..\Shared\Hims.Shared.UserModels\Hims.Shared.UserModels.csproj" />
</ItemGroup>
</Project>
namespace Hims.Domain.Helpers
{
/// <summary>
/// The AES Factory interface.
/// </summary>
public interface IAESHelper
{
/// <summary>
/// The decrypt.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string Decrypt(string value);
/// <summary>
/// The encrypt.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string Encrypt(string value);
/// <summary>
/// The decode.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string Decode(string value);
/// <summary>
/// The encode.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string Encode(string value);
}
}
\ No newline at end of file
namespace Hims.Domain.Helpers
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Hims.Domain.Entities;
using IdentityModel.Client;
using Shared.Library.Enums;
/// <summary>
/// The AuthHelper interface.
/// </summary>
public interface IAuthHelper
{
/// <summary>
/// The get auth server async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<DiscoveryDocumentResponse> GetIdentityServerAsync();
/// <summary>
/// The sign in async.
/// </summary>
/// <param name="identityServer">
/// The identity Server.
/// </param>
/// <param name="userName">
/// The user name.
/// </param>
/// <param name="password">
/// The password.
/// </param>
/// <param name="accountTypes">
/// The account Types.
/// </param>
/// <param name="accountId">
/// The account Id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<TokenResponse> SignInAsync(DiscoveryDocumentResponse identityServer, string userName, string password, IEnumerable<AccountType> accountTypes, int? accountId);
/// <summary>
/// Signs the in alt asynchronous.
/// </summary>
/// <param name="identityServer">The identity server.</param>
/// <param name="userName">Name of the user.</param>
/// <param name="password">The password.</param>
/// <param name="roles">The roles.</param>
/// <param name="accountId">The account identifier.</param>
/// <returns></returns>
Task<TokenResponse> SignInAltAsync(DiscoveryDocumentResponse identityServer, string userName, string password, List<int> roles, int? accountId);
Task<TokenResponse> PatientSignInAsync(DiscoveryDocumentResponse identityServer, string userName, string password, int? accountId);
/// <summary>
/// The refresh sign in async.
/// </summary>
/// <param name="identityServer">
/// The identity Server.
/// </param>
/// <param name="refreshToken">
/// The refresh token.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<TokenResponse> RefreshSignInAsync(DiscoveryDocumentResponse identityServer, string refreshToken);
/// <summary>
/// The fetch user info async.
/// </summary>
/// <param name="identityServer">
/// The identity Server.
/// </param>
/// <param name="accessToken">
/// The access token.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<UserInfoResponse> FetchUserInfoAsync(DiscoveryDocumentResponse identityServer, string accessToken);
}
}
\ No newline at end of file
namespace Hims.Domain.Helpers
{
/// <summary>
/// The CookiesFactory interface.
/// </summary>
public interface ICookieHelper
{
/// <summary>
/// The create.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
/// <param name="value">
/// The value.
/// </param>
/// <param name="expiryTime">
/// The expiry time.
/// </param>
void Create(string key, string value, int? expiryTime);
/// <summary>
/// The get.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string Get(string key);
/// <summary>
/// The remove.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
void Remove(string key);
/// <summary>
/// The delete all.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
void DeleteAll(string key);
/// <summary>
/// The delete all.
/// </summary>
void DeleteAll();
}
}
\ No newline at end of file
namespace Hims.Domain.Helpers
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Hims.Domain.Entities;
using Microsoft.AspNetCore.Http;
/// <summary>
/// The Document helper interface.
/// </summary>
public interface IDocumentHelper
{
/// <summary>
/// The get url.
/// </summary>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="fileName">
/// The file name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string GetUrl(Guid guid, string fileName);
/// <summary>
/// The get DB url.
/// </summary>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="fileName">
/// The file name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string GetDbUrl(Guid guid, string fileName);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="fileUrl">
/// The file URL.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<bool> DeleteAsync(Guid guid, string fileUrl);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadAsync(IFormFile file, Guid guid, string folderName, string filName);
/// <summary>
/// The upload document async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder name.
/// </param>
/// <param name="filName">
/// The fil name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadDocumentAsync(IFormFile file, Guid guid, string folderName, string filName);
/// <summary>
/// The upload thumbnail async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadThumbnailAsync(IFormFile file, Guid guid, string folderName, string filName);
/// <summary>
/// The upload thumbnail async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadProfileImageAsync(IFormFile file, Guid guid, string folderName, string filName);
/// <summary>
/// The upload thumbnail async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadThumbnailImageAsync(IFormFile file, Guid guid, string folderName, string filName);
/// <summary>
/// The upload attachments async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="basePath">
/// The base path.
/// </param>
/// <param name="folderName">
/// The folder name.
/// </param>
/// <param name="filName">
/// The fil name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadAttachmentsAsync(IFormFile file, string basePath, string folderName, string filName);
/// <summary>
/// The upload attachments async.
/// </summary>
/// <param name="base64Image">
/// The file.
/// </param>
/// <param name="basePath">
/// The base path.
/// </param>
/// <param name="folderName">
/// The folder name.
/// </param>
/// <param name="filName">
/// The fil name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadImageAsync(string base64Image, string basePath, string folderName, string filName);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="base64Image">
/// The base 64 Image.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<Tuple<string, string>> UploadAsync(string base64Image, Guid guid, string folderName, string filName);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="base64Image">
/// The base 64 Image.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadProfileImageAsync(string base64Image, Guid guid, string folderName, string filName);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="base64ThumnailImage">
/// The base 64 Image.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadThumbnailImageAsync(string base64ThumnailImage, Guid guid, string folderName, string filName);
/// <summary>
/// The upload encounter images async.
/// </summary>
/// <param name="base64Image">
/// The base 64 image.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder name.
/// </param>
/// <param name="filName">
/// The fil name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> UploadEncounterImagesAsync(string base64Image, Guid guid, string folderName, string filName);
/// <summary>
/// The delete attachments async.
/// </summary>
/// <param name="fileUrl">
/// The file url.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<bool> DeleteAttachmentsAsync(string fileUrl);
/// <summary>
/// Get document thumbnail.
/// </summary>
/// <param name="contentType">
/// The content type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
string GetThumbnail(string contentType);
/// <summary>
/// The fetch content types.
/// </summary>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
IEnumerable<string> FetchContentTypes();
/// <summary>
/// The fetch image content types.
/// </summary>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
IEnumerable<string> FetchImageContentTypes();
}
}
\ No newline at end of file
namespace Hims.Domain.Helpers
{
using System.Threading.Tasks;
using Shared.Library.MailKit;
/// <summary>
/// The Email Service.
/// </summary>
public interface IEmailHelper
{
/// <summary>
/// The send.
/// </summary>
/// <param name="emailMessage">
/// The email message.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task SendAsync(EmailMessage emailMessage);
/// <summary>
/// The send email async.
/// </summary>
/// <param name="emailMessage">
/// The email message.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task SendEmailAsync(EmailMessage emailMessage);
}
}
\ No newline at end of file
namespace Hims.Domain.Helpers
{
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Shared.Library.MailKit;
/// <summary>
/// The FTP Service.
/// </summary>
public interface IFtpHelper
{
/// <summary>
///to get a ftp url..
/// </summary>
/// <param name="category">
/// to get a ftp category type.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string GetFtpUrl(string category);
/// <summary>
///to Fetch Image or Thumbnail Base64.
/// </summary>
/// <param name="id">
/// The id.
/// </param>
/// <param name="url">
/// The url.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> FetchImageBase64(int id, string url);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="base64Image">
/// Base64.
/// </param>
/// <param name="url">
/// The ftp url.
/// </param>
/// /// <param name="fileName">
/// The file Name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string FtpUploadProfileImage(string base64Image,string url, string fileName);
/// <summary>
///to delete a profile image or decument..
/// </summary>
/// <param name="url">
/// The url.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string DeleteFtpFile(string url);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="patientDocumentId">
/// The Fetches Document Base64.
/// </param>
/// /// <param name="url">
/// The Fetches Document p url.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> FetchDocumentBase64(int patientDocumentId, string url);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="patientId">
/// The patientId.
/// </param>
/// <param name="file">
/// The file information.
/// </param>
/// /// <param name="url">
/// The ftp url.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> FtpUploadDocument(int patientId, IFormFile file, string url);
}
}
\ No newline at end of file
namespace Hims.Domain.Helpers
{
using Microsoft.AspNetCore.Http;
using System;
using System.IO;
using System.Threading.Tasks;
/// <summary>
/// The FTP upload helper.
/// </summary>
public interface IFtpUploadHelper
{
/// <summary>
/// Creates the directory.
/// </summary>
/// <param name="folderNameWithCompletePath">The folder name with complete path.</param>
/// <returns></returns>
Task<int> CreateDirectory(string folderNameWithCompletePath);
/// <summary>
/// Uploads the profile image asynchronous.
/// </summary>
/// <param name="base64Image">The base64 image.</param>
/// <param name="filePath">The file path.</param>
/// <returns></returns>
Task<int> UploadProfileImageAsync(string base64Image, string filePath);
/// <summary>
/// Deletes the file.
/// </summary>
/// <param name="fileNameWithDestinationPath">The file name with destination path.</param>
/// <returns></returns>
Task<int> DeleteFile(string fileNameWithDestinationPath);
/// <summary>
/// Downloads the small files asynchronous.
/// </summary>
/// <param name="fileNameWithPath">The file name with path.</param>
/// <returns></returns>
Task<byte[]> DownloadSmallFilesAsync(string fileNameWithPath);
/// <summary>
/// Downloads the large file.
/// </summary>
/// <param name="fileNameWithPath">The file name with path.</param>
/// <returns></returns>
Task<Stream> DownloadLargeFile(string fileNameWithPath);
/// <summary>
/// Uploads the file with byte array asynchronous.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <param name="source">The source.</param>
/// <returns></returns>
Task<int> UploadFileWithByteArrayAsync(string fileName, byte[] source);
/// <summary>
/// Uploads the file with stream asynchronous.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <param name="stream">The stream.</param>
/// <returns></returns>
Task<int> UploadFileWithStreamAsync(string fileName, Stream stream);
/// <summary>
/// Uploads from file asynchronous.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <param name="fileInfo">The file information.</param>
/// <returns></returns>
Task<int> UploadFromFileAsync(string fileName, IFormFile fileInfo);
/// <summary>
/// Downloads the base64 data asynchronous.
/// </summary>
/// <param name="fileNameWithPath">The file name with path.</param>
/// <returns></returns>
Task<string> DownloadBase64DataAsync(string fileNameWithPath);
/// <summary>
/// Checks if file exists on server.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <returns></returns>
bool CheckIfFileExistsOnServer(string fileName);
Task<int> DeleteDirectory(string folder);
Task<bool> Rename(string source, string destination);
}
}
\ No newline at end of file
#nullable enable
namespace Hims.Domain.Helpers
{
using System;
using System.Threading.Tasks;
using RestSharp;
using Shared.EntityModels;
/// <summary>
/// The sinch interface.
/// </summary>
public interface IKaleyraSMSHelper
{
/// <summary>
/// The send SMS async.
/// </summary>
/// <param name="mobile">
/// The mobile.
/// </param>
/// <param name="body">
/// The body.
/// </param>
/// <param name="countryModel">
/// The country Model.
/// </param>
/// <param name="templateId">
/// The country Model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse?> SendSMSAsync(string mobile, string body, CountryModel countryModel, string templateId);
/// <summary>
/// Sends the report SMS asynchronous.
/// </summary>
/// <param name="mobile">The mobile.</param>
/// <param name="body">The body.</param>
/// <param name="countryModel">The country model.</param>
/// <param name="templateId">The template identifier.</param>
/// <param name="url">The URL.</param>
/// <returns></returns>
Task<Tuple<IRestResponse?, string>> SendReportSMSAsync(string mobile, string body, CountryModel countryModel, string templateId, string url);
Task<Tuple<IRestResponse?, string>> SendPdfLinkSMSAsync(string patientMobile, string messageBody, CountryModel countryModel, string v, string createPdfLink);
}
}
namespace Hims.Domain.Helpers
{
using System.Threading.Tasks;
using RestSharp;
using Shared.UserModels.PayU;
/// <summary>
/// The PayU interface.
/// </summary>
public interface IPayUHelper
{
/// <summary>
/// The fetch status async.
/// </summary>
/// <param name="merchantTransactionIds">
/// The merchant transaction ids.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> FetchStatusAsync(string merchantTransactionIds);
/// <summary>
/// The refund async.
/// </summary>
/// <param name="paymentId">
/// The payment id.
/// </param>
/// <param name="amount">
/// The amount.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> RefundAsync(long paymentId, decimal amount);
/// <summary>
/// The fetch refund status async.
/// </summary>
/// <param name="paymentId">
/// The transaction paymentId.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> FetchRefundStatusAsync(int paymentId);
/// <summary>
/// The payout authentication async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> PayoutAuthentication();
/// <summary>
/// The payout account details.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> PayoutAccountDetails(PayoutModel model);
/// <summary>
/// The payout smart send.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> PayoutSmartSendAsync(PayoutModel model);
/// <summary>
/// The payout smart send.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> PayoutPaymentAsync(PayoutModel model);
/// <summary>
/// The add web hook.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> AddWebHook(PayoutModel model);
/// <summary>
/// The delete web hook.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> DeleteWebHook(PayoutModel model);
/// <summary>
/// The add web hook.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> FetchPayoutTransfers(PayoutModel model);
}
}
This diff is collapsed.
#nullable enable
namespace Hims.Domain.Helpers
{
using System;
using System.Threading.Tasks;
using RestSharp;
using Shared.EntityModels;
/// <summary>
/// The sinch interface.
/// </summary>
public interface ISMSHelper
{
/// <summary>
/// The send SMS async.
/// </summary>
/// <param name="mobile">
/// The mobile.
/// </param>
/// <param name="body">
/// The body.
/// </param>
/// <param name="countryModel">
/// The country Model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse?> SendSMSAsync(string mobile, string body, CountryModel countryModel);
/// <summary>
/// Sends the lab report SMS asynchronous.
/// </summary>
/// <param name="mobile">The mobile.</param>
/// <param name="body">The body.</param>
/// <param name="countryModel">The country model.</param>
/// <param name="url">The URL.</param>
/// <returns></returns>
Task<Tuple<IRestResponse, string>> SendLabReportSMSAsync(string mobile, string body, CountryModel countryModel, string url);
Task<Tuple<IRestResponse, string>> SendPdfLinkSMSAsync(string patientMobile, string messageBody, CountryModel countryModel, string createPdfLink);
}
}
namespace Hims.Domain.Helpers
{
using System.Threading.Tasks;
using RestSharp;
/// <summary>
/// The salucro interface.
/// </summary>
public interface ISalucroHelper
{
/// <summary>
/// The refund async.
/// </summary>
/// <param name="processingId">
/// The payment id.
/// </param>
/// <param name="paymode"></param>
/// <param name="patientName"></param>
/// <param name="accountNumber"></param>
/// <param name="amount">
/// The amount.
/// </param>
/// <param name="email"></param>
/// <param name="transactionId"></param>
/// <param name="check_sum_hash"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> RefundAsync(string processingId, string paymode, string patientName,string accountNumber,decimal amount,string email,string transactionId,string check_sum_hash);
/// <summary>
/// The refund async.
/// </summary>
/// <param name="processingId">
/// The payment id.
/// </param>
/// <param name="check_sum_hash"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IRestResponse> StatusCheckAsync(string processingId, string check_sum_hash);
}
}
namespace Hims.Domain.Helpers
{
/// <summary>
/// The Sha Factory interface.
/// </summary>
public interface IShaHelper
{
/// <summary>
/// The Generate Hash.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <param name="saltKey">
/// The salt Key.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string GenerateHash(string value, string saltKey);
}
}
\ No newline at end of file
namespace Hims.Domain.Helpers
{
using System.Threading.Tasks;
/// <summary>
/// Renders email content based on razor templates
/// </summary>
public interface ITemplateHelper
{
/// <summary>
/// Renders a template given the provided view model
/// </summary>
/// <typeparam name="TViewModel">The entity.</typeparam>
/// <param name="filename">Filename of the template to render</param>
/// <param name="viewModel">View model to use for rendering the template</param>
/// <returns>Returns the rendered template content</returns>
Task<string> RenderTemplateAsync<TViewModel>(string filename, TViewModel viewModel);
}
}
\ No newline at end of file
using System.Threading.Tasks;
namespace Hims.Domain.Helpers
{
/// <summary>
/// The AES Factory interface.
/// </summary>
public interface IURLShortnerHelper
{
/// <summary>
/// The encode.
/// </summary>
/// <param name="strURL">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
Task<string> MakeShorterUrl(string strURL);
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Services.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Services.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.TaskRunnerExplorer.14.0" Version="14.0.0" />
<PackageReference Include="TaskRunner" Version="1.0.0" />
<PackageReference Include="Webpack" Version="4.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Shared\Hims.Shared.EntityModels\Hims.Shared.EntityModels.csproj" />
<ProjectReference Include="..\..\Shared\Hims.Shared.Library\Hims.Shared.Library.csproj" />
<ProjectReference Include="..\..\Shared\Hims.Shared.UserModels\Hims.Shared.UserModels.csproj" />
</ItemGroup>
</Project>
namespace Hims.Domain.Services
{
using System.Threading.Tasks;
/// <summary>
/// The AccountCredential interface.
/// </summary>
public interface IAccountCredentialService
{
/// <summary>
/// The check account credentials async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> CheckAsync(int accountId);
/// <summary>
/// The create credential async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="password">
/// The password.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> CreateAsync(int accountId, string password);
/// <summary>
/// The create credential async.
/// </summary>
/// <param name="userName">
/// The userName.
/// </param>
/// <param name="roleId">
/// The roleId.
/// /// </param>
/// <param name="password">
/// The password.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> PatientPasswordCreateAsync(string userName, int? roleId, string password);
/// <summary>
/// The create credential async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="password">
/// The password.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> CreatePasswordAsync(int accountId, string password);
}
}
\ No newline at end of file
This diff is collapsed.
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Hims.Shared.UserModels.Common;
using Shared.EntityModels;
using Shared.Library.Enums;
/// <summary>
/// The AccountSessionService interface.
/// </summary>
public interface IAccountSessionService
{
/// <summary>
/// The fetch sessions async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<AccountSessionModel>> FetchAsync(int accountId);
/// <summary> The fetch device token async.</summary>
/// <param name="referenceId"> The reference id.</param>
/// <param name="role"> The role.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task<IEnumerable<AccountSessionModel>> FetchDeviceTokenAsync(int referenceId, Roles role);
/// <summary>
/// The get session async.
/// </summary>
/// <param name="accountSessionId">
/// The account session id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<AccountSessionModel> FindAsync(int accountSessionId);
/// <summary>
/// The create async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> CreateAsync(AccountSessionModel model);
/// <summary>
/// The delete session async.
/// </summary>
/// <param name="accountSessionId">
/// The account session id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(int accountSessionId);
/// <summary>
/// The delete session async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="deviceType">
/// The device type.
/// </param>
/// <param name="deviceId">
/// The device id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(int accountId, DeviceType deviceType, string deviceId);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="deviceToken">
/// The device token.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(int accountId, string deviceToken);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="accountId">
/// The account id
/// </param>
/// <param name="deviceType">
/// The device type
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> WebLogoutAsync(int accountId, DeviceType deviceType);
/// <summary>
/// The delete all sessions async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAllAsync(int accountId);
/// <summary> The delete others async.</summary>
/// <param name="accountId"> The account id.</param>
/// <param name="deviceId"> The device id.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task<int> DeleteOthersAsync(int accountId, string deviceId);
}
}
\ No newline at end of file
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Shared.EntityModels;
using Shared.UserModels.Filters;
using Shared.UserModels.Admission;
using Hims.Shared.UserModels;
using Hims.Domain.Entities;
/// <summary>
/// The Appointment Service interface.
/// </summary>
public interface IAdmissionService
{
/// <summary>
/// Fetches the priorities asynchronous.
/// </summary>
/// <returns></returns>
Task<IEnumerable<PriorityViewModel>> FetchPrioritiesAsync();
/// <summary>
/// Cancels the asynchronous.
/// </summary>
/// <param name="admissionId">The admission identifier.</param>
/// <returns></returns>
Task<int> CancelAsync(int admissionId);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<AdmissionModel>> FetchAsync(AdmissionFilterModel model);
/// <summary>
/// The find async.
/// </summary>
/// <param name="admissionId"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<AdmissionModel> FindAsync(int admissionId);
/// <summary>
/// The find async.
/// </summary>
/// <param name="admissionId"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<FinalBillModel> FindFinalBillAsync(int finalBillId);
/// <summary>
/// The add admission async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> AddAdmissionAsync(ModifyAdmissionModel model);
/// <summary>
/// The fetch wards async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<BedManagementModel>> FetchWardsAsync(int locationId);
/// <summary>
/// The fetch admission for audit log async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<AdmissionModel> FetchAdmissionInfo(int admissionId);
/// <summary>
/// The fetch rooms async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<BedManagementModel>> FetchRoomsAsync(int? wardId, int? chargeCategoryId, int? locationId);
/// <summary>
/// The fetch beds async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<BedManagementModel>> FetchBedsAsync(BedManagementModel model);
/// <summary>
/// Raises the bed change request asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> RaiseBedChangeRequestAsync(AdmissionBedChangeRequestModel model);
/// <summary>
/// The add admission async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> AddAdmissionTransferRequest(AdmissionTransferRequestModel model);
/// <summary>
/// The fetch beds async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<AdmissionTransferRequestModel>> FetchAdmissionTransferRequest(AdmissionTransferRequestModel model);
/// <summary>
/// The fetch beds async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> AcceptTransferRequest(AdmissionTransferRequestModel model);
/// <summary>
/// The fetch beds async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> RejectAdmissionTransferRequest(AdmissionTransferRequestModel model);
}
}
using Hims.Shared.EntityModels;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Hims.Domain.Services
{
public interface IAmbulanceRecieptService
{
// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> InsertAsync(AmbulanceRecieptModel model);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<AmbulanceRecieptModel>> FetchAllAsync(AmbulanceRecieptModel model);
Task<int> UpdateAsync(AmbulanceRecieptModel model);
}
}
using Hims.Domain.Entities;
using Hims.Shared.EntityModels;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Hims.Domain.Services
{
public interface IAmbulanceService
{
Task<int> AddAsync(AmbulanceModel model);
Task<IEnumerable<AmbulanceModel>> FetchAsync(AmbulanceModel model);
Task<int> UpdateAsync(AmbulanceModel model);
Task<int> ModifyStatusAsync(int ambulanceModelId, int modifiedBy, bool status);
//Task<int> DeleteAsync(int ambulanceModelId);
Task<string> FindNameByAmbulanceId(int ambulanceModelId);
}
}
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Shared.UserModels.AppointmentCheck;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public interface IAppointmentCheckService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<FetchModel>> FetchAsync(FetchPayload model);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> InsertAsync(InsertModel model);
}
}
namespace Hims.Domain.Services
{
using System.Threading.Tasks;
using Shared.EntityModels;
/// <summary>
/// The Appointment Exception Log Service interface.
/// </summary>
public interface IAppointmentExceptionLogService
{
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task LogAsync(AppointmentExceptionLogModel model);
}
}
namespace Hims.Domain.Services
{
using System.Threading.Tasks;
using Shared.EntityModels;
/// <summary>
/// The Appointment log Service interface.
/// </summary>
public interface IAppointmentLogService
{
/// <summary>
/// The find async.
/// </summary>
/// <param name="appointmentLogId">
/// The appointment log id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<AppointmentLogModel> FindAsync(int appointmentLogId);
/// <summary>
/// The modify async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> AddAsync(AppointmentLogModel model);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="appointmentLogId">
/// The appointment log Id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(int appointmentLogId);
}
}
\ No newline at end of file
This diff is collapsed.
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Shared.EntityModels;
using Shared.UserModels.Filters;
/// <summary>
/// The AppointmentTransactionService interface.
/// </summary>
public interface IAppointmentTransactionService
{
/// <summary>
/// The fetch async.
/// </summary>
/// /// <param name="appointmentId">
/// The id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<AppointmentTransactionModel> FetchAsync(int appointmentId);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<AppointmentTransactionModel>> FetchAsync(AppointmentTransactionFilterModel model);
/// <summary>
/// The fetch provider transactions async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<AppointmentTransactionModel>> FetchProviderTransactionsAsync(AppointmentTransactionFilterModel model);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<RefundModel>> FetchRefundAsync(AppointmentTransactionFilterModel model);
/// <summary>
/// The find transaction details async.
/// </summary>
/// <param name="appointmentTransactionId">
/// The appointment transaction id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> FindTransactionDetailsAsync(int appointmentTransactionId);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<ProviderBankAccountModel>> FetchPayoutAsync(AppointmentTransactionFilterModel model);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<AppointmentTransactionModel>> FetchPayoutDetailsAsync(AppointmentTransactionFilterModel model);
/// <summary>
/// The find settlement details async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<SettlementDetailModel>> FindSettlementDetailsAsync(SettlementFilterModel model);
/// <summary>
/// The fetch appointments details async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<AppointmentTransactionModel>> FetchAppointmentsDetailsAsync(AppointmentTransactionFilterModel model);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<int>> AddAsync(IEnumerable<PaymentDocumentModel> model);
/// <summary>
/// The fetch payment async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<PaymentDocumentModel>> FetchPaymentAsync(PaymentDocumentFilterModel model);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(PaymentDocumentModel model);
/// <summary>
/// The get async.
/// </summary>
/// <param name="id">
/// The id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<PaymentDocumentModel> GetAsync(int id);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> UpdateAsync(PaymentDocumentModel model);
/// <summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> GetPreviousVoucherNumberAsync();
/// <summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> GetVoucherNumber();
/// <summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> GetATransactionId();
}
}
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Shared.EntityModels;
using Shared.UserModels;
/// <summary>
/// The hwc patient Service interface.
/// </summary>
public interface IAppointmentTypesService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> InsertAsync(AppointmentTypesModel model);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<AppointmentTypesModel>> FetchAllAsync(AppointmentTypesModel model);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> UpdateAsync(AppointmentTypesModel model);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> DeleteAsync(AppointmentTypesModel model);
}
}
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Hims.Shared.UserModels.AssessmentType;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public interface IAssessmentTypeService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<ViewModel>> FetchAsync(FilterModel model);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> AddAsync(InsertModel model);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> UpdateAsync(UpdateModel model);
/// <summary>
/// The update async.
/// </summary>
/// <param name="id">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(DeleteModel id);
/// <summary>
/// The update async.
/// </summary>
/// <param name="id">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> FindNameByAssessmentTypeId(int id);
}
}
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Shared.EntityModels;
using Shared.UserModels.Filters;
/// <summary>
/// The AuditLogService interface.
/// </summary>
public interface IAuditLogService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<AuditLogModel>> FetchAsync(AuditLogFilterModel model);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task LogAsync(AuditLogModel model);
}
}
using Hims.Shared.UserModels;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Hims.Domain.Services
{
public interface IAuthorityMasterService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> InsertAsync(AuthorityMasterModel model);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<AuthorityMasterModel>> FetchAllAsync(AuthorityMasterModel model);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> UpdateAsync(AuthorityMasterModel model);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> DeleteAsync(AuthorityMasterModel model);
/// <summary>
/// Activates the or deactivate authority.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> ActivateOrDeactivateTest(AuthorityMasterModel model);
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Hims.Domain.Services
{
using Shared.EntityModels;
using Shared.UserModels.Filters;
using System.Threading.Tasks;
public interface IBedBoardListViewService
{
Task<IEnumerable<ListViewModel>> FetchAsync(ListViewFilterModel model);
}
}
using System.Collections.Generic;
namespace Hims.Domain.Services
{
using System.Threading.Tasks;
using Ward = Shared.UserModels.BedManagement.Ward;
using Room = Shared.UserModels.BedManagement.Room;
using Status = Shared.UserModels.BedManagement.Status;
using Bed = Shared.UserModels.BedManagement.Bed;
using Hims.Shared.UserModels;
using System;
/// <summary>
/// The Bed Management Service
/// </summary>
public interface IBedManagementService
{
/// <summary>
/// Fetches the wards asynchronous.
/// </summary>
/// <returns></returns>
Task<IEnumerable<Ward.ViewModel>> FetchWardsAsync(int locationId);
/// <summary>
/// Fetches the rooms asynchronous.
/// </summary>
/// <param name="wardId">The ward identifier.</param>
/// <returns></returns>
Task<IEnumerable<Room.ViewModel>> FetchRoomsAsync(int wardId);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <param name="roomId">The room identifier.</param>
/// <returns></returns>
Task<IEnumerable<Bed.ViewModel>> FetchBedsAsync(int roomId);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task<string> FetchBedsAvailabilityAsync(BedManagementFilterModel model);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task<BedPatientDetailsModel> FindPatientDetailsByBedIdAsync(int bedId);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task<int> FetchAvailableBedsCountAsync(int locaionId);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task<int> FetchBookedBedsCountAsync(int locationId);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task<int> FetchUnderCleaningBedsCountAsync(int locationId);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task<int> FetchTotalBedsCountAsync(int locationId);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task<IEnumerable<Status.ViewModel>> FetchBedStatusItemsAsync(int locationId);
}
}
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Shared.EntityModels;
using Shared.UserModels.Filters;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public interface IBedService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<BedModel>> FetchAsync(BedFilterModel model);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<BedModel>> FetchBedAsync(BedFilterModel model);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> AddAsync(BedModel model);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> UpdateAsync(BedModel model);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="bedId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(int bedId);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="bedId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<string> FindNumberByBedId(int bedId);
/// <summary>
/// Changes the status asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> ChangeStatusAsync(BedModel model);
}
}
namespace Hims.Domain.Services
{
using System.Threading.Tasks;
using Shared.EntityModels;
using Shared.Library;
using Shared.Library.Enums;
using Shared.UserModels;
using Hims.Shared.Library.Helpers;
/// <summary>
/// The Behavioral Health Service interface.
/// </summary>
public interface IBehavioralHealthService
{
/// <summary>
/// The update alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<CommonResponse> UpdateAltAsync(BehavioralModifyModel model);
/// <summary>
/// The find async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<BehavioralHealthModel> FindAsync(int appointmentId);
/// <summary>
/// The find internal medicine async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <param name="type">
/// The encounter type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<BehavioralHealthResource> FindDashboardAsync(int appointmentId, BehavioralHealthType type);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> UpdateAsync(BehavioralModifyModel model);
/// <summary>
/// The find prescription async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<BehavioralPrescriptionModel> FindPrescriptionAsync(int appointmentId);
/// <summary>
/// The find full transcript async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<BehavioralHealthFullTranscriptModel> FindFullTranscriptAsync(int appointmentId);
}
}
\ No newline at end of file
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Shared.EntityModels;
/// <summary>
/// The birth certificate Service interface.
/// </summary>
public interface IBirthCertificateService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> InsertAsync(BirthCertificateModel model);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<BirthCertificateModel>> FetchAllAsync(BirthCertificateModel model);
Task<BirthCertificateModel> FetchBirthReportAsync(BirthCertificateModel model);
}
}
namespace Hims.Domain.Services
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Hims.Shared.UserModels.Scan.BookAppointment;
using Hims.Shared.UserModels.Scan.ScanAppointment;
using Shared.EntityModels;
using Shared.UserModels;
/// <summary>
/// The id proof Service interface.
/// </summary>
public interface IBookScanAppointmentService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> InsertAsync(InsertBookScanAppointment model);
/// <summary>
/// Update of Patient appointment Payment and patient details.
/// </summary>
/// <param name="model">The model.</param>
/// <param name="request">The model.</param>
/// <returns></returns>
Task<int> UpdatePatientDetailsPaymentAsync(InsertBookScanAppointment model, ModifyPatientDetails request);
/// <summary>
/// fetches the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<FetchBookScanAppointment>> FetchAsync(FilterModel model);
/// <summary>
/// reschedule the appointment.
/// </summary>
/// <param name="bookScanAppointmentId">The model.</param>
/// <param name="modifiedBy">Modified By Name.</param>
/// <param name="appointmentDate">Appointment Date.</param>
/// <param name="appointmentTime">Appointment Start Time.</param>
/// <param name="appointmentEndTime">Appointment End Time.</param>
/// <returns></returns>
Task<int> RescheduleAsync(int bookScanAppointmentId, int modifiedBy, DateTime appointmentDate, TimeSpan appointmentTime, TimeSpan appointmentEndTime, int scanMachineMasterId);
/// <summary>
/// Bulk reschedule the scan appointmenta.
/// </summary>
/// <param name="model">The RescheduleScanAppointmentRequest model.</param>
/// <returns></returns>
Task<int> BulkRescheduleAsync(RescheduleScanAppointmentRequest model);
/// <summary>
/// update the appointment.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> UpdateDetailsAsync(InsertBookScanAppointment model);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="BookScanAppointmentId">
/// The filter model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<RescheduleScanAppointmentDetails> FetchScanAppointmentDetails(int BookScanAppointmentId);
/// <summary>
/// The update async.
/// </summary>
/// /// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> CancelAsync(InsertBookScanAppointment model);
/// <summary>
/// The cancel async.
/// </summary>
/// <param name="appointmentIds">The scan appointmentIds.</param>
/// <param name="reason">The cancel reason.</param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> CancelAllAsync(string appointmentIds, string reason);
/// <summary>
/// fetches event the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<FetchBookScanAppointment>> FetchFilterEvent(FilterModel model);
/// <summary>
/// fetches event the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<FetchBookScanAppointment>> FetchFilterEventPatients(FilterModel model);
/// <summary>
/// fetches event the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<FetchBookScanAppointment>> FetchScanReport(FetchBookScanAppointment model);
/// <summary>
/// fetches Patient Future Appointment asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<FetchPatientFutureAppointment>> FetchPatientFutureAppointments(FetchPatientFutureAppointment model);
/// <summary>
/// fetches scan scroll reports.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<FetchBookScanAppointment>> FetchScanScroll(FetchBookScanAppointment model);
/// <summary>
/// fetches pndt reports.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<FetchBookScanAppointment>> FetchPndtReportAsync(FetchBookScanAppointment model);
/// <summary>
/// fetches event the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<FetchBookScanAppointment>> FetchScanOutPatients(FetchBookScanAppointment model);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<int>> AddScanDocumentAsync(IEnumerable<ScanDocumentModel> model);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="BookScanAppointmentId">
/// The filter model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<ScanDocumentModel>> FetchScanDocumentAsync(int BookScanAppointmentId);
Task<IEnumerable<ScanDocumentModel>> FetchPacsImagesAsync(int patientId);
}
}
using Hims.Domain.Entities;
using Hims.Shared.UserModels;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Hims.Domain.Services
{
public interface ICallHistoryDataService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<Call_HistoryModel>> FetchAsync(Call_HistoryModel model);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> AddAsync(CallHistory model);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> UpdateAsync(CallHistory model);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="bedId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(int problemId);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="bedId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<Call_HistoryModel>> FindByMobileNum(Call_HistoryModel model);
}
}
using Hims.Shared.EntityModels;
using Hims.Shared.UserModels;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Hims.Domain.Services
{
/// <summary>
///
/// </summary>
public interface ICaseTypeService
{
// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> InsertAsync(CaseTypeModel model);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<IEnumerable<CaseTypeModel>> FetchAllAsync(CaseTypeModel model);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> UpdateAsync(CaseTypeModel model);
/// <summary>
/// Activates the or deactivate case type.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task<int> ActivateOrDeactivateTest(CaseTypeModel model);
}
}
This diff is collapsed.
namespace Hims.Domain.Services
{
using System.Collections.Generic;
using System.Threading.Tasks;
using Shared.EntityModels;
using Shared.UserModels.Filters;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public interface IChargeGroupService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<ChargeGroupModel>> FetchAsync(ChargeGroupFilterModel model);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> AddAsync(ChargeGroupModel model);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> UpdateAsync(ChargeGroupModel model);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="bedId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<int> DeleteAsync(int chargeGroupId);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task<IEnumerable<ChargeGroupModel>> FetchChargeGroupAsync(ChargeGroupFilterModel model);
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
using Hims.Shared.EntityModels;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Hims.Domain.Services
{
public interface IDietItemsService
{
Task<IEnumerable<DietItemsModel>> FetchItemsAsync(DietItemsModel model);
Task<IEnumerable<DietItemsModel>> FetchMeasureAsync(DietItemsModel model);
Task<int> InsertItemsAsync(DietItemsModel model);
Task<int> UpdateAsync(DietItemsModel model);
Task<int> ModifyStatusAsync(DietItemsModel model);
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment