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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a484a30435028a1bab19d6183b0783689bf1f34c48d3621b340587fbd8fd470f
4
- data.tar.gz: 0cdbdd570cd553e818fd65da8da49b9682304f797ac295e7aa03b8aae722e9bd
3
+ metadata.gz: 4214d9b41441b89932e989e6d3c39e59d2e0e9747791e12038a3d1ec6b3ec78c
4
+ data.tar.gz: 9a62a30f8a22b4d8d9efecc8f1766c9c3c5f0172c7497e3600f13339a0498eb7
5
5
  SHA512:
6
- metadata.gz: 6140a64345f9012ca1264a15c6c16554d178b237e7b4aadd88c79fc1b3301259ffbcbd5c30530342c3a8d693c60b8a8ed5c8652f082720517ff7c5a4e3f4f458
7
- data.tar.gz: ecfbf38277fef144ab9c026ca5edcca346eccb3f4eaae7d883577dbec1f7b9e638aecf2b648e6935205667190a6fc51567e4ffe0543c58f91e3c3e92e5e15d69
6
+ metadata.gz: 1e0a5e6481aa99a476357661ddce31096b441a3361ccc4e207a803b7adb5e79103f627fc590db7b56950a4ee1acc336e308cb6f71666d089ea339ab87d439fbb
7
+ data.tar.gz: c333cf284425942f73c8f60d7c6f8d63cabcb8ea47226bead265d3f651792263448b0c2eb7977547980a90925a75c6c444b6eec392a42464618babdb3f29356b
data/README.md CHANGED
@@ -0,0 +1 @@
1
+ **AituWallet requests client**
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AituWallet
4
- VERSION = '0.0.11'
4
+ VERSION = '0.0.14'
5
5
  end
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.11
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-06 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake