Skip to content

Commit

Permalink
Merge pull request #2193 from spryker/feature/cc-29686/dev-common-ent…
Browse files Browse the repository at this point in the history
…ry-point-po-sp-availability

Install the Product Offer Service Points Availability feature
  • Loading branch information
andriitserkovnyi committed Oct 31, 2023
2 parents a67510e + e5c48de commit ccf0044
Show file tree
Hide file tree
Showing 7 changed files with 415 additions and 51 deletions.
10 changes: 9 additions & 1 deletion _data/sidebars/pbc_all_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1624,10 +1624,14 @@ entries:
url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-marketplace-product-feature.html
- title: Marketplace Product Offer + Quick Add to Cart
url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-quick-add-to-cart-feature.html
- title: Marketplace Product Offer Service Points
- title: Marketplace Product Offer + Service Points
url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-the-marketplace-product-offer-service-points-feature.html
include_versions:
- "202311.0"
- title: Marketplace Merchant + Product Offer Service Points Availability
url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-the-marketplace-merchant-product-offer-service-points-availability-feature.html
include_versions:
- "202311.0"
- title: Install Glue API
nested:
- title: Marketplace Product Offer
Expand Down Expand Up @@ -3417,6 +3421,10 @@ entries:
url: /docs/pbc/all/service-points/unified-commerce/install-and-upgrade/install-the-product-offer-shipments-availability-feature.html
include_versions:
- "202311.0"
- title: Shipment Product Offer Service Points Availability
url: /docs/pbc/all/service-points/unified-commerce/install-and-upgrade/install-the-shipment-product-offer-service-points-availability-feature.html
include_versions:
- "202311.0"
- title: Shopping List and Wishlist
url: /docs/pbc/all/shopping-list-and-wishlist/shopping-list-and-wishlist.html
nested:
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@


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 | {{page.version}} | [Install the Product Offer Service Points Availability feature](/docs/pbc/all/service-points/{{page.version}}/unified-commerce/install-and-upgrade/install-the-product-offer-service-points-availability-feature.html) |
| Shipment | {{page.version}} | [Shipment feature integration](/docs/pbc/all/carrier-management/{{page.version}}/base-shop/install-and-upgrade/install-features/install-the-shipment-feature.html) |

## 1) Install the required modules

Install the required modules using Composer:

```bash
composer require spryker-feature/shipment-product-offer-service-points-availability: "{{page.version}}" --update-with-dependencies
```

{% info_block warningBox "Verification" %}

Make sure the following modules have been installed:

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

{% endinfo_block %}


## 2) Set up transfer objects

Generate transfer changes:

```bash
console transfer:generate
```

{% info_block warningBox "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`
```json
{
"data": {
"type": "product-offer-service-point-availabilities",
"attributes": {
"servicePointUuids": [
"{{service-point-uuid}}"
],
"serviceTypeUuid": "{{service-type-uuid}}",
"productOfferServicePointAvailabilityRequestItems": [
{
"productConcreteSku": "{{product-concrete-sku}}",
"productOfferReference": "{{product-offer-reference}}",
"quantity": 1
}
],
"shipmentTypeUuid": "{{shipment-type-uuid}}"
}
}
}
```

{% endinfo_block %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@


This document describes how to install the Marketplace Merchant + Product Offer Service Points Availability.

## Prerequisites

Install the required features:

| NAME | VERSION | INSTALLATION GUIDE |
|-------------------------------------------|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Product Offer Service Points Availability | {{page.version}} | [Install the Product Offer Service Points Availability feature](/docs/pbc/all/service-points/{{page.version}}/unified-commerce/install-and-upgrade/install-the-product-offer-service-points-availability-feature.html) |
| Merchant | {{page.version}} | [Merchant feature integration](/docs/pbc/all/merchant-management/{{page.version}}/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-feature.html) |

## 1) Install the required modules

Install the required modules using Composer:

```bash
composer require spryker-feature/marketplace-merchant-product-offer-service-points-availability: "{{page.version}}" --update-with-dependencies
```

{% info_block warningBox "Verification" %}

Make sure the following modules have been installed:

| MODULE | EXPECTED DIRECTORY |
|-------------------------------------------------------|------------------------------------------------------------------------------|
| MerchantProductOfferServicePointAvailability | vendor/spryker/merchant-product-offer-service-point-availability |
| MerchantProductOfferServicePointAvailabilitiesRestApi | vendor/spryker/merchant-product-offer-service-point-availabilities-rest-api |
| MerchantProductOfferServicePointAvailabilityWidget | vendor/spryker-shop/merchant-product-offer-service-point-availability-widget |

{% endinfo_block %}

## 2) Set up transfer objects

Generate transfer changes:

```bash
console transfer:generate
```

{% info_block warningBox "Verification" %}

* Make sure the following changes have been applied in transfer objects:

| TRANSFER | TYPE | EVENT | PATH |
|----------------------------------------------------------------|-------|---------|------------------------------------------------------------------------------------------------------|
| ProductOfferServicePointAvailabilityRequestItem | class | created | src/Generated/Shared/Transfer/ProductOfferServicePointAvailabilityRequestItemTransfer |
| ProductOfferServicePointAvailabilityResponseItem | class | created | src/Generated/Shared/Transfer/ProductOfferServicePointAvailabilityResponseItemTransfer |
| RestProductOfferServicePointAvailabilityRequestItemsAttributes | class | created | src/Generated/Shared/Transfer/RestProductOfferServicePointAvailabilityRequestItemsAttributesTransfer |

* Make sure you can use the `merchantReference` filter when sending requests to the `product-offer-service-point-availabilities` resource. Example:

`POST https://glue.mysprykershop.com/product-offer-service-point-availabilities`
```json
{
"data": {
"type": "product-offer-service-point-availabilities",
"attributes": {
"servicePointUuids": [
"{{service-point-uuid}}"
],
"serviceTypeUuid": "{{service-type-uuid}}",
"productOfferServicePointAvailabilityRequestItems": [
{
"productConcreteSku": "{{product-concrete-sku}}",
"productOfferReference": "{{product-offer-reference}}",
"quantity": 1,
"merchantReference": "{{merchant-reference}}"
}
]
}
}
}
```

{% endinfo_block %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Install the Marketplace Merchant + Product Offer Service Points Availability feature
description: Install the Marketplace Merchant + Product Offer Service Points Availability feature
last_updated: Sep 21, 2023
template: feature-integration-guide-template
---

{% include pbc/all/install-features/{{page.version}}/marketplace/install-the-marketplace-merchant-product-offer-service-points-availability-feature.md %} <!-- To edit, see /_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-product-offer-service-points-availability-feature.md -->
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Install the Product Offer Service Points Availability feature
description: Learn how to integrate the Product Offer Service Points Availability feature into your project
last_updated: Sep 04, 2023
last_updated: Sep 21, 2023
template: feature-integration-guide-template
---

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Install the Shipment Product Offer Service Points Availability feature
description: Learn how to integrate the Shipment Product Offer Service Points Availability feature feature into your project
last_updated: Sep 21, 2023
template: feature-integration-guide-template
---

{% include pbc/all/install-features/{{page.version}}/install-the-shipment-product-offer-service-points-availability-feature.md %} <!-- To edit, see /_includes/pbc/all/install-features/202400.0/install-the-shipment-product-offer-service-points-availability-feature.md -->

0 comments on commit ccf0044

Please sign in to comment.