corepro 0.0.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +15 -15
- data/.idea/.rakeTasks +1 -1
- data/.idea/corepro-sdk-ruby.iml +12 -134
- data/.idea/modules.xml +1 -3
- data/CorePro.gemspec +25 -23
- data/Gemfile +14 -14
- data/README.md +47 -47
- data/Rakefile +2 -2
- data/lib/corepro.rb +13 -13
- data/lib/corepro/account.rb +47 -6
- data/lib/corepro/bank_document.rb +2 -2
- data/lib/corepro/card.rb +91 -0
- data/lib/corepro/customer.rb +28 -34
- data/lib/corepro/customer_beneficiary.rb +4 -15
- data/lib/corepro/customer_document.rb +0 -10
- data/lib/corepro/external_account.rb +8 -21
- data/lib/corepro/models/account_access.rb +25 -0
- data/lib/corepro/models/customer_beneficiary_id_only.rb +8 -8
- data/lib/corepro/models/model_base.rb +1 -1
- data/lib/corepro/models/program_account.rb +20 -0
- data/lib/corepro/models/program_checking.rb +36 -36
- data/lib/corepro/models/program_e_code.rb +30 -30
- data/lib/corepro/models/program_external_account.rb +21 -0
- data/lib/corepro/models/program_interest_rate.rb +5 -0
- data/lib/corepro/models/program_prepaid.rb +36 -36
- data/lib/corepro/models/program_savings.rb +35 -35
- data/lib/corepro/program.rb +9 -0
- data/lib/corepro/transaction.rb +8 -1
- data/lib/corepro/utils/requestor.rb +3 -3
- data/lib/corepro/version.rb +4 -4
- data/test/a_program_test.rb +12 -0
- data/test/aa_customer_test.rb +74 -0
- data/test/ab_account_test.rb +44 -0
- data/test/ac_external_account_test.rb +39 -0
- data/test/ad_customer_beneficiary_test.rb +42 -42
- data/test/ae_customer_document_test.rb +15 -15
- data/test/af_bankdocument_test.rb +19 -19
- data/test/ag_external_account_document_test.rb +17 -17
- data/test/ai_statement_test.rb +22 -22
- data/test/aj_transfer_test.rb +53 -0
- data/test/ak_transaction_test.rb +18 -8
- data/test/core_pro_test_base.rb +9 -23
- metadata +50 -41
- data/.idea/runConfigurations/All_tests_in_corepro_sdk_ruby__corepro_sdk_ruby.xml +0 -34
- data/test/aa_customer_nacha_test.rb +0 -63
- data/test/aa_customer_prepaid_test.rb +0 -55
- data/test/aaa_program_test.rb +0 -11
- data/test/ab_account_nacha_test.rb +0 -46
- data/test/ab_account_prepaid_test.rb +0 -46
- data/test/ac_external_account_nacha_test.rb +0 -6
- data/test/ac_external_account_prepaid_test.rb +0 -46
- data/test/aj_transfer_nacha_test.rb +0 -6
- data/test/aj_transfer_prepaid_test.rb +0 -36
@@ -0,0 +1,39 @@
|
|
1
|
+
require_relative '../test/core_pro_test_base'
|
2
|
+
require_relative '../lib/corepro/external_account'
|
3
|
+
|
4
|
+
class AcExternalAccountTest < CoreProTestBase
|
5
|
+
def test_create
|
6
|
+
ea = CorePro::ExternalAccount.new
|
7
|
+
ea.customerId = @@exampleCustomerId
|
8
|
+
ea.tag = "extact ruby #{@@timestamp}"
|
9
|
+
ea.routingNumber = '123456789'
|
10
|
+
ea.accountNumber = '987654321'
|
11
|
+
ea.firstName = 'Edwin'
|
12
|
+
ea.lastName = 'Awesome'
|
13
|
+
ea.nickName = "Savings #{@@timestamp}"
|
14
|
+
ea.type = 'Savings'
|
15
|
+
ea.tag = "ext_acct_#{@@timestamp}"
|
16
|
+
@@exampleExternalAccountId = ea.create @@exampleConn, nil
|
17
|
+
puts "externalAccountId=#{@@exampleExternalAccountId}"
|
18
|
+
assert @@exampleExternalAccountId > 0
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_get
|
23
|
+
puts "getting #{@@exampleExternalAccountId}..."
|
24
|
+
ea = CorePro::ExternalAccount.get(@@exampleCustomerId, @@exampleExternalAccountId, @@exampleConn, nil)
|
25
|
+
assert_equal 'COREPRO SANDBOX BANK', ea.name
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_list
|
29
|
+
externalAccounts = CorePro::ExternalAccount.list(@@exampleCustomerId, @@exampleConn, nil)
|
30
|
+
assert_equal 1, externalAccounts.length, "Listed #{externalAccounts.length} external accounts for customerId=#{@@exampleCustomerId}"
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_update
|
34
|
+
ea = CorePro::ExternalAccount.get(@@exampleCustomerId, @@exampleExternalAccountId, @@exampleConn, nil)
|
35
|
+
ea.nickName = "Updated external account #{@@timestamp}"
|
36
|
+
externalAccountId = ea.update @@exampleConn, nil
|
37
|
+
assert externalAccountId == @@exampleExternalAccountId
|
38
|
+
end
|
39
|
+
end
|
@@ -1,43 +1,43 @@
|
|
1
|
-
require_relative '../test/core_pro_test_base'
|
2
|
-
require_relative '../lib/corepro/customer_beneficiary'
|
3
|
-
|
4
|
-
class AdCustomerBeneficiaryTest < CoreProTestBase
|
5
|
-
|
6
|
-
def test_create
|
7
|
-
cb = CorePro::CustomerBeneficiary.new
|
8
|
-
cb.customerId = @@
|
9
|
-
cb.firstName = 'Freddie'
|
10
|
-
cb.lastName = "Mercury Ruby #{@@timestamp}"
|
11
|
-
cb.birthDate = '1969-05-05T00:00:00.000+00:00'
|
12
|
-
cb.taxId = '123412349'
|
13
|
-
@@
|
14
|
-
assert @@
|
15
|
-
end
|
16
|
-
|
17
|
-
def test_get
|
18
|
-
cb = CorePro::CustomerBeneficiary.get @@
|
19
|
-
assert_instance_of CorePro::CustomerBeneficiary, cb
|
20
|
-
end
|
21
|
-
|
22
|
-
def test_list
|
23
|
-
cbs = CorePro::CustomerBeneficiary.list @@
|
24
|
-
assert cbs.length > 0
|
25
|
-
end
|
26
|
-
|
27
|
-
def test_update
|
28
|
-
cb = CorePro::CustomerBeneficiary.new
|
29
|
-
cb.customerId = @@
|
30
|
-
cb.customerBeneficiaryId = @@
|
31
|
-
cb.firstName = "Freddie #{@@timestamp}"
|
32
|
-
cbid = cb.update @@
|
33
|
-
assert_equal @@
|
34
|
-
end
|
35
|
-
|
36
|
-
def test_zzz_deactivate
|
37
|
-
cb = CorePro::CustomerBeneficiary.new
|
38
|
-
cb.customerId = @@
|
39
|
-
cb.customerBeneficiaryId = @@
|
40
|
-
cbid = cb.deactivate @@
|
41
|
-
assert_equal @@
|
42
|
-
end
|
1
|
+
require_relative '../test/core_pro_test_base'
|
2
|
+
require_relative '../lib/corepro/customer_beneficiary'
|
3
|
+
|
4
|
+
class AdCustomerBeneficiaryTest < CoreProTestBase
|
5
|
+
|
6
|
+
def test_create
|
7
|
+
cb = CorePro::CustomerBeneficiary.new
|
8
|
+
cb.customerId = @@exampleCustomerId
|
9
|
+
cb.firstName = 'Freddie'
|
10
|
+
cb.lastName = "Mercury Ruby #{@@timestamp}"
|
11
|
+
cb.birthDate = '1969-05-05T00:00:00.000+00:00'
|
12
|
+
cb.taxId = '123412349'
|
13
|
+
@@exampleCustomerBeneficiaryId = cb.create @@exampleConn, nil
|
14
|
+
assert @@exampleCustomerBeneficiaryId > 0
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_get
|
18
|
+
cb = CorePro::CustomerBeneficiary.get @@exampleCustomerId, @@exampleCustomerBeneficiaryId, @@exampleConn, nil
|
19
|
+
assert_instance_of CorePro::CustomerBeneficiary, cb
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_list
|
23
|
+
cbs = CorePro::CustomerBeneficiary.list @@exampleCustomerId, @@exampleConn, nil
|
24
|
+
assert cbs.length > 0
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_update
|
28
|
+
cb = CorePro::CustomerBeneficiary.new
|
29
|
+
cb.customerId = @@exampleCustomerId
|
30
|
+
cb.customerBeneficiaryId = @@exampleCustomerBeneficiaryId
|
31
|
+
cb.firstName = "Freddie #{@@timestamp}"
|
32
|
+
cbid = cb.update @@exampleConn, nil
|
33
|
+
assert_equal @@exampleCustomerBeneficiaryId, cbid
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_zzz_deactivate
|
37
|
+
cb = CorePro::CustomerBeneficiary.new
|
38
|
+
cb.customerId = @@exampleCustomerId
|
39
|
+
cb.customerBeneficiaryId = @@exampleCustomerBeneficiaryId
|
40
|
+
cbid = cb.deactivate @@exampleConn, nil
|
41
|
+
assert_equal @@exampleCustomerBeneficiaryId, cbid
|
42
|
+
end
|
43
43
|
end
|
@@ -1,16 +1,16 @@
|
|
1
|
-
require_relative '../test/core_pro_test_base'
|
2
|
-
require_relative '../lib/corepro/customer_document'
|
3
|
-
|
4
|
-
class AeCustomerDocumentTest < CoreProTestBase
|
5
|
-
def test_upload
|
6
|
-
cd = CorePro::CustomerDocument.new
|
7
|
-
cd.customerId = @@
|
8
|
-
cd.documentType = 'DriversLicense'
|
9
|
-
cd.reasonType = 'NameChange'
|
10
|
-
cd.documentName = 'test.pdf'
|
11
|
-
folder = File.expand_path(File.dirname(File.dirname(__FILE__)))
|
12
|
-
cd.documentContent = File.read(folder + '/test.pdf')
|
13
|
-
cd.upload @@
|
14
|
-
assert true
|
15
|
-
end
|
1
|
+
require_relative '../test/core_pro_test_base'
|
2
|
+
require_relative '../lib/corepro/customer_document'
|
3
|
+
|
4
|
+
class AeCustomerDocumentTest < CoreProTestBase
|
5
|
+
def test_upload
|
6
|
+
cd = CorePro::CustomerDocument.new
|
7
|
+
cd.customerId = @@exampleCustomerId
|
8
|
+
cd.documentType = 'DriversLicense'
|
9
|
+
cd.reasonType = 'NameChange'
|
10
|
+
cd.documentName = 'test.pdf'
|
11
|
+
folder = File.expand_path(File.dirname(File.dirname(__FILE__)))
|
12
|
+
cd.documentContent = File.read(folder + '/test.pdf')
|
13
|
+
cd.upload @@exampleConn, nil
|
14
|
+
assert true
|
15
|
+
end
|
16
16
|
end
|
@@ -1,20 +1,20 @@
|
|
1
|
-
require_relative '../test/core_pro_test_base'
|
2
|
-
require_relative '../lib/corepro/bank_document'
|
3
|
-
require_relative '../lib/corepro/models/file_content'
|
4
|
-
|
5
|
-
class AfBankDocumentTest < CoreProTestBase
|
6
|
-
def test_list
|
7
|
-
docs = CorePro::BankDocument.list 'en-US', nil, @@
|
8
|
-
doc = nil
|
9
|
-
docs.each do |x|
|
10
|
-
doc = x if x.documentType == 'eStatement'
|
11
|
-
end
|
12
|
-
@@documentId = doc.documentId
|
13
|
-
assert_instance_of CorePro::BankDocument, doc
|
14
|
-
end
|
15
|
-
|
16
|
-
def test_zzz_download
|
17
|
-
doc = CorePro::BankDocument.download 'en-US', @@documentId, @@
|
18
|
-
assert_instance_of CorePro::Models::FileContent, doc
|
19
|
-
end
|
1
|
+
require_relative '../test/core_pro_test_base'
|
2
|
+
require_relative '../lib/corepro/bank_document'
|
3
|
+
require_relative '../lib/corepro/models/file_content'
|
4
|
+
|
5
|
+
class AfBankDocumentTest < CoreProTestBase
|
6
|
+
def test_list
|
7
|
+
docs = CorePro::BankDocument.list 'en-US', nil, @@exampleConn, nil
|
8
|
+
doc = nil
|
9
|
+
docs.each do |x|
|
10
|
+
doc = x # if x.documentType == 'eStatement'
|
11
|
+
end
|
12
|
+
@@documentId = doc.documentId
|
13
|
+
assert_instance_of CorePro::BankDocument, doc
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_zzz_download
|
17
|
+
doc = CorePro::BankDocument.download 'en-US', @@documentId, @@exampleConn, nil
|
18
|
+
assert_instance_of CorePro::Models::FileContent, doc
|
19
|
+
end
|
20
20
|
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
require_relative '../test/core_pro_test_base'
|
2
|
-
require_relative '../lib/corepro/external_account_document'
|
3
|
-
|
4
|
-
class AgExternalAccountDocumentTest < CoreProTestBase
|
5
|
-
def test_upload
|
6
|
-
ead = CorePro::ExternalAccountDocument.new
|
7
|
-
ead.customerId = @@
|
8
|
-
ead.externalAccountId = @@
|
9
|
-
ead.documentType = 'DriversLicense'
|
10
|
-
ead.documentName = 'test.pdf'
|
11
|
-
ead.reasonType = 'NameChange'
|
12
|
-
folder = File.expand_path(File.dirname(File.dirname(__FILE__)))
|
13
|
-
ead.documentContent = File.read(folder + '/test.pdf')
|
14
|
-
ead.upload @@
|
15
|
-
assert true
|
16
|
-
|
17
|
-
end
|
1
|
+
require_relative '../test/core_pro_test_base'
|
2
|
+
require_relative '../lib/corepro/external_account_document'
|
3
|
+
|
4
|
+
class AgExternalAccountDocumentTest < CoreProTestBase
|
5
|
+
def test_upload
|
6
|
+
ead = CorePro::ExternalAccountDocument.new
|
7
|
+
ead.customerId = @@exampleCustomerId
|
8
|
+
ead.externalAccountId = @@exampleExternalAccountId
|
9
|
+
ead.documentType = 'DriversLicense'
|
10
|
+
ead.documentName = 'test.pdf'
|
11
|
+
ead.reasonType = 'NameChange'
|
12
|
+
folder = File.expand_path(File.dirname(File.dirname(__FILE__)))
|
13
|
+
ead.documentContent = File.read(folder + '/test.pdf')
|
14
|
+
ead.upload @@exampleConn, nil
|
15
|
+
assert true
|
16
|
+
|
17
|
+
end
|
18
18
|
end
|
data/test/ai_statement_test.rb
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
require_relative '../test/core_pro_test_base'
|
2
|
-
require_relative '../lib/corepro/statement'
|
3
|
-
|
4
|
-
class AiStatementTest # < CoreProTestBase
|
5
|
-
|
6
|
-
def test_download
|
7
|
-
assert false
|
8
|
-
end
|
9
|
-
|
10
|
-
def test_get
|
11
|
-
assert false
|
12
|
-
end
|
13
|
-
|
14
|
-
def test_list
|
15
|
-
assert false
|
16
|
-
end
|
17
|
-
|
18
|
-
def test_search
|
19
|
-
assert false
|
20
|
-
end
|
21
|
-
|
22
|
-
|
1
|
+
require_relative '../test/core_pro_test_base'
|
2
|
+
require_relative '../lib/corepro/statement'
|
3
|
+
|
4
|
+
class AiStatementTest # < CoreProTestBase
|
5
|
+
|
6
|
+
def test_download
|
7
|
+
assert false
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_get
|
11
|
+
assert false
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_list
|
15
|
+
assert false
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_search
|
19
|
+
assert false
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
23
|
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require_relative '../test/core_pro_test_base'
|
2
|
+
require_relative '../lib/corepro/transfer'
|
3
|
+
|
4
|
+
class AjTransferTest < CoreProTestBase
|
5
|
+
|
6
|
+
def test_01_create_external_to_internal
|
7
|
+
t = CorePro::Transfer.new
|
8
|
+
t.customerId = @@exampleCustomerId
|
9
|
+
t.fromId = @@exampleExternalAccountId
|
10
|
+
t.toId = @@exampleAccountId
|
11
|
+
t.amount = 2.75
|
12
|
+
t.tag = "e_2_i #{@@timestamp}"
|
13
|
+
@@exampleExternalToInternalTransactionTag = t.tag
|
14
|
+
results = t.create @@exampleConn, nil
|
15
|
+
@@exampleExternalToInternalTransactionId = results[0].transactionId
|
16
|
+
puts "external to internal transactionid=#{@@exampleExternalToInternalTransactionId}"
|
17
|
+
assert @@exampleExternalToInternalTransactionId > 0
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_02_create_programreserve_to_internal
|
21
|
+
t = CorePro::Transfer.new
|
22
|
+
t.customerId = @@exampleCustomerId
|
23
|
+
t.fromId = @@exampleProgramReserveAccountId
|
24
|
+
t.toId = @@exampleAccountId
|
25
|
+
t.amount = 1.25
|
26
|
+
t.tag = "pr_2_i #{@@timestamp}"
|
27
|
+
results = t.create @@exampleConn, nil
|
28
|
+
@@exampleProgramReserveToInternalTransactionId = results[0].transactionId
|
29
|
+
puts "program reserve to internal transactionid=#{@@exampleProgramReserveToInternalTransactionId}"
|
30
|
+
assert @@exampleProgramReserveToInternalTransactionId > 0
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_03_create_internal_to_external
|
34
|
+
t = CorePro::Transfer.new
|
35
|
+
t.customerId = @@exampleCustomerId
|
36
|
+
t.fromId = @@exampleAccountId
|
37
|
+
t.toId = @@exampleExternalAccountId
|
38
|
+
t.amount = 1.20
|
39
|
+
t.tag = "i_2_e #{@@timestamp}"
|
40
|
+
results = t.create @@exampleConn, nil
|
41
|
+
@@exampleInternalToExternalTransactionId = results[0].transactionId
|
42
|
+
puts "internal to external transactionid=#{@@exampleInternalToExternalTransactionId}"
|
43
|
+
assert @@exampleInternalToExternalTransactionId > 0
|
44
|
+
end
|
45
|
+
|
46
|
+
|
47
|
+
# def test_void
|
48
|
+
# t = CorePro::Transfer.new
|
49
|
+
# t.customerId = @@prepaidCustomerId
|
50
|
+
# t.transactionId = @@prepaidExternalToInternalTransactionId
|
51
|
+
# t.void @@prepaidConn, nil
|
52
|
+
# end
|
53
|
+
end
|
data/test/ak_transaction_test.rb
CHANGED
@@ -1,9 +1,19 @@
|
|
1
|
-
require_relative '../test/core_pro_test_base'
|
2
|
-
require_relative '../lib/corepro/transaction'
|
3
|
-
|
4
|
-
class AkTransactionTest < CoreProTestBase
|
5
|
-
def
|
6
|
-
ts = CorePro::Transaction.list @@
|
7
|
-
assert ts.length > 0
|
8
|
-
end
|
1
|
+
require_relative '../test/core_pro_test_base'
|
2
|
+
require_relative '../lib/corepro/transaction'
|
3
|
+
|
4
|
+
class AkTransactionTest < CoreProTestBase
|
5
|
+
def test_01_list
|
6
|
+
ts = CorePro::Transaction.list @@exampleCustomerId, @@exampleAccountId, nil, nil, nil, nil, nil, @@exampleConn, nil
|
7
|
+
assert ts.length > 0
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_02_get
|
11
|
+
ts = CorePro::Transaction.get @@exampleCustomerId, @@exampleProgramReserveToInternalTransactionId, @@exampleConn, nil
|
12
|
+
assert ts.length > 0
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_03_getByTag
|
16
|
+
ts = CorePro::Transaction.getByTag @@exampleCustomerId, @@exampleExternalToInternalTransactionTag, @@exampleConn, nil
|
17
|
+
assert ts.length > 0
|
18
|
+
end
|
9
19
|
end
|
data/test/core_pro_test_base.rb
CHANGED
@@ -4,39 +4,25 @@ require_relative "../lib/corepro/core_pro_api_exception"
|
|
4
4
|
|
5
5
|
class CoreProTestBase < Test::Unit::TestCase
|
6
6
|
|
7
|
-
# common properties
|
7
|
+
# common properties for tests
|
8
8
|
@@timestamp = Time.now.to_s
|
9
9
|
|
10
10
|
@@documentId = nil
|
11
11
|
|
12
|
+
@@exampleConn = CorePro::Connection.new 'example1', 'example1', 'sandbox-api.corepro.io' #, '127.0.0.1', '8888'
|
12
13
|
|
13
|
-
|
14
|
-
# tests the config.yml lookup. should always return coreproprepaid credentials and server.
|
15
|
-
@@prepaidConn = CorePro::Connection.createFromConfig()
|
14
|
+
@@exampleProgramReserveAccountId = nil
|
16
15
|
|
16
|
+
@@exampleCustomerId = nil
|
17
17
|
|
18
|
-
@@
|
18
|
+
@@exampleAccountId = nil
|
19
19
|
|
20
|
-
@@
|
20
|
+
@@exampleExternalAccountId = nil
|
21
21
|
|
22
|
-
@@
|
22
|
+
@@exampleExternalToInternalTransactionId = nil
|
23
23
|
|
24
|
-
@@
|
24
|
+
@@exampleExternalToInternalTransactionTag = nil
|
25
25
|
|
26
|
-
@@
|
26
|
+
@@exampleProgramReserveToInternalTransactionId = nil
|
27
27
|
|
28
|
-
@@prepaidExternalToInternalTransactionId = nil
|
29
|
-
|
30
|
-
|
31
|
-
# nacha-specific program
|
32
|
-
|
33
|
-
@@nachaConn = CorePro::Connection.new 'corepronacha', 'corepronacha', 'pilot-api.corepro.io'
|
34
|
-
|
35
|
-
@@nachaCustomerId = nil
|
36
|
-
|
37
|
-
@@nachaAccountId = nil
|
38
|
-
|
39
|
-
@@nachaExternalAccountId = nil
|
40
|
-
|
41
|
-
@@nachaExternalToInternalTransactionId = nil
|
42
28
|
end
|
metadata
CHANGED
@@ -1,61 +1,74 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corepro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- devsupport
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: test-unit
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.2'
|
55
|
+
description: See https://docs.corepro.io for more detail.
|
42
56
|
email:
|
43
57
|
- devsupport@socialmoney.com
|
44
58
|
executables: []
|
45
59
|
extensions: []
|
46
60
|
extra_rdoc_files: []
|
47
61
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- .idea/.name
|
50
|
-
- .idea/.rakeTasks
|
51
|
-
- .idea/codeStyleSettings.xml
|
52
|
-
- .idea/corepro-sdk-ruby.iml
|
53
|
-
- .idea/encodings.xml
|
54
|
-
- .idea/misc.xml
|
55
|
-
- .idea/modules.xml
|
56
|
-
- .idea/
|
57
|
-
- .idea/
|
58
|
-
- .idea/vcs.xml
|
62
|
+
- ".gitignore"
|
63
|
+
- ".idea/.name"
|
64
|
+
- ".idea/.rakeTasks"
|
65
|
+
- ".idea/codeStyleSettings.xml"
|
66
|
+
- ".idea/corepro-sdk-ruby.iml"
|
67
|
+
- ".idea/encodings.xml"
|
68
|
+
- ".idea/misc.xml"
|
69
|
+
- ".idea/modules.xml"
|
70
|
+
- ".idea/scopes/scope_settings.xml"
|
71
|
+
- ".idea/vcs.xml"
|
59
72
|
- CorePro.gemspec
|
60
73
|
- Gemfile
|
61
74
|
- LICENSE
|
@@ -66,6 +79,7 @@ files:
|
|
66
79
|
- lib/corepro/account.rb
|
67
80
|
- lib/corepro/account_close.rb
|
68
81
|
- lib/corepro/bank_document.rb
|
82
|
+
- lib/corepro/card.rb
|
69
83
|
- lib/corepro/connection.rb
|
70
84
|
- lib/corepro/core_pro_api_exception.rb
|
71
85
|
- lib/corepro/customer.rb
|
@@ -73,6 +87,7 @@ files:
|
|
73
87
|
- lib/corepro/customer_document.rb
|
74
88
|
- lib/corepro/external_account.rb
|
75
89
|
- lib/corepro/external_account_document.rb
|
90
|
+
- lib/corepro/models/account_access.rb
|
76
91
|
- lib/corepro/models/account_id_only.rb
|
77
92
|
- lib/corepro/models/api_error.rb
|
78
93
|
- lib/corepro/models/customer_address.rb
|
@@ -90,8 +105,10 @@ files:
|
|
90
105
|
- lib/corepro/models/file_content.rb
|
91
106
|
- lib/corepro/models/json_base.rb
|
92
107
|
- lib/corepro/models/model_base.rb
|
108
|
+
- lib/corepro/models/program_account.rb
|
93
109
|
- lib/corepro/models/program_checking.rb
|
94
110
|
- lib/corepro/models/program_e_code.rb
|
111
|
+
- lib/corepro/models/program_external_account.rb
|
95
112
|
- lib/corepro/models/program_interest_rate.rb
|
96
113
|
- lib/corepro/models/program_limit.rb
|
97
114
|
- lib/corepro/models/program_prepaid.rb
|
@@ -104,20 +121,16 @@ files:
|
|
104
121
|
- lib/corepro/utils/requestor.rb
|
105
122
|
- lib/corepro/version.rb
|
106
123
|
- test.pdf
|
107
|
-
- test/
|
108
|
-
- test/
|
109
|
-
- test/
|
110
|
-
- test/
|
111
|
-
- test/ab_account_prepaid_test.rb
|
112
|
-
- test/ac_external_account_nacha_test.rb
|
113
|
-
- test/ac_external_account_prepaid_test.rb
|
124
|
+
- test/a_program_test.rb
|
125
|
+
- test/aa_customer_test.rb
|
126
|
+
- test/ab_account_test.rb
|
127
|
+
- test/ac_external_account_test.rb
|
114
128
|
- test/ad_customer_beneficiary_test.rb
|
115
129
|
- test/ae_customer_document_test.rb
|
116
130
|
- test/af_bankdocument_test.rb
|
117
131
|
- test/ag_external_account_document_test.rb
|
118
132
|
- test/ai_statement_test.rb
|
119
|
-
- test/
|
120
|
-
- test/aj_transfer_prepaid_test.rb
|
133
|
+
- test/aj_transfer_test.rb
|
121
134
|
- test/ak_transaction_test.rb
|
122
135
|
- test/core_pro_test_base.rb
|
123
136
|
homepage: https://github.com/socialmoney/corepro-sdk-ruby
|
@@ -130,34 +143,30 @@ require_paths:
|
|
130
143
|
- lib
|
131
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
132
145
|
requirements:
|
133
|
-
- -
|
146
|
+
- - "~>"
|
134
147
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
148
|
+
version: '2.4'
|
136
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
150
|
requirements:
|
138
|
-
- -
|
151
|
+
- - ">="
|
139
152
|
- !ruby/object:Gem::Version
|
140
153
|
version: '0'
|
141
154
|
requirements: []
|
142
155
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.6.11
|
144
157
|
signing_key:
|
145
158
|
specification_version: 4
|
146
|
-
summary: A Ruby SDK for consuming the
|
159
|
+
summary: A Ruby SDK for consuming the CorePro API.
|
147
160
|
test_files:
|
148
|
-
- test/
|
149
|
-
- test/
|
150
|
-
- test/
|
151
|
-
- test/
|
152
|
-
- test/ab_account_prepaid_test.rb
|
153
|
-
- test/ac_external_account_nacha_test.rb
|
154
|
-
- test/ac_external_account_prepaid_test.rb
|
161
|
+
- test/a_program_test.rb
|
162
|
+
- test/aa_customer_test.rb
|
163
|
+
- test/ab_account_test.rb
|
164
|
+
- test/ac_external_account_test.rb
|
155
165
|
- test/ad_customer_beneficiary_test.rb
|
156
166
|
- test/ae_customer_document_test.rb
|
157
167
|
- test/af_bankdocument_test.rb
|
158
168
|
- test/ag_external_account_document_test.rb
|
159
169
|
- test/ai_statement_test.rb
|
160
|
-
- test/
|
161
|
-
- test/aj_transfer_prepaid_test.rb
|
170
|
+
- test/aj_transfer_test.rb
|
162
171
|
- test/ak_transaction_test.rb
|
163
172
|
- test/core_pro_test_base.rb
|