blockchyp 2.18.8 → 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: cb20bbf0fde67c7facfe6e650f98e989fdcf02dd0c32defaeeaf012aecd5f900
4
- data.tar.gz: e619cef23a9a243dd0a8e6afd10bc80e2f4c9cf9e51a0f1b00238652fea5f758
3
+ metadata.gz: c1ceaeac160aebac1400a60f940b7127680c0e6ee4be91c90fcbadbbaf94062e
4
+ data.tar.gz: d4d18670b1acb71f333571129fa074c0c80c717b46a0819ad77db0b8afe04756
5
5
  SHA512:
6
- metadata.gz: 5e7026cb29de6f48f0f3b1248d498cd056f8cd00621de3c761a344264009c3a5f5a66a580c0f49eccb5dd14aed9d1b4b380352f656576fede954d09b4211b560
7
- data.tar.gz: dedeb8d1ae5a98213bb7f1d7ea808ac4104947e068b392f193724bbb22c566122888c715fb081f21727b04703924c0925045ff592d4a396de54d8365c1f4dbab
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.8'
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.8
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-09-11 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