blockchyp 1.16.1 → 1.24.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -111
  3. data/lib/blockchyp/version.rb +1 -1
  4. data/lib/blockchyp.rb +1 -17
  5. data/test/activate_terminal_test.rb +1 -1
  6. data/test/add_test_merchant_test.rb +1 -1
  7. data/test/batch_history_test.rb +1 -1
  8. data/test/boolean_prompt_test.rb +1 -1
  9. data/test/cancel_payment_link_test.rb +1 -1
  10. data/test/capture_signature_test.rb +1 -1
  11. data/test/deactivate_terminal_test.rb +1 -1
  12. data/test/delete_branding_asset_test.rb +1 -1
  13. data/test/delete_customer_test.rb +1 -1
  14. data/test/delete_media_asset_test.rb +1 -1
  15. data/test/delete_queued_transaction_test.rb +1 -1
  16. data/test/delete_slide_show_test.rb +1 -1
  17. data/test/delete_survey_question_test.rb +1 -1
  18. data/test/delete_test_merchant_test.rb +1 -1
  19. data/test/delete_token_test.rb +1 -1
  20. data/test/empty_branding_asset_test.rb +1 -1
  21. data/test/empty_slide_show_test.rb +1 -1
  22. data/test/gateway_timeout_test.rb +1 -1
  23. data/test/get_customer_test.rb +1 -1
  24. data/test/get_merchants_test.rb +1 -1
  25. data/test/invite_merchant_user_test.rb +1 -1
  26. data/test/link_token_test.rb +1 -1
  27. data/test/list_queued_transactions_test.rb +1 -1
  28. data/test/list_terminals_test.rb +1 -1
  29. data/test/media_asset_test.rb +1 -1
  30. data/test/media_test.rb +1 -1
  31. data/test/media_upload_test.rb +1 -1
  32. data/test/merchant_platforms_test.rb +1 -1
  33. data/test/merchant_profile_test.rb +1 -1
  34. data/test/merchant_users_test.rb +1 -1
  35. data/test/new_transaction_display_test.rb +1 -1
  36. data/test/pan_charge_test.rb +1 -1
  37. data/test/pan_enroll_test.rb +1 -1
  38. data/test/pan_preauth_test.rb +1 -1
  39. data/test/partial_refund_test.rb +1 -1
  40. data/test/search_customer_test.rb +1 -1
  41. data/test/send_payment_link_test.rb +1 -1
  42. data/test/simple_batch_close_test.rb +1 -1
  43. data/test/simple_capture_test.rb +1 -1
  44. data/test/simple_gift_activate_test.rb +1 -1
  45. data/test/simple_locate_test.rb +1 -1
  46. data/test/simple_message_test.rb +1 -1
  47. data/test/simple_ping_test.rb +1 -1
  48. data/test/simple_refund_test.rb +1 -1
  49. data/test/simple_reversal_test.rb +1 -1
  50. data/test/simple_void_test.rb +1 -1
  51. data/test/slide_show_test.rb +1 -1
  52. data/test/slide_shows_test.rb +1 -1
  53. data/test/survey_question_test.rb +1 -1
  54. data/test/survey_questions_test.rb +1 -1
  55. data/test/survey_results_test.rb +1 -1
  56. data/test/tc_delete_template_test.rb +1 -1
  57. data/test/tc_entry_test.rb +1 -1
  58. data/test/tc_log_test.rb +1 -1
  59. data/test/tc_template_test.rb +1 -1
  60. data/test/tc_template_update_test.rb +1 -1
  61. data/test/tc_templates_test.rb +1 -1
  62. data/test/terminal_branding_test.rb +1 -1
  63. data/test/terminal_charge_test.rb +1 -1
  64. data/test/terminal_clear_test.rb +1 -1
  65. data/test/terminal_ebt_balance_test.rb +1 -1
  66. data/test/terminal_ebt_charge_test.rb +1 -1
  67. data/test/terminal_enroll_test.rb +1 -1
  68. data/test/terminal_gift_card_balance_test.rb +1 -1
  69. data/test/terminal_keyed_charge_test.rb +1 -1
  70. data/test/terminal_manual_ebt_charge_test.rb +1 -1
  71. data/test/terminal_preauth_test.rb +1 -1
  72. data/test/terminal_queued_transaction_test.rb +1 -1
  73. data/test/terminal_status_test.rb +1 -1
  74. data/test/terminal_timeout_test.rb +1 -1
  75. data/test/terms_and_conditions_test.rb +1 -1
  76. data/test/text_prompt_test.rb +1 -1
  77. data/test/token_metadata_test.rb +1 -1
  78. data/test/transaction_history_test.rb +1 -1
  79. data/test/unlink_token_test.rb +1 -1
  80. data/test/update_branding_asset_test.rb +1 -1
  81. data/test/update_customer_test.rb +1 -1
  82. data/test/update_merchant_platforms_test.rb +1 -1
  83. data/test/update_merchant_test.rb +1 -1
  84. data/test/update_slide_show_test.rb +1 -1
  85. data/test/update_survey_question_test.rb +1 -1
  86. data/test/update_transaction_display_test.rb +1 -1
  87. data/test/upload_status_test.rb +1 -1
  88. metadata +2 -4
  89. data/test/payment_link_status_test.rb +0 -72
  90. data/test/resend_payment_link_test.rb +0 -49
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
data/test/tc_log_test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019-2023 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
6
  # This file was generated automatically by the BlockChyp SDK Generator.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blockchyp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.1
4
+ version: 1.24.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlockChyp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-18 00:00:00.000000000 Z
11
+ date: 2022-09-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -59,8 +59,6 @@ files:
59
59
  - test/pan_enroll_test.rb
60
60
  - test/pan_preauth_test.rb
61
61
  - test/partial_refund_test.rb
62
- - test/payment_link_status_test.rb
63
- - test/resend_payment_link_test.rb
64
62
  - test/search_customer_test.rb
65
63
  - test/send_payment_link_test.rb
66
64
  - test/simple_batch_close_test.rb
@@ -1,72 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2019-2023 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 PaymentLinkStatusTest < TestCase
13
- def test_payment_link_status
14
-
15
- puts "Running test_payment_link_status..."
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
- amount: '199.99',
35
- description: 'Widget',
36
- subject: 'Widget invoice',
37
- transaction: {
38
- subtotal: '195.00',
39
- tax: '4.99',
40
- total: '199.99',
41
- items: [
42
- {
43
- description: 'Widget',
44
- price: '195.00',
45
- quantity: 1
46
- }
47
- ]
48
- },
49
- autoSend: true,
50
- customer: {
51
- customerRef: 'Customer reference string',
52
- firstName: 'FirstName',
53
- lastName: 'LastName',
54
- companyName: 'Company Name',
55
- emailAddress: 'notifications@blockchypteam.m8r.co',
56
- smsNumber: '(123) 123-1231'
57
- }
58
- }
59
- response = blockchyp.send_payment_link(setup_request)
60
-
61
- # Set request parameters
62
- request = {
63
- transactionRef: response[:transactionRef]
64
- }
65
-
66
- response = blockchyp.payment_link_status(request)
67
- assert_not_nil(response)
68
- # response assertions
69
- assert(response[:success])
70
- end
71
- end
72
- end
@@ -1,49 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2019-2023 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 ResendPaymentLinkTest < TestCase
13
- def test_resend_payment_link
14
-
15
- puts "Running test_resend_payment_link..."
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
- linkCode: response[:linkCode]
35
- }
36
- response = blockchyp.resend_payment_link(setup_request)
37
-
38
- # Set request parameters
39
- request = {
40
- linkCode: response[:linkCode]
41
- }
42
-
43
- response = blockchyp.resend_payment_link(request)
44
- assert_not_nil(response)
45
- # response assertions
46
- assert(response[:success])
47
- end
48
- end
49
- end