datafoodconsortium-connector-v1 1.4.0.pre.beta6 → 1.4.0.pre.beta7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c825932e29316c327533ff160dec2c6fee5194e064585e50280db818d92948e9
|
|
4
|
+
data.tar.gz: ba00217ec2fe74134d2cb31df0ce137c12fdca8b283968dc87d2b9116377de25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aefc6a6023103776ea49abc458573e5c9a29624ef6d33b2801f230a0db32c383cb613c4ad4c7f44b3ce3ca0089e2f6ad844350ae9c952d3dff520c9fce468ee8
|
|
7
|
+
data.tar.gz: ebb946baa0a12ce70032bab966d82b4c11fbc2299b1ad6482df104649e09a9ea37c6ac33c4a4b5fe9e32ee02eab64c175b2652a88d6ce12bf7e558a744c03528
|
|
@@ -31,6 +31,7 @@ require "datafoodconsortium/connector_v1/agent"
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
+
|
|
34
35
|
require "virtual_assembly/semantizer"
|
|
35
36
|
|
|
36
37
|
class DataFoodConsortium::ConnectorV1::Enterprise < DataFoodConsortium::ConnectorV1::Agent
|
|
@@ -64,6 +65,9 @@ class DataFoodConsortium::ConnectorV1::Enterprise < DataFoodConsortium::Connecto
|
|
|
64
65
|
# @return [IPerson]
|
|
65
66
|
attr_accessor :mainContact
|
|
66
67
|
|
|
68
|
+
# @return [IAgent]
|
|
69
|
+
attr_accessor :agents
|
|
70
|
+
|
|
67
71
|
# @param semanticId [String]
|
|
68
72
|
# @param name [String]
|
|
69
73
|
# @param description [String]
|
|
@@ -74,13 +78,14 @@ class DataFoodConsortium::ConnectorV1::Enterprise < DataFoodConsortium::Connecto
|
|
|
74
78
|
# @param suppliedProducts [ISuppliedProduct]
|
|
75
79
|
# @param technicalProducts [ITechnicalProduct]
|
|
76
80
|
# @param mainContact [IPerson]
|
|
81
|
+
# @param agents [IAgent]
|
|
77
82
|
# @param localizations [IAddress]
|
|
78
83
|
# @param phoneNumbers [IPhoneNumber]
|
|
79
84
|
# @param emails [String]
|
|
80
85
|
# @param websites [String]
|
|
81
86
|
# @param socialMedias [ISocialMedia]
|
|
82
87
|
# @param logo [String]
|
|
83
|
-
def initialize(semanticId, name: nil, description: nil, vatNumber: nil, customerCategories: [], catalogs: [], catalogItems: [], suppliedProducts: [], technicalProducts: [], mainContact: nil, localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: nil)
|
|
88
|
+
def initialize(semanticId, name: nil, description: nil, vatNumber: nil, customerCategories: [], catalogs: [], catalogItems: [], suppliedProducts: [], technicalProducts: [], mainContact: nil, agents: [], localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: nil)
|
|
84
89
|
super(semanticId, localizations: localizations, phoneNumbers: phoneNumbers, emails: emails, websites: websites, socialMedias: socialMedias, logo: logo)
|
|
85
90
|
@name = name
|
|
86
91
|
@description = description
|
|
@@ -91,6 +96,7 @@ class DataFoodConsortium::ConnectorV1::Enterprise < DataFoodConsortium::Connecto
|
|
|
91
96
|
@suppliedProducts = suppliedProducts
|
|
92
97
|
@technicalProducts = technicalProducts
|
|
93
98
|
@mainContact = mainContact
|
|
99
|
+
@agents = agents
|
|
94
100
|
self.semanticType = "dfc-b:Enterprise"
|
|
95
101
|
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
96
102
|
registerSemanticProperty("dfc-b:hasDescription", &method("description")).valueSetter = method("description=")
|
|
@@ -101,6 +107,7 @@ class DataFoodConsortium::ConnectorV1::Enterprise < DataFoodConsortium::Connecto
|
|
|
101
107
|
registerSemanticProperty("dfc-b:supplies", &method("suppliedProducts")).valueSetter = method("suppliedProducts=")
|
|
102
108
|
registerSemanticProperty("dfc-b:proposes", &method("technicalProducts")).valueSetter = method("technicalProducts=")
|
|
103
109
|
registerSemanticProperty("dfc-b:hasMainContact", &method("mainContact")).valueSetter = method("mainContact=")
|
|
110
|
+
registerSemanticProperty("dfc-b:affiliates", &method("agents")).valueSetter = method("agents=")
|
|
104
111
|
end
|
|
105
112
|
|
|
106
113
|
|
|
@@ -49,7 +49,7 @@ class DataFoodConsortium::ConnectorV1::LocalizedProduct
|
|
|
49
49
|
# @return [Real]
|
|
50
50
|
attr_accessor :cost
|
|
51
51
|
|
|
52
|
-
# @return [
|
|
52
|
+
# @return [ITheoreticalStock]
|
|
53
53
|
attr_accessor :theoreticalStocks
|
|
54
54
|
|
|
55
55
|
# @return [ISuppliedProduct]
|
|
@@ -70,7 +70,7 @@ class DataFoodConsortium::ConnectorV1::LocalizedProduct
|
|
|
70
70
|
# @param images [String]
|
|
71
71
|
# @param quantity [IQuantity]
|
|
72
72
|
# @param cost [Real]
|
|
73
|
-
# @param theoreticalStocks [
|
|
73
|
+
# @param theoreticalStocks [ITheoreticalStock]
|
|
74
74
|
# @param suppliedProducts [ISuppliedProduct]
|
|
75
75
|
# @param physicalProducts [IPhysicalProduct]
|
|
76
76
|
# @param plannedLocalProductionFlows [IPlannedLocalProductionFlow]
|