@swishapp/api-client 0.30.0 → 0.31.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.
@@ -382,6 +382,12 @@ export type ProductVariantDto = {
382
382
  */
383
383
  image?: PreviewImageDto;
384
384
  };
385
+ export type ProductDto = {
386
+ /**
387
+ * The product ID
388
+ */
389
+ id: string;
390
+ };
385
391
  export type Money = {
386
392
  /**
387
393
  * The currency code
@@ -405,6 +411,10 @@ export type OrderLineItem = {
405
411
  * The product variant associated to the line item.
406
412
  */
407
413
  variant?: ProductVariantDto;
414
+ /**
415
+ * The product associated with the line item.
416
+ */
417
+ product?: ProductDto;
408
418
  /**
409
419
  * The quantity of items
410
420
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swishapp/api-client",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "A lightweight JS client for the Swish REST API.",
5
5
  "homepage": "https://developers.swish.app/libraries/api-client",
6
6
  "type": "module",