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