datafoodconsortium-connector 2.0.0.pre.beta6 → 2.0.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: 6f5b061c92d1587c70f6e3dc657a1537d2bc96adfb4a8d92db56a5c07d1de812
|
|
4
|
+
data.tar.gz: '0728e0d48e9a2b891328e7407423874c59b2435b95abc163fafe44a78657036b'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c4c69ff07e1d4e0d084c4f7d41b5371c41a6486284eb4cae1c409fef7b5224523f3802fa42ff89d578f2a0dbc8b385e087ecafc163ad81c9c1b23d4bdb19344
|
|
7
|
+
data.tar.gz: 230b2682c15c487c17929b0efc5432df25bbd7197d3210d0196b74d03c3473d8dba5fa0414e24cf504142ae7ceee1edbbbb4a04da8761c56af9faa5e1d1aaf56
|
|
@@ -49,7 +49,7 @@ class DataFoodConsortium::Connector::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::Connector::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]
|
|
@@ -33,6 +33,7 @@ require "datafoodconsortium/connector/agent"
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
require "virtual_assembly/semantizer"
|
|
37
38
|
|
|
38
39
|
class DataFoodConsortium::Connector::Organization < DataFoodConsortium::Connector::Agent
|
|
@@ -72,6 +73,9 @@ class DataFoodConsortium::Connector::Organization < DataFoodConsortium::Connecto
|
|
|
72
73
|
# @return [ICertification]
|
|
73
74
|
attr_accessor :certifications
|
|
74
75
|
|
|
76
|
+
# @return [IPerson]
|
|
77
|
+
attr_accessor :affiliates
|
|
78
|
+
|
|
75
79
|
# @param semanticId [String]
|
|
76
80
|
# @param name [String]
|
|
77
81
|
# @param description [String]
|
|
@@ -84,6 +88,7 @@ class DataFoodConsortium::Connector::Organization < DataFoodConsortium::Connecto
|
|
|
84
88
|
# @param mainContact [IPerson]
|
|
85
89
|
# @param templateSaleSessions [ITemplateSaleSession]
|
|
86
90
|
# @param certifications [ICertification]
|
|
91
|
+
# @param affiliates [IPerson]
|
|
87
92
|
# @param localizations [IAddress]
|
|
88
93
|
# @param phoneNumbers [IPhoneNumber]
|
|
89
94
|
# @param emails [String]
|
|
@@ -91,7 +96,7 @@ class DataFoodConsortium::Connector::Organization < DataFoodConsortium::Connecto
|
|
|
91
96
|
# @param socialMedias [ISocialMedia]
|
|
92
97
|
# @param logo [String]
|
|
93
98
|
# @param customerCategoriesMembership [ICustomerCategory]
|
|
94
|
-
def initialize(semanticId, name: nil, description: nil, vatNumber: nil, customerCategories: [], catalogs: [], catalogItems: [], suppliedProducts: [], technicalProducts: [], mainContact: nil, templateSaleSessions: [], certifications: [], localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: nil, customerCategoriesMembership: [])
|
|
99
|
+
def initialize(semanticId, name: nil, description: nil, vatNumber: nil, customerCategories: [], catalogs: [], catalogItems: [], suppliedProducts: [], technicalProducts: [], mainContact: nil, templateSaleSessions: [], certifications: [], affiliates: [], localizations: [], phoneNumbers: [], emails: [], websites: [], socialMedias: [], logo: nil, customerCategoriesMembership: [])
|
|
95
100
|
super(semanticId, localizations: localizations, phoneNumbers: phoneNumbers, emails: emails, websites: websites, socialMedias: socialMedias, logo: logo, customerCategoriesMembership: customerCategoriesMembership)
|
|
96
101
|
@name = name
|
|
97
102
|
@description = description
|
|
@@ -104,6 +109,7 @@ class DataFoodConsortium::Connector::Organization < DataFoodConsortium::Connecto
|
|
|
104
109
|
@mainContact = mainContact
|
|
105
110
|
@templateSaleSessions = templateSaleSessions
|
|
106
111
|
@certifications = certifications
|
|
112
|
+
@affiliates = affiliates
|
|
107
113
|
self.semanticType = "dfc-b:Organization"
|
|
108
114
|
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
109
115
|
registerSemanticProperty("dfc-b:hasDescription", &method("description")).valueSetter = method("description=")
|
|
@@ -116,6 +122,7 @@ class DataFoodConsortium::Connector::Organization < DataFoodConsortium::Connecto
|
|
|
116
122
|
registerSemanticProperty("dfc-b:hasMainContact", &method("mainContact")).valueSetter = method("mainContact=")
|
|
117
123
|
registerSemanticProperty("dfc-b:hasTemplateSaleSession", &method("templateSaleSessions")).valueSetter = method("templateSaleSessions=")
|
|
118
124
|
registerSemanticProperty("dfc-b:isCertifiedBy", &method("certifications")).valueSetter = method("certifications=")
|
|
125
|
+
registerSemanticProperty("dfc-b:affiliates", &method("affiliates")).valueSetter = method("affiliates=")
|
|
119
126
|
end
|
|
120
127
|
|
|
121
128
|
|