@shopware/api-client 1.0.1 → 1.0.2

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.
@@ -170,6 +170,17 @@
170
170
  "required": ["stock"]
171
171
  }
172
172
  ],
173
+ "ListPrice": {
174
+ "type": "object",
175
+ "description": "",
176
+ "properties": {
177
+ "discount": { "type": "number" },
178
+ "percentage": { "type": "number" },
179
+ "price": { "type": "number" },
180
+ "apiAlias": { "type": "string", "enum": ["cart_list_price"] }
181
+ },
182
+ "required": ["apiAlias"]
183
+ },
173
184
  "LineItem": [
174
185
  {
175
186
  "required": ["deliveryInformation"]
@@ -350,6 +361,48 @@
350
361
  "required": ["translated"]
351
362
  }
352
363
  ],
364
+ "ReferencePrice": {
365
+ "type": "object",
366
+ "properties": {
367
+ "purchaseUnit": { "type": "number" },
368
+ "referenceUnit": { "type": "number" },
369
+ "unitName": { "type": "string" },
370
+ "price": { "type": "number" },
371
+ "apiAlias": { "type": "string", "enum": ["cart_price_reference"] },
372
+ "listPrice": {
373
+ "oneOf": [
374
+ { "$ref": "#/components/schemas/ListPrice" },
375
+ { "type": "null" }
376
+ ]
377
+ },
378
+ "regulationPrice": {
379
+ "type": "object",
380
+ "properties": {
381
+ "price": { "type": "number" },
382
+ "apiAlias": {
383
+ "type": "string",
384
+ "enum": ["cart_regulation_price"]
385
+ }
386
+ },
387
+ "nullable": true
388
+ },
389
+ "hasRange": { "type": "boolean" },
390
+ "variantId": {
391
+ "type": "string",
392
+ "format": "^[0-9a-f]{32}$",
393
+ "nullable": true
394
+ }
395
+ },
396
+ "required": [
397
+ "hasRange",
398
+ "regulationPrice",
399
+ "listPrice",
400
+ "calculatedTaxes",
401
+ "totalPrice",
402
+ "quantity",
403
+ "unitName"
404
+ ]
405
+ },
353
406
  "SalesChannelContext": [
354
407
  {
355
408
  "allOf": "_DELETE_"
@@ -590,6 +643,77 @@
590
643
  }
591
644
  ]
592
645
  },
646
+ "/checkout/cart/line-item": {
647
+ "post": [
648
+ {
649
+ "requestBody": {
650
+ "required": true,
651
+ "content": {
652
+ "application/json": {
653
+ "schema": {
654
+ "type": "object",
655
+ "required": ["items"],
656
+ "properties": {
657
+ "items": {
658
+ "type": "array",
659
+ "items": {
660
+ "anyOf": [
661
+ {
662
+ "type": "object",
663
+ "required": ["id", "type", "quantity"],
664
+ "properties": {
665
+ "id": {
666
+ "type": "string"
667
+ },
668
+ "referencedId": {
669
+ "type": "string"
670
+ },
671
+ "quantity": {
672
+ "type": "number"
673
+ },
674
+ "type": {
675
+ "type": "string",
676
+ "enum": [
677
+ "product",
678
+ "custom",
679
+ "credit",
680
+ "discount",
681
+ "container"
682
+ ]
683
+ }
684
+ }
685
+ },
686
+ {
687
+ "type": "object",
688
+ "required": ["referencedId", "type"],
689
+ "properties": {
690
+ "id": {
691
+ "type": "string"
692
+ },
693
+ "referencedId": {
694
+ "type": "string"
695
+ },
696
+ "quantity": {
697
+ "type": "number"
698
+ },
699
+ "type": {
700
+ "type": "string",
701
+ "enum": ["promotion"]
702
+ }
703
+ }
704
+ }
705
+ ]
706
+ }
707
+ }
708
+ },
709
+ "$ref": "_DELETE_"
710
+ }
711
+ }
712
+ }
713
+ }
714
+ }
715
+ ]
716
+ },
593
717
  "/quote/detail/{id}": {
594
718
  "post": [
595
719
  {