aitu-wallet 0.0.11 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/aitu_wallet/client.rb +18 -1
- data/lib/aitu_wallet/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: 4214d9b41441b89932e989e6d3c39e59d2e0e9747791e12038a3d1ec6b3ec78c
|
4
|
+
data.tar.gz: 9a62a30f8a22b4d8d9efecc8f1766c9c3c5f0172c7497e3600f13339a0498eb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e0a5e6481aa99a476357661ddce31096b441a3361ccc4e207a803b7adb5e79103f627fc590db7b56950a4ee1acc336e308cb6f71666d089ea339ab87d439fbb
|
7
|
+
data.tar.gz: c333cf284425942f73c8f60d7c6f8d63cabcb8ea47226bead265d3f651792263448b0c2eb7977547980a90925a75c6c444b6eec392a42464618babdb3f29356b
|
data/README.md
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
**AituWallet requests client**
|
data/lib/aitu_wallet/client.rb
CHANGED
@@ -9,10 +9,11 @@ module AituWallet
|
|
9
9
|
DEV_BASE_URL = 'https://dev.wallet-web-api.aitupay.kz/api/v1/facade'
|
10
10
|
PROD_BASE_URL = 'https://wallet-web-api.aitupay.kz/api/v1/facade'
|
11
11
|
BASE_URL = ENV['WALLET_DEV'] ? DEV_BASE_URL : PROD_BASE_URL
|
12
|
+
DEBUG_ON = ENV['WALLET_DEBUG']
|
12
13
|
|
13
14
|
ENDPOINTS = {
|
14
15
|
user: 'integration/user',
|
15
|
-
passport: 'passport',
|
16
|
+
passport: 'passport/',
|
16
17
|
service: 'ems/service'
|
17
18
|
}
|
18
19
|
|
@@ -61,6 +62,14 @@ module AituWallet
|
|
61
62
|
add_token_header
|
62
63
|
response = @handler.get(url)
|
63
64
|
|
65
|
+
puts(
|
66
|
+
'====WALLET DEBUG====',
|
67
|
+
response.headers,
|
68
|
+
response.body,
|
69
|
+
response.status,
|
70
|
+
'==WALLET DEBUG END=='
|
71
|
+
) if DEBUG_ON
|
72
|
+
|
64
73
|
begin
|
65
74
|
JSON.parse(response.body) if response
|
66
75
|
rescue JSON::ParserError
|
@@ -80,6 +89,14 @@ module AituWallet
|
|
80
89
|
request.body = body.to_json
|
81
90
|
end
|
82
91
|
|
92
|
+
puts(
|
93
|
+
'====WALLET DEBUG====',
|
94
|
+
response.headers,
|
95
|
+
response.body,
|
96
|
+
response.status,
|
97
|
+
'==WALLET DEBUG END=='
|
98
|
+
) if DEBUG_ON
|
99
|
+
|
83
100
|
begin
|
84
101
|
JSON.parse(response.body) if response
|
85
102
|
rescue JSON::ParserError
|
data/lib/aitu_wallet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aitu-wallet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Shevchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|