SelfPay 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/SelfPay/api.rb +0 -5
- data/lib/SelfPay/billet_api.rb +4 -1
- data/lib/SelfPay/client.rb +2 -2
- data/lib/SelfPay/connect_client.rb +2 -2
- data/lib/SelfPay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ff4729c82e21f92dc7b9c19d6704e774127d7e7e200ebc4d64ca846ef5e883b
|
|
4
|
+
data.tar.gz: 17ae9e759a9543910894f25c6ce716b78851f3d67dd25468210fb62571f5627e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd76e64dd3f83b6074fad40641ad73343534921b6ef586f263b1a02df6600df4cd89fc9886b71225b8c4801625b3fa3a68e21edc956eaf8817764f4fe0874b70
|
|
7
|
+
data.tar.gz: d996dae77a78359be9ac6de6ef538b41d0145494525203ddf1e926001c735722a9ea4a40a6390fa4849783786af844d3bcc89665da15c136298c306dbec53985
|
data/lib/SelfPay/api.rb
CHANGED
data/lib/SelfPay/billet_api.rb
CHANGED
|
@@ -5,9 +5,12 @@ module SelfPay
|
|
|
5
5
|
def initialize(client)
|
|
6
6
|
@client = client
|
|
7
7
|
end
|
|
8
|
+
def base_path
|
|
9
|
+
"/Billet"
|
|
10
|
+
end
|
|
8
11
|
|
|
9
12
|
def create(billet)
|
|
10
|
-
Resource::Billet.new client.post(
|
|
13
|
+
Resource::Billet.new client, client.post(base_path, billet)
|
|
11
14
|
end
|
|
12
15
|
|
|
13
16
|
def show(billet_id)
|
data/lib/SelfPay/client.rb
CHANGED
|
@@ -64,9 +64,9 @@ module SelfPay
|
|
|
64
64
|
|
|
65
65
|
def host
|
|
66
66
|
if production?
|
|
67
|
-
"cliente.hysoft.com.br/Services/Ecommerce/v2
|
|
67
|
+
"cliente.hysoft.com.br/Services/Ecommerce/v2"
|
|
68
68
|
else
|
|
69
|
-
"cliente.hysoft.com.br/Sandbox/Ecommerce/v2
|
|
69
|
+
"cliente.hysoft.com.br/Sandbox/Ecommerce/v2"
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -2,9 +2,9 @@ module SelfPay
|
|
|
2
2
|
class ConnectClient < Client
|
|
3
3
|
def host
|
|
4
4
|
if production?
|
|
5
|
-
"cliente.hysoft.com.br/Services/Ecommerce/v2
|
|
5
|
+
"cliente.hysoft.com.br/Services/Ecommerce/v2"
|
|
6
6
|
else
|
|
7
|
-
"cliente.hysoft.com.br/Sandbox/Ecommerce/v2
|
|
7
|
+
"cliente.hysoft.com.br/Sandbox/Ecommerce/v2"
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
end
|
data/lib/SelfPay/version.rb
CHANGED