erp_integration 0.9.0 → 0.10.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: 7aa8a1bdac1da55e10572a0f25ad21f3e608d77e014e6abfb1c8e93667dee23f
4
- data.tar.gz: 7bda7954766e6925764a2477acdf7dbd5974d8fb463a44ba8ee6d9ad4b695a26
3
+ metadata.gz: d2575164b921d6b45ac6cfb10141c6199faaf5b360095b5124a14b38f1e81d61
4
+ data.tar.gz: 42c7dc28adefd40ff5cf91cb3f8631547c587cb37310dfa487ab9f5b5bebe707
5
5
  SHA512:
6
- metadata.gz: 7f72a741e0c219a30b961acea16804e9c47d8941e941518942856c20faef421ed0465b58e202ce0b79c29b6289334e6e3ae09e5a82bcc921aecb0d17fbcd80f2
7
- data.tar.gz: 210749ddda85e42fa4cd8a4503580ca0c7e53de84f4c5339dd4a7c2476de8da14eb67023bdfafa47ae748481c09965acd53aac1fdd667f949d475ef5b704abfe
6
+ metadata.gz: ebfc1904ac9116b1622be174c57cb166cf1cf15db401a561395bb00e499962f4dd59837e0657bcc7eb25668da9326791de13df4cd9fd97ece6d713dc422a6c14
7
+ data.tar.gz: 3844f4f39acbab1b5d62bf771085c723cb98bca680daba8b40b10ec678962f74ed37f5131c7d5d50597a209b4cb0c3f975b0a8970f91d716f48c0e44e08d819a
@@ -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 `CustomerShipment` 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_adapter
44
+
40
45
  # Allows configuring an adapter for the `CustomerShipmentReturn` resource. When
41
46
  # none is configured, it will default to Fulfil.
42
47
  # @return [Symbol] The configured adapter for the customer shipment.
@@ -105,6 +110,10 @@ module ErpIntegration
105
110
  @bill_of_material_output_adapter || :fulfil
106
111
  end
107
112
 
113
+ def customer_shipment_adapter
114
+ @customer_shipment_adapter || :fulfil
115
+ end
116
+
108
117
  def customer_shipment_return_adapter
109
118
  @customer_shipment_return_adapter || :fulfil
110
119
  end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ErpIntegration
4
+ # The `ErpIntegration::CustomerShipment` exposes an uniformed API for interaction with
5
+ # third-party ERP vendors.
6
+ class CustomerShipment < Resource
7
+ attr_accessor :acknowledged_by_3pl_at, :aes_itn, :assigned_by, :assigned_time, :attachments,
8
+ :available_carrier_services, :avg_cycle_time, :avg_cycle_time_cache, :carrier,
9
+ :carrier_billing_account, :carrier_cost_method, :carrier_duties_account,
10
+ :carrier_service, :channel_carrier_service_code, :channel_logo_url, :channels,
11
+ :checklists, :company, :consumable_moves, :consumables_cost, :consumables_cost_cache,
12
+ :contact_categories, :contents_explanation, :contents_type, :cost, :cost_currency,
13
+ :cost_currency_digits, :cost_invoice_line, :create_date, :create_return_label, :create_uid,
14
+ :customer, :customer_location, :customs_items, :default_box_type, :delivery_address,
15
+ :delivery_address_datetime, :delivery_mode, :done_by, :duties_tax_id, :duties_tax_id_type,
16
+ :eel_pfc, :effective_date, :eori_number, :fedex_saturday_delivery, :full_delivery_address,
17
+ :gift_message, :has_gift_message, :hold_reason, :id, :incoterm, :insurance_amount, :inventory_moves,
18
+ :invoices, :is_international_shipping, :is_shippo, :last_modification, :license_plates, :messages,
19
+ :metadata, :moves, :non_delivery_option, :number, :on_hold, :on_hold_until, :order_confirmation_time,
20
+ :order_numbers, :origins, :outgoing_moves, :packages, :packed_at, :packed_by, :packed_date, :packer,
21
+ :payment_status, :payment_transactions, :picked_at, :picked_date, :picker, :picking_started_at,
22
+ :picking_status, :planned_date, :planned_datetime, :planned_time, :priority, :private_notes,
23
+ :productions, :public_notes, :rec_blurb, :rec_name, :reference, :request_confirmation,
24
+ :requested_delivery_date, :requested_shipping_service, :require_customs, :root_packages, :sale_date,
25
+ :sales, :sent_to_3pl_at, :shipped_at, :shipper, :shipping_batch, :shipping_instructions,
26
+ :shipping_label_date, :shipping_label_printed, :shipping_manifest, :sscc_code, :state, :tax_id,
27
+ :total_amount_ccy, :total_cost, :total_customs_value, :total_item_cost_ccy, :total_quantity, :tpl,
28
+ :tpl_status, :tracking_export_status, :tracking_number, :tracking_number_blurb, :tsv,
29
+ :ups_saturday_delivery, :warehouse, :warehouse_output, :warehouse_storage, :weight, :weight_digits,
30
+ :weight_uom, :weight_uom_symbol, :write_date, :write_uid
31
+ end
32
+ end
@@ -12,8 +12,8 @@ module ErpIntegration
12
12
  :done_by, :duties_tax_id, :duties_tax_id_type, :eel_pfc, :effective_date,
13
13
  :eori_number, :id, :incoming_moves, :inventory_moves, :is_international_shipping,
14
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,
15
+ :origins, :number, :packages, :planned_date, :private_notes, :public_notes, :putaway_by,
16
+ :rec_blurb, :rec_name, :received_by, :reference, :require_customs, :root_packages, :sales,
17
17
  :sent_to_3pl_at, :shipping_instructions, :shipping_manifest, :sscc_code, :state,
18
18
  :total_customs_value, :tpl_status, :tracking_number, :tsv, :warehouse, :warehouse_input,
19
19
  :warehouse_storage, :warehouse_type, :weight, :weight_digits, :weight_uom,
@@ -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 CustomerShipment < ApiResource
9
+ self.model_name = 'stock.shipment.out'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.9.0'
4
+ VERSION = '0.10.0'
5
5
  end
@@ -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 :CustomerShipment, 'erp_integration/customer_shipment'
26
27
  autoload :CustomerShipmentReturn, 'erp_integration/customer_shipment_return'
27
28
  autoload :Product, 'erp_integration/product'
28
29
  autoload :ProductionOrder, 'erp_integration/production_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.9.0
4
+ version: 0.10.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: 2022-01-21 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -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.rb
266
267
  - lib/erp_integration/customer_shipment_return.rb
267
268
  - lib/erp_integration/errors.rb
268
269
  - lib/erp_integration/fulfil/api_resource.rb
@@ -274,6 +275,7 @@ files:
274
275
  - lib/erp_integration/fulfil/resources/bill_of_material.rb
275
276
  - lib/erp_integration/fulfil/resources/bill_of_material_input.rb
276
277
  - lib/erp_integration/fulfil/resources/bill_of_material_output.rb
278
+ - lib/erp_integration/fulfil/resources/customer_shipment.rb
277
279
  - lib/erp_integration/fulfil/resources/customer_shipment_return.rb
278
280
  - lib/erp_integration/fulfil/resources/product.rb
279
281
  - lib/erp_integration/fulfil/resources/production_order.rb