shift4 2.1.0 → 2.2.0

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: 7de9e08271e1c5ba30a77d0b1c042b2d2c4d77dfe5abcc2575ccdf48edb1cc7f
4
- data.tar.gz: a8703f50147daade03309a81d3be80dadd0e054661e3de87b1e1fe025d0ff885
3
+ metadata.gz: 0acebc68ad1e1c7012875e3cccaf657b4c22b1c98517be45500fb9337b882e4c
4
+ data.tar.gz: ffba4e2ebf7991ace179c60e3d53b126eac706a3aed309c015499567e0e0d0ed
5
5
  SHA512:
6
- metadata.gz: ff5e87306468578452ad0598a7a7cdd120cddcc8e57057d67c45fe263a86b390e5af2c24154e19ad5ad42fa80072017e688c2c359ec944a470ba3efaa5211096
7
- data.tar.gz: b8cd9e6d74effd4c6adc6839fee5fab4d12a9fb57b6aa79a65d292322a64352046fd153fd3127d2f4090d4c27dda1d71df3d41f077abc1fc72fa4ac0d78ddcec
6
+ metadata.gz: 703aaebd93db11f290b2b91aa4ce7d2b8bd21660f5fab19cc9816eac26e4f284eec639a397324c970a1e782c8f588c299b9a8358248d521bf19db87598984fc2
7
+ data.tar.gz: 3c5e5708edd1c00186ec236d034a0f276794e66340933fd50f3758b8c45fbd03e45991a0b2784b959b136524d579623d9f87cd1b2a52a193028c90f833a4d5ab
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Shift4
4
+ class ChargeSplits
5
+ extend TransactionBase
6
+
7
+ def self.retrieve(split_id, config = Configuration)
8
+ communicator.get("#{config.api_url}/charge-splits/#{split_id}", config: config)
9
+ end
10
+
11
+ def self.list(params, config = Configuration)
12
+ communicator.get("#{config.api_url}/charge-splits", query: params, config: config)
13
+ end
14
+
15
+ def self.refund(params, config = Configuration)
16
+ communicator.post("#{config.api_url}/charge-split-refunds", json: params, config: config)
17
+ end
18
+
19
+ def self.retrieve_refund(split_refund_id, config = Configuration)
20
+ communicator.get("#{config.api_url}/charge-split-refunds/#{split_refund_id}", config: config)
21
+ end
22
+
23
+ def self.list_refunds(params, config = Configuration)
24
+ communicator.get("#{config.api_url}/charge-split-refunds", query: params, config: config)
25
+ end
26
+ end
27
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shift4
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.0'
5
5
  end
data/lib/shift4.rb CHANGED
@@ -7,6 +7,7 @@ require 'shift4/shift4_pay_exception'
7
7
  require 'shift4/blacklist'
8
8
  require 'shift4/cards'
9
9
  require 'shift4/charges'
10
+ require 'shift4/charge_splits'
10
11
  require 'shift4/communicator'
11
12
  require 'shift4/configuration'
12
13
  require 'shift4/credits'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shift4
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shift4
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-31 00:00:00.000000000 Z
11
+ date: 2025-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -175,6 +175,7 @@ files:
175
175
  - lib/shift4.rb
176
176
  - lib/shift4/blacklist.rb
177
177
  - lib/shift4/cards.rb
178
+ - lib/shift4/charge_splits.rb
178
179
  - lib/shift4/charges.rb
179
180
  - lib/shift4/communicator.rb
180
181
  - lib/shift4/configuration.rb
@@ -196,7 +197,7 @@ homepage: https://shift4.com
196
197
  licenses:
197
198
  - MIT
198
199
  metadata: {}
199
- post_install_message:
200
+ post_install_message:
200
201
  rdoc_options: []
201
202
  require_paths:
202
203
  - lib
@@ -211,8 +212,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
212
  - !ruby/object:Gem::Version
212
213
  version: '0'
213
214
  requirements: []
214
- rubygems_version: 3.5.11
215
- signing_key:
215
+ rubygems_version: 3.2.3
216
+ signing_key:
216
217
  specification_version: 4
217
218
  summary: Shift4 Ruby Gem
218
219
  test_files: []