-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
173 changed files
with
2,198 additions
and
2,184 deletions.
There are no files selected for viewing
Empty file.
11 changes: 11 additions & 0 deletions
11
HalceraAPI.Common/AppsettingsOptions/EmailSenderOptions.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace HalceraAPI.Common.AppsettingsOptions | ||
{ | ||
public class EmailSenderOptions | ||
{ | ||
public string? SendGridKey { get; set; } | ||
|
||
public string? SendGridUser { get; set; } | ||
|
||
public string? SendGridEmail { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace HalceraAPI.Common.Enums | ||
{ | ||
public enum AccountAction | ||
{ | ||
Lock, | ||
Unlock | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace HalceraAPI.Common.Enums | ||
{ | ||
public enum ComponentType | ||
{ | ||
materials, | ||
care, | ||
details, | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
HalceraAPI.Model/Enums/Currency.cs → HalceraAPI.Common/Enums/Currency.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace HalceraAPI.Models.Enums | ||
namespace HalceraAPI.Common.Enums | ||
{ | ||
public enum Currency | ||
{ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace HalceraAPI.Common.Enums | ||
{ | ||
public enum MediaType : int | ||
{ | ||
image = 1, | ||
svg = 2, | ||
video = 3, | ||
audio = 4, | ||
document = 5, | ||
model = 6 | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
HalceraAPI.Model/Enums/OrderStatus.cs → HalceraAPI.Common/Enums/OrderStatus.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace HalceraAPI.Models.Enums | ||
namespace HalceraAPI.Common.Enums | ||
{ | ||
public enum OrderStatus : int | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
HalceraAPI.Model/Enums/PaymentProvider.cs → HalceraAPI.Common/Enums/PaymentProvider.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace HalceraAPI.Models.Enums | ||
namespace HalceraAPI.Common.Enums | ||
{ | ||
public enum PaymentProvider | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
HalceraAPI.Model/Enums/PaymentStatus.cs → HalceraAPI.Common/Enums/PaymentStatus.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace HalceraAPI.Models.Enums | ||
namespace HalceraAPI.Common.Enums | ||
{ | ||
public enum PaymentStatus : int | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
HalceraAPI.Model/Enums/ShippingStatus.cs → HalceraAPI.Common/Enums/ShippingStatus.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace HalceraAPI.Models.Enums | ||
namespace HalceraAPI.Common.Enums | ||
{ | ||
/// <summary> | ||
/// Order Shipping Status | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using HalceraAPI.Models.Enums; | ||
using HalceraAPI.Common.Enums; | ||
|
||
namespace HalceraAPI.Common.Utilities | ||
{ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace HalceraAPI.Common.Utilities | ||
{ | ||
public static class EmailConstants | ||
{ | ||
public const string ForgotPasswordSubject = "Request to change password"; | ||
|
||
public static string ForgotPasswordPlainTextMessage(string userPasswordResetToken) | ||
{ | ||
return $"Request to change password {userPasswordResetToken}"; | ||
} | ||
public const string ForgotPasswordHtmlMessage = "Request to change password"; | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using HalceraAPI.Common.Enums; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace HalceraAPI.Models | ||
{ | ||
public class ComponentData | ||
{ | ||
[Key] | ||
public int Id { get; set; } | ||
|
||
public ComponentType? ItemDetails { get; set; } | ||
|
||
[Required] | ||
[StringLength(20, ErrorMessage = "Data field has a maximum length of '20'")] | ||
public string? Data { get; set; } | ||
|
||
public int? ProductId { get; set; } | ||
[ForeignKey(nameof(ProductId))] | ||
public Product? Product { get; set; } | ||
} | ||
} |
Oops, something went wrong.