Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/lib/
/src/lib/
/src/react-app-env.d.ts
/temp/
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# CHANGELOG

## v5.2.0

### API Versions

| API Name | API Version |
|----------|-------------|
| shopper-login | 1.46.0 |
| shopper-baskets | 1.11.0 |
| shopper-baskets | 2.5.1 |
| shopper-configurations | 1.2.0 |
| shopper-consents | 1.1.4 |
| shopper-context | 1.1.3 |
| shopper-customers | 1.7.0 |
| shopper-experience | 1.3.0 |
| shopper-gift-certificates | 1.2.0 |
| shopper-orders | 1.12.1 |
| shopper-payments | 1.4.0 |
| shopper-products | 1.3.0 |
| shopper-promotions | 1.2.0 |
| shopper-search | 1.8.0 |
| shopper-seo | 1.0.17 |
| shopper-stores | 1.2.0 |

## v5.1.0

### API Versions
Expand Down
6 changes: 3 additions & 3 deletions api-versions.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# APIs for ECOM v26.3
# APIs for ECOM v26.5
# Formally Shopper Login
auth-oas-v1=1.46.0
shopper-baskets-oas-v1=1.11.0
shopper-baskets-oas-v2=2.5.1
shopper-configurations-oas-v1=1.2.0
shopper-consents-oas-v1=1.1.4
shopper-context-oas-v1=1.1.3
shopper-customers-oas-v1=1.6.1
shopper-experience-oas-v1=1.2.1
shopper-customers-oas-v1=1.7.0
shopper-experience-oas-v1=1.3.0
shopper-gift-certificates-oas-v1=1.2.0
shopper-orders-oas-v1=1.12.1
shopper-payments-oas-v1=1.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Shopper Customers OAS",
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
"assetId": "shopper-customers-oas",
"version": "1.6.1",
"version": "1.7.0",
"classifier": "oas",
"tags": [],
"descriptorVersion": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ info:
x-api-type: Shopper
x-api-family: Customer
title: Shopper Customers
version: 1.6.1
version: 1.7.0
description: |-
[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/shopper-customers/shopper-customers-oas-v1-public.yaml)

Expand Down Expand Up @@ -620,8 +620,9 @@ paths:
type: integer
format: int32
default: 10
minimum: 1
maximum: 50
description: Maximum records to retrieve per request, not to exceed 50. Defaults to 10.
description: Number of records to retrieve per request. Must be between 1 (minimum) and 50 (maximum). Defaults to 10.
- name: offset
in: query
required: false
Expand Down Expand Up @@ -895,7 +896,7 @@ paths:
/organizations/{organizationId}/customers/{customerId}/payment-method-references/{paymentMethodReferenceId}:
delete:
summary: Delete a customer's payment method reference. This endpoint only accepts a registered customer ShopperToken (JWT).
description: Deletes a specific payment method reference from a customer's account using the payment method reference ID and account ID.
description: Deletes a specific payment method reference from a customer's account using the payment method reference ID and account ID. This endpoint requires Salesforce Payments integration.
operationId: deleteCustomerPaymentMethodReference
parameters:
- $ref: '#/components/parameters/paymentMethodReferenceId'
Expand All @@ -906,6 +907,40 @@ paths:
responses:
'204':
description: No content
security:
- ShopperToken:
- sfcc.shopper-myaccount.paymentinstruments.rw
/organizations/{organizationId}/customers/{customerId}/payment-method-references/actions/setup:
post:
summary: Set up a new payment method reference for a customer. This endpoint only accepts a registered customer ShopperToken (JWT).
description: Initiates the setup of a new payment method reference for a customer. This endpoint requires Salesforce Payments integration.
operationId: setupCustomerPaymentMethodReference
parameters:
- $ref: '#/components/parameters/customerId'
- $ref: '#/components/parameters/organizationId'
- $ref: '#/components/parameters/siteId'
- $ref: '#/components/parameters/zoneId'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentMethodReferenceSetupRequest'
examples:
PaymentMethodReferenceSetupBodyStripe:
$ref: '#/components/examples/PaymentMethodReferenceSetupBodyStripe'
PaymentMethodReferenceSetupBodyAdyen:
$ref: '#/components/examples/PaymentMethodReferenceSetupBodyAdyen'
required: true
responses:
'200':
description: Payment method reference setup initiated successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentMethodReferenceSetupResponse'
examples:
setupPaymentMethodReferenceSuccess:
$ref: '#/components/examples/setupPaymentMethodReferenceSuccess'
'400':
description: |
CustomerId URL parameter does not match the verified customer represented by the JWT token.
Expand All @@ -914,8 +949,8 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
registerCustomer400:
$ref: '#/components/examples/registerCustomer400'
getCustomer404:
$ref: '#/components/examples/getCustomer404'
'404':
description: |
Requested resource not found.
Expand All @@ -926,6 +961,8 @@ paths:
examples:
getCustomer404:
$ref: '#/components/examples/getCustomer404'
setupPaymentMethodReferencePaymentZoneNotFound404:
$ref: '#/components/examples/setupPaymentMethodReferencePaymentZoneNotFound404'
security:
- ShopperToken:
- sfcc.shopper-myaccount.paymentinstruments.rw
Expand Down Expand Up @@ -1864,6 +1901,11 @@ components:
example: Acme
maxLength: 256
type: string
crmContactId:
description: The customer's core contact ID.
example: 003xx000004WhKe
maxLength: 18
type: string
creationDate:
description: Returns the value of attribute 'creationDate'.
example: '9999-12-31T00:00:00.0Z'
Expand Down Expand Up @@ -4177,6 +4219,58 @@ components:
example: 2028
description: The payment card expiration information.
description: Document representing a customer payment instrument update request. Only allows updating the default flag and card expiration date.
PaymentMethodReferenceSetupRequest:
type: object
description: Request to set up a new payment method reference.
required:
- gatewayProperties
properties:
paymentMethodType:
type: string
maxLength: 256
description: Payment Method Type
example: card
gatewayProperties:
description: Properties specific to the payment gateway
type: object
additionalProperties: false
properties:
stripe:
description: |
# Stripe-specific properties.
type: object
additionalProperties: true
adyen:
description: |
# Adyen-specific properties.
type: object
additionalProperties: true
PaymentMethodReferenceSetupResponse:
type: object
description: Response from setting up a new payment method reference.
required:
- paymentMethodReferenceSetupId
properties:
paymentMethodReferenceSetupId:
type: string
maxLength: 256
description: The provider-specific identifier for the payment method reference setup (e.g., Stripe Setup Intent ID, Adyen pspReference).
example: seti_1Mm8s8LkdIwHu7ix0OXBfTRG
gatewayProperties:
description: Properties specific to the payment gateway
type: object
additionalProperties: false
properties:
stripe:
description: |
# Stripe-specific properties.
type: object
additionalProperties: true
adyen:
description: |
# Adyen-specific properties.
type: object
additionalProperties: true
CustomerProductListRegistrant:
description: Document representing a customer product list registrant.
properties:
Expand Down Expand Up @@ -5441,6 +5535,20 @@ components:
maxLength: 256
type: string
example: acc_987654321
zoneId:
name: zoneId
in: query
description: The zone identifier for the payment configuration.
required: true
examples:
ZoneId:
value: Amer-Zone
schema:
type: string
description: The unique identifier for a Payments zone.
minLength: 1
maxLength: 100
example: Amer-Zone
listId:
name: listId
in: path
Expand Down Expand Up @@ -5512,6 +5620,7 @@ components:
customerRegistrationResponse:
value:
authType: registered
crmContactId: 003xx000004WhKe
creationDate: '2020-02-13T17:44:15.892Z'
customerId: abkd9LhOWzAiAFubdEDChtkMHW
customerNo: '00006002'
Expand Down Expand Up @@ -5594,6 +5703,7 @@ components:
salutation: Mr.
stateCode: MA
authType: registered
crmContactId: 003xx000004WhKe
creationDate: '2020-02-14T20:39:53.818Z'
customerId: abfTEMDZOgi3JPrkHjv9IhoziM
customerNo: '00010009'
Expand Down Expand Up @@ -5633,6 +5743,7 @@ components:
salutation: Mr.
stateCode: MA
authType: registered
crmContactId: 003xx000004WhKe
creationDate: '2020-02-14T20:39:53.818Z'
customerId: abfTEMDZOgi3JPrkHjv9IhoziM
customerNo: '00010009'
Expand Down Expand Up @@ -5669,6 +5780,7 @@ components:
updateCustomerResponse:
value:
authType: registered
crmContactId: 003xx000004WhKe
creationDate: '2020-02-14T20:39:53.818Z'
customerId: abfTEMDZOgi3JPrkHjv9IhoziM
customerNo: '00010009'
Expand Down Expand Up @@ -6414,6 +6526,37 @@ components:
title: Unsupported Fields
type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/unsupported-fields
detail: Unsupported fields in the request for updates.
PaymentMethodReferenceSetupBodyStripe:
summary: Setup Payment Method Reference (Stripe)
value:
paymentMethodType: card
gatewayProperties:
stripe:
usage: on_session
PaymentMethodReferenceSetupBodyAdyen:
summary: Setup Payment Method Reference (Adyen)
value:
gatewayProperties:
adyen:
paymentMethod:
type: scheme
encryptedCardNumber: test_4111111111111111
encryptedExpiryMonth: test_03
encryptedExpiryYear: test_2030
encryptedSecurityCode: test_737
setupPaymentMethodReferenceSuccess:
summary: Successful payment method reference setup (Stripe)
value:
paymentMethodReferenceSetupId: seti_1Mm8s8LkdIwHu7ix0OXBfTRG
gatewayProperties:
stripe:
clientSecret: seti_1Mm8s8LkdIwHu7ix0OXBfTRG_secret_NXDICkPqPeiBTAFYUKGBMVdE7
setupPaymentMethodReferencePaymentZoneNotFound404:
value:
title: Payment Zone Not Found
type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/payment-zone-not-found
detail: No payment zone with ID 'Amer-Zone' could be found.
zoneId: Amer-Zone
customerProductListResult:
value:
limit: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Shopper Experience OAS",
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
"assetId": "shopper-experience-oas",
"version": "1.2.1",
"version": "1.3.0",
"classifier": "oas",
"tags": [],
"descriptorVersion": "1.0.0",
Expand Down
Loading
Loading