pin-payments 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +3 -0
  2. data/pin-payments.gemspec +2 -2
  3. metadata +2 -3
data/README.md CHANGED
@@ -108,6 +108,9 @@ Pin::Charge.all
108
108
 
109
109
  # get a charge with token "ch_lfUYEBK14zotCTykezJkfg"
110
110
  Pin::Charge.find("ch_lfUYEBK14zotCTykezJkfg")
111
+
112
+ # search for charges - see https://pin.net.au/docs/api/charges#search-charges for available parameters
113
+ Pin::Charge.search(query: 'refund', sort: :amount, start_date: 1.month.ago, end_date: '2013-08-01', direction: 'desc')
111
114
  ```
112
115
 
113
116
  ### Customers
data/pin-payments.gemspec CHANGED
@@ -4,8 +4,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'pin-payments'
7
- s.version = '1.1'
8
- s.date = '2013-08-06'
7
+ s.version = '1.2'
8
+ s.date = '2013-08-15'
9
9
  s.summary = "Pin Payments API wrapper"
10
10
  s.description = "A wrapper for the Pin Payments (https://pin.net.au/) API"
11
11
  s.authors = ["Alex Ghiculescu"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pin-payments
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-06 00:00:00.000000000 Z
12
+ date: 2013-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -100,7 +100,6 @@ files:
100
100
  - .gitignore
101
101
  - .travis.yml
102
102
  - Gemfile
103
- - Gemfile.lock
104
103
  - README.md
105
104
  - Rakefile
106
105
  - lib/pin-payments.rb