@shopware/api-client 1.0.1 → 1.1.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.
@@ -4,14 +4,6 @@
4
4
  { "additionalProperties": { "$ref": "#/components/schemas/Association" } }
5
5
  ],
6
6
  "CalculatedPrice": [
7
- {
8
- "properties": { "netPrice": { "type": "number" } },
9
- "required": ["netPrice"]
10
- },
11
- {
12
- "properties": { "positionPrice": { "type": "number" } },
13
- "required": ["positionPrice"]
14
- },
15
7
  {
16
8
  "properties": { "rawTotal": { "type": "number" } },
17
9
  "required": ["rawTotal"]
@@ -92,9 +84,6 @@
92
84
  }
93
85
  ],
94
86
  "Category": [
95
- {
96
- "required": ["apiAlias"]
97
- },
98
87
  {
99
88
  "required": ["breadcrumb"],
100
89
  "properties": {
@@ -104,16 +93,11 @@
104
93
  }
105
94
  },
106
95
  {
96
+ "required": ["type"],
107
97
  "properties": {
108
- "children": {
109
- "nullable": "_DELETE_"
110
- }
111
- }
112
- },
113
- {
114
- "properties": {
115
- "translated": {
116
- "required": ["breadcrumb"]
98
+ "type": {
99
+ "type": "string",
100
+ "enum": ["page", "link"]
117
101
  }
118
102
  }
119
103
  }
@@ -170,6 +154,17 @@
170
154
  "required": ["stock"]
171
155
  }
172
156
  ],
157
+ "ListPrice": {
158
+ "type": "object",
159
+ "description": "",
160
+ "properties": {
161
+ "discount": { "type": "number" },
162
+ "percentage": { "type": "number" },
163
+ "price": { "type": "number" },
164
+ "apiAlias": { "type": "string", "enum": ["cart_list_price"] }
165
+ },
166
+ "required": ["apiAlias"]
167
+ },
173
168
  "LineItem": [
174
169
  {
175
170
  "required": ["deliveryInformation"]
@@ -350,111 +345,49 @@
350
345
  "required": ["translated"]
351
346
  }
352
347
  ],
353
- "SalesChannelContext": [
354
- {
355
- "allOf": "_DELETE_"
356
- },
357
- {
358
- "type": "object",
359
- "properties": {
360
- "token": {
361
- "description": "Context the user session",
362
- "type": "string"
363
- },
364
- "currentCustomerGroup": {
365
- "type": "object",
366
- "description": "Customer group of the current user",
367
- "properties": {
368
- "name": { "type": "string" },
369
- "displayGross": { "type": "boolean" }
370
- }
371
- },
372
- "fallbackCustomerGroup": {
373
- "description": "Fallback group if the default customer group is not applicable",
374
- "type": "object",
375
- "properties": {
376
- "name": { "type": "string" },
377
- "displayGross": { "type": "boolean" }
378
- }
379
- },
380
- "currency": { "$ref": "#/components/schemas/Currency" },
381
- "salesChannel": {
382
- "description": "Information about the current sales channel",
383
- "type": "object",
384
- "properties": {
385
- "typeId": { "type": "string" },
386
- "languageId": { "type": "string" },
387
- "currencyId": { "type": "string" },
388
- "paymentMethodId": { "type": "string" },
389
- "shippingMethodId": { "type": "string" },
390
- "countryId": { "type": "string" },
391
- "navigationCategoryId": { "type": "string" },
392
- "navigationCategoryDepth": {
393
- "type": "integer",
394
- "format": "int32"
395
- },
396
- "footerCategoryId": { "type": "string" },
397
- "serviceCategoryId": { "type": "string" },
398
- "name": { "type": "string" },
399
- "shortName": { "type": "string" },
400
- "accessKey": { "type": "string" },
401
- "active": { "type": "boolean" },
402
- "maintenance": { "type": "boolean" },
403
- "maintenanceIpWhitelist": { "type": "string" },
404
- "mailHeaderFooterId": { "type": "string" },
405
- "customerGroupId": { "type": "string" },
406
- "hreflangActive": { "type": "boolean" },
407
- "hreflangDefaultDomainId": { "type": "string" },
408
- "analyticsId": { "type": "string" }
409
- }
410
- },
411
- "taxRules": {
412
- "type": "array",
413
- "description": "Currently active tax rules and/or rates",
414
- "items": {
415
- "type": "object",
416
- "properties": {
417
- "taxRate": { "type": "number", "format": "float" },
418
- "name": { "type": "string" }
419
- }
420
- }
421
- },
422
- "customer": { "$ref": "#/components/schemas/Customer" },
423
- "paymentMethod": { "$ref": "#/components/schemas/PaymentMethod" },
424
- "shippingLocation": {
425
- "type": "object",
426
- "properties": {
427
- "apiAlias": {
428
- "type": "string",
429
- "enum": ["cart_delivery_shipping_location"]
430
- },
431
- "country": { "$ref": "#/components/schemas/Country" },
432
- "address": { "$ref": "#/components/schemas/CustomerAddress" }
348
+ "ReferencePrice": {
349
+ "type": "object",
350
+ "properties": {
351
+ "purchaseUnit": { "type": "number" },
352
+ "referenceUnit": { "type": "number" },
353
+ "unitName": { "type": "string" },
354
+ "price": { "type": "number" },
355
+ "apiAlias": { "type": "string", "enum": ["cart_price_reference"] },
356
+ "listPrice": {
357
+ "oneOf": [
358
+ { "$ref": "#/components/schemas/ListPrice" },
359
+ { "type": "null" }
360
+ ]
361
+ },
362
+ "regulationPrice": {
363
+ "type": "object",
364
+ "properties": {
365
+ "price": { "type": "number" },
366
+ "apiAlias": {
367
+ "type": "string",
368
+ "enum": ["cart_regulation_price"]
433
369
  }
434
370
  },
435
- "shippingMethod": {
436
- "$ref": "#/components/schemas/ShippingMethod"
437
- },
438
- "context": {
439
- "description": "Core context with general configuration values and state",
440
- "type": "object",
441
- "properties": {
442
- "versionId": { "type": "string" },
443
- "currencyId": { "type": "string" },
444
- "currencyFactor": { "type": "integer" },
445
- "currencyPrecision": { "type": "integer", "format": "int32" },
446
- "languageIdChain": {
447
- "type": "array",
448
- "items": { "type": "string" }
449
- },
450
- "scope": { "type": "string" },
451
- "source": { "type": "string" },
452
- "taxState": { "type": "string" },
453
- "useCache": { "type": "boolean" }
454
- }
455
- }
371
+ "nullable": true
372
+ },
373
+ "hasRange": { "type": "boolean" },
374
+ "variantId": {
375
+ "type": "string",
376
+ "format": "^[0-9a-f]{32}$",
377
+ "nullable": true
456
378
  }
457
379
  },
380
+ "required": [
381
+ "hasRange",
382
+ "regulationPrice",
383
+ "listPrice",
384
+ "calculatedTaxes",
385
+ "totalPrice",
386
+ "quantity",
387
+ "unitName"
388
+ ]
389
+ },
390
+ "SalesChannelContext": [
458
391
  {
459
392
  "properties": {
460
393
  "salesChannel": "_DELETE_"
@@ -479,6 +412,16 @@
479
412
  }
480
413
  ],
481
414
  "Quote": [{ "required": ["price"] }, { "required": ["stateMachineState"] }],
415
+ "SwagPaypalVaultToken": {
416
+ "properties": {
417
+ "id": {
418
+ "type": "string"
419
+ },
420
+ "identifier": {
421
+ "type": "string"
422
+ }
423
+ }
424
+ },
482
425
  "StateMachineState": [
483
426
  {
484
427
  "required": ["translated"]
@@ -590,6 +533,77 @@
590
533
  }
591
534
  ]
592
535
  },
536
+ "/checkout/cart/line-item": {
537
+ "post": [
538
+ {
539
+ "requestBody": {
540
+ "required": true,
541
+ "content": {
542
+ "application/json": {
543
+ "schema": {
544
+ "type": "object",
545
+ "required": ["items"],
546
+ "properties": {
547
+ "items": {
548
+ "type": "array",
549
+ "items": {
550
+ "anyOf": [
551
+ {
552
+ "type": "object",
553
+ "required": ["id", "type", "quantity"],
554
+ "properties": {
555
+ "id": {
556
+ "type": "string"
557
+ },
558
+ "referencedId": {
559
+ "type": "string"
560
+ },
561
+ "quantity": {
562
+ "type": "number"
563
+ },
564
+ "type": {
565
+ "type": "string",
566
+ "enum": [
567
+ "product",
568
+ "custom",
569
+ "credit",
570
+ "discount",
571
+ "container"
572
+ ]
573
+ }
574
+ }
575
+ },
576
+ {
577
+ "type": "object",
578
+ "required": ["referencedId", "type"],
579
+ "properties": {
580
+ "id": {
581
+ "type": "string"
582
+ },
583
+ "referencedId": {
584
+ "type": "string"
585
+ },
586
+ "quantity": {
587
+ "type": "number"
588
+ },
589
+ "type": {
590
+ "type": "string",
591
+ "enum": ["promotion"]
592
+ }
593
+ }
594
+ }
595
+ ]
596
+ }
597
+ }
598
+ },
599
+ "$ref": "_DELETE_"
600
+ }
601
+ }
602
+ }
603
+ }
604
+ }
605
+ ]
606
+ },
593
607
  "/quote/detail/{id}": {
594
608
  "post": [
595
609
  {
@@ -613,28 +627,6 @@
613
627
  }
614
628
  }
615
629
  },
616
- "/handle-payment": {
617
- "post": [
618
- {
619
- "responses": {
620
- "200": {
621
- "content": {
622
- "application/json": {
623
- "schema": {
624
- "additionalProperties": "_DELETE_",
625
- "properties": {
626
- "redirectUrl": {
627
- "nullable": "_DELETE_"
628
- }
629
- }
630
- }
631
- }
632
- }
633
- }
634
- }
635
- }
636
- ]
637
- },
638
630
  "/product/{productId}": {
639
631
  "post": [
640
632
  {