payture-cheques 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b9032801d12b79cdc80714d708bc657bec95a78
4
- data.tar.gz: bb7c52a7d07ced38a97833d0e111ea8d2ee0cc8d
3
+ metadata.gz: e086d84eafa8c5752ebf6d78c6107a385d3ac595
4
+ data.tar.gz: 422a79503f3ad5023921883d6e13310b9ef7bc7f
5
5
  SHA512:
6
- metadata.gz: fc986c857b1aff15597fcff72d059bc485500a73ed9df18255817e3b5d41985f5a168040054f5bfbaf559c6a6544c9684f1d9e0e5467879763e3842435d79227
7
- data.tar.gz: 226fac0e06f779b56fbc0213247e875f9c071c7895b02b48cc03c8b42d2da593ca2511bf4d167537881f269d4664643224d3ad16899595742fe67d48ec968db2
6
+ metadata.gz: 40551d8a7dd3fc25637d2ff260244415932de35000eae26ebff44186b05764e2bab1034171cccd371c5e3903ef2bd51b8624e1cac4a339ea6c13596fde814915
7
+ data.tar.gz: 043670ae638cc81a3daa5155630166f4e0f206f484c4e056c4f5ea236b561d14bc96ede525ce803e32a854fa424b730725688b2923d0aa15fe4296e35134b4c6
@@ -11,10 +11,12 @@ module Payture::Cheques
11
11
 
12
12
  def params(cheque_id:, inn:, content:, group: nil)
13
13
  message = content.delete("Message") || content.delete(:Message)
14
+ additional_messages = content.delete("AdditionalMessages") || content.delete(:AdditionalMessages)
14
15
  params = {
15
16
  Key: config.merchant_id,
16
17
  Password: config.password,
17
18
  Message: message,
19
+ AdditionalMessages: additional_messages || [],
18
20
  Cheque: {
19
21
  Id: cheque_id,
20
22
  INN: inn,
@@ -20,6 +20,10 @@ module Payture::Cheques
20
20
  def error_code
21
21
  body['ErrCode']
22
22
  end
23
+
24
+ def error_messages
25
+ body['ErrMessages']
26
+ end
23
27
  end
24
28
  end
25
29
  end
@@ -1,5 +1,5 @@
1
1
  module Payture
2
2
  module Cheques
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payture-cheques
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Sviridov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-18 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.5.2
186
+ rubygems_version: 2.6.8
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Payture payment system API for sendind cheques separately from payments