Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ _Table of contents_:
- [**Prerequisites**](#prerequisites)
- [**Starter Kit first deploy \& onboarding**](#starter-kit-first-deploy--onboarding)
- [**Development**](#development)
- [**Business Configuration**](#business-configuration)
- [**Integrating OpenTelemetry**](#integrating-opentelemetry)
- [**Included actions documentation**](#included-actions-documentation)
- [**References**](#references)
Expand Down Expand Up @@ -36,7 +37,7 @@ Go to the [Adobe developer console](https://developer.adobe.com/console) portal
- Adobe I/O Events for Adobe Commerce
- Adobe Commerce as a Cloud Service.
- If upgrading from previous versions without Adobe Commerce as a Cloud Service API:
- Check `.env` to ensure that `commerce.accs` scope has been added to `OAUTH_SCOPES`
- Check `.env` to ensure that `commerce.accs` scope has been added to `AIO_COMMERCE_AUTH_IMS_SCOPES`
- Download again workspace configuration as explained below and execute `aio app use` again.
- Download the [workspace configuration JSON](https://developer.adobe.com/commerce/extensibility/events/project-setup/#download-the-workspace-configuration-file) file and save it as `workspace.json` in the `./scripts/onboarding/config` starter kit folder because you will use it to configure Adobe IO Events in commerce afterward.

Expand All @@ -62,7 +63,7 @@ Following the next steps, you will deploy and onboard the starter kit for the fi
- Fill in the values following the comments on the env file.

> [!NOTE]
> When configuring the `COMMERCE_BASE_URL` environment variable, the format differs between PaaS and SaaS:
> When configuring the `AIO_COMMERCE_API_BASE_URL` environment variable, the format differs between PaaS and SaaS:
>
> For PaaS (On-Premise/Cloud):
>
Expand Down Expand Up @@ -101,10 +102,10 @@ Configure a new Integration to secure the calls to Commerce from App Builder usi
Store the credentials in the `.env` file, these are the minimum required values:

```dotenv
COMMERCE_CONSUMER_KEY=
COMMERCE_CONSUMER_SECRET=
COMMERCE_ACCESS_TOKEN=
COMMERCE_ACCESS_TOKEN_SECRET=
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY=
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET=
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN=
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET=
```

#### \[SaaS\] IMS OAuth - Add the OAuth Server to Server credentials to the environment
Expand All @@ -114,9 +115,9 @@ Configure a new IMS OAuth Server to Server following this [documentation](https:
Store the credentials in the `.env` file, these are the minimum required values:

```dotenv
OAUTH_CLIENT_ID=<string> # Your client ID
OAUTH_CLIENT_SECRET=<string> # Your client secret
OAUTH_SCOPES=<array> # ['scope1', 'scope2']
AIO_COMMERCE_AUTH_IMS_CLIENT_ID=<string> # Your client ID
AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS=<array> # ['client-secret']
AIO_COMMERCE_AUTH_IMS_SCOPES=<array> # ['scope1', 'scope2']
```

These are optional values that can be provided:
Expand Down Expand Up @@ -796,6 +797,12 @@ If you want to change an existing event, make the changes in the same places:
- Make changes to the operation action invoked by the consumer switch case.
- Deploy your changes

## Business Configuration

The integration starter kit comes pre-integrated with the `@adobe/aio-commerce-lib-config` library, which provides a way to set up configuration management and querying capabilities for your application. You can find more information about the package in the [library documentation](https://github.com/adobe/aio-commerce-sdk/blob/main/packages/aio-commerce-lib-config/docs/usage.md).

You can configure the `schema` for your integration in the `businessConfig.schema` section of the [`extensibility.config.js`](./extensibility.config.js) file. See the different supported types in the [schema documentation](https://github.com/adobe/aio-commerce-sdk/blob/main/packages/aio-commerce-lib-config/docs/usage.md#schema-validation).

## Integrating OpenTelemetry

> [!NOTE]
Expand Down
50 changes: 32 additions & 18 deletions actions/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ governing permissions and limitations under the License.
*/

const { Core } = require("@adobe/aio-sdk");
const { parseArrayParam } = require("./utils");
const logger = Core.Logger("auth", { level: "info" });
/**
*
Expand Down Expand Up @@ -55,21 +56,22 @@ function validateParams(params, expected) {
function fromParams(params) {
// `aio app dev` compatibility: inputs mapped to undefined env vars come as $<input_name> in dev mode, but as '' in prod mode
if (
params.COMMERCE_CONSUMER_KEY &&
params.COMMERCE_CONSUMER_KEY !== "$COMMERCE_CONSUMER_KEY"
params.AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY &&
params.AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY !==
"$AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY"
) {
logger.info("Commerce client is using Commerce OAuth1 authentication");
validateParams(params, [
"COMMERCE_CONSUMER_KEY",
"COMMERCE_CONSUMER_SECRET",
"COMMERCE_ACCESS_TOKEN",
"COMMERCE_ACCESS_TOKEN_SECRET",
"AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY",
"AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET",
"AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN",
"AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET",
]);
const {
COMMERCE_CONSUMER_KEY: consumerKey,
COMMERCE_CONSUMER_SECRET: consumerSecret,
COMMERCE_ACCESS_TOKEN: accessToken,
COMMERCE_ACCESS_TOKEN_SECRET: accessTokenSecret,
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: consumerKey,
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: consumerSecret,
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: accessToken,
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: accessTokenSecret,
} = params;
return {
commerceOAuth1: {
Expand All @@ -82,22 +84,34 @@ function fromParams(params) {
}

// `aio app dev` compatibility: inputs mapped to undefined env vars come as $<input_name> in dev mode, but as '' in prod mode
if (params.OAUTH_CLIENT_ID && params.OAUTH_CLIENT_ID !== "$OAUTH_CLIENT_ID") {
if (
params.AIO_COMMERCE_AUTH_IMS_CLIENT_ID &&
params.AIO_COMMERCE_AUTH_IMS_CLIENT_ID !==
"$AIO_COMMERCE_AUTH_IMS_CLIENT_ID"
) {
logger.info("Commerce client is using IMS OAuth authentication");
validateParams(params, [
"OAUTH_CLIENT_ID",
"OAUTH_CLIENT_SECRET",
"OAUTH_SCOPES",
"AIO_COMMERCE_AUTH_IMS_CLIENT_ID",
"AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS",
"AIO_COMMERCE_AUTH_IMS_SCOPES",
]);
const {
OAUTH_CLIENT_ID: clientId,
OAUTH_CLIENT_SECRET: clientSecret,
OAUTH_SCOPES: scopes,
AIO_COMMERCE_AUTH_IMS_CLIENT_ID: clientId,
AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS: clientSecretsRaw,
AIO_COMMERCE_AUTH_IMS_SCOPES: scopesRaw,
} = params;

// Parse JSON strings to arrays
const scopes = parseArrayParam(scopesRaw, ["AdobeID", "openid"]);
const clientSecrets = parseArrayParam(clientSecretsRaw, []).filter(
(secret) => secret.trim() !== "",
);

const imsProps = {
clientId,
clientSecret,
clientSecret: Array.isArray(clientSecrets)
? clientSecrets[0]
: clientSecrets,
scopes,
};
if (params.OAUTH_HOST) {
Expand Down
96 changes: 48 additions & 48 deletions actions/customer/external/actions.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ created:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
OAUTH_SCOPES: $OAUTH_SCOPES
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
AIO_COMMERCE_AUTH_IMS_CLIENT_ID: $AIO_COMMERCE_AUTH_IMS_CLIENT_ID
AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS: $AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS
AIO_COMMERCE_AUTH_IMS_SCOPES: $AIO_COMMERCE_AUTH_IMS_SCOPES
annotations:
require-adobe-auth: true
final: true
Expand All @@ -30,14 +30,14 @@ updated:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
OAUTH_SCOPES: $OAUTH_SCOPES
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
AIO_COMMERCE_AUTH_IMS_CLIENT_ID: $AIO_COMMERCE_AUTH_IMS_CLIENT_ID
AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS: $AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS
AIO_COMMERCE_AUTH_IMS_SCOPES: $AIO_COMMERCE_AUTH_IMS_SCOPES
annotations:
require-adobe-auth: true
final: true
Expand All @@ -47,14 +47,14 @@ deleted:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
OAUTH_SCOPES: $OAUTH_SCOPES
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
AIO_COMMERCE_AUTH_IMS_CLIENT_ID: $AIO_COMMERCE_AUTH_IMS_CLIENT_ID
AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS: $AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS
AIO_COMMERCE_AUTH_IMS_SCOPES: $AIO_COMMERCE_AUTH_IMS_SCOPES
annotations:
require-adobe-auth: true
final: true
Expand All @@ -64,14 +64,14 @@ group-created:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
OAUTH_SCOPES: $OAUTH_SCOPES
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
AIO_COMMERCE_AUTH_IMS_CLIENT_ID: $AIO_COMMERCE_AUTH_IMS_CLIENT_ID
AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS: $AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS
AIO_COMMERCE_AUTH_IMS_SCOPES: $AIO_COMMERCE_AUTH_IMS_SCOPES
annotations:
require-adobe-auth: true
final: true
Expand All @@ -81,14 +81,14 @@ group-updated:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
OAUTH_SCOPES: $OAUTH_SCOPES
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
AIO_COMMERCE_AUTH_IMS_CLIENT_ID: $AIO_COMMERCE_AUTH_IMS_CLIENT_ID
AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS: $AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS
AIO_COMMERCE_AUTH_IMS_SCOPES: $AIO_COMMERCE_AUTH_IMS_SCOPES
annotations:
require-adobe-auth: true
final: true
Expand All @@ -98,14 +98,14 @@ group-deleted:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
OAUTH_SCOPES: $OAUTH_SCOPES
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
AIO_COMMERCE_AUTH_IMS_CLIENT_ID: $AIO_COMMERCE_AUTH_IMS_CLIENT_ID
AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS: $AIO_COMMERCE_AUTH_IMS_CLIENT_SECRETS
AIO_COMMERCE_AUTH_IMS_SCOPES: $AIO_COMMERCE_AUTH_IMS_SCOPES
annotations:
require-adobe-auth: true
final: true
10 changes: 5 additions & 5 deletions actions/customer/external/created/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ created:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
annotations:
require-adobe-auth: true
final: true
Expand Down
2 changes: 1 addition & 1 deletion actions/customer/external/created/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { HTTP_INTERNAL_ERROR } = require("../../../constants");
async function sendData(params, transformed, preProcessed) {
try {
const response = await createCustomer(
params.COMMERCE_BASE_URL,
params.AIO_COMMERCE_API_BASE_URL,
params,
transformed,
);
Expand Down
10 changes: 5 additions & 5 deletions actions/customer/external/deleted/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ deleted:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
annotations:
require-adobe-auth: true
final: true
Expand Down
2 changes: 1 addition & 1 deletion actions/customer/external/deleted/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { HTTP_INTERNAL_ERROR } = require("../../../constants");
async function sendData(params, transformed, preProcessed) {
try {
const response = await deleteCustomer(
params.COMMERCE_BASE_URL,
params.AIO_COMMERCE_API_BASE_URL,
params,
transformed,
);
Expand Down
10 changes: 5 additions & 5 deletions actions/customer/external/group-created/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ group-created:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
annotations:
require-adobe-auth: true
final: true
Expand Down
2 changes: 1 addition & 1 deletion actions/customer/external/group-created/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const {
async function sendData(params, transformed, preProcessed) {
try {
const response = await createCustomerGroup(
params.COMMERCE_BASE_URL,
params.AIO_COMMERCE_API_BASE_URL,
params,
transformed,
);
Expand Down
10 changes: 5 additions & 5 deletions actions/customer/external/group-deleted/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ group-deleted:
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
COMMERCE_BASE_URL: $COMMERCE_BASE_URL
COMMERCE_CONSUMER_KEY: $COMMERCE_CONSUMER_KEY
COMMERCE_CONSUMER_SECRET: $COMMERCE_CONSUMER_SECRET
COMMERCE_ACCESS_TOKEN: $COMMERCE_ACCESS_TOKEN
COMMERCE_ACCESS_TOKEN_SECRET: $COMMERCE_ACCESS_TOKEN_SECRET
AIO_COMMERCE_API_BASE_URL: $AIO_COMMERCE_API_BASE_URL
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_KEY
AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_CONSUMER_SECRET
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN
AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET: $AIO_COMMERCE_AUTH_INTEGRATION_ACCESS_TOKEN_SECRET
annotations:
require-adobe-auth: true
final: true
Expand Down
2 changes: 1 addition & 1 deletion actions/customer/external/group-deleted/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const {
async function sendData(params, transformed, preProcessed) {
try {
const response = await deleteCustomerGroup(
params.COMMERCE_BASE_URL,
params.AIO_COMMERCE_API_BASE_URL,
params,
transformed,
);
Expand Down
Loading