effective_qb_online 0.5.0 → 0.6.0
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: f42e44d9f6b787e46abb8e3db985571748f0f559baa9ec3d3b4ceede2887248e
|
4
|
+
data.tar.gz: 88234f6aff15286412e4bef9d63873f9377e05e05dccc20be7c50316207ec120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 883700d09bf524af8e7430a7d82214762a02d76c7a145de99258c0e13a08440c6cc771ae1576ff9bd5fb78781174ca092ef31635ca6b84fdbae8a5531d797594
|
7
|
+
data.tar.gz: 359e604dcb62e8a09a018f125672f8ab797da4676d31953cbd19bee4fe7da5d116da957ec2fc42a6e14530ab9542e9ae4835a0cdae357d3bef1c6fec0c1e495e
|
@@ -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.0
|
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: 2024-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|