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 +4 -4
- data/lib/shift4/charge_splits.rb +27 -0
- data/lib/shift4/version.rb +1 -1
- data/lib/shift4.rb +1 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0acebc68ad1e1c7012875e3cccaf657b4c22b1c98517be45500fb9337b882e4c
|
4
|
+
data.tar.gz: ffba4e2ebf7991ace179c60e3d53b126eac706a3aed309c015499567e0e0d0ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/shift4/version.rb
CHANGED
data/lib/shift4.rb
CHANGED
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.
|
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:
|
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.
|
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: []
|