stp_client 0.2.0 → 0.2.1

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: 92f39a09bc38016be4b17b5567ea273a06ddd7c487e34502fe1527e03ce34d05
4
- data.tar.gz: 9961705cbdff5fc21f85325d46f06b9c31176b08f314cc704d7d4cfafa8924d0
3
+ metadata.gz: bc5b27b5570c48f3fe21db14b7ebbd0131d89d143c677b9ecb75a4d301923bf1
4
+ data.tar.gz: cc579b5ec5d1c93077d1c17d4a6e65f2945f3fbcc741c5937bc576f428114139
5
5
  SHA512:
6
- metadata.gz: 841bd000d01547c03fc5bcf6df46d238e381160807c355d3062d721bff664bffb0f1f6818a4ba4fc4e49d0333b840ed1e849390a09352d2df3c11713f2d44c64
7
- data.tar.gz: 6e9e2d08f9f5932664e61c739271165481d825a629c2a6b104b3143075b3b7d1d5567c7ca20b6521d47bfa1823972fa6d7c9de7c818e27488ccd6ab9a0cbf8bc
6
+ metadata.gz: 3c613cab091aa0cbf59a5c807fa5d04ba12286e4f7c70e0178b190d7d847bca243a2ff3784c4516af972bb97a2ba9041cf5604dfa49dc800b555a5f2efabda69
7
+ data.tar.gz: b757d4944f474c1319cb1c66d5ab7234c269707b386bd0804245fc740edaf073b0c3b5788a4b73aa066508c9c27fe0dfdd58e7cc663fedc9754c973c16a6cd82
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stp_client (0.1.0)
4
+ stp_client (0.2.1)
5
5
  crypto_yellowme (~> 0.4)
6
6
  faraday (~> 1.0)
7
7
 
@@ -23,6 +23,10 @@ module STP
23
23
  :phone, # telefono
24
24
  :signature
25
25
 
26
+ def initialize
27
+ @company = STP.company
28
+ end
29
+
26
30
  def original_chain
27
31
  "||#{@company}|"\
28
32
  "#{@account}|"\
@@ -38,6 +38,10 @@ module STP
38
38
  :original_chain,
39
39
  :signature
40
40
 
41
+ def initialize
42
+ @company = STP.company
43
+ end
44
+
41
45
  def original_chain
42
46
  "||#{@counterpart_institution}|"\
43
47
  "#{@company}|"\
data/lib/stp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module STP
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -12,7 +12,6 @@ RSpec.describe STP::Account do
12
12
  let(:account_obj) do
13
13
  account = STP::Structs::Account.new
14
14
  account.account = '01010101'
15
- account.company = STP.company
16
15
  account.name = Faker::Name.first_name
17
16
  account.paternal_surname = Faker::Name.last_name
18
17
  account.maternal_surname = Faker::Name.last_name
@@ -75,7 +74,6 @@ RSpec.describe STP::Account do
75
74
  let(:account_obj) do
76
75
  account = STP::Structs::Account.new
77
76
  account.account = '01010101'
78
- account.company = STP.company
79
77
  account.name = Faker::Name.first_name
80
78
  account.paternal_surname = Faker::Name.last_name
81
79
  account.maternal_surname = Faker::Name.last_name
@@ -12,7 +12,6 @@ RSpec.describe STP::Account do
12
12
  let(:account_obj) do
13
13
  account = STP::Structs::Account.new
14
14
  account.account = '01010101'
15
- account.company = STP.company
16
15
  account.name = Faker::Name.first_name
17
16
  account.paternal_surname = Faker::Name.last_name
18
17
  account.maternal_surname = Faker::Name.last_name
@@ -75,7 +74,6 @@ RSpec.describe STP::Account do
75
74
  let(:account_obj) do
76
75
  account = STP::Structs::Account.new
77
76
  account.account = '01010101'
78
- account.company = STP.company
79
77
  account.name = Faker::Name.first_name
80
78
  account.paternal_surname = Faker::Name.last_name
81
79
  account.maternal_surname = Faker::Name.last_name
@@ -14,7 +14,6 @@ RSpec.describe STP::PaymentOrder do
14
14
  payment_order = STP::Structs::PaymentOrder.new
15
15
  payment_order.payment_concept = 'prueba veinte'
16
16
  payment_order.tracking_key = "#{Time.now.strftime '%j%y'}#{withdrawal_id.tr('-', '')[0, 24]}"
17
- payment_order.company = 'FINVE'
18
17
  payment_order.beneficiary_account = '846180000000000016'
19
18
  payment_order.counterpart_institution = '846'
20
19
  payment_order.operant_institution = '90646'
@@ -46,7 +45,6 @@ RSpec.describe STP::PaymentOrder do
46
45
  payment_order = STP::Structs::PaymentOrder.new
47
46
  payment_order.payment_concept = 'prueba veinte'
48
47
  payment_order.tracking_key = "#{Time.now.strftime '%j%y'}#{withdrawal_id.tr('-', '')[0, 24]}"
49
- payment_order.company = STP.company
50
48
  payment_order.folio = withdrawal_id
51
49
  payment_order.beneficiary_account = '846180000400000001'
52
50
  payment_order.counterpart_institution = '846'
@@ -80,7 +78,6 @@ RSpec.describe STP::PaymentOrder do
80
78
  payment_order = STP::Structs::PaymentOrder.new
81
79
  payment_order.payment_concept = 'prueba veinte'
82
80
  payment_order.tracking_key = 'pruebaFinve002'
83
- payment_order.company = 'FINVE'
84
81
  payment_order.beneficiary_account = '846180000000000016'
85
82
  payment_order.counterpart_institution = '846'
86
83
  payment_order.operant_institution = '90646'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yellowme