This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathshopping.json
17591 lines (17591 loc) · 627 KB
/
shopping.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.1.0",
"servers": [
{
"url": "http://localhost:37001",
"description": "Local Server"
}
],
"info": {
"version": "0.4.3",
"title": "@samchon/shopping-backend",
"description": "Backend for shopping",
"license": {
"name": "MIT"
}
},
"paths": {
"/monitors/health": {
"get": {
"tags": [
"Monitor"
],
"parameters": [],
"responses": {
"200": {
"description": ""
}
},
"summary": "Health check API",
"description": "Health check API."
}
},
"/monitors/performance": {
"get": {
"tags": [
"Monitor"
],
"parameters": [],
"responses": {
"200": {
"description": "Performance info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IPerformance"
}
}
}
}
},
"summary": "Get performance information",
"description": "Get performance information.\n\nGet perofmration information composed with CPU, memory and resource usage."
}
},
"/monitors/system": {
"get": {
"tags": [
"Monitor"
],
"parameters": [],
"responses": {
"200": {
"description": "System info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ISystem"
}
}
}
}
},
"summary": "Get system information",
"description": "Get system information.\n\nGet system information with commit and package information.\n\nAs such information is a type of sensitive, response be encrypted."
}
},
"/shoppings/admins/authenticate": {
"get": {
"tags": [
"Authenticate"
],
"parameters": [],
"responses": {
"200": {
"description": "Admin info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingAdministrator.IInvert"
}
}
}
}
},
"summary": "Get administrator information",
"description": "Get administrator information.\n\nGet {@link IShoppingAdministrator.IInvert administrator} information of\ncurrent {@link IShoppingCustomer customer}.\n\nIf current {@link IShoppingMember member} is not an administrator,\nit throws 403 forbidden exception."
},
"post": {
"tags": [
"Authenticate"
],
"parameters": [],
"requestBody": {
"description": "Joining request info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingAdministrator.IJoin"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Administrator info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingAdministrator.IInvert"
}
}
}
}
},
"summary": "Join as an administrator",
"description": "Join as an administrator.\n\nJoin as an administrator with {@link IShoppingAdministrator.IJoin joining info}.\n\nThis method is allowed only when the {@link IShoppingCustomer customer} already\nhas joined the {@link IShoppingMember membership}. IF not, he (she) must\naccomplish it before. If not, 403 forbidden exception would be thrown."
}
},
"/shoppings/admins/authenticate/login": {
"put": {
"tags": [
"Authenticate"
],
"parameters": [],
"requestBody": {
"description": "Login request info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMember.ILogin"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Administrator info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingAdministrator.IInvert"
}
}
}
}
},
"summary": "Login as an administrator",
"description": "Login as an administrator.\n\nLogin as an administrator with {@link IShoppingAdministrator.ILogin login info}.\n\nThis method has exactly same effect with\n{@link ShoppingApi.functional.customers.authenticate.login} function, but\nreturned type is a llttle different. The similar function returns\n{@link IShoppingCustomer} type that starting from the customer information, so\nthat you have to access to the administrator info through\n`customer.member.administrator`. In contrast with that, this method returns\n{@link IShoppingAdministrator.IInvert} type that starting from the administrator\ninfo, so that can access to the customer info through `administrator.customer`.\n\nOf course, to use this function, you had to {@link join} as an administrator\nbefore. If not, 403 forbidden exception would be thrown,"
}
},
"/shoppings/admins/coupons": {
"post": {
"tags": [
"Discount"
],
"parameters": [],
"requestBody": {
"description": "Creation info of the coupon",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingCoupon.ICreate"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Newly created coupon",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingCoupon"
}
}
}
}
},
"summary": "Create a new coupon",
"description": "Create a new coupon.\n\nCreate a new {@link IShoppingCoupon coupon} with given information.\n\nBy the way, if you are a {@link IShoppingSeller seller}, you have to\nadd include direction's {@link IShoppingCouponSellerCriteria} or\n{@link IShoppingCouponSaleCriteria} condition. This is because only\n{@link IShoppingAdministrator administrators} can create a coupon\nwhich can be used throughout the market. Seller must limit the usage\nrange by his/her {@link IShoppingSale sale(s)}.\n\nOf course, when adminstrator is planning to make a general coupon\nthat can be used throughout the market, the administrator must\nget agree from the sellers who are going to be affected."
},
"patch": {
"tags": [
"Discount"
],
"parameters": [],
"requestBody": {
"description": "Request info of pagination, searching and sorting",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingCoupon.IRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Paginated coupons",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IPageIShoppingCoupon"
}
}
}
}
},
"summary": "List up every coupons",
"description": "List up every coupons.\n\nList up every {@link IShoppingCoupon coupons} with pagination.\n\nIf you want, you can limit the result by configuring\n{@link IShoppingCoupon.IRequest.search search condition} in the request\nbody. Also, it is possible to customize sequence order of records by\nconfiguring {@link IShoppingCoupon.IRequest.sort sort condition}.\n\nFor reference, if you are a {@link IShoppingCustomer customer}, then\nonly {@link IShoppingCouponTicket ticketable} coupons would be listed up.\nOtherwise, non-ticketable coupons would also be listed up."
}
},
"/shoppings/admins/coupons/{id}": {
"delete": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true,
"description": " Target coupon's {@link IShoppingCoupon.id}"
}
],
"responses": {
"200": {
"description": ""
}
},
"summary": "Erase a coupon",
"description": "Erase a coupon.\n\nErase a {@link IShoppingCoupon coupon} with given ID.\n\nFor reference, if there're some {@link IShoppingCouponTicket tickets}\nwhich are already issued from the target coupon, they would not be affected.\nThose tickets are still valid until their expration time."
},
"get": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string"
},
"required": true,
"description": " Target coupon's {@link IShoppingCoupon.id}"
}
],
"responses": {
"200": {
"description": "Coupon info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingCoupon"
}
}
}
}
},
"summary": "Get a coupon info",
"description": "Get a coupon info.\n\nGet a {@link IShoppingCoupon coupon} information.\n\nIf you are a {@link IShoppingCustomer customer}, then only\n{@link IShoppingCouponTicket ticketable} coupons are accessible. Non\nticketable coupons cause 410 gone error. Otherwise you are a\n{@link IShoppingSeller seller} or {@link IShoppingAdministrator administrator},\nnon-ticketable coupons are also accessible."
}
},
"/shoppings/admins/deposits": {
"patch": {
"tags": [
"Discount"
],
"parameters": [],
"requestBody": {
"description": "Request info of pagination, searching and sorting",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingDeposit.IRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Paginated deposit metadata list",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IPageIShoppingDeposit"
}
}
}
}
},
"summary": "Get deposit metadata list",
"description": "Get deposit metadata list.\n\nList up every {@link IShoppingDeposit deposit} metadata informations\nwith {@link IPage pagination}.\n\nIf you want, you can limit the result by configuring\n{@link IShoppingDeposit.IRequest.search search condition} in the request body.\nAlso, it is possible to customize sequence order of records by configuring\n{@link IShoppingDeposit.IRequest.sort sort condition}."
},
"post": {
"tags": [
"Discount"
],
"parameters": [],
"requestBody": {
"description": "Creation information of deposit metadata",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingDeposit.ICreate"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Newly created deposit metadata",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingDeposit"
}
}
}
}
},
"summary": "Create a new deposit metadata",
"description": "Create a new deposit metadata.\n\nCreate a new {@link IShoppingDeposit deposit} metadata.\n\nThis action means that adding a new origin reason of deposit's income/outcome.\nOf course, creating a new deposit record does not mean that automatically\nincrease or decrease the {@link IShoppingCustomer customer}'s balance\nfollowing the record's reason why. The logic must be developed manually\nin the backend side."
}
},
"/shoppings/admins/deposits/{id}": {
"get": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target deposit's {@link IShoppingDeposit.id}"
}
],
"responses": {
"200": {
"description": "Deposit metadata",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingDeposit"
}
}
}
}
},
"summary": "Get a deposit metadata",
"description": "Get a deposit metadata.\n\nGet a {@link IShoppingDeposit deposit} metadata information with its ID."
},
"delete": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target deposit's {@link IShoppingDeposit.id}"
}
],
"responses": {
"200": {
"description": ""
}
},
"summary": "Erase a deposit metadata",
"description": "Erase a deposit metadata.\n\nErase a {@link IShoppingDeposit deposit} metadata, so that no more\n{@link IShoppingCustomer customer}'s balance does not be increased or\ndecreased by the deposit's reason why."
}
},
"/shoppings/admins/deposits/{code}/get": {
"get": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "code",
"in": "path",
"schema": {
"type": "string"
},
"required": true
}
],
"responses": {
"200": {
"description": "Deposit metadata",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingDeposit"
}
}
}
}
},
"summary": "Get a deposit metadata by its code",
"description": "Get a deposit metadata by its code.\n\nGet a {@link IShoppingDeposit deposit} metadata information with its code."
}
},
"/shoppings/admins/mileages": {
"patch": {
"tags": [
"Discount"
],
"parameters": [],
"requestBody": {
"description": "Request info of pagination, searching and sorting",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileage.IRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Paginated mileage metadata list",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IPageIShoppingMileage"
}
}
}
}
},
"summary": "Get mileage metadata list",
"description": "Get mileage metadata list.\n\nList up every {@link IShoppingMileage mileage} metadata informations\nwith {@link IPage pagination}.\n\nIf you want, you can limit the result by configuring\n{@link IShoppingMileage.IRequest.search search condition} in the request body.\nAlso, it is possible to customize sequence order of records by configuring\n{@link IShoppingMileage.IRequest.sort sort condition}."
},
"post": {
"tags": [
"Discount"
],
"parameters": [],
"requestBody": {
"description": "Creation information of mileage metadata",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileage.ICreate"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Newly created mileage metadata",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileage"
}
}
}
}
},
"summary": "Create a new mileage metadata",
"description": "Create a new mileage metadata.\n\nCreate a new {@link IShoppingMileage mileage} metadata.\n\nThis action means that adding a new origin reason of mileage's income/outcome.\nOf course, creating a new mileage record does not mean that automatically\nincrease or decrease the {@link IShoppingCustomer customer}'s balance\nfollowing the record's reason why. The logic must be developed manually\nin the backend side."
}
},
"/shoppings/admins/mileages/{id}": {
"get": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target mileage's {@link IShoppingMileage.id}"
}
],
"responses": {
"200": {
"description": "Mileage metadata",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileage"
}
}
}
}
},
"summary": "Get a mileage metadata",
"description": "Get a mileage metadata.\n\nGet a {@link IShoppingMileage mileage} metadata information with its ID."
},
"delete": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target mileage's {@link IShoppingMileage.id}"
}
],
"responses": {
"200": {
"description": ""
}
},
"summary": "Erase a mileage metadata",
"description": "Erase a mileage metadata.\n\nErase a {@link IShoppingMileage mileage} metadata, so that no more\n{@link IShoppingCustomer customer}'s balance does not be increased or\ndecreased by the mileage's reason why."
}
},
"/shoppings/admins/mileages/{code}/get": {
"get": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "code",
"in": "path",
"schema": {
"type": "string"
},
"required": true
}
],
"responses": {
"200": {
"description": "Mileage metadata",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileage"
}
}
}
}
},
"summary": "Get a mileage metadata by its code",
"description": "Get a mileage metadata by its code.\n\nGet a {@link IShoppingMileage mileage} metadata information with its code."
}
},
"/shoppings/admins/mileages/donations": {
"patch": {
"tags": [
"Discount"
],
"parameters": [],
"requestBody": {
"description": "Request info of pagination, searching and sorting",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileageDonation.IRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Paginated mileage donation history list",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IPageIShoppingMileageDonation"
}
}
}
}
},
"summary": "List up every mileage donation histories",
"description": "List up every mileage donation histories.\n\nList up every {@link IShoppingMileageDonation mileage donation histories}\nwith {@link IPage pagination}.\n\nIf you want, you can limit the result by configuring\n{@link IShoppingMileageDonation.IRequest.search search condition} in\nthe request body. Also, it is possible to customize sequence order of\nrecords by configuring {@link IShoppingMileageDonation.IRequest.sort sort}."
},
"post": {
"tags": [
"Discount"
],
"parameters": [],
"requestBody": {
"description": "Request info of mileage donation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileageDonation.ICreate"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Mileage donation history",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileageDonation"
}
}
}
}
},
"summary": "Donate a mileage to a citizen",
"description": "Donate a mileage to a citizen.\n\nDonate a mileage to a specific {@link IShoppingCitizen citizen} from\ncurrent {@link IShoppingAdministrator administrator}, with detailed\nreason why.\n\nNote that, as donating mileage affects to the citizen's balance and\ncurrent shopping mall's operating profit, administrator must archive\nthe detailed reason why the mileage is donated."
}
},
"/shoppings/admins/mileages/donations/{id}": {
"get": {
"tags": [
"Discount"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target history's {@link IShoppingMileageDonation.id}"
}
],
"responses": {
"200": {
"description": "Mileage donation history",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingMileageDonation"
}
}
}
}
},
"summary": "Get a mileage donation history",
"description": "Get a mileage donation history.\n\nGet a {@link IShoppingMileageDonation mileage donation history} with its ID."
}
},
"/shoppings/admins/orders": {
"patch": {
"tags": [
"Order"
],
"parameters": [],
"requestBody": {
"description": "Request info of pagination, searching and sorting",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingOrder.IRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Paginated orders",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IPageIShoppingOrder"
}
}
}
}
},
"summary": "List up every orders",
"description": "List up every orders.\n\nList up every {@link IShoppingOrder orders} with pagination.\n\nIf you want, you can limit the result by configuring\n{@link IShoppingOrder.IRequest.search search condition} in the request\nbody. Also, it is possible to customize sequence order of records by\nconfiguring {@link IShoppingOrder.IRequest.sort sort condition}.\n\nFor reference, if you are a {@link IShoppingCustomer customer}, then\nyou can list up your own orders, and it is not a matter whether the\norder has been {@link IShoppingOrderPublish.paid_at paid} or not.\n\nOtherwise you are a {@link IShoppingSeller seller} or\n{@link IShoppingAdministrator administrator}, then you can list up\nonly paid orders. Also, in the seller case, only related\n{@link IShoppingOrder.goods goods} would be listed up in the order."
}
},
"/shoppings/admins/orders/{id}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target order's {@link IShoppingOrder.id}"
}
],
"responses": {
"200": {
"description": "Order info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingOrder"
}
}
}
}
},
"summary": "Get an order info",
"description": "Get an order info.\n\nGet a detailed {@link IShoppingOrder order} information.\n\nIf you are not a {@link IShoppingCustomer customer}, then you can't\naccess to the order which has not been\n{@link IShoppingOrderPublish.paid_at paid} yet. In that case,\n404 not found error would be thrown."
}
},
"/shoppings/admins/sales": {
"patch": {
"tags": [
"Sale"
],
"parameters": [],
"requestBody": {
"description": "Request info of pagination, searching and sorting",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingSale.IRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Paginated sales with summarized information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IPageIShoppingSale.ISummary"
}
}
}
}
},
"summary": "List up every summarized sales",
"description": "List up every summarized sales.\n\nList up every {@link IShoppingSale.ISummary summarized sales}.\n\nAs you can see, returned sales are summarized, not detailed. If you want\nto get the detailed information of a sale, use {@link at} function for\neach sale.\n\nFor reference, if you're a {@link IShoppingSeller seller}, you can only\naccess to the your own {@link IShoppingSale sale}s. Otherwise you're a\n{@link IShoppingCustomer customer}, you can see only the operating\nsales in the market. You can't see the unopened, closed, or suspended\nsales.\n\nBy the way, if you want, you can limit the result by configuring\n{@link IShoppingSale.IRequest.search search condition} in the request\nbody. Also, it is possible to customize sequence order of records by\nconfiguring {@link IShoppingSale.IRequest.sort sort condition}."
}
},
"/shoppings/admins/sales/{id}": {
"get": {
"tags": [
"Sale"
],
"parameters": [
{
"name": "id",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target sale's {@link IShoppingSale.id}"
}
],
"responses": {
"200": {
"description": "Detailed sale information",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingSale"
}
}
}
}
},
"summary": "Get a sale info",
"description": "Get a sale info.\n\nGet a {@link IShoppingSale sale} with detailed information.\n\nIf you're a {@link IShoppingSeller seller}, you can only access to the\nyour own {@link IShoppingSale sale}. Otherwise you're a\n{@link IShoppingCustomer customer}, you can access to only the operating\nsales in the market. You can't access to the unopened, closed, or suspended\nsales."
}
},
"/shoppings/admins/sales/{saleId}/questions/{inquiryId}/comments": {
"patch": {
"tags": [
"Sale"
],
"parameters": [
{
"name": "saleId",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Belonged sale's {@link IShoppingSale.id }"
},
{
"name": "inquiryId",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Belonged inquiry's {@link IShoppingSaleInquiry.id }"
}
],
"requestBody": {
"description": "Request info of pagination, searching and sorting",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingSaleInquiryComment.IRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Paginated inquiry comments",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IPageIShoppingSaleInquiryComment"
}
}
}
}
},
"summary": "List up every inquiry comments",
"description": "List up every inquiry comments.\n\nList up every {@link IShoppingSaleInquiryComment inquiry comments} of a\n{@link IShoppingSaleQuestion question} or {@link IShoppingSaleReview review}\nwith {@link IPage pagination}.\n\nIf you want, you can limit the result by configuring\n{@link IShoppingSaleInquiryComment.IRequest.search search condition} in the\nrequest body. Also, it is possible to customize sequence order of records\nby configuring {@link IShoppingSaleInquiryComment.IRequest.sort sort condition}.\n\nBy the way, if you're a {@link IShoppingSeller seller}, you can only access\nto the your own {@link IShoppingSale sale}'s inquiries. Otherwise, you\ncan access to every inquiries of the sales."
},
"post": {
"tags": [
"Sale"
],
"parameters": [
{
"name": "saleId",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Belonged sale's {@link IShoppingSale.id }"
},
{
"name": "inquiryId",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target inquiry's {@link IShoppingSaleInquiry.id }"
}
],
"requestBody": {
"description": "Creation info of the inquiry comment",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingSaleInquiryComment.ICreate"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Newly created inquiry comment",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingSaleInquiryComment"
}
}
}
}
},
"summary": "Create an inquiry comment",
"description": "Create an inquiry comment.\n\nCreate an {@link IShoppingSaleInquiryComment inquiry comment} of a\n{@link IShoppingSaleQuestion question} or {@link IShoppingSaleReview review}.\n\nFor reference, if you're a {@link IShoppingSeller seller}, you can only\ncreate an inquiry comment to your own {@link IShoppingSale sale}'s inquiry.\nOtherwise, you can create an inquiry comment to every inquiries of the sales."
}
},
"/shoppings/admins/sales/{saleId}/questions/{inquiryId}/comments/{id}": {
"get": {
"tags": [
"Sale"
],
"parameters": [
{
"name": "saleId",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Belonged sale's {@link IShoppingSale.id }"
},
{
"name": "inquiryId",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Belonged inquiry's {@link IShoppingSaleInquiry.id }"
},
{
"name": "id",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Target inquiry comment's {@link IShoppingSaleInquiryComment.id}"
}
],
"responses": {
"200": {
"description": "Detailed inquiry comment info",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IShoppingSaleInquiryComment"
}
}
}
}
},
"summary": "Get an inquiry comment info",
"description": "Get an inquiry comment info.\n\nGet a detailed {@link IShoppingSaleInquiryComment inquiry comment}\ninformation of a {@link IShoppingSaleQuestion question} or\n{@link IShoppingSaleReview review}.\n\nFor reference, if you're a {@link IShoppingSeller seller}, you can only\naccess to the your own {@link IShoppingSale sale}'s inquiry comment.\nOtherwise, you can access to every inquiry comments of the sales."
},
"put": {
"tags": [
"Sale"
],
"parameters": [
{
"name": "saleId",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Belonged sale's {@link IShoppingSale.id }"
},
{
"name": "inquiryId",
"in": "path",
"schema": {
"type": "string",
"format": "uuid"
},
"required": true,
"description": " Belonged inquiry's {@link IShoppingSaleInquiry.id }"
},
{
"name": "id",
"in": "path",