pay 8.0.0 → 8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/pay/braintree/subscription.rb +2 -2
- data/app/models/pay/webhook.rb +1 -1
- data/lib/pay/stripe.rb +1 -1
- data/lib/pay/version.rb +1 -1
- 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: 5fe510d1e6a11611a8cd4678e965e1051f6e69ad6c404f55c3fa96312dfff51a
|
4
|
+
data.tar.gz: 54b73170c35476916fd17dc4ca11a7bc5d117888a04385e0947ef26dfd069e8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b55b7a23acd69d6f1a795805ba707f3cdbbceca636359ea509419a7a547764e048ce3c36c82f58b0fd34a97e2dac0561b76266ae42b7d62f39d6d9ce38f25944
|
7
|
+
data.tar.gz: ed7f92af40c8bfe066668a8c20212df7c316eb237db7091a5d44ca60e728c037e12d5e846ec6e4b87b3087cf22733568f101ceda2132ff945367b9245a46975a
|
@@ -191,7 +191,7 @@ module Pay
|
|
191
191
|
|
192
192
|
def discount_for_switching_to_monthly(current_plan, plan)
|
193
193
|
cycles = (money_remaining_on_yearly_plan(current_plan) / plan.price).floor
|
194
|
-
|
194
|
+
ActiveSupport::InheritableOptions.new(
|
195
195
|
amount: plan.price,
|
196
196
|
number_of_billing_cycles: cycles
|
197
197
|
)
|
@@ -209,7 +209,7 @@ module Pay
|
|
209
209
|
end
|
210
210
|
end
|
211
211
|
|
212
|
-
|
212
|
+
ActiveSupport::InheritableOptions.new(amount: amount, number_of_billing_cycles: 1)
|
213
213
|
end
|
214
214
|
|
215
215
|
def swap_across_frequencies(plan)
|
data/app/models/pay/webhook.rb
CHANGED
@@ -32,7 +32,7 @@ module Pay
|
|
32
32
|
|
33
33
|
def to_recursive_ostruct(obj)
|
34
34
|
if obj.is_a?(Hash)
|
35
|
-
|
35
|
+
ActiveSupport::InheritableOptions.new(obj.map { |key, val| [key.to_sym, to_recursive_ostruct(val)] }.to_h)
|
36
36
|
elsif obj.is_a?(Array)
|
37
37
|
obj.map { |o| to_recursive_ostruct(o) }
|
38
38
|
else # Assumed to be a primitive value
|
data/lib/pay/stripe.rb
CHANGED
data/lib/pay/version.rb
CHANGED
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.
|
4
|
+
version: 8.1.0
|
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-
|
13
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|