aitu-wallet 0.0.11 → 0.0.12
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 +17 -0
- 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: 921b48c0764a6b53bd975a30aaeeffd00c0829cf896d96134ab1fd3a6fffa73e
|
4
|
+
data.tar.gz: c09226790fde13b7bac016c045b4c3a92f54863797f8e6577319659935337c95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5bbbd42fcc5a980c3ecb3772160256b2bbd816946903032ad4a6f43282f76ad943007f2f01920a341da17ae8ed9904cbb5583224dd28a505271d0480c7eba87
|
7
|
+
data.tar.gz: 28f3fdd7a83767a718ade1308b48f87396bbfd83c722ad4e21db009ef30843d56d899f756561ffde7e90c2e317059258fe20754327b2c70b53c83c5da63feb1a
|
data/README.md
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
**AituWallet requests client**
|
data/lib/aitu_wallet/client.rb
CHANGED
@@ -9,6 +9,7 @@ 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',
|
@@ -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
|
+
request.headers,
|
68
|
+
request.body,
|
69
|
+
request.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
|
+
request.headers,
|
95
|
+
request.body,
|
96
|
+
request.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.12
|
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
|