blockchyp 2.12.1 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2356 -546
  3. data/lib/blockchyp/version.rb +1 -1
  4. data/lib/blockchyp.rb +202 -8
  5. data/lib/blockchyp_client.rb +78 -0
  6. data/test/activate_terminal_test.rb +45 -0
  7. data/test/add_test_merchant_test.rb +56 -0
  8. data/test/batch_history_test.rb +10 -6
  9. data/test/boolean_prompt_test.rb +10 -4
  10. data/test/cancel_payment_link_test.rb +10 -6
  11. data/test/capture_signature_test.rb +10 -4
  12. data/test/deactivate_terminal_test.rb +42 -0
  13. data/test/delete_branding_asset_test.rb +50 -0
  14. data/test/delete_customer_test.rb +10 -6
  15. data/test/delete_media_asset_test.rb +53 -0
  16. data/test/delete_queued_transaction_test.rb +56 -0
  17. data/test/delete_slide_show_test.rb +50 -0
  18. data/test/delete_survey_question_test.rb +51 -0
  19. data/test/delete_test_merchant_test.rb +59 -0
  20. data/test/delete_token_test.rb +10 -6
  21. data/test/empty_branding_asset_test.rb +44 -0
  22. data/test/empty_slide_show_test.rb +45 -0
  23. data/test/gateway_timeout_test.rb +10 -3
  24. data/test/get_customer_test.rb +10 -6
  25. data/test/get_merchants_test.rb +52 -0
  26. data/test/invite_merchant_user_test.rb +45 -0
  27. data/test/link_token_test.rb +10 -6
  28. data/test/list_queued_transactions_test.rb +55 -0
  29. data/test/list_terminals_test.rb +42 -0
  30. data/test/media_asset_test.rb +57 -0
  31. data/test/media_test.rb +42 -0
  32. data/test/media_upload_test.rb +52 -0
  33. data/test/merchant_platforms_test.rb +59 -0
  34. data/test/merchant_profile_test.rb +10 -5
  35. data/test/merchant_users_test.rb +42 -0
  36. data/test/new_transaction_display_test.rb +10 -4
  37. data/test/pan_charge_test.rb +10 -4
  38. data/test/pan_enroll_test.rb +10 -4
  39. data/test/pan_preauth_test.rb +10 -4
  40. data/test/partial_refund_test.rb +10 -5
  41. data/test/search_customer_test.rb +10 -6
  42. data/test/send_payment_link_test.rb +10 -5
  43. data/test/simple_batch_close_test.rb +10 -6
  44. data/test/simple_capture_test.rb +10 -6
  45. data/test/simple_gift_activate_test.rb +10 -4
  46. data/test/simple_locate_test.rb +10 -5
  47. data/test/simple_message_test.rb +10 -4
  48. data/test/simple_ping_test.rb +10 -4
  49. data/test/simple_refund_test.rb +10 -5
  50. data/test/simple_reversal_test.rb +10 -6
  51. data/test/simple_void_test.rb +10 -6
  52. data/test/slide_show_test.rb +51 -0
  53. data/test/slide_shows_test.rb +49 -0
  54. data/test/survey_question_test.rb +48 -0
  55. data/test/survey_questions_test.rb +50 -0
  56. data/test/survey_results_test.rb +48 -0
  57. data/test/tc_delete_template_test.rb +51 -0
  58. data/test/tc_entry_test.rb +56 -0
  59. data/test/tc_log_test.rb +42 -0
  60. data/test/tc_template_test.rb +53 -0
  61. data/test/tc_template_update_test.rb +48 -0
  62. data/test/tc_templates_test.rb +42 -0
  63. data/test/terminal_branding_test.rb +42 -0
  64. data/test/terminal_charge_test.rb +10 -4
  65. data/test/terminal_clear_test.rb +10 -4
  66. data/test/terminal_ebt_balance_test.rb +10 -4
  67. data/test/terminal_ebt_charge_test.rb +10 -4
  68. data/test/terminal_enroll_test.rb +10 -4
  69. data/test/terminal_gift_card_balance_test.rb +10 -4
  70. data/test/terminal_keyed_charge_test.rb +10 -4
  71. data/test/terminal_manual_ebt_charge_test.rb +10 -4
  72. data/test/terminal_preauth_test.rb +10 -4
  73. data/test/terminal_queued_transaction_test.rb +51 -0
  74. data/test/terminal_status_test.rb +10 -4
  75. data/test/terminal_timeout_test.rb +10 -3
  76. data/test/terms_and_conditions_test.rb +10 -4
  77. data/test/test_helper.rb +0 -2
  78. data/test/testdata/aviato.png +0 -0
  79. data/test/text_prompt_test.rb +10 -4
  80. data/test/token_metadata_test.rb +10 -6
  81. data/test/transaction_history_test.rb +10 -6
  82. data/test/unlink_token_test.rb +10 -6
  83. data/test/update_branding_asset_test.rb +62 -0
  84. data/test/update_customer_test.rb +10 -5
  85. data/test/update_merchant_platforms_test.rb +61 -0
  86. data/test/update_merchant_test.rb +60 -0
  87. data/test/update_slide_show_test.rb +60 -0
  88. data/test/update_survey_question_test.rb +47 -0
  89. data/test/update_transaction_display_test.rb +10 -4
  90. data/test/upload_status_test.rb +53 -0
  91. metadata +42 -2
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class PartialRefundTest < TestCase
13
13
  def test_partial_refund
14
+
15
+ puts "Running test_partial_refund..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,9 +23,13 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
23
27
 
24
28
  test_delay(blockchyp, 'partial_refund_test', config[:defaultTerminalName])
25
29
 
30
+
31
+
32
+
26
33
  # Set request parameters
27
34
  setup_request = {
28
35
  pan: '4111111111111111',
@@ -32,7 +39,6 @@ module BlockChyp
32
39
  test: true,
33
40
  transactionRef: uuid
34
41
  }
35
-
36
42
  response = blockchyp.charge(setup_request)
37
43
 
38
44
  # Set request parameters
@@ -43,7 +49,6 @@ module BlockChyp
43
49
  }
44
50
 
45
51
  response = blockchyp.refund(request)
46
-
47
52
  assert_not_nil(response)
48
53
  # response assertions
49
54
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SearchCustomerTest < TestCase
13
13
  def test_search_customer
14
+
15
+ puts "Running test_search_customer..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,8 +23,11 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
23
30
 
24
- test_delay(blockchyp, 'search_customer_test', config[:defaultTerminalName])
25
31
 
26
32
  # Set request parameters
27
33
  setup_request = {
@@ -33,7 +39,6 @@ module BlockChyp
33
39
  smsNumber: '(123) 123-1234'
34
40
  }
35
41
  }
36
-
37
42
  response = blockchyp.update_customer(setup_request)
38
43
 
39
44
  # Set request parameters
@@ -42,7 +47,6 @@ module BlockChyp
42
47
  }
43
48
 
44
49
  response = blockchyp.customer_search(request)
45
-
46
50
  assert_not_nil(response)
47
51
  # response assertions
48
52
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SendPaymentLinkTest < TestCase
13
13
  def test_send_payment_link
14
+
15
+ puts "Running test_send_payment_link..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,8 +23,11 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
23
30
 
24
- test_delay(blockchyp, 'send_payment_link_test', config[:defaultTerminalName])
25
31
 
26
32
  # Set request parameters
27
33
  request = {
@@ -52,7 +58,6 @@ module BlockChyp
52
58
  }
53
59
 
54
60
  response = blockchyp.send_payment_link(request)
55
-
56
61
  assert_not_nil(response)
57
62
  # response assertions
58
63
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimpleBatchCloseTest < TestCase
13
13
  def test_simple_batch_close
14
+
15
+ puts "Running test_simple_batch_close..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,8 +23,11 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
23
30
 
24
- test_delay(blockchyp, 'simple_batch_close_test', config[:defaultTerminalName])
25
31
 
26
32
  # Set request parameters
27
33
  setup_request = {
@@ -32,7 +38,6 @@ module BlockChyp
32
38
  test: true,
33
39
  transactionRef: uuid
34
40
  }
35
-
36
41
  response = blockchyp.charge(setup_request)
37
42
 
38
43
  # Set request parameters
@@ -41,7 +46,6 @@ module BlockChyp
41
46
  }
42
47
 
43
48
  response = blockchyp.close_batch(request)
44
-
45
49
  assert_not_nil(response)
46
50
  # response assertions
47
51
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimpleCaptureTest < TestCase
13
13
  def test_simple_capture
14
+
15
+ puts "Running test_simple_capture..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,8 +23,11 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
23
30
 
24
- test_delay(blockchyp, 'simple_capture_test', config[:defaultTerminalName])
25
31
 
26
32
  # Set request parameters
27
33
  setup_request = {
@@ -31,7 +37,6 @@ module BlockChyp
31
37
  amount: '25.55',
32
38
  test: true
33
39
  }
34
-
35
40
  response = blockchyp.preauth(setup_request)
36
41
 
37
42
  # Set request parameters
@@ -41,7 +46,6 @@ module BlockChyp
41
46
  }
42
47
 
43
48
  response = blockchyp.capture(request)
44
-
45
49
  assert_not_nil(response)
46
50
  # response assertions
47
51
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimpleGiftActivateTest < TestCase
13
13
  def test_simple_gift_activate
14
+
15
+ puts "Running test_simple_gift_activate..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,9 +23,13 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
23
27
 
24
28
  test_delay(blockchyp, 'simple_gift_activate_test', config[:defaultTerminalName])
25
29
 
30
+
31
+
32
+
26
33
  # Set request parameters
27
34
  request = {
28
35
  test: true,
@@ -31,7 +38,6 @@ module BlockChyp
31
38
  }
32
39
 
33
40
  response = blockchyp.gift_activate(request)
34
-
35
41
  assert_not_nil(response)
36
42
  # response assertions
37
43
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimpleLocateTest < TestCase
13
13
  def test_simple_locate
14
+
15
+ puts "Running test_simple_locate..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,8 +23,11 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
23
30
 
24
- test_delay(blockchyp, 'simple_locate_test', config[:defaultTerminalName])
25
31
 
26
32
  # Set request parameters
27
33
  request = {
@@ -30,7 +36,6 @@ module BlockChyp
30
36
  }
31
37
 
32
38
  response = blockchyp.locate(request)
33
-
34
39
  assert_not_nil(response)
35
40
  # response assertions
36
41
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
8
8
 
9
9
  require ::File.expand_path('test_helper', __dir__)
10
10
 
11
11
  module BlockChyp
12
12
  class SimpleMessageTest < TestCase
13
13
  def test_simple_message
14
+
15
+ puts "Running test_simple_message..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,9 +23,13 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
23
27
 
24
28
  test_delay(blockchyp, 'simple_message_test', config[:defaultTerminalName])
25
29
 
30
+
31
+
32
+
26
33
  # Set request parameters
27
34
  request = {
28
35
  test: true,
@@ -31,7 +38,6 @@ module BlockChyp
31
38
  }
32
39
 
33
40
  response = blockchyp.message(request)
34
-
35
41
  assert_not_nil(response)
36
42
  # response assertions
37
43
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
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
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,9 +23,13 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
23
27
 
24
28
  test_delay(blockchyp, 'simple_ping_test', config[:defaultTerminalName])
25
29
 
30
+
31
+
32
+
26
33
  # Set request parameters
27
34
  request = {
28
35
  test: true,
@@ -30,7 +37,6 @@ module BlockChyp
30
37
  }
31
38
 
32
39
  response = blockchyp.ping(request)
33
-
34
40
  assert_not_nil(response)
35
41
  # response assertions
36
42
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
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
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,9 +23,13 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
23
27
 
24
28
  test_delay(blockchyp, 'simple_refund_test', config[:defaultTerminalName])
25
29
 
30
+
31
+
32
+
26
33
  # Set request parameters
27
34
  setup_request = {
28
35
  pan: '4111111111111111',
@@ -32,7 +39,6 @@ module BlockChyp
32
39
  test: true,
33
40
  transactionRef: uuid
34
41
  }
35
-
36
42
  response = blockchyp.charge(setup_request)
37
43
 
38
44
  # Set request parameters
@@ -42,7 +48,6 @@ module BlockChyp
42
48
  }
43
49
 
44
50
  response = blockchyp.refund(request)
45
-
46
51
  assert_not_nil(response)
47
52
  # response assertions
48
53
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
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
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,8 +23,11 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
23
30
 
24
- test_delay(blockchyp, 'simple_reversal_test', config[:defaultTerminalName])
25
31
 
26
32
  # Set request parameters
27
33
  setup_request = {
@@ -32,7 +38,6 @@ module BlockChyp
32
38
  test: true,
33
39
  transactionRef: uuid
34
40
  }
35
-
36
41
  response = blockchyp.charge(setup_request)
37
42
 
38
43
  # Set request parameters
@@ -42,7 +47,6 @@ module BlockChyp
42
47
  }
43
48
 
44
49
  response = blockchyp.reverse(request)
45
-
46
50
  assert_not_nil(response)
47
51
  # response assertions
48
52
  assert(response[:success])
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is
3
+ # Copyright 2019-2022 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. Changes to this file will be lost
7
- # every time the code is regenerated.
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.
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
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,8 +23,11 @@ module BlockChyp
20
23
  )
21
24
  blockchyp.gateway_host = config[:gatewayHost]
22
25
  blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
23
30
 
24
- test_delay(blockchyp, 'simple_void_test', config[:defaultTerminalName])
25
31
 
26
32
  # Set request parameters
27
33
  setup_request = {
@@ -32,7 +38,6 @@ module BlockChyp
32
38
  test: true,
33
39
  transactionRef: uuid
34
40
  }
35
-
36
41
  response = blockchyp.charge(setup_request)
37
42
 
38
43
  # Set request parameters
@@ -42,7 +47,6 @@ module BlockChyp
42
47
  }
43
48
 
44
49
  response = blockchyp.void(request)
45
-
46
50
  assert_not_nil(response)
47
51
  # response assertions
48
52
  assert(response[:success])
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
4
+ # governed by a license that can be found in the LICENSE file.
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.
8
+
9
+ require ::File.expand_path('test_helper', __dir__)
10
+
11
+ module BlockChyp
12
+ class SlideShowTest < TestCase
13
+ def test_slide_show
14
+
15
+ puts "Running test_slide_show..."
16
+
17
+ config = load_test_config
18
+
19
+ blockchyp = BlockChyp.new(
20
+ config[:apiKey],
21
+ config[:bearerToken],
22
+ config[:signingKey]
23
+ )
24
+ blockchyp.gateway_host = config[:gatewayHost]
25
+ blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
30
+
31
+
32
+ # Set request parameters
33
+ setup_request = {
34
+ name: 'Test Slide Show',
35
+ delay: 5
36
+ }
37
+ response = blockchyp.update_slide_show(setup_request)
38
+
39
+ # Set request parameters
40
+ request = {
41
+ slideShowId: response[:id]
42
+ }
43
+
44
+ response = blockchyp.slide_show(request)
45
+ assert_not_nil(response)
46
+ # response assertions
47
+ assert(response[:success])
48
+ assert_equal('Test Slide Show', response[:name])
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
4
+ # governed by a license that can be found in the LICENSE file.
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.
8
+
9
+ require ::File.expand_path('test_helper', __dir__)
10
+
11
+ module BlockChyp
12
+ class SlideShowsTest < TestCase
13
+ def test_slide_shows
14
+
15
+ puts "Running test_slide_shows..."
16
+
17
+ config = load_test_config
18
+
19
+ blockchyp = BlockChyp.new(
20
+ config[:apiKey],
21
+ config[:bearerToken],
22
+ config[:signingKey]
23
+ )
24
+ blockchyp.gateway_host = config[:gatewayHost]
25
+ blockchyp.test_gateway_host = config[:testGatewayHost]
26
+ blockchyp.dashboard_host = config[:dashboardHost]
27
+
28
+
29
+
30
+
31
+
32
+ # Set request parameters
33
+ setup_request = {
34
+ name: 'Test Slide Show',
35
+ delay: 5
36
+ }
37
+ response = blockchyp.update_slide_show(setup_request)
38
+
39
+ # Set request parameters
40
+ request = {
41
+ }
42
+
43
+ response = blockchyp.slide_shows(request)
44
+ assert_not_nil(response)
45
+ # response assertions
46
+ assert(response[:success])
47
+ end
48
+ end
49
+ end