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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef70a93ab588f2214173fbeeb49ed6839dcce4a89d326ad4a4d1c69f94502337
4
- data.tar.gz: 4555d69207d2444a0477eb8a5b7912439a733abf2740068cf6938139f2e145de
3
+ metadata.gz: 8ff4729c82e21f92dc7b9c19d6704e774127d7e7e200ebc4d64ca846ef5e883b
4
+ data.tar.gz: 17ae9e759a9543910894f25c6ce716b78851f3d67dd25468210fb62571f5627e
5
5
  SHA512:
6
- metadata.gz: 880cc8f5b439c9a6b66c14c37c1bf869f2d098454c25f22dba2489f3f5e7293c6b936e9d58e5b0aefab656e66b62336c123b3d86f2a0ff8ebc23fcd26d3d6929
7
- data.tar.gz: f03f6caee6bb317baf859c4f853a0f62d0c40464f499fea618042309b619cba76ad83655c634b96e40a009dec0a94c8cefac20a36f2c0cb7ea56f180d7defde2
6
+ metadata.gz: bd76e64dd3f83b6074fad40641ad73343534921b6ef586f263b1a02df6600df4cd89fc9886b71225b8c4801625b3fa3a68e21edc956eaf8817764f4fe0874b70
7
+ data.tar.gz: d996dae77a78359be9ac6de6ef538b41d0145494525203ddf1e926001c735722a9ea4a40a6390fa4849783786af844d3bcc89665da15c136298c306dbec53985
data/lib/SelfPay/api.rb CHANGED
@@ -6,11 +6,6 @@ module SelfPay
6
6
  @client = client
7
7
  end
8
8
 
9
- def connect
10
- connect_client = SelfPay::ConnectClient.new(client.env, client.auth, client.opts)
11
- SelfPay::ConnectApi.new(connect_client)
12
- end
13
-
14
9
  def billet
15
10
  SelfPay::BilletApi.new(client)
16
11
  end
@@ -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("Billet", billet)
13
+ Resource::Billet.new client, client.post(base_path, billet)
11
14
  end
12
15
 
13
16
  def show(billet_id)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SelfPay
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SelfPay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaci