@commercelayer/sdk 6.0.0-beta.19 → 6.0.0-beta.20

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
@@ -1280,21 +1280,6 @@ interface AxervePayment extends Resource {
1280
1280
  * Indicates if the order current amount differs form the one of the associated authorization..
1281
1281
  */
1282
1282
  mismatched_amounts?: boolean | null;
1283
- /**
1284
- * The amount of the associated payment intent, in cents..
1285
- * @example ```"1000"```
1286
- */
1287
- intent_amount_cents: number;
1288
- /**
1289
- * The amount of the associated payment intent, float..
1290
- * @example ```"10"```
1291
- */
1292
- intent_amount_float?: number | null;
1293
- /**
1294
- * The amount of the associated payment intent, formatted..
1295
- * @example ```"€10,00"```
1296
- */
1297
- formatted_intent_amount?: string | null;
1298
1283
  /**
1299
1284
  * Information about the payment instrument used in the transaction.
1300
1285
  * @example ```"[object Object]"```
@@ -1709,21 +1694,6 @@ interface KlarnaPayment extends Resource {
1709
1694
  * Indicates if the order current amount differs form the one of the created payment intent..
1710
1695
  */
1711
1696
  mismatched_amounts?: boolean | null;
1712
- /**
1713
- * The amount of the associated payment intent, in cents..
1714
- * @example ```"1000"```
1715
- */
1716
- intent_amount_cents: number;
1717
- /**
1718
- * The amount of the associated payment intent, float..
1719
- * @example ```"10"```
1720
- */
1721
- intent_amount_float?: number | null;
1722
- /**
1723
- * The amount of the associated payment intent, formatted..
1724
- * @example ```"€10,00"```
1725
- */
1726
- formatted_intent_amount?: string | null;
1727
1697
  /**
1728
1698
  * Information about the payment instrument used in the transaction.
1729
1699
  * @example ```"[object Object]"```
@@ -1799,21 +1769,6 @@ interface SatispayPayment extends Resource {
1799
1769
  * @example ```"https://online.satispay.com/pay/xxxx-yyyy-zzzz?redirect_url={redirect_url}"```
1800
1770
  */
1801
1771
  payment_url?: string | null;
1802
- /**
1803
- * The amount of the associated payment intent, in cents..
1804
- * @example ```"1000"```
1805
- */
1806
- intent_amount_cents: number;
1807
- /**
1808
- * The amount of the associated payment intent, float..
1809
- * @example ```"10"```
1810
- */
1811
- intent_amount_float?: number | null;
1812
- /**
1813
- * The amount of the associated payment intent, formatted..
1814
- * @example ```"€10,00"```
1815
- */
1816
- formatted_intent_amount?: string | null;
1817
1772
  /**
1818
1773
  * The Satispay payment response, used to fetch internal data..
1819
1774
  * @example ```"[object Object]"```
@@ -1903,21 +1858,6 @@ interface StripePayment extends Resource {
1903
1858
  * Indicates if the order current amount differs form the one of the created payment intent..
1904
1859
  */
1905
1860
  mismatched_amounts?: boolean | null;
1906
- /**
1907
- * The amount of the associated payment intent, in cents..
1908
- * @example ```"1000"```
1909
- */
1910
- intent_amount_cents: number;
1911
- /**
1912
- * The amount of the associated payment intent, float..
1913
- * @example ```"10"```
1914
- */
1915
- intent_amount_float?: number | null;
1916
- /**
1917
- * The amount of the associated payment intent, formatted..
1918
- * @example ```"€10,00"```
1919
- */
1920
- formatted_intent_amount?: string | null;
1921
1861
  /**
1922
1862
  * The URL where the payer is redirected after they authenticate the payment..
1923
1863
  * @example ```"https://yourdomain.com/thankyou"```
@@ -5840,7 +5780,7 @@ interface StockLineItemUpdate extends ResourceUpdate {
5840
5780
  */
5841
5781
  _reserve_stock?: boolean | null;
5842
5782
  /**
5843
- * Send this attribute if you want to automatically release the stock for this stock line item. Can be done only when fulfillment is in progress..
5783
+ * Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress..
5844
5784
  * @example ```"true"```
5845
5785
  */
5846
5786
  _release_stock?: boolean | null;
@@ -6864,21 +6804,6 @@ interface PaypalPayment extends Resource {
6864
6804
  * Indicates if the order current amount differs form the one of the created payment intent..
6865
6805
  */
6866
6806
  mismatched_amounts?: boolean | null;
6867
- /**
6868
- * The amount of the associated payment intent, in cents..
6869
- * @example ```"1000"```
6870
- */
6871
- intent_amount_cents: number;
6872
- /**
6873
- * The amount of the associated payment intent, float..
6874
- * @example ```"10"```
6875
- */
6876
- intent_amount_float?: number | null;
6877
- /**
6878
- * The amount of the associated payment intent, formatted..
6879
- * @example ```"€10,00"```
6880
- */
6881
- formatted_intent_amount?: string | null;
6882
6807
  /**
6883
6808
  * Information about the payment instrument used in the transaction.
6884
6809
  * @example ```"[object Object]"```
@@ -10118,7 +10043,7 @@ interface ShipmentUpdate extends ResourceUpdate {
10118
10043
  */
10119
10044
  _reserve_stock?: boolean | null;
10120
10045
  /**
10121
- * Send this attribute if you want to automatically release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress..
10046
+ * Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress..
10122
10047
  * @example ```"true"```
10123
10048
  */
10124
10049
  _release_stock?: boolean | null;
@@ -10485,6 +10410,11 @@ interface StockItemUpdate extends ResourceUpdate {
10485
10410
  * @example ```"100"```
10486
10411
  */
10487
10412
  quantity?: number | null;
10413
+ /**
10414
+ * Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller..
10415
+ * @example ```"true"```
10416
+ */
10417
+ _validate?: boolean | null;
10488
10418
  stock_location?: StockLocationRel$1 | null;
10489
10419
  sku?: SkuRel$5 | null;
10490
10420
  }
@@ -10499,6 +10429,7 @@ declare class StockItems extends ApiResource<StockItem> {
10499
10429
  stock_reservations(stockItemId: string | StockItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
10500
10430
  attachments(stockItemId: string | StockItem, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
10501
10431
  versions(stockItemId: string | StockItem, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
10432
+ _validate(id: string | StockItem, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem>;
10502
10433
  isStockItem(resource: any): resource is StockItem;
10503
10434
  relationship(id: string | ResourceId | null): StockItemRel$1;
10504
10435
  relationshipToMany(...ids: string[]): StockItemRel$1[];
@@ -14859,7 +14790,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
14859
14790
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
14860
14791
  declare class CommerceLayerClient {
14861
14792
  #private;
14862
- readonly openApiSchemaVersion = "5.2.0";
14793
+ readonly openApiSchemaVersion = "5.2.1";
14863
14794
  constructor(config: CommerceLayerInitConfig);
14864
14795
  get addresses(): Addresses;
14865
14796
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -1280,21 +1280,6 @@ interface AxervePayment extends Resource {
1280
1280
  * Indicates if the order current amount differs form the one of the associated authorization..
1281
1281
  */
1282
1282
  mismatched_amounts?: boolean | null;
1283
- /**
1284
- * The amount of the associated payment intent, in cents..
1285
- * @example ```"1000"```
1286
- */
1287
- intent_amount_cents: number;
1288
- /**
1289
- * The amount of the associated payment intent, float..
1290
- * @example ```"10"```
1291
- */
1292
- intent_amount_float?: number | null;
1293
- /**
1294
- * The amount of the associated payment intent, formatted..
1295
- * @example ```"€10,00"```
1296
- */
1297
- formatted_intent_amount?: string | null;
1298
1283
  /**
1299
1284
  * Information about the payment instrument used in the transaction.
1300
1285
  * @example ```"[object Object]"```
@@ -1709,21 +1694,6 @@ interface KlarnaPayment extends Resource {
1709
1694
  * Indicates if the order current amount differs form the one of the created payment intent..
1710
1695
  */
1711
1696
  mismatched_amounts?: boolean | null;
1712
- /**
1713
- * The amount of the associated payment intent, in cents..
1714
- * @example ```"1000"```
1715
- */
1716
- intent_amount_cents: number;
1717
- /**
1718
- * The amount of the associated payment intent, float..
1719
- * @example ```"10"```
1720
- */
1721
- intent_amount_float?: number | null;
1722
- /**
1723
- * The amount of the associated payment intent, formatted..
1724
- * @example ```"€10,00"```
1725
- */
1726
- formatted_intent_amount?: string | null;
1727
1697
  /**
1728
1698
  * Information about the payment instrument used in the transaction.
1729
1699
  * @example ```"[object Object]"```
@@ -1799,21 +1769,6 @@ interface SatispayPayment extends Resource {
1799
1769
  * @example ```"https://online.satispay.com/pay/xxxx-yyyy-zzzz?redirect_url={redirect_url}"```
1800
1770
  */
1801
1771
  payment_url?: string | null;
1802
- /**
1803
- * The amount of the associated payment intent, in cents..
1804
- * @example ```"1000"```
1805
- */
1806
- intent_amount_cents: number;
1807
- /**
1808
- * The amount of the associated payment intent, float..
1809
- * @example ```"10"```
1810
- */
1811
- intent_amount_float?: number | null;
1812
- /**
1813
- * The amount of the associated payment intent, formatted..
1814
- * @example ```"€10,00"```
1815
- */
1816
- formatted_intent_amount?: string | null;
1817
1772
  /**
1818
1773
  * The Satispay payment response, used to fetch internal data..
1819
1774
  * @example ```"[object Object]"```
@@ -1903,21 +1858,6 @@ interface StripePayment extends Resource {
1903
1858
  * Indicates if the order current amount differs form the one of the created payment intent..
1904
1859
  */
1905
1860
  mismatched_amounts?: boolean | null;
1906
- /**
1907
- * The amount of the associated payment intent, in cents..
1908
- * @example ```"1000"```
1909
- */
1910
- intent_amount_cents: number;
1911
- /**
1912
- * The amount of the associated payment intent, float..
1913
- * @example ```"10"```
1914
- */
1915
- intent_amount_float?: number | null;
1916
- /**
1917
- * The amount of the associated payment intent, formatted..
1918
- * @example ```"€10,00"```
1919
- */
1920
- formatted_intent_amount?: string | null;
1921
1861
  /**
1922
1862
  * The URL where the payer is redirected after they authenticate the payment..
1923
1863
  * @example ```"https://yourdomain.com/thankyou"```
@@ -5840,7 +5780,7 @@ interface StockLineItemUpdate extends ResourceUpdate {
5840
5780
  */
5841
5781
  _reserve_stock?: boolean | null;
5842
5782
  /**
5843
- * Send this attribute if you want to automatically release the stock for this stock line item. Can be done only when fulfillment is in progress..
5783
+ * Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress..
5844
5784
  * @example ```"true"```
5845
5785
  */
5846
5786
  _release_stock?: boolean | null;
@@ -6864,21 +6804,6 @@ interface PaypalPayment extends Resource {
6864
6804
  * Indicates if the order current amount differs form the one of the created payment intent..
6865
6805
  */
6866
6806
  mismatched_amounts?: boolean | null;
6867
- /**
6868
- * The amount of the associated payment intent, in cents..
6869
- * @example ```"1000"```
6870
- */
6871
- intent_amount_cents: number;
6872
- /**
6873
- * The amount of the associated payment intent, float..
6874
- * @example ```"10"```
6875
- */
6876
- intent_amount_float?: number | null;
6877
- /**
6878
- * The amount of the associated payment intent, formatted..
6879
- * @example ```"€10,00"```
6880
- */
6881
- formatted_intent_amount?: string | null;
6882
6807
  /**
6883
6808
  * Information about the payment instrument used in the transaction.
6884
6809
  * @example ```"[object Object]"```
@@ -10118,7 +10043,7 @@ interface ShipmentUpdate extends ResourceUpdate {
10118
10043
  */
10119
10044
  _reserve_stock?: boolean | null;
10120
10045
  /**
10121
- * Send this attribute if you want to automatically release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress..
10046
+ * Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress..
10122
10047
  * @example ```"true"```
10123
10048
  */
10124
10049
  _release_stock?: boolean | null;
@@ -10485,6 +10410,11 @@ interface StockItemUpdate extends ResourceUpdate {
10485
10410
  * @example ```"100"```
10486
10411
  */
10487
10412
  quantity?: number | null;
10413
+ /**
10414
+ * Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller..
10415
+ * @example ```"true"```
10416
+ */
10417
+ _validate?: boolean | null;
10488
10418
  stock_location?: StockLocationRel$1 | null;
10489
10419
  sku?: SkuRel$5 | null;
10490
10420
  }
@@ -10499,6 +10429,7 @@ declare class StockItems extends ApiResource<StockItem> {
10499
10429
  stock_reservations(stockItemId: string | StockItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
10500
10430
  attachments(stockItemId: string | StockItem, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
10501
10431
  versions(stockItemId: string | StockItem, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
10432
+ _validate(id: string | StockItem, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem>;
10502
10433
  isStockItem(resource: any): resource is StockItem;
10503
10434
  relationship(id: string | ResourceId | null): StockItemRel$1;
10504
10435
  relationshipToMany(...ids: string[]): StockItemRel$1[];
@@ -14859,7 +14790,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
14859
14790
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
14860
14791
  declare class CommerceLayerClient {
14861
14792
  #private;
14862
- readonly openApiSchemaVersion = "5.2.0";
14793
+ readonly openApiSchemaVersion = "5.2.1";
14863
14794
  constructor(config: CommerceLayerInitConfig);
14864
14795
  get addresses(): Addresses;
14865
14796
  get adjustments(): Adjustments;