shopify_transporter 2.4.2 → 2.5.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9332dbc1df8f90380027783d5e079153d4cb82e0268a46a0e79d2dbfdcc994ba
|
4
|
+
data.tar.gz: 11118012b99e576de3f579d2f04764f67d3b38d3f19e9de9747fd6a66a98813a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 449e03e75680cad6c9c37df3265c14fb96fa7147db69f923f7f9452ee556cf30086b540b5c3b984f59b2e836a7e6a9affa1c851a112cd4a1fa0e7450aa67e4c5
|
7
|
+
data.tar.gz: 67453eaca770aca247c342540772cfd1cdf96acd2a47470088e64b5546bd73825bb94ce6729332547e09660242a5f21071f994a522a4c8682baef0f231840f1d
|
@@ -74,12 +74,16 @@ module ShopifyTransporter
|
|
74
74
|
|
75
75
|
def soap_client
|
76
76
|
@soap_client ||= Savon.client(
|
77
|
-
wsdl: "
|
77
|
+
wsdl: "#{hostname_with_scheme}/api/v2_soap?wsdl",
|
78
78
|
open_timeout: 500,
|
79
79
|
read_timeout: 500,
|
80
80
|
)
|
81
81
|
end
|
82
82
|
|
83
|
+
def hostname_with_scheme
|
84
|
+
URI.parse(@hostname).scheme.present? ? @hostname : 'https://' + @hostname
|
85
|
+
end
|
86
|
+
|
83
87
|
def soap_session_id
|
84
88
|
return @soap_session_id if @soap_session_id.present?
|
85
89
|
|
@@ -82,9 +82,11 @@ module ShopifyTransporter
|
|
82
82
|
def qualifies_for_percentage_discount?(hash)
|
83
83
|
return false unless line_items?(hash)
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
|
85
|
+
if line_items(hash).is_a?(Hash)
|
86
|
+
value_as_float(line_items(hash), 'discount_percent') > 0
|
87
|
+
else
|
88
|
+
all_discount_percentages(hash).length == 1 && all_discount_percentages(hash).first > 0
|
89
|
+
end
|
88
90
|
end
|
89
91
|
|
90
92
|
def line_items?(hash)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_transporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
208
|
rubyforge_project:
|
209
|
-
rubygems_version: 2.6
|
209
|
+
rubygems_version: 2.7.6
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: Tools for migrating to Shopify
|