solidgate-ruby-sdk 0.1.14 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d423d0cbeef1718913f59ff786575342486d81d6eb73cfb3f5da06c475221f4a
4
- data.tar.gz: c3768b1d3340a88db3c6496a25c5f37a7736fc6dd22ffbc57bf0f661c2b529a7
3
+ metadata.gz: c383b6818ffe0cb65f4ae7e2238366881cbf85f32b6912e7099d25012265dcef
4
+ data.tar.gz: 767e91daa1a9f52f45c3dd281323e03bc9893007d9660273d22750774e282c01
5
5
  SHA512:
6
- metadata.gz: ca06ec82f66d554752912b12b30125dfcdf8fab9ee83260adc3ab2149c5b135ec8c0a0ae03e8f7f1e7285a67ea66e63fd1fb9f7b42ca4577d32483d98e9c050d
7
- data.tar.gz: 84852a85d4426c447fa50c8aeb33c4aa7afc1b3e31b6419d67c806d0d64fc522417e18bb2dab1963e894200906ab5d90f75f36a9999c2df15d76a0d4be220d62
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- solidgate-ruby-sdk (0.1.14)
4
+ solidgate-ruby-sdk (0.1.16)
5
5
  faraday
6
6
  faraday-multipart
7
7
 
@@ -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:
@@ -391,6 +406,10 @@ module Solidgate
391
406
  post('/api/v1/recurring', body: params, base_url: "https://pay.solidgate.com")
392
407
  end
393
408
 
409
+ def make_apm_recurring(params)
410
+ post('/api/v1/recurring', body: params, base_url: "https://gate.solidgate.com")
411
+ end
412
+
394
413
  private
395
414
 
396
415
  # Builds a Configuration object from the provided options.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Solidgate
4
- VERSION = "0.1.14"
4
+ VERSION = "0.1.16"
5
5
  end
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.14
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-17 00:00:00.000000000 Z
11
+ date: 2026-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday