blockchyp 2.3.6 → 2.3.7

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: 7abb05420dd69960be770d6585db971b7b3a8d98d621b94e033073515c8fd33c
4
- data.tar.gz: d74e325c4afcc5d81e43ce4403916cbe17875f87bb73ca1fe9af933d29b576e0
3
+ metadata.gz: 84600e7a021f154105d836a1de1e8b91d61b938b29bfc56d61301ca6c03abff6
4
+ data.tar.gz: ba8d5e4fffb814af4171aae03ad55f204ee9abd0d9d8fbc49681b91bd71aba39
5
5
  SHA512:
6
- metadata.gz: 1918e23d2639cdeefae035fb39539dc007673b3272ba3ec66083e895ab6fc1a5bf72e9780ddacaf19cec422157ad74daed4c1dffaf590e97ec648ebec6a35bc6
7
- data.tar.gz: f9578387a3f43fb6c8dd32f7d2757bdf1b70816414682b7c6d8f5dc6c5d7d015602589072ffe51ff380e6fbb8139c4b139cb91856f5cc4d0b6ebde74a677b801
6
+ metadata.gz: d3d544fecac3fe221cb8a3afa65d7a835999385c48782be5e6cbd7c62821781b52b4b6c3bb5c63a373096ae083be2f451f70e8fef0f7670ae4bef19d621dd989
7
+ data.tar.gz: 9c5b14f4bf92c016da7ea7d901d5fabd8afb5f668449ab92fb6813e1979caf849bff0d37368c893f801b83f534c014a7eda9c4b7e8c115a270b7deab2303da63
data/README.md CHANGED
@@ -1352,7 +1352,7 @@ puts "Response: #{response.inspect}"
1352
1352
  Adds or updates a customer record.
1353
1353
 
1354
1354
  If you pass in customer information including `firstName`, `lastName`, `email`,
1355
- `email`, or `sms` without any Customer ID or Customer Ref, a new record will
1355
+ or `sms` without any Customer ID or Customer Ref, a new record will
1356
1356
  be created.
1357
1357
 
1358
1358
  If you pass in `customerRef` and `customerId`, the customer record will be updated
@@ -1672,6 +1672,39 @@ response = blockchyp.transactionHistory(request)
1672
1672
  puts "Response: #{response.inspect}"
1673
1673
 
1674
1674
 
1675
+ ```
1676
+
1677
+ #### Merchant Profile
1678
+
1679
+
1680
+
1681
+ Returns detailed metadata about the merchant's configuraton, including
1682
+ basic identity information, terminal settings, store and forward settings,
1683
+ and bank account information for merchants that support split settlement.
1684
+
1685
+
1686
+
1687
+
1688
+ ```ruby
1689
+ # frozen_string_literal: true
1690
+
1691
+ require 'blockchyp'
1692
+
1693
+ blockchyp = BlockChyp::BlockChyp.new(
1694
+ ENV['BC_API_KEY'],
1695
+ ENV['BC_BEARER_TOKEN'],
1696
+ ENV['BC_SIGNING_KEY']
1697
+ )
1698
+
1699
+ # Set request parameters
1700
+ request = {
1701
+ }
1702
+
1703
+ response = blockchyp.merchantProfile(request)
1704
+
1705
+ puts "Response: #{response.inspect}"
1706
+
1707
+
1675
1708
  ```
1676
1709
 
1677
1710
  ## Running Integration Tests
@@ -206,5 +206,10 @@ module BlockChyp
206
206
  gateway_request('POST', '/api/tx-history', request)
207
207
  end
208
208
 
209
+ # Returns profile information for a merchant.
210
+ def merchant_profile(request)
211
+ gateway_request('POST', '/api/public-merchant-profile', request)
212
+ end
213
+
209
214
  end
210
215
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlockChyp
4
- VERSION = '2.3.6'
4
+ VERSION = '2.3.7'
5
5
  end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2019 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. Changes to this file will be lost
7
+ # every time the code is regenerated.
8
+
9
+ require ::File.expand_path('test_helper', __dir__)
10
+
11
+ module BlockChyp
12
+ class MerchantProfileTest < TestCase
13
+ def test_merchant_profile
14
+ config = load_test_config
15
+
16
+ blockchyp = BlockChyp.new(
17
+ config['apiKey'],
18
+ config['bearerToken'],
19
+ config['signingKey']
20
+ )
21
+ blockchyp.gateway_host = config['gatewayHost']
22
+ blockchyp.test_gateway_host = config['testGatewayHost']
23
+
24
+ test_delay(blockchyp, 'merchant_profile_test')
25
+
26
+ # Set request parameters
27
+ request = {
28
+ "test": true
29
+ }
30
+
31
+ response = blockchyp.merchant_profile(request)
32
+
33
+ assert_not_nil(response)
34
+ # response assertions
35
+ assert(response['success'])
36
+ end
37
+ end
38
+ end
@@ -43,8 +43,6 @@ module BlockChyp
43
43
  assert_not_nil(response)
44
44
  # response assertions
45
45
  assert(response['success'])
46
- assert(!response['capturedTotal'].empty?)
47
- assert(!response['openPreauths'].empty?)
48
46
  end
49
47
  end
50
48
  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.3.6
4
+ version: 2.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlockChyp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-14 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -29,6 +29,7 @@ files:
29
29
  - test/gateway_timeout_test.rb
30
30
  - test/get_customer_test.rb
31
31
  - test/heartbeat_test.rb
32
+ - test/merchant_profile_test.rb
32
33
  - test/new_transaction_display_test.rb
33
34
  - test/pan_charge_test.rb
34
35
  - test/pan_enroll_test.rb