erp_integration 0.39.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 709cbaf0b59e08e696e7f05fb8671b544f69219f8cf0644610fd98080ffe3f7f
4
- data.tar.gz: 2dc9273ef654f8438e26ee303f558ceca15272a7996ab22eadfe25eaf46648b8
3
+ metadata.gz: 72d94962925300cdca891afd80c10eabd3862c279302cd60f8bc5200edd53951
4
+ data.tar.gz: 0eb7d61dce356ceeef027159df1a00896d2b88a8f7f2319f2f999917599a9ed8
5
5
  SHA512:
6
- metadata.gz: 3417589709fbe3b803a12bf06f25fb2a0f01434d5d8bac0cef9f802a8f675b486f2bb8eb8cb93168a974d43d5917b5917a8b045bdffac4ac49433ac7813f418e
7
- data.tar.gz: 54509ad8bf29d1bbc8e4a1441dc75de1e78e33546047c64eacb321d7c8e72fd8d4753f2809d6667f6b3742c03b9f224f0fc8aac58ce47dde21b237d32e56acbc
6
+ metadata.gz: e3f20d995c2a1554da00c731844b76dfb793225ac9c68950ef9cd18ed3a6979158c57a51563032ef3579fa722f84edbefae2d302170a3ea2a05032d7db4b709f
7
+ data.tar.gz: c35177ad39f7a9c4b59b77baec5e3e279dd60bdf21254d458c65c8b9fde376b464dff9bdf06c7013f12119f494b1f6fddee9a189b74d29497a07d417ccf4a5fe
@@ -15,4 +15,4 @@ jobs:
15
15
  steps:
16
16
  - uses: seferov/pr-lint-action@master
17
17
  with:
18
- title-regex: '^\[RELEASE|NO-TICKET|DL|UDL|AD|DU|AR|IN|CON|DIS|AS|MT|SCR|RO|DEL-\d*\](\ )'
18
+ title-regex: '^\[RELEASE|NO-TICKET|DL|UDL|AD|DU|AR|IN|CON|DIS|AS|MT|SCR|RO|DEL|BE-\d*\](\ )'
@@ -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,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../api_resource'
4
+
5
+ module ErpIntegration
6
+ module Fulfil
7
+ module Resources
8
+ class InternalShipment < ApiResource
9
+ self.model_name = 'stock.shipment.internal'
10
+ end
11
+ end
12
+ end
13
+ 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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.39.0'
4
+ VERSION = '0.40.0'
5
5
  end
@@ -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.39.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-19 00:00:00.000000000 Z
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.3.7
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: []