onlia 0.1.1 → 0.1.3
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 +4 -4
- data/lib/onlia/client.rb +11 -11
- data/lib/onlia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efb4abe872d6eab60b6815d5899a87cd903686bc2dc0f957ee64bc9c8bd9ccfa
|
4
|
+
data.tar.gz: dbfe2d746e858b67473663f3d16d28b758e1fc78496a38bfe061373e9c85a6b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97a95affcde47ebea957e6b68ff36d44556a537afde627d41d065d92b34bc1697d0581cfaa4c6b316d7fbc332333c665c9d14cd1c3a1fd96a69bb370bee195d0
|
7
|
+
data.tar.gz: 669a2d9d104fd30d28bc8ac13fbebabdada67b49b201367489d820fa98cd29d06f579ff8335062d9125635843d54721f2ed81e5d2a7c40a516168af7baa77ec8
|
data/lib/onlia/client.rb
CHANGED
@@ -18,9 +18,8 @@ module Onlia
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def refresh_if_required
|
21
|
-
|
22
|
-
|
23
|
-
end
|
21
|
+
# TODO refresh only when required expiry < current time
|
22
|
+
self.refresh_token
|
24
23
|
end
|
25
24
|
|
26
25
|
def post(endpoint, body, token = nil)
|
@@ -58,18 +57,19 @@ module Onlia
|
|
58
57
|
|
59
58
|
# TODO: Add more methods here
|
60
59
|
def bind_agreement(params)
|
61
|
-
|
62
|
-
|
60
|
+
post("/Auto/bind", params, @api_token)
|
61
|
+
end
|
62
|
+
|
63
|
+
def property_address_validate(params)
|
64
|
+
post("/Property/address/validate", params, @api_token)
|
63
65
|
end
|
64
66
|
|
65
|
-
def
|
66
|
-
|
67
|
-
# post("/Auto/start", params, @api_token)
|
67
|
+
def activate_agreement(params)
|
68
|
+
post("/Auto/activate", params, @api_token)
|
68
69
|
end
|
69
70
|
|
70
|
-
def
|
71
|
-
|
72
|
-
# post("/Auto/end", params, @api_token)
|
71
|
+
def terminate_agreement(params)
|
72
|
+
post("/auto/terminate", params, @api_token)
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
data/lib/onlia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onlia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manpreet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|