corepro 0.0.7 → 0.0.8
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 +8 -8
- data/.idea/corepro-sdk-ruby.iml +28 -0
- data/.idea/modules.xml +1 -0
- data/lib/corepro/connection.rb +1 -1
- data/lib/corepro/version.rb +1 -1
- data/test/aa_customer_prepaid_test.rb +2 -2
- data/test/ab_account_nacha_test.rb +1 -1
- data/test/ab_account_prepaid_test.rb +2 -2
- data/test/ac_external_account_prepaid_test.rb +3 -3
- data/test/ad_customer_beneficiary_test.rb +1 -1
- data/test/aj_transfer_prepaid_test.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWRlNDllNWI2MWMzMDBkNDk3MTg3YjJjNGQ1NGM4MTZhZmFhMTc4Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjljYzYzMjFkOWVlMTI3YTQzNmY3ZmFjODBiM2FhYjFiYTU2NjllOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWU3NDQ3ZjQzYTVmYThlZjk0OGRkNzZkMGU3YWVkMzQ3ZTg5ODhiODY2M2My
|
10
|
+
YzkyZmIzYzE5ZGRiZmUwMDM0YWViNzJlNjI1ZWE0MWM5ZjVhYzczZTA3Nzhi
|
11
|
+
NzI0ZjRmODQzOTQ1ZGNkMjJlYmE3NmRkNWY1MTM5ZjZhOWRjZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Mzg4YTgwNzQ4NzNmOWJhMjUyOGY5NDIxYjFiMDVjMThmN2IxZGMyNWE0ZDU0
|
14
|
+
MTFiMTMzOWMwYThkZTEzMDIzYjM4MDRhOWUwNzM4OTQ3YmJlMTBmNWFlZDJj
|
15
|
+
MDdhOWY2NDcxZDQ0NDYyYzQ3NDMzOGI5YTVhN2Q5Yjk1NjhiNDM=
|
data/.idea/corepro-sdk-ruby.iml
CHANGED
@@ -73,6 +73,34 @@
|
|
73
73
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
74
74
|
<method />
|
75
75
|
</configuration>
|
76
|
+
<configuration default="false" name="test_list: corepro-sdk-ruby" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
|
77
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
78
|
+
<module name="corepro-sdk-ruby" />
|
79
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
80
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
81
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
82
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
83
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
84
|
+
<envs>
|
85
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
86
|
+
</envs>
|
87
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
88
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
89
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
90
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
91
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
92
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/af_bankdocument_test.rb" />
|
93
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
94
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_list" />
|
95
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
|
96
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
97
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
98
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
99
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
100
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
101
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
102
|
+
<method />
|
103
|
+
</configuration>
|
76
104
|
</component>
|
77
105
|
<component name="NewModuleRootManager">
|
78
106
|
<content url="file://$MODULE_DIR$">
|
data/.idea/modules.xml
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ProjectModuleManager">
|
4
4
|
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/../DocChecker/.idea/DocChecker.iml" filepath="$PROJECT_DIR$/../DocChecker/.idea/DocChecker.iml" />
|
5
6
|
<module fileurl="file://$PROJECT_DIR$/.idea/corepro-sdk-ruby.iml" filepath="$PROJECT_DIR$/.idea/corepro-sdk-ruby.iml" />
|
6
7
|
</modules>
|
7
8
|
</component>
|
data/lib/corepro/connection.rb
CHANGED
@@ -50,7 +50,7 @@ module CorePro
|
|
50
50
|
def headerValue
|
51
51
|
if (@headerValue || '' == '')
|
52
52
|
utf8Value = "#{@apiKey}:#{@apiSecret}".force_encoding('iso-8859-1').encode('utf-8')
|
53
|
-
b64 = Base64.
|
53
|
+
b64 = Base64.strict_encode64(utf8Value)
|
54
54
|
@headerValue = "Basic #{b64}"
|
55
55
|
end
|
56
56
|
@headerValue
|
data/lib/corepro/version.rb
CHANGED
@@ -10,7 +10,7 @@ class AaCustomerPrepaidTest < CoreProTestBase
|
|
10
10
|
c.culture = 'en-US'
|
11
11
|
c.firstName = 'Joey'
|
12
12
|
c.middleName = 'Flanagan'
|
13
|
-
c.lastName = "McTester#{@@timestamp}"
|
13
|
+
c.lastName = "McTester Ruby #{@@timestamp}"
|
14
14
|
c.gender = 'M'
|
15
15
|
c.isDocumentsAccepted = true
|
16
16
|
c.isSubjectToBackupWithholding = false
|
@@ -39,7 +39,7 @@ class AaCustomerPrepaidTest < CoreProTestBase
|
|
39
39
|
|
40
40
|
def test_search
|
41
41
|
c = CorePro::Customer.new
|
42
|
-
c.lastName = "McTester#{@@timestamp}"
|
42
|
+
c.lastName = "McTester Ruby #{@@timestamp}"
|
43
43
|
cs = c.search nil, nil, @@prepaidConn, nil
|
44
44
|
assert cs != nil && cs.length > 0, "Could not search 'McTester#{@@timestamp}'"
|
45
45
|
end
|
@@ -6,7 +6,7 @@ class AbAccountNachaTest #< CoreProTestBase
|
|
6
6
|
def test_create
|
7
7
|
a = CorePro::Account.new
|
8
8
|
a.customerId = @@nachaCustomerId
|
9
|
-
a.tag = "act#{@@timestamp}"
|
9
|
+
a.tag = "act ruby #{@@timestamp}"
|
10
10
|
a.type = 'Client'
|
11
11
|
a.category = 'CategoryA'
|
12
12
|
a.subCategory = 'CategoryB'
|
@@ -11,7 +11,7 @@ class AbAccountPrepaidTest < CoreProTestBase
|
|
11
11
|
a.category = 'CategoryA'
|
12
12
|
a.subCategory = 'CategoryB'
|
13
13
|
a.isCloseable = true
|
14
|
-
a.name = "Account #{@@timestamp}"
|
14
|
+
a.name = "Account Ruby #{@@timestamp}"
|
15
15
|
a.targetAmount = 500
|
16
16
|
a.targetDate = '01/01/2030'
|
17
17
|
@@prepaidAccountId = a.create @@prepaidConn, nil
|
@@ -35,7 +35,7 @@ class AbAccountPrepaidTest < CoreProTestBase
|
|
35
35
|
a = CorePro::Account.new
|
36
36
|
a.accountId = @@prepaidAccountId
|
37
37
|
a.customerId = @@prepaidCustomerId
|
38
|
-
a.name = "Updated
|
38
|
+
a.name = "Updated Account Ruby #{@@timestamp}"
|
39
39
|
accountId = a.update @@prepaidConn, nil
|
40
40
|
assert accountId == @@prepaidAccountId
|
41
41
|
end
|
@@ -7,7 +7,7 @@ class AcExternalAccountPrepaidTest < CoreProTestBase
|
|
7
7
|
ea = CorePro::ExternalAccount.new
|
8
8
|
ea.customerId = @@prepaidCustomerId
|
9
9
|
ea.nickName = "Ext acct #{@@timestamp}"
|
10
|
-
ea.tag = "tag #{@@timestamp}"
|
10
|
+
ea.tag = "tag ruby #{@@timestamp}"
|
11
11
|
ea.accountNumber = '00001234'
|
12
12
|
ea.firstName = 'Jimmy'
|
13
13
|
ea.lastName = 'Jameson'
|
@@ -24,7 +24,7 @@ class AcExternalAccountPrepaidTest < CoreProTestBase
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def test_getByTag
|
27
|
-
ea = CorePro::ExternalAccount.getByTag @@prepaidCustomerId, "tag #{@@timestamp}", @@prepaidConn, nil
|
27
|
+
ea = CorePro::ExternalAccount.getByTag @@prepaidCustomerId, "tag ruby #{@@timestamp}", @@prepaidConn, nil
|
28
28
|
assert_instance_of CorePro::ExternalAccount, ea
|
29
29
|
assert_equal @@prepaidExternalAccountId, ea.externalAccountId
|
30
30
|
end
|
@@ -38,7 +38,7 @@ class AcExternalAccountPrepaidTest < CoreProTestBase
|
|
38
38
|
ea = CorePro::ExternalAccount.new
|
39
39
|
ea.customerId = @@prepaidCustomerId
|
40
40
|
ea.externalAccountId = @@prepaidExternalAccountId
|
41
|
-
ea.nickName = "Updated ext
|
41
|
+
ea.nickName = "Updated ext acct #{@@timestamp}"
|
42
42
|
externalAccountId = ea.update @@prepaidConn, nil
|
43
43
|
assert_equal @@prepaidExternalAccountId, externalAccountId
|
44
44
|
end
|
@@ -7,7 +7,7 @@ class AdCustomerBeneficiaryTest < CoreProTestBase
|
|
7
7
|
cb = CorePro::CustomerBeneficiary.new
|
8
8
|
cb.customerId = @@prepaidCustomerId
|
9
9
|
cb.firstName = 'Freddie'
|
10
|
-
cb.lastName = "Mercury #{@@timestamp}"
|
10
|
+
cb.lastName = "Mercury Ruby #{@@timestamp}"
|
11
11
|
cb.birthDate = '1969-05-05T00:00:00.000+00:00'
|
12
12
|
cb.taxId = '123412349'
|
13
13
|
@@prepaidCustomerBeneficiaryId = cb.create @@prepaidConn, nil
|
@@ -9,6 +9,7 @@ class AjTransferPrepaidTest < CoreProTestBase
|
|
9
9
|
t.fromId = @@prepaidExternalAccountId
|
10
10
|
t.toId = @@prepaidAccountId
|
11
11
|
t.amount = 1.25
|
12
|
+
t.tag = "ruby #{@@timestamp}"
|
12
13
|
results = t.create @@prepaidConn, nil
|
13
14
|
@@prepaidExternalToInternalTransactionId = results[0].transactionId
|
14
15
|
assert @@prepaidExternalToInternalTransactionId > 0
|
@@ -20,6 +21,7 @@ class AjTransferPrepaidTest < CoreProTestBase
|
|
20
21
|
t.fromId = @@prepaidAccountId
|
21
22
|
t.toId = @@prepaidExternalAccountId
|
22
23
|
t.amount = 1.20
|
24
|
+
t.tag = "ruby 2 #{@@timestamp}"
|
23
25
|
results = t.create @@prepaidConn, nil
|
24
26
|
@@prepaidInternalToExternalTransactionId = results[0].transactionId
|
25
27
|
assert @@prepaidInternalToExternalTransactionId > 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corepro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- devsupport
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|