item_builder_mwh 0.1.29 → 0.1.30

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: 2b78cf06c6468a43cb0276bce86475e9e26225998a51a07ebc0f5abcccbb275a
4
- data.tar.gz: 26f16ef4c2b1e4c0d27ba8f1da2817b1c185713c0fa64af76f440ce9ec218eec
3
+ metadata.gz: a7d9cbd0ff16d3f1b3ff9f1eec6bbe89304e1445fe3d2cd9ed0fa07e3884c6b1
4
+ data.tar.gz: 874ff15f589f0b9de12af48badaabfc16dba5087796143f2b548080498f2c91f
5
5
  SHA512:
6
- metadata.gz: 5db1144fc273bb1861c8477a72dfc9d119c98e6c0fddb9befc07d13b431bfe116075ec0c70b315de618b2d7ddc35f9c8d8e4b241f8e26421d15b8a3ec502ac55
7
- data.tar.gz: 0a02b711a5dd12ebd751ffa106f786949456c25b555638962a102fbee3ef57c9ee5bb34e34e37d9af6ba673c357b8be82f88b88d21895293a4bbed43ef79bff4
6
+ metadata.gz: 556eb6eeb96fb7df53e15a03526de0a6f77377a6cd69c96e8bcc14e71491c863f16bf8ea8949eb61237d7ecf48f348156b1d495535de7d15cc6aba0914841928
7
+ data.tar.gz: ba4db1fbf9de3ce57a444ee75d0b157093a85df642869e89094f78f3b7d0c41e7890149ca97e44d87a4bba5b9ca1e1d8a9b29f97fb6bc00ae7449678c7b3bc4f
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemBuilderMwh
4
- VERSION = '0.1.29'
4
+ VERSION = '0.1.30'
5
5
  end
@@ -40,29 +40,23 @@ class ItemBuilderMwh
40
40
  listings.map do |listing|
41
41
  next unless listing.local_id.present?
42
42
 
43
- if listing.channel_id == 18
44
- new_param = qty_simple_params(listing)
45
- .merge({zilingo_quantity: zilingo_quantity})
46
-
47
- modes[mode].new(new_param).perform
48
- elsif listing.channel_id == 13
49
- new_param = qty_simple_params(listing)
50
- .merge({zalora_reserved_stock: zalora_reserved_stock})
51
-
52
- modes[mode].new(new_param).perform
53
- elsif listing.channel_id == 2
54
- new_param = qty_simple_params(listing)
55
- .merge({shopify_inventory_location: shopify_inventory_location})
56
-
57
- modes[mode].new(new_param).perform
58
- elsif listing.channel_id == 3
59
- new_param = qty_simple_params(listing)
60
- .merge({lazada_quantity: lazada_quantity})
61
-
62
- modes[mode].new(new_param).perform
63
- else
64
- modes[mode].new(qty_simple_params(listing)).perform
65
- end
43
+ param =
44
+ if listing.channel_id == 18
45
+ qty_simple_params(listing)
46
+ .merge(zilingo_quantity: @zilingo_quantity)
47
+ elsif listing.channel_id == 13
48
+ qty_simple_params(listing)
49
+ .merge(zalora_reserved_stock: @zalora_reserved_stock)
50
+ elsif listing.channel_id == 2
51
+ qty_simple_params(listing)
52
+ .merge({shopify_inventory_location: @shopify_inventory_location})
53
+ elsif listing.channel_id == 3
54
+ qty_simple_params(listing)
55
+ .merge({lazada_quantity: @lazada_quantity})
56
+ else
57
+ qty_simple_params(listing)
58
+ end
59
+ modes[mode].new(param).perform
66
60
  end.compact
67
61
  end
68
62
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_builder_mwh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ivander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-08 00:00:00.000000000 Z
11
+ date: 2021-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler