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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32fcd8c9e2569e568458d8eac4dc882d1900e75577f8ff686801085b7d202385
4
- data.tar.gz: a4dd505473e1bf7fbd0fcd56c1620f00d5f4a39781f1c1ffdabc623f55d16464
3
+ metadata.gz: 1b3f5f6b4f167980812b5c08363e4f67bab5c50c6707a4bf74ab2c1f128ebb28
4
+ data.tar.gz: 3cb5696fcb7c35e1f8dfa09012a0640469e6a26e926c11d8c676b32502692a12
5
5
  SHA512:
6
- metadata.gz: 686404e37c62aafe0ce82a76264db1003651b3f43cc027cdae712911db20aaa3f0876ed7de74737d827e37fd97123406837dcaa4b6478c257f17ec7d411a1c0e
7
- data.tar.gz: 257f55f34bd2aa2347c14cbf0dadaa49229a36c21a6d130751f24984d175a01f4d31e1ef5418cff772c883c8bcfc0c47c584995ed03bcde7a7a8e0107d2a340f
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
@@ -1,3 +1,3 @@
1
1
  module Payjp
2
- VERSION = '0.0.14'
2
+ VERSION = '0.0.15'
3
3
  end
@@ -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.14
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-04-09 00:00:00.000000000 Z
11
+ date: 2024-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client