effective_qb_online 0.5.0 → 0.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 933835da65ff9487b83d0173d9d2c99b42ed5d1c9ab106300a8ca3054a3f5507
|
4
|
+
data.tar.gz: a3a34db052fc1e03ccf54d25d4a60a9d8ab5620a275bd95902115372f42cf5b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c738355ceb7333b517d700c1dd1bae715489bd16f70fba38bdf0f0815f82b034a9ac26749645712bdd697b5f1a67d5b95c9eb4f5cfea9fd83e610ca1ade9066
|
7
|
+
data.tar.gz: 33c585499a07849c4bc077e9987f88d106bdd49db412c648b15927b194e5606457b583ea13e8a4d2cbfd822c4b5d4497a73d1c0ced636942d9e16f42f59ace8a
|
@@ -17,7 +17,7 @@ module Effective
|
|
17
17
|
scope: 'com.intuit.quickbooks.accounting'
|
18
18
|
)
|
19
19
|
|
20
|
-
redirect_to(grant_url)
|
20
|
+
redirect_to(grant_url, allow_other_host: true)
|
21
21
|
end
|
22
22
|
|
23
23
|
# This matches the QuickBooks Redirect URI and we have to set it up ahead of time.
|
@@ -39,7 +39,7 @@ module Effective
|
|
39
39
|
|
40
40
|
flash[:success] = 'Successfully connected with QuickBooks Online'
|
41
41
|
|
42
|
-
redirect_to(effective_qb_online.admin_quickbooks_path)
|
42
|
+
redirect_to(effective_qb_online.admin_quickbooks_path, allow_other_host: true)
|
43
43
|
end
|
44
44
|
|
45
45
|
def revoke
|
@@ -59,7 +59,7 @@ module Effective
|
|
59
59
|
flash[:danger] = 'Unable to revoke'
|
60
60
|
end
|
61
61
|
|
62
|
-
redirect_to(effective_qb_online.admin_quickbooks_path)
|
62
|
+
redirect_to(effective_qb_online.admin_quickbooks_path, allow_other_host: true)
|
63
63
|
end
|
64
64
|
|
65
65
|
private
|
@@ -105,11 +105,7 @@ module Effective
|
|
105
105
|
raise('expected an Effective::Order') unless order.kind_of?(Effective::Order)
|
106
106
|
|
107
107
|
with_service('Customer') do |service|
|
108
|
-
|
109
|
-
customer = service.find_by(:PrimaryEmailAddr, order.email)&.first
|
110
|
-
|
111
|
-
# Find by display name
|
112
|
-
customer || service.find_by(:display_name, scrub(order.billing_name))&.first
|
108
|
+
service.find_by(:display_name, scrub(order.billing_name))&.first
|
113
109
|
end
|
114
110
|
end
|
115
111
|
|
@@ -10,9 +10,7 @@ module Effective
|
|
10
10
|
|
11
11
|
order = receipt.order
|
12
12
|
raise('Expected a purchased Effective::Order') unless order.purchased?
|
13
|
-
|
14
|
-
user = order.user
|
15
|
-
raise('Expected a user with an email') unless user.respond_to?(:email)
|
13
|
+
raise('Expected an order with billing name') unless order.billing_name.present?
|
16
14
|
|
17
15
|
realm = api.realm
|
18
16
|
raise('Missing Deposit to Account') unless realm.deposit_to_account_id.present?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_qb_online
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|