Skip to content

Commit c5f4bb1

Browse files
Release v3.0.0 (#166)
* add API changes for release * update readme and changelog * update changelog * update release notes * add shopper context description changes * bump version * update generated docs
1 parent 1e893c7 commit c5f4bb1

21 files changed

+324
-305
lines changed

CHANGELOG.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,26 @@
22

33
## v3.0.0
44

5-
### :warning: Planned Shopper Context Changes :warning:
5+
### :warning: Planned API Changes :warning:
66

7-
Starting July 31st 2024, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
7+
#### Shopper Context
8+
9+
Starting July 31st 2024, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025. You can read more about the planned change [here](https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-context?meta=Summary) in the notes section.
10+
11+
#### Shopper Login (SLAS)
12+
13+
SLAS will soon require new tenants to pass `channel_id` as an argument for retrieving guest access tokens. You can read more about the planned change [here](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas.html#guest-tokens).
14+
15+
Please be aware that existing tenants are on a temporary allow list and will see no immediate disruption to service. We do ask that all users seek to adhere to the `channel_id` requirement before the end of August to enhance your security posture before the holiday peak season.
16+
17+
In practice, we recommend:
18+
19+
- For customers using the SLAS helpers with a public client, it is recommended to upgrade to at least `v1.8.0` of the `commerce-sdk-isomorphic`.
20+
- For customers using the SLAS helpers with a private client, it is recommended to upgrade to `v3.0.0` of the `commerce-sdk-isomorphic`.
821

922
### Enchancements
1023

11-
- Update SLAS helper function `loginGuestUserPrivate` to require `channel_id` as SLAS requires `channel_id` when requesting a guest access token with a `grant_type` of `client_credentials` starting July 31st 2024 [#165](https://github.com/SalesforceCommerceCloud/commerce-sdk-isomorphic/pull/165)
12-
- See the [announcement on the developer docs](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas.html#guest-tokens) for more information
24+
- Update SLAS helper function `loginGuestUserPrivate` to require `channel_id` through `clientConfig.parameters.siteId` [#165](https://github.com/SalesforceCommerceCloud/commerce-sdk-isomorphic/pull/165)
1325

1426
## v2.1.0
1527

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,22 @@ This SDK provides a Browser & Node.js JavaScript client for calling [B2C Commerc
44

55
_For a Node.js only SDK that can also access Admin APIs checkout [Commerce SDK](https://github.com/SalesforceCommerceCloud/commerce-sdk)._
66

7-
## :warning: Planned Shopper Context Changes :warning:
7+
## :warning: Planned API Changes :warning:
88

9-
Starting July 31st 2024, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9+
### Shopper Context
10+
11+
Starting July 31st 2024, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025. You can read more about the planned change [here](https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-context?meta=Summary) in the notes section.
12+
13+
### Shopper Login (SLAS)
14+
15+
SLAS will soon require new tenants to pass `channel_id` as an argument for retrieving guest access tokens. You can read more about the planned change [here](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas.html#guest-tokens).
16+
17+
Please be aware that existing tenants are on a temporary allow list and will see no immediate disruption to service. We do ask that all users seek to adhere to the `channel_id` requirement before the end of August to enhance your security posture before the holiday peak season.
18+
19+
In practice, we recommend:
20+
21+
- For customers using the SLAS helpers with a public client, it is recommended to upgrade to at least `v1.8.0` of the `commerce-sdk-isomorphic`.
22+
- For customers using the SLAS helpers with a private client, it is recommended to upgrade to `v3.0.0` of the `commerce-sdk-isomorphic`.
1023

1124
## Getting Started
1225

apis/shopper-context/.metadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/shopper-context/0.0.28",
2+
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/shopper-context/0.0.29",
33
"name": "Shopper Context",
44
"description": "The Shopper Context API enables developers to build highly contextualized shopping experiences for shoppers.",
55
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
66
"assetId": "shopper-context",
7-
"version": "0.0.28",
7+
"version": "0.0.29",
88
"categories": {
99
"API layer": [
1010
"System"

apis/shopper-context/exchange.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8"
1212
}
1313
],
14-
"version": "0.0.28",
14+
"version": "0.0.29",
1515
"originalFormatVersion": "1.0",
1616
"apiVersion": "v1",
1717
"descriptorVersion": "0.1.0",

apis/shopper-context/shopper-context.raml

+17-5
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,14 @@ types:
102102
type: CommerceCloudStandards.Organization
103103
/shopper-context/{usid}:
104104
get:
105-
description: Gets the shopper's context based on the shopperJWT.
105+
description: |-
106+
Gets the shopper's context based on the shopperJWT.
107+
108+
With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
106109
displayName: getShopperContext
107110
queryParameters:
108111
siteId:
109-
description: The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting July 31 2024, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
112+
description: The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting January 2025, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
110113
example:
111114
SiteGenesis
112115
type: string
@@ -147,7 +150,10 @@ types:
147150
securedBy:
148151
- CommerceCloudStandards.ShopperToken: { scopes: [sfcc.shopper-context, sfcc.shopper-context.rw] }
149152
put:
150-
description: Creates the shopper's context based on shopperJWT.
153+
description: |-
154+
Creates the shopper's context based on shopperJWT.
155+
156+
With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
151157
displayName: createShopperContext
152158
queryParameters:
153159
siteId:
@@ -200,7 +206,10 @@ types:
200206
securedBy:
201207
- CommerceCloudStandards.ShopperToken: { scopes: [sfcc.shopper-context.rw] }
202208
delete:
203-
description: Gets the shopper's context based on the shopperJWT.
209+
description: |-
210+
Gets the shopper's context based on the shopperJWT.
211+
212+
With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
204213
displayName: deleteShopperContext
205214
queryParameters:
206215
siteId:
@@ -240,7 +249,10 @@ types:
240249
securedBy:
241250
- CommerceCloudStandards.ShopperToken: { scopes: [sfcc.shopper-context.rw] }
242251
patch:
243-
description: Updates the shopper's context based on the Shopper JWT. If the shopper context exists, it's updated with the patch body. If a `custom qualifier/assignment qualifer` or an `effectiveDateTime` or a `sourceCode` or a `customerGroupIds` is already present in the existing shopper context, its value is replaced by the corresponding value from the patch body. If a `custom qualifers'` or a `assignment qualifiers'` value is set to `null`, it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to an empty string (""), it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to `null`, it's ignored. If an `effectiveDateTime` or `sourceCode` or `custom/assignment qualifiiers'` value is new, it's added to the existing Shopper context. If `customerGroupIds` is set to empty array `[]` the existing value in shopper context is deleted.
252+
description: |-
253+
Updates the shopper's context based on the Shopper JWT. If the shopper context exists, it's updated with the patch body. If a `custom qualifier/assignment qualifer` or an `effectiveDateTime` or a `sourceCode` or a `customerGroupIds` is already present in the existing shopper context, its value is replaced by the corresponding value from the patch body. If a `custom qualifers'` or a `assignment qualifiers'` value is set to `null`, it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to an empty string (""), it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to `null`, it's ignored. If an `effectiveDateTime` or `sourceCode` or `custom/assignment qualifiiers'` value is new, it's added to the existing Shopper context. If `customerGroupIds` is set to empty array `[]` the existing value in shopper context is deleted.
254+
255+
With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
244256
displayName: updateShopperContext
245257
queryParameters:
246258
siteId:

apis/shopper-gift-certificates/.metadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/shopper-gift-certificates/1.0.16",
2+
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/shopper-gift-certificates/1.0.17",
33
"name": "Shopper Gift Certificates",
44
"description": "Obtain details about a gift certificate.",
55
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
66
"assetId": "shopper-gift-certificates",
7-
"version": "1.0.16",
7+
"version": "1.0.17",
88
"categories": {
99
"API layer": [
1010
"System"

apis/shopper-gift-certificates/exchange.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8"
1212
}
1313
],
14-
"version": "1.0.16",
14+
"version": "1.0.17",
1515
"originalFormatVersion": "1.0",
1616
"apiVersion": "v1",
1717
"descriptorVersion": "0.1.0",

apis/shopper-gift-certificates/shopper-gift-certificates.raml

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ uses:
1818
CommerceCloudStandards: exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/commerce-cloud-standards/2.0.1/commerce-cloud-standards.raml
1919
types:
2020
GiftCertificate:
21-
description: Document representing a gift certificate.
21+
description: |-
22+
Document representing a gift certificate.
23+
type:
24+
CommerceCloudStandards.OpenObject
2225
examples:
2326
gift-certificate: !include Examples/gift-certificate-example.raml
2427
properties:
@@ -63,7 +66,10 @@ types:
6366
- partially_redeemed
6467
- redeemed
6568
GiftCertificateRequest:
66-
description: Document representing a gift certificate request data.
69+
description: |-
70+
Document representing a gift certificate request data.
71+
type:
72+
CommerceCloudStandards.ClosedObject
6773
properties:
6874
giftCertificateCode:
6975
description: The gift certificate code.

apis/shopper-promotions/.metadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/shopper-promotions/1.0.26",
2+
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/shopper-promotions/1.0.27",
33
"name": "Shopper Promotions",
44
"description": "View details for active promotions.",
55
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
66
"assetId": "shopper-promotions",
7-
"version": "1.0.26",
7+
"version": "1.0.27",
88
"categories": {
99
"API layer": [
1010
"System"

apis/shopper-promotions/exchange.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8"
1212
}
1313
],
14-
"version": "1.0.26",
14+
"version": "1.0.27",
1515
"originalFormatVersion": "1.0",
1616
"apiVersion": "v1",
1717
"descriptorVersion": "0.1.0",

apis/shopper-promotions/shopper-promotions.raml

+8-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ uses:
1717

1818
types:
1919
Promotion:
20-
description: Document representing a promotion.
20+
description: |-
21+
Document representing a promotion.
22+
type:
23+
CommerceCloudStandards.OpenObject
2124
properties:
2225
calloutMsg:
2326
description: The localized call-out message of the promotion.
@@ -64,7 +67,10 @@ types:
6467
required: false
6568
example: 2015-07-04T21:00:00Z
6669
PromotionResult:
67-
description: Result document containing an array of promotions.
70+
description: |-
71+
Result document containing an array of promotions.
72+
type:
73+
CommerceCloudStandards.ClosedObject
6874
examples:
6975
promotion: !include Examples/promotions_result.raml
7076
properties:

docs/assets/js/search.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)