@commercelayer/sdk 6.38.0 → 6.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.mts CHANGED
@@ -1094,7 +1094,6 @@ interface PaymentMethod extends Resource {
1094
1094
  market?: Market | null;
1095
1095
  payment_gateway?: PaymentGateway | null;
1096
1096
  store?: Store | null;
1097
- orders?: Order[] | null;
1098
1097
  attachments?: Attachment[] | null;
1099
1098
  versions?: Version[] | null;
1100
1099
  }
@@ -1218,7 +1217,6 @@ declare class PaymentMethods extends ApiResource<PaymentMethod> {
1218
1217
  market(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market>;
1219
1218
  payment_gateway(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway>;
1220
1219
  store(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Store>, options?: ResourcesConfig): Promise<Store>;
1221
- orders(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Order>, options?: ResourcesConfig): Promise<ListResponse<Order>>;
1222
1220
  attachments(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
1223
1221
  versions(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
1224
1222
  _disable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
@@ -9263,6 +9261,16 @@ interface Customer extends Resource {
9263
9261
  * @example ```"xxx-yyy-zzz"```
9264
9262
  */
9265
9263
  tax_exemption_code?: string | null;
9264
+ /**
9265
+ * The custom_claim attached to the current JWT (if any).
9266
+ * @example ```{}```
9267
+ */
9268
+ jwt_custom_claim?: Record<string, any> | null;
9269
+ /**
9270
+ * The anonymization info object.
9271
+ * @example ```{"status":"requested","requested_at":"2025-03-15 11:39:21 UTC","requester":{"id":"fdgt56hh","first_name":"Travis","last_name":"Muller","email":"test@labadie.test"}}```
9272
+ */
9273
+ anonymization_info?: Record<string, any> | null;
9266
9274
  customer_group?: CustomerGroup | null;
9267
9275
  customer_addresses?: CustomerAddress[] | null;
9268
9276
  customer_payment_sources?: CustomerPaymentSource[] | null;
@@ -9274,6 +9282,9 @@ interface Customer extends Resource {
9274
9282
  attachments?: Attachment[] | null;
9275
9283
  events?: Event[] | null;
9276
9284
  tags?: Tag[] | null;
9285
+ jwt_customer?: Customer | null;
9286
+ jwt_markets?: Market[] | null;
9287
+ jwt_stock_locations?: StockLocation[] | null;
9277
9288
  }
9278
9289
  interface CustomerCreate extends ResourceCreate {
9279
9290
  /**
@@ -9338,6 +9349,16 @@ interface CustomerUpdate extends ResourceUpdate {
9338
9349
  * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.
9339
9350
  */
9340
9351
  _remove_tags?: string | null;
9352
+ /**
9353
+ * Send this attribute if you want to trigger anonymization.
9354
+ * @example ```true```
9355
+ */
9356
+ _request_anonymization?: boolean | null;
9357
+ /**
9358
+ * Send this attribute if you want to trigger a cancellation of anonymization.
9359
+ * @example ```true```
9360
+ */
9361
+ _cancel_anonymization?: boolean | null;
9341
9362
  customer_group?: CustomerGroupRel$2 | null;
9342
9363
  tags?: TagRel$4[] | null;
9343
9364
  }
@@ -9357,8 +9378,13 @@ declare class Customers extends ApiResource<Customer> {
9357
9378
  attachments(customerId: string | Customer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
9358
9379
  events(customerId: string | Customer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
9359
9380
  tags(customerId: string | Customer, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
9381
+ jwt_customer(customerId: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9382
+ jwt_markets(customerId: string | Customer, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>>;
9383
+ jwt_stock_locations(customerId: string | Customer, params?: QueryParamsList<StockLocation>, options?: ResourcesConfig): Promise<ListResponse<StockLocation>>;
9360
9384
  _add_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9361
9385
  _remove_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9386
+ _request_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9387
+ _cancel_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9362
9388
  isCustomer(resource: any): resource is Customer;
9363
9389
  relationship(id: string | ResourceId | null): CustomerRel$3;
9364
9390
  relationshipToMany(...ids: string[]): CustomerRel$3[];
@@ -17155,7 +17181,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17155
17181
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17156
17182
  declare class CommerceLayerClient {
17157
17183
  #private;
17158
- readonly openApiSchemaVersion = "7.8.4";
17184
+ readonly openApiSchemaVersion = "7.8.5";
17159
17185
  constructor(config: CommerceLayerInitConfig);
17160
17186
  get addresses(): Addresses;
17161
17187
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -1094,7 +1094,6 @@ interface PaymentMethod extends Resource {
1094
1094
  market?: Market | null;
1095
1095
  payment_gateway?: PaymentGateway | null;
1096
1096
  store?: Store | null;
1097
- orders?: Order[] | null;
1098
1097
  attachments?: Attachment[] | null;
1099
1098
  versions?: Version[] | null;
1100
1099
  }
@@ -1218,7 +1217,6 @@ declare class PaymentMethods extends ApiResource<PaymentMethod> {
1218
1217
  market(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market>;
1219
1218
  payment_gateway(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway>;
1220
1219
  store(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Store>, options?: ResourcesConfig): Promise<Store>;
1221
- orders(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Order>, options?: ResourcesConfig): Promise<ListResponse<Order>>;
1222
1220
  attachments(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
1223
1221
  versions(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
1224
1222
  _disable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
@@ -9263,6 +9261,16 @@ interface Customer extends Resource {
9263
9261
  * @example ```"xxx-yyy-zzz"```
9264
9262
  */
9265
9263
  tax_exemption_code?: string | null;
9264
+ /**
9265
+ * The custom_claim attached to the current JWT (if any).
9266
+ * @example ```{}```
9267
+ */
9268
+ jwt_custom_claim?: Record<string, any> | null;
9269
+ /**
9270
+ * The anonymization info object.
9271
+ * @example ```{"status":"requested","requested_at":"2025-03-15 11:39:21 UTC","requester":{"id":"fdgt56hh","first_name":"Travis","last_name":"Muller","email":"test@labadie.test"}}```
9272
+ */
9273
+ anonymization_info?: Record<string, any> | null;
9266
9274
  customer_group?: CustomerGroup | null;
9267
9275
  customer_addresses?: CustomerAddress[] | null;
9268
9276
  customer_payment_sources?: CustomerPaymentSource[] | null;
@@ -9274,6 +9282,9 @@ interface Customer extends Resource {
9274
9282
  attachments?: Attachment[] | null;
9275
9283
  events?: Event[] | null;
9276
9284
  tags?: Tag[] | null;
9285
+ jwt_customer?: Customer | null;
9286
+ jwt_markets?: Market[] | null;
9287
+ jwt_stock_locations?: StockLocation[] | null;
9277
9288
  }
9278
9289
  interface CustomerCreate extends ResourceCreate {
9279
9290
  /**
@@ -9338,6 +9349,16 @@ interface CustomerUpdate extends ResourceUpdate {
9338
9349
  * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.
9339
9350
  */
9340
9351
  _remove_tags?: string | null;
9352
+ /**
9353
+ * Send this attribute if you want to trigger anonymization.
9354
+ * @example ```true```
9355
+ */
9356
+ _request_anonymization?: boolean | null;
9357
+ /**
9358
+ * Send this attribute if you want to trigger a cancellation of anonymization.
9359
+ * @example ```true```
9360
+ */
9361
+ _cancel_anonymization?: boolean | null;
9341
9362
  customer_group?: CustomerGroupRel$2 | null;
9342
9363
  tags?: TagRel$4[] | null;
9343
9364
  }
@@ -9357,8 +9378,13 @@ declare class Customers extends ApiResource<Customer> {
9357
9378
  attachments(customerId: string | Customer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
9358
9379
  events(customerId: string | Customer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
9359
9380
  tags(customerId: string | Customer, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
9381
+ jwt_customer(customerId: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9382
+ jwt_markets(customerId: string | Customer, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>>;
9383
+ jwt_stock_locations(customerId: string | Customer, params?: QueryParamsList<StockLocation>, options?: ResourcesConfig): Promise<ListResponse<StockLocation>>;
9360
9384
  _add_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9361
9385
  _remove_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9386
+ _request_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9387
+ _cancel_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer>;
9362
9388
  isCustomer(resource: any): resource is Customer;
9363
9389
  relationship(id: string | ResourceId | null): CustomerRel$3;
9364
9390
  relationshipToMany(...ids: string[]): CustomerRel$3[];
@@ -17155,7 +17181,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17155
17181
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17156
17182
  declare class CommerceLayerClient {
17157
17183
  #private;
17158
- readonly openApiSchemaVersion = "7.8.4";
17184
+ readonly openApiSchemaVersion = "7.8.5";
17159
17185
  constructor(config: CommerceLayerInitConfig);
17160
17186
  get addresses(): Addresses;
17161
17187
  get adjustments(): Adjustments;