inter_api 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inter_api/{client.rb → client_production.rb} +1 -1
- data/lib/inter_api/version.rb +1 -1
- data/lib/inter_api.rb +15 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c3042c874a5bb6e237e50f28313606d6787ef9932c8349037572b0ef1c03626
|
4
|
+
data.tar.gz: 58cebe033804f8283ab775a2d5124f55fc519e67d5ba9683dd818874ff4fcb9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2de68302e396fbe38715b0785d361152eed465d9ebaf966b49b8b6692acaee9460e0c83e50ee02530021aa28e4495ea1e0810b1f2a101334d9d24b54443b7cde
|
7
|
+
data.tar.gz: 189544647729a28b271cc9c1d2db598b5940b5867c3bacf160b30bd560e0ac48849ee8ac3f5dd17690015ca55224576b7419b278f4a5dbce3c3875960820edd9
|
data/lib/inter_api/version.rb
CHANGED
data/lib/inter_api.rb
CHANGED
@@ -7,11 +7,24 @@ require "rqrcode"
|
|
7
7
|
require "ac"
|
8
8
|
|
9
9
|
require_relative "inter_api/version"
|
10
|
-
require "inter_api/
|
10
|
+
require "inter_api/client_production"
|
11
11
|
require "inter_api/payment"
|
12
12
|
require "inter_api/payment_error"
|
13
13
|
|
14
14
|
module InterApi
|
15
15
|
class Error < StandardError; end
|
16
|
-
|
16
|
+
|
17
|
+
class ClientTeste < ClientProduction
|
18
|
+
BASE_URL = "https://cdpj-sandbox.partners.uatinter.co/"
|
19
|
+
end
|
20
|
+
|
21
|
+
class Client
|
22
|
+
def self.new **args
|
23
|
+
if args.delete(:test_mode)
|
24
|
+
ClientTeste.new(**args)
|
25
|
+
else
|
26
|
+
ClientProduction.new(**args)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
17
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inter_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todas Essas Coisas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ac
|
@@ -80,7 +80,7 @@ files:
|
|
80
80
|
- README.md
|
81
81
|
- Rakefile
|
82
82
|
- lib/inter_api.rb
|
83
|
-
- lib/inter_api/
|
83
|
+
- lib/inter_api/client_production.rb
|
84
84
|
- lib/inter_api/payment.rb
|
85
85
|
- lib/inter_api/payment_error.rb
|
86
86
|
- lib/inter_api/version.rb
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
|
-
rubygems_version: 3.5.
|
110
|
+
rubygems_version: 3.5.16
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: ''
|