Install the Shipment Product Offer Service Points Availability feature

Edit on GitHub

This document describes how to install the Shipment Product Offer Service Points Availability feature.

Prerequisites

Install the required features:

NAME VERSION INSTALLATION GUIDE
Product Offer Service Points Availability 202404.0 Install the Product Offer Service Points Availability feature
Shipment 202404.0 Install the Shipment feature

1) Install the required modules

Install the required modules using Composer:

composer require spryker-feature/shipment-product-offer-service-points-availability: "202404.0" --update-with-dependencies
Verification

Make sure the following modules have been installed:

MODULE EXPECTED DIRECTORY
ShipmentTypeProductOfferServicePointAvailabilitiesRestApi vendor/spryker/shipment-type-product-offer-service-point-availabilities-rest-api

2) Set up transfer objects

Generate transfer changes:

console transfer:generate
Verification
  • Make sure the following changes have been applied in transfer objects:
TRANSFER TYPE EVENT PATH
RestProductOfferServicePointAvailabilitiesRequestAttributes class created src/Generated/Shared/Transfer/RestProductOfferServicePointAvailabilitiesRequestAttributesTransfer
ProductOfferServicePointAvailabilityConditions class created src/Generated/Shared/Transfer/ProductOfferServicePointAvailabilityConditionsTransfer
  • Make sure you can use the shipmentTypeUuid filter when sending requests to the product-offer-service-point-availabilities resource. Example:

POST https://glue.mysprykershop.com/product-offer-service-point-availabilities

  {
      "data": {
          "type": "product-offer-service-point-availabilities",
          "attributes": {
              "servicePointUuids": [
                  ""
              ],
              "serviceTypeUuid": "",
              "productOfferServicePointAvailabilityRequestItems": [
                  {
                      "productConcreteSku": "",
                      "productOfferReference": "",
                      "quantity": 1
                  }
              ],
              "shipmentTypeUuid": ""
          }
      }
  }