Skip to content

Commit dc5d043

Browse files
authored
build(codegen): updating SDK (#1108)
Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
1 parent 8ec7476 commit dc5d043

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

packages/platform-sdk/src/generated/models/customer.ts

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@ export interface Customer extends BaseResource {
200200
*
201201
*/
202202
readonly customerGroup?: CustomerGroupReference
203+
/**
204+
* Customer Groups that the Customer belongs to.
205+
*
206+
* Used for [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
207+
*
208+
*
209+
*/
210+
readonly customerGroupAssignments?: CustomerGroupAssignment[]
203211
/**
204212
* Custom Fields for the Customer.
205213
*
@@ -233,12 +241,6 @@ export interface Customer extends BaseResource {
233241
*
234242
*/
235243
readonly authenticationMode: AuthenticationMode
236-
/**
237-
* Customer Groups that the Customer belongs to.
238-
*
239-
*
240-
*/
241-
readonly customerGroupAssignments?: CustomerGroupAssignment[]
242244
}
243245
export interface CustomerChangePassword {
244246
/**
@@ -454,9 +456,19 @@ export interface CustomerDraft {
454456
/**
455457
* Sets the [CustomerGroup](ctp:api:type:CustomerGroup) for the Customer.
456458
*
459+
* For new projects, use `customerGroupAssignments` instead. It supports assigning Customers to multiple Customer Groups and provides greater flexibility in complex pricing scenarios.
460+
*
457461
*
458462
*/
459463
readonly customerGroup?: CustomerGroupResourceIdentifier
464+
/**
465+
* Customer Groups to assign the Customer to.
466+
*
467+
* Used for [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
468+
*
469+
*
470+
*/
471+
readonly customerGroupAssignments?: CustomerGroupAssignmentDraft[]
460472
/**
461473
* Custom Fields for the Customer.
462474
*
@@ -492,12 +504,6 @@ export interface CustomerDraft {
492504
*
493505
*/
494506
readonly authenticationMode?: AuthenticationMode
495-
/**
496-
* Customer Groups to assign the Customer to.
497-
*
498-
*
499-
*/
500-
readonly customerGroupAssignments?: CustomerGroupAssignmentDraft[]
501507
}
502508
/**
503509
* [Reference](ctp:api:type:Reference) to a [CustomerToken](ctp:api:type:CustomerToken) for email verification.

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,3 +423,4 @@ b1fc7dfd206272a7717ffe06bf9bdb40fc428a1d
423423
472c32aba11ea29bb866c99e21b771acfba70891
424424
195169313ee8edc8449e7a272160ab4e28ad9fec
425425
b6f85c31ff715e0814a996a7d64089bec3c721eb
426+
dad479066925f91fc733f038afb66c7919409a4c

0 commit comments

Comments
 (0)