novaposhta_api 0.2.1 → 0.2.2
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: 1888fd950a22a4d217c2b1c077148042a1fdf4d16d26d11c5a366f10bc195312
|
|
4
|
+
data.tar.gz: a3ab5f9d97e748dd0b10e5102993ee2c2ab2ea83485676ff1321d6a9723ad9fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: caed1a94ff8e926061b7df371f8d2fc7c205224ebc40f533d1405d77a251fb4263c241b41e0aa4f5f135b74329de37d4bfe7d6599407936d1bdd03b70d2a8e64
|
|
7
|
+
data.tar.gz: '03830b17c4dbed2d9d345681d6d15bd0e5c00539fd0fc3a46ab1404956af31594a6cc22863fdf427af962355f9d44a17aaa11ac5e3f04cf35fbf19d315fcbc57'
|
|
@@ -4,11 +4,26 @@ module NovaposhtaApi
|
|
|
4
4
|
module Models
|
|
5
5
|
class Settlement < Model
|
|
6
6
|
property :Ref
|
|
7
|
-
property :
|
|
8
|
-
property :
|
|
9
|
-
property :
|
|
10
|
-
property :
|
|
7
|
+
property :SettlementType
|
|
8
|
+
property :Latitude
|
|
9
|
+
property :Longitude
|
|
10
|
+
property :Description
|
|
11
|
+
property :DescriptionRu
|
|
12
|
+
property :DescriptionTranslit
|
|
13
|
+
property :SettlementTypeDescription
|
|
14
|
+
property :SettlementTypeDescriptionRu
|
|
15
|
+
property :SettlementTypeDescriptionTranslit
|
|
11
16
|
property :Region
|
|
17
|
+
property :RegionsDescription
|
|
18
|
+
property :RegionsDescriptionRu
|
|
19
|
+
property :RegionsDescriptionTranslit
|
|
20
|
+
property :Area
|
|
21
|
+
property :AreaDescription
|
|
22
|
+
property :AreaDescriptionRu
|
|
23
|
+
property :AreaDescriptionTranslit
|
|
24
|
+
property :Index1
|
|
25
|
+
property :Index2
|
|
26
|
+
property :AddressDeliveryAllowed
|
|
12
27
|
end
|
|
13
28
|
end
|
|
14
29
|
end
|
|
@@ -7,11 +7,24 @@ module NovaposhtaApi
|
|
|
7
7
|
property :CityRef
|
|
8
8
|
property :CityDescription
|
|
9
9
|
property :CityDescriptionRu
|
|
10
|
+
property :SettlementRef
|
|
11
|
+
property :SettlementDescription
|
|
12
|
+
property :SettlementAreaDescription
|
|
13
|
+
property :SettlementRegionsDescription
|
|
14
|
+
property :SettlementTypeDescription
|
|
15
|
+
property :SettlementTypeDescriptionRu
|
|
10
16
|
property :Description
|
|
11
17
|
property :DescriptionRu
|
|
12
18
|
property :ShortAddress
|
|
19
|
+
property :ShortAddressRu
|
|
13
20
|
property :Longitude
|
|
14
21
|
property :Latitude
|
|
22
|
+
property :WarehouseStatus
|
|
23
|
+
property :WarehouseStatusDate
|
|
24
|
+
property :Number
|
|
25
|
+
property :PostalCodeUA
|
|
26
|
+
property :CategoryOfWarehouse
|
|
27
|
+
property :TypeOfWarehouse
|
|
15
28
|
end
|
|
16
29
|
end
|
|
17
30
|
end
|
|
@@ -4,9 +4,9 @@ module NovaposhtaApi
|
|
|
4
4
|
module Resources
|
|
5
5
|
class SettlementResource < Resource
|
|
6
6
|
def all(params = {})
|
|
7
|
-
response = request('Address/
|
|
7
|
+
response = request('Address/getSettlements', params)
|
|
8
8
|
|
|
9
|
-
NovaposhtaApi::Models::Settlement.extract_collection(response
|
|
9
|
+
NovaposhtaApi::Models::Settlement.extract_collection(response)
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: novaposhta_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- venet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-05-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|