erp_integration 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/erp_integration/configuration.rb +9 -0
- data/lib/erp_integration/customer_shipment_return.rb +22 -0
- data/lib/erp_integration/fulfil/resources/customer_shipment_return.rb +13 -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: 7aa8a1bdac1da55e10572a0f25ad21f3e608d77e014e6abfb1c8e93667dee23f
|
4
|
+
data.tar.gz: 7bda7954766e6925764a2477acdf7dbd5974d8fb463a44ba8ee6d9ad4b695a26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f72a741e0c219a30b961acea16804e9c47d8941e941518942856c20faef421ed0465b58e202ce0b79c29b6289334e6e3ae09e5a82bcc921aecb0d17fbcd80f2
|
7
|
+
data.tar.gz: 210749ddda85e42fa4cd8a4503580ca0c7e53de84f4c5339dd4a7c2476de8da14eb67023bdfafa47ae748481c09965acd53aac1fdd667f949d475ef5b704abfe
|
data/.gitignore
CHANGED
@@ -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 `CustomerShipmentReturn` resource. When
|
41
|
+
# none is configured, it will default to Fulfil.
|
42
|
+
# @return [Symbol] The configured adapter for the customer shipment.
|
43
|
+
attr_writer :customer_shipment_return_adapter
|
44
|
+
|
40
45
|
# Allows configuring an adapter for the `Product` resource. When none is
|
41
46
|
# configured, it will default to Fulfil.
|
42
47
|
# @return [Symbol] The configured adapter for the products.
|
@@ -100,6 +105,10 @@ module ErpIntegration
|
|
100
105
|
@bill_of_material_output_adapter || :fulfil
|
101
106
|
end
|
102
107
|
|
108
|
+
def customer_shipment_return_adapter
|
109
|
+
@customer_shipment_return_adapter || :fulfil
|
110
|
+
end
|
111
|
+
|
103
112
|
def product_adapter
|
104
113
|
@product_adapter || :fulfil
|
105
114
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ErpIntegration
|
4
|
+
# The `ErpIntegration::CustomerShipmentReturn` exposes an uniformed API for interaction with
|
5
|
+
# third-party ERP vendors.
|
6
|
+
class CustomerShipmentReturn < Resource
|
7
|
+
attr_accessor :aes_itn, :attachments, :available_carrier_services, :carrier,
|
8
|
+
:carrier_billing_account, :carrier_cost_method, :carrier_duties_account,
|
9
|
+
:carrier_service, :channels, :company, :contents_explanation, :contents_type,
|
10
|
+
:cost, :cost_currency, :cost_currency_digits, :create_date, :create_uid,
|
11
|
+
:customer, :customer_location, :customs_items, :delivery_address, :delivery_mode,
|
12
|
+
:done_by, :duties_tax_id, :duties_tax_id_type, :eel_pfc, :effective_date,
|
13
|
+
:eori_number, :id, :incoming_moves, :inventory_moves, :is_international_shipping,
|
14
|
+
:is_shippo, :last_modification, :license_plates, :messages, :metadata, :moves,
|
15
|
+
:packages, :planned_date, :private_notes, :public_notes, :putaway_by, :rec_blurb,
|
16
|
+
:rec_name, :received_by, :reference, :require_customs, :root_packages, :sales,
|
17
|
+
:sent_to_3pl_at, :shipping_instructions, :shipping_manifest, :sscc_code, :state,
|
18
|
+
:total_customs_value, :tpl_status, :tracking_number, :tsv, :warehouse, :warehouse_input,
|
19
|
+
:warehouse_storage, :warehouse_type, :weight, :weight_digits, :weight_uom,
|
20
|
+
:weight_uom_symbol, :write_date, :write_uid
|
21
|
+
end
|
22
|
+
end
|
data/lib/erp_integration.rb
CHANGED
@@ -23,6 +23,7 @@ module ErpIntegration
|
|
23
23
|
autoload :BillOfMaterial, 'erp_integration/bill_of_material'
|
24
24
|
autoload :BillOfMaterialInput, 'erp_integration/bill_of_material_input'
|
25
25
|
autoload :BillOfMaterialOutput, 'erp_integration/bill_of_material_output'
|
26
|
+
autoload :CustomerShipmentReturn, 'erp_integration/customer_shipment_return'
|
26
27
|
autoload :Product, 'erp_integration/product'
|
27
28
|
autoload :ProductionOrder, 'erp_integration/production_order'
|
28
29
|
autoload :PurchaseOrder, 'erp_integration/purchase_order'
|
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.9.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: 2022-01-
|
11
|
+
date: 2022-01-21 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: []
|
@@ -263,6 +263,7 @@ files:
|
|
263
263
|
- lib/erp_integration/bill_of_material_input.rb
|
264
264
|
- lib/erp_integration/bill_of_material_output.rb
|
265
265
|
- lib/erp_integration/configuration.rb
|
266
|
+
- lib/erp_integration/customer_shipment_return.rb
|
266
267
|
- lib/erp_integration/errors.rb
|
267
268
|
- lib/erp_integration/fulfil/api_resource.rb
|
268
269
|
- lib/erp_integration/fulfil/client.rb
|
@@ -273,6 +274,7 @@ files:
|
|
273
274
|
- lib/erp_integration/fulfil/resources/bill_of_material.rb
|
274
275
|
- lib/erp_integration/fulfil/resources/bill_of_material_input.rb
|
275
276
|
- lib/erp_integration/fulfil/resources/bill_of_material_output.rb
|
277
|
+
- lib/erp_integration/fulfil/resources/customer_shipment_return.rb
|
276
278
|
- lib/erp_integration/fulfil/resources/product.rb
|
277
279
|
- lib/erp_integration/fulfil/resources/production_order.rb
|
278
280
|
- lib/erp_integration/fulfil/resources/purchase_order.rb
|
@@ -306,7 +308,7 @@ metadata:
|
|
306
308
|
homepage_uri: https://www.github.com/mejuri-inc/erp-integration
|
307
309
|
source_code_uri: https://www.github.com/mejuri-inc/erp-integration
|
308
310
|
changelog_uri: https://www.github.com/mejuri-inc/erp-integration/blob/main/CHANGELOG.md
|
309
|
-
post_install_message:
|
311
|
+
post_install_message:
|
310
312
|
rdoc_options: []
|
311
313
|
require_paths:
|
312
314
|
- lib
|
@@ -321,8 +323,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
323
|
- !ruby/object:Gem::Version
|
322
324
|
version: '0'
|
323
325
|
requirements: []
|
324
|
-
rubygems_version: 3.
|
325
|
-
signing_key:
|
326
|
+
rubygems_version: 3.0.3
|
327
|
+
signing_key:
|
326
328
|
specification_version: 4
|
327
329
|
summary: Connects Mejuri with third-party ERP vendors
|
328
330
|
test_files: []
|