solidgate-ruby-sdk 0.1.15 → 0.1.16
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/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/solidgate/client.rb +15 -0
- data/lib/solidgate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c383b6818ffe0cb65f4ae7e2238366881cbf85f32b6912e7099d25012265dcef
|
|
4
|
+
data.tar.gz: 767e91daa1a9f52f45c3dd281323e03bc9893007d9660273d22750774e282c01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfd4c40491693950de2150bba7314306e86906ad04e49280b6279189746b062f2587147ba432048373b1e7362bb21fdd5abb3a899a84c9231e3ac547b3d2402a
|
|
7
|
+
data.tar.gz: cb951b87a82ae8f78a35eb81c9c353ac92302e784913f6ea38f05b81d26b137dccf0431907ce79bd25d5072aeeaf83e33cae4a29878a24622f899a6fc402805b
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.16] - 2026-02-23
|
|
11
|
+
### Added
|
|
12
|
+
- `alt_refund` endpoint to create refunds using an alternative payment method (`Solidgate::Client#alt_refund`).
|
|
13
|
+
|
|
10
14
|
## [0.1.13] - 2026-02-13
|
|
11
15
|
### Added
|
|
12
16
|
- `order_status` endpoint to check order/payment status on `pay.solidgate.com` (`Solidgate::Client#order_status`).
|
data/Gemfile.lock
CHANGED
data/lib/solidgate/client.rb
CHANGED
|
@@ -356,6 +356,21 @@ module Solidgate
|
|
|
356
356
|
post("/api/v1/refund", body: params, base_url: "https://pay.solidgate.com")
|
|
357
357
|
end
|
|
358
358
|
|
|
359
|
+
# Creates a refund for an alternative transaction (paypal, bizum, others).
|
|
360
|
+
#
|
|
361
|
+
# @param params [Hash] refund parameters:
|
|
362
|
+
# - :order_id [String] the order identifier to refund
|
|
363
|
+
# - :amount [Integer] refund amount in minor units (for partial refunds)
|
|
364
|
+
# @return [Hash] refund response including refund status and details
|
|
365
|
+
# @raise [InvalidRequestError] if refund parameters are invalid
|
|
366
|
+
#
|
|
367
|
+
# @example Create a refund
|
|
368
|
+
# client.refund(order_id: 'ord_12345', amount: 1000)
|
|
369
|
+
#
|
|
370
|
+
def alt_refund(params)
|
|
371
|
+
post("/api/v1/refund", body: params, base_url: "https://gate.solidgate.com")
|
|
372
|
+
end
|
|
373
|
+
|
|
359
374
|
# Updates the payment method (token) associated with an existing subscription.
|
|
360
375
|
#
|
|
361
376
|
# @param params [Hash] update parameters including:
|
data/lib/solidgate/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solidgate-ruby-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hector Carrillo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|