seller_ledger-ruby 1.4.0 → 1.5.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/seller_ledger/client/connection_transactions.rb +10 -10
- data/lib/seller_ledger/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: 39ace969eea3dcd86fe39df969357fd3f7637bb1ec43ef824cdc5d4b2c944cc6
|
4
|
+
data.tar.gz: a13c768184a164d79bb745c54ca3528a1acfd7ed50dd40cef15bbee75af5252d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c32ab845438a1aa9e320f669e06562b9fcbfc02d939bb999b130bd41f878a205ef1cec67e9e3d2dc0d1d79530bd54ae9d4a174782efed25a599ba2bd52f10fb
|
7
|
+
data.tar.gz: e7f726cbd71d87521948ee2a1b62865fce97e819e50c340ebbd501084c72ee32ccbc60cac008394f3b75db9d6f257221ddee1985d2dd08f2b431a2600378dfa6
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module SellerLedger
|
4
4
|
class Client
|
5
5
|
module ConnectionTransactions
|
6
|
-
def
|
6
|
+
def list_orders(connection_id, params = {})
|
7
7
|
validate(connection_id)
|
8
8
|
paginated_request(
|
9
9
|
"/v1/connections/#{connection_id}/orders",
|
@@ -12,30 +12,30 @@ module SellerLedger
|
|
12
12
|
)
|
13
13
|
end
|
14
14
|
|
15
|
-
def
|
15
|
+
def create_order(connection_id, params)
|
16
16
|
validate(connection_id)
|
17
17
|
post("/v1/connections/#{connection_id}/orders", params)
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
20
|
+
def update_order(connection_id, transaction_id, params)
|
21
21
|
validate(connection_id)
|
22
22
|
validate(transaction_id)
|
23
23
|
put("/v1/connections/#{connection_id}/orders/#{transaction_id}", params)
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def get_order(connection_id, transaction_id)
|
27
27
|
validate(connection_id)
|
28
28
|
validate(transaction_id)
|
29
29
|
get("/v1/connections/#{connection_id}/orders/#{transaction_id}")
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
32
|
+
def delete_order(connection_id, transaction_id)
|
33
33
|
validate(connection_id)
|
34
34
|
validate(transaction_id)
|
35
35
|
delete("/v1/connections/#{connection_id}/orders/#{transaction_id}")
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
38
|
+
def list_refunds(connection_id, params = {})
|
39
39
|
validate(connection_id)
|
40
40
|
paginated_request(
|
41
41
|
"/v1/connections/#{connection_id}/refunds",
|
@@ -44,24 +44,24 @@ module SellerLedger
|
|
44
44
|
)
|
45
45
|
end
|
46
46
|
|
47
|
-
def
|
47
|
+
def create_refund(connection_id, params)
|
48
48
|
validate(connection_id)
|
49
49
|
post("/v1/connections/#{connection_id}/refunds", params)
|
50
50
|
end
|
51
51
|
|
52
|
-
def
|
52
|
+
def update_refund(connection_id, transaction_id, params)
|
53
53
|
validate(connection_id)
|
54
54
|
validate(transaction_id)
|
55
55
|
put("/v1/connections/#{connection_id}/refunds/#{transaction_id}", params)
|
56
56
|
end
|
57
57
|
|
58
|
-
def
|
58
|
+
def get_refund(connection_id, transaction_id)
|
59
59
|
validate(connection_id)
|
60
60
|
validate(transaction_id)
|
61
61
|
get("/v1/connections/#{connection_id}/refunds/#{transaction_id}")
|
62
62
|
end
|
63
63
|
|
64
|
-
def
|
64
|
+
def delete_refund(connection_id, transaction_id)
|
65
65
|
validate(connection_id)
|
66
66
|
validate(transaction_id)
|
67
67
|
delete("/v1/connections/#{connection_id}/refunds/#{transaction_id}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seller_ledger-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Reeth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|