gopay-ruby 0.2.0 → 0.3.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
  SHA1:
3
- metadata.gz: 29758303f4240c5454eda97ba81cd6dd21e256fc
4
- data.tar.gz: 0528b98ea9cb686ce4de2b9da133e0e8cef91560
3
+ metadata.gz: 3e34205c1824d0fa8554f7d1b2aa07c1d319ec5e
4
+ data.tar.gz: 11a370a101de525db3488b608e361cafa44d3b3c
5
5
  SHA512:
6
- metadata.gz: 007ed3780d3cfc8a375a49e548c661e1e3351d4f135b0564120ae64a224b12d4f43fc8fef2be3af4989ffde7bf7990c360cc63743eb5f43489928b9a1ba83036
7
- data.tar.gz: dd7379e99b17452b379da4412ba1bcd7647c0f9180650f82308fb92b1b35ade09b465f66e1d18bf9ec0a17235dd2bd5a4e70f946a1a73dcc4368d9600042247e
6
+ metadata.gz: a99ff0a1ff750b90cd37b3b32b88ab59b79d85aa4e4e24eb4b5884cc34f5b85a065a0306942b7c4f336beffdf16812aeda34bff551821ff2c6c7e771df43cfbf
7
+ data.tar.gz: 69197fe9d22d06841a90e780e58e829f3c329ac5c59726a33cea6a50ac956bac80359109a1be3fdc5001dba1dac59d74bda9ac2cdea0ee3fe43667d9dcbd79f0
@@ -3,6 +3,9 @@ require 'gopay/error'
3
3
 
4
4
  module GoPay
5
5
  class Payment
6
+
7
+ # basic methods
8
+
6
9
  def self.create(payment_data)
7
10
  target = { target: { type: "ACCOUNT", goid: GoPay.goid } }
8
11
  GoPay.request :post, "/api/payments/payment", body_parameters: payment_data.merge(target)
@@ -24,5 +27,13 @@ module GoPay
24
27
  GoPay.request :post, "/api/payments/payment/#{original_payment_id}/create-recurrence", body_parameters: recurring_payment_data
25
28
  end
26
29
 
30
+ # other methods
31
+
32
+ def self.payment_instruments(currency)
33
+ goid = GoPay.goid
34
+ GoPay.request :get, "/api/eshops/eshop/#{goid}/payment-instruments/#{currency}"
35
+ end
36
+
37
+
27
38
  end
28
39
  end
@@ -1,7 +1,7 @@
1
1
  module GoPay
2
2
  class Version
3
3
  MAJOR = 0
4
- MINOR = 2
4
+ MINOR = 3
5
5
  PATCH = 0
6
6
 
7
7
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gopay-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Hrachovy & Ondrej Zadnik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.5.1
81
+ rubygems_version: 2.6.8
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Unofficial wrapper for GoPay REST API