solidus_bactracs 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/lib/solidus_bactracs/api/shipment_serializer.rb +7 -1
- data/lib/solidus_bactracs/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bbd41ca4504892004e3c4b39dd1688529cc02ca50dafbeb62b33f7f1bff14e4
|
4
|
+
data.tar.gz: 11c2cf0ee91d07eec4e08fa3ed2c5c0f4756cb2ef3e2cccacb605ee1d1f8dc74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb76a600bbefb62da8c9e066b9dec324c85506ebb7d616c2e3b6a857eff8f89133a08b0369f700e4441250e8342c093adbc4547951baf3a0da5b5b4f83347fca
|
7
|
+
data.tar.gz: 57eee50b741eb981483c6952aface01438f00bbd8fc7e7fae64819669997059009a72d3aafdcb4fb14c06466e18efc5dae6172497953eaffa6668cd39fc18c10
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.2
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby
|
1
|
+
ruby 3.1.1
|
@@ -14,6 +14,7 @@ module SolidusBactracs
|
|
14
14
|
order = @shipment.order
|
15
15
|
user = @shipment.user
|
16
16
|
rma_type = safe_rma_type
|
17
|
+
rp_location = get_rp_location
|
17
18
|
|
18
19
|
xml = Builder::XmlMarkup.new
|
19
20
|
xml.instruct!(:xml, :encoding => "UTF-8")
|
@@ -93,7 +94,7 @@ module SolidusBactracs
|
|
93
94
|
xml.WarrantyRepair
|
94
95
|
xml.RMALineTest
|
95
96
|
xml.InboundShipWeight variant.weight.to_f
|
96
|
-
xml.RPLocation
|
97
|
+
xml.RPLocation rp_location
|
97
98
|
}
|
98
99
|
end
|
99
100
|
|
@@ -102,6 +103,11 @@ module SolidusBactracs
|
|
102
103
|
rma_type ||= @config.evaluate_rma_type.call(@shipment)
|
103
104
|
end
|
104
105
|
|
106
|
+
def get_rp_location
|
107
|
+
rp_location = @shipment.get_rma_rp_location if @shipment.get_rma_rp_location
|
108
|
+
@config.default_rp_location.call(@shipment)
|
109
|
+
end
|
110
|
+
|
105
111
|
def find_sku_variant(variant)
|
106
112
|
@config.sku_map[variant.sku].present? ? @config.sku_map[variant.sku] : variant.sku
|
107
113
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_bactracs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeryab Ali
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
|
-
rubygems_version: 3.
|
236
|
+
rubygems_version: 3.3.7
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: A Solidus extension for integrating the Bactracs API.
|