pay 8.1.3 → 8.2.1

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: 9c203986ec600312090922863e206b2136fc040e68cdab530575aa521501563b
4
- data.tar.gz: 9b0f5220d53a014148a3d7a58fc4c2f7fefd5b04fe92ced36c65decfabb4fd34
3
+ metadata.gz: a39b730745356243341550162435243b696379b5f11fd2a7b74d9c29889583b3
4
+ data.tar.gz: df19a0a68194d605b2ae3e00d570aaa0cbd843d24e6358b922d08bb87020c152
5
5
  SHA512:
6
- metadata.gz: 60caf2d4f344da6c2581636ee8d03991ecf0462fb0a7e7c7c502031b733228499c58da2ff47b746401115798a760e2ca759909b9b33d76379c92fdc5168b3666
7
- data.tar.gz: b530d41e9f0b4ff493575c3b3b74e8af07ff27557f2bf090eefee9b175862e4b05c1b6c9f9515bf38291946074841bfdfcd4e1c2cf0e093a467773a74931e7ec
6
+ metadata.gz: 8a579a7456dd58a98e7708b607a2e41b5576387ccc23070959cfed1909470811661c8e4ebd3c9ad6a59dfc7af1e74d3304f0d71dd6531573abb9beab499252a0
7
+ data.tar.gz: 6c8db9763ddc6664189ac098a72da3a7440e28f414cd11f6d4eb944f441856f7ba0aee8420f453391711bc0dea783db22d8b17067d86d4786182fbfa4681171a
@@ -32,7 +32,11 @@ module Pay
32
32
  end
33
33
 
34
34
  def resumable?
35
- on_grace_period? || paused?
35
+ if data&.has_key?("resumable")
36
+ data["resumable"]
37
+ else
38
+ on_grace_period? || paused?
39
+ end
36
40
  end
37
41
 
38
42
  def resume
@@ -99,7 +99,7 @@ module Pay
99
99
  end
100
100
 
101
101
  def cancel_now!(**options)
102
- cancel(options.merge(effective_from: "immediately"))
102
+ cancel(**options.merge(effective_from: "immediately"))
103
103
  rescue ::Paddle::Error => e
104
104
  raise Pay::PaddleBilling::Error, e
105
105
  end
@@ -68,7 +68,9 @@ module Pay
68
68
  "subscription-invoices" => ::LemonSqueezy::SubscriptionInvoice
69
69
  }.fetch(data["type"])
70
70
 
71
- type.new(data)
71
+ object = type.new(data)
72
+ object.meta = event["meta"]
73
+ object
72
74
  end
73
75
  end
74
76
 
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "8.1.3"
2
+ VERSION = "8.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.3
4
+ version: 8.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-10-29 00:00:00.000000000 Z
13
+ date: 2024-11-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.5.18
183
+ rubygems_version: 3.5.23
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Payments engine for Ruby on Rails