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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a484a30435028a1bab19d6183b0783689bf1f34c48d3621b340587fbd8fd470f
4
- data.tar.gz: 0cdbdd570cd553e818fd65da8da49b9682304f797ac295e7aa03b8aae722e9bd
3
+ metadata.gz: 921b48c0764a6b53bd975a30aaeeffd00c0829cf896d96134ab1fd3a6fffa73e
4
+ data.tar.gz: c09226790fde13b7bac016c045b4c3a92f54863797f8e6577319659935337c95
5
5
  SHA512:
6
- metadata.gz: 6140a64345f9012ca1264a15c6c16554d178b237e7b4aadd88c79fc1b3301259ffbcbd5c30530342c3a8d693c60b8a8ed5c8652f082720517ff7c5a4e3f4f458
7
- data.tar.gz: ecfbf38277fef144ab9c026ca5edcca346eccb3f4eaae7d883577dbec1f7b9e638aecf2b648e6935205667190a6fc51567e4ffe0543c58f91e3c3e92e5e15d69
6
+ metadata.gz: a5bbbd42fcc5a980c3ecb3772160256b2bbd816946903032ad4a6f43282f76ad943007f2f01920a341da17ae8ed9904cbb5583224dd28a505271d0480c7eba87
7
+ data.tar.gz: 28f3fdd7a83767a718ade1308b48f87396bbfd83c722ad4e21db009ef30843d56d899f756561ffde7e90c2e317059258fe20754327b2c70b53c83c5da63feb1a
data/README.md CHANGED
@@ -0,0 +1 @@
1
+ **AituWallet requests client**
@@ -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
@@ -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.12'
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.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-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