blockchyp 2.9.3 → 2.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +8 -1
  3. data/README.md +2605 -477
  4. data/lib/blockchyp/version.rb +1 -1
  5. data/lib/blockchyp.rb +242 -3
  6. data/lib/blockchyp_client.rb +80 -0
  7. data/test/activate_terminal_test.rb +45 -0
  8. data/test/add_test_merchant_test.rb +56 -0
  9. data/test/batch_history_test.rb +10 -6
  10. data/test/boolean_prompt_test.rb +12 -6
  11. data/test/cancel_payment_link_test.rb +72 -0
  12. data/test/capture_signature_test.rb +12 -6
  13. data/test/deactivate_terminal_test.rb +42 -0
  14. data/test/delete_branding_asset_test.rb +50 -0
  15. data/test/delete_customer_test.rb +55 -0
  16. data/test/delete_media_asset_test.rb +53 -0
  17. data/test/delete_queued_transaction_test.rb +56 -0
  18. data/test/delete_slide_show_test.rb +50 -0
  19. data/test/delete_survey_question_test.rb +51 -0
  20. data/test/delete_test_merchant_test.rb +59 -0
  21. data/test/delete_token_test.rb +55 -0
  22. data/test/empty_branding_asset_test.rb +44 -0
  23. data/test/empty_slide_show_test.rb +45 -0
  24. data/test/gateway_timeout_test.rb +11 -4
  25. data/test/get_customer_test.rb +10 -6
  26. data/test/get_merchants_test.rb +52 -0
  27. data/test/invite_merchant_user_test.rb +45 -0
  28. data/test/link_token_test.rb +56 -0
  29. data/test/list_queued_transactions_test.rb +55 -0
  30. data/test/list_terminals_test.rb +42 -0
  31. data/test/media_asset_test.rb +57 -0
  32. data/test/media_test.rb +42 -0
  33. data/test/media_upload_test.rb +52 -0
  34. data/test/merchant_platforms_test.rb +59 -0
  35. data/test/merchant_profile_test.rb +10 -5
  36. data/test/merchant_users_test.rb +42 -0
  37. data/test/new_transaction_display_test.rb +12 -6
  38. data/test/pan_charge_test.rb +11 -5
  39. data/test/pan_enroll_test.rb +17 -6
  40. data/test/pan_preauth_test.rb +11 -5
  41. data/test/partial_refund_test.rb +11 -6
  42. data/test/search_customer_test.rb +10 -6
  43. data/test/send_payment_link_test.rb +11 -6
  44. data/test/simple_batch_close_test.rb +10 -6
  45. data/test/simple_capture_test.rb +10 -6
  46. data/test/simple_gift_activate_test.rb +12 -6
  47. data/test/simple_locate_test.rb +44 -0
  48. data/test/simple_message_test.rb +12 -6
  49. data/test/simple_ping_test.rb +12 -6
  50. data/test/simple_refund_test.rb +11 -6
  51. data/test/simple_reversal_test.rb +10 -6
  52. data/test/simple_void_test.rb +10 -6
  53. data/test/slide_show_test.rb +51 -0
  54. data/test/slide_shows_test.rb +49 -0
  55. data/test/survey_question_test.rb +48 -0
  56. data/test/survey_questions_test.rb +50 -0
  57. data/test/survey_results_test.rb +48 -0
  58. data/test/tc_delete_template_test.rb +51 -0
  59. data/test/tc_entry_test.rb +56 -0
  60. data/test/tc_log_test.rb +42 -0
  61. data/test/tc_template_test.rb +53 -0
  62. data/test/tc_template_update_test.rb +48 -0
  63. data/test/tc_templates_test.rb +42 -0
  64. data/test/terminal_branding_test.rb +42 -0
  65. data/test/terminal_charge_test.rb +12 -6
  66. data/test/terminal_clear_test.rb +12 -6
  67. data/test/terminal_ebt_balance_test.rb +12 -6
  68. data/test/terminal_ebt_charge_test.rb +12 -6
  69. data/test/terminal_enroll_test.rb +12 -6
  70. data/test/terminal_gift_card_balance_test.rb +12 -6
  71. data/test/terminal_keyed_charge_test.rb +12 -6
  72. data/test/terminal_manual_ebt_charge_test.rb +12 -6
  73. data/test/terminal_preauth_test.rb +12 -6
  74. data/test/terminal_queued_transaction_test.rb +51 -0
  75. data/test/terminal_status_test.rb +12 -6
  76. data/test/terminal_timeout_test.rb +12 -5
  77. data/test/terms_and_conditions_test.rb +12 -6
  78. data/test/test_helper.rb +2 -4
  79. data/test/testdata/aviato.png +0 -0
  80. data/test/text_prompt_test.rb +12 -6
  81. data/test/token_metadata_test.rb +55 -0
  82. data/test/transaction_history_test.rb +10 -6
  83. data/test/unlink_token_test.rb +56 -0
  84. data/test/update_branding_asset_test.rb +62 -0
  85. data/test/update_customer_test.rb +10 -5
  86. data/test/update_merchant_platforms_test.rb +61 -0
  87. data/test/update_merchant_test.rb +60 -0
  88. data/test/update_slide_show_test.rb +60 -0
  89. data/test/update_survey_question_test.rb +47 -0
  90. data/test/update_transaction_display_test.rb +12 -6
  91. data/test/upload_status_test.rb +53 -0
  92. metadata +49 -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 CaptureSignatureTest < TestCase
13
13
  def test_capture_signature
14
+
15
+ puts "Running test_capture_signature..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,18 +23,21 @@ 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
+ test_delay(blockchyp, 'capture_signature_test', config[:defaultTerminalName])
29
+
30
+
23
31
 
24
- test_delay(blockchyp, 'capture_signature_test')
25
32
 
26
33
  # Set request parameters
27
34
  request = {
28
- terminalName: 'Test Terminal',
35
+ terminalName: config[:defaultTerminalName],
29
36
  sigFormat: SignatureFormat::PNG,
30
37
  sigWidth: 200
31
38
  }
32
39
 
33
40
  response = blockchyp.capture_signature(request)
34
-
35
41
  assert_not_nil(response)
36
42
  # response assertions
37
43
  assert(response[:success])
@@ -0,0 +1,42 @@
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 DeactivateTerminalTest < TestCase
13
+ def test_deactivate_terminal
14
+
15
+ puts "Running test_deactivate_terminal..."
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
+ request = {
34
+ terminalId: uuid
35
+ }
36
+
37
+ assert_raise RuntimeError do
38
+ blockchyp.deactivate_terminal(request)
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,50 @@
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 DeleteBrandingAssetTest < TestCase
13
+ def test_delete_branding_asset
14
+
15
+ puts "Running test_delete_branding_asset..."
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
+ notes: 'Empty Asset',
35
+ enabled: false
36
+ }
37
+ response = blockchyp.update_branding_asset(setup_request)
38
+
39
+ # Set request parameters
40
+ request = {
41
+ assetId: response[:id]
42
+ }
43
+
44
+ response = blockchyp.delete_branding_asset(request)
45
+ assert_not_nil(response)
46
+ # response assertions
47
+ assert(response[:success])
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,55 @@
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 DeleteCustomerTest < TestCase
13
+ def test_delete_customer
14
+
15
+ puts "Running test_delete_customer..."
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
+ customer: {
35
+ firstName: 'Test',
36
+ lastName: 'Customer',
37
+ companyName: 'Test Company',
38
+ emailAddress: 'support@blockchyp.com',
39
+ smsNumber: '(123) 123-1234'
40
+ }
41
+ }
42
+ response = blockchyp.update_customer(setup_request)
43
+
44
+ # Set request parameters
45
+ request = {
46
+ customerId: response[:customer][:id]
47
+ }
48
+
49
+ response = blockchyp.delete_customer(request)
50
+ assert_not_nil(response)
51
+ # response assertions
52
+ assert(response[:success])
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,53 @@
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 DeleteMediaAssetTest < TestCase
13
+ def test_delete_media_asset
14
+
15
+ puts "Running test_delete_media_asset..."
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
+ fileName: 'aviato.png',
35
+ fileSize: 18843,
36
+ uploadId: uuid
37
+ }
38
+ file = File.open("test/testdata/aviato.png")
39
+ content = file.read
40
+ response = blockchyp.upload_media(setup_request, content)
41
+
42
+ # Set request parameters
43
+ request = {
44
+ mediaId: response[:id]
45
+ }
46
+
47
+ response = blockchyp.delete_media_asset(request)
48
+ assert_not_nil(response)
49
+ # response assertions
50
+ assert(response[:success])
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,56 @@
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 DeleteQueuedTransactionTest < TestCase
13
+ def test_delete_queued_transaction
14
+
15
+ puts "Running test_delete_queued_transaction..."
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
+ test_delay(blockchyp, 'delete_queued_transaction_test', config[:defaultTerminalName])
29
+
30
+
31
+
32
+
33
+ # Set request parameters
34
+ setup_request = {
35
+ terminalName: config[:defaultTerminalName],
36
+ transactionRef: uuid,
37
+ description: '1060 West Addison',
38
+ amount: '25.15',
39
+ test: true,
40
+ queue: true
41
+ }
42
+ response = blockchyp.charge(setup_request)
43
+
44
+ # Set request parameters
45
+ request = {
46
+ terminalName: config[:defaultTerminalName],
47
+ transactionRef: '*'
48
+ }
49
+
50
+ response = blockchyp.delete_queued_transaction(request)
51
+ assert_not_nil(response)
52
+ # response assertions
53
+ assert(response[:success])
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,50 @@
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 DeleteSlideShowTest < TestCase
13
+ def test_delete_slide_show
14
+
15
+ puts "Running test_delete_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.delete_slide_show(request)
45
+ assert_not_nil(response)
46
+ # response assertions
47
+ assert(response[:success])
48
+ end
49
+ end
50
+ end
@@ -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 DeleteSurveyQuestionTest < TestCase
13
+ def test_delete_survey_question
14
+
15
+ puts "Running test_delete_survey_question..."
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
+ ordinal: 1,
35
+ questionText: 'Would you shop here again?',
36
+ questionType: 'yes_no'
37
+ }
38
+ response = blockchyp.update_survey_question(setup_request)
39
+
40
+ # Set request parameters
41
+ request = {
42
+ questionId: response[:id]
43
+ }
44
+
45
+ response = blockchyp.delete_survey_question(request)
46
+ assert_not_nil(response)
47
+ # response assertions
48
+ assert(response[:success])
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,59 @@
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 DeleteTestMerchantTest < TestCase
13
+ def test_delete_test_merchant
14
+
15
+ puts "Running test_delete_test_merchant..."
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
+ profile = config[:profiles][:partner]
30
+ blockchyp = BlockChyp.new(
31
+ profile[:apiKey],
32
+ profile[:bearerToken],
33
+ profile[:signingKey]
34
+ )
35
+ blockchyp.gateway_host = config[:gatewayHost]
36
+ blockchyp.test_gateway_host = config[:testGatewayHost]
37
+ blockchyp.dashboard_host = config[:dashboardHost]
38
+
39
+
40
+
41
+ # Set request parameters
42
+ setup_request = {
43
+ dbaName: 'Test Merchant',
44
+ companyName: 'Test Merchant'
45
+ }
46
+ response = blockchyp.add_test_merchant(setup_request)
47
+
48
+ # Set request parameters
49
+ request = {
50
+ merchantId: response[:merchantId]
51
+ }
52
+
53
+ response = blockchyp.delete_test_merchant(request)
54
+ assert_not_nil(response)
55
+ # response assertions
56
+ assert(response[:success])
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,55 @@
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 DeleteTokenTest < TestCase
13
+ def test_delete_token
14
+
15
+ puts "Running test_delete_token..."
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
+ pan: '4111111111111111',
35
+ test: true,
36
+ customer: {
37
+ customerRef: 'TESTCUSTOMER',
38
+ firstName: 'Test',
39
+ lastName: 'Customer'
40
+ }
41
+ }
42
+ response = blockchyp.enroll(setup_request)
43
+
44
+ # Set request parameters
45
+ request = {
46
+ token: response[:token]
47
+ }
48
+
49
+ response = blockchyp.delete_token(request)
50
+ assert_not_nil(response)
51
+ # response assertions
52
+ assert(response[:success])
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,44 @@
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 EmptyBrandingAssetTest < TestCase
13
+ def test_empty_branding_asset
14
+
15
+ puts "Running test_empty_branding_asset..."
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
+ request = {
34
+ notes: 'Empty Asset',
35
+ enabled: false
36
+ }
37
+
38
+ response = blockchyp.update_branding_asset(request)
39
+ assert_not_nil(response)
40
+ # response assertions
41
+ assert(response[:success])
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,45 @@
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 EmptySlideShowTest < TestCase
13
+ def test_empty_slide_show
14
+
15
+ puts "Running test_empty_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
+ request = {
34
+ name: 'Test Slide Show',
35
+ delay: 5
36
+ }
37
+
38
+ response = blockchyp.update_slide_show(request)
39
+ assert_not_nil(response)
40
+ # response assertions
41
+ assert(response[:success])
42
+ assert_equal('Test Slide Show', response[:name])
43
+ end
44
+ end
45
+ end
@@ -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 GatewayTimeoutTest < TestCase
13
13
  def test_gateway_timeout
14
+
15
+ puts "Running test_gateway_timeout..."
16
+
14
17
  config = load_test_config
15
18
 
16
19
  blockchyp = BlockChyp.new(
@@ -20,8 +23,12 @@ 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
+ test_delay(blockchyp, 'gateway_timeout_test', config[:defaultTerminalName])
29
+
30
+
23
31
 
24
- test_delay(blockchyp, 'gateway_timeout_test')
25
32
 
26
33
  # Set request parameters
27
34
  request = {