assist-ruby-sdk 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f3883c3e887eaf73ad1dcfe5da8f9ce9b6ab0cb2
4
- data.tar.gz: 2beceb1e99a1b5cda2f36a973a4b3cd122639f25
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWJjZDNmYThjNTYwOGUzY2M2NzU3ZDIwY2ZmMjI2MDZlOTIzOTkyMw==
5
+ data.tar.gz: !binary |-
6
+ NDFjNGNkMGNjY2FhNzZkOWNkZTc3Zjk1NmZmYjZjNmIzYWRlYjMwZg==
5
7
  SHA512:
6
- metadata.gz: c3c4b0ab0c5754eef0b8712b856ba55450215d35df231d228c26599ee7a1405fbefa5ffbc224ef03f815168bb4a190b497364b1b4253e172a38300b19706ea3f
7
- data.tar.gz: 28b58d6b470b1d0e4d2d0420761dd0a32d0df52c441117ac77cba5c8585d7b82ec18aed849ce74552903c69d7cb1ed49bb64fe6ff067c1c17586cec3d9601959
8
+ metadata.gz: !binary |-
9
+ YmNkMGY0M2UwZTZkMTRkZGEyMGEzMTMxMDc0ZTYxYjcyODM5MzgyZTdjNTRj
10
+ OTM4YjMxMWY4ZDgxYWYxMjY2MzE5NDg2OTU4NTg4NWMyNWJhYTQzN2RmMGI3
11
+ NTQxMjNhODdiNDU5MDIxOTc1ZjliNThmYTM2NDEzYTI5MGQ1YWU=
12
+ data.tar.gz: !binary |-
13
+ MjM2NjVlNWJiMDA1N2U4Njg4MmMxY2I5ZTI2YmU3ZmVkNDFjMjM3MDBhM2M0
14
+ NzkyMzgzYjVlNDg5ZDkxN2FkYWIyY2IxNDViM2E3OWE1Y2FlZDg0YTgwYjA2
15
+ MDdlYjY0ZGMxZTIyMzEyODU5YzUyZWE5NzExNGQyMjY0NzU0MGM=
data/README.md CHANGED
@@ -92,16 +92,20 @@ See "List of the authorized request parameters" in the documentation [[EN](http:
92
92
  ```ruby
93
93
  # `order_number` - order number in the merchant payment system
94
94
  order_number = 999
95
- order_status = Assist.order_status(order_number, extra_params)
95
+ order_status = Assist.order_status(order_number)
96
96
 
97
- # with extra parameters
97
+ # with additional parameters
98
98
  extra_params = {}
99
99
  order_status = Assist.order_status(order_number, extra_params)
100
100
 
101
101
  order_status.status # => "Approved"
102
102
  order_status.billnumber # => "5775486652369300"
103
103
 
104
- # all response parameters
104
+ # parameters sent in the HTTP request
105
+ order_status.request_params # => {merchant_id: '111111', login: 'login',
106
+ # password: 'password', ...}
107
+
108
+ # response parameters
105
109
  order_status.result # => [{:ordernumber=>"999", :billnumber=>"5775486652369300",
106
110
  # :orderamount=>"111.00", :ordercurrency=>"RUB",
107
111
  # :orderstate=>"Approved", :packetdate=>"28.09.2016 23:32",
@@ -120,10 +124,14 @@ See "Receiving status by order number" and "OrderState field values" in the docu
120
124
  billnumber = "5775486652369300"
121
125
  result = Assist.cancel_order(billnumber)
122
126
 
123
- # with extra parameters
127
+ # with additional parameters
124
128
  extra_params = {}
125
129
  result = Assist.cancel_order(billnumber, extra_params)
126
130
 
131
+ # parameters sent in the HTTP request
132
+ result.request_params # => {merchant_id: '111111', login: 'login',
133
+ # password: 'password', ...}
134
+
127
135
  # response
128
136
  result.result # => {:ordernumber=>"999", :responsecode=>"AS000",
129
137
  # :recommendation=>nil, :orderdate=>"28.09.2016 23:31:00",
@@ -1,3 +1,3 @@
1
1
  module Assist
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -20,6 +20,10 @@ module Assist
20
20
  @result ||= parse_result
21
21
  end
22
22
 
23
+ def request_params
24
+ params
25
+ end
26
+
23
27
  def original_response
24
28
  response
25
29
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assist-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Chumakov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-29 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.12'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: webmock
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.1'
69
69
  description: The Assist Ruby SDK provides Ruby APIs to create, process and manage
@@ -76,9 +76,9 @@ executables:
76
76
  extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
- - ".gitignore"
80
- - ".rspec"
81
- - ".travis.yml"
79
+ - .gitignore
80
+ - .rspec
81
+ - .travis.yml
82
82
  - CODE_OF_CONDUCT.md
83
83
  - Gemfile
84
84
  - LICENSE.txt
@@ -110,17 +110,17 @@ require_paths:
110
110
  - lib
111
111
  required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ">="
113
+ - - ! '>='
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - ">="
118
+ - - ! '>='
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.5.1
123
+ rubygems_version: 2.4.3
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Assist Online Payment System SDK for Ruby.