blockchyp 2.17.3 → 2.18.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +42 -0
  3. data/lib/blockchyp/version.rb +1 -1
  4. data/lib/blockchyp.rb +6 -1
  5. data/test/_test.rb +41 -0
  6. data/test/activate_terminal_test.rb +1 -1
  7. data/test/add_test_merchant_test.rb +1 -1
  8. data/test/batch_history_test.rb +1 -1
  9. data/test/boolean_prompt_test.rb +1 -1
  10. data/test/cancel_payment_link_test.rb +2 -1
  11. data/test/capture_signature_test.rb +1 -1
  12. data/test/deactivate_terminal_test.rb +1 -1
  13. data/test/delete_branding_asset_test.rb +1 -1
  14. data/test/delete_customer_test.rb +1 -1
  15. data/test/delete_media_asset_test.rb +1 -1
  16. data/test/delete_queued_transaction_test.rb +1 -1
  17. data/test/delete_slide_show_test.rb +1 -1
  18. data/test/delete_survey_question_test.rb +1 -1
  19. data/test/delete_test_merchant_test.rb +1 -1
  20. data/test/delete_token_test.rb +1 -1
  21. data/test/empty_branding_asset_test.rb +1 -1
  22. data/test/empty_slide_show_test.rb +1 -1
  23. data/test/gateway_timeout_test.rb +1 -1
  24. data/test/get_customer_test.rb +1 -1
  25. data/test/get_merchants_test.rb +1 -1
  26. data/test/invite_merchant_user_test.rb +1 -1
  27. data/test/link_token_test.rb +1 -1
  28. data/test/list_queued_transactions_test.rb +1 -1
  29. data/test/list_terminals_test.rb +1 -1
  30. data/test/media_asset_test.rb +1 -1
  31. data/test/media_test.rb +1 -1
  32. data/test/media_upload_test.rb +1 -1
  33. data/test/merchant_credential_generation_test.rb +60 -0
  34. data/test/merchant_invoice_detail_test.rb +1 -1
  35. data/test/merchant_invoices_test.rb +1 -1
  36. data/test/merchant_platforms_test.rb +1 -1
  37. data/test/merchant_profile_test.rb +1 -1
  38. data/test/merchant_users_test.rb +1 -1
  39. data/test/new_transaction_display_test.rb +1 -1
  40. data/test/pan_charge_test.rb +1 -1
  41. data/test/pan_enroll_test.rb +1 -1
  42. data/test/pan_preauth_test.rb +4 -4
  43. data/test/partial_refund_test.rb +1 -1
  44. data/test/partner_commission_breakdown_test.rb +10 -1
  45. data/test/partner_statement_detail_test.rb +10 -1
  46. data/test/partner_statements_test.rb +10 -1
  47. data/test/payment_link_status_test.rb +1 -1
  48. data/test/pricing_policy_test.rb +18 -2
  49. data/test/resend_payment_link_test.rb +2 -1
  50. data/test/search_customer_test.rb +1 -1
  51. data/test/send_payment_link_test.rb +1 -1
  52. data/test/simple_batch_close_test.rb +1 -1
  53. data/test/simple_capture_test.rb +4 -3
  54. data/test/simple_gift_activate_test.rb +1 -1
  55. data/test/simple_locate_test.rb +1 -1
  56. data/test/simple_message_test.rb +1 -1
  57. data/test/simple_ping_test.rb +1 -1
  58. data/test/simple_refund_test.rb +1 -1
  59. data/test/simple_reversal_test.rb +1 -1
  60. data/test/simple_void_test.rb +1 -1
  61. data/test/slide_show_test.rb +1 -1
  62. data/test/slide_shows_test.rb +1 -1
  63. data/test/survey_question_test.rb +1 -1
  64. data/test/survey_questions_test.rb +1 -1
  65. data/test/survey_results_test.rb +1 -1
  66. data/test/tc_delete_template_test.rb +1 -1
  67. data/test/tc_entry_test.rb +1 -1
  68. data/test/tc_log_test.rb +13 -1
  69. data/test/tc_template_test.rb +1 -1
  70. data/test/tc_template_update_test.rb +1 -1
  71. data/test/tc_templates_test.rb +1 -1
  72. data/test/terminal_branding_test.rb +1 -1
  73. data/test/terminal_charge_test.rb +1 -1
  74. data/test/terminal_clear_test.rb +1 -1
  75. data/test/terminal_ebt_balance_test.rb +1 -1
  76. data/test/terminal_ebt_charge_test.rb +1 -1
  77. data/test/terminal_enroll_test.rb +1 -1
  78. data/test/terminal_gift_card_balance_test.rb +1 -1
  79. data/test/terminal_keyed_charge_test.rb +1 -1
  80. data/test/terminal_manual_ebt_charge_test.rb +1 -1
  81. data/test/terminal_preauth_test.rb +1 -1
  82. data/test/terminal_queued_transaction_test.rb +1 -1
  83. data/test/terminal_status_test.rb +1 -1
  84. data/test/terminal_timeout_test.rb +1 -1
  85. data/test/terms_and_conditions_test.rb +1 -1
  86. data/test/text_prompt_test.rb +1 -1
  87. data/test/token_metadata_test.rb +1 -1
  88. data/test/transaction_history_test.rb +1 -1
  89. data/test/unlink_token_test.rb +1 -1
  90. data/test/update_branding_asset_test.rb +1 -1
  91. data/test/update_customer_test.rb +1 -1
  92. data/test/update_merchant_platforms_test.rb +1 -1
  93. data/test/update_merchant_test.rb +1 -1
  94. data/test/update_slide_show_test.rb +1 -1
  95. data/test/update_survey_question_test.rb +1 -1
  96. data/test/update_transaction_display_test.rb +1 -1
  97. data/test/upload_status_test.rb +1 -1
  98. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29b33f7fd1e00ed4cdb89c46257f6c39916b4fa081c0dbe3bcdb42163dd39a2b
4
- data.tar.gz: 467417b125257bec67021c1d1d3f89db422499526d936b1b8dae0fefa45b8d7d
3
+ metadata.gz: 606f3f0b5ef479d745a12529f21e91ecbd57395fd416a616cab672b5638964fe
4
+ data.tar.gz: 549bcdbd402a5ef557183ae9516136711dc9de365fd191b91c3af54b3f3f9570
5
5
  SHA512:
6
- metadata.gz: 0f195cc07b54b5f1a208d05ff267afa6bf5bdd48a0780726e9b879e7589343b86a382b4a3cc1d86d336f13113490ef527a6043e5c7530b1d3888c55cfe8f199e
7
- data.tar.gz: 2814d47d23946603ca589a4b52d611398d591d00605b9466da09a5ca787f62159e3936e40001bd37331cafeac1fec40fc57cae4ced9f505953658d6682073aa4
6
+ metadata.gz: a7976b8d33c00b70cba06e3c8a15500750c17340c15d0e79f25b2c5f7c00582f08f9cd6fcc594e06a7c1cafce220899737032ab4aa0927dd0a5cb49ce68da85d
7
+ data.tar.gz: eee7b97e37cc98e8211ad6f192cf3e3ca2d7325abf22a6ec7a1f2f98678f4a34095fe7d88740900bd798e7df72beabb922d840fa6cc15cc7b71a225ff6d1ee6a
data/README.md CHANGED
@@ -4204,6 +4204,48 @@ puts "Response: #{response.inspect}"
4204
4204
 
4205
4205
  ```
4206
4206
 
4207
+ #### Merchant Credential Generation
4208
+
4209
+
4210
+
4211
+ * **API Credential Types:** Partner
4212
+ * **Required Role:** Partner API Access
4213
+
4214
+ This API allows partners to generate API credentials for a merchant.
4215
+
4216
+ The `merchantId` is required and must be the id of a valid merchant.
4217
+
4218
+ Credentials are not delete protected by default. Pass in `deleteProtected` to enable delete protection.
4219
+
4220
+ The optional `notes` field will populate the notes in the credentials.
4221
+
4222
+ By default no roles will be assigned unless valid, comma-delimited, role codes are passed in the `roles` field.
4223
+
4224
+
4225
+
4226
+
4227
+ ```ruby
4228
+ # frozen_string_literal: true
4229
+
4230
+ require 'blockchyp'
4231
+
4232
+ blockchyp = BlockChyp::BlockChyp.new(
4233
+ ENV['BC_API_KEY'],
4234
+ ENV['BC_BEARER_TOKEN'],
4235
+ ENV['BC_SIGNING_KEY']
4236
+ )
4237
+
4238
+ # Set request parameters
4239
+ request = {
4240
+ }
4241
+
4242
+ response = blockchyp.merchantCredentialGeneration(request)
4243
+
4244
+ puts "Response: #{response.inspect}"
4245
+
4246
+
4247
+ ```
4248
+
4207
4249
 
4208
4250
 
4209
4251
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlockChyp
4
- VERSION = '2.17.3'
4
+ VERSION = '2.18.5'
5
5
  end
data/lib/blockchyp.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-2024 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.
@@ -326,6 +326,11 @@ module BlockChyp
326
326
  end
327
327
 
328
328
 
329
+ # Generates and returns api credentials for a given merchant.
330
+ def merchant_credential_generation(request)
331
+ dashboard_request('POST', '/api/generate-merchant-creds', request)
332
+ end
333
+
329
334
  # Adds a test merchant account.
330
335
  def get_merchants(request)
331
336
  dashboard_request('POST', '/api/get-merchants', request)
data/test/_test.rb ADDED
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2019-2024 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 Test < TestCase
13
+ def test_
14
+
15
+ puts "Running test_..."
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
+ }
35
+
36
+ response = blockchyp.merchant_credential_generation(request)
37
+ assert_not_nil(response)
38
+ # response assertions
39
+ end
40
+ end
41
+ end
@@ -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-2024 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-2024 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-2024 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-2024 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-2024 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.
@@ -60,6 +60,7 @@ module BlockChyp
60
60
 
61
61
  # Set request parameters
62
62
  request = {
63
+ test: true,
63
64
  linkCode: response[:linkCode]
64
65
  }
65
66
 
@@ -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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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/media_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-2024 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-2024 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.
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2019-2024 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 MerchantCredentialGenerationTest < TestCase
13
+ def test_merchant_credential_generation
14
+
15
+ puts "Running test_merchant_credential_generation..."
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
+ test: true,
51
+ merchantId: response[:merchantId]
52
+ }
53
+
54
+ response = blockchyp.merchant_credential_generation(request)
55
+ assert_not_nil(response)
56
+ # response assertions
57
+ assert(response[:success])
58
+ end
59
+ end
60
+ end
@@ -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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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-2024 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.
@@ -35,8 +35,9 @@ module BlockChyp
35
35
  pan: '4111111111111111',
36
36
  expMonth: '12',
37
37
  expYear: '2025',
38
- amount: '25.55',
39
- test: true
38
+ amount: '42.45',
39
+ test: true,
40
+ bypassDupeFilter: true
40
41
  }
41
42
 
42
43
  response = blockchyp.preauth(request)
@@ -53,7 +54,6 @@ module BlockChyp
53
54
  assert(!response[:paymentType].empty?)
54
55
  assert(!response[:maskedPan].empty?)
55
56
  assert(!response[:entryMethod].empty?)
56
- assert_equal('25.55', response[:authorizedAmount])
57
57
  assert_equal('KEYED', response[:entryMethod])
58
58
  end
59
59
  end
@@ -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-2024 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-2024 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.
@@ -26,6 +26,15 @@ module BlockChyp
26
26
  blockchyp.dashboard_host = config[:dashboardHost]
27
27
 
28
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]
29
38
 
30
39
 
31
40
 
@@ -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-2024 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.
@@ -26,6 +26,15 @@ module BlockChyp
26
26
  blockchyp.dashboard_host = config[:dashboardHost]
27
27
 
28
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]
29
38
 
30
39
 
31
40
 
@@ -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-2024 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.
@@ -26,6 +26,15 @@ module BlockChyp
26
26
  blockchyp.dashboard_host = config[:dashboardHost]
27
27
 
28
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]
29
38
 
30
39
 
31
40
 
@@ -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-2024 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.