blockchyp 2.18.7 → 2.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e85b88a0ef56804f69162768285f0ed63a00572a1d2baae9ce16519c6df6ae2
4
- data.tar.gz: 7b1db3cafefa8cacc4947513cfc74708b581ab99ed08679559b6f7e094229e44
3
+ metadata.gz: c1ceaeac160aebac1400a60f940b7127680c0e6ee4be91c90fcbadbbaf94062e
4
+ data.tar.gz: d4d18670b1acb71f333571129fa074c0c80c717b46a0819ad77db0b8afe04756
5
5
  SHA512:
6
- metadata.gz: 0cd208cdab023cd2ba4875d6c17db56e6ecf9d40b08734dcae087deb6a82dab2f81fe928e0106790a7aeec4af977b56583d649f319f765f046df47f384a3eed2
7
- data.tar.gz: daa751a1c429bb6a582cff2bf3b419fdc9b2045860dff0e2ba68f650cac6bcf8f1fa91de0aa2a94fbb565d9d0d8754d2c2567ca67dcb12a0f25dd5e77f24aa03
6
+ metadata.gz: 8798686d3b0f23f7d7374b6721fdc1e095e00a5ce633397e8535553be607916966bf3a507a412486c27a3ca7bc9349e0171f5f45a0e656febd72e9e1e2ff68c6
7
+ data.tar.gz: 2c3fc65f7062be068e4308480c85eccb29e755be1ca0d0625e87047ab5b8763a4855e7392196ddf5c4a4cf6edcd393825639addcf57f4e3091bbd836b427b5ff
data/README.md CHANGED
@@ -3866,6 +3866,48 @@ response = blockchyp.inviteMerchantUser(request)
3866
3866
  puts "Response: #{response.inspect}"
3867
3867
 
3868
3868
 
3869
+ ```
3870
+
3871
+ #### Add Gateway Merchant
3872
+
3873
+
3874
+
3875
+ * **API Credential Types:** Partner
3876
+ * **Required Role:** Gateway Boarding
3877
+
3878
+ This is a partner level API that can be used to manually board gateway merchants. Use this API in conjunction
3879
+ with Platform Configuration to instantly board gateway merchants. Note that most partners don't have
3880
+ permission to do this and are unlikely to get it.
3881
+
3882
+ Settings can be changed by using the Update Merchant API.
3883
+
3884
+
3885
+
3886
+
3887
+ ```ruby
3888
+ # frozen_string_literal: true
3889
+
3890
+ require 'blockchyp'
3891
+
3892
+ blockchyp = BlockChyp::BlockChyp.new(
3893
+ ENV['BC_API_KEY'],
3894
+ ENV['BC_BEARER_TOKEN'],
3895
+ ENV['BC_SIGNING_KEY']
3896
+ )
3897
+
3898
+ # Set request parameters
3899
+ request = {
3900
+ profile: {
3901
+ dbaName: 'DBA Name',
3902
+ companyName: 'Corporate Entity Name'
3903
+ }
3904
+ }
3905
+
3906
+ response = blockchyp.addGatewayMerchant(request)
3907
+
3908
+ puts "Response: #{response.inspect}"
3909
+
3910
+
3869
3911
  ```
3870
3912
 
3871
3913
  #### Add Test Merchant
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlockChyp
4
- VERSION = '2.18.7'
4
+ VERSION = '2.19.0'
5
5
  end
data/lib/blockchyp.rb CHANGED
@@ -352,6 +352,11 @@ module BlockChyp
352
352
  dashboard_request('POST', '/api/invite-merchant-user', request)
353
353
  end
354
354
 
355
+ # Adds a live gateway merchant account.
356
+ def add_gateway_merchant(request)
357
+ dashboard_request('POST', '/api/add-gateway-merchant', request)
358
+ end
359
+
355
360
  # Adds a test merchant account.
356
361
  def add_test_merchant(request)
357
362
  dashboard_request('POST', '/api/add-test-merchant', request)
@@ -0,0 +1,55 @@
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 AddGatewayMerchantTest < TestCase
13
+ def test_add_gateway_merchant
14
+
15
+ puts "Running test_add_gateway_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
+ request = {
43
+ profile: {
44
+ dbaName: 'DBA Name',
45
+ companyName: 'Corporate Entity Name'
46
+ }
47
+ }
48
+
49
+ response = blockchyp.add_gateway_merchant(request)
50
+ assert_not_nil(response)
51
+ # response assertions
52
+ assert(response[:success])
53
+ end
54
+ end
55
+ end
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: 2.18.7
4
+ version: 2.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlockChyp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-23 00:00:00.000000000 Z
11
+ date: 2024-09-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -25,6 +25,7 @@ files:
25
25
  - lib/crypto_utils.rb
26
26
  - test/_test.rb
27
27
  - test/activate_terminal_test.rb
28
+ - test/add_gateway_merchant_test.rb
28
29
  - test/add_test_merchant_test.rb
29
30
  - test/batch_history_test.rb
30
31
  - test/boolean_prompt_test.rb