Skip to content

Commit dad4790

Browse files
committed
Updated API from documentation release
1 parent 8012514 commit dad4790

16 files changed

+14
-40
lines changed

api-specs/api/traits/price-selecting.raml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ queryParameters:
1616
It can be used only *in conjunction with* the `priceCurrency` parameter.
1717
priceCustomerGroupAssignments?:
1818
type: string[]
19-
(beta): true
2019
description: |
2120
IDs of existing [CustomerGroups](ctp:api:type:CustomerGroup) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection), when using [multiple Customer Groups](/../api/customers-overview#customer-groups).
2221
It can be used only *in conjunction with* the `priceCurrency` parameter.

api-specs/api/types/customer/Customer.raml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ properties:
116116
type: CustomerGroupReference
117117
description: |
118118
[CustomerGroup](ctp:api:type:CustomerGroup) to which the Customer belongs.
119+
customerGroupAssignments?:
120+
type: CustomerGroupAssignment[]
121+
description: |
122+
Customer Groups that the Customer belongs to.
123+
124+
Used for [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
119125
custom?:
120126
type: CustomFields
121127
description: |
@@ -140,8 +146,3 @@ properties:
140146
description: |
141147
Indicates whether the `password` is required for the Customer.
142148
default: Password
143-
customerGroupAssignments?:
144-
type: CustomerGroupAssignment[]
145-
(beta): true
146-
description: |
147-
Customer Groups that the Customer belongs to.

api-specs/api/types/customer/CustomerDraft.raml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ properties:
111111
type: CustomerGroupResourceIdentifier
112112
description: |
113113
Sets the [CustomerGroup](ctp:api:type:CustomerGroup) for the Customer.
114+
115+
For new projects, use `customerGroupAssignments` instead. It supports assigning Customers to multiple Customer Groups and provides greater flexibility in complex pricing scenarios.
116+
customerGroupAssignments?:
117+
type: CustomerGroupAssignmentDraft[]
118+
description: |
119+
Customer Groups to assign the Customer to.
120+
121+
Used for [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
114122
custom?:
115123
type: CustomFieldsDraft
116124
description: |
@@ -137,8 +145,3 @@ properties:
137145
- Set to `Password` to make the `password` field required for the Customer.
138146
- Set to `ExternalAuth` when the password is not required for the Customer.
139147
default: Password
140-
customerGroupAssignments?:
141-
type: CustomerGroupAssignmentDraft[]
142-
(beta): true
143-
description: |
144-
Customer Groups to assign the Customer to.

api-specs/api/types/customer/CustomerGroupAssignment.raml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#%RAML 1.0 DataType
22
(package): Customer
33
type: object
4-
(beta): true
54
displayName: CustomerGroupAssignment
65
properties:
76
customerGroup:

api-specs/api/types/customer/CustomerGroupAssignmentDraft.raml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#%RAML 1.0 DataType
22
(package): Customer
33
type: object
4-
(beta): true
54
displayName: CustomerGroupAssignmentDraft
65
properties:
76
customerGroup:

api-specs/api/types/customer/updates/CustomerAddCustomerGroupAssignmentAction.raml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#%RAML 1.0 DataType
22
(package): Customer
33
type: CustomerUpdateAction
4-
(beta): true
54
displayName: CustomerAddCustomerGroupAssignmentAction
65
discriminatorValue: addCustomerGroupAssignment
76
example: !include ../../../examples/Customer/CustomerAddCustomerGroupAssignmentAction.json

api-specs/api/types/customer/updates/CustomerRemoveCustomerGroupAssignmentAction.raml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#%RAML 1.0 DataType
22
(package): Customer
33
type: CustomerUpdateAction
4-
(beta): true
54
displayName: CustomerRemoveCustomerGroupAssignmentAction
65
discriminatorValue: removeCustomerGroupAssignment
76
example: !include ../../../examples/Customer/CustomerRemoveCustomerGroupAssignmentAction.json

api-specs/api/types/customer/updates/CustomerSetCustomerGroupAssignmentsAction.raml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#%RAML 1.0 DataType
22
(package): Customer
33
type: CustomerUpdateAction
4-
(beta): true
54
displayName: CustomerSetCustomerGroupAssignmentsAction
65
discriminatorValue: setCustomerGroupAssignments
76
example: !include ../../../examples/Customer/CustomerSetCustomerGroupAssignmentsAction.json

api-specs/api/types/message/CustomerGroupAssignmentAddedMessage.raml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#%RAML 1.0 DataType
22
(package): Message
33
type: Message
4-
(beta): true
54
displayName: CustomerGroupAssignmentAddedMessage
65
discriminatorValue: CustomerGroupAssignmentAdded
76
description: |

api-specs/api/types/message/CustomerGroupAssignmentRemovedMessage.raml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#%RAML 1.0 DataType
22
(package): Message
33
type: Message
4-
(beta): true
54
displayName: CustomerGroupAssignmentRemovedMessage
65
discriminatorValue: CustomerGroupAssignmentRemoved
76
description: |

0 commit comments

Comments
 (0)