solidgate-ruby-sdk 0.1.3 → 0.1.5
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 +10 -2
- data/Gemfile.lock +63 -1
- data/README.md +2 -2
- data/lib/solidgate/client.rb +8 -0
- data/lib/solidgate/version.rb +1 -1
- data/lib/solidgate-ruby-sdk.rb +2 -2
- data/solidgate.gemspec +6 -6
- metadata +72 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c6c98b7a85c9c0baa429bbabba28ab8b4ee5bc214315209090c79a43e1b1722
|
|
4
|
+
data.tar.gz: 1bc4f515ea8b93f8f2c1058b693ac0edcfa32c465c96836b142cd85891b62143
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da2edaaf75d59d9160200c75dbadc5914f811491412828a270e928c8385f796fab76cf233c17c41c1ed0c1f33f4df91a609047962298eb5113e4c111dd0e4f70
|
|
7
|
+
data.tar.gz: e3696bbccbfa90c308dd6ad07e444b4f917216ef7edeadeb144979c5b2c8c2adff7f838eff06e0d2e42ffa92233cea1ec319333cc1da3ecf37f8c126300b5e1f
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.4] - 2026-01-14
|
|
11
|
+
- Client Specs enhancements
|
|
12
|
+
|
|
13
|
+
## [0.1.3] - 2026-01-13
|
|
14
|
+
- Added support for switch subscription product
|
|
15
|
+
- Added support for create product
|
|
16
|
+
- Added support to create price for product
|
|
17
|
+
|
|
10
18
|
## [0.1.0] - 2025-12-18
|
|
11
19
|
|
|
12
20
|
### Added
|
|
@@ -27,5 +35,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
27
35
|
- Thread-safe configuration
|
|
28
36
|
- Comprehensive documentation and examples
|
|
29
37
|
|
|
30
|
-
[Unreleased]: https://github.com/
|
|
31
|
-
[0.1.0]: https://github.com/
|
|
38
|
+
[Unreleased]: https://github.com/carrfane/solidgate-ruby-sdk/compare/v0.1.0...HEAD
|
|
39
|
+
[0.1.0]: https://github.com/carrfane/solidgate-ruby-sdk/releases/tag/v0.1.0
|
data/Gemfile.lock
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
solidgate-ruby-sdk (0.1.
|
|
4
|
+
solidgate-ruby-sdk (0.1.5)
|
|
5
5
|
faraday
|
|
6
6
|
faraday-multipart
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
+
addressable (2.8.8)
|
|
12
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
13
|
+
ast (2.4.3)
|
|
11
14
|
base64 (0.3.0)
|
|
15
|
+
bigdecimal (4.0.1)
|
|
12
16
|
coderay (1.1.3)
|
|
17
|
+
crack (1.0.1)
|
|
18
|
+
bigdecimal
|
|
19
|
+
rexml
|
|
20
|
+
diff-lcs (1.6.2)
|
|
13
21
|
faraday (2.8.1)
|
|
14
22
|
base64
|
|
15
23
|
faraday-net_http (>= 2.0, < 3.1)
|
|
@@ -17,13 +25,63 @@ GEM
|
|
|
17
25
|
faraday-multipart (1.1.1)
|
|
18
26
|
multipart-post (~> 2.0)
|
|
19
27
|
faraday-net_http (3.0.2)
|
|
28
|
+
hashdiff (1.2.1)
|
|
29
|
+
json (2.18.0)
|
|
30
|
+
language_server-protocol (3.17.0.5)
|
|
31
|
+
lint_roller (1.1.0)
|
|
20
32
|
method_source (1.1.0)
|
|
21
33
|
multipart-post (2.4.1)
|
|
34
|
+
parallel (1.27.0)
|
|
35
|
+
parser (3.3.10.1)
|
|
36
|
+
ast (~> 2.4.1)
|
|
37
|
+
racc
|
|
38
|
+
prism (1.8.0)
|
|
22
39
|
pry (0.15.2)
|
|
23
40
|
coderay (~> 1.1)
|
|
24
41
|
method_source (~> 1.0)
|
|
42
|
+
public_suffix (5.1.1)
|
|
43
|
+
racc (1.8.1)
|
|
44
|
+
rainbow (3.1.1)
|
|
25
45
|
rake (13.3.1)
|
|
46
|
+
regexp_parser (2.11.3)
|
|
47
|
+
rexml (3.4.4)
|
|
48
|
+
rspec (3.13.2)
|
|
49
|
+
rspec-core (~> 3.13.0)
|
|
50
|
+
rspec-expectations (~> 3.13.0)
|
|
51
|
+
rspec-mocks (~> 3.13.0)
|
|
52
|
+
rspec-core (3.13.6)
|
|
53
|
+
rspec-support (~> 3.13.0)
|
|
54
|
+
rspec-expectations (3.13.5)
|
|
55
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
56
|
+
rspec-support (~> 3.13.0)
|
|
57
|
+
rspec-mocks (3.13.7)
|
|
58
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
59
|
+
rspec-support (~> 3.13.0)
|
|
60
|
+
rspec-support (3.13.6)
|
|
61
|
+
rubocop (1.82.1)
|
|
62
|
+
json (~> 2.3)
|
|
63
|
+
language_server-protocol (~> 3.17.0.2)
|
|
64
|
+
lint_roller (~> 1.1.0)
|
|
65
|
+
parallel (~> 1.10)
|
|
66
|
+
parser (>= 3.3.0.2)
|
|
67
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
68
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
69
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
70
|
+
ruby-progressbar (~> 1.7)
|
|
71
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
72
|
+
rubocop-ast (1.49.0)
|
|
73
|
+
parser (>= 3.3.7.2)
|
|
74
|
+
prism (~> 1.7)
|
|
75
|
+
ruby-progressbar (1.13.0)
|
|
26
76
|
ruby2_keywords (0.0.5)
|
|
77
|
+
unicode-display_width (3.2.0)
|
|
78
|
+
unicode-emoji (~> 4.1)
|
|
79
|
+
unicode-emoji (4.2.0)
|
|
80
|
+
vcr (6.4.0)
|
|
81
|
+
webmock (3.26.1)
|
|
82
|
+
addressable (>= 2.8.0)
|
|
83
|
+
crack (>= 0.3.2)
|
|
84
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
27
85
|
|
|
28
86
|
PLATFORMS
|
|
29
87
|
ruby
|
|
@@ -31,7 +89,11 @@ PLATFORMS
|
|
|
31
89
|
DEPENDENCIES
|
|
32
90
|
pry
|
|
33
91
|
rake (~> 13.0)
|
|
92
|
+
rspec (~> 3.0)
|
|
93
|
+
rubocop (~> 1.0)
|
|
34
94
|
solidgate-ruby-sdk!
|
|
95
|
+
vcr (~> 6.0)
|
|
96
|
+
webmock (~> 3.0)
|
|
35
97
|
|
|
36
98
|
BUNDLED WITH
|
|
37
99
|
1.17.2
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ end
|
|
|
37
37
|
### Creating a Payment
|
|
38
38
|
|
|
39
39
|
```ruby
|
|
40
|
-
|
|
40
|
+
SolidgateClient = Solidgate::Client.new
|
|
41
41
|
|
|
42
42
|
payment_intent = {
|
|
43
43
|
order_id: 'order_id_123', # Unique order identifier provided by the merchant
|
|
@@ -89,7 +89,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
89
89
|
|
|
90
90
|
## Contributing
|
|
91
91
|
|
|
92
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
92
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/carrfane/solidgate-ruby-sdk.
|
|
93
93
|
|
|
94
94
|
## License
|
|
95
95
|
|
data/lib/solidgate/client.rb
CHANGED
|
@@ -97,6 +97,10 @@ module Solidgate
|
|
|
97
97
|
post("/api/v1/subscription/switch-subscription-product", params)
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
+
def pause_subscription(subscription_id, params)
|
|
101
|
+
patch("/api/v1/subscriptions/{subscription_id}/pause-schedule", params)
|
|
102
|
+
end
|
|
103
|
+
|
|
100
104
|
def create_product(params)
|
|
101
105
|
post("/api/v1/products", params)
|
|
102
106
|
end
|
|
@@ -167,6 +171,10 @@ module Solidgate
|
|
|
167
171
|
request(:post, path, body)
|
|
168
172
|
end
|
|
169
173
|
|
|
174
|
+
def patch(path, body = {})
|
|
175
|
+
request(:patch, path, body)
|
|
176
|
+
end
|
|
177
|
+
|
|
170
178
|
def request(method, path, body = nil)
|
|
171
179
|
body_json = body ? JSON.generate(body) : ''
|
|
172
180
|
signature = generate_signature(body_json)
|
data/lib/solidgate/version.rb
CHANGED
data/lib/solidgate-ruby-sdk.rb
CHANGED
data/solidgate.gemspec
CHANGED
|
@@ -34,10 +34,10 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.add_dependency "faraday"
|
|
35
35
|
spec.add_dependency "faraday-multipart"
|
|
36
36
|
|
|
37
|
-
#
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
#Development dependencies
|
|
38
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
|
39
|
+
spec.add_development_dependency "webmock", "~> 3.0"
|
|
40
|
+
spec.add_development_dependency "vcr", "~> 6.0"
|
|
41
|
+
spec.add_development_dependency "rubocop", "~> 1.0"
|
|
42
|
+
spec.add_development_dependency "pry", "~> 0.14"
|
|
43
43
|
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.
|
|
4
|
+
version: 0.1.5
|
|
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-01-
|
|
11
|
+
date: 2026-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -38,6 +38,76 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rspec
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: webmock
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '3.0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '3.0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: vcr
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '6.0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '6.0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rubocop
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '1.0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '1.0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: pry
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - "~>"
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0.14'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - "~>"
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0.14'
|
|
41
111
|
description: A Ruby SDK for integrating with the Solidgate payment gateway API
|
|
42
112
|
email:
|
|
43
113
|
- carrfane@gmail.com
|