@shopware/api-client 1.1.2 → 1.2.1

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.
@@ -83,6 +83,11 @@
83
83
  }
84
84
  }
85
85
  ],
86
+ "CartItems": [
87
+ {
88
+ "required": ["items"]
89
+ }
90
+ ],
86
91
  "Category": [
87
92
  {
88
93
  "required": ["breadcrumb"],
@@ -149,6 +154,47 @@
149
154
  }
150
155
  }
151
156
  ],
157
+ "Customer": [
158
+ {
159
+ "properties": {
160
+ "accountType": "_DELETE_",
161
+ "company": "_DELETE_",
162
+ "vatIds": "_DELETE_"
163
+ }
164
+ },
165
+ {
166
+ "oneOf": [
167
+ {
168
+ "required": ["accountType"],
169
+ "properties": {
170
+ "accountType": {
171
+ "type": "string",
172
+ "enum": ["private"]
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "required": ["accountType", "vatIds", "company"],
178
+ "properties": {
179
+ "accountType": {
180
+ "type": "string",
181
+ "enum": ["business"]
182
+ },
183
+ "vatIds": {
184
+ "type": "array",
185
+ "items": {
186
+ "type": "string"
187
+ },
188
+ "minItems": 1
189
+ },
190
+ "company": {
191
+ "type": "string"
192
+ }
193
+ }
194
+ }
195
+ ]
196
+ }
197
+ ],
152
198
  "DeliveryInformation": [
153
199
  {
154
200
  "required": ["stock"]
@@ -447,6 +493,97 @@
447
493
  }
448
494
  ]
449
495
  },
496
+ "/account/change-profile": {
497
+ "post": [
498
+ {
499
+ "requestBody": {
500
+ "content": {
501
+ "application/json": {
502
+ "schema": {
503
+ "properties": {
504
+ "accountType": "_DELETE_",
505
+ "company": "_DELETE_",
506
+ "vatIds": "_DELETE_"
507
+ }
508
+ }
509
+ }
510
+ }
511
+ }
512
+ },
513
+ {
514
+ "requestBody": {
515
+ "content": {
516
+ "application/json": {
517
+ "schema": {
518
+ "oneOf": [
519
+ {
520
+ "properties": {
521
+ "accountType": {
522
+ "description": "Type of the customer account. Default value is 'private'.",
523
+ "type": "string",
524
+ "enum": ["private"],
525
+ "default": "private"
526
+ },
527
+ "company": {
528
+ "type": "null"
529
+ },
530
+ "vatIds": {
531
+ "type": "null"
532
+ }
533
+ }
534
+ },
535
+ {
536
+ "required": ["accountType", "company", "vatIds"],
537
+ "properties": {
538
+ "accountType": {
539
+ "description": "Type of the customer account. Can be `private` or `business`.",
540
+ "type": "string",
541
+ "enum": ["business"]
542
+ },
543
+ "company": {
544
+ "description": "Company of the customer. Only required when `accountType` is `business`.",
545
+ "type": "string"
546
+ },
547
+ "vatIds": {
548
+ "description": "VAT IDs of the customer's company. Only valid when `accountType` is `business`.",
549
+ "type": "array",
550
+ "items": {
551
+ "type": "string"
552
+ },
553
+ "minItems": 1
554
+ }
555
+ }
556
+ }
557
+ ]
558
+ }
559
+ }
560
+ }
561
+ }
562
+ },
563
+ {
564
+ "requestBody": {
565
+ "content": {
566
+ "application/json": {
567
+ "schema": {
568
+ "required": "_DELETE_"
569
+ }
570
+ }
571
+ }
572
+ }
573
+ },
574
+ {
575
+ "requestBody": {
576
+ "content": {
577
+ "application/json": {
578
+ "schema": {
579
+ "required": ["firstName", "lastName"]
580
+ }
581
+ }
582
+ }
583
+ }
584
+ }
585
+ ]
586
+ },
450
587
  "/account/list-address": {
451
588
  "post": [
452
589
  {
@@ -481,6 +618,103 @@
481
618
  }
482
619
  ]
483
620
  },
621
+ "/account/register": {
622
+ "post": [
623
+ {
624
+ "requestBody": {
625
+ "content": {
626
+ "application/json": {
627
+ "schema": {
628
+ "properties": {
629
+ "accountType": "_DELETE_"
630
+ }
631
+ }
632
+ }
633
+ }
634
+ }
635
+ },
636
+ {
637
+ "requestBody": {
638
+ "content": {
639
+ "application/json": {
640
+ "schema": {
641
+ "oneOf": [
642
+ {
643
+ "properties": {
644
+ "accountType": {
645
+ "description": "Type of the customer account. Default value is 'private'.",
646
+ "type": "string",
647
+ "enum": ["private"],
648
+ "default": "private"
649
+ },
650
+ "company": {
651
+ "type": "null"
652
+ },
653
+ "vatIds": {
654
+ "type": "null"
655
+ }
656
+ }
657
+ },
658
+ {
659
+ "required": ["accountType", "company", "vatIds"],
660
+ "properties": {
661
+ "accountType": {
662
+ "description": "Type of the customer account. Can be `private` or `business`.",
663
+ "type": "string",
664
+ "enum": ["business"]
665
+ },
666
+ "company": {
667
+ "description": "Company of the customer. Only required when `accountType` is `business`.",
668
+ "type": "string"
669
+ },
670
+ "vatIds": {
671
+ "description": "VAT IDs of the customer's company. Only valid when `accountType` is `business`.",
672
+ "type": "array",
673
+ "items": {
674
+ "type": "string"
675
+ },
676
+ "minItems": 1
677
+ }
678
+ }
679
+ }
680
+ ]
681
+ }
682
+ }
683
+ }
684
+ }
685
+ },
686
+ {
687
+ "requestBody": {
688
+ "content": {
689
+ "application/json": {
690
+ "schema": {
691
+ "required": "_DELETE_"
692
+ }
693
+ }
694
+ }
695
+ }
696
+ },
697
+ {
698
+ "requestBody": {
699
+ "content": {
700
+ "application/json": {
701
+ "schema": {
702
+ "required": [
703
+ "email",
704
+ "password",
705
+ "firstName",
706
+ "lastName",
707
+ "acceptedDataProtection",
708
+ "storefrontUrl",
709
+ "billingAddress"
710
+ ]
711
+ }
712
+ }
713
+ }
714
+ }
715
+ }
716
+ ]
717
+ },
484
718
  "/account/shopping-list/line-item/{id}/add": {
485
719
  "post": {
486
720
  "requestBody": {
@@ -602,8 +836,90 @@
602
836
  }
603
837
  }
604
838
  }
839
+ ],
840
+ "patch": [
841
+ {
842
+ "requestBody": {
843
+ "content": {
844
+ "application/json": {
845
+ "schema": {
846
+ "$ref": "_DELETE_",
847
+ "type": "object",
848
+ "required": ["items"],
849
+ "properties": {
850
+ "items": {
851
+ "type": "array",
852
+ "minItems": 1,
853
+ "items": {
854
+ "type": "object",
855
+ "required": ["id", "quantity"],
856
+ "properties": {
857
+ "id": { "type": "string" },
858
+ "quantity": { "type": "number" }
859
+ }
860
+ }
861
+ }
862
+ }
863
+ }
864
+ }
865
+ }
866
+ }
867
+ }
605
868
  ]
606
869
  },
870
+ "/contact-form": {
871
+ "post": [
872
+ {
873
+ "requestBody": {
874
+ "content": {
875
+ "application/json": {
876
+ "schema": {
877
+ "required": "_DELETE_"
878
+ }
879
+ }
880
+ }
881
+ }
882
+ },
883
+ {
884
+ "requestBody": {
885
+ "content": {
886
+ "application/json": {
887
+ "schema": {
888
+ "required": ["email", "subject", "comment"]
889
+ }
890
+ }
891
+ }
892
+ }
893
+ }
894
+ ]
895
+ },
896
+ "/employee/{id}": {
897
+ "get": {
898
+ "operationId": "readB2bEmployee",
899
+ "parameters": [
900
+ {
901
+ "name": "id",
902
+ "in": "path",
903
+ "description": "Identifier of the employee to be read",
904
+ "required": true,
905
+ "schema": {
906
+ "type": "string",
907
+ "format": "uuid"
908
+ }
909
+ }
910
+ ],
911
+ "responses": {
912
+ "200": {
913
+ "description": "Employee",
914
+ "content": {
915
+ "application/json": {
916
+ "schema": { "$ref": "#/components/schemas/B2bEmployee" }
917
+ }
918
+ }
919
+ }
920
+ }
921
+ }
922
+ },
607
923
  "/quote/detail/{id}": {
608
924
  "post": [
609
925
  {
@@ -627,6 +943,21 @@
627
943
  }
628
944
  }
629
945
  },
946
+ "/product": {
947
+ "post": {
948
+ "responses": {
949
+ "200": {
950
+ "content": {
951
+ "application/json": {
952
+ "schema": {
953
+ "required": ["elements"]
954
+ }
955
+ }
956
+ }
957
+ }
958
+ }
959
+ }
960
+ },
630
961
  "/product/{productId}": {
631
962
  "post": [
632
963
  {
@@ -674,6 +1005,21 @@
674
1005
  }
675
1006
  ]
676
1007
  }
1008
+ },
1009
+ "/shipping-method": {
1010
+ "post": {
1011
+ "responses": {
1012
+ "200": {
1013
+ "content": {
1014
+ "application/json": {
1015
+ "schema": {
1016
+ "required": ["elements"]
1017
+ }
1018
+ }
1019
+ }
1020
+ }
1021
+ }
1022
+ }
677
1023
  }
678
1024
  }
679
1025
  }