erp_integration 0.15.0 → 0.16.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7ff2e87acc7c4f7745cfcde8ba1d63782b62a299f5a45aff3c51432bda90573
|
4
|
+
data.tar.gz: 77dea511053000c3906a188b81d7352257ceb00748b16f437f868b11e454f4e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21ddea6ca39edef5b14c05e6503fff43c0b6d91589ce45b9bb1694babeb1d7786bc08c93df899dff6898a643863b3d85414575092874b8af63ad848eeeaa105b
|
7
|
+
data.tar.gz: fe029b567c7d4f50461dfabe03bc231a2eb7482dc3eff962ef16c0843c4ed8bf0b9049d8513e6bdb15e735a8b9633d1a00869799eb704584005b8141e8f4a12e
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ErpIntegration
|
4
|
+
# The `ErpIntegration::ChannelListing` exposes an uniformed API for interaction with
|
5
|
+
# third-party ERP vendors.
|
6
|
+
class ChannelListing < Resource
|
7
|
+
attr_accessor :id, :channel, :product, :quantity
|
8
|
+
end
|
9
|
+
end
|
@@ -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 `ChannelListing` resource. When
|
41
|
+
# none is configured, it will default to Fulfil.
|
42
|
+
# @return [Symbol] The configured adapter for the channel_listing.
|
43
|
+
attr_writer :channel_listing_adapter
|
44
|
+
|
40
45
|
# Allows configuring an adapter for the `CustomerShipment` resource. When
|
41
46
|
# none is configured, it will default to Fulfil.
|
42
47
|
# @return [Symbol] The configured adapter for the customer shipment.
|
@@ -124,6 +129,10 @@ module ErpIntegration
|
|
124
129
|
@bill_of_material_output_adapter || :fulfil
|
125
130
|
end
|
126
131
|
|
132
|
+
def channel_listing_adapter
|
133
|
+
@channel_listing_adapter || :fulfil
|
134
|
+
end
|
135
|
+
|
127
136
|
def customer_shipment_adapter
|
128
137
|
@customer_shipment_adapter || :fulfil
|
129
138
|
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 :ChannelListing, 'erp_integration/channel_listing'
|
26
27
|
autoload :CustomerShipment, 'erp_integration/customer_shipment'
|
27
28
|
autoload :CustomerShipmentReturn, 'erp_integration/customer_shipment_return'
|
28
29
|
autoload :Product, 'erp_integration/product'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_integration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Vermaas
|
@@ -262,6 +262,7 @@ files:
|
|
262
262
|
- lib/erp_integration/bill_of_material.rb
|
263
263
|
- lib/erp_integration/bill_of_material_input.rb
|
264
264
|
- lib/erp_integration/bill_of_material_output.rb
|
265
|
+
- lib/erp_integration/channel_listing.rb
|
265
266
|
- lib/erp_integration/configuration.rb
|
266
267
|
- lib/erp_integration/customer_shipment.rb
|
267
268
|
- lib/erp_integration/customer_shipment_return.rb
|
@@ -276,6 +277,7 @@ files:
|
|
276
277
|
- lib/erp_integration/fulfil/resources/bill_of_material.rb
|
277
278
|
- lib/erp_integration/fulfil/resources/bill_of_material_input.rb
|
278
279
|
- lib/erp_integration/fulfil/resources/bill_of_material_output.rb
|
280
|
+
- lib/erp_integration/fulfil/resources/channel_listing.rb
|
279
281
|
- lib/erp_integration/fulfil/resources/customer_shipment.rb
|
280
282
|
- lib/erp_integration/fulfil/resources/customer_shipment_return.rb
|
281
283
|
- lib/erp_integration/fulfil/resources/product.rb
|
@@ -332,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
334
|
- !ruby/object:Gem::Version
|
333
335
|
version: '0'
|
334
336
|
requirements: []
|
335
|
-
rubygems_version: 3.2.
|
337
|
+
rubygems_version: 3.2.3
|
336
338
|
signing_key:
|
337
339
|
specification_version: 4
|
338
340
|
summary: Connects Mejuri with third-party ERP vendors
|