@30nama/sdk 2.0.0-rc.21 → 2.0.0-rc.23

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.
Files changed (93) hide show
  1. package/README.md +312 -312
  2. package/lib/core/config.js +20 -10
  3. package/lib/core/config.js.map +1 -1
  4. package/lib/generated/biography/api.d.ts +2 -2
  5. package/lib/generated/biography/api.js +19 -16
  6. package/lib/generated/biography/api.js.map +1 -1
  7. package/lib/generated/biography/models/biographyAdminListRetrieveParams.d.ts +2 -0
  8. package/lib/generated/biography/models/biographyAdminListRetrieveParams.js +0 -4
  9. package/lib/generated/biography/models/biographyAdminListRetrieveParams.js.map +1 -1
  10. package/lib/generated/biography/models/biographyAdminListRetrieveSort.d.ts +9 -0
  11. package/lib/generated/biography/models/biographyAdminListRetrieveSort.js +13 -0
  12. package/lib/generated/biography/models/biographyAdminListRetrieveSort.js.map +1 -0
  13. package/lib/generated/biography/models/biographyCoreRetrieveParams.d.ts +7 -0
  14. package/lib/generated/biography/models/biographyCoreRetrieveParams.js +7 -0
  15. package/lib/generated/biography/models/biographyCoreRetrieveParams.js.map +1 -0
  16. package/lib/generated/biography/models/biographyCreateSerializerRequestRequest.d.ts +1 -1
  17. package/lib/generated/biography/models/biographyPersonDetailRetrieveParams.d.ts +0 -4
  18. package/lib/generated/biography/models/biographyPersonRandomListRetrieveParams.d.ts +4 -0
  19. package/lib/generated/biography/models/favorite.d.ts +6 -16
  20. package/lib/generated/biography/models/index.d.ts +5 -0
  21. package/lib/generated/biography/models/index.js +5 -0
  22. package/lib/generated/biography/models/index.js.map +1 -1
  23. package/lib/generated/biography/models/personsListRetrieveParams.d.ts +0 -4
  24. package/lib/generated/biography/models/poster.d.ts +18 -0
  25. package/lib/generated/biography/models/poster.js +3 -0
  26. package/lib/generated/biography/models/poster.js.map +1 -0
  27. package/lib/generated/biography/models/posterFormat.d.ts +13 -0
  28. package/lib/generated/biography/models/posterFormat.js +13 -0
  29. package/lib/generated/biography/models/posterFormat.js.map +1 -0
  30. package/lib/generated/biography/models/posterSize.d.ts +19 -0
  31. package/lib/generated/biography/models/posterSize.js +16 -0
  32. package/lib/generated/biography/models/posterSize.js.map +1 -0
  33. package/lib/generated/financial/api.d.ts +21 -11
  34. package/lib/generated/financial/api.js +168 -73
  35. package/lib/generated/financial/api.js.map +1 -1
  36. package/lib/generated/financial/models/deleteStatusResponse.d.ts +8 -0
  37. package/lib/generated/{operator/models/googleAuthOneTapRequest.js → financial/models/deleteStatusResponse.js} +1 -1
  38. package/lib/generated/financial/models/deleteStatusResponse.js.map +1 -0
  39. package/lib/generated/financial/models/index.d.ts +6 -0
  40. package/lib/generated/financial/models/index.js +6 -0
  41. package/lib/generated/financial/models/index.js.map +1 -1
  42. package/lib/generated/financial/models/pricingResponse.d.ts +2 -2
  43. package/lib/generated/financial/models/relationCheckResponse.d.ts +11 -0
  44. package/lib/generated/financial/models/relationCheckResponse.js +3 -0
  45. package/lib/generated/financial/models/relationCheckResponse.js.map +1 -0
  46. package/lib/generated/financial/models/relationEnum.d.ts +1 -0
  47. package/lib/generated/financial/models/relationEnum.js +2 -1
  48. package/lib/generated/financial/models/relationEnum.js.map +1 -1
  49. package/lib/generated/financial/models/successDeleteStatusResponse.d.ts +17 -0
  50. package/lib/generated/financial/models/successDeleteStatusResponse.js +3 -0
  51. package/lib/generated/financial/models/successDeleteStatusResponse.js.map +1 -0
  52. package/lib/generated/financial/models/successDeleteStatusResponseErrors.d.ts +10 -0
  53. package/lib/generated/financial/models/successDeleteStatusResponseErrors.js +7 -0
  54. package/lib/generated/financial/models/successDeleteStatusResponseErrors.js.map +1 -0
  55. package/lib/generated/financial/models/successRelationCheckResponse.d.ts +17 -0
  56. package/lib/generated/financial/models/successRelationCheckResponse.js +3 -0
  57. package/lib/generated/financial/models/successRelationCheckResponse.js.map +1 -0
  58. package/lib/generated/financial/models/successRelationCheckResponseErrors.d.ts +10 -0
  59. package/lib/generated/financial/models/successRelationCheckResponseErrors.js +7 -0
  60. package/lib/generated/financial/models/successRelationCheckResponseErrors.js.map +1 -0
  61. package/lib/generated/operator/api.d.ts +9 -7
  62. package/lib/generated/operator/api.js +146 -48
  63. package/lib/generated/operator/api.js.map +1 -1
  64. package/lib/generated/operator/models/authUserResetPasswordLinkRetrieveParams.d.ts +10 -0
  65. package/lib/generated/operator/models/authUserResetPasswordLinkRetrieveParams.js +7 -0
  66. package/lib/generated/operator/models/authUserResetPasswordLinkRetrieveParams.js.map +1 -0
  67. package/lib/generated/operator/models/dataSendOTPAPIViewResponse.d.ts +1 -1
  68. package/lib/generated/operator/models/index.d.ts +1 -2
  69. package/lib/generated/operator/models/index.js +1 -2
  70. package/lib/generated/operator/models/index.js.map +1 -1
  71. package/lib/generated/operator/models/supporterLoginUsernamePasswordRequest.d.ts +0 -2
  72. package/lib/generated/operator/models/supporterSupportersListListParams.d.ts +1 -1
  73. package/lib/generated/operator/models/userActiveSessionList.d.ts +5 -0
  74. package/lib/generated/operator/models/userResetPasswordOTPSendRequest.d.ts +2 -0
  75. package/lib/generated/operator/models/userSystemSettingsCreateRequest.d.ts +1 -1
  76. package/lib/generated/operator/models/userSystemSettingsUpdateRequest.d.ts +1 -1
  77. package/lib/generated/video-content/api.js +9 -4
  78. package/lib/generated/video-content/api.js.map +1 -1
  79. package/lib/generated/video-content/models/getActiveOptionsContentsUserVideoContentOptionsContentsGetOption.d.ts +2 -0
  80. package/lib/generated/video-content/models/getActiveOptionsContentsUserVideoContentOptionsContentsGetOption.js +3 -1
  81. package/lib/generated/video-content/models/getActiveOptionsContentsUserVideoContentOptionsContentsGetOption.js.map +1 -1
  82. package/lib/services/comment/index.d.ts +4 -4
  83. package/lib/services/comment/index.js.map +1 -1
  84. package/lib/services/operator/index.d.ts +3 -3
  85. package/lib/services/operator/index.js +5 -5
  86. package/lib/services/operator/index.js.map +1 -1
  87. package/lib/services/stream/index.d.ts +2 -2
  88. package/lib/services/stream/index.js.map +1 -1
  89. package/lib/services/video-content/index.d.ts +1 -1
  90. package/lib/tsconfig.lib.tsbuildinfo +1 -1
  91. package/package.json +53 -53
  92. package/lib/generated/operator/models/googleAuthOneTapRequest.d.ts +0 -11
  93. package/lib/generated/operator/models/googleAuthOneTapRequest.js.map +0 -1
@@ -142,26 +142,44 @@ const getFinancialMicroserviceAPI = () => {
142
142
  return axios_1.default.put(`/plan_type/${planTypeId}`, planTypeUpdate, options);
143
143
  };
144
144
  /**
145
- * - **Last Version Update**: 1.2.2
146
- - **SRS Codes**: 2.2:A2.2N8"
145
+ * - **Last Version Update**: 1.8.5
146
+ - **SRS Codes**: 2.2:A2.2N8, 2.2:A2.2E7
147
147
  - **Change Log**:
148
- - Changing response body example for 200 status
149
- - Changing message to fixed message for 200 status
148
+ - Split relation check into dedicated endpoint
150
149
 
151
- - **Description**: Deletes a plan type by its ID.
150
+ - **Description**: Deletes a plan type by its ID. Use the relations endpoint to check dependencies before deleting.
152
151
  - **Security**: Requires authentication using an API key.
153
152
  - **Path Parameter**:
154
153
  - **plan_type_id**: The ID of the plan type to delete.
155
154
  - **Response**:
156
- - **200**: Returns a `DeleteResponseList` containing a list of deleted relations, indicating the type of relation and corresponding IDs. The `is_deleted` flag is set to `True`.
155
+ - **200**: Returns deletion result.
157
156
  - **401**: Unauthorized access.
158
- - **404**: Plan type not found.
159
- * @summary Delete a plan_type
157
+ - **404**: Plan type not found
158
+ * @summary Deletes a plan type
160
159
  */
161
160
  const deletePlanTypePlanTypePlanTypeIdDelete = (planTypeId, options) => {
162
161
  return axios_1.default.delete(`/plan_type/${planTypeId}`, options);
163
162
  };
164
163
  /**
164
+ * - **Last Version Update**: 1.8.5
165
+ - **SRS Codes**: 2.2:A2.2N8
166
+ - **Change Log**:
167
+ - Added endpoint to fetch plan type relations before deletion
168
+
169
+ - **Description**: Retrieves relations for a plan type without deleting it.
170
+ - **Security**: Requires authentication using an API key.
171
+ - **Path Parameter**:
172
+ - **plan_type_id**: The ID of the plan type to check relations for.
173
+ - **Response**:
174
+ - **200**: Returns related records and a flag indicating if the plan type can be safely deleted.
175
+ - **401**: Unauthorized access.
176
+ - **404**: Plan type not found.
177
+ * @summary Retrieves relations for a plan type
178
+ */
179
+ const getPlanTypeRelationsPlanTypePlanTypeIdRelationsGet = (planTypeId, options) => {
180
+ return axios_1.default.get(`/plan_type/${planTypeId}/relations`, options);
181
+ };
182
+ /**
165
183
  * - **Last Version Update**: 1.8.0
166
184
  - **SRS Codes**: A2.2.3N1
167
185
  - **Change Log**:
@@ -206,7 +224,7 @@ const getFinancialMicroserviceAPI = () => {
206
224
  };
207
225
  /**
208
226
  * - **Last Version Update**: 1.8.0
209
- - **SRS Codes**: A2.2.3N1
227
+ - **SRS Codes**: A2.2.3N1,A2.2.3N5
210
228
  - **Change Log**:
211
229
  - **1.8.0**:
212
230
  - Change response body and example for 200 status
@@ -252,7 +270,7 @@ const getFinancialMicroserviceAPI = () => {
252
270
  };
253
271
  /**
254
272
  * - **Last Version Update**: 1.6.5
255
- - **SRS Codes**: A2.2.3N1
273
+ - **SRS Codes**: A2.2.3N4
256
274
  - **Change Log**:
257
275
  - Add new endpoint for delete plan type static text
258
276
 
@@ -294,7 +312,7 @@ const getFinancialMicroserviceAPI = () => {
294
312
  };
295
313
  /**
296
314
  * - **Last Version Update**: 1.7.5
297
- - **SRS Codes**: 2.2:A2.2N5
315
+ - **SRS Codes**: 2.2:A2.2N9
298
316
  - **Change Log**:
299
317
  - **1.7.5**:
300
318
  - Add language_id to filters
@@ -317,7 +335,7 @@ const getFinancialMicroserviceAPI = () => {
317
335
  };
318
336
  /**
319
337
  * - **Last Version Update**: 1.6.6
320
- - **SRS Codes**: SRS:2.2:A2.2N6, 2.2:A2.2E3, 2.2:A2.2E4, 2.2:A2.2E5
338
+ - **SRS Codes**: SRS:2.2:A2.2N10, 2.2:A2.2E5
321
339
  - **Change Log**:
322
340
  - **1.7.2**:
323
341
  - Handle Price field to be necessary in request body
@@ -379,7 +397,7 @@ const getFinancialMicroserviceAPI = () => {
379
397
  };
380
398
  /**
381
399
  * - **Last Version Update**: 1.6.6
382
- - **SRS Codes**: 2.2:A2.2N7
400
+ - **SRS Codes**: 2.2:A2.2N11
383
401
  - **Change Log**:
384
402
  - **Version**: 1.6.8
385
403
  - change plan_translation to plan_translations as list in request
@@ -402,18 +420,17 @@ const getFinancialMicroserviceAPI = () => {
402
420
  return axios_1.default.put(`/plan/${planId}`, planUpdate, options);
403
421
  };
404
422
  /**
405
- * - **Last Version Update**: 1.2.2
406
- - **SRS Codes**: 2.2:A2.2N8, 2.2:A2.2E7
423
+ * - **Last Version Update**: 1.8.5
424
+ - **SRS Codes**: 2.2:A2.2N12
407
425
  - **Change Log**:
408
- - Changing response body example for 200 status
409
- - Changing message to fixed message for 200 status
426
+ - Split relation check into dedicated endpoint
410
427
 
411
- - **Description**: Deletes a plan by its ID.
428
+ - **Description**: Deletes a plan by its ID. Use the relations endpoint to check dependencies before deleting.
412
429
  - **Security**: Requires authentication using an API key.
413
430
  - **Path Parameter**:
414
431
  - **plan_id**: The ID of the plan to delete.
415
432
  - **Response**:
416
- - **200**: Returns a `DeleteResponseList` containing a list of deleted relations, indicating the type of relation and corresponding IDs. The `is_deleted` flag is set to `True`.
433
+ - **200**: Returns deletion result.
417
434
  - **401**: Unauthorized access.
418
435
  - **404**: Plan not found
419
436
  * @summary Deletes a plan
@@ -422,6 +439,25 @@ const getFinancialMicroserviceAPI = () => {
422
439
  return axios_1.default.delete(`/plan/${planId}`, options);
423
440
  };
424
441
  /**
442
+ * - **Last Version Update**: 1.8.5
443
+ - **SRS Codes**: 2.2:A2.2N12
444
+ - **Change Log**:
445
+ - Added endpoint to fetch relations before deletion
446
+
447
+ - **Description**: Retrieves relations for a plan without deleting it.
448
+ - **Security**: Requires authentication using an API key.
449
+ - **Path Parameter**:
450
+ - **plan_id**: The ID of the plan to check relations for.
451
+ - **Response**:
452
+ - **200**: Returns related records and a flag indicating if the plan can be safely deleted.
453
+ - **401**: Unauthorized access.
454
+ - **404**: Plan not found.
455
+ * @summary Retrieves relations for a plan
456
+ */
457
+ const getPlanRelationsPlanPlanIdRelationsGet = (planId, options) => {
458
+ return axios_1.default.get(`/plan/${planId}/relations`, options);
459
+ };
460
+ /**
425
461
  * - **Last Version Update**: 1.7.2
426
462
  - **SRS Codes**: A2.2.3N1
427
463
  - **Change Log**:
@@ -636,7 +672,7 @@ const getFinancialMicroserviceAPI = () => {
636
672
  };
637
673
  /**
638
674
  * - **Last Version Update**: 1.7.3
639
- - **SRS Codes**: 2.2:A2.2N1, 2.2:A2.2N2
675
+ - **SRS Codes**: A2.2.1N1, A2.2.1N2
640
676
  - **Change Log**:
641
677
  - **1.7.3**:
642
678
  - Add usable_date to response model
@@ -659,7 +695,7 @@ const getFinancialMicroserviceAPI = () => {
659
695
  };
660
696
  /**
661
697
  * - **Last Version Update**: 1.6.1
662
- - **SRS Codes**: 2.2:A2.2N3, 2.2:A2.2E2
698
+ - **SRS Codes**: A2.2.1N3,A2.2.1E2
663
699
  - **Change Log**:
664
700
  - **1.6.1**:
665
701
  - Adding new endpoint
@@ -701,7 +737,7 @@ const getFinancialMicroserviceAPI = () => {
701
737
  };
702
738
  /**
703
739
  * - **Last Version Update**: 1.6.1
704
- - **SRS Codes**: 2.2:A2.2N4
740
+ - **SRS Codes**: A2.2.1N4
705
741
  - **Change Log**:
706
742
  **Version 1.6.1**:
707
743
  - Adding new endpoint
@@ -723,7 +759,7 @@ const getFinancialMicroserviceAPI = () => {
723
759
  };
724
760
  /**
725
761
  * - **Last Version Update**: 1.7.3
726
- - **SRS codes**: 2.2:A2.2N5, 2.2:A2.2N6
762
+ - **SRS codes**: A2.2.1N5, A2.2.1N6
727
763
  - **Change Log**:
728
764
  - **1.7.3**:
729
765
  - Add usable_date to response model
@@ -751,7 +787,7 @@ const getFinancialMicroserviceAPI = () => {
751
787
  };
752
788
  /**
753
789
  * - **Last Version Update**: 1.7.0
754
- - **SRS Codes**: 2.2:A2.2N7, 2.2:A2.2E3
790
+ - **SRS Codes**: A2.2.1N7, A2.2.1E3
755
791
  - **Change Log**:
756
792
  **Version 1.7.0**:
757
793
  - add description to requset model
@@ -796,7 +832,7 @@ const getFinancialMicroserviceAPI = () => {
796
832
  };
797
833
  /**
798
834
  * - **Last Version Update**: 1.7.0
799
- - **SRS codes**: 2.2:A2.2N4, 2.2:A2.2E1
835
+ - **SRS codes**: A2.2.1N8
800
836
  - **Change Log**:
801
837
  **Version 1.7.0**:
802
838
  - add description and staff_id to response model
@@ -838,7 +874,7 @@ const getFinancialMicroserviceAPI = () => {
838
874
  };
839
875
  /**
840
876
  * - **Last Version Update**: 1.6.1
841
- - **SRS Codes**: A.2.2.1N13
877
+ - **SRS Codes**: A.2.2.1N12
842
878
  - **Change Log**:
843
879
  - **1.6.1**:
844
880
  - Adding new endpoint
@@ -873,7 +909,7 @@ const getFinancialMicroserviceAPI = () => {
873
909
  };
874
910
  /**
875
911
  * - **Last Version Update**: 1.7.2
876
- - **SRS codes**: 2.2:A2.2N9 ,2.2:A2.2N10
912
+ - **SRS codes**: A2.2.1N9 ,A2.2.1N10
877
913
  - **Change Log**:
878
914
  - **1.7.2**:
879
915
  - Change default limit in filters to None
@@ -894,7 +930,7 @@ const getFinancialMicroserviceAPI = () => {
894
930
  };
895
931
  /**
896
932
  * - **Last Version Update**: 1.6.1
897
- - **SRS Codes**: 2.2:A2.2N11
933
+ - **SRS Codes**: A2.2.1N11
898
934
  - **Change Log**:
899
935
  - Adding new endpoint
900
936
 
@@ -914,7 +950,7 @@ const getFinancialMicroserviceAPI = () => {
914
950
  };
915
951
  /**
916
952
  * - **Last Version Update**: 1.6.1
917
- - **SRS Codes**: 2.2:A2.2N11
953
+ - **SRS Codes**: A2.2.1N11
918
954
  - **Change Log**:
919
955
  - Adding new endpoint
920
956
 
@@ -954,7 +990,7 @@ const getFinancialMicroserviceAPI = () => {
954
990
  };
955
991
  /**
956
992
  * - **Last Version Update**: 1.8.3
957
- - **SRS Codes**: 2-2-2:A2.2N1
993
+ - **SRS Codes**: A2.2.2N1
958
994
  - **Change Log**:
959
995
  - **1.8.3**:
960
996
  - add filter search_by to support searching by URL or gateway name
@@ -978,7 +1014,7 @@ const getFinancialMicroserviceAPI = () => {
978
1014
  };
979
1015
  /**
980
1016
  * - **Last Version Update**: 1.6.1
981
- - **SRS Codes**: 2-2-2:A2.2N2,2-2-2:A2.2E1
1017
+ - **SRS Codes**: A2.2.2N2,A2.2.2E1
982
1018
  - **Change Log**:
983
1019
  - **1.6.1**:
984
1020
  - Adding new endpoint
@@ -1018,7 +1054,7 @@ const getFinancialMicroserviceAPI = () => {
1018
1054
  };
1019
1055
  /**
1020
1056
  * - **Last Version Update**: 1.6.1
1021
- - **SRS Codes**: 2-2-2:A2.2N3
1057
+ - **SRS Codes**: A2.2.2N3
1022
1058
  - **Change Log**:
1023
1059
  - **1.6.1**:
1024
1060
  - Adding new endpoint
@@ -1037,12 +1073,10 @@ const getFinancialMicroserviceAPI = () => {
1037
1073
  return axios_1.default.put(`/giftcart/plan/${giftPlanId}`, updateGiftPlan, options);
1038
1074
  };
1039
1075
  /**
1040
- * - **Last Version Update**: 1.8.2
1041
- - **SRS Codes**: 2-2-2:A2.2N4
1076
+ * - **Last Version Update**: 1.8.5
1077
+ - **SRS Codes**: A2.2.2N4
1042
1078
  - **Change Log**:
1043
- - **1.8.2**:
1044
- - Adding new endpoint
1045
- - Adding example for delete gift plan endpoint
1079
+ - Split relation check into dedicated endpoint
1046
1080
  - **Description**: Deletes a gift plan by its ID.
1047
1081
  - **Security**: Requires authentication using an apiKey.
1048
1082
  - **Request Body**:
@@ -1058,8 +1092,27 @@ const getFinancialMicroserviceAPI = () => {
1058
1092
  return axios_1.default.delete(`/giftcart/plan/${giftPlanId}`, options);
1059
1093
  };
1060
1094
  /**
1095
+ * - **Last Version Update**: 1.8.5
1096
+ - **SRS Codes**: A2.2.2N4
1097
+ - **Change Log**:
1098
+ - Added endpoint to fetch gift plan relations before deletion
1099
+
1100
+ - **Description**: Retrieves relations for a gift plan without deleting it.
1101
+ - **Security**: Requires authentication using an apiKey.
1102
+ - **Path Parameter**:
1103
+ - **gift_plan_id**: ID of the gift plan to be checked.
1104
+ - **Response**:
1105
+ - **200**: Returns related records and a flag indicating if the gift plan can be safely deleted.
1106
+ - **401**: Unauthorized access.
1107
+ - **404**: No gift plan found for the provided ID.
1108
+ * @summary Retrieves relations for a gift plan
1109
+ */
1110
+ const getGiftPlanRelationsGiftcartPlanGiftPlanIdRelationsGet = (giftPlanId, options) => {
1111
+ return axios_1.default.get(`/giftcart/plan/${giftPlanId}/relations`, options);
1112
+ };
1113
+ /**
1061
1114
  * - **Last Version Update**: 1.7.2
1062
- - **SRS Codes**: Not Implemented
1115
+ - **SRS Codes**: A2.2.2N1
1063
1116
  - **Change Log**:
1064
1117
  - **1.7.2**:
1065
1118
  - Change default limit in filters to None
@@ -1081,7 +1134,7 @@ const getFinancialMicroserviceAPI = () => {
1081
1134
  };
1082
1135
  /**
1083
1136
  * - **Last Version Update**: 1.6.1
1084
- - **SRS Codes**: Not Implemented
1137
+ - **SRS Codes**: A2.2.2N2
1085
1138
  - **Change Log**:
1086
1139
  - Adding new endpoint
1087
1140
 
@@ -1100,7 +1153,7 @@ const getFinancialMicroserviceAPI = () => {
1100
1153
  };
1101
1154
  /**
1102
1155
  * - **Last Version Update**: 1.7.2
1103
- - **SRS codes**: 2.3:A2.3N1
1156
+ - **SRS codes**: A2.3N1
1104
1157
  - **Change Log**:
1105
1158
  - **1.7.2**:
1106
1159
  - Change default limit in filters to None
@@ -1123,7 +1176,7 @@ const getFinancialMicroserviceAPI = () => {
1123
1176
  };
1124
1177
  /**
1125
1178
  * - **Last Version Update**: 1.4.4
1126
- - **SRS codes**: 2.3:A2.3N2, 2.3:A2.3E2
1179
+ - **SRS codes**: A2.3N2, A2.3E2
1127
1180
  - **Change Log**:
1128
1181
  - Removing / from end of endpoint
1129
1182
 
@@ -1144,7 +1197,7 @@ const getFinancialMicroserviceAPI = () => {
1144
1197
  };
1145
1198
  /**
1146
1199
  * - **Last Version Update**: 1.8.3
1147
- - **SRS codes**: 2.3:A2.3N12, 2.3:A2.3N13, NOT COMPLETED
1200
+ - **SRS codes**: A2.3N12, A2.3N13
1148
1201
  - **Change Log**:
1149
1202
  - **1.8.3**:
1150
1203
  - Adding new fields about discount (status , from_date, to_date) to the response model
@@ -1170,7 +1223,7 @@ const getFinancialMicroserviceAPI = () => {
1170
1223
  };
1171
1224
  /**
1172
1225
  * - **Last Version Update**: 1.8.3
1173
- - **SRS codes**: 2.3:A2.3N12, 2.3:A2.3N13, NOT COMPLETED
1226
+ - **SRS codes**: A2.3N12, A2.3N13
1174
1227
  - **Change Log**:
1175
1228
  - **1.8.3**:
1176
1229
  - Adding new fields about discount (status , from_date, to_date) to the response model
@@ -1194,7 +1247,7 @@ const getFinancialMicroserviceAPI = () => {
1194
1247
  };
1195
1248
  /**
1196
1249
  * - **Last Version Update**: 1.8.3
1197
- - **SRS codes**: 2.3:A2.3N12, 2.3:A2.3N13, NOT COMPLETED
1250
+ - **SRS codes**: A2.3N12, A2.3N13
1198
1251
  - **Change Log**:
1199
1252
  - **1.8.3**:
1200
1253
  - Adding new fields about discount (status , from_date, to_date) to the response model
@@ -1221,7 +1274,7 @@ const getFinancialMicroserviceAPI = () => {
1221
1274
  };
1222
1275
  /**
1223
1276
  * - **Last Version Update**: 1.5.8
1224
- - **SRS codes**: 2.3:A2.3N12, 2.3:A2.3N13, NOT COMPLETED
1277
+ - **SRS codes**: A2.3N12, A2.3N13
1225
1278
  - **Change Log**:
1226
1279
  - **1.5.8**:
1227
1280
  - Adding new endpoint
@@ -1241,7 +1294,7 @@ const getFinancialMicroserviceAPI = () => {
1241
1294
  };
1242
1295
  /**
1243
1296
  * - **Last Version Update**: 1.8.3
1244
- - **SRS codes**: 2.3:A2.3N12, 2.3:A2.3N13, NOT COMPLETED
1297
+ - **SRS codes**: A2.3N12, A2.3N13
1245
1298
  - **Change Log**:
1246
1299
 
1247
1300
  - **1.8.3**:
@@ -1268,7 +1321,7 @@ const getFinancialMicroserviceAPI = () => {
1268
1321
  };
1269
1322
  /**
1270
1323
  * - **Last Version Update**: 1.8.3
1271
- - **SRS codes**: 2.3:A2.3N12, 2.3:A2.3N13, NOT COMPLETED
1324
+ - **SRS codes**: A2.3N12, A2.3N13
1272
1325
  - **Change Log**:
1273
1326
 
1274
1327
  - **1.8.3**:
@@ -1293,7 +1346,7 @@ const getFinancialMicroserviceAPI = () => {
1293
1346
  };
1294
1347
  /**
1295
1348
  * - **Last Version Update**: 1.8.3
1296
- - **SRS codes**: 2.3:A2.3N12, 2.3:A2.3N13, NOT COMPLETED
1349
+ - **SRS codes**: A2.3N12, A2.3N13
1297
1350
  - **Change Log**:
1298
1351
 
1299
1352
  - **1.8.3**:
@@ -1340,7 +1393,7 @@ const getFinancialMicroserviceAPI = () => {
1340
1393
  };
1341
1394
  /**
1342
1395
  * - **Last Version Update**: 1.2.2
1343
- - **SRS codes**: 2.3:A2.3N3
1396
+ - **SRS codes**: A2.3N3
1344
1397
  - **Change Log**:
1345
1398
  - Changing response body example for 200 status
1346
1399
  - Changing message to fixed message for 200 status
@@ -1361,26 +1414,44 @@ const getFinancialMicroserviceAPI = () => {
1361
1414
  return axios_1.default.put(`/discount/${discountId}`, discountUpdate, options);
1362
1415
  };
1363
1416
  /**
1364
- * - **Last Version Update**: 1.2.2
1365
- - **SRS codes**: 2.3:A2.3N4
1417
+ * - **Last Version Update**: 1.8.5
1418
+ - **SRS codes**: A2.3N4
1366
1419
  - **Change Log**:
1367
- - Changing response body example for 200 status
1368
- - Changing message to fixed message for 200 status
1420
+ - Split relation check into dedicated endpoint
1369
1421
 
1370
- - **Description**: Deletes a discount by its ID.
1422
+ - **Description**: Deletes a discount by its ID. Use the relations endpoint to check dependencies before deleting.
1371
1423
  - **Security**: Requires authentication using an API key.
1372
1424
  - **Path Parameter**:
1373
1425
  - **discount_id**: The ID of the discount to delete.
1374
1426
  - **Response**:
1375
- - **200**: Returns a `DeleteResponseList` containing a list of deleted relations, indicating the type of relation and corresponding IDs. The `is_deleted` flag is set to `True`.
1427
+ - **200**: Returns deletion result.
1376
1428
  - **401**: Unauthorized access.
1377
1429
  - **404**: Discount not found.
1378
- * @summary Deletes a discount
1430
+ * @summary Deletes a discount by its ID
1379
1431
  */
1380
1432
  const deleteDiscountDiscountDiscountIdDelete = (discountId, options) => {
1381
1433
  return axios_1.default.delete(`/discount/${discountId}`, options);
1382
1434
  };
1383
1435
  /**
1436
+ * - **Last Version Update**: 1.8.5
1437
+ - **SRS codes**: A2.3N4
1438
+ - **Change Log**:
1439
+ - Added endpoint to fetch discount relations before deletion
1440
+
1441
+ - **Description**: Retrieves relations for a discount without deleting it.
1442
+ - **Security**: Requires authentication using an API key.
1443
+ - **Path Parameter**:
1444
+ - **discount_id**: The ID of the discount to check relations for.
1445
+ - **Response**:
1446
+ - **200**: Returns related records and a flag indicating if the discount can be safely deleted.
1447
+ - **401**: Unauthorized access.
1448
+ - **404**: Discount not found.
1449
+ * @summary Retrieves relations for a discount
1450
+ */
1451
+ const getDiscountRelationsDiscountDiscountIdRelationsGet = (discountId, options) => {
1452
+ return axios_1.default.get(`/discount/${discountId}/relations`, options);
1453
+ };
1454
+ /**
1384
1455
  * - **Last Version Update**: 1.7.2
1385
1456
  - **SRS codes**: 1-3-2:A2.3.1N1,1-3-2:A2.3.1N4
1386
1457
  - **Change Log**:
@@ -1628,26 +1699,44 @@ const getFinancialMicroserviceAPI = () => {
1628
1699
  return axios_1.default.get(`/voucher/${voucherId}`, options);
1629
1700
  };
1630
1701
  /**
1631
- * - **Last Version Update**: 1.2.2
1632
- - **SRS Codes**: 2.3:A2.3N7
1702
+ * - **Last Version Update**: 1.8.5
1703
+ - **SRS Codes**: 2.2:A2.2N8, 2.2:A2.2E7
1633
1704
  - **Change Log**:
1634
- - Changing response body example for 200 status
1635
- - Changing message to fixed message for 200 status
1705
+ - Split relation check into dedicated endpoint
1636
1706
 
1637
- - **Description**: Deletes a voucher by its ID.
1707
+ - **Description**: Deletes a voucher by its ID. Use the relations endpoint to check dependencies before deleting.
1638
1708
  - **Security**: Requires authentication using an API key.
1639
1709
  - **Path Parameter**:
1640
1710
  - **voucher_id**: The ID of the voucher to delete.
1641
1711
  - **Response**:
1642
- - **200**: Returns a `DeleteResponseList` containing a list of deleted relations, indicating the type of relation and corresponding IDs. The `is_deleted` flag is set to `True`.
1712
+ - **200**: Returns deletion result.
1643
1713
  - **401**: Unauthorized access.
1644
- - **404**: Voucher not found.
1645
- * @summary Deletes a voucher
1714
+ - **404**: Voucher not found
1715
+ * @summary Deletes a voucher by its ID
1646
1716
  */
1647
1717
  const deleteVoucherVoucherVoucherIdDelete = (voucherId, options) => {
1648
1718
  return axios_1.default.delete(`/voucher/${voucherId}`, options);
1649
1719
  };
1650
1720
  /**
1721
+ * - **Last Version Update**: 1.8.5
1722
+ - **SRS Codes**: 2.2:A2.2N8
1723
+ - **Change Log**:
1724
+ - Added endpoint to fetch voucher relations before deletion
1725
+
1726
+ - **Description**: Retrieves relations for a voucher without deleting it.
1727
+ - **Security**: Requires authentication using an API key.
1728
+ - **Path Parameter**:
1729
+ - **voucher_id**: The ID of the voucher to check relations for.
1730
+ - **Response**:
1731
+ - **200**: Returns related records and a flag indicating if the voucher can be safely deleted.
1732
+ - **401**: Unauthorized access.
1733
+ - **404**: Voucher not found.
1734
+ * @summary Retrieves relations for a voucher
1735
+ */
1736
+ const getVoucherRelationsVoucherVoucherIdRelationsGet = (voucherId, options) => {
1737
+ return axios_1.default.get(`/voucher/${voucherId}/relations`, options);
1738
+ };
1739
+ /**
1651
1740
  * - **Last Version Update**: 1.6.3
1652
1741
  - **SRS codes**: 2.3:A2.3N9, 2.3:A2.3N11
1653
1742
  - **Change Log**:
@@ -1724,7 +1813,7 @@ const getFinancialMicroserviceAPI = () => {
1724
1813
  };
1725
1814
  /**
1726
1815
  * - **Last Version Update**: 1.7.7
1727
- - **SRS Codes**: 2.1.3:A2.1.3N1
1816
+ - **SRS Codes**: A2.1.3N1, A2.1.3N3, A2.1.3N4, A2.1.3N5
1728
1817
  - **Change Log**:
1729
1818
  - **1.7.7**:
1730
1819
  - Transfer user id from filters to path parameter
@@ -1755,7 +1844,7 @@ const getFinancialMicroserviceAPI = () => {
1755
1844
  };
1756
1845
  /**
1757
1846
  * - **Last Version Update**: 1.7.6
1758
- - **SRS Codes**: SRS:2.1.3:A2.3N2, 2.1.3:A2.1.3N1
1847
+ - **SRS Codes**: A2.1.3N2, A2.1.3E1
1759
1848
  - **Change Log**:
1760
1849
  - **1.7.6**:
1761
1850
  - change request body and examplse
@@ -1793,7 +1882,7 @@ const getFinancialMicroserviceAPI = () => {
1793
1882
  };
1794
1883
  /**
1795
1884
  * - **Last Version Update**: 1.7.4
1796
- - **SRS codes**: 2.1.4:A2.1.4N2
1885
+ - **SRS codes**: A2.1.4N5, A2.1.4N6
1797
1886
  - **Change Log**: **SRS should be updated**
1798
1887
  - **1.7.4**:
1799
1888
  - Change redund date filter to refund_from_date and refund_to_date
@@ -1810,7 +1899,6 @@ const getFinancialMicroserviceAPI = () => {
1810
1899
  - 200: Returns details of all refunds along with a success message.
1811
1900
  - 401: Unauthorized access.
1812
1901
  - 404: Refunds not found.
1813
- This endpoint is beta version, it will be updated if it confirmed.
1814
1902
  * @summary Retrieves all refunds
1815
1903
  */
1816
1904
  const getRefundsRefundGet = (params, options) => {
@@ -1818,7 +1906,7 @@ const getFinancialMicroserviceAPI = () => {
1818
1906
  };
1819
1907
  /**
1820
1908
  * - **Last Version Update**: 1.5.1
1821
- - **SRS codes**: A2.1.4N3
1909
+ - **SRS codes**: A2.1.4N3, A2.1.4E1, A2.1.4E2
1822
1910
  - **Change Log**:
1823
1911
  - **1.7.8**:
1824
1912
  - Adding refund_method to refund input => it used just for frontend not implemented in database
@@ -1864,7 +1952,7 @@ const getFinancialMicroserviceAPI = () => {
1864
1952
  };
1865
1953
  /**
1866
1954
  * - **Last Version Update**: 1.7.6
1867
- - **SRS codes**: 2-1-4:A2.1.4N1, 2-1-4:A2.1.4N4, 2-1-4:A2.1.4N2 (Pending),2-1-4:A2.1.4N3 (Pending)
1955
+ - **SRS codes**: A2.1.4N1, A2.1.4N4
1868
1956
  - **Change Log**:
1869
1957
  - **1.7.6**:
1870
1958
  - Add voucher type to response
@@ -1963,9 +2051,11 @@ const getFinancialMicroserviceAPI = () => {
1963
2051
  "advertising": False,
1964
2052
  "group_type": "single",
1965
2053
  "group_max_user": 1,
1966
- "plan_translations": [
1967
- {"language_id": "fa", "label": "Premium Plan","plan_name": "Golden"},
1968
- ],
2054
+ "plan_translation": {
2055
+ "language_id": "fa",
2056
+ "label": "Premium Plan",
2057
+ "plan_name": "Golden"
2058
+ },
1969
2059
  "gateway_types": ["shaparak", "paypal"],
1970
2060
  },
1971
2061
  ],
@@ -2452,6 +2542,7 @@ const getFinancialMicroserviceAPI = () => {
2452
2542
  getPlanTypePlanTypePlanTypeIdGet,
2453
2543
  updatePlanTypePlanTypePlanTypeIdPut,
2454
2544
  deletePlanTypePlanTypePlanTypeIdDelete,
2545
+ getPlanTypeRelationsPlanTypePlanTypeIdRelationsGet,
2455
2546
  getAllPlanTypeStaticTextStaticPlanTypeAllGet,
2456
2547
  createPlanTypeStaticTextsStaticPlanTypePost,
2457
2548
  getPlanTypeStaticTextStaticPlanTypePlanTypeStaticIdGet,
@@ -2464,6 +2555,7 @@ const getFinancialMicroserviceAPI = () => {
2464
2555
  getPlanPlanPlanIdGet,
2465
2556
  updatePlanPlanPlanIdPut,
2466
2557
  deletePlanPlanPlanIdDelete,
2558
+ getPlanRelationsPlanPlanIdRelationsGet,
2467
2559
  getAllPlanStaticTextStaticPlanAllGet,
2468
2560
  createPlanStaticTextStaticPlanPost,
2469
2561
  getPlanStaticTextStaticPlanPlanStaticIdGet,
@@ -2494,6 +2586,7 @@ const getFinancialMicroserviceAPI = () => {
2494
2586
  getGiftPlanGiftcartPlanGiftPlanIdGet,
2495
2587
  updateGiftPlanGiftcartPlanGiftPlanIdPut,
2496
2588
  deleteGiftPlanGiftcartPlanGiftPlanIdDelete,
2589
+ getGiftPlanRelationsGiftcartPlanGiftPlanIdRelationsGet,
2497
2590
  getGiftCodesGiftcartCodeGet,
2498
2591
  createGiftCodeGiftcartCodePost,
2499
2592
  getDiscountsDiscountGet,
@@ -2508,6 +2601,7 @@ const getFinancialMicroserviceAPI = () => {
2508
2601
  getDiscountDiscountDiscountIdGet,
2509
2602
  updateDiscountDiscountDiscountIdPut,
2510
2603
  deleteDiscountDiscountDiscountIdDelete,
2604
+ getDiscountRelationsDiscountDiscountIdRelationsGet,
2511
2605
  getOffersOfferGet,
2512
2606
  createOfferOfferPost,
2513
2607
  uploadOfferImageOfferUploadPost,
@@ -2520,6 +2614,7 @@ const getFinancialMicroserviceAPI = () => {
2520
2614
  getSellingVouchersReportVoucherSellingReportGet,
2521
2615
  getVoucherVoucherVoucherIdGet,
2522
2616
  deleteVoucherVoucherVoucherIdDelete,
2617
+ getVoucherRelationsVoucherVoucherIdRelationsGet,
2523
2618
  getAutoVouchersAutoVoucherGet,
2524
2619
  createAutoVoucherAutoVoucherPost,
2525
2620
  readAutoVoucherTaskAutoVoucherTaskAutoVoucherCodeGet,