xero_gateway-float 2.1.1 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/lib/xero_gateway/gateway.rb +19 -0
- data/xero_gateway.gemspec +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/xero_gateway/gateway.rb
CHANGED
@@ -537,6 +537,25 @@ module XeroGateway
|
|
537
537
|
response_xml = http_get(@client, "#{@xero_url}/Reports/#{report_name}", request_params)
|
538
538
|
end
|
539
539
|
|
540
|
+
|
541
|
+
|
542
|
+
#
|
543
|
+
# Get payments for a specific organisation in Xero
|
544
|
+
#
|
545
|
+
def get_payments(options = {})
|
546
|
+
|
547
|
+
request_params = {}
|
548
|
+
|
549
|
+
request_params[:OrderBy] = options[:order] if options[:order]
|
550
|
+
request_params[:ModifiedAfter] = options[:modified_since] if options[:modified_since]
|
551
|
+
|
552
|
+
request_params[:where] = options[:where] if options[:where]
|
553
|
+
|
554
|
+
response_xml = http_get(@client, "#{@xero_url}/Payments", request_params)
|
555
|
+
|
556
|
+
parse_response(response_xml, {:request_params => request_params}, {:request_signature => 'GET/payments'})
|
557
|
+
end
|
558
|
+
|
540
559
|
#
|
541
560
|
# Create Payment record in Xero
|
542
561
|
#
|
data/xero_gateway.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "xero_gateway-float"
|
3
|
-
s.version = "2.1.
|
4
|
-
s.date = "2012-
|
3
|
+
s.version = "2.1.3"
|
4
|
+
s.date = "2012-01-22"
|
5
5
|
s.summary = "Enables ruby based applications to communicate with the Xero API"
|
6
6
|
s.email = "tim@connorsoftware.com"
|
7
7
|
s.homepage = "http://github.com/latentflip/xero_gateway"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero_gateway-float
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-01-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: builder
|