portmone 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/portmone/client.rb +9 -2
- data/lib/portmone/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: 9550c401461b350232c6e477c671e7108e59737b4a1e6486d0da410822b58c39
|
4
|
+
data.tar.gz: 937041ba3714c915525024357a4b6f67d1b2a29c812a69fed9a14026ff14555d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0f83a13ae6a871ebfb1c88b9f544c49fc60102a5c5bc90690cf3f7715e3f5ef7c94c42b888152a902ebad316f24f3ddd8b4d813fa0d66ee6d49254c548dfb6d
|
7
|
+
data.tar.gz: f80503d035abd5c0a19456725038c0226ec681bbaf07a0598008fb0ec43a921e542ccfe069d08149e8c9cc3dc30bb476b8d475f4d2f397fc0ccd2abc0f7b8525
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
portmone (0.0.
|
4
|
+
portmone (0.0.10)
|
5
5
|
activesupport
|
6
6
|
faraday (~> 0.9)
|
7
7
|
money (~> 6.0)
|
@@ -10,7 +10,7 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (5.2.
|
13
|
+
activesupport (5.2.3)
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
15
|
i18n (>= 0.7, < 2)
|
16
16
|
minitest (~> 5.1)
|
data/lib/portmone/client.rb
CHANGED
@@ -40,8 +40,15 @@ module Portmone
|
|
40
40
|
)
|
41
41
|
end
|
42
42
|
|
43
|
-
def order_status(shop_order_number)
|
44
|
-
|
43
|
+
def order_status(shop_order_number, created_date: nil)
|
44
|
+
if created_date
|
45
|
+
generic_report(shop_order_number: shop_order_number)
|
46
|
+
else
|
47
|
+
date = format_date(created_date)
|
48
|
+
generic_report(shop_order_number: shop_order_number,
|
49
|
+
start_date: date,
|
50
|
+
end_date: date)
|
51
|
+
end
|
45
52
|
end
|
46
53
|
|
47
54
|
def void(order_id)
|
data/lib/portmone/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: portmone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Sviridov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|