Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Adel-Atzouza committed Jan 21, 2025
1 parent 262ac1f commit e081eed
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CargoHub/Models/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace CargoHub.Models
{
public class Client : BaseModel
{
<<<<<<< Updated upstream

Check failure on line 7 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 7 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 7 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered
[JsonPropertyName("name")]
public required string? Name { get; set; }
[JsonPropertyName("address")]
Expand All @@ -19,6 +20,14 @@ public class Client : BaseModel
public required string? Province { get; set; }
[JsonPropertyName("country")]

=======

Check failure on line 23 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 23 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 23 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered
public required string? Name { get; set; }
public required string? Address { get; set; }
public required string? City { get; set; }
[JsonPropertyName("zip_code")]
public required string? ZipCode { get; set; }
public required string? Province { get; set; }
>>>>>>> Stashed changes

Check failure on line 30 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 30 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 30 in CargoHub/Models/Client.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered
public required string? Country { get; set; }
[JsonPropertyName("contact_name")]
public required string? ContactName { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions CargoHub/Models/Inventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ public class Inventory : BaseModel

[JsonPropertyName("item_id")]
public required string? ItemId { get; set; }
<<<<<<< Updated upstream

Check failure on line 14 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 14 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 14 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered
[JsonPropertyName("description")]

=======

Check failure on line 17 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 17 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 17 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered

>>>>>>> Stashed changes

Check failure on line 19 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 19 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 19 in CargoHub/Models/Inventory.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered
public required string? Description { get; set; }

[JsonPropertyName("item_reference")]
Expand Down
18 changes: 11 additions & 7 deletions CargoHub/Models/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ public class Item : BaseModel, IContainsClassification
[Key]
[JsonPropertyName("uid")]

<<<<<<< Updated upstream
public string? Uid { get; set; } = string.Empty;
=======
public string? Uid { get; set; }
>>>>>>> Stashed changes
[JsonPropertyName("code")]

public required string? Code { get; set; }
Expand All @@ -34,25 +38,25 @@ public class Item : BaseModel, IContainsClassification
public required string? CommodityCode { get; set; }

[JsonPropertyName("item_line")]
public required int ItemLine { get; set; }
public required int? ItemLine { get; set; }

[JsonPropertyName("item_group")]
public required int ItemGroup { get; set; }
public required int? ItemGroup { get; set; }

[JsonPropertyName("item_type")]
public required int ItemType { get; set; }
public required int? ItemType { get; set; }

[JsonPropertyName("unit_purchase_quantity")]
public required int UnitPurchaseQuantity { get; set; }
public required int? UnitPurchaseQuantity { get; set; }

[JsonPropertyName("unit_order_quantity")]
public required int UnitOrderQuantity { get; set; }
public required int? UnitOrderQuantity { get; set; }

[JsonPropertyName("pack_order_quantity")]
public required int PackOrderQuantity { get; set; }
public required int? PackOrderQuantity { get; set; }

[JsonPropertyName("supplier_id")]
public required int SupplierId { get; set; }
public required int? SupplierId { get; set; }

[JsonPropertyName("supplier_code")]
public required string? SupplierCode { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions CargoHub/Models/ItemGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ namespace CargoHub.Models
{
public class ItemGroup : BaseModel
{
<<<<<<< Updated upstream
[JsonPropertyName("name")]
public required string? Name {get;set;}
[JsonPropertyName("description")]

=======
public required string? Name {get;set;}
>>>>>>> Stashed changes
public required string? Description {get;set;}
}
}
4 changes: 4 additions & 0 deletions CargoHub/Models/ItemLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ namespace CargoHub.Models
{
public class ItemLine : BaseModel
{
<<<<<<< Updated upstream
[JsonPropertyName("name")]

public required string? Name {get;set;}
[JsonPropertyName("description")]

=======
public required string? Name {get;set;}
>>>>>>> Stashed changes
public required string? Description {get;set;}
}
}
4 changes: 4 additions & 0 deletions CargoHub/Models/ItemType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ namespace CargoHub.Models

public class ItemType : BaseModel
{
<<<<<<< Updated upstream
[JsonPropertyName("name")]

public required string? Name {get;set;}
[JsonPropertyName("description")]

=======
public required string? Name {get;set;}
>>>>>>> Stashed changes
public required string? Description {get;set;}
}
}
Expand Down
3 changes: 3 additions & 0 deletions CargoHub/Models/Location.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ public class Location : BaseModel, IContainsClassification
public string? Code { get; set; } // Nullable based on provided JSON
[JsonIgnore]
public ICollection<Inventory> Inventories { get; } = [];
<<<<<<< Updated upstream

Check failure on line 20 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 20 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 20 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered
[JsonPropertyName("name")]

=======

Check failure on line 23 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 23 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 23 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered
>>>>>>> Stashed changes

Check failure on line 24 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Merge conflict marker encountered

Check failure on line 24 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered

Check failure on line 24 in CargoHub/Models/Location.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Merge conflict marker encountered
public required string? Name { get; set; }
[JsonIgnore]
public List<Classification> Classifications { get; set; } = [];
Expand Down
7 changes: 7 additions & 0 deletions CargoHub/Rest/Migrate.rest
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<<<<<<< Updated upstream
@baseUrl = http://localhost:3000/api/v2/DataTransfer

POST {{baseUrl}}?FolderName=data
=======
@baseUrl = http://localhost:3000/api/v2/Migrations
POST {{baseUrl}}?FolderName=data
apikey: 4125a7b2-7ef8-4c4f-9ff9-3386c0dbcb5c

>>>>>>> Stashed changes

0 comments on commit e081eed

Please sign in to comment.