erp_integration 0.39.0 → 0.40.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/.github/workflows/pull_requests.yml +1 -1
- data/lib/erp_integration/configuration.rb +9 -0
- data/lib/erp_integration/fulfil/resources/internal_shipment.rb +13 -0
- data/lib/erp_integration/internal_shipment.rb +18 -0
- data/lib/erp_integration/version.rb +1 -1
- data/lib/erp_integration.rb +1 -0
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72d94962925300cdca891afd80c10eabd3862c279302cd60f8bc5200edd53951
|
4
|
+
data.tar.gz: 0eb7d61dce356ceeef027159df1a00896d2b88a8f7f2319f2f999917599a9ed8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3f20d995c2a1554da00c731844b76dfb793225ac9c68950ef9cd18ed3a6979158c57a51563032ef3579fa722f84edbefae2d302170a3ea2a05032d7db4b709f
|
7
|
+
data.tar.gz: c35177ad39f7a9c4b59b77baec5e3e279dd60bdf21254d458c65c8b9fde376b464dff9bdf06c7013f12119f494b1f6fddee9a189b74d29497a07d417ccf4a5fe
|
@@ -52,6 +52,11 @@ module ErpIntegration
|
|
52
52
|
# @return [Symbol] The configured adapter for the customer shipment.
|
53
53
|
attr_writer :customer_shipment_return_adapter
|
54
54
|
|
55
|
+
# Allows configuring an adapter for the `InternalShipment` resource.
|
56
|
+
# When none is configured, it will default to Fulfil.
|
57
|
+
# @return [Symbol] The configured adapter for the internal shipment.
|
58
|
+
attr_writer :internal_shipment_adapter
|
59
|
+
|
55
60
|
# Allows configuring an adapter for the `Location` resource. When
|
56
61
|
# none is configured, it will default to Fulfil.
|
57
62
|
# @return [Symbol] The configured adapter for the location.
|
@@ -183,6 +188,10 @@ module ErpIntegration
|
|
183
188
|
@customer_shipment_return_adapter || :fulfil
|
184
189
|
end
|
185
190
|
|
191
|
+
def internal_shipment_adapter
|
192
|
+
@internal_shipment_adapter || :fulfil
|
193
|
+
end
|
194
|
+
|
186
195
|
def location_adapter
|
187
196
|
@location_adapter || :fulfil
|
188
197
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ErpIntegration
|
4
|
+
# The `ErpIntegration::InternalShipment` exposes an uniformed API for interaction with
|
5
|
+
# third-party ERP vendors.
|
6
|
+
class InternalShipment < Resource
|
7
|
+
attr_accessor :acknowledged_by_receiving_3pl_at, :acknowledged_by_shipping_3pl_at, :aes_itn, :attachments, :carrier,
|
8
|
+
:carrier_cost_method, :carrier_service, :company, :contents_explanation, :contents_type, :cost,
|
9
|
+
:cost_currency, :create_date, :create_uid, :customs_items, :eel_pfc, :effective_date,
|
10
|
+
:effective_start_date, :from_location, :from_warehouse, :id, :incoming_moves, :incoterm,
|
11
|
+
:is_inter_warehouse, :is_international_shipping, :metadata, :number, :outgoing_moves, :packer,
|
12
|
+
:picked_at, :picker, :picking_status, :planned_date, :planned_start_date, :quantity_received,
|
13
|
+
:quantity_to_be_received, :quantity_total, :received_by, :reference, :request_confirmation,
|
14
|
+
:sent_to_3pl_at, :sent_to_receiving_3pl_at, :shipped_at, :shipped_by, :shipping_instructions,
|
15
|
+
:shipping_label_date, :shipping_manifest, :sscc_code, :state, :to_location, :to_warehouse,
|
16
|
+
:total_quantity, :tracking_number, :weight, :write_date, :write_uid
|
17
|
+
end
|
18
|
+
end
|
data/lib/erp_integration.rb
CHANGED
@@ -30,6 +30,7 @@ module ErpIntegration
|
|
30
30
|
autoload :ChannelListing, 'erp_integration/channel_listing'
|
31
31
|
autoload :CustomerShipment, 'erp_integration/customer_shipment'
|
32
32
|
autoload :CustomerShipmentReturn, 'erp_integration/customer_shipment_return'
|
33
|
+
autoload :InternalShipment, 'erp_integration/internal_shipment'
|
33
34
|
autoload :Location, 'erp_integration/location'
|
34
35
|
autoload :Product, 'erp_integration/product'
|
35
36
|
autoload :ProductCategory, 'erp_integration/product_category'
|
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.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Vermaas
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -224,7 +224,7 @@ dependencies:
|
|
224
224
|
- - '='
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: 1.19.2
|
227
|
-
description:
|
227
|
+
description:
|
228
228
|
email:
|
229
229
|
- stefan@knowndecimal.com
|
230
230
|
executables: []
|
@@ -289,6 +289,7 @@ files:
|
|
289
289
|
- lib/erp_integration/fulfil/resources/customer_shipment.rb
|
290
290
|
- lib/erp_integration/fulfil/resources/customer_shipment_return.rb
|
291
291
|
- lib/erp_integration/fulfil/resources/gift_card.rb
|
292
|
+
- lib/erp_integration/fulfil/resources/internal_shipment.rb
|
292
293
|
- lib/erp_integration/fulfil/resources/location.rb
|
293
294
|
- lib/erp_integration/fulfil/resources/product.rb
|
294
295
|
- lib/erp_integration/fulfil/resources/product_category.rb
|
@@ -308,6 +309,7 @@ files:
|
|
308
309
|
- lib/erp_integration/fulfil/resources/webhook.rb
|
309
310
|
- lib/erp_integration/fulfil/where_clause.rb
|
310
311
|
- lib/erp_integration/gift_card.rb
|
312
|
+
- lib/erp_integration/internal_shipment.rb
|
311
313
|
- lib/erp_integration/location.rb
|
312
314
|
- lib/erp_integration/middleware/error_handling.rb
|
313
315
|
- lib/erp_integration/product.rb
|
@@ -340,7 +342,7 @@ metadata:
|
|
340
342
|
homepage_uri: https://www.github.com/mejuri-inc/erp-integration
|
341
343
|
source_code_uri: https://www.github.com/mejuri-inc/erp-integration
|
342
344
|
changelog_uri: https://www.github.com/mejuri-inc/erp-integration/blob/main/CHANGELOG.md
|
343
|
-
post_install_message:
|
345
|
+
post_install_message:
|
344
346
|
rdoc_options: []
|
345
347
|
require_paths:
|
346
348
|
- lib
|
@@ -355,8 +357,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
355
357
|
- !ruby/object:Gem::Version
|
356
358
|
version: '0'
|
357
359
|
requirements: []
|
358
|
-
rubygems_version: 3.
|
359
|
-
signing_key:
|
360
|
+
rubygems_version: 3.2.22
|
361
|
+
signing_key:
|
360
362
|
specification_version: 4
|
361
363
|
summary: Connects Mejuri with third-party ERP vendors
|
362
364
|
test_files: []
|