erp_integration 0.38.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 +18 -0
- data/lib/erp_integration/fulfil/resources/internal_shipment.rb +13 -0
- data/lib/erp_integration/fulfil/resources/location.rb +13 -0
- data/lib/erp_integration/internal_shipment.rb +18 -0
- data/lib/erp_integration/location.rb +9 -0
- data/lib/erp_integration/version.rb +1 -1
- data/lib/erp_integration.rb +2 -0
- metadata +11 -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,16 @@ 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 | 
            +
             | 
| 60 | 
            +
                # Allows configuring an adapter for the `Location` resource. When
         | 
| 61 | 
            +
                # none is configured, it will default to Fulfil.
         | 
| 62 | 
            +
                # @return [Symbol] The configured adapter for the location.
         | 
| 63 | 
            +
                attr_writer :location_adapter
         | 
| 64 | 
            +
             | 
| 55 65 | 
             
                # Allows configuring an adapter for the `Product` resource. When none is
         | 
| 56 66 | 
             
                # configured, it will default to Fulfil.
         | 
| 57 67 | 
             
                # @return [Symbol] The configured adapter for the products.
         | 
| @@ -178,6 +188,14 @@ module ErpIntegration | |
| 178 188 | 
             
                  @customer_shipment_return_adapter || :fulfil
         | 
| 179 189 | 
             
                end
         | 
| 180 190 |  | 
| 191 | 
            +
                def internal_shipment_adapter
         | 
| 192 | 
            +
                  @internal_shipment_adapter || :fulfil
         | 
| 193 | 
            +
                end
         | 
| 194 | 
            +
             | 
| 195 | 
            +
                def location_adapter
         | 
| 196 | 
            +
                  @location_adapter || :fulfil
         | 
| 197 | 
            +
                end
         | 
| 198 | 
            +
             | 
| 181 199 | 
             
                def product_adapter
         | 
| 182 200 | 
             
                  @product_adapter || :fulfil
         | 
| 183 201 | 
             
                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,8 @@ 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'
         | 
| 34 | 
            +
              autoload :Location, 'erp_integration/location'
         | 
| 33 35 | 
             
              autoload :Product, 'erp_integration/product'
         | 
| 34 36 | 
             
              autoload :ProductCategory, 'erp_integration/product_category'
         | 
| 35 37 | 
             
              autoload :ProductTemplate, 'erp_integration/product_template'
         | 
    
        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:  | 
| 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,8 @@ 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
         | 
| 293 | 
            +
            - lib/erp_integration/fulfil/resources/location.rb
         | 
| 292 294 | 
             
            - lib/erp_integration/fulfil/resources/product.rb
         | 
| 293 295 | 
             
            - lib/erp_integration/fulfil/resources/product_category.rb
         | 
| 294 296 | 
             
            - lib/erp_integration/fulfil/resources/product_template.rb
         | 
| @@ -307,6 +309,8 @@ files: | |
| 307 309 | 
             
            - lib/erp_integration/fulfil/resources/webhook.rb
         | 
| 308 310 | 
             
            - lib/erp_integration/fulfil/where_clause.rb
         | 
| 309 311 | 
             
            - lib/erp_integration/gift_card.rb
         | 
| 312 | 
            +
            - lib/erp_integration/internal_shipment.rb
         | 
| 313 | 
            +
            - lib/erp_integration/location.rb
         | 
| 310 314 | 
             
            - lib/erp_integration/middleware/error_handling.rb
         | 
| 311 315 | 
             
            - lib/erp_integration/product.rb
         | 
| 312 316 | 
             
            - lib/erp_integration/product_category.rb
         | 
| @@ -338,7 +342,7 @@ metadata: | |
| 338 342 | 
             
              homepage_uri: https://www.github.com/mejuri-inc/erp-integration
         | 
| 339 343 | 
             
              source_code_uri: https://www.github.com/mejuri-inc/erp-integration
         | 
| 340 344 | 
             
              changelog_uri: https://www.github.com/mejuri-inc/erp-integration/blob/main/CHANGELOG.md
         | 
| 341 | 
            -
            post_install_message:
         | 
| 345 | 
            +
            post_install_message: 
         | 
| 342 346 | 
             
            rdoc_options: []
         | 
| 343 347 | 
             
            require_paths:
         | 
| 344 348 | 
             
            - lib
         | 
| @@ -353,8 +357,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 353 357 | 
             
                - !ruby/object:Gem::Version
         | 
| 354 358 | 
             
                  version: '0'
         | 
| 355 359 | 
             
            requirements: []
         | 
| 356 | 
            -
            rubygems_version: 3.2. | 
| 357 | 
            -
            signing_key:
         | 
| 360 | 
            +
            rubygems_version: 3.2.22
         | 
| 361 | 
            +
            signing_key: 
         | 
| 358 362 | 
             
            specification_version: 4
         | 
| 359 363 | 
             
            summary: Connects Mejuri with third-party ERP vendors
         | 
| 360 364 | 
             
            test_files: []
         |