blockchyp 2.30.10 → 2.30.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a6d78cf0fecf21d06a5fba202dc69c3cde5d975cb9e8b525ff8728c6f2a87b1
4
- data.tar.gz: d7485fd6c3c874614ba61e56c8011577bff48e413a56dcaf1b627ef76c11347a
3
+ metadata.gz: d1902d2ccc1a9191abbf619dd1f69d6c7d80cd6c006ea5d968127138e0c9af00
4
+ data.tar.gz: 5eab51ccffe4440fea9dbddd5c34ee0e8bd3748f332df983865dbfbf501a8afe
5
5
  SHA512:
6
- metadata.gz: 456e4610f1180f029666c90f5f1f787eb5d66fddfa2ec4b42c726f10042a153c7de3af58082fa31141c4f639caf752e03aff8b60da8be2b73c70e2b55c4ab3a4
7
- data.tar.gz: 2a952a778663968dc29eff9275158bcaa09ae6f6a904462dee3ae9a278aa3bac9de21f2eaaef8a63072f2a398c40dacdf4e55019b698c1649a4179743fc4beb6
6
+ metadata.gz: c9dc4793425347efae4af9f47ea526f9386635e5caf53b34ac1cd99464cc06b4c3ce1e3c185307c4ee52880c89ce5a298fd96c6722ac434435a3b656e6726ed3
7
+ data.tar.gz: 6de942a5ba1c35f1e45f41b427af9d21c094de15c1c2782925b7934c3f13f03b4f8811c4feb278621a464449b346b1f2d8ddae274bce9afe5fafbf897525506c
data/README.md CHANGED
@@ -81,72 +81,6 @@ These are the core payment APIs used to execute and work with payment transactio
81
81
 
82
82
 
83
83
 
84
- #### Surcharge Review
85
-
86
-
87
-
88
- * **API Credential Types:** Merchant
89
- * **Required Role:** Payment API Access
90
-
91
- This API calculates surcharge information for a payment request.
92
-
93
- If you're using BlockChyp's surcharging features, you can use this endpoint
94
- to preview the surcharge amounts before processing a transaction. This allows
95
- you to display accurate pricing information to customers before completing
96
- the payment.
97
-
98
-
99
-
100
-
101
- ```ruby
102
- # frozen_string_literal: true
103
-
104
- require 'blockchyp'
105
-
106
- blockchyp = BlockChyp::BlockChyp.new(
107
- ENV['BC_API_KEY'],
108
- ENV['BC_BEARER_TOKEN'],
109
- ENV['BC_SIGNING_KEY']
110
- )
111
-
112
- # Set request parameters
113
- request = {
114
- }
115
-
116
- response = blockchyp.surchargeReview(request)
117
-
118
- puts "Response: #{response.inspect}"
119
-
120
-
121
- ```
122
-
123
- #### Transient Key
124
-
125
- Generates a short-lived API key scoped to terminal and payment operations.
126
-
127
-
128
- ```ruby
129
- # frozen_string_literal: true
130
-
131
- require 'blockchyp'
132
-
133
- blockchyp = BlockChyp::BlockChyp.new(
134
- ENV['BC_API_KEY'],
135
- ENV['BC_BEARER_TOKEN'],
136
- ENV['BC_SIGNING_KEY']
137
- )
138
-
139
- # Set request parameters
140
- request = {
141
- }
142
-
143
- response = blockchyp.transientKey(request)
144
-
145
- puts "Response: #{response.inspect}"
146
-
147
-
148
- ```
149
-
150
84
  #### Charge
151
85
 
152
86
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlockChyp
4
- VERSION = '2.30.10'
4
+ VERSION = '2.30.18'
5
5
  end
data/lib/blockchyp.rb CHANGED
@@ -160,6 +160,11 @@ module BlockChyp
160
160
  route_terminal_request('POST', '/api/text-prompt', '/api/text-prompt', request)
161
161
  end
162
162
 
163
+ # Calculates the service fee for a transaction.
164
+ def service_fee(request)
165
+ route_terminal_request('POST', '/api/service-fee', '/api/service-fee', request)
166
+ end
167
+
163
168
  # Returns a list of queued transactions on a terminal.
164
169
  def list_queued_transactions(request)
165
170
  route_terminal_request('POST', '/api/queue/list', '/api/queue/list', request)
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.30.10
4
+ version: 2.30.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlockChyp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-27 00:00:00.000000000 Z
11
+ date: 2026-09-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: