payjp 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/payjp/balance.rb +11 -0
- data/lib/payjp/version.rb +1 -1
- data/test/payjp/balance_test.rb +8 -0
- 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: 1b3f5f6b4f167980812b5c08363e4f67bab5c50c6707a4bf74ab2c1f128ebb28
|
4
|
+
data.tar.gz: 3cb5696fcb7c35e1f8dfa09012a0640469e6a26e926c11d8c676b32502692a12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd73a7ad86c466cb0af733c867ce19c18130052afff58374c49938cbc6f2c35e9ce6a9f60a00da9b2447fbe84cbd36467fd07a5b8fd5fbb71cf382e7a24e4f58
|
7
|
+
data.tar.gz: 6a2ddecfafbb56095fcb812a974462936f0ce72f33268d9ad5f4cd6f5c6f5d98e669595ac51d3cfbd6601c7b3190572db04c54f217b1cb4db15e0ce7e8be52d6
|
data/lib/payjp/balance.rb
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
module Payjp
|
2
2
|
class Balance < APIResource
|
3
3
|
include Payjp::APIOperations::List
|
4
|
+
|
5
|
+
def statement_urls(params = {}, opts = {})
|
6
|
+
response, opts = request(:post, statement_urls_url, params, opts)
|
7
|
+
response
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def statement_urls_url
|
13
|
+
url + '/statement_urls'
|
14
|
+
end
|
4
15
|
end
|
5
16
|
end
|
data/lib/payjp/version.rb
CHANGED
data/test/payjp/balance_test.rb
CHANGED
@@ -22,5 +22,13 @@ module Payjp
|
|
22
22
|
balance.delete
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
should "statement_urls should be callable" do
|
27
|
+
@mock.expects(:get).never
|
28
|
+
@mock.expects(:post).once.returns(test_response({ :object => "statement_url", :url => 'https://pay.jp/_/statements/8f9ec721bc734dbcxxxxxxxxxxxxxxxx', :expires => 1476676539 }))
|
29
|
+
c = Payjp::Statement.new('st_test')
|
30
|
+
response = c.statement_urls()
|
31
|
+
assert_equal response[:url], 'https://pay.jp/_/statements/8f9ec721bc734dbcxxxxxxxxxxxxxxxx'
|
32
|
+
end
|
25
33
|
end
|
26
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payjp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PAY.JP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|