blockchyp 2.9.6 → 2.10.0

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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +1 -8
  3. data/README.md +479 -2442
  4. data/lib/blockchyp/version.rb +1 -1
  5. data/lib/blockchyp.rb +3 -217
  6. data/lib/blockchyp_client.rb +0 -78
  7. data/test/batch_history_test.rb +6 -10
  8. data/test/boolean_prompt_test.rb +4 -10
  9. data/test/cancel_payment_link_test.rb +7 -11
  10. data/test/capture_signature_test.rb +4 -10
  11. data/test/delete_customer_test.rb +6 -10
  12. data/test/delete_token_test.rb +7 -16
  13. data/test/gateway_timeout_test.rb +3 -10
  14. data/test/get_customer_test.rb +6 -10
  15. data/test/merchant_profile_test.rb +5 -10
  16. data/test/new_transaction_display_test.rb +4 -10
  17. data/test/pan_charge_test.rb +4 -10
  18. data/test/pan_enroll_test.rb +5 -16
  19. data/test/pan_preauth_test.rb +4 -10
  20. data/test/partial_refund_test.rb +5 -10
  21. data/test/search_customer_test.rb +6 -10
  22. data/test/send_payment_link_test.rb +6 -11
  23. data/test/simple_batch_close_test.rb +6 -10
  24. data/test/simple_capture_test.rb +6 -10
  25. data/test/simple_gift_activate_test.rb +4 -10
  26. data/test/simple_message_test.rb +4 -10
  27. data/test/simple_ping_test.rb +5 -11
  28. data/test/simple_refund_test.rb +5 -10
  29. data/test/simple_reversal_test.rb +6 -10
  30. data/test/simple_void_test.rb +6 -10
  31. data/test/terminal_charge_test.rb +5 -11
  32. data/test/terminal_clear_test.rb +4 -10
  33. data/test/terminal_ebt_balance_test.rb +4 -10
  34. data/test/terminal_ebt_charge_test.rb +4 -10
  35. data/test/terminal_enroll_test.rb +4 -10
  36. data/test/terminal_gift_card_balance_test.rb +4 -10
  37. data/test/terminal_keyed_charge_test.rb +4 -10
  38. data/test/terminal_manual_ebt_charge_test.rb +4 -10
  39. data/test/terminal_preauth_test.rb +4 -10
  40. data/test/terminal_status_test.rb +4 -10
  41. data/test/terminal_timeout_test.rb +3 -10
  42. data/test/terms_and_conditions_test.rb +4 -10
  43. data/test/test_helper.rb +2 -0
  44. data/test/text_prompt_test.rb +4 -10
  45. data/test/transaction_history_test.rb +6 -10
  46. data/test/update_customer_test.rb +5 -10
  47. data/test/update_transaction_display_test.rb +4 -10
  48. metadata +2 -46
  49. data/test/activate_terminal_test.rb +0 -45
  50. data/test/add_test_merchant_test.rb +0 -56
  51. data/test/deactivate_terminal_test.rb +0 -42
  52. data/test/delete_branding_asset_test.rb +0 -50
  53. data/test/delete_media_asset_test.rb +0 -53
  54. data/test/delete_queued_transaction_test.rb +0 -56
  55. data/test/delete_slide_show_test.rb +0 -50
  56. data/test/delete_survey_question_test.rb +0 -51
  57. data/test/delete_test_merchant_test.rb +0 -59
  58. data/test/empty_branding_asset_test.rb +0 -44
  59. data/test/empty_slide_show_test.rb +0 -45
  60. data/test/get_merchants_test.rb +0 -52
  61. data/test/invite_merchant_user_test.rb +0 -45
  62. data/test/link_token_test.rb +0 -56
  63. data/test/list_queued_transactions_test.rb +0 -55
  64. data/test/list_terminals_test.rb +0 -42
  65. data/test/media_asset_test.rb +0 -57
  66. data/test/media_test.rb +0 -42
  67. data/test/media_upload_test.rb +0 -52
  68. data/test/merchant_platforms_test.rb +0 -59
  69. data/test/merchant_users_test.rb +0 -42
  70. data/test/simple_locate_test.rb +0 -44
  71. data/test/slide_show_test.rb +0 -51
  72. data/test/slide_shows_test.rb +0 -49
  73. data/test/survey_question_test.rb +0 -48
  74. data/test/survey_questions_test.rb +0 -50
  75. data/test/survey_results_test.rb +0 -48
  76. data/test/tc_delete_template_test.rb +0 -51
  77. data/test/tc_entry_test.rb +0 -56
  78. data/test/tc_log_test.rb +0 -42
  79. data/test/tc_template_test.rb +0 -53
  80. data/test/tc_template_update_test.rb +0 -48
  81. data/test/tc_templates_test.rb +0 -42
  82. data/test/terminal_branding_test.rb +0 -42
  83. data/test/terminal_queued_transaction_test.rb +0 -51
  84. data/test/testdata/aviato.png +0 -0
  85. data/test/token_metadata_test.rb +0 -55
  86. data/test/unlink_token_test.rb +0 -56
  87. data/test/update_branding_asset_test.rb +0 -62
  88. data/test/update_merchant_platforms_test.rb +0 -61
  89. data/test/update_merchant_test.rb +0 -60
  90. data/test/update_slide_show_test.rb +0 -60
  91. data/test/update_survey_question_test.rb +0 -47
  92. data/test/upload_status_test.rb +0 -53
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimplePingTest < TestCase
13
13
  def test_simple_ping
14
-
15
- puts "Running test_simple_ping..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,20 +20,17 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'simple_ping_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  test: true,
36
- terminalName: config[:defaultTerminalName]
29
+ terminalName: '$testTerminal'
37
30
  }
38
31
 
39
32
  response = blockchyp.ping(request)
33
+
40
34
  assert_not_nil(response)
41
35
  # response assertions
42
36
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimpleRefundTest < TestCase
13
13
  def test_simple_refund
14
-
15
- puts "Running test_simple_refund..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'simple_refund_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  setup_request = {
35
28
  pan: '4111111111111111',
@@ -39,6 +32,7 @@ module BlockChyp
39
32
  test: true,
40
33
  transactionRef: uuid
41
34
  }
35
+
42
36
  response = blockchyp.charge(setup_request)
43
37
 
44
38
  # Set request parameters
@@ -48,6 +42,7 @@ module BlockChyp
48
42
  }
49
43
 
50
44
  response = blockchyp.refund(request)
45
+
51
46
  assert_not_nil(response)
52
47
  # response assertions
53
48
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimpleReversalTest < TestCase
13
13
  def test_simple_reversal
14
-
15
- puts "Running test_simple_reversal..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,11 +20,8 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
-
28
-
29
-
30
23
 
24
+ test_delay(blockchyp, 'simple_reversal_test', config[:defaultTerminalName])
31
25
 
32
26
  # Set request parameters
33
27
  setup_request = {
@@ -38,6 +32,7 @@ module BlockChyp
38
32
  test: true,
39
33
  transactionRef: uuid
40
34
  }
35
+
41
36
  response = blockchyp.charge(setup_request)
42
37
 
43
38
  # Set request parameters
@@ -47,6 +42,7 @@ module BlockChyp
47
42
  }
48
43
 
49
44
  response = blockchyp.reverse(request)
45
+
50
46
  assert_not_nil(response)
51
47
  # response assertions
52
48
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimpleVoidTest < TestCase
13
13
  def test_simple_void
14
-
15
- puts "Running test_simple_void..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,11 +20,8 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
-
28
-
29
-
30
23
 
24
+ test_delay(blockchyp, 'simple_void_test', config[:defaultTerminalName])
31
25
 
32
26
  # Set request parameters
33
27
  setup_request = {
@@ -38,6 +32,7 @@ module BlockChyp
38
32
  test: true,
39
33
  transactionRef: uuid
40
34
  }
35
+
41
36
  response = blockchyp.charge(setup_request)
42
37
 
43
38
  # Set request parameters
@@ -47,6 +42,7 @@ module BlockChyp
47
42
  }
48
43
 
49
44
  response = blockchyp.void(request)
45
+
50
46
  assert_not_nil(response)
51
47
  # response assertions
52
48
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalChargeTest < TestCase
13
13
  def test_terminal_charge
14
-
15
- puts "Running test_terminal_charge..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,21 +20,18 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_charge_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
- terminalName: config[:defaultTerminalName],
28
+ terminalName: '$testTerminal',
36
29
  amount: '25.15',
37
30
  test: true
38
31
  }
39
32
 
40
33
  response = blockchyp.charge(request)
34
+
41
35
  assert_not_nil(response)
42
36
  # response assertions
43
37
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalClearTest < TestCase
13
13
  def test_terminal_clear
14
-
15
- puts "Running test_terminal_clear..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_clear_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  test: true,
@@ -37,6 +30,7 @@ module BlockChyp
37
30
  }
38
31
 
39
32
  response = blockchyp.clear(request)
33
+
40
34
  assert_not_nil(response)
41
35
  # response assertions
42
36
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalEBTBalanceTest < TestCase
13
13
  def test_terminal_ebt_balance
14
-
15
- puts "Running test_terminal_ebt_balance..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_ebt_balance_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  test: true,
@@ -38,6 +31,7 @@ module BlockChyp
38
31
  }
39
32
 
40
33
  response = blockchyp.balance(request)
34
+
41
35
  assert_not_nil(response)
42
36
  # response assertions
43
37
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalEBTChargeTest < TestCase
13
13
  def test_terminal_ebt_charge
14
-
15
- puts "Running test_terminal_ebt_charge..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_ebt_charge_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  terminalName: config[:defaultTerminalName],
@@ -39,6 +32,7 @@ module BlockChyp
39
32
  }
40
33
 
41
34
  response = blockchyp.charge(request)
35
+
42
36
  assert_not_nil(response)
43
37
  # response assertions
44
38
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalEnrollTest < TestCase
13
13
  def test_terminal_enroll
14
-
15
- puts "Running test_terminal_enroll..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_enroll_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  terminalName: config[:defaultTerminalName],
@@ -37,6 +30,7 @@ module BlockChyp
37
30
  }
38
31
 
39
32
  response = blockchyp.enroll(request)
33
+
40
34
  assert_not_nil(response)
41
35
  # response assertions
42
36
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalGiftCardBalanceTest < TestCase
13
13
  def test_terminal_gift_card_balance
14
-
15
- puts "Running test_terminal_gift_card_balance..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_gift_card_balance_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  test: true,
@@ -37,6 +30,7 @@ module BlockChyp
37
30
  }
38
31
 
39
32
  response = blockchyp.balance(request)
33
+
40
34
  assert_not_nil(response)
41
35
  # response assertions
42
36
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalKeyedChargeTest < TestCase
13
13
  def test_terminal_keyed_charge
14
-
15
- puts "Running test_terminal_keyed_charge..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_keyed_charge_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  terminalName: config[:defaultTerminalName],
@@ -39,6 +32,7 @@ module BlockChyp
39
32
  }
40
33
 
41
34
  response = blockchyp.charge(request)
35
+
42
36
  assert_not_nil(response)
43
37
  # response assertions
44
38
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalManualEBTChargeTest < TestCase
13
13
  def test_terminal_manual_ebt_charge
14
-
15
- puts "Running test_terminal_manual_ebt_charge..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_manual_ebt_charge_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  terminalName: config[:defaultTerminalName],
@@ -40,6 +33,7 @@ module BlockChyp
40
33
  }
41
34
 
42
35
  response = blockchyp.charge(request)
36
+
43
37
  assert_not_nil(response)
44
38
  # response assertions
45
39
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalPreauthTest < TestCase
13
13
  def test_terminal_preauth
14
-
15
- puts "Running test_terminal_preauth..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_preauth_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  terminalName: config[:defaultTerminalName],
@@ -38,6 +31,7 @@ module BlockChyp
38
31
  }
39
32
 
40
33
  response = blockchyp.preauth(request)
34
+
41
35
  assert_not_nil(response)
42
36
  # response assertions
43
37
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalStatusTest < TestCase
13
13
  def test_terminal_status
14
-
15
- puts "Running test_terminal_status..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,19 +20,16 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_status_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  terminalName: config[:defaultTerminalName]
36
29
  }
37
30
 
38
31
  response = blockchyp.terminal_status(request)
32
+
39
33
  assert_not_nil(response)
40
34
  # response assertions
41
35
  assert(response[:success])
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
4
4
  # governed by a license that can be found in the LICENSE file.
5
5
  #
6
- # This file was generated automatically by the BlockChyp SDK Generator.
7
- # Changes to this file will be lost every time the code is regenerated.
6
+ # This file was generated automatically. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class TerminalTimeoutTest < TestCase
13
13
  def test_terminal_timeout
14
-
15
- puts "Running test_terminal_timeout..."
16
-
17
14
  config = load_test_config
18
15
 
19
16
  blockchyp = BlockChyp.new(
@@ -23,13 +20,9 @@ module BlockChyp
23
20
  )
24
21
  blockchyp.gateway_host = config[:gatewayHost]
25
22
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
- blockchyp.dashboard_host = config[:dashboardHost]
27
23
 
28
24
  test_delay(blockchyp, 'terminal_timeout_test', config[:defaultTerminalName])
29
25
 
30
-
31
-
32
-
33
26
  # Set request parameters
34
27
  request = {
35
28
  timeout: 1,