cryptomus 0.1.1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e49802cff57624bbb245f1ea8b7cf8bc2d7a1e177683cd9e68cdc3bddd3f8f7a
4
- data.tar.gz: 43a88732580c696d8c7eb5cf15c4dcbddf23a9abf88ea615fad7a8c1c451275b
3
+ metadata.gz: 559fbf0dade19be29d6d13f215dba7950417dd1ae662c0ec423e7ae825e7c7b0
4
+ data.tar.gz: 7e8660488af6dc921cc3ddb440c4a94124fa049d222e57b98cd639336874ed03
5
5
  SHA512:
6
- metadata.gz: d40cfe81a18225790b22fb0d208a0f34142ab87e807b9dd48b1fe134b14ba49a6af68181cc9d2dcaa09a7b26a3da787e6f2d60236e7b9c3853b3d18d6f937285
7
- data.tar.gz: 63f67b6b483951efb0a87d21640f098ee051a62776a7420c5bd119e0e3bdd3e28d2ed7ef4cd9a03daeb75a6b290ec34807a01335d0b9cd4e36da795511af66cf
6
+ metadata.gz: 36c76acdbe5b1f3e8a2410a53a4e246911f9fbfc85983b3bc5a1019023bcaba6572e3ef87067cf2da8af94b3efe895d2c00b3717a6111c2e7c602dbd2afef89b
7
+ data.tar.gz: 9055b88a192759c97a9529c4319c6cdb0db6a150a9b969ddee6fd46c54fcf8e2edbe85dbbe457fb93c86b62b3cd921f4f5d572519ee8ce49b167f76ea4f500f2
@@ -42,7 +42,14 @@ module Cryptomus
42
42
  # @raise [Cryptomus::Errors::ApiError]
43
43
  def payment(uuid: nil, order_id: nil)
44
44
  attributes = { uuid:, order_id: }.compact
45
- connection.get('/v1/payment/info', body: attributes)
45
+ connection.post('/v1/payment/info', body: attributes)
46
+ end
47
+
48
+ # https://doc.cryptomus.com/payments/list-of-services
49
+ # @return [Hash]
50
+ # @raise [Cryptomus::Errors::ApiError]
51
+ def list_services
52
+ connection.post('/v1/payment/services', body: {})
46
53
  end
47
54
 
48
55
  # https://doc.cryptomus.com/payments/creating-static
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptomus
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptomus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Talakevich