payjp 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +0 -0
  3. data/.gitignore +0 -0
  4. data/.rubocop.yml +0 -0
  5. data/.rubocop_todo.yml +0 -0
  6. data/CONTRIBUTORS +0 -0
  7. data/Gemfile +0 -0
  8. data/History.txt +0 -0
  9. data/LICENSE +0 -0
  10. data/README.md +0 -0
  11. data/Rakefile +0 -0
  12. data/lib/payjp/account.rb +0 -0
  13. data/lib/payjp/api_operations/create.rb +0 -0
  14. data/lib/payjp/api_operations/delete.rb +0 -0
  15. data/lib/payjp/api_operations/list.rb +0 -0
  16. data/lib/payjp/api_operations/request.rb +0 -0
  17. data/lib/payjp/api_operations/update.rb +0 -0
  18. data/lib/payjp/api_resource.rb +0 -0
  19. data/lib/payjp/card.rb +0 -0
  20. data/lib/payjp/charge.rb +9 -0
  21. data/lib/payjp/customer.rb +0 -0
  22. data/lib/payjp/errors/api_connection_error.rb +0 -0
  23. data/lib/payjp/errors/api_error.rb +0 -0
  24. data/lib/payjp/errors/authentication_error.rb +0 -0
  25. data/lib/payjp/errors/card_error.rb +0 -0
  26. data/lib/payjp/errors/invalid_request_error.rb +0 -0
  27. data/lib/payjp/errors/payjp_error.rb +0 -0
  28. data/lib/payjp/event.rb +0 -0
  29. data/lib/payjp/list_object.rb +0 -0
  30. data/lib/payjp/payjp_object.rb +0 -0
  31. data/lib/payjp/plan.rb +0 -0
  32. data/lib/payjp/subscription.rb +0 -0
  33. data/lib/payjp/tenant.rb +0 -0
  34. data/lib/payjp/token.rb +0 -0
  35. data/lib/payjp/transfer.rb +0 -0
  36. data/lib/payjp/util.rb +0 -0
  37. data/lib/payjp/version.rb +1 -1
  38. data/lib/payjp.rb +0 -0
  39. data/payjp.gemspec +0 -0
  40. data/test/payjp/account_test.rb +0 -0
  41. data/test/payjp/api_resource_test.rb +0 -0
  42. data/test/payjp/charge_test.rb +12 -0
  43. data/test/payjp/customer_card_test.rb +0 -0
  44. data/test/payjp/customer_test.rb +0 -0
  45. data/test/payjp/event_test.rb +0 -0
  46. data/test/payjp/list_object_test.rb +0 -0
  47. data/test/payjp/metadata_test.rb +0 -0
  48. data/test/payjp/payjp_object_test.rb +0 -0
  49. data/test/payjp/plan_test.rb +0 -0
  50. data/test/payjp/subscription_test.rb +0 -0
  51. data/test/payjp/tenant_test.rb +0 -0
  52. data/test/payjp/token_test.rb +0 -0
  53. data/test/payjp/transfer_test.rb +0 -0
  54. data/test/payjp/util_test.rb +0 -0
  55. data/test/test_data.rb +0 -0
  56. data/test/test_helper.rb +0 -0
  57. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e56a8b6072c8f7bf70ae67ddf6e4d2650bae25abf2d0f7ad73292a6d8849ba5e
4
- data.tar.gz: 964b24363b6ea92c347e87579c14480952a6f4722bc01113facd4f31a2ee3cd2
3
+ metadata.gz: ea73b4ff6c1c71f4c571eca0fe6b9ecc907e71b4fc1914a10438eacf7eb50b6c
4
+ data.tar.gz: 5212a4b8341623b164dbb4869a13a4c423454b7bbfbad2ec43b09f78bdce177f
5
5
  SHA512:
6
- metadata.gz: b8e03295fe9396b884ae2998a5f05d99070812425fda873550920dcf8a3d7824077175820ee86f5a050171a6925b6f676d42d0310b46eace7eef921c3589f594
7
- data.tar.gz: e457443ea5beca2294f37b524578fcd4ba2a79470c82fe822eb1195527db0dfd30851041f80ae5206880f3b39cfc9a3b1e4c33ecb5ab634f34afa5db26f58dc8
6
+ metadata.gz: 5e6f7dd0643142735d9929e6f8c5b9bf08ea7239597e26ed88f43a32fd082ab524f4b3ce13c35647458b53a283a23bea409e0d2e04e5d78a8470acd25eb804cd
7
+ data.tar.gz: 3239795693202e338eea11b1b88c61ea5ffdd7fac72d1545580276700b2d37b0949651e0bf7239eefd4c328af7695fb1275f22d3f37d710c60705eb53e2e88ac
File without changes
data/.gitignore CHANGED
File without changes
data/.rubocop.yml CHANGED
File without changes
data/.rubocop_todo.yml CHANGED
File without changes
data/CONTRIBUTORS CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/History.txt CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/lib/payjp/account.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/payjp/card.rb CHANGED
File without changes
data/lib/payjp/charge.rb CHANGED
@@ -19,6 +19,11 @@ module Payjp
19
19
  refresh_from(response, opts)
20
20
  end
21
21
 
22
+ def tds_finish(params = {}, opts = {})
23
+ response, opts = request(:post, tds_finish_url, params, opts)
24
+ refresh_from(response, opts)
25
+ end
26
+
22
27
  private
23
28
 
24
29
  def refund_url
@@ -32,5 +37,9 @@ module Payjp
32
37
  def reauth_url
33
38
  url + '/reauth'
34
39
  end
40
+
41
+ def tds_finish_url
42
+ url + '/tds_finish'
43
+ end
35
44
  end
36
45
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/payjp/event.rb CHANGED
File without changes
File without changes
File without changes
data/lib/payjp/plan.rb CHANGED
File without changes
File without changes
data/lib/payjp/tenant.rb CHANGED
File without changes
data/lib/payjp/token.rb CHANGED
File without changes
File without changes
data/lib/payjp/util.rb CHANGED
File without changes
data/lib/payjp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Payjp
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
data/lib/payjp.rb CHANGED
File without changes
data/payjp.gemspec CHANGED
File without changes
File without changes
File without changes
@@ -91,5 +91,17 @@ module Payjp
91
91
  c.reauth
92
92
  assert_equal expired_at.to_i, c.expired_at
93
93
  end
94
+
95
+ should "charges should be three_d_secure finishable" do
96
+ @mock.expects(:get).never
97
+ @mock.expects(:post).with do |url, api_key, params|
98
+ url == "#{Payjp.api_base}/v1/charges/test_charge/tds_finish" && api_key.nil? && CGI.parse(params) == {}
99
+ end.once.returns(test_response({ :id => "test_charge", :paid => true, :captured => true }))
100
+
101
+ c = Payjp::Charge.new("test_charge")
102
+ c.tds_finish
103
+ assert c.paid
104
+ assert c.captured
105
+ end
94
106
  end
95
107
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/test/test_data.rb CHANGED
File without changes
data/test/test_helper.rb CHANGED
File without changes
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - PAY.JP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.1.6
185
+ rubygems_version: 3.1.2
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Ruby bindings for the Payjp API