solidus_bactracs 3.5.0 → 3.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68d5604c3c0c9d1adc9f28adcbad8ada220a5298b6da3bd95e3191d9312c3f83
4
- data.tar.gz: 68afe48eca765056b7ee4911a7adc678c0d9b3a9ec80a5f837a28abe162fdb8c
3
+ metadata.gz: 4e535e8a59bea282ee76d1fe01b99f738d19061abf29d1745e40bdcce792337e
4
+ data.tar.gz: 75d5f6d07e1fd88e1f30c46418c674059b582aca33a884b16830be441d39a708
5
5
  SHA512:
6
- metadata.gz: e4c01a7f12a92561bad95e64c0b47d84dbc56c20680f9ce6a52eb41daff320a0ed73e7dee511fb5b6a3936f2a579199b51cfe167b287fe917dc6f36c60570471
7
- data.tar.gz: a24a630d3b523e8a4ee8d8423f3b066bd2d8de9afb7bdcacdd542da437fc8c357d0a4ce082c590737b3b9bf8735c647ecfc0c89b21e9fff2c770c43742c8a8ef
6
+ metadata.gz: 39918c8782cd792f3fa091b2762dda89ea07db28a33a0598711fa561010a9eef293e2d7eb94c5f921f23a49a9afef5d995ee242f3a8fb4ce949f41a53d36f038
7
+ data.tar.gz: b47a72baad881dfe7645addb7caadf4be5529d90d625b73bd32341d992d04ad110d56f7dc8730744a46ba55cb6edb45b1e3a19bbe6efe78a6363fbb2a17822c4
@@ -13,9 +13,6 @@ module SolidusBactracs
13
13
  def call(sguid: nil)
14
14
  order = @shipment.order
15
15
  user = @shipment.user
16
- rma_type = safe_rma_type
17
- rp_location = get_rp_location
18
- df_part = get_df_part
19
16
 
20
17
  xml = Builder::XmlMarkup.new
21
18
  xml.instruct!(:xml, :encoding => "UTF-8")
@@ -26,7 +23,7 @@ module SolidusBactracs
26
23
  xml.sGuid sguid
27
24
  xml.NewRMA {
28
25
  xml.RMANumber @shipment.number
29
- xml.RMATypeName rma_type
26
+ xml.RMATypeName safe_rma_type
30
27
  xml.RMASubTypeName
31
28
  xml.CustomerRef
32
29
  xml.InboundShippingPriority
@@ -95,8 +92,8 @@ module SolidusBactracs
95
92
  xml.WarrantyRepair
96
93
  xml.RMALineTest
97
94
  xml.InboundShipWeight variant.weight.to_f
98
- xml.RPLocation rp_location
99
- xml.DFPart df_part
95
+ xml.RPLocation get_rp_location
96
+ xml.DFPart get_df_part
100
97
  }
101
98
  end
102
99
 
@@ -107,9 +104,8 @@ module SolidusBactracs
107
104
 
108
105
  def get_rp_location
109
106
  #Double verifing
110
- return nil if rma_type == "4"
107
+ return nil if safe_rma_type == "4"
111
108
 
112
- rp_location = @shipment.get_rma_rp_location if @shipment.get_rma_rp_location
113
109
  @config.default_rp_location.call(@shipment)
114
110
  end
115
111
 
@@ -119,7 +115,7 @@ module SolidusBactracs
119
115
 
120
116
  def get_df_part
121
117
  df_part =
122
- if rma_type == "4"
118
+ if safe_rma_type == "4"
123
119
  @shipment.number
124
120
  else
125
121
  nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBactracs
4
- VERSION = '3.5.0'
4
+ VERSION = '3.5.1'
5
5
  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.5.0
4
+ version: 3.5.1
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-11-08 00:00:00.000000000 Z
12
+ date: 2022-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty