pay 1.0.0.beta3 → 1.0.0.beta4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pay might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0817993d63f5a0bc099d95a0b6ecfc694c073e6c4008f305448317f97b07a163'
4
- data.tar.gz: 1669079455f855fa9e007973a88dc7d8c2a15239d3bab7f71e0f775b7e610fff
3
+ metadata.gz: 04da4cf2db886ff26020de3ff98a468590fe10fd884c0ecc751426495eb7e149
4
+ data.tar.gz: f9bda1c5e7d668e6dc84af02c6f8a90c3e3fc63fdb4468c35621151e5191535d
5
5
  SHA512:
6
- metadata.gz: 411deea5c9a7d27c9a4ca3a77c3e9e49cc9abef966208a5b6e3ccae7309dd30b715829b40ac51fff6e0a2125ab4a8805fed378fd3a1a9e97fdb172cac07b827f
7
- data.tar.gz: b761a7f23b722a39f15e3dd47198f9e6d2d04b9c0a6ed02f9682f00bb9b3e60e879c743da5a9cf8eeb6a7e454bb8fc9f20b3111f500f3587e3e8dc8f271dc8b7
6
+ metadata.gz: 692a1e69cca21a7b6329010a491043af5e31fe8e6d626bec1f244273a5078e86eb5ead1f6800c6e7f936da8bcf4f492606b8fa6e2987a4e13ec3df5f674b5893
7
+ data.tar.gz: 9b4b8fc38fde6014934d52d1e1ffbdaa863184e4e74138b4eea114e100c4582f70e3a3265120fee047a9b49275e1fd110184ed09207909e30536e789f3ab4fbc
data/lib/pay/billable.rb CHANGED
@@ -83,6 +83,18 @@ module Pay
83
83
  send("#{processor}_upcoming_invoice")
84
84
  end
85
85
 
86
+ def stripe?
87
+ processor == "stripe"
88
+ end
89
+
90
+ def braintree?
91
+ processor == "braintree"
92
+ end
93
+
94
+ def paypal?
95
+ braintree? && card_type == "PayPal"
96
+ end
97
+
86
98
  private
87
99
 
88
100
  def check_for_processor
@@ -118,14 +118,6 @@ module Pay
118
118
  # pass
119
119
  end
120
120
 
121
- def braintree?
122
- processor == "braintree"
123
- end
124
-
125
- def paypal?
126
- braintree? && card_type == "PayPal"
127
- end
128
-
129
121
  def save_braintree_transaction(transaction)
130
122
  attrs = card_details_for_braintree_transaction(transaction)
131
123
  attrs.merge!(amount: transaction.amount.to_f * 100)
@@ -84,10 +84,6 @@ module Pay
84
84
  ::Stripe::Invoice.upcoming(customer: processor_id)
85
85
  end
86
86
 
87
- def stripe?
88
- processor == "stripe"
89
- end
90
-
91
87
  # Used by webhooks when the customer or source changes
92
88
  def sync_card_from_stripe
93
89
  stripe_cust = stripe_customer
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = '1.0.0.beta3'
2
+ VERSION = '1.0.0.beta4'
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: 1.0.0.beta3
4
+ version: 1.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-13 00:00:00.000000000 Z
12
+ date: 2019-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails