|
1 | | -#nullable enable |
2 | | -using System.Text.Json.Serialization; |
3 | | -using System.ComponentModel; |
4 | | - |
5 | | -namespace Defra.PhaImportNotifications.Contracts; |
6 | | -public partial record CommodityComplements |
7 | | -{ |
8 | | - [JsonPropertyName("uniqueComplementId")] |
9 | | - [Description("UUID used to match commodityComplement to its complementParameter set. CHEDPP only")] |
10 | | - public string? UniqueComplementId { get; init; } |
11 | | - |
12 | | - [JsonPropertyName("commodityDescription")] |
13 | | - [Description("Description of the commodity")] |
14 | | - public string? CommodityDescription { get; init; } |
15 | | - |
16 | | - [JsonPropertyName("commodityId")] |
17 | | - [Description("The unique commodity ID")] |
18 | | - public string? CommodityId { get; init; } |
19 | | - |
20 | | - [JsonPropertyName("complementId")] |
21 | | - [Description("Identifier of complement chosen from speciesFamily,speciesClass and speciesType'. This is also used to link to the complementParameterSet")] |
22 | | - public int? ComplementId { get; init; } |
23 | | - |
24 | | - [JsonPropertyName("complementName")] |
25 | | - [Description("Represents the lowest granularity - either type, class, family or species name - for the commodity selected. This is also used to drive behaviour for EU Import journeys")] |
26 | | - public string? ComplementName { get; init; } |
27 | | - |
28 | | - [JsonPropertyName("eppoCode")] |
29 | | - [Description("EPPO Code related to plant commodities and wood packaging")] |
30 | | - public string? EppoCode { get; init; } |
31 | | - |
32 | | - [JsonPropertyName("isWoodPackaging")] |
33 | | - [Description("(Deprecated in IMTA-11832) Is this commodity wood packaging?")] |
34 | | - public bool? IsWoodPackaging { get; init; } |
35 | | - |
36 | | - [JsonPropertyName("speciesId")] |
37 | | - [Description("The species ID of the commodity that is imported. Not every commodity has a species ID. This is also used to link to the complementParameterSet. The species ID can change over time")] |
38 | | - public string? SpeciesId { get; init; } |
39 | | - |
40 | | - [JsonPropertyName("speciesName")] |
41 | | - [Description("Species name")] |
42 | | - public string? SpeciesName { get; init; } |
43 | | - |
44 | | - [JsonPropertyName("speciesNomination")] |
45 | | - [Description("Species nomination")] |
46 | | - public string? SpeciesNomination { get; init; } |
47 | | - |
48 | | - [JsonPropertyName("speciesTypeName")] |
49 | | - [Description("Species type name")] |
50 | | - public string? SpeciesTypeName { get; init; } |
51 | | - |
52 | | - [JsonPropertyName("speciesType")] |
53 | | - [Description("Species type identifier of commodity")] |
54 | | - public string? SpeciesType { get; init; } |
55 | | - |
56 | | - [JsonPropertyName("speciesClassName")] |
57 | | - [Description("Species class name")] |
58 | | - public string? SpeciesClassName { get; init; } |
59 | | - |
60 | | - [JsonPropertyName("speciesClass")] |
61 | | - [Description("Species class identifier of commodity")] |
62 | | - public string? SpeciesClass { get; init; } |
63 | | - |
64 | | - [JsonPropertyName("speciesFamilyName")] |
65 | | - [Description("Species family name of commodity")] |
66 | | - public string? SpeciesFamilyName { get; init; } |
67 | | - |
68 | | - [JsonPropertyName("speciesFamily")] |
69 | | - [Description("Species family identifier of commodity")] |
70 | | - public string? SpeciesFamily { get; init; } |
71 | | - |
72 | | - [JsonPropertyName("speciesCommonName")] |
73 | | - [Description("Species common name of commodity for IMP notification simple commodity selection")] |
74 | | - public string? SpeciesCommonName { get; init; } |
75 | | - |
76 | | - [JsonPropertyName("isCdsMatched")] |
77 | | - [Description("Has commodity been matched with corresponding CDS declaration")] |
78 | | - public bool? IsCdsMatched { get; init; } |
79 | | -} |
| 1 | +#nullable enable |
| 2 | +using System.Text.Json.Serialization; |
| 3 | +using System.ComponentModel; |
| 4 | + |
| 5 | +namespace Defra.PhaImportNotifications.Contracts; |
| 6 | +public partial record CommodityComplements |
| 7 | +{ |
| 8 | + [JsonPropertyName("uniqueComplementId")] |
| 9 | + [Description("UUID used to match commodityComplement to its complementParameter set. CHEDPP only")] |
| 10 | + public string? UniqueComplementId { get; init; } |
| 11 | + |
| 12 | + [JsonPropertyName("commodityDescription")] |
| 13 | + [Description("Description of the commodity")] |
| 14 | + public string? CommodityDescription { get; init; } |
| 15 | + |
| 16 | + [JsonPropertyName("commodityId")] |
| 17 | + [Description("The unique commodity ID")] |
| 18 | + public string? CommodityId { get; init; } |
| 19 | + |
| 20 | + [JsonPropertyName("complementId")] |
| 21 | + [Description("Identifier of complement chosen from speciesFamily,speciesClass and speciesType'. This is also used to link to the complementParameterSet")] |
| 22 | + public int? ComplementId { get; init; } |
| 23 | + |
| 24 | + [JsonPropertyName("complementName")] |
| 25 | + [Description("Represents the lowest granularity - either type, class, family or species name - for the commodity selected. This is also used to drive behaviour for EU Import journeys")] |
| 26 | + public string? ComplementName { get; init; } |
| 27 | + |
| 28 | + [JsonPropertyName("eppoCode")] |
| 29 | + [Description("EPPO Code related to plant commodities and wood packaging")] |
| 30 | + public string? EppoCode { get; init; } |
| 31 | + |
| 32 | + [JsonPropertyName("isWoodPackaging")] |
| 33 | + [Description("(Deprecated in IMTA-11832) Is this commodity wood packaging?")] |
| 34 | + public bool? IsWoodPackaging { get; init; } |
| 35 | + |
| 36 | + [JsonPropertyName("speciesId")] |
| 37 | + [Description("The species ID of the commodity that is imported. Not every commodity has a species ID. This is also used to link to the complementParameterSet. The species ID can change over time")] |
| 38 | + public string? SpeciesId { get; init; } |
| 39 | + |
| 40 | + [JsonPropertyName("speciesName")] |
| 41 | + [Description("Species name")] |
| 42 | + public string? SpeciesName { get; init; } |
| 43 | + |
| 44 | + [JsonPropertyName("speciesNomination")] |
| 45 | + [Description("Species nomination")] |
| 46 | + public string? SpeciesNomination { get; init; } |
| 47 | + |
| 48 | + [JsonPropertyName("speciesTypeName")] |
| 49 | + [Description("Species type name")] |
| 50 | + public string? SpeciesTypeName { get; init; } |
| 51 | + |
| 52 | + [JsonPropertyName("speciesType")] |
| 53 | + [Description("Species type identifier of commodity")] |
| 54 | + public string? SpeciesType { get; init; } |
| 55 | + |
| 56 | + [JsonPropertyName("speciesClassName")] |
| 57 | + [Description("Species class name")] |
| 58 | + public string? SpeciesClassName { get; init; } |
| 59 | + |
| 60 | + [JsonPropertyName("speciesClass")] |
| 61 | + [Description("Species class identifier of commodity")] |
| 62 | + public string? SpeciesClass { get; init; } |
| 63 | + |
| 64 | + [JsonPropertyName("speciesFamilyName")] |
| 65 | + [Description("Species family name of commodity")] |
| 66 | + public string? SpeciesFamilyName { get; init; } |
| 67 | + |
| 68 | + [JsonPropertyName("speciesFamily")] |
| 69 | + [Description("Species family identifier of commodity")] |
| 70 | + public string? SpeciesFamily { get; init; } |
| 71 | + |
| 72 | + [JsonPropertyName("speciesCommonName")] |
| 73 | + [Description("Species common name of commodity for IMP notification simple commodity selection")] |
| 74 | + public string? SpeciesCommonName { get; init; } |
| 75 | + |
| 76 | + [JsonPropertyName("isCdsMatched")] |
| 77 | + [Description("Has commodity been matched with corresponding CDS declaration")] |
| 78 | + public bool? IsCdsMatched { get; init; } |
| 79 | +} |
0 commit comments