payture_api 0.1.8 → 0.1.9

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: ee413a9ff649f0a6d2502ef8a274d5aac82bd516
4
- data.tar.gz: 61c5df04be3997c220d82ae34c7949e5ba43ffde
3
+ metadata.gz: 8a3edd7d1e2d500ab4c40c9a2f030753b906cf4e
4
+ data.tar.gz: 6d937157b303252427b884f212591212a8a744fc
5
5
  SHA512:
6
- metadata.gz: 743dbb834b1152482226f2e03290a9dde49bc92b7313194c1352569a9c6a6777853adc881ca6c64040a840632c050adefef83503ed5fbb1a1fab9d4ae5dfdaf9
7
- data.tar.gz: 9996d421a8561a57827f6ef61389cc5f356c65708bef8c44db98c7a390551be564d9046c28bca7d919349fa81578c6a5a408be87f8a4fa6103032908dbed86b1
6
+ metadata.gz: aa4280260835e64c82b64305eb1711229826648d856d44ec1625bfff7961d81eeb1d358d86511d63d6c53ce3489c34763e428d9424c8587e7dd9148d45b16b94
7
+ data.tar.gz: f0a98cb7762f2813f06cbdf75279d28a62e973d7dd06e17972e2d3c3d7f7f5a468c2ef149e36ef4d20945a9ceaf5782ad6f7bbbebe7fa56b65f50094d8f8b755
data/README.md CHANGED
@@ -123,6 +123,22 @@ wallet = Payture::User.new(HOST)
123
123
  result = wallet.delete(MERCHANT_ADD, payload)
124
124
  ```
125
125
 
126
+ ### Payture::Cards
127
+
128
+ #### GetList
129
+ ```ruby
130
+ HOST = ENV['PAYTURE_HOST'] // i.e. sandbox.payture.com
131
+ MERCHANT_ADD = ENV['PAYTURE_ADD'] // VWMerchantExampleAdd
132
+
133
+ payload = {
134
+ VWUserLgn: @user.email,
135
+ VWUserPsw: @user.token
136
+ }
137
+
138
+ wallet = Payture::Cards.new(HOST)
139
+ result = wallet.list(MERCHANT_ADD, payload)
140
+ ```
141
+
126
142
  ## Contributing
127
143
 
128
144
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/payture_ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
data/lib/payture/card.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  class Payture::Card < Payture::Wallet
2
2
 
3
- # PATH_ADD = '/vwapi/Add'
4
- #
5
- # def add(vwid, data)
6
- # self.request(PATH_ADD, vwid, data)
7
- # end
3
+ PATH_LIST = '/vwapi/GetList'
4
+
5
+ def list(vwid, data)
6
+ self.request(PATH_LIST, vwid, data)
7
+ end
8
8
 
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module Payture
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payture_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2017-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler