terminal-shop 2.1.1 → 2.1.3
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/README.md +4 -4
- data/lib/terminal-shop/resources/address.rb +2 -2
- data/lib/terminal-shop/resources/app.rb +2 -2
- data/lib/terminal-shop/resources/card.rb +2 -2
- data/lib/terminal-shop/resources/order.rb +1 -1
- data/lib/terminal-shop/resources/product.rb +1 -1
- data/lib/terminal-shop/resources/subscription.rb +2 -2
- data/lib/terminal-shop/resources/token.rb +2 -2
- data/lib/terminal-shop/util.rb +2 -2
- data/lib/terminal-shop/version.rb +1 -1
- data/rbi/lib/terminal-shop/version.rbi +1 -1
- data/sig/terminal-shop/version.rbs +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: 600e5534e074668ad2568ed9513ab1b63362e7e08b256a481406edc9ea8518ce
|
4
|
+
data.tar.gz: c6b34de53a01973d8c6353af76e25f5a6b96f17bce817b7a1fbf92ada07d627d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da1bbcfc714458f2d72aefc46715c5556b9c4c726c01eff417f17ffd01064f17a8c181808061d2f50e0b639a0923d6134be411e73f51a90ab96e1fbbb8becfed
|
7
|
+
data.tar.gz: 57290c92f10f76e00586a3f46da9f83f6a39c100e03392eb08a2e5728ebdec560c6c2d4860a37968ab2c33f1eaf9dffa0303305cd853bae911575425f601def7
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ The underlying REST API documentation can be found on [terminal.shop](https://te
|
|
15
15
|
To use this gem, install via Bundler by adding the following to your application's `Gemfile`:
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem "terminal-shop", "~> 2.1.
|
18
|
+
gem "terminal-shop", "~> 2.1.2"
|
19
19
|
```
|
20
20
|
|
21
21
|
To fetch an initial copy of the gem:
|
@@ -35,9 +35,9 @@ terminal = TerminalShop::Client.new(
|
|
35
35
|
environment: "dev" # defaults to "production"
|
36
36
|
)
|
37
37
|
|
38
|
-
|
38
|
+
products = terminal.product.list
|
39
39
|
|
40
|
-
puts(
|
40
|
+
puts(products.data)
|
41
41
|
```
|
42
42
|
|
43
43
|
### Errors
|
@@ -117,7 +117,7 @@ Due to limitations with the Sorbet type system, where a method otherwise can tak
|
|
117
117
|
Please follow Sorbet's [setup guides](https://sorbet.org/docs/adopting) for best experience.
|
118
118
|
|
119
119
|
```ruby
|
120
|
-
model = ProductListParams.new
|
120
|
+
model = TerminalShop::Models::ProductListParams.new
|
121
121
|
|
122
122
|
terminal.product.list(**model)
|
123
123
|
```
|
@@ -65,7 +65,7 @@ module TerminalShop
|
|
65
65
|
def delete(id, params = {})
|
66
66
|
@client.request(
|
67
67
|
method: :delete,
|
68
|
-
path: ["address/%
|
68
|
+
path: ["address/%1$s", id],
|
69
69
|
model: TerminalShop::Models::AddressDeleteResponse,
|
70
70
|
options: params[:request_options]
|
71
71
|
)
|
@@ -83,7 +83,7 @@ module TerminalShop
|
|
83
83
|
def get(id, params = {})
|
84
84
|
@client.request(
|
85
85
|
method: :get,
|
86
|
-
path: ["address/%
|
86
|
+
path: ["address/%1$s", id],
|
87
87
|
model: TerminalShop::Models::AddressGetResponse,
|
88
88
|
options: params[:request_options]
|
89
89
|
)
|
@@ -53,7 +53,7 @@ module TerminalShop
|
|
53
53
|
def delete(id, params = {})
|
54
54
|
@client.request(
|
55
55
|
method: :delete,
|
56
|
-
path: ["app/%
|
56
|
+
path: ["app/%1$s", id],
|
57
57
|
model: TerminalShop::Models::AppDeleteResponse,
|
58
58
|
options: params[:request_options]
|
59
59
|
)
|
@@ -71,7 +71,7 @@ module TerminalShop
|
|
71
71
|
def get(id, params = {})
|
72
72
|
@client.request(
|
73
73
|
method: :get,
|
74
|
-
path: ["app/%
|
74
|
+
path: ["app/%1$s", id],
|
75
75
|
model: TerminalShop::Models::AppGetResponse,
|
76
76
|
options: params[:request_options]
|
77
77
|
)
|
@@ -52,7 +52,7 @@ module TerminalShop
|
|
52
52
|
def delete(id, params = {})
|
53
53
|
@client.request(
|
54
54
|
method: :delete,
|
55
|
-
path: ["card/%
|
55
|
+
path: ["card/%1$s", id],
|
56
56
|
model: TerminalShop::Models::CardDeleteResponse,
|
57
57
|
options: params[:request_options]
|
58
58
|
)
|
@@ -87,7 +87,7 @@ module TerminalShop
|
|
87
87
|
def get(id, params = {})
|
88
88
|
@client.request(
|
89
89
|
method: :get,
|
90
|
-
path: ["card/%
|
90
|
+
path: ["card/%1$s", id],
|
91
91
|
model: TerminalShop::Models::CardGetResponse,
|
92
92
|
options: params[:request_options]
|
93
93
|
)
|
@@ -63,7 +63,7 @@ module TerminalShop
|
|
63
63
|
def delete(id, params = {})
|
64
64
|
@client.request(
|
65
65
|
method: :delete,
|
66
|
-
path: ["subscription/%
|
66
|
+
path: ["subscription/%1$s", id],
|
67
67
|
model: TerminalShop::Models::SubscriptionDeleteResponse,
|
68
68
|
options: params[:request_options]
|
69
69
|
)
|
@@ -81,7 +81,7 @@ module TerminalShop
|
|
81
81
|
def get(id, params = {})
|
82
82
|
@client.request(
|
83
83
|
method: :get,
|
84
|
-
path: ["subscription/%
|
84
|
+
path: ["subscription/%1$s", id],
|
85
85
|
model: TerminalShop::Models::SubscriptionGetResponse,
|
86
86
|
options: params[:request_options]
|
87
87
|
)
|
@@ -47,7 +47,7 @@ module TerminalShop
|
|
47
47
|
def delete(id, params = {})
|
48
48
|
@client.request(
|
49
49
|
method: :delete,
|
50
|
-
path: ["token/%
|
50
|
+
path: ["token/%1$s", id],
|
51
51
|
model: TerminalShop::Models::TokenDeleteResponse,
|
52
52
|
options: params[:request_options]
|
53
53
|
)
|
@@ -65,7 +65,7 @@ module TerminalShop
|
|
65
65
|
def get(id, params = {})
|
66
66
|
@client.request(
|
67
67
|
method: :get,
|
68
|
-
path: ["token/%
|
68
|
+
path: ["token/%1$s", id],
|
69
69
|
model: TerminalShop::Models::TokenGetResponse,
|
70
70
|
options: params[:request_options]
|
71
71
|
)
|
data/lib/terminal-shop/util.rb
CHANGED
@@ -253,9 +253,9 @@ module TerminalShop
|
|
253
253
|
path
|
254
254
|
in []
|
255
255
|
""
|
256
|
-
in [String, *interpolations]
|
256
|
+
in [String => p, *interpolations]
|
257
257
|
encoded = interpolations.map { ERB::Util.url_encode(_1) }
|
258
|
-
|
258
|
+
format(p, *encoded)
|
259
259
|
end
|
260
260
|
end
|
261
261
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terminal-shop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terminal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|