datafoodconsortium-connector 2.0.0.pre.beta2 → 2.0.0.pre.beta3

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: 21f3f3988c0fdd080af8e8c9a0c0343912648cc2c0f3fab972e5d6da1ee6671c
4
- data.tar.gz: 919ae0069f01516cf456a82cf84ef9b6efe9d0dcdbca6feccaca26a249ce2c77
3
+ metadata.gz: 581bae0586ebf6cf9dcb504c10bfaa0fbd1155fa8bb1d1330aba42f8f91337b2
4
+ data.tar.gz: 223421816663630ea42b0a65f6ea57497fd610f1fafea13a851fb619238d35e3
5
5
  SHA512:
6
- metadata.gz: 75ff122063e028c2be3caa9512fb7da0972ac12923ee53989f26239cd3a2e43ccd9f59c6a6a9b3b1af1ac1bea2ba0072c267002130fc58045693e0c5480e2070
7
- data.tar.gz: 709a67f6810fad8bf82e40297190ade26593bd58f1b45c57e52d9a3cb863738216acebbba192b7227b5e05f19261ff0137a8f7f4d37fdb310956b17125609dc1
6
+ metadata.gz: d5398d680c53a8ad2c62bd660e62c9f546fa7b0687db45da10d560cece279bfb02d15d518ef3c26c500c1bd3f2161aead2d715086a362616d62606a1d6ed6353
7
+ data.tar.gz: e638609b3097af42efc693f241712b91619152fa67ef59ce8863ec1085b54e847c97f4e3518a051d91be044b614584e64b2013080f0bfa0cf9730f227588e856
@@ -22,6 +22,7 @@
22
22
 
23
23
 
24
24
 
25
+
25
26
  require "virtual_assembly/semantizer"
26
27
 
27
28
  class DataFoodConsortium::Connector::Agent
@@ -24,6 +24,7 @@
24
24
 
25
25
 
26
26
 
27
+
27
28
  require "virtual_assembly/semantizer"
28
29
 
29
30
  class DataFoodConsortium::Connector::Order
@@ -58,6 +59,9 @@ class DataFoodConsortium::Connector::Order
58
59
  # @return [ISKOSConcept]
59
60
  attr_accessor :paymentStatus
60
61
 
62
+ # @return [IPaymentMethod]
63
+ attr_accessor :paymentMethod
64
+
61
65
  # @param semanticId [String]
62
66
  # @param number [String]
63
67
  # @param date [String]
@@ -68,7 +72,8 @@ class DataFoodConsortium::Connector::Order
68
72
  # @param fulfilmentStatus [ISKOSConcept]
69
73
  # @param orderStatus [ISKOSConcept]
70
74
  # @param paymentStatus [ISKOSConcept]
71
- def initialize(semanticId, number: nil, date: nil, saleSession: nil, lines: [], client: nil, soldBy: nil, fulfilmentStatus: nil, orderStatus: nil, paymentStatus: nil)
75
+ # @param paymentMethod [IPaymentMethod]
76
+ def initialize(semanticId, number: nil, date: nil, saleSession: nil, lines: [], client: nil, soldBy: nil, fulfilmentStatus: nil, orderStatus: nil, paymentStatus: nil, paymentMethod: nil)
72
77
  super(semanticId)
73
78
  @number = number
74
79
  @date = date
@@ -79,6 +84,7 @@ class DataFoodConsortium::Connector::Order
79
84
  @fulfilmentStatus = fulfilmentStatus
80
85
  @orderStatus = orderStatus
81
86
  @paymentStatus = paymentStatus
87
+ @paymentMethod = paymentMethod
82
88
  self.semanticType = "dfc-b:Order"
83
89
  registerSemanticProperty("dfc-b:orderNumber", &method("number")).valueSetter = method("number=")
84
90
  registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
@@ -89,6 +95,7 @@ class DataFoodConsortium::Connector::Order
89
95
  registerSemanticProperty("dfc-b:hasFulfilmentStatus", &method("fulfilmentStatus")).valueSetter = method("fulfilmentStatus=")
90
96
  registerSemanticProperty("dfc-b:hasOrderStatus", &method("orderStatus")).valueSetter = method("orderStatus=")
91
97
  registerSemanticProperty("dfc-b:hasPaymentStatus", &method("paymentStatus")).valueSetter = method("paymentStatus=")
98
+ registerSemanticProperty("dfc-b:hasPaymentMethod", &method("paymentMethod")).valueSetter = method("paymentMethod=")
92
99
  end
93
100
 
94
101
 
@@ -46,10 +46,10 @@ class DataFoodConsortium::Connector::PhysicalPlace
46
46
  attr_accessor :openingHours
47
47
 
48
48
  # @return [IAddress]
49
- attr_accessor :addresses
49
+ attr_accessor :address
50
50
 
51
51
  # @return [IPerson]
52
- attr_accessor :mainContact
52
+ attr_accessor :mainContacts
53
53
 
54
54
  # @return [ITheoreticalStock]
55
55
  attr_accessor :theoreticalStocks
@@ -66,20 +66,20 @@ class DataFoodConsortium::Connector::PhysicalPlace
66
66
  # @param hostedSaleSessions [ISaleSession]
67
67
  # @param phoneNumbers [IPhoneNumber]
68
68
  # @param openingHours [IOpeningHoursSpecification]
69
- # @param addresses [IAddress]
70
- # @param mainContact [IPerson]
69
+ # @param address [IAddress]
70
+ # @param mainContacts [IPerson]
71
71
  # @param theoreticalStocks [ITheoreticalStock]
72
72
  # @param realStocks [IRealStock]
73
73
  # @param features [IGeoJsonFeature]
74
- def initialize(semanticId, name: nil, description: nil, hostedSaleSessions: [], phoneNumbers: [], openingHours: [], addresses: [], mainContact: nil, theoreticalStocks: [], realStocks: [], features: [])
74
+ def initialize(semanticId, name: nil, description: nil, hostedSaleSessions: [], phoneNumbers: [], openingHours: [], address: nil, mainContacts: [], theoreticalStocks: [], realStocks: [], features: [])
75
75
  super(semanticId)
76
76
  @name = name
77
77
  @description = description
78
78
  @hostedSaleSessions = hostedSaleSessions
79
79
  @phoneNumbers = phoneNumbers
80
80
  @openingHours = openingHours
81
- @addresses = addresses
82
- @mainContact = mainContact
81
+ @address = address
82
+ @mainContacts = mainContacts
83
83
  @theoreticalStocks = theoreticalStocks
84
84
  @realStocks = realStocks
85
85
  @features = features
@@ -89,8 +89,8 @@ class DataFoodConsortium::Connector::PhysicalPlace
89
89
  registerSemanticProperty("dfc-b:hosts", &method("hostedSaleSessions")).valueSetter = method("hostedSaleSessions=")
90
90
  registerSemanticProperty("dfc-b:hasPhoneNumber", &method("phoneNumbers")).valueSetter = method("phoneNumbers=")
91
91
  registerSemanticProperty("dfc-b:hasOpeningHours", &method("openingHours")).valueSetter = method("openingHours=")
92
- registerSemanticProperty("dfc-b:hasAddress", &method("addresses")).valueSetter = method("addresses=")
93
- registerSemanticProperty("dfc-b:hasMainContact", &method("mainContact")).valueSetter = method("mainContact=")
92
+ registerSemanticProperty("dfc-b:hasAddress", &method("address")).valueSetter = method("address=")
93
+ registerSemanticProperty("dfc-b:hasMainContact", &method("mainContacts")).valueSetter = method("mainContacts=")
94
94
  registerSemanticProperty("dfc-b:localizes", &method("theoreticalStocks")).valueSetter = method("theoreticalStocks=")
95
95
  registerSemanticProperty("dfc-b:stores", &method("realStocks")).valueSetter = method("realStocks=")
96
96
  registerSemanticProperty("dfc-b:hasGeoJsonFeature", &method("features")).valueSetter = method("features=")
@@ -30,6 +30,7 @@ require "datafoodconsortium/connector/defined_product"
30
30
 
31
31
 
32
32
 
33
+
33
34
  require "virtual_assembly/semantizer"
34
35
 
35
36
  class DataFoodConsortium::Connector::SuppliedProduct < DataFoodConsortium::Connector::DefinedProduct
@@ -39,12 +40,16 @@ class DataFoodConsortium::Connector::SuppliedProduct < DataFoodConsortium::Conne
39
40
  # @return [Real]
40
41
  attr_accessor :totalTheoreticalStock
41
42
 
43
+ # @return [ILocalizedProduct]
44
+ attr_accessor :localizedProducts
45
+
42
46
 
43
47
 
44
48
 
45
49
 
46
50
  # @param semanticId [String]
47
51
  # @param totalTheoreticalStock [Real]
52
+ # @param localizedProducts [ILocalizedProduct]
48
53
  # @param name [String]
49
54
  # @param description [String]
50
55
  # @param productType [ISKOSConcept]
@@ -64,11 +69,13 @@ class DataFoodConsortium::Connector::SuppliedProduct < DataFoodConsortium::Conne
64
69
  # @param images [String]
65
70
  # @param variants [IDefinedProduct]
66
71
  # @param referenceProductOptions [IProductOption]
67
- def initialize(semanticId, totalTheoreticalStock: nil, name: nil, description: nil, productType: nil, quantity: nil, alcoholPercentage: nil, lifetime: nil, claims: [], usageOrStorageConditions: nil, allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [], variants: [], referenceProductOptions: [])
72
+ def initialize(semanticId, totalTheoreticalStock: nil, localizedProducts: [], name: nil, description: nil, productType: nil, quantity: nil, alcoholPercentage: nil, lifetime: nil, claims: [], usageOrStorageConditions: nil, allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [], variants: [], referenceProductOptions: [])
68
73
  super(semanticId, name: name, description: description, productType: productType, quantity: quantity, alcoholPercentage: alcoholPercentage, lifetime: lifetime, claims: claims, usageOrStorageConditions: usageOrStorageConditions, allergenCharacteristics: allergenCharacteristics, nutrientCharacteristics: nutrientCharacteristics, physicalCharacteristics: physicalCharacteristics, geographicalOrigin: geographicalOrigin, catalogItems: catalogItems, certifications: certifications, natureOrigin: natureOrigin, partOrigin: partOrigin, images: images, variants: variants, referenceProductOptions: referenceProductOptions)
69
74
  @totalTheoreticalStock = totalTheoreticalStock
75
+ @localizedProducts = localizedProducts
70
76
  self.semanticType = "dfc-b:SuppliedProduct"
71
77
  registerSemanticProperty("dfc-b:totalTheoreticalStock", &method("totalTheoreticalStock")).valueSetter = method("totalTheoreticalStock=")
78
+ registerSemanticProperty("dfc-b:referenceOf", &method("localizedProducts")).valueSetter = method("localizedProducts=")
72
79
  end
73
80
 
74
81
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datafoodconsortium-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta2
4
+ version: 2.0.0.pre.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Lecoq