lcdp-api 1.12.27__tar.gz

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.
Files changed (83) hide show
  1. lcdp_api-1.12.27/LICENSE.md +13 -0
  2. lcdp_api-1.12.27/MANIFEST.in +2 -0
  3. lcdp_api-1.12.27/PKG-INFO +14 -0
  4. lcdp_api-1.12.27/README.md +19 -0
  5. lcdp_api-1.12.27/event/configuration/Variable/Key.avsc +15 -0
  6. lcdp_api-1.12.27/event/configuration/Variable/Value.avsc +23 -0
  7. lcdp_api-1.12.27/event/favorite/FavoriteProduct/Key.avsc +15 -0
  8. lcdp_api-1.12.27/event/favorite/FavoriteProduct/Value.avsc +64 -0
  9. lcdp_api-1.12.27/event/laboratory/Laboratory/Key.avsc +15 -0
  10. lcdp_api-1.12.27/event/laboratory/Laboratory/Value.avsc +23 -0
  11. lcdp_api-1.12.27/event/product/Product/Key.avsc +15 -0
  12. lcdp_api-1.12.27/event/product/Product/Value.avsc +137 -0
  13. lcdp_api-1.12.27/event/product/SecondaryType/Key.avsc +15 -0
  14. lcdp_api-1.12.27/event/product/SecondaryType/Value.avsc +25 -0
  15. lcdp_api-1.12.27/event/product/Type/Key.avsc +15 -0
  16. lcdp_api-1.12.27/event/product/Type/Value.avsc +25 -0
  17. lcdp_api-1.12.27/event/product/Vat/Key.avsc +15 -0
  18. lcdp_api-1.12.27/event/product/Vat/Value.avsc +34 -0
  19. lcdp_api-1.12.27/event/sale-offer/AnyIdentifiedDistributionMode/Value.avsc +47 -0
  20. lcdp_api-1.12.27/event/sale-offer/IdentifiedDistributionRange/Value.avsc +39 -0
  21. lcdp_api-1.12.27/event/sale-offer/SaleOffer/Key.avsc +15 -0
  22. lcdp_api-1.12.27/event/sale-offer/SaleOffer/Value.avsc +100 -0
  23. lcdp_api-1.12.27/event/statistic/SaleOfferStatistic/Key.avsc +15 -0
  24. lcdp_api-1.12.27/event/statistic/SaleOfferStatistic/Value.avsc +70 -0
  25. lcdp_api-1.12.27/event/statistic/UserStatistic/Key.avsc +15 -0
  26. lcdp_api-1.12.27/event/statistic/UserStatistic/Value.avsc +129 -0
  27. lcdp_api-1.12.27/event/storage/Stock/Key.avsc +23 -0
  28. lcdp_api-1.12.27/event/storage/Stock/Value.avsc +113 -0
  29. lcdp_api-1.12.27/event/user/Transport/Value.avsc +21 -0
  30. lcdp_api-1.12.27/event/user/User/Key.avsc +15 -0
  31. lcdp_api-1.12.27/event/user/User/Value.avsc +86 -0
  32. lcdp_api-1.12.27/ghost_package/__init__.py +0 -0
  33. lcdp_api-1.12.27/ghost_package/event/__init__.py +0 -0
  34. lcdp_api-1.12.27/ghost_package/rest/__init__.py +0 -0
  35. lcdp_api-1.12.27/lcdp_api.egg-info/PKG-INFO +14 -0
  36. lcdp_api-1.12.27/lcdp_api.egg-info/SOURCES.txt +82 -0
  37. lcdp_api-1.12.27/lcdp_api.egg-info/dependency_links.txt +1 -0
  38. lcdp_api-1.12.27/lcdp_api.egg-info/top_level.txt +1 -0
  39. lcdp_api-1.12.27/rest/auth.yaml +625 -0
  40. lcdp_api-1.12.27/rest/banking-operation.yaml +644 -0
  41. lcdp_api-1.12.27/rest/catalog.yaml +426 -0
  42. lcdp_api-1.12.27/rest/challenge.yaml +79 -0
  43. lcdp_api-1.12.27/rest/chargebee-hook.yaml +81 -0
  44. lcdp_api-1.12.27/rest/common.yaml +313 -0
  45. lcdp_api-1.12.27/rest/configuration.yaml +334 -0
  46. lcdp_api-1.12.27/rest/content.yaml +129 -0
  47. lcdp_api-1.12.27/rest/factory.yaml +626 -0
  48. lcdp_api-1.12.27/rest/favorite.yaml +299 -0
  49. lcdp_api-1.12.27/rest/geo.yaml +80 -0
  50. lcdp_api-1.12.27/rest/inventory.yaml +1671 -0
  51. lcdp_api-1.12.27/rest/invoice.yaml +828 -0
  52. lcdp_api-1.12.27/rest/laboratory-store-log.yaml +157 -0
  53. lcdp_api-1.12.27/rest/laboratory-store.yaml +499 -0
  54. lcdp_api-1.12.27/rest/laboratory.yaml +197 -0
  55. lcdp_api-1.12.27/rest/lexicon.yaml +319 -0
  56. lcdp_api-1.12.27/rest/litigation.yaml +89 -0
  57. lcdp_api-1.12.27/rest/magic-cart.yaml +228 -0
  58. lcdp_api-1.12.27/rest/mandate.yaml +203 -0
  59. lcdp_api-1.12.27/rest/mangopay-hook.yaml +59 -0
  60. lcdp_api-1.12.27/rest/message.yaml +424 -0
  61. lcdp_api-1.12.27/rest/notification.yaml +681 -0
  62. lcdp_api-1.12.27/rest/order-log.yaml +168 -0
  63. lcdp_api-1.12.27/rest/order.yaml +2452 -0
  64. lcdp_api-1.12.27/rest/outrage-message.yaml +283 -0
  65. lcdp_api-1.12.27/rest/product.yaml +1304 -0
  66. lcdp_api-1.12.27/rest/pub.yaml +733 -0
  67. lcdp_api-1.12.27/rest/recommendation.yaml +425 -0
  68. lcdp_api-1.12.27/rest/rfx.yaml +438 -0
  69. lcdp_api-1.12.27/rest/sale-offer-log.yaml +154 -0
  70. lcdp_api-1.12.27/rest/sale-offer.yaml +1169 -0
  71. lcdp_api-1.12.27/rest/servant.yaml +162 -0
  72. lcdp_api-1.12.27/rest/shipment.yaml +452 -0
  73. lcdp_api-1.12.27/rest/shopping-cart.yaml +619 -0
  74. lcdp_api-1.12.27/rest/smuggler.yaml +58 -0
  75. lcdp_api-1.12.27/rest/statistic.yaml +382 -0
  76. lcdp_api-1.12.27/rest/subscription.yaml +131 -0
  77. lcdp_api-1.12.27/rest/third-party.yaml +103 -0
  78. lcdp_api-1.12.27/rest/thread.yaml +306 -0
  79. lcdp_api-1.12.27/rest/ubo.yaml +248 -0
  80. lcdp_api-1.12.27/rest/user.yaml +2940 -0
  81. lcdp_api-1.12.27/rest/wish.yaml +604 -0
  82. lcdp_api-1.12.27/setup.cfg +7 -0
  83. lcdp_api-1.12.27/setup.py +50 -0
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2019 Le Comptoir Des Pharmarcies
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ graft event
2
+ graft rest
@@ -0,0 +1,14 @@
1
+ Metadata-Version: 2.1
2
+ Name: lcdp_api
3
+ Version: 1.12.27
4
+ Summary: Rest api specification for Le Comptoir Des Pharmacies
5
+ Home-page: https://bitbucket.org/lecomptoirdespharmacies/lcdp-api
6
+ Author: Le Comptoir Des Pharmacies
7
+ Author-email: g.thrasibule@lecomptoirdespharmacies.fr
8
+ License: Apache-2.0
9
+ Keywords: openapi,rest-api,rest,openapi3
10
+ Platform: UNKNOWN
11
+ License-File: LICENSE.md
12
+
13
+ Rest api specification for Le Comptoir Des Pharmacies
14
+
@@ -0,0 +1,19 @@
1
+ ### LCDP api
2
+
3
+ ## Présentation
4
+ Ce dépôt contient les définitions **open API 3.0** de l'API Rest LCDP
5
+
6
+ [Open API 3.0 Doc](https://swagger.io/specification/)
7
+
8
+ ## Docker
9
+
10
+ Un docker-compose permettant de lancer swagger-ui est en place dans le dossier
11
+ `swagger-ui/docker-compose.yml`
12
+
13
+ ## Exécuter les requêtes swagger en local
14
+
15
+ Si la stack LCDP tourne en local, le swagger-ui ne pourra pas effectuer de requête vers la stack local à cause des CORS.
16
+
17
+ Pour permettre au swagger-ui d'exécuter les requêtes, if faut l'ouvrir dans **un navigateur non sécurisé**.
18
+
19
+ Voir : [Documentation Utiliser swagger sans CORS](https://lecomptoirdespharmacies.atlassian.net/wiki/spaces/LCDP/pages/87261185/Utiliser+Swagger+UI+sans+CORS)
@@ -0,0 +1,15 @@
1
+ {
2
+ "namespace": "configuration",
3
+ "type": "record",
4
+ "name": "VariableKey",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "default": null
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "namespace": "configuration",
3
+ "type": "record",
4
+ "name": "VariableValue",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "default": null
13
+ },
14
+ {
15
+ "name": "value",
16
+ "type": [
17
+ "null",
18
+ "string"
19
+ ],
20
+ "default": null
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "namespace": "favorite",
3
+ "type": "record",
4
+ "name": "FavoriteProductKey",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "long"
11
+ ],
12
+ "default": null
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "namespace": "favorite",
3
+ "type": "record",
4
+ "name": "FavoriteProductValue",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "long"
11
+ ],
12
+ "default": null
13
+ },
14
+ {
15
+ "name": "createdAt",
16
+ "type": [
17
+ "null",
18
+ "string"
19
+ ],
20
+ "default": null
21
+ },
22
+ {
23
+ "name": "product",
24
+ "type": [
25
+ "null",
26
+ {
27
+ "name": "ProductLink",
28
+ "type": "record",
29
+ "fields": [
30
+ {
31
+ "name": "id",
32
+ "type": [
33
+ "null",
34
+ "long"
35
+ ],
36
+ "default": null
37
+ }
38
+ ]
39
+ }
40
+ ],
41
+ "default": null
42
+ },
43
+ {
44
+ "name": "owner",
45
+ "type": [
46
+ "null", {
47
+ "name": "UserLink",
48
+ "type" : "record",
49
+ "fields": [
50
+ {
51
+ "name": "id",
52
+ "type": [
53
+ "null",
54
+ "long"
55
+ ],
56
+ "default": null
57
+ }
58
+ ]
59
+ }
60
+ ],
61
+ "default": null
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "namespace": "laboratory",
3
+ "type": "record",
4
+ "name": "LaboratoryKey",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "long"
11
+ ],
12
+ "default": null
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "namespace": "laboratory",
3
+ "type": "record",
4
+ "name": "LaboratoryValue",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "long"
11
+ ],
12
+ "default": null
13
+ },
14
+ {
15
+ "name": "name",
16
+ "type": [
17
+ "null",
18
+ "string"
19
+ ],
20
+ "default": null
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "namespace": "product",
3
+ "type": "record",
4
+ "name": "ProductKey",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "long"
11
+ ],
12
+ "default": null
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,137 @@
1
+ {
2
+ "namespace": "product",
3
+ "type": "record",
4
+ "name": "ProductValue",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "long"
11
+ ],
12
+ "default": null
13
+ },
14
+ {
15
+ "name": "name",
16
+ "type": [
17
+ "null",
18
+ "string"
19
+ ],
20
+ "default": null
21
+ },
22
+ {
23
+ "name": "status",
24
+ "type": [
25
+ "null",
26
+ "string"
27
+ ],
28
+ "default": null
29
+ },
30
+ {
31
+ "name": "barcodes",
32
+ "type": [
33
+ "null",
34
+ {
35
+ "name": "Barcodes",
36
+ "type": "record",
37
+ "fields": [
38
+ {
39
+ "name": "cip",
40
+ "type": [
41
+ "null",
42
+ "string"
43
+ ],
44
+ "doc": "",
45
+ "default": null
46
+ },
47
+ {
48
+ "name": "cip13",
49
+ "type": [
50
+ "null",
51
+ "string"
52
+ ],
53
+ "doc": "",
54
+ "default": null
55
+ },
56
+ {
57
+ "name": "eans",
58
+ "type": [
59
+ "null",
60
+ {
61
+ "type": "array",
62
+ "items": "string"
63
+ }
64
+ ],
65
+ "doc": "",
66
+ "default": null
67
+ },
68
+ {
69
+ "name": "principal",
70
+ "type": [
71
+ "null",
72
+ "string"
73
+ ],
74
+ "doc": "The principal is the referent barcode (for display, invoices, ...) ",
75
+ "default": null
76
+ }
77
+ ]
78
+ }
79
+ ],
80
+ "default": null
81
+ },
82
+ {
83
+ "name": "laboratory",
84
+ "type": [
85
+ "null",
86
+ {
87
+ "name": "LaboratoryLink",
88
+ "type": "record",
89
+ "fields": [
90
+ {
91
+ "name": "id",
92
+ "type": [
93
+ "null",
94
+ "long"
95
+ ],
96
+ "default": null
97
+ }
98
+ ]
99
+ }
100
+ ],
101
+ "default": null
102
+ },
103
+ {
104
+ "name": "unitWeight",
105
+ "type": [
106
+ "null",
107
+ "double"
108
+ ],
109
+ "default": null
110
+ },
111
+ {
112
+ "name": "storageType",
113
+ "type": [
114
+ "null",
115
+ "string"
116
+ ],
117
+ "default": null
118
+ },
119
+ {
120
+ "name": "type",
121
+ "type": [
122
+ "null",
123
+ "TypeValue"
124
+ ],
125
+ "doc": "",
126
+ "default": null
127
+ },
128
+ {
129
+ "name": "restricted",
130
+ "type": [
131
+ "null",
132
+ "boolean"
133
+ ],
134
+ "default": null
135
+ }
136
+ ]
137
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "namespace": "product",
3
+ "type": "record",
4
+ "name": "SecondaryTypeKey",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "default": null
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "namespace": "product",
3
+ "type": "record",
4
+ "name": "SecondaryTypeValue",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "doc": "Unique identifier of the secondary type",
13
+ "default": null
14
+ },
15
+ {
16
+ "name": "name",
17
+ "type": [
18
+ "null",
19
+ "string"
20
+ ],
21
+ "doc": "Secondary type of a product",
22
+ "default": null
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "namespace": "product",
3
+ "type": "record",
4
+ "name": "TypeKey",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "default": null
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "namespace": "product",
3
+ "type": "record",
4
+ "name": "TypeValue",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "doc": "Unique identifier of the type",
13
+ "default": null
14
+ },
15
+ {
16
+ "name": "name",
17
+ "type": [
18
+ "null",
19
+ "string"
20
+ ],
21
+ "doc": "Principal type of a product",
22
+ "default": null
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "namespace": "product",
3
+ "type": "record",
4
+ "name": "VatKey",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "default": null
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "namespace": "product",
3
+ "type": "record",
4
+ "name": "VatValue",
5
+ "fields": [
6
+ {
7
+ "name": "id",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "doc": "Unique identifier of vat",
13
+ "default": null
14
+ },
15
+ {
16
+ "name": "name",
17
+ "type": [
18
+ "null",
19
+ "string"
20
+ ],
21
+ "doc": "Unique name of vat",
22
+ "default": null
23
+ },
24
+ {
25
+ "name": "value",
26
+ "type": [
27
+ "null",
28
+ "double"
29
+ ],
30
+ "doc": "Value of the vat in percent",
31
+ "default": null
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "namespace": "sale_offer",
3
+ "type": "record",
4
+ "doc": "",
5
+ "name": "AnyIdentifiedDistributionMode",
6
+ "fields": [
7
+ {
8
+ "name": "type",
9
+ "type": ["null", "string"],
10
+ "doc": "Type of distribution for this ad",
11
+ "default": null
12
+ },
13
+ {
14
+ "name": "ranges",
15
+ "type": ["null", {
16
+ "type": "array",
17
+ "items": "IdentifiedDistributionRange"
18
+ }],
19
+ "doc": "Available range to buy product.",
20
+ "default": null
21
+ },
22
+ {
23
+ "name": "unitPrice",
24
+ "type": ["null", "double"],
25
+ "doc": "The unit price as a decimal.",
26
+ "default": null
27
+ },
28
+ {
29
+ "name": "minimalQuantity",
30
+ "type": ["null", "int"],
31
+ "doc": "Minimal quantity.",
32
+ "default": null
33
+ },
34
+ {
35
+ "name": "maximalQuantity",
36
+ "type": ["null", "int"],
37
+ "doc": "Maximal quantity.",
38
+ "default": null
39
+ },
40
+ {
41
+ "name": "soldBy",
42
+ "type": ["null", "int"],
43
+ "doc": "Sold by this step value.",
44
+ "default": null
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "namespace": "sale_offer",
3
+ "type": "record",
4
+ "doc": "",
5
+ "name": "IdentifiedDistributionRange",
6
+ "fields": [
7
+ {
8
+ "name": "id",
9
+ "type": ["null", "long"],
10
+ "doc": "Range id.",
11
+ "default": null
12
+ },
13
+ {
14
+ "name": "quantity",
15
+ "type": ["null", "int"],
16
+ "doc": "Number of item per batch",
17
+ "default": null
18
+ },
19
+ {
20
+ "name": "unitPrice",
21
+ "type": ["null", "double"],
22
+ "doc": "The unit price as a decimal.",
23
+ "default": null
24
+ },
25
+ {
26
+ "name": "freeUnits",
27
+ "type": ["null", "int"],
28
+ "doc": "Number of free units per batch",
29
+ "default": null
30
+ },
31
+ {
32
+ "name": "rebate",
33
+ "type": ["null", "int"],
34
+ "doc": "Rebate for this distribution range",
35
+ "default": null
36
+ }
37
+ ]
38
+
39
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "namespace": "sale_offer",
3
+ "type": "record",
4
+ "name": "SaleOfferKey",
5
+ "fields": [
6
+ {
7
+ "name": "reference",
8
+ "type": [
9
+ "null",
10
+ "string"
11
+ ],
12
+ "default": null
13
+ }
14
+ ]
15
+ }