erp_integration 0.42.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/erp_integration/configuration.rb +9 -0
- data/lib/erp_integration/country.rb +8 -0
- data/lib/erp_integration/customer_shipment.rb +4 -0
- data/lib/erp_integration/fulfil/resources/country.rb +13 -0
- data/lib/erp_integration/fulfil/resources/customer_shipment.rb +8 -0
- data/lib/erp_integration/version.rb +1 -1
- data/lib/erp_integration.rb +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cdd4ce00f835ca16fc82dc61b1f39ea0d41ad70739d867fe512c3bb10cd2f28
|
4
|
+
data.tar.gz: 262bbf4aa723cba1050d5f5ba6caf41889027ca06fb76a3b8a2d9169d910c48e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe3b583efdc0992247a5918a746be2f3bb02a324c3b1914b5547dde742838168cd4b9cf6f9a1f7ad1d4bde2ef39f26c40413bb2eb1b9f080ea8e5fea9a58ca9b
|
7
|
+
data.tar.gz: 926ff526f0a60f52ec52dda46a08b3aa45d954d10911411c3d602d6448ba56e5d9ee012201919b2888057d5cd04f14574653101848a92e83b4e55c77c9c974ba
|
@@ -37,6 +37,11 @@ module ErpIntegration
|
|
37
37
|
# @return [Symbol] The configured adapter for the bill_of_material.
|
38
38
|
attr_writer :bill_of_material_output_adapter
|
39
39
|
|
40
|
+
# Allows configuring an adapter for the `Country` resource. When
|
41
|
+
# none is configured, it will default to Fulfil.
|
42
|
+
# @return [Symbol] The configured adapter for the country.
|
43
|
+
attr_writer :country_adapter
|
44
|
+
|
40
45
|
# Allows configuring an adapter for the `ChannelListing` resource. When
|
41
46
|
# none is configured, it will default to Fulfil.
|
42
47
|
# @return [Symbol] The configured adapter for the channel_listing.
|
@@ -176,6 +181,10 @@ module ErpIntegration
|
|
176
181
|
@box_type_adapter || :fulfil
|
177
182
|
end
|
178
183
|
|
184
|
+
def country_adapter
|
185
|
+
@country_adapter || :fulfil
|
186
|
+
end
|
187
|
+
|
179
188
|
def channel_listing_adapter
|
180
189
|
@channel_listing_adapter || :fulfil
|
181
190
|
end
|
@@ -28,5 +28,9 @@ module ErpIntegration
|
|
28
28
|
:tpl_status, :tracking_export_status, :tracking_number, :tracking_number_blurb, :tsv,
|
29
29
|
:ups_saturday_delivery, :warehouse, :warehouse_output, :warehouse_storage, :weight, :weight_digits,
|
30
30
|
:weight_uom, :weight_uom_symbol, :write_date, :write_uid
|
31
|
+
|
32
|
+
def split(options)
|
33
|
+
self.class.adapter.split(id, options)
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|
@@ -7,6 +7,14 @@ module ErpIntegration
|
|
7
7
|
module Resources
|
8
8
|
class CustomerShipment < ApiResource
|
9
9
|
self.model_name = 'stock.shipment.out'
|
10
|
+
|
11
|
+
# Split a CustomerShipment in Fulfil
|
12
|
+
#
|
13
|
+
# @param id [Integer, String] The ID of the Customer Shipment
|
14
|
+
# @param options [Hash] The attributes needed for the split.
|
15
|
+
def split(id, options)
|
16
|
+
client.put("model/stock.shipment.out/#{id}/split", options)
|
17
|
+
end
|
10
18
|
end
|
11
19
|
end
|
12
20
|
end
|
data/lib/erp_integration.rb
CHANGED
@@ -23,6 +23,7 @@ module ErpIntegration
|
|
23
23
|
# Resources
|
24
24
|
autoload :Carrier, 'erp_integration/carrier'
|
25
25
|
autoload :CarrierService, 'erp_integration/carrier_service'
|
26
|
+
autoload :Country, 'erp_integration/country'
|
26
27
|
autoload :BillOfMaterial, 'erp_integration/bill_of_material'
|
27
28
|
autoload :BillOfMaterialInput, 'erp_integration/bill_of_material_input'
|
28
29
|
autoload :BillOfMaterialOutput, 'erp_integration/bill_of_material_output'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_integration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.44.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Vermaas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -267,6 +267,7 @@ files:
|
|
267
267
|
- lib/erp_integration/carrier_service.rb
|
268
268
|
- lib/erp_integration/channel_listing.rb
|
269
269
|
- lib/erp_integration/configuration.rb
|
270
|
+
- lib/erp_integration/country.rb
|
270
271
|
- lib/erp_integration/customer_shipment.rb
|
271
272
|
- lib/erp_integration/customer_shipment_return.rb
|
272
273
|
- lib/erp_integration/errors.rb
|
@@ -286,6 +287,7 @@ files:
|
|
286
287
|
- lib/erp_integration/fulfil/resources/carrier.rb
|
287
288
|
- lib/erp_integration/fulfil/resources/carrier_service.rb
|
288
289
|
- lib/erp_integration/fulfil/resources/channel_listing.rb
|
290
|
+
- lib/erp_integration/fulfil/resources/country.rb
|
289
291
|
- lib/erp_integration/fulfil/resources/customer_shipment.rb
|
290
292
|
- lib/erp_integration/fulfil/resources/customer_shipment_return.rb
|
291
293
|
- lib/erp_integration/fulfil/resources/gift_card.rb
|
@@ -357,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
357
359
|
- !ruby/object:Gem::Version
|
358
360
|
version: '0'
|
359
361
|
requirements: []
|
360
|
-
rubygems_version: 3.
|
362
|
+
rubygems_version: 3.4.10
|
361
363
|
signing_key:
|
362
364
|
specification_version: 4
|
363
365
|
summary: Connects Mejuri with third-party ERP vendors
|