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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e04927ede4192a112eada01f9cbed0446c5be53239fa4e6a0ad0428e7bc5f223
4
- data.tar.gz: 255cb29b0aaa221b636c2bac80e4076e3847581511d115593c7fd6e835f38f6f
3
+ metadata.gz: d0270ff64998ad57112bcf113594f8db36b931f1d1dd468dbd3bae4e1c16eb70
4
+ data.tar.gz: c0e32cbbb9b0ee609c4ff0e30f2621367d61a74276f819a2abfdf754bf4e62a8
5
5
  SHA512:
6
- metadata.gz: 5dca21abfcb1d46a5da179129c6331cb0ed47c32601e1c144dc76d549a6d04a11294e198c2c8e0ab637c396620492a75a3e00aed74b0f6919c9a55aa694cd669
7
- data.tar.gz: ffbeed6e352fe7ff832f375e335877c184e0b136cba6df6df97fe502ae56fd6c961092f3125c7286ffef8315f9579e25b9b2d8972945d3c51b5c1981150294e1
6
+ metadata.gz: c45bd79ebfc04ac60497e4c7b844f060eb5acf6148fde65d27dd97d64dd81bd6712b4be4d98f9f1e072ca313d1afbcc1491a69d367b3b393571a811226c568c5
7
+ data.tar.gz: 9aaf07bc44d9002f5957bf73df57c5778700d7b0932968cafb22bba89e189e55ab0d83c5e5c3e4fab4891eef2b668098c851c034fa9f171c82bcf10c7f11530f
@@ -2,14 +2,14 @@ module Payjp
2
2
  class Statement < APIResource
3
3
  include Payjp::APIOperations::List
4
4
 
5
- def create_statement_urls(params = {}, opts = {})
6
- response, opts = request(:post, create_statement_urls_url, params, opts)
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 create_statement_urls_url
12
+ def statement_urls_url
13
13
  url + '/statement_urls'
14
14
  end
15
15
  end
data/lib/payjp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Payjp
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
@@ -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 "create_statement_urls should be callable" do
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.create_statement_urls()
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.12
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: 2023-11-17 00:00:00.000000000 Z
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client