@commercelayer/sdk 6.42.0 → 6.43.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
@@ -1266,6 +1266,11 @@ interface AdyenPayment extends Resource {
1266
1266
  * Indicates if the order current amount differs form the one of the associated authorization.
1267
1267
  */
1268
1268
  mismatched_amounts?: boolean | null;
1269
+ /**
1270
+ * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute.
1271
+ * @example ```1000```
1272
+ */
1273
+ balance?: number | null;
1269
1274
  /**
1270
1275
  * Information about the payment instrument used in the transaction.
1271
1276
  * @example ```{"issuer":"cl bank","card_type":"visa"}```
@@ -1299,6 +1304,11 @@ interface AdyenPaymentUpdate extends ResourceUpdate {
1299
1304
  * @example ```true```
1300
1305
  */
1301
1306
  _details?: boolean | null;
1307
+ /**
1308
+ * Send this attribute if you want retrieve the balance remaining on a shopper's gift card.
1309
+ * @example ```true```
1310
+ */
1311
+ _balance?: boolean | null;
1302
1312
  order?: OrderRel$k | null;
1303
1313
  }
1304
1314
  declare class AdyenPayments extends ApiResource<AdyenPayment> {
@@ -1311,6 +1321,7 @@ declare class AdyenPayments extends ApiResource<AdyenPayment> {
1311
1321
  versions(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
1312
1322
  _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
1313
1323
  _details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
1324
+ _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
1314
1325
  isAdyenPayment(resource: any): resource is AdyenPayment;
1315
1326
  relationship(id: string | ResourceId | null): AdyenPaymentRel$3;
1316
1327
  relationshipToMany(...ids: string[]): AdyenPaymentRel$3[];
@@ -9335,12 +9346,12 @@ interface CustomerUpdate extends ResourceUpdate {
9335
9346
  */
9336
9347
  _remove_tags?: string | null;
9337
9348
  /**
9338
- * Send this attribute if you want to trigger anonymization.
9349
+ * Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.
9339
9350
  * @example ```true```
9340
9351
  */
9341
9352
  _request_anonymization?: boolean | null;
9342
9353
  /**
9343
- * Send this attribute if you want to trigger a cancellation of anonymization.
9354
+ * Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.
9344
9355
  * @example ```true```
9345
9356
  */
9346
9357
  _cancel_anonymization?: boolean | null;
@@ -14947,7 +14958,7 @@ interface Application extends Resource {
14947
14958
  * The application's kind. One of 'sales_channel', 'integration', or 'webapp'.
14948
14959
  * @example ```"sales-channel"```
14949
14960
  */
14950
- kind?: 'dashboard' | 'user' | 'metrics' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null;
14961
+ kind?: 'dashboard' | 'user' | 'metrics' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null;
14951
14962
  /**
14952
14963
  * Indicates if the application has public access.
14953
14964
  * @example ```true```
@@ -17174,7 +17185,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17174
17185
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17175
17186
  declare class CommerceLayerClient {
17176
17187
  #private;
17177
- readonly openApiSchemaVersion = "7.8.8";
17188
+ readonly openApiSchemaVersion = "7.8.9";
17178
17189
  constructor(config: CommerceLayerInitConfig);
17179
17190
  get addresses(): Addresses;
17180
17191
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -1266,6 +1266,11 @@ interface AdyenPayment extends Resource {
1266
1266
  * Indicates if the order current amount differs form the one of the associated authorization.
1267
1267
  */
1268
1268
  mismatched_amounts?: boolean | null;
1269
+ /**
1270
+ * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute.
1271
+ * @example ```1000```
1272
+ */
1273
+ balance?: number | null;
1269
1274
  /**
1270
1275
  * Information about the payment instrument used in the transaction.
1271
1276
  * @example ```{"issuer":"cl bank","card_type":"visa"}```
@@ -1299,6 +1304,11 @@ interface AdyenPaymentUpdate extends ResourceUpdate {
1299
1304
  * @example ```true```
1300
1305
  */
1301
1306
  _details?: boolean | null;
1307
+ /**
1308
+ * Send this attribute if you want retrieve the balance remaining on a shopper's gift card.
1309
+ * @example ```true```
1310
+ */
1311
+ _balance?: boolean | null;
1302
1312
  order?: OrderRel$k | null;
1303
1313
  }
1304
1314
  declare class AdyenPayments extends ApiResource<AdyenPayment> {
@@ -1311,6 +1321,7 @@ declare class AdyenPayments extends ApiResource<AdyenPayment> {
1311
1321
  versions(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
1312
1322
  _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
1313
1323
  _details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
1324
+ _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
1314
1325
  isAdyenPayment(resource: any): resource is AdyenPayment;
1315
1326
  relationship(id: string | ResourceId | null): AdyenPaymentRel$3;
1316
1327
  relationshipToMany(...ids: string[]): AdyenPaymentRel$3[];
@@ -9335,12 +9346,12 @@ interface CustomerUpdate extends ResourceUpdate {
9335
9346
  */
9336
9347
  _remove_tags?: string | null;
9337
9348
  /**
9338
- * Send this attribute if you want to trigger anonymization.
9349
+ * Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.
9339
9350
  * @example ```true```
9340
9351
  */
9341
9352
  _request_anonymization?: boolean | null;
9342
9353
  /**
9343
- * Send this attribute if you want to trigger a cancellation of anonymization.
9354
+ * Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.
9344
9355
  * @example ```true```
9345
9356
  */
9346
9357
  _cancel_anonymization?: boolean | null;
@@ -14947,7 +14958,7 @@ interface Application extends Resource {
14947
14958
  * The application's kind. One of 'sales_channel', 'integration', or 'webapp'.
14948
14959
  * @example ```"sales-channel"```
14949
14960
  */
14950
- kind?: 'dashboard' | 'user' | 'metrics' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null;
14961
+ kind?: 'dashboard' | 'user' | 'metrics' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null;
14951
14962
  /**
14952
14963
  * Indicates if the application has public access.
14953
14964
  * @example ```true```
@@ -17174,7 +17185,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17174
17185
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17175
17186
  declare class CommerceLayerClient {
17176
17187
  #private;
17177
- readonly openApiSchemaVersion = "7.8.8";
17188
+ readonly openApiSchemaVersion = "7.8.9";
17178
17189
  constructor(config: CommerceLayerInitConfig);
17179
17190
  get addresses(): Addresses;
17180
17191
  get adjustments(): Adjustments;