@fenixalliance/abs-api-client 1.0.2 → 2.0.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.
Files changed (544) hide show
  1. package/FenixAlliance.ABP.SDK.TypeScript.xml +8 -0
  2. package/LICENSE +21 -21
  3. package/LICENSE.md +35 -35
  4. package/README.md +299 -299
  5. package/THIRD_PARTY_NOTICES.md +129 -129
  6. package/app/index.ts +4 -4
  7. package/clients/cartService/core/ApiError.ts +2 -2
  8. package/clients/cartService/core/ApiRequestOptions.ts +2 -2
  9. package/clients/cartService/core/ApiResult.ts +2 -2
  10. package/clients/cartService/core/CancelablePromise.ts +5 -5
  11. package/clients/cartService/core/OpenAPI.ts +2 -2
  12. package/clients/cartService/core/request.ts +3 -3
  13. package/clients/cartService/index.ts +6 -1
  14. package/clients/cartService/models/AddProductToCompareRequest.ts +10 -10
  15. package/clients/cartService/models/BooleanEnvelope.ts +13 -13
  16. package/clients/cartService/models/CartDto.ts +18 -18
  17. package/clients/cartService/models/CartDtoEnvelope.ts +14 -14
  18. package/clients/cartService/models/CartUpdateRequest.ts +9 -9
  19. package/clients/cartService/models/CountryDto.ts +14 -0
  20. package/clients/{holderService/models/OrderDtoListEnvelope.ts → cartService/models/CountryDtoEnvelope.ts} +14 -14
  21. package/clients/cartService/models/CountrySwitchRequest.ts +9 -9
  22. package/clients/cartService/models/CurrencyDto.ts +13 -0
  23. package/clients/{holderService/models/InvoiceDtoListEnvelope.ts → cartService/models/CurrencyDtoEnvelope.ts} +14 -14
  24. package/clients/cartService/models/CurrencySwitchRequest.ts +9 -9
  25. package/clients/cartService/models/EmptyEnvelope.ts +11 -11
  26. package/clients/cartService/models/ErrorEnvelope.ts +12 -12
  27. package/clients/cartService/models/ItemCartRecordCreateDto.ts +12 -12
  28. package/clients/cartService/models/ItemCartRecordDto.ts +101 -100
  29. package/clients/cartService/models/ItemCartRecordDtoEnvelope.ts +14 -14
  30. package/clients/cartService/models/ItemCartRecordDtoListEnvelope.ts +14 -14
  31. package/clients/cartService/models/ItemCartRecordUpdateDto.ts +10 -10
  32. package/clients/cartService/models/ItemToCompareCartRecordDto.ts +11 -11
  33. package/clients/cartService/models/ItemToCompareCartRecordDtoEnvelope.ts +14 -14
  34. package/clients/cartService/models/ItemToCompareCartRecordDtoListEnvelope.ts +14 -14
  35. package/clients/cartService/models/NewWishListRequest.ts +11 -11
  36. package/clients/cartService/models/ProductToWishListRequest.ts +9 -9
  37. package/clients/cartService/models/WishListDto.ts +13 -13
  38. package/clients/{holderService/models/PaymentDtoListEnvelope.ts → cartService/models/WishListDtoEnvelope.ts} +14 -14
  39. package/clients/cartService/models/WishListItemRecordDto.ts +11 -11
  40. package/clients/cartService/models/WishListUpdateDto.ts +10 -10
  41. package/clients/cartService/services/CartsService.ts +902 -149
  42. package/clients/cartService/services/CompareService.ts +90 -90
  43. package/clients/cartService/services/RecordsService.ts +259 -209
  44. package/clients/cartService/services/WishListsService.ts +197 -145
  45. package/clients/catalogService/core/ApiError.ts +2 -2
  46. package/clients/catalogService/core/ApiRequestOptions.ts +2 -2
  47. package/clients/catalogService/core/ApiResult.ts +2 -2
  48. package/clients/catalogService/core/CancelablePromise.ts +5 -5
  49. package/clients/catalogService/core/OpenAPI.ts +2 -2
  50. package/clients/catalogService/core/request.ts +3 -3
  51. package/clients/catalogService/index.ts +1 -1
  52. package/clients/catalogService/models/EmptyEnvelope.ts +11 -11
  53. package/clients/catalogService/models/ErrorEnvelope.ts +12 -12
  54. package/clients/catalogService/models/ItemAttachmentCreateDto.ts +21 -19
  55. package/clients/catalogService/models/ItemAttachmentDto.ts +30 -28
  56. package/clients/catalogService/models/ItemAttachmentDtoEnvelope.ts +14 -14
  57. package/clients/catalogService/models/ItemAttachmentDtoListEnvelope.ts +14 -14
  58. package/clients/catalogService/models/ItemAttachmentUpdateDto.ts +19 -16
  59. package/clients/catalogService/models/ItemAttributeCreateDto.ts +12 -12
  60. package/clients/catalogService/models/ItemAttributeDto.ts +12 -12
  61. package/clients/catalogService/models/ItemAttributeDtoEnvelope.ts +14 -14
  62. package/clients/catalogService/models/ItemAttributeDtoListEnvelope.ts +14 -14
  63. package/clients/catalogService/models/ItemAttributeOptionDto.ts +12 -12
  64. package/clients/catalogService/models/ItemAttributeOptionDtoEnvelope.ts +14 -14
  65. package/clients/catalogService/models/ItemAttributeOptionDtoListEnvelope.ts +14 -14
  66. package/clients/catalogService/models/ItemAttributeUpdateDto.ts +9 -9
  67. package/clients/catalogService/models/ItemBrandCreateDto.ts +17 -17
  68. package/clients/catalogService/models/ItemBrandDto.ts +17 -17
  69. package/clients/catalogService/models/ItemBrandDtoEnvelope.ts +14 -14
  70. package/clients/catalogService/models/ItemBrandDtoListEnvelope.ts +14 -14
  71. package/clients/catalogService/models/ItemBrandUpdateDto.ts +13 -13
  72. package/clients/catalogService/models/ItemCategoryCreateDto.ts +15 -15
  73. package/clients/catalogService/models/ItemCategoryDto.ts +21 -21
  74. package/clients/catalogService/models/ItemCategoryDtoEnvelope.ts +14 -14
  75. package/clients/catalogService/models/ItemCategoryDtoListEnvelope.ts +14 -14
  76. package/clients/catalogService/models/ItemCategoryUpdateDto.ts +16 -16
  77. package/clients/catalogService/models/ItemGoogleCategoryDto.ts +21 -21
  78. package/clients/catalogService/models/ItemGoogleCategoryDtoEnvelope.ts +14 -14
  79. package/clients/catalogService/models/ItemGoogleCategoryDtoListEnvelope.ts +14 -14
  80. package/clients/catalogService/models/ItemImageCreateDto.ts +28 -28
  81. package/clients/catalogService/models/ItemImageDto.ts +28 -28
  82. package/clients/catalogService/models/ItemImageDtoEnvelope.ts +14 -14
  83. package/clients/catalogService/models/ItemImageDtoListEnvelope.ts +14 -14
  84. package/clients/catalogService/models/ItemImageUpdateDto.ts +22 -22
  85. package/clients/catalogService/models/ItemQuestionCreateDto.ts +15 -15
  86. package/clients/catalogService/models/ItemQuestionDto.ts +15 -15
  87. package/clients/catalogService/models/ItemQuestionDtoEnvelope.ts +14 -14
  88. package/clients/catalogService/models/ItemQuestionDtoListEnvelope.ts +14 -14
  89. package/clients/catalogService/models/ItemQuestionRecordCreateDto.ts +14 -14
  90. package/clients/catalogService/models/ItemQuestionUpdateDto.ts +10 -10
  91. package/clients/catalogService/models/ItemRefundPolicyDto.ts +34 -34
  92. package/clients/catalogService/models/ItemRefundPolicyDtoEnvelope.ts +14 -14
  93. package/clients/catalogService/models/ItemRefundPolicyDtoListEnvelope.ts +14 -14
  94. package/clients/catalogService/models/ItemReturnPolicyDto.ts +34 -34
  95. package/clients/catalogService/models/ItemReturnPolicyDtoEnvelope.ts +14 -14
  96. package/clients/catalogService/models/ItemReturnPolicyDtoListEnvelope.ts +14 -14
  97. package/clients/catalogService/models/ItemReviewCreateDto.ts +13 -13
  98. package/clients/catalogService/models/ItemReviewDto.ts +13 -13
  99. package/clients/catalogService/models/ItemReviewDtoEnvelope.ts +14 -14
  100. package/clients/catalogService/models/ItemReviewDtoListEnvelope.ts +14 -14
  101. package/clients/catalogService/models/ItemReviewRecordCreateDto.ts +12 -12
  102. package/clients/catalogService/models/ItemReviewUpdateDto.ts +9 -9
  103. package/clients/catalogService/models/ItemShippingPolicyDto.ts +35 -35
  104. package/clients/catalogService/models/ItemShippingPolicyDtoEnvelope.ts +14 -14
  105. package/clients/catalogService/models/ItemShippingPolicyDtoListEnvelope.ts +14 -14
  106. package/clients/catalogService/models/ItemTagCreateDto.ts +12 -12
  107. package/clients/catalogService/models/ItemTagDto.ts +12 -12
  108. package/clients/catalogService/models/ItemTagDtoEnvelope.ts +14 -14
  109. package/clients/catalogService/models/ItemTagDtoListEnvelope.ts +14 -14
  110. package/clients/catalogService/models/ItemTagUpdateDto.ts +9 -9
  111. package/clients/catalogService/models/ItemTaxPolicyDto.ts +37 -37
  112. package/clients/catalogService/models/ItemTaxPolicyDtoEnvelope.ts +14 -14
  113. package/clients/catalogService/models/ItemTaxPolicyDtoListEnvelope.ts +14 -14
  114. package/clients/catalogService/models/ItemTypeCreateDto.ts +17 -17
  115. package/clients/catalogService/models/ItemTypeDto.ts +17 -17
  116. package/clients/catalogService/models/ItemTypeDtoEnvelope.ts +14 -14
  117. package/clients/catalogService/models/ItemTypeDtoListEnvelope.ts +14 -14
  118. package/clients/catalogService/models/ItemTypeUpdateDto.ts +12 -12
  119. package/clients/catalogService/models/ItemWarrantyPolicyDto.ts +33 -33
  120. package/clients/catalogService/models/ItemWarrantyPolicyDtoEnvelope.ts +14 -14
  121. package/clients/catalogService/models/ItemWarrantyPolicyDtoListEnvelope.ts +14 -14
  122. package/clients/catalogService/models/PricingRuleCreateDto.ts +32 -32
  123. package/clients/catalogService/models/PricingRuleDto.ts +31 -31
  124. package/clients/catalogService/models/PricingRuleDtoEnvelope.ts +14 -14
  125. package/clients/catalogService/models/PricingRuleDtoListEnvelope.ts +14 -14
  126. package/clients/catalogService/models/PricingRuleUpdateDto.ts +27 -27
  127. package/clients/catalogService/models/StockItemCreateDto.ts +108 -108
  128. package/clients/catalogService/models/StockItemDto.ts +146 -146
  129. package/clients/catalogService/models/StockItemDtoEnvelope.ts +14 -14
  130. package/clients/catalogService/models/StockItemDtoListEnvelope.ts +14 -14
  131. package/clients/catalogService/models/StockItemUpdateDto.ts +106 -106
  132. package/clients/catalogService/services/ItemAttachmentsService.ts +138 -138
  133. package/clients/catalogService/services/ItemAttributesService.ts +137 -137
  134. package/clients/catalogService/services/ItemBrandsService.ts +137 -137
  135. package/clients/catalogService/services/ItemCategoriesService.ts +137 -137
  136. package/clients/catalogService/services/ItemImagesService.ts +137 -137
  137. package/clients/catalogService/services/ItemQuestionsService.ts +137 -137
  138. package/clients/catalogService/services/ItemReviewsService.ts +137 -137
  139. package/clients/catalogService/services/ItemTagsService.ts +137 -137
  140. package/clients/catalogService/services/ItemTypesService.ts +137 -137
  141. package/clients/catalogService/services/PoliciesService.ts +117 -117
  142. package/clients/catalogService/services/PricingRulesService.ts +135 -135
  143. package/clients/catalogService/services/ProductsService.ts +1711 -1706
  144. package/clients/crmService/core/ApiError.ts +2 -2
  145. package/clients/crmService/core/ApiRequestOptions.ts +2 -2
  146. package/clients/crmService/core/ApiResult.ts +2 -2
  147. package/clients/crmService/core/CancelablePromise.ts +5 -5
  148. package/clients/crmService/core/OpenAPI.ts +2 -2
  149. package/clients/crmService/core/request.ts +3 -3
  150. package/clients/crmService/index.ts +4 -1
  151. package/clients/crmService/models/CartDto.ts +18 -18
  152. package/clients/crmService/models/CartDtoEnvelope.ts +14 -14
  153. package/clients/crmService/models/ContactCreateDto.ts +35 -0
  154. package/clients/crmService/models/ContactDto.ts +60 -57
  155. package/clients/crmService/models/ContactDtoEnvelope.ts +14 -14
  156. package/clients/crmService/models/ContactDtoListEnvelope.ts +14 -14
  157. package/clients/crmService/models/ContactUpdateDto.ts +39 -0
  158. package/clients/crmService/models/EmptyEnvelope.ts +11 -11
  159. package/clients/crmService/models/ErrorEnvelope.ts +12 -12
  160. package/clients/crmService/models/Operation.ts +23 -0
  161. package/clients/crmService/models/SocialProfileDto.ts +39 -39
  162. package/clients/crmService/models/SocialProfileDtoEnvelope.ts +14 -14
  163. package/clients/crmService/models/WalletDto.ts +22 -22
  164. package/clients/crmService/models/WalletDtoEnvelope.ts +14 -14
  165. package/clients/crmService/services/ContactsService.ts +562 -286
  166. package/clients/crmService/services/SyncService.ts +97 -101
  167. package/clients/forexService/core/ApiError.ts +2 -2
  168. package/clients/forexService/core/ApiRequestOptions.ts +2 -2
  169. package/clients/forexService/core/ApiResult.ts +2 -2
  170. package/clients/forexService/core/CancelablePromise.ts +5 -5
  171. package/clients/forexService/core/OpenAPI.ts +2 -2
  172. package/clients/forexService/core/request.ts +3 -3
  173. package/clients/forexService/index.ts +4 -1
  174. package/clients/forexService/models/Currency.ts +9 -9
  175. package/clients/forexService/models/ErrorEnvelope.ts +12 -12
  176. package/clients/forexService/models/ExchangeRate.ts +11 -0
  177. package/clients/forexService/models/ExchangeRateEnvelope.ts +14 -0
  178. package/clients/forexService/models/ForexRatesDto.ts +13 -13
  179. package/clients/forexService/models/ForexRatesDtoEnvelope.ts +14 -14
  180. package/clients/forexService/models/Money.ts +10 -10
  181. package/clients/forexService/models/MoneyEnvelope.ts +14 -14
  182. package/clients/forexService/services/ExchangeService.ts +65 -67
  183. package/clients/forexService/services/ExchangeVService.ts +65 -0
  184. package/clients/forexService/services/RatesService.ts +90 -46
  185. package/clients/holderService/core/ApiError.ts +2 -2
  186. package/clients/holderService/core/ApiRequestOptions.ts +2 -2
  187. package/clients/holderService/core/ApiResult.ts +2 -2
  188. package/clients/holderService/core/CancelablePromise.ts +5 -5
  189. package/clients/holderService/core/OpenAPI.ts +2 -2
  190. package/clients/holderService/core/request.ts +3 -3
  191. package/clients/holderService/index.ts +20 -9
  192. package/clients/holderService/models/AddressDto.ts +31 -31
  193. package/clients/holderService/models/AddressDtoListEnvelope.ts +14 -14
  194. package/clients/holderService/models/CartDto.ts +18 -18
  195. package/clients/holderService/models/CartDtoEnvelope.ts +14 -14
  196. package/clients/holderService/models/EmptyEnvelope.ts +11 -0
  197. package/clients/holderService/models/EmptyEnvelopeEnvelope.ts +14 -0
  198. package/clients/holderService/models/EnrollmentId.ts +5 -0
  199. package/clients/holderService/models/ErrorEnvelope.ts +12 -12
  200. package/clients/holderService/models/ExtendedPlatformUserDto.ts +78 -0
  201. package/clients/holderService/models/ExtendedPlatformUserDtoEnvelope.ts +14 -0
  202. package/clients/holderService/models/ExtendedTenantDto.ts +51 -0
  203. package/clients/holderService/models/ExtendedTenantDtoListEnvelope.ts +14 -0
  204. package/clients/holderService/models/ExtendedTenantEnrolmentDto.ts +16 -0
  205. package/clients/holderService/models/ExtendedTenantEnrolmentDtoListEnvelope.ts +14 -0
  206. package/clients/holderService/models/FollowRecordDto.ts +12 -12
  207. package/clients/holderService/models/NotificationDto.ts +16 -16
  208. package/clients/holderService/models/NotificationDtoListEnvelope.ts +14 -14
  209. package/clients/holderService/models/Operation.ts +23 -0
  210. package/clients/holderService/models/PlatformUserDto.ts +70 -73
  211. package/clients/holderService/models/PlatformUserDtoEnvelope.ts +14 -14
  212. package/clients/holderService/models/PlatformUserSettingsDto.ts +21 -0
  213. package/clients/holderService/models/PlatformUserSettingsDtoEnvelope.ts +14 -0
  214. package/clients/holderService/models/PlatformUserSettingsUpdateDto.ts +19 -0
  215. package/clients/holderService/models/PlatformUserUpdateDto.ts +43 -0
  216. package/clients/holderService/models/SocialProfileDto.ts +39 -39
  217. package/clients/holderService/models/SocialProfileDtoEnvelope.ts +14 -14
  218. package/clients/holderService/models/TenantDto.ts +45 -54
  219. package/clients/holderService/models/TenantDtoListEnvelope.ts +14 -14
  220. package/clients/holderService/models/{TenantEnrollmentDto.ts → TenantEnrolmentDto.ts} +14 -14
  221. package/clients/holderService/models/TenantEnrolmentDtoEnvelope.ts +14 -0
  222. package/clients/holderService/models/TenantEnrolmentDtoListEnvelope.ts +14 -0
  223. package/clients/holderService/models/TenantInvitationDto.ts +16 -0
  224. package/clients/holderService/models/TenantInvitationDtoListEnvelope.ts +14 -0
  225. package/clients/holderService/models/WalletDto.ts +22 -22
  226. package/clients/holderService/models/WalletDtoEnvelope.ts +14 -14
  227. package/clients/holderService/services/HolderService.ts +356 -236
  228. package/clients/identityService/core/ApiError.ts +2 -2
  229. package/clients/identityService/core/ApiRequestOptions.ts +2 -2
  230. package/clients/identityService/core/ApiResult.ts +2 -2
  231. package/clients/identityService/core/CancelablePromise.ts +5 -5
  232. package/clients/identityService/core/OpenAPI.ts +2 -2
  233. package/clients/identityService/core/request.ts +3 -3
  234. package/clients/identityService/index.ts +2 -2
  235. package/clients/identityService/models/AccountHolderCreateDto.ts +40 -35
  236. package/clients/identityService/models/AccountHolderCreateDtoEnvelope.ts +14 -14
  237. package/clients/identityService/models/Actor.ts +12 -12
  238. package/clients/identityService/models/ApiResponse.ts +21 -21
  239. package/clients/identityService/models/ApiResponseEnvelope.ts +14 -14
  240. package/clients/identityService/models/ClientApplication.ts +16 -16
  241. package/clients/identityService/models/Error.ts +10 -10
  242. package/clients/identityService/models/ErrorEnvelope.ts +12 -12
  243. package/clients/identityService/models/IPLookupDto.ts +10 -10
  244. package/clients/identityService/models/JsonWebKey.ts +13 -13
  245. package/clients/identityService/models/JsonWebKeySet.ts +9 -9
  246. package/clients/identityService/models/JsonWebKeySetEnvelope.ts +14 -14
  247. package/clients/identityService/models/JsonWebToken.ts +15 -15
  248. package/clients/identityService/models/JsonWebTokenEnvelope.ts +14 -14
  249. package/clients/identityService/models/JsonWebTokenHeader.ts +11 -11
  250. package/clients/identityService/models/JsonWebTokenPayload.ts +17 -17
  251. package/clients/identityService/models/OAuthTokenRequest.ts +12 -12
  252. package/clients/identityService/models/OpenIdConfiguration.ts +19 -19
  253. package/clients/identityService/models/OpenIdConfigurationEnvelope.ts +14 -14
  254. package/clients/identityService/models/PlatformUserDto.ts +70 -73
  255. package/clients/identityService/models/ResponsePagination.ts +13 -13
  256. package/clients/identityService/models/ResponseStatus.ts +12 -12
  257. package/clients/identityService/models/SigninModel.ts +9 -9
  258. package/clients/identityService/models/StringListEnvelope.ts +13 -13
  259. package/clients/identityService/models/TenantDto.ts +45 -54
  260. package/clients/identityService/services/ApplicationsService.ts +107 -107
  261. package/clients/identityService/services/CheckerService.ts +19 -20
  262. package/clients/identityService/services/OAuthService.ts +147 -149
  263. package/clients/identityService/services/ResourceService.ts +19 -19
  264. package/clients/identityService/services/UserInfoService.ts +29 -29
  265. package/clients/inventoryService/core/ApiError.ts +2 -2
  266. package/clients/inventoryService/core/ApiRequestOptions.ts +2 -2
  267. package/clients/inventoryService/core/ApiResult.ts +2 -2
  268. package/clients/inventoryService/core/CancelablePromise.ts +5 -5
  269. package/clients/inventoryService/core/OpenAPI.ts +2 -2
  270. package/clients/inventoryService/core/request.ts +3 -3
  271. package/clients/inventoryService/index.ts +1 -1
  272. package/clients/inventoryService/services/InventoryService.ts +25 -25
  273. package/clients/invoicingService/core/ApiError.ts +2 -2
  274. package/clients/invoicingService/core/ApiRequestOptions.ts +2 -2
  275. package/clients/invoicingService/core/ApiResult.ts +2 -2
  276. package/clients/invoicingService/core/CancelablePromise.ts +5 -5
  277. package/clients/invoicingService/core/OpenAPI.ts +2 -2
  278. package/clients/invoicingService/core/request.ts +3 -3
  279. package/clients/invoicingService/index.ts +11 -2
  280. package/clients/invoicingService/models/ContactDto.ts +60 -0
  281. package/clients/invoicingService/models/Currency.ts +9 -0
  282. package/clients/invoicingService/models/EmptyEnvelope.ts +11 -11
  283. package/clients/invoicingService/models/ErrorEnvelope.ts +12 -12
  284. package/clients/invoicingService/models/ExtendedInvoiceDto.ts +44 -0
  285. package/clients/invoicingService/models/ExtendedInvoiceDtoListEnvelope.ts +14 -0
  286. package/clients/invoicingService/models/InvoiceCreateDto.ts +11 -11
  287. package/clients/invoicingService/models/InvoiceDto.ts +35 -13
  288. package/clients/invoicingService/models/InvoiceDtoEnvelope.ts +14 -14
  289. package/clients/invoicingService/models/InvoiceDtoListEnvelope.ts +14 -14
  290. package/clients/invoicingService/models/InvoiceLineDto.ts +99 -95
  291. package/clients/invoicingService/models/InvoiceLineDtoEnvelope.ts +14 -14
  292. package/clients/invoicingService/models/InvoiceLineDtoListEnvelope.ts +14 -14
  293. package/clients/invoicingService/models/InvoiceUpdateDto.ts +5 -5
  294. package/clients/invoicingService/models/ItemPriceCreateDto.ts +20 -20
  295. package/clients/invoicingService/models/ItemPriceUpdateDto.ts +14 -14
  296. package/clients/invoicingService/models/Money.ts +10 -0
  297. package/clients/invoicingService/models/MoneyEnvelope.ts +14 -0
  298. package/clients/invoicingService/models/PlatformUserDto.ts +70 -0
  299. package/clients/invoicingService/models/TenantDto.ts +45 -0
  300. package/clients/{tenantService/models/TenantEnrollmentDto.ts → invoicingService/models/TenantEnrolmentDto.ts} +14 -14
  301. package/clients/invoicingService/services/InvoicesService.ts +465 -301
  302. package/clients/ordersService/core/ApiError.ts +2 -2
  303. package/clients/ordersService/core/ApiRequestOptions.ts +2 -2
  304. package/clients/ordersService/core/ApiResult.ts +2 -2
  305. package/clients/ordersService/core/CancelablePromise.ts +5 -5
  306. package/clients/ordersService/core/OpenAPI.ts +2 -2
  307. package/clients/ordersService/core/request.ts +3 -3
  308. package/clients/ordersService/index.ts +2 -2
  309. package/clients/ordersService/models/EmptyEnvelope.ts +11 -11
  310. package/clients/ordersService/models/ErrorEnvelope.ts +12 -12
  311. package/clients/ordersService/models/ItemPriceCreateDto.ts +20 -20
  312. package/clients/ordersService/models/ItemPriceUpdateDto.ts +14 -14
  313. package/clients/ordersService/models/OrderCreateDto.ts +16 -16
  314. package/clients/ordersService/models/OrderDto.ts +51 -27
  315. package/clients/ordersService/models/OrderDtoEnvelope.ts +14 -14
  316. package/clients/ordersService/models/OrderDtoListEnvelope.ts +14 -14
  317. package/clients/ordersService/models/OrderLineDto.ts +99 -95
  318. package/clients/ordersService/models/OrderLineDtoEnvelope.ts +14 -14
  319. package/clients/ordersService/models/OrderLineDtoListEnvelope.ts +14 -14
  320. package/clients/ordersService/models/OrderUpdateDto.ts +12 -12
  321. package/clients/ordersService/services/OrdersService.ts +299 -296
  322. package/clients/pricingService/core/ApiError.ts +2 -2
  323. package/clients/pricingService/core/ApiRequestOptions.ts +2 -2
  324. package/clients/pricingService/core/ApiResult.ts +2 -2
  325. package/clients/pricingService/core/CancelablePromise.ts +5 -5
  326. package/clients/pricingService/core/OpenAPI.ts +2 -2
  327. package/clients/pricingService/core/request.ts +3 -3
  328. package/clients/pricingService/index.ts +1 -1
  329. package/clients/pricingService/models/Currency.ts +9 -9
  330. package/clients/pricingService/models/EmptyEnvelope.ts +11 -11
  331. package/clients/pricingService/models/ErrorEnvelope.ts +12 -12
  332. package/clients/pricingService/models/ItemPriceCreateDto.ts +20 -20
  333. package/clients/pricingService/models/ItemPriceDto.ts +20 -20
  334. package/clients/pricingService/models/ItemPriceDtoEnvelope.ts +14 -14
  335. package/clients/pricingService/models/ItemPriceDtoListEnvelope.ts +14 -14
  336. package/clients/pricingService/models/ItemPriceUpdateDto.ts +14 -14
  337. package/clients/pricingService/models/Money.ts +10 -10
  338. package/clients/pricingService/models/MoneyEnvelope.ts +14 -14
  339. package/clients/pricingService/models/PriceListCreateDto.ts +18 -18
  340. package/clients/pricingService/models/PriceListDto.ts +17 -17
  341. package/clients/pricingService/models/PriceListDtoEnvelope.ts +14 -14
  342. package/clients/pricingService/models/PriceListDtoListEnvelope.ts +14 -14
  343. package/clients/pricingService/models/PriceListUpdateDto.ts +14 -14
  344. package/clients/pricingService/services/PriceListsService.ts +280 -280
  345. package/clients/pricingService/services/PricesService.ts +82 -82
  346. package/clients/systemService/core/ApiError.ts +2 -2
  347. package/clients/systemService/core/ApiRequestOptions.ts +2 -2
  348. package/clients/systemService/core/ApiResult.ts +2 -2
  349. package/clients/systemService/core/CancelablePromise.ts +5 -5
  350. package/clients/systemService/core/OpenAPI.ts +2 -2
  351. package/clients/systemService/core/request.ts +3 -3
  352. package/clients/systemService/index.ts +20 -1
  353. package/clients/systemService/models/BooleanEnvelope.ts +13 -0
  354. package/clients/systemService/models/ErrorEnvelope.ts +12 -12
  355. package/clients/systemService/models/GeneralValidationFailure.ts +9 -0
  356. package/clients/{holderService/models/TenantEnrollmentDtoListEnvelope.ts → systemService/models/GeneralValidationFailureListEnvelope.ts} +14 -14
  357. package/clients/systemService/models/ISwaggerContact.ts +10 -0
  358. package/clients/systemService/models/ISwaggerEndpoint.ts +10 -0
  359. package/clients/systemService/models/ISwaggerLicense.ts +9 -0
  360. package/clients/systemService/models/ISwaggerSpec.ts +19 -0
  361. package/clients/systemService/models/LicenseValidationRequest.ts +8 -0
  362. package/clients/systemService/models/Module.ts +43 -0
  363. package/clients/systemService/models/ModuleListEnvelope.ts +14 -0
  364. package/clients/systemService/models/StringListEnvelope.ts +13 -13
  365. package/clients/systemService/models/StudioModule.ts +9 -0
  366. package/clients/systemService/models/StudioModuleListEnvelope.ts +14 -0
  367. package/clients/systemService/models/SuiteLicenseAssignmentDto.ts +16 -0
  368. package/clients/systemService/models/SuiteLicenseAssignmentDtoListEnvelope.ts +14 -0
  369. package/clients/systemService/models/SuiteLicenseDto.ts +15 -0
  370. package/clients/systemService/models/SuiteLicenseDtoEnvelope.ts +14 -0
  371. package/clients/systemService/models/SuiteLicenseDtoListEnvelope.ts +14 -0
  372. package/clients/systemService/services/AntiforgeryService.ts +29 -29
  373. package/clients/systemService/services/LicensingService.ts +190 -0
  374. package/clients/systemService/services/MigrationsService.ts +44 -44
  375. package/clients/systemService/services/ModulesService.ts +51 -0
  376. package/clients/tenantService/core/ApiError.ts +2 -2
  377. package/clients/tenantService/core/ApiRequestOptions.ts +2 -2
  378. package/clients/tenantService/core/ApiResult.ts +2 -2
  379. package/clients/tenantService/core/CancelablePromise.ts +5 -5
  380. package/clients/tenantService/core/OpenAPI.ts +2 -2
  381. package/clients/tenantService/core/request.ts +3 -3
  382. package/clients/tenantService/index.ts +104 -4
  383. package/clients/tenantService/models/BooleanEnvelope.ts +13 -13
  384. package/clients/tenantService/models/CancellationToken.ts +11 -0
  385. package/clients/tenantService/models/CartDto.ts +18 -18
  386. package/clients/tenantService/models/CartDtoEnvelope.ts +14 -14
  387. package/clients/tenantService/models/EmptyEnvelope.ts +11 -11
  388. package/clients/tenantService/models/ErrorEnvelope.ts +12 -12
  389. package/clients/tenantService/models/ExtendedTenantDto.ts +51 -0
  390. package/clients/tenantService/models/ExtendedTenantDtoEnvelope.ts +14 -0
  391. package/clients/tenantService/models/IntPtr.ts +5 -0
  392. package/clients/tenantService/models/NotificationDto.ts +16 -16
  393. package/clients/tenantService/models/NotificationDtoListEnvelope.ts +14 -14
  394. package/clients/tenantService/models/Operation.ts +23 -0
  395. package/clients/tenantService/models/PlatformUserDto.ts +70 -73
  396. package/clients/tenantService/models/PlatformUserDtoListEnvelope.ts +14 -14
  397. package/clients/tenantService/models/SafeWaitHandle.ts +9 -0
  398. package/clients/tenantService/models/SocialProfileDto.ts +39 -39
  399. package/clients/tenantService/models/SocialProfileDtoEnvelope.ts +14 -14
  400. package/clients/tenantService/models/StringListEnvelope.ts +13 -13
  401. package/clients/tenantService/models/SuiteLicenseAssignmentDto.ts +16 -0
  402. package/clients/tenantService/models/SuiteLicenseAssignmentDtoListEnvelope.ts +14 -0
  403. package/clients/tenantService/models/SuiteLicenseDto.ts +15 -0
  404. package/clients/tenantService/models/SuiteLicenseDtoListEnvelope.ts +14 -0
  405. package/clients/tenantService/models/SuiteLicenseFeatureDto.ts +9 -0
  406. package/clients/tenantService/models/SuiteLicenseFeatureDtoListEnvelope.ts +14 -0
  407. package/clients/tenantService/models/TenantCreateDto.ts +25 -25
  408. package/clients/tenantService/models/TenantDepartmentCreateDto.ts +16 -0
  409. package/clients/tenantService/models/TenantDepartmentDto.ts +16 -0
  410. package/clients/tenantService/models/{TenantEnrollmentDtoEnvelope.ts → TenantDepartmentDtoEnvelope.ts} +14 -14
  411. package/clients/tenantService/models/TenantDepartmentDtoIReadOnlyListEnvelope.ts +14 -0
  412. package/clients/tenantService/models/TenantDepartmentUpdateDto.ts +12 -0
  413. package/clients/tenantService/models/TenantDto.ts +45 -54
  414. package/clients/tenantService/models/TenantDtoEnvelope.ts +14 -14
  415. package/clients/tenantService/models/TenantEnrollmentCreateDto.ts +11 -0
  416. package/clients/tenantService/models/TenantEnrollmentUpdateDto.ts +9 -0
  417. package/clients/tenantService/models/TenantEnrolmentDto.ts +14 -0
  418. package/clients/tenantService/models/TenantEnrolmentDtoEnvelope.ts +14 -0
  419. package/clients/tenantService/models/TenantEnrolmentDtoIReadOnlyListEnvelope.ts +14 -0
  420. package/clients/tenantService/models/TenantEnrolmentDtoListEnvelope.ts +14 -0
  421. package/clients/tenantService/models/TenantIndustryCreateDto.ts +12 -0
  422. package/clients/tenantService/models/TenantIndustryDto.ts +12 -0
  423. package/clients/tenantService/models/TenantIndustryDtoEnvelope.ts +14 -0
  424. package/clients/tenantService/models/TenantIndustryUpdateDto.ts +10 -0
  425. package/clients/tenantService/models/TenantInvitationCreateDto.ts +12 -0
  426. package/clients/tenantService/models/TenantInvitationDto.ts +16 -0
  427. package/clients/tenantService/models/TenantInvitationDtoEnvelope.ts +14 -0
  428. package/clients/tenantService/models/TenantInvitationDtoListEnvelope.ts +14 -0
  429. package/clients/tenantService/models/TenantPositionCreateDto.ts +13 -0
  430. package/clients/tenantService/models/TenantPositionDto.ts +13 -0
  431. package/clients/tenantService/models/TenantPositionDtoEnvelope.ts +14 -0
  432. package/clients/tenantService/models/TenantPositionDtoIReadOnlyListEnvelope.ts +14 -0
  433. package/clients/tenantService/models/TenantPositionUpdateDto.ts +9 -0
  434. package/clients/tenantService/models/TenantSegmentCreateDto.ts +12 -0
  435. package/clients/tenantService/models/TenantSegmentDto.ts +12 -0
  436. package/clients/tenantService/models/TenantSegmentDtoEnvelope.ts +14 -0
  437. package/clients/tenantService/models/TenantSegmentDtoIReadOnlyListEnvelope.ts +14 -0
  438. package/clients/tenantService/models/TenantSegmentUpdateDto.ts +10 -0
  439. package/clients/tenantService/models/TenantSizeCreateDto.ts +12 -0
  440. package/clients/tenantService/models/TenantSizeDto.ts +12 -0
  441. package/clients/tenantService/models/TenantSizeDtoEnvelope.ts +14 -0
  442. package/clients/tenantService/models/TenantSizeDtoIReadOnlyListEnvelope.ts +14 -0
  443. package/clients/tenantService/models/TenantSizeUpdateDto.ts +10 -0
  444. package/clients/tenantService/models/TenantTeamContactEnrollmentCreateDto.ts +13 -0
  445. package/clients/tenantService/models/TenantTeamContactEnrollmentDto.ts +13 -0
  446. package/clients/tenantService/models/TenantTeamContactEnrollmentDtoEnvelope.ts +14 -0
  447. package/clients/tenantService/models/TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts +14 -0
  448. package/clients/tenantService/models/TenantTeamContactEnrollmentUpdateDto.ts +11 -0
  449. package/clients/tenantService/models/TenantTeamCreateDto.ts +17 -0
  450. package/clients/tenantService/models/TenantTeamDto.ts +17 -0
  451. package/clients/tenantService/models/TenantTeamDtoEnvelope.ts +14 -0
  452. package/clients/tenantService/models/TenantTeamDtoIReadOnlyCollectionEnvelope.ts +14 -0
  453. package/clients/tenantService/models/TenantTeamEmployeeEnrollmentCreateDto.ts +13 -0
  454. package/clients/tenantService/models/TenantTeamEmployeeEnrollmentDto.ts +13 -0
  455. package/clients/tenantService/models/TenantTeamEmployeeEnrollmentDtoEnvelope.ts +14 -0
  456. package/clients/tenantService/models/TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts +14 -0
  457. package/clients/tenantService/models/TenantTeamEmployeeEnrollmentUpdateDto.ts +11 -0
  458. package/clients/tenantService/models/TenantTeamProjectEnrollmentCreateDto.ts +13 -0
  459. package/clients/tenantService/models/TenantTeamProjectEnrollmentDto.ts +13 -0
  460. package/clients/tenantService/models/TenantTeamProjectEnrollmentDtoEnvelope.ts +14 -0
  461. package/clients/tenantService/models/TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts +14 -0
  462. package/clients/tenantService/models/TenantTeamProjectEnrollmentUpdateDto.ts +11 -0
  463. package/clients/tenantService/models/TenantTeamRecordCreateDto.ts +12 -0
  464. package/clients/tenantService/models/TenantTeamRecordDto.ts +12 -0
  465. package/clients/tenantService/models/TenantTeamRecordDtoEnvelope.ts +14 -0
  466. package/clients/tenantService/models/{TenantEnrollmentDtoListEnvelope.ts → TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts} +14 -14
  467. package/clients/tenantService/models/TenantTeamRecordUpdateDto.ts +10 -0
  468. package/clients/tenantService/models/TenantTeamUpdateDto.ts +17 -0
  469. package/clients/tenantService/models/TenantTerritoryCreateDto.ts +14 -0
  470. package/clients/tenantService/models/TenantTerritoryDto.ts +14 -0
  471. package/clients/tenantService/models/TenantTerritoryDtoEnvelope.ts +14 -0
  472. package/clients/tenantService/models/TenantTerritoryDtoIReadOnlyListEnvelope.ts +14 -0
  473. package/clients/tenantService/models/TenantTerritoryUpdateDto.ts +9 -0
  474. package/clients/tenantService/models/TenantTypeCreateDto.ts +11 -0
  475. package/clients/tenantService/models/TenantTypeDto.ts +11 -0
  476. package/clients/tenantService/models/TenantTypeDtoEnvelope.ts +14 -0
  477. package/clients/tenantService/models/TenantTypeDtoIReadOnlyCollectionEnvelope.ts +14 -0
  478. package/clients/tenantService/models/TenantTypeUpdateDto.ts +9 -0
  479. package/clients/tenantService/models/TenantUnitCreateDto.ts +18 -0
  480. package/clients/tenantService/models/TenantUnitDto.ts +18 -0
  481. package/clients/tenantService/models/TenantUnitDtoEnvelope.ts +14 -0
  482. package/clients/tenantService/models/TenantUnitDtoIReadOnlyListEnvelope.ts +14 -0
  483. package/clients/tenantService/models/TenantUnitUpdateDto.ts +14 -0
  484. package/clients/tenantService/models/TenantUpdateDto.ts +31 -0
  485. package/clients/tenantService/models/WaitHandle.ts +11 -0
  486. package/clients/tenantService/models/WalletDto.ts +22 -22
  487. package/clients/tenantService/models/WalletDtoEnvelope.ts +14 -14
  488. package/clients/tenantService/models/WebPortalDto.ts +19 -12
  489. package/clients/tenantService/models/WebPortalDtoListEnvelope.ts +14 -14
  490. package/clients/tenantService/services/DepartmentsService.ts +168 -0
  491. package/clients/tenantService/services/EmployeeEnrollmentsService.ts +151 -0
  492. package/clients/tenantService/services/EnrollmentsService.ts +165 -0
  493. package/clients/tenantService/services/IndustriesService.ts +160 -0
  494. package/clients/tenantService/services/InvitationsService.ts +125 -0
  495. package/clients/tenantService/services/PositionsService.ts +162 -0
  496. package/clients/tenantService/services/SegmentsService.ts +161 -0
  497. package/clients/tenantService/services/SizesService.ts +168 -0
  498. package/clients/tenantService/services/TeamContactEnrollmentsService.ts +161 -0
  499. package/clients/tenantService/services/TeamProjectEnrollmentService.ts +151 -0
  500. package/clients/tenantService/services/TeamRecordsService.ts +162 -0
  501. package/clients/tenantService/services/TeamsService.ts +162 -0
  502. package/clients/tenantService/services/TenantsService.ts +805 -479
  503. package/clients/tenantService/services/TerritoriesService.ts +162 -0
  504. package/clients/tenantService/services/TypesService.ts +146 -0
  505. package/clients/tenantService/services/UnitsService.ts +160 -0
  506. package/clients/walletsService/core/ApiError.ts +2 -2
  507. package/clients/walletsService/core/ApiRequestOptions.ts +2 -2
  508. package/clients/walletsService/core/ApiResult.ts +2 -2
  509. package/clients/walletsService/core/CancelablePromise.ts +5 -5
  510. package/clients/walletsService/core/OpenAPI.ts +2 -2
  511. package/clients/walletsService/core/request.ts +3 -3
  512. package/clients/walletsService/index.ts +3 -3
  513. package/clients/walletsService/models/ErrorEnvelope.ts +12 -12
  514. package/clients/walletsService/models/InvoiceDto.ts +35 -13
  515. package/clients/walletsService/models/InvoiceDtoListEnvelope.ts +14 -14
  516. package/clients/walletsService/models/LocationDto.ts +31 -31
  517. package/clients/walletsService/models/LocationDtoListEnvelope.ts +14 -14
  518. package/clients/walletsService/models/OrderDto.ts +51 -27
  519. package/clients/walletsService/models/OrderDtoListEnvelope.ts +14 -14
  520. package/clients/walletsService/models/PaymentDto.ts +17 -17
  521. package/clients/walletsService/models/PaymentDtoListEnvelope.ts +14 -14
  522. package/clients/walletsService/models/WalletDto.ts +22 -22
  523. package/clients/walletsService/models/WalletDtoEnvelope.ts +14 -14
  524. package/clients/walletsService/services/WalletsService.ts +194 -174
  525. package/package.json +40 -40
  526. package/schemas/cartService/schema.s.ts +1396 -100
  527. package/schemas/catalogService/schema.s.ts +148 -141
  528. package/schemas/crmService/schema.s.ts +522 -58
  529. package/schemas/forexService/schema.s.ts +102 -339
  530. package/schemas/holderService/schema.s.ts +578 -153
  531. package/schemas/identityService/schema.s.ts +43 -70
  532. package/schemas/inventoryService/schema.s.ts +1 -1
  533. package/schemas/invoicingService/schema.s.ts +528 -17
  534. package/schemas/ordersService/schema.s.ts +46 -19
  535. package/schemas/pricingService/schema.s.ts +13 -13
  536. package/schemas/systemService/schema.s.ts +1171 -4
  537. package/schemas/tenantService/schema.s.ts +4978 -396
  538. package/schemas/walletsService/schema.s.ts +93 -17
  539. package/tsconfig.json +110 -110
  540. package/vite.config.js +28 -28
  541. package/wwwroot/build/bundle.js +1 -1
  542. package/clients/holderService/models/InvoiceDto.ts +0 -13
  543. package/clients/holderService/models/OrderDto.ts +0 -27
  544. package/clients/holderService/models/PaymentDto.ts +0 -17
@@ -1,1706 +1,1711 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { ItemAttachmentDtoEnvelope } from '../models/ItemAttachmentDtoEnvelope';
6
- import type { ItemAttachmentDtoListEnvelope } from '../models/ItemAttachmentDtoListEnvelope';
7
- import type { ItemAttributeOptionDtoEnvelope } from '../models/ItemAttributeOptionDtoEnvelope';
8
- import type { ItemAttributeOptionDtoListEnvelope } from '../models/ItemAttributeOptionDtoListEnvelope';
9
- import type { ItemBrandDtoEnvelope } from '../models/ItemBrandDtoEnvelope';
10
- import type { ItemBrandDtoListEnvelope } from '../models/ItemBrandDtoListEnvelope';
11
- import type { ItemCategoryDtoEnvelope } from '../models/ItemCategoryDtoEnvelope';
12
- import type { ItemCategoryDtoListEnvelope } from '../models/ItemCategoryDtoListEnvelope';
13
- import type { ItemGoogleCategoryDtoEnvelope } from '../models/ItemGoogleCategoryDtoEnvelope';
14
- import type { ItemGoogleCategoryDtoListEnvelope } from '../models/ItemGoogleCategoryDtoListEnvelope';
15
- import type { ItemImageDtoEnvelope } from '../models/ItemImageDtoEnvelope';
16
- import type { ItemImageDtoListEnvelope } from '../models/ItemImageDtoListEnvelope';
17
- import type { ItemQuestionDtoEnvelope } from '../models/ItemQuestionDtoEnvelope';
18
- import type { ItemQuestionDtoListEnvelope } from '../models/ItemQuestionDtoListEnvelope';
19
- import type { ItemQuestionRecordCreateDto } from '../models/ItemQuestionRecordCreateDto';
20
- import type { ItemRefundPolicyDtoEnvelope } from '../models/ItemRefundPolicyDtoEnvelope';
21
- import type { ItemRefundPolicyDtoListEnvelope } from '../models/ItemRefundPolicyDtoListEnvelope';
22
- import type { ItemReturnPolicyDtoEnvelope } from '../models/ItemReturnPolicyDtoEnvelope';
23
- import type { ItemReturnPolicyDtoListEnvelope } from '../models/ItemReturnPolicyDtoListEnvelope';
24
- import type { ItemReviewDtoEnvelope } from '../models/ItemReviewDtoEnvelope';
25
- import type { ItemReviewDtoListEnvelope } from '../models/ItemReviewDtoListEnvelope';
26
- import type { ItemReviewRecordCreateDto } from '../models/ItemReviewRecordCreateDto';
27
- import type { ItemShippingPolicyDtoEnvelope } from '../models/ItemShippingPolicyDtoEnvelope';
28
- import type { ItemShippingPolicyDtoListEnvelope } from '../models/ItemShippingPolicyDtoListEnvelope';
29
- import type { ItemTagDtoEnvelope } from '../models/ItemTagDtoEnvelope';
30
- import type { ItemTagDtoListEnvelope } from '../models/ItemTagDtoListEnvelope';
31
- import type { ItemTaxPolicyDtoEnvelope } from '../models/ItemTaxPolicyDtoEnvelope';
32
- import type { ItemTaxPolicyDtoListEnvelope } from '../models/ItemTaxPolicyDtoListEnvelope';
33
- import type { ItemTypeDtoEnvelope } from '../models/ItemTypeDtoEnvelope';
34
- import type { ItemTypeDtoListEnvelope } from '../models/ItemTypeDtoListEnvelope';
35
- import type { ItemWarrantyPolicyDtoEnvelope } from '../models/ItemWarrantyPolicyDtoEnvelope';
36
- import type { ItemWarrantyPolicyDtoListEnvelope } from '../models/ItemWarrantyPolicyDtoListEnvelope';
37
- import type { PricingRuleDtoEnvelope } from '../models/PricingRuleDtoEnvelope';
38
- import type { PricingRuleDtoListEnvelope } from '../models/PricingRuleDtoListEnvelope';
39
- import type { StockItemCreateDto } from '../models/StockItemCreateDto';
40
- import type { StockItemDtoEnvelope } from '../models/StockItemDtoEnvelope';
41
- import type { StockItemDtoListEnvelope } from '../models/StockItemDtoListEnvelope';
42
- import type { StockItemUpdateDto } from '../models/StockItemUpdateDto';
43
- import type { CancelablePromise } from '../core/CancelablePromise';
44
- import { OpenAPI } from '../core/OpenAPI';
45
- import { request as __request } from '../core/request';
46
- export class ProductsService {
47
- /**
48
- * @param pageNumber
49
- * @param pageSize
50
- * @returns StockItemDtoListEnvelope Success
51
- * @throws ApiError
52
- */
53
- public static getApiV2CatalogServiceProducts(
54
- pageNumber?: number,
55
- pageSize?: number,
56
- ): CancelablePromise<StockItemDtoListEnvelope> {
57
- return __request(OpenAPI, {
58
- method: 'GET',
59
- url: '/api/v2/CatalogService/Products',
60
- query: {
61
- 'pageNumber': pageNumber,
62
- 'pageSize': pageSize,
63
- },
64
- errors: {
65
- 401: `Unauthorized`,
66
- 403: `Forbidden`,
67
- },
68
- });
69
- }
70
- /**
71
- * @returns StockItemDtoListEnvelope Success
72
- * @throws ApiError
73
- */
74
- public static getApiV2CatalogServiceProductsCount(): CancelablePromise<StockItemDtoListEnvelope> {
75
- return __request(OpenAPI, {
76
- method: 'GET',
77
- url: '/api/v2/CatalogService/Products/Count',
78
- errors: {
79
- 401: `Unauthorized`,
80
- 403: `Forbidden`,
81
- },
82
- });
83
- }
84
- /**
85
- * @param tenantId
86
- * @param pageNumber
87
- * @param pageSize
88
- * @returns StockItemDtoListEnvelope Success
89
- * @throws ApiError
90
- */
91
- public static getApiV2CatalogServiceProductsByBusiness(
92
- tenantId: string,
93
- pageNumber?: number,
94
- pageSize?: number,
95
- ): CancelablePromise<StockItemDtoListEnvelope> {
96
- return __request(OpenAPI, {
97
- method: 'GET',
98
- url: '/api/v2/CatalogService/Products/ByBusiness/{tenantId}',
99
- path: {
100
- 'tenantId': tenantId,
101
- },
102
- query: {
103
- 'pageNumber': pageNumber,
104
- 'pageSize': pageSize,
105
- },
106
- errors: {
107
- 401: `Unauthorized`,
108
- 403: `Forbidden`,
109
- },
110
- });
111
- }
112
- /**
113
- * @param tenantId
114
- * @returns StockItemDtoListEnvelope Success
115
- * @throws ApiError
116
- */
117
- public static getApiV2CatalogServiceProductsByBusinessCount(
118
- tenantId: string,
119
- ): CancelablePromise<StockItemDtoListEnvelope> {
120
- return __request(OpenAPI, {
121
- method: 'GET',
122
- url: '/api/v2/CatalogService/Products/ByBusiness/{tenantId}/Count',
123
- path: {
124
- 'tenantId': tenantId,
125
- },
126
- errors: {
127
- 401: `Unauthorized`,
128
- 403: `Forbidden`,
129
- },
130
- });
131
- }
132
- /**
133
- * @param stockItemId
134
- * @returns StockItemDtoEnvelope Success
135
- * @throws ApiError
136
- */
137
- public static getApiV2CatalogServiceProductsDetails(
138
- stockItemId: string,
139
- ): CancelablePromise<StockItemDtoEnvelope> {
140
- return __request(OpenAPI, {
141
- method: 'GET',
142
- url: '/api/v2/CatalogService/Products/{stockItemId}/Details',
143
- path: {
144
- 'stockItemId': stockItemId,
145
- },
146
- errors: {
147
- 401: `Unauthorized`,
148
- 403: `Forbidden`,
149
- },
150
- });
151
- }
152
- /**
153
- * @param tenantId
154
- * @param requestBody
155
- * @returns any Success
156
- * @throws ApiError
157
- */
158
- public static postApiV2CatalogServiceProductsCreate(
159
- tenantId: string,
160
- requestBody?: StockItemCreateDto,
161
- ): CancelablePromise<any> {
162
- return __request(OpenAPI, {
163
- method: 'POST',
164
- url: '/api/v2/CatalogService/Products/Create',
165
- query: {
166
- 'tenantId': tenantId,
167
- },
168
- body: requestBody,
169
- mediaType: 'application/json',
170
- errors: {
171
- 401: `Unauthorized`,
172
- 403: `Forbidden`,
173
- },
174
- });
175
- }
176
- /**
177
- * @param tenantId
178
- * @param stockItemId
179
- * @param requestBody
180
- * @returns any Success
181
- * @throws ApiError
182
- */
183
- public static putApiV2CatalogServiceProductsUpdate(
184
- tenantId: string,
185
- stockItemId: string,
186
- requestBody?: StockItemUpdateDto,
187
- ): CancelablePromise<any> {
188
- return __request(OpenAPI, {
189
- method: 'PUT',
190
- url: '/api/v2/CatalogService/Products/Update/{stockItemId}',
191
- path: {
192
- 'stockItemId': stockItemId,
193
- },
194
- query: {
195
- 'tenantId': tenantId,
196
- },
197
- body: requestBody,
198
- mediaType: 'application/json',
199
- errors: {
200
- 401: `Unauthorized`,
201
- 403: `Forbidden`,
202
- },
203
- });
204
- }
205
- /**
206
- * @param tenantId
207
- * @param stockItemId
208
- * @returns any Success
209
- * @throws ApiError
210
- */
211
- public static deleteApiV2CatalogServiceProductsDelete(
212
- tenantId: string,
213
- stockItemId: string,
214
- ): CancelablePromise<any> {
215
- return __request(OpenAPI, {
216
- method: 'DELETE',
217
- url: '/api/v2/CatalogService/Products/Delete/{stockItemId}',
218
- path: {
219
- 'stockItemId': stockItemId,
220
- },
221
- query: {
222
- 'tenantId': tenantId,
223
- },
224
- errors: {
225
- 401: `Unauthorized`,
226
- 403: `Forbidden`,
227
- },
228
- });
229
- }
230
- /**
231
- * Get all images related to a specific stock item
232
- * @param stockItemId The stock item ID to get images for
233
- * @param pageNumber
234
- * @param pageSize
235
- * @returns ItemImageDtoListEnvelope Success
236
- * @throws ApiError
237
- */
238
- public static getApiV2CatalogServiceProductsImages(
239
- stockItemId: string,
240
- pageNumber?: number,
241
- pageSize?: number,
242
- ): CancelablePromise<ItemImageDtoListEnvelope> {
243
- return __request(OpenAPI, {
244
- method: 'GET',
245
- url: '/api/v2/CatalogService/Products/{stockItemId}/Images',
246
- path: {
247
- 'stockItemId': stockItemId,
248
- },
249
- query: {
250
- 'pageNumber': pageNumber,
251
- 'pageSize': pageSize,
252
- },
253
- errors: {
254
- 401: `Unauthorized`,
255
- 403: `Forbidden`,
256
- },
257
- });
258
- }
259
- /**
260
- * @param stockItemId
261
- * @param itemImageId
262
- * @returns ItemImageDtoEnvelope Success
263
- * @throws ApiError
264
- */
265
- public static getApiV2CatalogServiceProductsImages1(
266
- stockItemId: string,
267
- itemImageId: string,
268
- ): CancelablePromise<ItemImageDtoEnvelope> {
269
- return __request(OpenAPI, {
270
- method: 'GET',
271
- url: '/api/v2/CatalogService/Products/{stockItemId}/Images/{itemImageId}',
272
- path: {
273
- 'stockItemId': stockItemId,
274
- 'itemImageId': itemImageId,
275
- },
276
- errors: {
277
- 401: `Unauthorized`,
278
- 403: `Forbidden`,
279
- },
280
- });
281
- }
282
- /**
283
- * @param stockItemId
284
- * @param itemImageId
285
- * @returns ItemImageDtoEnvelope Success
286
- * @throws ApiError
287
- */
288
- public static postApiV2CatalogServiceProductsImages(
289
- stockItemId: string,
290
- itemImageId: string,
291
- ): CancelablePromise<ItemImageDtoEnvelope> {
292
- return __request(OpenAPI, {
293
- method: 'POST',
294
- url: '/api/v2/CatalogService/Products/{stockItemId}/Images/{itemImageId}',
295
- path: {
296
- 'stockItemId': stockItemId,
297
- 'itemImageId': itemImageId,
298
- },
299
- errors: {
300
- 401: `Unauthorized`,
301
- 403: `Forbidden`,
302
- },
303
- });
304
- }
305
- /**
306
- * @param stockItemId
307
- * @param itemImageId
308
- * @returns ItemImageDtoEnvelope Success
309
- * @throws ApiError
310
- */
311
- public static deleteApiV2CatalogServiceProductsImages(
312
- stockItemId: string,
313
- itemImageId: string,
314
- ): CancelablePromise<ItemImageDtoEnvelope> {
315
- return __request(OpenAPI, {
316
- method: 'DELETE',
317
- url: '/api/v2/CatalogService/Products/{stockItemId}/Images/{itemImageId}',
318
- path: {
319
- 'stockItemId': stockItemId,
320
- 'itemImageId': itemImageId,
321
- },
322
- errors: {
323
- 401: `Unauthorized`,
324
- 403: `Forbidden`,
325
- },
326
- });
327
- }
328
- /**
329
- * @param stockItemId
330
- * @returns ItemBrandDtoListEnvelope Success
331
- * @throws ApiError
332
- */
333
- public static getApiV2CatalogServiceProductsBrands(
334
- stockItemId: string,
335
- ): CancelablePromise<ItemBrandDtoListEnvelope> {
336
- return __request(OpenAPI, {
337
- method: 'GET',
338
- url: '/api/v2/CatalogService/Products/{stockItemId}/Brands',
339
- path: {
340
- 'stockItemId': stockItemId,
341
- },
342
- errors: {
343
- 401: `Unauthorized`,
344
- 403: `Forbidden`,
345
- },
346
- });
347
- }
348
- /**
349
- * @param stockItemId
350
- * @param itemBrandId
351
- * @returns ItemBrandDtoEnvelope Success
352
- * @throws ApiError
353
- */
354
- public static getApiV2CatalogServiceProductsBrands1(
355
- stockItemId: string,
356
- itemBrandId: string,
357
- ): CancelablePromise<ItemBrandDtoEnvelope> {
358
- return __request(OpenAPI, {
359
- method: 'GET',
360
- url: '/api/v2/CatalogService/Products/{stockItemId}/Brands/{itemBrandId}',
361
- path: {
362
- 'stockItemId': stockItemId,
363
- 'itemBrandId': itemBrandId,
364
- },
365
- errors: {
366
- 401: `Unauthorized`,
367
- 403: `Forbidden`,
368
- },
369
- });
370
- }
371
- /**
372
- * @param stockItemId
373
- * @param itemBrandId
374
- * @returns ItemBrandDtoEnvelope Success
375
- * @throws ApiError
376
- */
377
- public static postApiV2CatalogServiceProductsBrands(
378
- stockItemId: string,
379
- itemBrandId: string,
380
- ): CancelablePromise<ItemBrandDtoEnvelope> {
381
- return __request(OpenAPI, {
382
- method: 'POST',
383
- url: '/api/v2/CatalogService/Products/{stockItemId}/Brands/{itemBrandId}',
384
- path: {
385
- 'stockItemId': stockItemId,
386
- 'itemBrandId': itemBrandId,
387
- },
388
- errors: {
389
- 401: `Unauthorized`,
390
- 403: `Forbidden`,
391
- },
392
- });
393
- }
394
- /**
395
- * @param stockItemId
396
- * @param itemBrandId
397
- * @returns ItemBrandDtoEnvelope Success
398
- * @throws ApiError
399
- */
400
- public static deleteApiV2CatalogServiceProductsBrands(
401
- stockItemId: string,
402
- itemBrandId: string,
403
- ): CancelablePromise<ItemBrandDtoEnvelope> {
404
- return __request(OpenAPI, {
405
- method: 'DELETE',
406
- url: '/api/v2/CatalogService/Products/{stockItemId}/Brands/{itemBrandId}',
407
- path: {
408
- 'stockItemId': stockItemId,
409
- 'itemBrandId': itemBrandId,
410
- },
411
- errors: {
412
- 401: `Unauthorized`,
413
- 403: `Forbidden`,
414
- },
415
- });
416
- }
417
- /**
418
- * @param stockItemId
419
- * @returns ItemCategoryDtoListEnvelope Success
420
- * @throws ApiError
421
- */
422
- public static getApiV2CatalogServiceProductsCategories(
423
- stockItemId: string,
424
- ): CancelablePromise<ItemCategoryDtoListEnvelope> {
425
- return __request(OpenAPI, {
426
- method: 'GET',
427
- url: '/api/v2/CatalogService/Products/{stockItemId}/Categories',
428
- path: {
429
- 'stockItemId': stockItemId,
430
- },
431
- errors: {
432
- 401: `Unauthorized`,
433
- 403: `Forbidden`,
434
- },
435
- });
436
- }
437
- /**
438
- * @param stockItemId
439
- * @param itemCategoryId
440
- * @returns ItemCategoryDtoEnvelope Success
441
- * @throws ApiError
442
- */
443
- public static getApiV2CatalogServiceProductsCategories1(
444
- stockItemId: string,
445
- itemCategoryId: string,
446
- ): CancelablePromise<ItemCategoryDtoEnvelope> {
447
- return __request(OpenAPI, {
448
- method: 'GET',
449
- url: '/api/v2/CatalogService/Products/{stockItemId}/Categories/{itemCategoryId}',
450
- path: {
451
- 'stockItemId': stockItemId,
452
- 'itemCategoryId': itemCategoryId,
453
- },
454
- errors: {
455
- 401: `Unauthorized`,
456
- 403: `Forbidden`,
457
- },
458
- });
459
- }
460
- /**
461
- * @param stockItemId
462
- * @param itemCategoryId
463
- * @returns ItemCategoryDtoEnvelope Success
464
- * @throws ApiError
465
- */
466
- public static postApiV2CatalogServiceProductsCategories(
467
- stockItemId: string,
468
- itemCategoryId: string,
469
- ): CancelablePromise<ItemCategoryDtoEnvelope> {
470
- return __request(OpenAPI, {
471
- method: 'POST',
472
- url: '/api/v2/CatalogService/Products/{stockItemId}/Categories/{itemCategoryId}',
473
- path: {
474
- 'stockItemId': stockItemId,
475
- 'itemCategoryId': itemCategoryId,
476
- },
477
- errors: {
478
- 401: `Unauthorized`,
479
- 403: `Forbidden`,
480
- },
481
- });
482
- }
483
- /**
484
- * @param stockItemId
485
- * @param itemCategoryId
486
- * @returns ItemCategoryDtoEnvelope Success
487
- * @throws ApiError
488
- */
489
- public static deleteApiV2CatalogServiceProductsCategories(
490
- stockItemId: string,
491
- itemCategoryId: string,
492
- ): CancelablePromise<ItemCategoryDtoEnvelope> {
493
- return __request(OpenAPI, {
494
- method: 'DELETE',
495
- url: '/api/v2/CatalogService/Products/{stockItemId}/Categories/{itemCategoryId}',
496
- path: {
497
- 'stockItemId': stockItemId,
498
- 'itemCategoryId': itemCategoryId,
499
- },
500
- errors: {
501
- 401: `Unauthorized`,
502
- 403: `Forbidden`,
503
- },
504
- });
505
- }
506
- /**
507
- * @param stockItemId
508
- * @returns ItemTypeDtoListEnvelope Success
509
- * @throws ApiError
510
- */
511
- public static getApiV2CatalogServiceProductsTypes(
512
- stockItemId: string,
513
- ): CancelablePromise<ItemTypeDtoListEnvelope> {
514
- return __request(OpenAPI, {
515
- method: 'GET',
516
- url: '/api/v2/CatalogService/Products/{stockItemId}/Types',
517
- path: {
518
- 'stockItemId': stockItemId,
519
- },
520
- errors: {
521
- 401: `Unauthorized`,
522
- 403: `Forbidden`,
523
- },
524
- });
525
- }
526
- /**
527
- * @param stockItemId
528
- * @param itemTypeId
529
- * @returns ItemTypeDtoEnvelope Success
530
- * @throws ApiError
531
- */
532
- public static getApiV2CatalogServiceProductsTypes1(
533
- stockItemId: string,
534
- itemTypeId: string,
535
- ): CancelablePromise<ItemTypeDtoEnvelope> {
536
- return __request(OpenAPI, {
537
- method: 'GET',
538
- url: '/api/v2/CatalogService/Products/{stockItemId}/Types/{itemTypeId}',
539
- path: {
540
- 'stockItemId': stockItemId,
541
- 'itemTypeId': itemTypeId,
542
- },
543
- errors: {
544
- 401: `Unauthorized`,
545
- 403: `Forbidden`,
546
- },
547
- });
548
- }
549
- /**
550
- * @param stockItemId
551
- * @param itemTypeId
552
- * @returns ItemTypeDtoEnvelope Success
553
- * @throws ApiError
554
- */
555
- public static postApiV2CatalogServiceProductsTypes(
556
- stockItemId: string,
557
- itemTypeId: string,
558
- ): CancelablePromise<ItemTypeDtoEnvelope> {
559
- return __request(OpenAPI, {
560
- method: 'POST',
561
- url: '/api/v2/CatalogService/Products/{stockItemId}/Types/{itemTypeId}',
562
- path: {
563
- 'stockItemId': stockItemId,
564
- 'itemTypeId': itemTypeId,
565
- },
566
- errors: {
567
- 401: `Unauthorized`,
568
- 403: `Forbidden`,
569
- },
570
- });
571
- }
572
- /**
573
- * @param stockItemId
574
- * @param itemTypeId
575
- * @returns ItemTypeDtoEnvelope Success
576
- * @throws ApiError
577
- */
578
- public static deleteApiV2CatalogServiceProductsTypes(
579
- stockItemId: string,
580
- itemTypeId: string,
581
- ): CancelablePromise<ItemTypeDtoEnvelope> {
582
- return __request(OpenAPI, {
583
- method: 'DELETE',
584
- url: '/api/v2/CatalogService/Products/{stockItemId}/Types/{itemTypeId}',
585
- path: {
586
- 'stockItemId': stockItemId,
587
- 'itemTypeId': itemTypeId,
588
- },
589
- errors: {
590
- 401: `Unauthorized`,
591
- 403: `Forbidden`,
592
- },
593
- });
594
- }
595
- /**
596
- * @param stockItemId
597
- * @returns ItemTagDtoListEnvelope Success
598
- * @throws ApiError
599
- */
600
- public static getApiV2CatalogServiceProductsTags(
601
- stockItemId: string,
602
- ): CancelablePromise<ItemTagDtoListEnvelope> {
603
- return __request(OpenAPI, {
604
- method: 'GET',
605
- url: '/api/v2/CatalogService/Products/{stockItemId}/Tags',
606
- path: {
607
- 'stockItemId': stockItemId,
608
- },
609
- errors: {
610
- 401: `Unauthorized`,
611
- 403: `Forbidden`,
612
- },
613
- });
614
- }
615
- /**
616
- * @param stockItemId
617
- * @param itemTagId
618
- * @returns ItemTagDtoEnvelope Success
619
- * @throws ApiError
620
- */
621
- public static getApiV2CatalogServiceProductsTags1(
622
- stockItemId: string,
623
- itemTagId: string,
624
- ): CancelablePromise<ItemTagDtoEnvelope> {
625
- return __request(OpenAPI, {
626
- method: 'GET',
627
- url: '/api/v2/CatalogService/Products/{stockItemId}/Tags/{itemTagId}',
628
- path: {
629
- 'stockItemId': stockItemId,
630
- 'itemTagId': itemTagId,
631
- },
632
- errors: {
633
- 401: `Unauthorized`,
634
- 403: `Forbidden`,
635
- },
636
- });
637
- }
638
- /**
639
- * @param stockItemId
640
- * @param itemTagId
641
- * @returns ItemTagDtoEnvelope Success
642
- * @throws ApiError
643
- */
644
- public static postApiV2CatalogServiceProductsTags(
645
- stockItemId: string,
646
- itemTagId: string,
647
- ): CancelablePromise<ItemTagDtoEnvelope> {
648
- return __request(OpenAPI, {
649
- method: 'POST',
650
- url: '/api/v2/CatalogService/Products/{stockItemId}/Tags/{itemTagId}',
651
- path: {
652
- 'stockItemId': stockItemId,
653
- 'itemTagId': itemTagId,
654
- },
655
- errors: {
656
- 401: `Unauthorized`,
657
- 403: `Forbidden`,
658
- },
659
- });
660
- }
661
- /**
662
- * @param stockItemId
663
- * @param itemTagId
664
- * @returns ItemTagDtoEnvelope Success
665
- * @throws ApiError
666
- */
667
- public static deleteApiV2CatalogServiceProductsTags(
668
- stockItemId: string,
669
- itemTagId: string,
670
- ): CancelablePromise<ItemTagDtoEnvelope> {
671
- return __request(OpenAPI, {
672
- method: 'DELETE',
673
- url: '/api/v2/CatalogService/Products/{stockItemId}/Tags/{itemTagId}',
674
- path: {
675
- 'stockItemId': stockItemId,
676
- 'itemTagId': itemTagId,
677
- },
678
- errors: {
679
- 401: `Unauthorized`,
680
- 403: `Forbidden`,
681
- },
682
- });
683
- }
684
- /**
685
- * @param stockItemId
686
- * @returns ItemReviewDtoListEnvelope Success
687
- * @throws ApiError
688
- */
689
- public static getApiV2CatalogServiceProductsReviews(
690
- stockItemId: string,
691
- ): CancelablePromise<ItemReviewDtoListEnvelope> {
692
- return __request(OpenAPI, {
693
- method: 'GET',
694
- url: '/api/v2/CatalogService/Products/{stockItemId}/Reviews',
695
- path: {
696
- 'stockItemId': stockItemId,
697
- },
698
- errors: {
699
- 401: `Unauthorized`,
700
- 403: `Forbidden`,
701
- },
702
- });
703
- }
704
- /**
705
- * @param stockItemId
706
- * @param requestBody
707
- * @returns ItemReviewDtoEnvelope Success
708
- * @throws ApiError
709
- */
710
- public static postApiV2CatalogServiceProductsReviews(
711
- stockItemId: string,
712
- requestBody?: ItemReviewRecordCreateDto,
713
- ): CancelablePromise<ItemReviewDtoEnvelope> {
714
- return __request(OpenAPI, {
715
- method: 'POST',
716
- url: '/api/v2/CatalogService/Products/{stockItemId}/Reviews',
717
- path: {
718
- 'stockItemId': stockItemId,
719
- },
720
- body: requestBody,
721
- mediaType: 'application/json',
722
- errors: {
723
- 401: `Unauthorized`,
724
- 403: `Forbidden`,
725
- },
726
- });
727
- }
728
- /**
729
- * @param stockItemId
730
- * @param itemReviewId
731
- * @returns ItemReviewDtoEnvelope Success
732
- * @throws ApiError
733
- */
734
- public static getApiV2CatalogServiceProductsReviews1(
735
- stockItemId: string,
736
- itemReviewId: string,
737
- ): CancelablePromise<ItemReviewDtoEnvelope> {
738
- return __request(OpenAPI, {
739
- method: 'GET',
740
- url: '/api/v2/CatalogService/Products/{stockItemId}/Reviews/{itemReviewId}',
741
- path: {
742
- 'stockItemId': stockItemId,
743
- 'itemReviewId': itemReviewId,
744
- },
745
- errors: {
746
- 401: `Unauthorized`,
747
- 403: `Forbidden`,
748
- },
749
- });
750
- }
751
- /**
752
- * @param stockItemId
753
- * @param itemReviewId
754
- * @returns ItemReviewDtoEnvelope Success
755
- * @throws ApiError
756
- */
757
- public static deleteApiV2CatalogServiceProductsReviews(
758
- stockItemId: string,
759
- itemReviewId: string,
760
- ): CancelablePromise<ItemReviewDtoEnvelope> {
761
- return __request(OpenAPI, {
762
- method: 'DELETE',
763
- url: '/api/v2/CatalogService/Products/{stockItemId}/Reviews/{itemReviewId}',
764
- path: {
765
- 'stockItemId': stockItemId,
766
- 'itemReviewId': itemReviewId,
767
- },
768
- errors: {
769
- 401: `Unauthorized`,
770
- 403: `Forbidden`,
771
- },
772
- });
773
- }
774
- /**
775
- * @param stockItemId
776
- * @returns ItemQuestionDtoListEnvelope Success
777
- * @throws ApiError
778
- */
779
- public static getApiV2CatalogServiceProductsQuestions(
780
- stockItemId: string,
781
- ): CancelablePromise<ItemQuestionDtoListEnvelope> {
782
- return __request(OpenAPI, {
783
- method: 'GET',
784
- url: '/api/v2/CatalogService/Products/{stockItemId}/Questions',
785
- path: {
786
- 'stockItemId': stockItemId,
787
- },
788
- errors: {
789
- 401: `Unauthorized`,
790
- 403: `Forbidden`,
791
- },
792
- });
793
- }
794
- /**
795
- * @param stockItemId
796
- * @param requestBody
797
- * @returns ItemQuestionDtoEnvelope Success
798
- * @throws ApiError
799
- */
800
- public static postApiV2CatalogServiceProductsQuestions(
801
- stockItemId: string,
802
- requestBody?: ItemQuestionRecordCreateDto,
803
- ): CancelablePromise<ItemQuestionDtoEnvelope> {
804
- return __request(OpenAPI, {
805
- method: 'POST',
806
- url: '/api/v2/CatalogService/Products/{stockItemId}/Questions',
807
- path: {
808
- 'stockItemId': stockItemId,
809
- },
810
- body: requestBody,
811
- mediaType: 'application/json',
812
- errors: {
813
- 401: `Unauthorized`,
814
- 403: `Forbidden`,
815
- },
816
- });
817
- }
818
- /**
819
- * @param stockItemId
820
- * @param itemQuestionId
821
- * @returns ItemQuestionDtoEnvelope Success
822
- * @throws ApiError
823
- */
824
- public static getApiV2CatalogServiceProductsQuestions1(
825
- stockItemId: string,
826
- itemQuestionId: string,
827
- ): CancelablePromise<ItemQuestionDtoEnvelope> {
828
- return __request(OpenAPI, {
829
- method: 'GET',
830
- url: '/api/v2/CatalogService/Products/{stockItemId}/Questions/{itemQuestionId}',
831
- path: {
832
- 'stockItemId': stockItemId,
833
- 'itemQuestionId': itemQuestionId,
834
- },
835
- errors: {
836
- 401: `Unauthorized`,
837
- 403: `Forbidden`,
838
- },
839
- });
840
- }
841
- /**
842
- * @param stockItemId
843
- * @param itemQuestionId
844
- * @returns ItemQuestionDtoEnvelope Success
845
- * @throws ApiError
846
- */
847
- public static deleteApiV2CatalogServiceProductsQuestions(
848
- stockItemId: string,
849
- itemQuestionId: string,
850
- ): CancelablePromise<ItemQuestionDtoEnvelope> {
851
- return __request(OpenAPI, {
852
- method: 'DELETE',
853
- url: '/api/v2/CatalogService/Products/{stockItemId}/Questions/{itemQuestionId}',
854
- path: {
855
- 'stockItemId': stockItemId,
856
- 'itemQuestionId': itemQuestionId,
857
- },
858
- errors: {
859
- 401: `Unauthorized`,
860
- 403: `Forbidden`,
861
- },
862
- });
863
- }
864
- /**
865
- * @param stockItemId
866
- * @returns ItemAttachmentDtoListEnvelope Success
867
- * @throws ApiError
868
- */
869
- public static getApiV2CatalogServiceProductsAttachments(
870
- stockItemId: string,
871
- ): CancelablePromise<ItemAttachmentDtoListEnvelope> {
872
- return __request(OpenAPI, {
873
- method: 'GET',
874
- url: '/api/v2/CatalogService/Products/{stockItemId}/Attachments',
875
- path: {
876
- 'stockItemId': stockItemId,
877
- },
878
- errors: {
879
- 401: `Unauthorized`,
880
- 403: `Forbidden`,
881
- },
882
- });
883
- }
884
- /**
885
- * @param stockItemId
886
- * @param itemAttachmentId
887
- * @returns ItemAttachmentDtoEnvelope Success
888
- * @throws ApiError
889
- */
890
- public static getApiV2CatalogServiceProductsAttachments1(
891
- stockItemId: string,
892
- itemAttachmentId: string,
893
- ): CancelablePromise<ItemAttachmentDtoEnvelope> {
894
- return __request(OpenAPI, {
895
- method: 'GET',
896
- url: '/api/v2/CatalogService/Products/{stockItemId}/Attachments/{itemAttachmentId}',
897
- path: {
898
- 'stockItemId': stockItemId,
899
- 'itemAttachmentId': itemAttachmentId,
900
- },
901
- errors: {
902
- 401: `Unauthorized`,
903
- 403: `Forbidden`,
904
- },
905
- });
906
- }
907
- /**
908
- * @param stockItemId
909
- * @param fileName
910
- * @param itemAttachmentId
911
- * @param isFolder
912
- * @param title
913
- * @param abstract
914
- * @param author
915
- * @param keyWords
916
- * @param notes
917
- * @param validResponse
918
- * @param parentFileUploadId
919
- * @param iD
920
- * @param timestamp
921
- * @param requestBody
922
- * @returns ItemAttachmentDtoEnvelope Success
923
- * @throws ApiError
924
- */
925
- public static postApiV2CatalogServiceProductsAttachments(
926
- stockItemId: string,
927
- fileName: string,
928
- itemAttachmentId: string,
929
- isFolder?: boolean,
930
- title?: string,
931
- abstract?: string,
932
- author?: string,
933
- keyWords?: string,
934
- notes?: string,
935
- validResponse?: boolean,
936
- parentFileUploadId?: string,
937
- iD?: string,
938
- timestamp?: string,
939
- requestBody?: {
940
- file?: Blob;
941
- },
942
- ): CancelablePromise<ItemAttachmentDtoEnvelope> {
943
- return __request(OpenAPI, {
944
- method: 'POST',
945
- url: '/api/v2/CatalogService/Products/{stockItemId}/Attachments/{itemAttachmentId}',
946
- path: {
947
- 'stockItemId': stockItemId,
948
- 'itemAttachmentId': itemAttachmentId,
949
- },
950
- query: {
951
- 'isFolder': isFolder,
952
- 'fileName': fileName,
953
- 'title': title,
954
- 'abstract': abstract,
955
- 'author': author,
956
- 'keyWords': keyWords,
957
- 'notes': notes,
958
- 'validResponse': validResponse,
959
- 'parentFileUploadID': parentFileUploadId,
960
- 'iD': iD,
961
- 'timestamp': timestamp,
962
- },
963
- body: requestBody,
964
- mediaType: 'application/json',
965
- errors: {
966
- 401: `Unauthorized`,
967
- 403: `Forbidden`,
968
- },
969
- });
970
- }
971
- /**
972
- * @param stockItemId
973
- * @param itemAttachmentId
974
- * @returns ItemAttachmentDtoEnvelope Success
975
- * @throws ApiError
976
- */
977
- public static deleteApiV2CatalogServiceProductsAttachments(
978
- stockItemId: string,
979
- itemAttachmentId: string,
980
- ): CancelablePromise<ItemAttachmentDtoEnvelope> {
981
- return __request(OpenAPI, {
982
- method: 'DELETE',
983
- url: '/api/v2/CatalogService/Products/{stockItemId}/Attachments/{itemAttachmentId}',
984
- path: {
985
- 'stockItemId': stockItemId,
986
- 'itemAttachmentId': itemAttachmentId,
987
- },
988
- errors: {
989
- 401: `Unauthorized`,
990
- 403: `Forbidden`,
991
- },
992
- });
993
- }
994
- /**
995
- * @param stockItemId
996
- * @returns ItemGoogleCategoryDtoListEnvelope Success
997
- * @throws ApiError
998
- */
999
- public static getApiV2CatalogServiceProductsGoogleCategories(
1000
- stockItemId: string,
1001
- ): CancelablePromise<ItemGoogleCategoryDtoListEnvelope> {
1002
- return __request(OpenAPI, {
1003
- method: 'GET',
1004
- url: '/api/v2/CatalogService/Products/{stockItemId}/GoogleCategories',
1005
- path: {
1006
- 'stockItemId': stockItemId,
1007
- },
1008
- errors: {
1009
- 401: `Unauthorized`,
1010
- 403: `Forbidden`,
1011
- },
1012
- });
1013
- }
1014
- /**
1015
- * @param stockItemId
1016
- * @param itemGoogleCategoryId
1017
- * @returns ItemGoogleCategoryDtoEnvelope Success
1018
- * @throws ApiError
1019
- */
1020
- public static getApiV2CatalogServiceProductsGoogleCategories1(
1021
- stockItemId: string,
1022
- itemGoogleCategoryId: string,
1023
- ): CancelablePromise<ItemGoogleCategoryDtoEnvelope> {
1024
- return __request(OpenAPI, {
1025
- method: 'GET',
1026
- url: '/api/v2/CatalogService/Products/{stockItemId}/GoogleCategories/{itemGoogleCategoryId}',
1027
- path: {
1028
- 'stockItemId': stockItemId,
1029
- 'itemGoogleCategoryId': itemGoogleCategoryId,
1030
- },
1031
- errors: {
1032
- 401: `Unauthorized`,
1033
- 403: `Forbidden`,
1034
- },
1035
- });
1036
- }
1037
- /**
1038
- * @param stockItemId
1039
- * @param itemGoogleCategoryId
1040
- * @returns ItemGoogleCategoryDtoEnvelope Success
1041
- * @throws ApiError
1042
- */
1043
- public static postApiV2CatalogServiceProductsGoogleCategories(
1044
- stockItemId: string,
1045
- itemGoogleCategoryId: string,
1046
- ): CancelablePromise<ItemGoogleCategoryDtoEnvelope> {
1047
- return __request(OpenAPI, {
1048
- method: 'POST',
1049
- url: '/api/v2/CatalogService/Products/{stockItemId}/GoogleCategories/{itemGoogleCategoryId}',
1050
- path: {
1051
- 'stockItemId': stockItemId,
1052
- 'itemGoogleCategoryId': itemGoogleCategoryId,
1053
- },
1054
- errors: {
1055
- 401: `Unauthorized`,
1056
- 403: `Forbidden`,
1057
- },
1058
- });
1059
- }
1060
- /**
1061
- * @param stockItemId
1062
- * @param itemGoogleCategoryId
1063
- * @returns ItemGoogleCategoryDtoEnvelope Success
1064
- * @throws ApiError
1065
- */
1066
- public static deleteApiV2CatalogServiceProductsGoogleCategories(
1067
- stockItemId: string,
1068
- itemGoogleCategoryId: string,
1069
- ): CancelablePromise<ItemGoogleCategoryDtoEnvelope> {
1070
- return __request(OpenAPI, {
1071
- method: 'DELETE',
1072
- url: '/api/v2/CatalogService/Products/{stockItemId}/GoogleCategories/{itemGoogleCategoryId}',
1073
- path: {
1074
- 'stockItemId': stockItemId,
1075
- 'itemGoogleCategoryId': itemGoogleCategoryId,
1076
- },
1077
- errors: {
1078
- 401: `Unauthorized`,
1079
- 403: `Forbidden`,
1080
- },
1081
- });
1082
- }
1083
- /**
1084
- * @param stockItemId
1085
- * @returns ItemAttributeOptionDtoListEnvelope Success
1086
- * @throws ApiError
1087
- */
1088
- public static getApiV2CatalogServiceProductsAttributeOptions(
1089
- stockItemId: string,
1090
- ): CancelablePromise<ItemAttributeOptionDtoListEnvelope> {
1091
- return __request(OpenAPI, {
1092
- method: 'GET',
1093
- url: '/api/v2/CatalogService/Products/{stockItemId}/AttributeOptions',
1094
- path: {
1095
- 'stockItemId': stockItemId,
1096
- },
1097
- errors: {
1098
- 401: `Unauthorized`,
1099
- 403: `Forbidden`,
1100
- },
1101
- });
1102
- }
1103
- /**
1104
- * @param stockItemId
1105
- * @param itemAttributeOptionId
1106
- * @returns ItemAttributeOptionDtoEnvelope Success
1107
- * @throws ApiError
1108
- */
1109
- public static getApiV2CatalogServiceProductsAttributeOptions1(
1110
- stockItemId: string,
1111
- itemAttributeOptionId: string,
1112
- ): CancelablePromise<ItemAttributeOptionDtoEnvelope> {
1113
- return __request(OpenAPI, {
1114
- method: 'GET',
1115
- url: '/api/v2/CatalogService/Products/{stockItemId}/AttributeOptions/{itemAttributeOptionId}',
1116
- path: {
1117
- 'stockItemId': stockItemId,
1118
- 'itemAttributeOptionId': itemAttributeOptionId,
1119
- },
1120
- errors: {
1121
- 401: `Unauthorized`,
1122
- 403: `Forbidden`,
1123
- },
1124
- });
1125
- }
1126
- /**
1127
- * @param stockItemId
1128
- * @param itemAttributeOptionId
1129
- * @returns ItemAttributeOptionDtoEnvelope Success
1130
- * @throws ApiError
1131
- */
1132
- public static postApiV2CatalogServiceProductsAttributeOptions(
1133
- stockItemId: string,
1134
- itemAttributeOptionId: string,
1135
- ): CancelablePromise<ItemAttributeOptionDtoEnvelope> {
1136
- return __request(OpenAPI, {
1137
- method: 'POST',
1138
- url: '/api/v2/CatalogService/Products/{stockItemId}/AttributeOptions/{itemAttributeOptionId}',
1139
- path: {
1140
- 'stockItemId': stockItemId,
1141
- 'itemAttributeOptionId': itemAttributeOptionId,
1142
- },
1143
- errors: {
1144
- 401: `Unauthorized`,
1145
- 403: `Forbidden`,
1146
- },
1147
- });
1148
- }
1149
- /**
1150
- * @param stockItemId
1151
- * @param itemAttributeOptionId
1152
- * @returns ItemAttributeOptionDtoEnvelope Success
1153
- * @throws ApiError
1154
- */
1155
- public static deleteApiV2CatalogServiceProductsAttributeOptions(
1156
- stockItemId: string,
1157
- itemAttributeOptionId: string,
1158
- ): CancelablePromise<ItemAttributeOptionDtoEnvelope> {
1159
- return __request(OpenAPI, {
1160
- method: 'DELETE',
1161
- url: '/api/v2/CatalogService/Products/{stockItemId}/AttributeOptions/{itemAttributeOptionId}',
1162
- path: {
1163
- 'stockItemId': stockItemId,
1164
- 'itemAttributeOptionId': itemAttributeOptionId,
1165
- },
1166
- errors: {
1167
- 401: `Unauthorized`,
1168
- 403: `Forbidden`,
1169
- },
1170
- });
1171
- }
1172
- /**
1173
- * @param stockItemId
1174
- * @returns ItemTaxPolicyDtoListEnvelope Success
1175
- * @throws ApiError
1176
- */
1177
- public static getApiV2CatalogServiceProductsTaxPolicies(
1178
- stockItemId: string,
1179
- ): CancelablePromise<ItemTaxPolicyDtoListEnvelope> {
1180
- return __request(OpenAPI, {
1181
- method: 'GET',
1182
- url: '/api/v2/CatalogService/Products/{stockItemId}/TaxPolicies',
1183
- path: {
1184
- 'stockItemId': stockItemId,
1185
- },
1186
- errors: {
1187
- 401: `Unauthorized`,
1188
- 403: `Forbidden`,
1189
- },
1190
- });
1191
- }
1192
- /**
1193
- * @param stockItemId
1194
- * @param itemTaxPolicyId
1195
- * @returns ItemTaxPolicyDtoEnvelope Success
1196
- * @throws ApiError
1197
- */
1198
- public static getApiV2CatalogServiceProductsTaxPolicies1(
1199
- stockItemId: string,
1200
- itemTaxPolicyId: string,
1201
- ): CancelablePromise<ItemTaxPolicyDtoEnvelope> {
1202
- return __request(OpenAPI, {
1203
- method: 'GET',
1204
- url: '/api/v2/CatalogService/Products/{stockItemId}/TaxPolicies/{itemTaxPolicyId}',
1205
- path: {
1206
- 'stockItemId': stockItemId,
1207
- 'itemTaxPolicyId': itemTaxPolicyId,
1208
- },
1209
- errors: {
1210
- 401: `Unauthorized`,
1211
- 403: `Forbidden`,
1212
- },
1213
- });
1214
- }
1215
- /**
1216
- * @param stockItemId
1217
- * @param itemTaxPolicyId
1218
- * @returns ItemTaxPolicyDtoEnvelope Success
1219
- * @throws ApiError
1220
- */
1221
- public static postApiV2CatalogServiceProductsTaxPolicies(
1222
- stockItemId: string,
1223
- itemTaxPolicyId: string,
1224
- ): CancelablePromise<ItemTaxPolicyDtoEnvelope> {
1225
- return __request(OpenAPI, {
1226
- method: 'POST',
1227
- url: '/api/v2/CatalogService/Products/{stockItemId}/TaxPolicies/{itemTaxPolicyId}',
1228
- path: {
1229
- 'stockItemId': stockItemId,
1230
- 'itemTaxPolicyId': itemTaxPolicyId,
1231
- },
1232
- errors: {
1233
- 401: `Unauthorized`,
1234
- 403: `Forbidden`,
1235
- },
1236
- });
1237
- }
1238
- /**
1239
- * @param stockItemId
1240
- * @param itemTaxPolicyId
1241
- * @returns ItemTaxPolicyDtoEnvelope Success
1242
- * @throws ApiError
1243
- */
1244
- public static deleteApiV2CatalogServiceProductsTaxPolicies(
1245
- stockItemId: string,
1246
- itemTaxPolicyId: string,
1247
- ): CancelablePromise<ItemTaxPolicyDtoEnvelope> {
1248
- return __request(OpenAPI, {
1249
- method: 'DELETE',
1250
- url: '/api/v2/CatalogService/Products/{stockItemId}/TaxPolicies/{itemTaxPolicyId}',
1251
- path: {
1252
- 'stockItemId': stockItemId,
1253
- 'itemTaxPolicyId': itemTaxPolicyId,
1254
- },
1255
- errors: {
1256
- 401: `Unauthorized`,
1257
- 403: `Forbidden`,
1258
- },
1259
- });
1260
- }
1261
- /**
1262
- * @param stockItemId
1263
- * @returns PricingRuleDtoListEnvelope Success
1264
- * @throws ApiError
1265
- */
1266
- public static getApiV2CatalogServiceProductsPriceRules(
1267
- stockItemId: string,
1268
- ): CancelablePromise<PricingRuleDtoListEnvelope> {
1269
- return __request(OpenAPI, {
1270
- method: 'GET',
1271
- url: '/api/v2/CatalogService/Products/{stockItemId}/PriceRules',
1272
- path: {
1273
- 'stockItemId': stockItemId,
1274
- },
1275
- errors: {
1276
- 401: `Unauthorized`,
1277
- 403: `Forbidden`,
1278
- },
1279
- });
1280
- }
1281
- /**
1282
- * @param stockItemId
1283
- * @param itemPriceRuleId
1284
- * @returns PricingRuleDtoEnvelope Success
1285
- * @throws ApiError
1286
- */
1287
- public static getApiV2CatalogServiceProductsPriceRules1(
1288
- stockItemId: string,
1289
- itemPriceRuleId: string,
1290
- ): CancelablePromise<PricingRuleDtoEnvelope> {
1291
- return __request(OpenAPI, {
1292
- method: 'GET',
1293
- url: '/api/v2/CatalogService/Products/{stockItemId}/PriceRules/{itemPriceRuleId}',
1294
- path: {
1295
- 'stockItemId': stockItemId,
1296
- 'itemPriceRuleId': itemPriceRuleId,
1297
- },
1298
- errors: {
1299
- 401: `Unauthorized`,
1300
- 403: `Forbidden`,
1301
- },
1302
- });
1303
- }
1304
- /**
1305
- * @param stockItemId
1306
- * @param itemPriceRuleId
1307
- * @returns PricingRuleDtoEnvelope Success
1308
- * @throws ApiError
1309
- */
1310
- public static postApiV2CatalogServiceProductsPriceRules(
1311
- stockItemId: string,
1312
- itemPriceRuleId: string,
1313
- ): CancelablePromise<PricingRuleDtoEnvelope> {
1314
- return __request(OpenAPI, {
1315
- method: 'POST',
1316
- url: '/api/v2/CatalogService/Products/{stockItemId}/PriceRules/{itemPriceRuleId}',
1317
- path: {
1318
- 'stockItemId': stockItemId,
1319
- 'itemPriceRuleId': itemPriceRuleId,
1320
- },
1321
- errors: {
1322
- 401: `Unauthorized`,
1323
- 403: `Forbidden`,
1324
- },
1325
- });
1326
- }
1327
- /**
1328
- * @param stockItemId
1329
- * @param itemPriceRuleId
1330
- * @returns PricingRuleDtoEnvelope Success
1331
- * @throws ApiError
1332
- */
1333
- public static deleteApiV2CatalogServiceProductsPriceRules(
1334
- stockItemId: string,
1335
- itemPriceRuleId: string,
1336
- ): CancelablePromise<PricingRuleDtoEnvelope> {
1337
- return __request(OpenAPI, {
1338
- method: 'DELETE',
1339
- url: '/api/v2/CatalogService/Products/{stockItemId}/PriceRules/{itemPriceRuleId}',
1340
- path: {
1341
- 'stockItemId': stockItemId,
1342
- 'itemPriceRuleId': itemPriceRuleId,
1343
- },
1344
- errors: {
1345
- 401: `Unauthorized`,
1346
- 403: `Forbidden`,
1347
- },
1348
- });
1349
- }
1350
- /**
1351
- * @param stockItemId
1352
- * @returns ItemWarrantyPolicyDtoListEnvelope Success
1353
- * @throws ApiError
1354
- */
1355
- public static getApiV2CatalogServiceProductsWarrantyPolicies(
1356
- stockItemId: string,
1357
- ): CancelablePromise<ItemWarrantyPolicyDtoListEnvelope> {
1358
- return __request(OpenAPI, {
1359
- method: 'GET',
1360
- url: '/api/v2/CatalogService/Products/{stockItemId}/WarrantyPolicies',
1361
- path: {
1362
- 'stockItemId': stockItemId,
1363
- },
1364
- errors: {
1365
- 401: `Unauthorized`,
1366
- 403: `Forbidden`,
1367
- },
1368
- });
1369
- }
1370
- /**
1371
- * @param stockItemId
1372
- * @param itemWarrantyPolicyId
1373
- * @returns ItemWarrantyPolicyDtoEnvelope Success
1374
- * @throws ApiError
1375
- */
1376
- public static getApiV2CatalogServiceProductsWarrantyPolicies1(
1377
- stockItemId: string,
1378
- itemWarrantyPolicyId: string,
1379
- ): CancelablePromise<ItemWarrantyPolicyDtoEnvelope> {
1380
- return __request(OpenAPI, {
1381
- method: 'GET',
1382
- url: '/api/v2/CatalogService/Products/{stockItemId}/WarrantyPolicies/{itemWarrantyPolicyId}',
1383
- path: {
1384
- 'stockItemId': stockItemId,
1385
- 'itemWarrantyPolicyId': itemWarrantyPolicyId,
1386
- },
1387
- errors: {
1388
- 401: `Unauthorized`,
1389
- 403: `Forbidden`,
1390
- },
1391
- });
1392
- }
1393
- /**
1394
- * @param stockItemId
1395
- * @param itemWarrantyPolicyId
1396
- * @returns ItemWarrantyPolicyDtoEnvelope Success
1397
- * @throws ApiError
1398
- */
1399
- public static postApiV2CatalogServiceProductsWarrantyPolicies(
1400
- stockItemId: string,
1401
- itemWarrantyPolicyId: string,
1402
- ): CancelablePromise<ItemWarrantyPolicyDtoEnvelope> {
1403
- return __request(OpenAPI, {
1404
- method: 'POST',
1405
- url: '/api/v2/CatalogService/Products/{stockItemId}/WarrantyPolicies/{itemWarrantyPolicyId}',
1406
- path: {
1407
- 'stockItemId': stockItemId,
1408
- 'itemWarrantyPolicyId': itemWarrantyPolicyId,
1409
- },
1410
- errors: {
1411
- 401: `Unauthorized`,
1412
- 403: `Forbidden`,
1413
- },
1414
- });
1415
- }
1416
- /**
1417
- * @param stockItemId
1418
- * @param itemWarrantyPolicyId
1419
- * @returns ItemWarrantyPolicyDtoEnvelope Success
1420
- * @throws ApiError
1421
- */
1422
- public static deleteApiV2CatalogServiceProductsWarrantyPolicies(
1423
- stockItemId: string,
1424
- itemWarrantyPolicyId: string,
1425
- ): CancelablePromise<ItemWarrantyPolicyDtoEnvelope> {
1426
- return __request(OpenAPI, {
1427
- method: 'DELETE',
1428
- url: '/api/v2/CatalogService/Products/{stockItemId}/WarrantyPolicies/{itemWarrantyPolicyId}',
1429
- path: {
1430
- 'stockItemId': stockItemId,
1431
- 'itemWarrantyPolicyId': itemWarrantyPolicyId,
1432
- },
1433
- errors: {
1434
- 401: `Unauthorized`,
1435
- 403: `Forbidden`,
1436
- },
1437
- });
1438
- }
1439
- /**
1440
- * @param stockItemId
1441
- * @returns ItemReturnPolicyDtoListEnvelope Success
1442
- * @throws ApiError
1443
- */
1444
- public static getApiV2CatalogServiceProductsReturnPolicies(
1445
- stockItemId: string,
1446
- ): CancelablePromise<ItemReturnPolicyDtoListEnvelope> {
1447
- return __request(OpenAPI, {
1448
- method: 'GET',
1449
- url: '/api/v2/CatalogService/Products/{stockItemId}/ReturnPolicies',
1450
- path: {
1451
- 'stockItemId': stockItemId,
1452
- },
1453
- errors: {
1454
- 401: `Unauthorized`,
1455
- 403: `Forbidden`,
1456
- },
1457
- });
1458
- }
1459
- /**
1460
- * @param stockItemId
1461
- * @param itemReturnPolicyId
1462
- * @returns ItemReturnPolicyDtoEnvelope Success
1463
- * @throws ApiError
1464
- */
1465
- public static getApiV2CatalogServiceProductsReturnPolicies1(
1466
- stockItemId: string,
1467
- itemReturnPolicyId: string,
1468
- ): CancelablePromise<ItemReturnPolicyDtoEnvelope> {
1469
- return __request(OpenAPI, {
1470
- method: 'GET',
1471
- url: '/api/v2/CatalogService/Products/{stockItemId}/ReturnPolicies/{itemReturnPolicyId}',
1472
- path: {
1473
- 'stockItemId': stockItemId,
1474
- 'itemReturnPolicyId': itemReturnPolicyId,
1475
- },
1476
- errors: {
1477
- 401: `Unauthorized`,
1478
- 403: `Forbidden`,
1479
- },
1480
- });
1481
- }
1482
- /**
1483
- * @param stockItemId
1484
- * @param itemReturnPolicyId
1485
- * @returns ItemReturnPolicyDtoEnvelope Success
1486
- * @throws ApiError
1487
- */
1488
- public static postApiV2CatalogServiceProductsReturnPolicies(
1489
- stockItemId: string,
1490
- itemReturnPolicyId: string,
1491
- ): CancelablePromise<ItemReturnPolicyDtoEnvelope> {
1492
- return __request(OpenAPI, {
1493
- method: 'POST',
1494
- url: '/api/v2/CatalogService/Products/{stockItemId}/ReturnPolicies/{itemReturnPolicyId}',
1495
- path: {
1496
- 'stockItemId': stockItemId,
1497
- 'itemReturnPolicyId': itemReturnPolicyId,
1498
- },
1499
- errors: {
1500
- 401: `Unauthorized`,
1501
- 403: `Forbidden`,
1502
- },
1503
- });
1504
- }
1505
- /**
1506
- * @param stockItemId
1507
- * @param itemReturnPolicyId
1508
- * @returns ItemReturnPolicyDtoEnvelope Success
1509
- * @throws ApiError
1510
- */
1511
- public static deleteApiV2CatalogServiceProductsReturnPolicies(
1512
- stockItemId: string,
1513
- itemReturnPolicyId: string,
1514
- ): CancelablePromise<ItemReturnPolicyDtoEnvelope> {
1515
- return __request(OpenAPI, {
1516
- method: 'DELETE',
1517
- url: '/api/v2/CatalogService/Products/{stockItemId}/ReturnPolicies/{itemReturnPolicyId}',
1518
- path: {
1519
- 'stockItemId': stockItemId,
1520
- 'itemReturnPolicyId': itemReturnPolicyId,
1521
- },
1522
- errors: {
1523
- 401: `Unauthorized`,
1524
- 403: `Forbidden`,
1525
- },
1526
- });
1527
- }
1528
- /**
1529
- * @param stockItemId
1530
- * @returns ItemRefundPolicyDtoListEnvelope Success
1531
- * @throws ApiError
1532
- */
1533
- public static getApiV2CatalogServiceProductsRefundPolicies(
1534
- stockItemId: string,
1535
- ): CancelablePromise<ItemRefundPolicyDtoListEnvelope> {
1536
- return __request(OpenAPI, {
1537
- method: 'GET',
1538
- url: '/api/v2/CatalogService/Products/{stockItemId}/RefundPolicies',
1539
- path: {
1540
- 'stockItemId': stockItemId,
1541
- },
1542
- errors: {
1543
- 401: `Unauthorized`,
1544
- 403: `Forbidden`,
1545
- },
1546
- });
1547
- }
1548
- /**
1549
- * @param stockItemId
1550
- * @param itemRefundPolicyId
1551
- * @returns ItemRefundPolicyDtoEnvelope Success
1552
- * @throws ApiError
1553
- */
1554
- public static getApiV2CatalogServiceProductsRefundPolicies1(
1555
- stockItemId: string,
1556
- itemRefundPolicyId: string,
1557
- ): CancelablePromise<ItemRefundPolicyDtoEnvelope> {
1558
- return __request(OpenAPI, {
1559
- method: 'GET',
1560
- url: '/api/v2/CatalogService/Products/{stockItemId}/RefundPolicies/{itemRefundPolicyId}',
1561
- path: {
1562
- 'stockItemId': stockItemId,
1563
- 'itemRefundPolicyId': itemRefundPolicyId,
1564
- },
1565
- errors: {
1566
- 401: `Unauthorized`,
1567
- 403: `Forbidden`,
1568
- },
1569
- });
1570
- }
1571
- /**
1572
- * @param stockItemId
1573
- * @param itemRefundPolicyId
1574
- * @returns ItemRefundPolicyDtoEnvelope Success
1575
- * @throws ApiError
1576
- */
1577
- public static postApiV2CatalogServiceProductsRefundPolicies(
1578
- stockItemId: string,
1579
- itemRefundPolicyId: string,
1580
- ): CancelablePromise<ItemRefundPolicyDtoEnvelope> {
1581
- return __request(OpenAPI, {
1582
- method: 'POST',
1583
- url: '/api/v2/CatalogService/Products/{stockItemId}/RefundPolicies/{itemRefundPolicyId}',
1584
- path: {
1585
- 'stockItemId': stockItemId,
1586
- 'itemRefundPolicyId': itemRefundPolicyId,
1587
- },
1588
- errors: {
1589
- 401: `Unauthorized`,
1590
- 403: `Forbidden`,
1591
- },
1592
- });
1593
- }
1594
- /**
1595
- * @param stockItemId
1596
- * @param itemRefundPolicyId
1597
- * @returns ItemRefundPolicyDtoEnvelope Success
1598
- * @throws ApiError
1599
- */
1600
- public static deleteApiV2CatalogServiceProductsRefundPolicies(
1601
- stockItemId: string,
1602
- itemRefundPolicyId: string,
1603
- ): CancelablePromise<ItemRefundPolicyDtoEnvelope> {
1604
- return __request(OpenAPI, {
1605
- method: 'DELETE',
1606
- url: '/api/v2/CatalogService/Products/{stockItemId}/RefundPolicies/{itemRefundPolicyId}',
1607
- path: {
1608
- 'stockItemId': stockItemId,
1609
- 'itemRefundPolicyId': itemRefundPolicyId,
1610
- },
1611
- errors: {
1612
- 401: `Unauthorized`,
1613
- 403: `Forbidden`,
1614
- },
1615
- });
1616
- }
1617
- /**
1618
- * @param stockItemId
1619
- * @returns ItemShippingPolicyDtoListEnvelope Success
1620
- * @throws ApiError
1621
- */
1622
- public static getApiV2CatalogServiceProductsShippingPolicies(
1623
- stockItemId: string,
1624
- ): CancelablePromise<ItemShippingPolicyDtoListEnvelope> {
1625
- return __request(OpenAPI, {
1626
- method: 'GET',
1627
- url: '/api/v2/CatalogService/Products/{stockItemId}/ShippingPolicies',
1628
- path: {
1629
- 'stockItemId': stockItemId,
1630
- },
1631
- errors: {
1632
- 401: `Unauthorized`,
1633
- 403: `Forbidden`,
1634
- },
1635
- });
1636
- }
1637
- /**
1638
- * @param stockItemId
1639
- * @param itemShippingPolicyId
1640
- * @returns ItemShippingPolicyDtoEnvelope Success
1641
- * @throws ApiError
1642
- */
1643
- public static getApiV2CatalogServiceProductsShippingPolicies1(
1644
- stockItemId: string,
1645
- itemShippingPolicyId: string,
1646
- ): CancelablePromise<ItemShippingPolicyDtoEnvelope> {
1647
- return __request(OpenAPI, {
1648
- method: 'GET',
1649
- url: '/api/v2/CatalogService/Products/{stockItemId}/ShippingPolicies/{itemShippingPolicyId}',
1650
- path: {
1651
- 'stockItemId': stockItemId,
1652
- 'itemShippingPolicyId': itemShippingPolicyId,
1653
- },
1654
- errors: {
1655
- 401: `Unauthorized`,
1656
- 403: `Forbidden`,
1657
- },
1658
- });
1659
- }
1660
- /**
1661
- * @param stockItemId
1662
- * @param itemShippingPolicyId
1663
- * @returns ItemShippingPolicyDtoEnvelope Success
1664
- * @throws ApiError
1665
- */
1666
- public static postApiV2CatalogServiceProductsShippingPolicies(
1667
- stockItemId: string,
1668
- itemShippingPolicyId: string,
1669
- ): CancelablePromise<ItemShippingPolicyDtoEnvelope> {
1670
- return __request(OpenAPI, {
1671
- method: 'POST',
1672
- url: '/api/v2/CatalogService/Products/{stockItemId}/ShippingPolicies/{itemShippingPolicyId}',
1673
- path: {
1674
- 'stockItemId': stockItemId,
1675
- 'itemShippingPolicyId': itemShippingPolicyId,
1676
- },
1677
- errors: {
1678
- 401: `Unauthorized`,
1679
- 403: `Forbidden`,
1680
- },
1681
- });
1682
- }
1683
- /**
1684
- * @param stockItemId
1685
- * @param itemShippingPolicyId
1686
- * @returns ItemShippingPolicyDtoEnvelope Success
1687
- * @throws ApiError
1688
- */
1689
- public static deleteApiV2CatalogServiceProductsShippingPolicies(
1690
- stockItemId: string,
1691
- itemShippingPolicyId: string,
1692
- ): CancelablePromise<ItemShippingPolicyDtoEnvelope> {
1693
- return __request(OpenAPI, {
1694
- method: 'DELETE',
1695
- url: '/api/v2/CatalogService/Products/{stockItemId}/ShippingPolicies/{itemShippingPolicyId}',
1696
- path: {
1697
- 'stockItemId': stockItemId,
1698
- 'itemShippingPolicyId': itemShippingPolicyId,
1699
- },
1700
- errors: {
1701
- 401: `Unauthorized`,
1702
- 403: `Forbidden`,
1703
- },
1704
- });
1705
- }
1706
- }
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { ItemAttachmentDtoEnvelope } from '../models/ItemAttachmentDtoEnvelope';
6
+ import type { ItemAttachmentDtoListEnvelope } from '../models/ItemAttachmentDtoListEnvelope';
7
+ import type { ItemAttributeOptionDtoEnvelope } from '../models/ItemAttributeOptionDtoEnvelope';
8
+ import type { ItemAttributeOptionDtoListEnvelope } from '../models/ItemAttributeOptionDtoListEnvelope';
9
+ import type { ItemBrandDtoEnvelope } from '../models/ItemBrandDtoEnvelope';
10
+ import type { ItemBrandDtoListEnvelope } from '../models/ItemBrandDtoListEnvelope';
11
+ import type { ItemCategoryDtoEnvelope } from '../models/ItemCategoryDtoEnvelope';
12
+ import type { ItemCategoryDtoListEnvelope } from '../models/ItemCategoryDtoListEnvelope';
13
+ import type { ItemGoogleCategoryDtoEnvelope } from '../models/ItemGoogleCategoryDtoEnvelope';
14
+ import type { ItemGoogleCategoryDtoListEnvelope } from '../models/ItemGoogleCategoryDtoListEnvelope';
15
+ import type { ItemImageDtoEnvelope } from '../models/ItemImageDtoEnvelope';
16
+ import type { ItemImageDtoListEnvelope } from '../models/ItemImageDtoListEnvelope';
17
+ import type { ItemQuestionDtoEnvelope } from '../models/ItemQuestionDtoEnvelope';
18
+ import type { ItemQuestionDtoListEnvelope } from '../models/ItemQuestionDtoListEnvelope';
19
+ import type { ItemQuestionRecordCreateDto } from '../models/ItemQuestionRecordCreateDto';
20
+ import type { ItemRefundPolicyDtoEnvelope } from '../models/ItemRefundPolicyDtoEnvelope';
21
+ import type { ItemRefundPolicyDtoListEnvelope } from '../models/ItemRefundPolicyDtoListEnvelope';
22
+ import type { ItemReturnPolicyDtoEnvelope } from '../models/ItemReturnPolicyDtoEnvelope';
23
+ import type { ItemReturnPolicyDtoListEnvelope } from '../models/ItemReturnPolicyDtoListEnvelope';
24
+ import type { ItemReviewDtoEnvelope } from '../models/ItemReviewDtoEnvelope';
25
+ import type { ItemReviewDtoListEnvelope } from '../models/ItemReviewDtoListEnvelope';
26
+ import type { ItemReviewRecordCreateDto } from '../models/ItemReviewRecordCreateDto';
27
+ import type { ItemShippingPolicyDtoEnvelope } from '../models/ItemShippingPolicyDtoEnvelope';
28
+ import type { ItemShippingPolicyDtoListEnvelope } from '../models/ItemShippingPolicyDtoListEnvelope';
29
+ import type { ItemTagDtoEnvelope } from '../models/ItemTagDtoEnvelope';
30
+ import type { ItemTagDtoListEnvelope } from '../models/ItemTagDtoListEnvelope';
31
+ import type { ItemTaxPolicyDtoEnvelope } from '../models/ItemTaxPolicyDtoEnvelope';
32
+ import type { ItemTaxPolicyDtoListEnvelope } from '../models/ItemTaxPolicyDtoListEnvelope';
33
+ import type { ItemTypeDtoEnvelope } from '../models/ItemTypeDtoEnvelope';
34
+ import type { ItemTypeDtoListEnvelope } from '../models/ItemTypeDtoListEnvelope';
35
+ import type { ItemWarrantyPolicyDtoEnvelope } from '../models/ItemWarrantyPolicyDtoEnvelope';
36
+ import type { ItemWarrantyPolicyDtoListEnvelope } from '../models/ItemWarrantyPolicyDtoListEnvelope';
37
+ import type { PricingRuleDtoEnvelope } from '../models/PricingRuleDtoEnvelope';
38
+ import type { PricingRuleDtoListEnvelope } from '../models/PricingRuleDtoListEnvelope';
39
+ import type { StockItemCreateDto } from '../models/StockItemCreateDto';
40
+ import type { StockItemDtoEnvelope } from '../models/StockItemDtoEnvelope';
41
+ import type { StockItemDtoListEnvelope } from '../models/StockItemDtoListEnvelope';
42
+ import type { StockItemUpdateDto } from '../models/StockItemUpdateDto';
43
+ import type { CancelablePromise } from '../core/CancelablePromise';
44
+ import { OpenAPI } from '../core/OpenAPI';
45
+ import { request as __request } from '../core/request';
46
+ export class ProductsService {
47
+ /**
48
+ * @param pageNumber
49
+ * @param pageSize
50
+ * @returns StockItemDtoListEnvelope OK
51
+ * @throws ApiError
52
+ */
53
+ public static getApiV2CatalogServiceProducts(
54
+ pageNumber?: number,
55
+ pageSize?: number,
56
+ ): CancelablePromise<StockItemDtoListEnvelope> {
57
+ return __request(OpenAPI, {
58
+ method: 'GET',
59
+ url: '/api/v2/CatalogService/Products',
60
+ query: {
61
+ 'pageNumber': pageNumber,
62
+ 'pageSize': pageSize,
63
+ },
64
+ errors: {
65
+ 401: `Unauthorized`,
66
+ 403: `Forbidden`,
67
+ },
68
+ });
69
+ }
70
+ /**
71
+ * @returns StockItemDtoListEnvelope OK
72
+ * @throws ApiError
73
+ */
74
+ public static getApiV2CatalogServiceProductsCount(): CancelablePromise<StockItemDtoListEnvelope> {
75
+ return __request(OpenAPI, {
76
+ method: 'GET',
77
+ url: '/api/v2/CatalogService/Products/Count',
78
+ errors: {
79
+ 401: `Unauthorized`,
80
+ 403: `Forbidden`,
81
+ },
82
+ });
83
+ }
84
+ /**
85
+ * @param tenantId
86
+ * @param pageNumber
87
+ * @param pageSize
88
+ * @returns StockItemDtoListEnvelope OK
89
+ * @throws ApiError
90
+ */
91
+ public static getApiV2CatalogServiceProductsByBusiness(
92
+ tenantId: string,
93
+ pageNumber?: number,
94
+ pageSize?: number,
95
+ ): CancelablePromise<StockItemDtoListEnvelope> {
96
+ return __request(OpenAPI, {
97
+ method: 'GET',
98
+ url: '/api/v2/CatalogService/Products/ByBusiness/{tenantId}',
99
+ path: {
100
+ 'tenantId': tenantId,
101
+ },
102
+ query: {
103
+ 'pageNumber': pageNumber,
104
+ 'pageSize': pageSize,
105
+ },
106
+ errors: {
107
+ 401: `Unauthorized`,
108
+ 403: `Forbidden`,
109
+ },
110
+ });
111
+ }
112
+ /**
113
+ * @param tenantId
114
+ * @returns StockItemDtoListEnvelope OK
115
+ * @throws ApiError
116
+ */
117
+ public static getApiV2CatalogServiceProductsByBusinessCount(
118
+ tenantId: string,
119
+ ): CancelablePromise<StockItemDtoListEnvelope> {
120
+ return __request(OpenAPI, {
121
+ method: 'GET',
122
+ url: '/api/v2/CatalogService/Products/ByBusiness/{tenantId}/Count',
123
+ path: {
124
+ 'tenantId': tenantId,
125
+ },
126
+ errors: {
127
+ 401: `Unauthorized`,
128
+ 403: `Forbidden`,
129
+ },
130
+ });
131
+ }
132
+ /**
133
+ * @param stockItemId
134
+ * @returns StockItemDtoEnvelope OK
135
+ * @throws ApiError
136
+ */
137
+ public static getApiV2CatalogServiceProductsDetails(
138
+ stockItemId: string,
139
+ ): CancelablePromise<StockItemDtoEnvelope> {
140
+ return __request(OpenAPI, {
141
+ method: 'GET',
142
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Details',
143
+ path: {
144
+ 'stockItemId': stockItemId,
145
+ },
146
+ errors: {
147
+ 401: `Unauthorized`,
148
+ 403: `Forbidden`,
149
+ },
150
+ });
151
+ }
152
+ /**
153
+ * @param tenantId
154
+ * @param requestBody
155
+ * @returns any OK
156
+ * @throws ApiError
157
+ */
158
+ public static postApiV2CatalogServiceProductsCreate(
159
+ tenantId: string,
160
+ requestBody?: StockItemCreateDto,
161
+ ): CancelablePromise<any> {
162
+ return __request(OpenAPI, {
163
+ method: 'POST',
164
+ url: '/api/v2/CatalogService/Products/Create',
165
+ query: {
166
+ 'tenantId': tenantId,
167
+ },
168
+ body: requestBody,
169
+ mediaType: 'application/json',
170
+ errors: {
171
+ 401: `Unauthorized`,
172
+ 403: `Forbidden`,
173
+ },
174
+ });
175
+ }
176
+ /**
177
+ * @param tenantId
178
+ * @param stockItemId
179
+ * @param requestBody
180
+ * @returns any OK
181
+ * @throws ApiError
182
+ */
183
+ public static putApiV2CatalogServiceProductsUpdate(
184
+ tenantId: string,
185
+ stockItemId: string,
186
+ requestBody?: StockItemUpdateDto,
187
+ ): CancelablePromise<any> {
188
+ return __request(OpenAPI, {
189
+ method: 'PUT',
190
+ url: '/api/v2/CatalogService/Products/Update/{stockItemId}',
191
+ path: {
192
+ 'stockItemId': stockItemId,
193
+ },
194
+ query: {
195
+ 'tenantId': tenantId,
196
+ },
197
+ body: requestBody,
198
+ mediaType: 'application/json',
199
+ errors: {
200
+ 401: `Unauthorized`,
201
+ 403: `Forbidden`,
202
+ },
203
+ });
204
+ }
205
+ /**
206
+ * @param tenantId
207
+ * @param stockItemId
208
+ * @returns any OK
209
+ * @throws ApiError
210
+ */
211
+ public static deleteApiV2CatalogServiceProductsDelete(
212
+ tenantId: string,
213
+ stockItemId: string,
214
+ ): CancelablePromise<any> {
215
+ return __request(OpenAPI, {
216
+ method: 'DELETE',
217
+ url: '/api/v2/CatalogService/Products/Delete/{stockItemId}',
218
+ path: {
219
+ 'stockItemId': stockItemId,
220
+ },
221
+ query: {
222
+ 'tenantId': tenantId,
223
+ },
224
+ errors: {
225
+ 401: `Unauthorized`,
226
+ 403: `Forbidden`,
227
+ },
228
+ });
229
+ }
230
+ /**
231
+ * @param stockItemId
232
+ * @param pageNumber
233
+ * @param pageSize
234
+ * @returns ItemImageDtoListEnvelope OK
235
+ * @throws ApiError
236
+ */
237
+ public static getApiV2CatalogServiceProductsImages(
238
+ stockItemId: string,
239
+ pageNumber?: number,
240
+ pageSize?: number,
241
+ ): CancelablePromise<ItemImageDtoListEnvelope> {
242
+ return __request(OpenAPI, {
243
+ method: 'GET',
244
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Images',
245
+ path: {
246
+ 'stockItemId': stockItemId,
247
+ },
248
+ query: {
249
+ 'pageNumber': pageNumber,
250
+ 'pageSize': pageSize,
251
+ },
252
+ errors: {
253
+ 401: `Unauthorized`,
254
+ 403: `Forbidden`,
255
+ },
256
+ });
257
+ }
258
+ /**
259
+ * @param stockItemId
260
+ * @param itemImageId
261
+ * @returns ItemImageDtoEnvelope OK
262
+ * @throws ApiError
263
+ */
264
+ public static getApiV2CatalogServiceProductsImages1(
265
+ stockItemId: string,
266
+ itemImageId: string,
267
+ ): CancelablePromise<ItemImageDtoEnvelope> {
268
+ return __request(OpenAPI, {
269
+ method: 'GET',
270
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Images/{itemImageId}',
271
+ path: {
272
+ 'stockItemId': stockItemId,
273
+ 'itemImageId': itemImageId,
274
+ },
275
+ errors: {
276
+ 401: `Unauthorized`,
277
+ 403: `Forbidden`,
278
+ },
279
+ });
280
+ }
281
+ /**
282
+ * @param stockItemId
283
+ * @param itemImageId
284
+ * @returns ItemImageDtoEnvelope OK
285
+ * @throws ApiError
286
+ */
287
+ public static postApiV2CatalogServiceProductsImages(
288
+ stockItemId: string,
289
+ itemImageId: string,
290
+ ): CancelablePromise<ItemImageDtoEnvelope> {
291
+ return __request(OpenAPI, {
292
+ method: 'POST',
293
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Images/{itemImageId}',
294
+ path: {
295
+ 'stockItemId': stockItemId,
296
+ 'itemImageId': itemImageId,
297
+ },
298
+ errors: {
299
+ 401: `Unauthorized`,
300
+ 403: `Forbidden`,
301
+ },
302
+ });
303
+ }
304
+ /**
305
+ * @param stockItemId
306
+ * @param itemImageId
307
+ * @returns ItemImageDtoEnvelope OK
308
+ * @throws ApiError
309
+ */
310
+ public static deleteApiV2CatalogServiceProductsImages(
311
+ stockItemId: string,
312
+ itemImageId: string,
313
+ ): CancelablePromise<ItemImageDtoEnvelope> {
314
+ return __request(OpenAPI, {
315
+ method: 'DELETE',
316
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Images/{itemImageId}',
317
+ path: {
318
+ 'stockItemId': stockItemId,
319
+ 'itemImageId': itemImageId,
320
+ },
321
+ errors: {
322
+ 401: `Unauthorized`,
323
+ 403: `Forbidden`,
324
+ },
325
+ });
326
+ }
327
+ /**
328
+ * @param stockItemId
329
+ * @returns ItemBrandDtoListEnvelope OK
330
+ * @throws ApiError
331
+ */
332
+ public static getApiV2CatalogServiceProductsBrands(
333
+ stockItemId: string,
334
+ ): CancelablePromise<ItemBrandDtoListEnvelope> {
335
+ return __request(OpenAPI, {
336
+ method: 'GET',
337
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Brands',
338
+ path: {
339
+ 'stockItemId': stockItemId,
340
+ },
341
+ errors: {
342
+ 401: `Unauthorized`,
343
+ 403: `Forbidden`,
344
+ },
345
+ });
346
+ }
347
+ /**
348
+ * @param stockItemId
349
+ * @param itemBrandId
350
+ * @returns ItemBrandDtoEnvelope OK
351
+ * @throws ApiError
352
+ */
353
+ public static getApiV2CatalogServiceProductsBrands1(
354
+ stockItemId: string,
355
+ itemBrandId: string,
356
+ ): CancelablePromise<ItemBrandDtoEnvelope> {
357
+ return __request(OpenAPI, {
358
+ method: 'GET',
359
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Brands/{itemBrandId}',
360
+ path: {
361
+ 'stockItemId': stockItemId,
362
+ 'itemBrandId': itemBrandId,
363
+ },
364
+ errors: {
365
+ 401: `Unauthorized`,
366
+ 403: `Forbidden`,
367
+ },
368
+ });
369
+ }
370
+ /**
371
+ * @param stockItemId
372
+ * @param itemBrandId
373
+ * @returns ItemBrandDtoEnvelope OK
374
+ * @throws ApiError
375
+ */
376
+ public static postApiV2CatalogServiceProductsBrands(
377
+ stockItemId: string,
378
+ itemBrandId: string,
379
+ ): CancelablePromise<ItemBrandDtoEnvelope> {
380
+ return __request(OpenAPI, {
381
+ method: 'POST',
382
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Brands/{itemBrandId}',
383
+ path: {
384
+ 'stockItemId': stockItemId,
385
+ 'itemBrandId': itemBrandId,
386
+ },
387
+ errors: {
388
+ 401: `Unauthorized`,
389
+ 403: `Forbidden`,
390
+ },
391
+ });
392
+ }
393
+ /**
394
+ * @param stockItemId
395
+ * @param itemBrandId
396
+ * @returns ItemBrandDtoEnvelope OK
397
+ * @throws ApiError
398
+ */
399
+ public static deleteApiV2CatalogServiceProductsBrands(
400
+ stockItemId: string,
401
+ itemBrandId: string,
402
+ ): CancelablePromise<ItemBrandDtoEnvelope> {
403
+ return __request(OpenAPI, {
404
+ method: 'DELETE',
405
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Brands/{itemBrandId}',
406
+ path: {
407
+ 'stockItemId': stockItemId,
408
+ 'itemBrandId': itemBrandId,
409
+ },
410
+ errors: {
411
+ 401: `Unauthorized`,
412
+ 403: `Forbidden`,
413
+ },
414
+ });
415
+ }
416
+ /**
417
+ * @param stockItemId
418
+ * @returns ItemCategoryDtoListEnvelope OK
419
+ * @throws ApiError
420
+ */
421
+ public static getApiV2CatalogServiceProductsCategories(
422
+ stockItemId: string,
423
+ ): CancelablePromise<ItemCategoryDtoListEnvelope> {
424
+ return __request(OpenAPI, {
425
+ method: 'GET',
426
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Categories',
427
+ path: {
428
+ 'stockItemId': stockItemId,
429
+ },
430
+ errors: {
431
+ 401: `Unauthorized`,
432
+ 403: `Forbidden`,
433
+ },
434
+ });
435
+ }
436
+ /**
437
+ * @param stockItemId
438
+ * @param itemCategoryId
439
+ * @returns ItemCategoryDtoEnvelope OK
440
+ * @throws ApiError
441
+ */
442
+ public static getApiV2CatalogServiceProductsCategories1(
443
+ stockItemId: string,
444
+ itemCategoryId: string,
445
+ ): CancelablePromise<ItemCategoryDtoEnvelope> {
446
+ return __request(OpenAPI, {
447
+ method: 'GET',
448
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Categories/{itemCategoryId}',
449
+ path: {
450
+ 'stockItemId': stockItemId,
451
+ 'itemCategoryId': itemCategoryId,
452
+ },
453
+ errors: {
454
+ 401: `Unauthorized`,
455
+ 403: `Forbidden`,
456
+ },
457
+ });
458
+ }
459
+ /**
460
+ * @param stockItemId
461
+ * @param itemCategoryId
462
+ * @returns ItemCategoryDtoEnvelope OK
463
+ * @throws ApiError
464
+ */
465
+ public static postApiV2CatalogServiceProductsCategories(
466
+ stockItemId: string,
467
+ itemCategoryId: string,
468
+ ): CancelablePromise<ItemCategoryDtoEnvelope> {
469
+ return __request(OpenAPI, {
470
+ method: 'POST',
471
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Categories/{itemCategoryId}',
472
+ path: {
473
+ 'stockItemId': stockItemId,
474
+ 'itemCategoryId': itemCategoryId,
475
+ },
476
+ errors: {
477
+ 401: `Unauthorized`,
478
+ 403: `Forbidden`,
479
+ },
480
+ });
481
+ }
482
+ /**
483
+ * @param stockItemId
484
+ * @param itemCategoryId
485
+ * @returns ItemCategoryDtoEnvelope OK
486
+ * @throws ApiError
487
+ */
488
+ public static deleteApiV2CatalogServiceProductsCategories(
489
+ stockItemId: string,
490
+ itemCategoryId: string,
491
+ ): CancelablePromise<ItemCategoryDtoEnvelope> {
492
+ return __request(OpenAPI, {
493
+ method: 'DELETE',
494
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Categories/{itemCategoryId}',
495
+ path: {
496
+ 'stockItemId': stockItemId,
497
+ 'itemCategoryId': itemCategoryId,
498
+ },
499
+ errors: {
500
+ 401: `Unauthorized`,
501
+ 403: `Forbidden`,
502
+ },
503
+ });
504
+ }
505
+ /**
506
+ * @param stockItemId
507
+ * @returns ItemTypeDtoListEnvelope OK
508
+ * @throws ApiError
509
+ */
510
+ public static getApiV2CatalogServiceProductsTypes(
511
+ stockItemId: string,
512
+ ): CancelablePromise<ItemTypeDtoListEnvelope> {
513
+ return __request(OpenAPI, {
514
+ method: 'GET',
515
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Types',
516
+ path: {
517
+ 'stockItemId': stockItemId,
518
+ },
519
+ errors: {
520
+ 401: `Unauthorized`,
521
+ 403: `Forbidden`,
522
+ },
523
+ });
524
+ }
525
+ /**
526
+ * @param stockItemId
527
+ * @param itemTypeId
528
+ * @returns ItemTypeDtoEnvelope OK
529
+ * @throws ApiError
530
+ */
531
+ public static getApiV2CatalogServiceProductsTypes1(
532
+ stockItemId: string,
533
+ itemTypeId: string,
534
+ ): CancelablePromise<ItemTypeDtoEnvelope> {
535
+ return __request(OpenAPI, {
536
+ method: 'GET',
537
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Types/{itemTypeId}',
538
+ path: {
539
+ 'stockItemId': stockItemId,
540
+ 'itemTypeId': itemTypeId,
541
+ },
542
+ errors: {
543
+ 401: `Unauthorized`,
544
+ 403: `Forbidden`,
545
+ },
546
+ });
547
+ }
548
+ /**
549
+ * @param stockItemId
550
+ * @param itemTypeId
551
+ * @returns ItemTypeDtoEnvelope OK
552
+ * @throws ApiError
553
+ */
554
+ public static postApiV2CatalogServiceProductsTypes(
555
+ stockItemId: string,
556
+ itemTypeId: string,
557
+ ): CancelablePromise<ItemTypeDtoEnvelope> {
558
+ return __request(OpenAPI, {
559
+ method: 'POST',
560
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Types/{itemTypeId}',
561
+ path: {
562
+ 'stockItemId': stockItemId,
563
+ 'itemTypeId': itemTypeId,
564
+ },
565
+ errors: {
566
+ 401: `Unauthorized`,
567
+ 403: `Forbidden`,
568
+ },
569
+ });
570
+ }
571
+ /**
572
+ * @param stockItemId
573
+ * @param itemTypeId
574
+ * @returns ItemTypeDtoEnvelope OK
575
+ * @throws ApiError
576
+ */
577
+ public static deleteApiV2CatalogServiceProductsTypes(
578
+ stockItemId: string,
579
+ itemTypeId: string,
580
+ ): CancelablePromise<ItemTypeDtoEnvelope> {
581
+ return __request(OpenAPI, {
582
+ method: 'DELETE',
583
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Types/{itemTypeId}',
584
+ path: {
585
+ 'stockItemId': stockItemId,
586
+ 'itemTypeId': itemTypeId,
587
+ },
588
+ errors: {
589
+ 401: `Unauthorized`,
590
+ 403: `Forbidden`,
591
+ },
592
+ });
593
+ }
594
+ /**
595
+ * @param stockItemId
596
+ * @returns ItemTagDtoListEnvelope OK
597
+ * @throws ApiError
598
+ */
599
+ public static getApiV2CatalogServiceProductsTags(
600
+ stockItemId: string,
601
+ ): CancelablePromise<ItemTagDtoListEnvelope> {
602
+ return __request(OpenAPI, {
603
+ method: 'GET',
604
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Tags',
605
+ path: {
606
+ 'stockItemId': stockItemId,
607
+ },
608
+ errors: {
609
+ 401: `Unauthorized`,
610
+ 403: `Forbidden`,
611
+ },
612
+ });
613
+ }
614
+ /**
615
+ * @param stockItemId
616
+ * @param itemTagId
617
+ * @returns ItemTagDtoEnvelope OK
618
+ * @throws ApiError
619
+ */
620
+ public static getApiV2CatalogServiceProductsTags1(
621
+ stockItemId: string,
622
+ itemTagId: string,
623
+ ): CancelablePromise<ItemTagDtoEnvelope> {
624
+ return __request(OpenAPI, {
625
+ method: 'GET',
626
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Tags/{itemTagId}',
627
+ path: {
628
+ 'stockItemId': stockItemId,
629
+ 'itemTagId': itemTagId,
630
+ },
631
+ errors: {
632
+ 401: `Unauthorized`,
633
+ 403: `Forbidden`,
634
+ },
635
+ });
636
+ }
637
+ /**
638
+ * @param stockItemId
639
+ * @param itemTagId
640
+ * @returns ItemTagDtoEnvelope OK
641
+ * @throws ApiError
642
+ */
643
+ public static postApiV2CatalogServiceProductsTags(
644
+ stockItemId: string,
645
+ itemTagId: string,
646
+ ): CancelablePromise<ItemTagDtoEnvelope> {
647
+ return __request(OpenAPI, {
648
+ method: 'POST',
649
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Tags/{itemTagId}',
650
+ path: {
651
+ 'stockItemId': stockItemId,
652
+ 'itemTagId': itemTagId,
653
+ },
654
+ errors: {
655
+ 401: `Unauthorized`,
656
+ 403: `Forbidden`,
657
+ },
658
+ });
659
+ }
660
+ /**
661
+ * @param stockItemId
662
+ * @param itemTagId
663
+ * @returns ItemTagDtoEnvelope OK
664
+ * @throws ApiError
665
+ */
666
+ public static deleteApiV2CatalogServiceProductsTags(
667
+ stockItemId: string,
668
+ itemTagId: string,
669
+ ): CancelablePromise<ItemTagDtoEnvelope> {
670
+ return __request(OpenAPI, {
671
+ method: 'DELETE',
672
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Tags/{itemTagId}',
673
+ path: {
674
+ 'stockItemId': stockItemId,
675
+ 'itemTagId': itemTagId,
676
+ },
677
+ errors: {
678
+ 401: `Unauthorized`,
679
+ 403: `Forbidden`,
680
+ },
681
+ });
682
+ }
683
+ /**
684
+ * @param stockItemId
685
+ * @returns ItemReviewDtoListEnvelope OK
686
+ * @throws ApiError
687
+ */
688
+ public static getApiV2CatalogServiceProductsReviews(
689
+ stockItemId: string,
690
+ ): CancelablePromise<ItemReviewDtoListEnvelope> {
691
+ return __request(OpenAPI, {
692
+ method: 'GET',
693
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Reviews',
694
+ path: {
695
+ 'stockItemId': stockItemId,
696
+ },
697
+ errors: {
698
+ 401: `Unauthorized`,
699
+ 403: `Forbidden`,
700
+ },
701
+ });
702
+ }
703
+ /**
704
+ * @param stockItemId
705
+ * @param requestBody
706
+ * @returns ItemReviewDtoEnvelope OK
707
+ * @throws ApiError
708
+ */
709
+ public static postApiV2CatalogServiceProductsReviews(
710
+ stockItemId: string,
711
+ requestBody?: ItemReviewRecordCreateDto,
712
+ ): CancelablePromise<ItemReviewDtoEnvelope> {
713
+ return __request(OpenAPI, {
714
+ method: 'POST',
715
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Reviews',
716
+ path: {
717
+ 'stockItemId': stockItemId,
718
+ },
719
+ body: requestBody,
720
+ mediaType: 'application/json',
721
+ errors: {
722
+ 401: `Unauthorized`,
723
+ 403: `Forbidden`,
724
+ },
725
+ });
726
+ }
727
+ /**
728
+ * @param stockItemId
729
+ * @param itemReviewId
730
+ * @returns ItemReviewDtoEnvelope OK
731
+ * @throws ApiError
732
+ */
733
+ public static getApiV2CatalogServiceProductsReviews1(
734
+ stockItemId: string,
735
+ itemReviewId: string,
736
+ ): CancelablePromise<ItemReviewDtoEnvelope> {
737
+ return __request(OpenAPI, {
738
+ method: 'GET',
739
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Reviews/{itemReviewId}',
740
+ path: {
741
+ 'stockItemId': stockItemId,
742
+ 'itemReviewId': itemReviewId,
743
+ },
744
+ errors: {
745
+ 401: `Unauthorized`,
746
+ 403: `Forbidden`,
747
+ },
748
+ });
749
+ }
750
+ /**
751
+ * @param stockItemId
752
+ * @param itemReviewId
753
+ * @returns ItemReviewDtoEnvelope OK
754
+ * @throws ApiError
755
+ */
756
+ public static deleteApiV2CatalogServiceProductsReviews(
757
+ stockItemId: string,
758
+ itemReviewId: string,
759
+ ): CancelablePromise<ItemReviewDtoEnvelope> {
760
+ return __request(OpenAPI, {
761
+ method: 'DELETE',
762
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Reviews/{itemReviewId}',
763
+ path: {
764
+ 'stockItemId': stockItemId,
765
+ 'itemReviewId': itemReviewId,
766
+ },
767
+ errors: {
768
+ 401: `Unauthorized`,
769
+ 403: `Forbidden`,
770
+ },
771
+ });
772
+ }
773
+ /**
774
+ * @param stockItemId
775
+ * @returns ItemQuestionDtoListEnvelope OK
776
+ * @throws ApiError
777
+ */
778
+ public static getApiV2CatalogServiceProductsQuestions(
779
+ stockItemId: string,
780
+ ): CancelablePromise<ItemQuestionDtoListEnvelope> {
781
+ return __request(OpenAPI, {
782
+ method: 'GET',
783
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Questions',
784
+ path: {
785
+ 'stockItemId': stockItemId,
786
+ },
787
+ errors: {
788
+ 401: `Unauthorized`,
789
+ 403: `Forbidden`,
790
+ },
791
+ });
792
+ }
793
+ /**
794
+ * @param stockItemId
795
+ * @param requestBody
796
+ * @returns ItemQuestionDtoEnvelope OK
797
+ * @throws ApiError
798
+ */
799
+ public static postApiV2CatalogServiceProductsQuestions(
800
+ stockItemId: string,
801
+ requestBody?: ItemQuestionRecordCreateDto,
802
+ ): CancelablePromise<ItemQuestionDtoEnvelope> {
803
+ return __request(OpenAPI, {
804
+ method: 'POST',
805
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Questions',
806
+ path: {
807
+ 'stockItemId': stockItemId,
808
+ },
809
+ body: requestBody,
810
+ mediaType: 'application/json',
811
+ errors: {
812
+ 401: `Unauthorized`,
813
+ 403: `Forbidden`,
814
+ },
815
+ });
816
+ }
817
+ /**
818
+ * @param stockItemId
819
+ * @param itemQuestionId
820
+ * @returns ItemQuestionDtoEnvelope OK
821
+ * @throws ApiError
822
+ */
823
+ public static getApiV2CatalogServiceProductsQuestions1(
824
+ stockItemId: string,
825
+ itemQuestionId: string,
826
+ ): CancelablePromise<ItemQuestionDtoEnvelope> {
827
+ return __request(OpenAPI, {
828
+ method: 'GET',
829
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Questions/{itemQuestionId}',
830
+ path: {
831
+ 'stockItemId': stockItemId,
832
+ 'itemQuestionId': itemQuestionId,
833
+ },
834
+ errors: {
835
+ 401: `Unauthorized`,
836
+ 403: `Forbidden`,
837
+ },
838
+ });
839
+ }
840
+ /**
841
+ * @param stockItemId
842
+ * @param itemQuestionId
843
+ * @returns ItemQuestionDtoEnvelope OK
844
+ * @throws ApiError
845
+ */
846
+ public static deleteApiV2CatalogServiceProductsQuestions(
847
+ stockItemId: string,
848
+ itemQuestionId: string,
849
+ ): CancelablePromise<ItemQuestionDtoEnvelope> {
850
+ return __request(OpenAPI, {
851
+ method: 'DELETE',
852
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Questions/{itemQuestionId}',
853
+ path: {
854
+ 'stockItemId': stockItemId,
855
+ 'itemQuestionId': itemQuestionId,
856
+ },
857
+ errors: {
858
+ 401: `Unauthorized`,
859
+ 403: `Forbidden`,
860
+ },
861
+ });
862
+ }
863
+ /**
864
+ * @param stockItemId
865
+ * @returns ItemAttachmentDtoListEnvelope OK
866
+ * @throws ApiError
867
+ */
868
+ public static getApiV2CatalogServiceProductsAttachments(
869
+ stockItemId: string,
870
+ ): CancelablePromise<ItemAttachmentDtoListEnvelope> {
871
+ return __request(OpenAPI, {
872
+ method: 'GET',
873
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Attachments',
874
+ path: {
875
+ 'stockItemId': stockItemId,
876
+ },
877
+ errors: {
878
+ 401: `Unauthorized`,
879
+ 403: `Forbidden`,
880
+ },
881
+ });
882
+ }
883
+ /**
884
+ * @param stockItemId
885
+ * @param itemAttachmentId
886
+ * @returns ItemAttachmentDtoEnvelope OK
887
+ * @throws ApiError
888
+ */
889
+ public static getApiV2CatalogServiceProductsAttachments1(
890
+ stockItemId: string,
891
+ itemAttachmentId: string,
892
+ ): CancelablePromise<ItemAttachmentDtoEnvelope> {
893
+ return __request(OpenAPI, {
894
+ method: 'GET',
895
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Attachments/{itemAttachmentId}',
896
+ path: {
897
+ 'stockItemId': stockItemId,
898
+ 'itemAttachmentId': itemAttachmentId,
899
+ },
900
+ errors: {
901
+ 401: `Unauthorized`,
902
+ 403: `Forbidden`,
903
+ },
904
+ });
905
+ }
906
+ /**
907
+ * @param stockItemId
908
+ * @param itemAttachmentId
909
+ * @param itemId
910
+ * @param notes
911
+ * @param title
912
+ * @param author
913
+ * @param isFolder
914
+ * @param fileName
915
+ * @param abstract
916
+ * @param keyWords
917
+ * @param validResponse
918
+ * @param parentFileUploadId
919
+ * @param filePath
920
+ * @param iD
921
+ * @param timestamp
922
+ * @param requestBody
923
+ * @returns ItemAttachmentDtoEnvelope OK
924
+ * @throws ApiError
925
+ */
926
+ public static postApiV2CatalogServiceProductsAttachments(
927
+ stockItemId: string,
928
+ itemAttachmentId: string,
929
+ itemId?: string,
930
+ notes?: string,
931
+ title?: string,
932
+ author?: string,
933
+ isFolder?: boolean,
934
+ fileName?: string,
935
+ abstract?: string,
936
+ keyWords?: string,
937
+ validResponse?: boolean,
938
+ parentFileUploadId?: string,
939
+ filePath?: string,
940
+ iD?: string,
941
+ timestamp?: string,
942
+ requestBody?: {
943
+ file?: Blob;
944
+ },
945
+ ): CancelablePromise<ItemAttachmentDtoEnvelope> {
946
+ return __request(OpenAPI, {
947
+ method: 'POST',
948
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Attachments/{itemAttachmentId}',
949
+ path: {
950
+ 'stockItemId': stockItemId,
951
+ 'itemAttachmentId': itemAttachmentId,
952
+ },
953
+ query: {
954
+ 'itemID': itemId,
955
+ 'notes': notes,
956
+ 'title': title,
957
+ 'author': author,
958
+ 'isFolder': isFolder,
959
+ 'fileName': fileName,
960
+ 'abstract': abstract,
961
+ 'keyWords': keyWords,
962
+ 'validResponse': validResponse,
963
+ 'parentFileUploadID': parentFileUploadId,
964
+ 'filePath': filePath,
965
+ 'iD': iD,
966
+ 'timestamp': timestamp,
967
+ },
968
+ body: requestBody,
969
+ mediaType: 'application/json',
970
+ errors: {
971
+ 401: `Unauthorized`,
972
+ 403: `Forbidden`,
973
+ },
974
+ });
975
+ }
976
+ /**
977
+ * @param stockItemId
978
+ * @param itemAttachmentId
979
+ * @returns ItemAttachmentDtoEnvelope OK
980
+ * @throws ApiError
981
+ */
982
+ public static deleteApiV2CatalogServiceProductsAttachments(
983
+ stockItemId: string,
984
+ itemAttachmentId: string,
985
+ ): CancelablePromise<ItemAttachmentDtoEnvelope> {
986
+ return __request(OpenAPI, {
987
+ method: 'DELETE',
988
+ url: '/api/v2/CatalogService/Products/{stockItemId}/Attachments/{itemAttachmentId}',
989
+ path: {
990
+ 'stockItemId': stockItemId,
991
+ 'itemAttachmentId': itemAttachmentId,
992
+ },
993
+ errors: {
994
+ 401: `Unauthorized`,
995
+ 403: `Forbidden`,
996
+ },
997
+ });
998
+ }
999
+ /**
1000
+ * @param stockItemId
1001
+ * @returns ItemGoogleCategoryDtoListEnvelope OK
1002
+ * @throws ApiError
1003
+ */
1004
+ public static getApiV2CatalogServiceProductsGoogleCategories(
1005
+ stockItemId: string,
1006
+ ): CancelablePromise<ItemGoogleCategoryDtoListEnvelope> {
1007
+ return __request(OpenAPI, {
1008
+ method: 'GET',
1009
+ url: '/api/v2/CatalogService/Products/{stockItemId}/GoogleCategories',
1010
+ path: {
1011
+ 'stockItemId': stockItemId,
1012
+ },
1013
+ errors: {
1014
+ 401: `Unauthorized`,
1015
+ 403: `Forbidden`,
1016
+ },
1017
+ });
1018
+ }
1019
+ /**
1020
+ * @param stockItemId
1021
+ * @param itemGoogleCategoryId
1022
+ * @returns ItemGoogleCategoryDtoEnvelope OK
1023
+ * @throws ApiError
1024
+ */
1025
+ public static getApiV2CatalogServiceProductsGoogleCategories1(
1026
+ stockItemId: string,
1027
+ itemGoogleCategoryId: string,
1028
+ ): CancelablePromise<ItemGoogleCategoryDtoEnvelope> {
1029
+ return __request(OpenAPI, {
1030
+ method: 'GET',
1031
+ url: '/api/v2/CatalogService/Products/{stockItemId}/GoogleCategories/{itemGoogleCategoryId}',
1032
+ path: {
1033
+ 'stockItemId': stockItemId,
1034
+ 'itemGoogleCategoryId': itemGoogleCategoryId,
1035
+ },
1036
+ errors: {
1037
+ 401: `Unauthorized`,
1038
+ 403: `Forbidden`,
1039
+ },
1040
+ });
1041
+ }
1042
+ /**
1043
+ * @param stockItemId
1044
+ * @param itemGoogleCategoryId
1045
+ * @returns ItemGoogleCategoryDtoEnvelope OK
1046
+ * @throws ApiError
1047
+ */
1048
+ public static postApiV2CatalogServiceProductsGoogleCategories(
1049
+ stockItemId: string,
1050
+ itemGoogleCategoryId: string,
1051
+ ): CancelablePromise<ItemGoogleCategoryDtoEnvelope> {
1052
+ return __request(OpenAPI, {
1053
+ method: 'POST',
1054
+ url: '/api/v2/CatalogService/Products/{stockItemId}/GoogleCategories/{itemGoogleCategoryId}',
1055
+ path: {
1056
+ 'stockItemId': stockItemId,
1057
+ 'itemGoogleCategoryId': itemGoogleCategoryId,
1058
+ },
1059
+ errors: {
1060
+ 401: `Unauthorized`,
1061
+ 403: `Forbidden`,
1062
+ },
1063
+ });
1064
+ }
1065
+ /**
1066
+ * @param stockItemId
1067
+ * @param itemGoogleCategoryId
1068
+ * @returns ItemGoogleCategoryDtoEnvelope OK
1069
+ * @throws ApiError
1070
+ */
1071
+ public static deleteApiV2CatalogServiceProductsGoogleCategories(
1072
+ stockItemId: string,
1073
+ itemGoogleCategoryId: string,
1074
+ ): CancelablePromise<ItemGoogleCategoryDtoEnvelope> {
1075
+ return __request(OpenAPI, {
1076
+ method: 'DELETE',
1077
+ url: '/api/v2/CatalogService/Products/{stockItemId}/GoogleCategories/{itemGoogleCategoryId}',
1078
+ path: {
1079
+ 'stockItemId': stockItemId,
1080
+ 'itemGoogleCategoryId': itemGoogleCategoryId,
1081
+ },
1082
+ errors: {
1083
+ 401: `Unauthorized`,
1084
+ 403: `Forbidden`,
1085
+ },
1086
+ });
1087
+ }
1088
+ /**
1089
+ * @param stockItemId
1090
+ * @returns ItemAttributeOptionDtoListEnvelope OK
1091
+ * @throws ApiError
1092
+ */
1093
+ public static getApiV2CatalogServiceProductsAttributeOptions(
1094
+ stockItemId: string,
1095
+ ): CancelablePromise<ItemAttributeOptionDtoListEnvelope> {
1096
+ return __request(OpenAPI, {
1097
+ method: 'GET',
1098
+ url: '/api/v2/CatalogService/Products/{stockItemId}/AttributeOptions',
1099
+ path: {
1100
+ 'stockItemId': stockItemId,
1101
+ },
1102
+ errors: {
1103
+ 401: `Unauthorized`,
1104
+ 403: `Forbidden`,
1105
+ },
1106
+ });
1107
+ }
1108
+ /**
1109
+ * @param stockItemId
1110
+ * @param itemAttributeOptionId
1111
+ * @returns ItemAttributeOptionDtoEnvelope OK
1112
+ * @throws ApiError
1113
+ */
1114
+ public static getApiV2CatalogServiceProductsAttributeOptions1(
1115
+ stockItemId: string,
1116
+ itemAttributeOptionId: string,
1117
+ ): CancelablePromise<ItemAttributeOptionDtoEnvelope> {
1118
+ return __request(OpenAPI, {
1119
+ method: 'GET',
1120
+ url: '/api/v2/CatalogService/Products/{stockItemId}/AttributeOptions/{itemAttributeOptionId}',
1121
+ path: {
1122
+ 'stockItemId': stockItemId,
1123
+ 'itemAttributeOptionId': itemAttributeOptionId,
1124
+ },
1125
+ errors: {
1126
+ 401: `Unauthorized`,
1127
+ 403: `Forbidden`,
1128
+ },
1129
+ });
1130
+ }
1131
+ /**
1132
+ * @param stockItemId
1133
+ * @param itemAttributeOptionId
1134
+ * @returns ItemAttributeOptionDtoEnvelope OK
1135
+ * @throws ApiError
1136
+ */
1137
+ public static postApiV2CatalogServiceProductsAttributeOptions(
1138
+ stockItemId: string,
1139
+ itemAttributeOptionId: string,
1140
+ ): CancelablePromise<ItemAttributeOptionDtoEnvelope> {
1141
+ return __request(OpenAPI, {
1142
+ method: 'POST',
1143
+ url: '/api/v2/CatalogService/Products/{stockItemId}/AttributeOptions/{itemAttributeOptionId}',
1144
+ path: {
1145
+ 'stockItemId': stockItemId,
1146
+ 'itemAttributeOptionId': itemAttributeOptionId,
1147
+ },
1148
+ errors: {
1149
+ 401: `Unauthorized`,
1150
+ 403: `Forbidden`,
1151
+ },
1152
+ });
1153
+ }
1154
+ /**
1155
+ * @param stockItemId
1156
+ * @param itemAttributeOptionId
1157
+ * @returns ItemAttributeOptionDtoEnvelope OK
1158
+ * @throws ApiError
1159
+ */
1160
+ public static deleteApiV2CatalogServiceProductsAttributeOptions(
1161
+ stockItemId: string,
1162
+ itemAttributeOptionId: string,
1163
+ ): CancelablePromise<ItemAttributeOptionDtoEnvelope> {
1164
+ return __request(OpenAPI, {
1165
+ method: 'DELETE',
1166
+ url: '/api/v2/CatalogService/Products/{stockItemId}/AttributeOptions/{itemAttributeOptionId}',
1167
+ path: {
1168
+ 'stockItemId': stockItemId,
1169
+ 'itemAttributeOptionId': itemAttributeOptionId,
1170
+ },
1171
+ errors: {
1172
+ 401: `Unauthorized`,
1173
+ 403: `Forbidden`,
1174
+ },
1175
+ });
1176
+ }
1177
+ /**
1178
+ * @param stockItemId
1179
+ * @returns ItemTaxPolicyDtoListEnvelope OK
1180
+ * @throws ApiError
1181
+ */
1182
+ public static getApiV2CatalogServiceProductsTaxPolicies(
1183
+ stockItemId: string,
1184
+ ): CancelablePromise<ItemTaxPolicyDtoListEnvelope> {
1185
+ return __request(OpenAPI, {
1186
+ method: 'GET',
1187
+ url: '/api/v2/CatalogService/Products/{stockItemId}/TaxPolicies',
1188
+ path: {
1189
+ 'stockItemId': stockItemId,
1190
+ },
1191
+ errors: {
1192
+ 401: `Unauthorized`,
1193
+ 403: `Forbidden`,
1194
+ },
1195
+ });
1196
+ }
1197
+ /**
1198
+ * @param stockItemId
1199
+ * @param itemTaxPolicyId
1200
+ * @returns ItemTaxPolicyDtoEnvelope OK
1201
+ * @throws ApiError
1202
+ */
1203
+ public static getApiV2CatalogServiceProductsTaxPolicies1(
1204
+ stockItemId: string,
1205
+ itemTaxPolicyId: string,
1206
+ ): CancelablePromise<ItemTaxPolicyDtoEnvelope> {
1207
+ return __request(OpenAPI, {
1208
+ method: 'GET',
1209
+ url: '/api/v2/CatalogService/Products/{stockItemId}/TaxPolicies/{itemTaxPolicyId}',
1210
+ path: {
1211
+ 'stockItemId': stockItemId,
1212
+ 'itemTaxPolicyId': itemTaxPolicyId,
1213
+ },
1214
+ errors: {
1215
+ 401: `Unauthorized`,
1216
+ 403: `Forbidden`,
1217
+ },
1218
+ });
1219
+ }
1220
+ /**
1221
+ * @param stockItemId
1222
+ * @param itemTaxPolicyId
1223
+ * @returns ItemTaxPolicyDtoEnvelope OK
1224
+ * @throws ApiError
1225
+ */
1226
+ public static postApiV2CatalogServiceProductsTaxPolicies(
1227
+ stockItemId: string,
1228
+ itemTaxPolicyId: string,
1229
+ ): CancelablePromise<ItemTaxPolicyDtoEnvelope> {
1230
+ return __request(OpenAPI, {
1231
+ method: 'POST',
1232
+ url: '/api/v2/CatalogService/Products/{stockItemId}/TaxPolicies/{itemTaxPolicyId}',
1233
+ path: {
1234
+ 'stockItemId': stockItemId,
1235
+ 'itemTaxPolicyId': itemTaxPolicyId,
1236
+ },
1237
+ errors: {
1238
+ 401: `Unauthorized`,
1239
+ 403: `Forbidden`,
1240
+ },
1241
+ });
1242
+ }
1243
+ /**
1244
+ * @param stockItemId
1245
+ * @param itemTaxPolicyId
1246
+ * @returns ItemTaxPolicyDtoEnvelope OK
1247
+ * @throws ApiError
1248
+ */
1249
+ public static deleteApiV2CatalogServiceProductsTaxPolicies(
1250
+ stockItemId: string,
1251
+ itemTaxPolicyId: string,
1252
+ ): CancelablePromise<ItemTaxPolicyDtoEnvelope> {
1253
+ return __request(OpenAPI, {
1254
+ method: 'DELETE',
1255
+ url: '/api/v2/CatalogService/Products/{stockItemId}/TaxPolicies/{itemTaxPolicyId}',
1256
+ path: {
1257
+ 'stockItemId': stockItemId,
1258
+ 'itemTaxPolicyId': itemTaxPolicyId,
1259
+ },
1260
+ errors: {
1261
+ 401: `Unauthorized`,
1262
+ 403: `Forbidden`,
1263
+ },
1264
+ });
1265
+ }
1266
+ /**
1267
+ * @param stockItemId
1268
+ * @returns PricingRuleDtoListEnvelope OK
1269
+ * @throws ApiError
1270
+ */
1271
+ public static getApiV2CatalogServiceProductsPriceRules(
1272
+ stockItemId: string,
1273
+ ): CancelablePromise<PricingRuleDtoListEnvelope> {
1274
+ return __request(OpenAPI, {
1275
+ method: 'GET',
1276
+ url: '/api/v2/CatalogService/Products/{stockItemId}/PriceRules',
1277
+ path: {
1278
+ 'stockItemId': stockItemId,
1279
+ },
1280
+ errors: {
1281
+ 401: `Unauthorized`,
1282
+ 403: `Forbidden`,
1283
+ },
1284
+ });
1285
+ }
1286
+ /**
1287
+ * @param stockItemId
1288
+ * @param itemPriceRuleId
1289
+ * @returns PricingRuleDtoEnvelope OK
1290
+ * @throws ApiError
1291
+ */
1292
+ public static getApiV2CatalogServiceProductsPriceRules1(
1293
+ stockItemId: string,
1294
+ itemPriceRuleId: string,
1295
+ ): CancelablePromise<PricingRuleDtoEnvelope> {
1296
+ return __request(OpenAPI, {
1297
+ method: 'GET',
1298
+ url: '/api/v2/CatalogService/Products/{stockItemId}/PriceRules/{itemPriceRuleId}',
1299
+ path: {
1300
+ 'stockItemId': stockItemId,
1301
+ 'itemPriceRuleId': itemPriceRuleId,
1302
+ },
1303
+ errors: {
1304
+ 401: `Unauthorized`,
1305
+ 403: `Forbidden`,
1306
+ },
1307
+ });
1308
+ }
1309
+ /**
1310
+ * @param stockItemId
1311
+ * @param itemPriceRuleId
1312
+ * @returns PricingRuleDtoEnvelope OK
1313
+ * @throws ApiError
1314
+ */
1315
+ public static postApiV2CatalogServiceProductsPriceRules(
1316
+ stockItemId: string,
1317
+ itemPriceRuleId: string,
1318
+ ): CancelablePromise<PricingRuleDtoEnvelope> {
1319
+ return __request(OpenAPI, {
1320
+ method: 'POST',
1321
+ url: '/api/v2/CatalogService/Products/{stockItemId}/PriceRules/{itemPriceRuleId}',
1322
+ path: {
1323
+ 'stockItemId': stockItemId,
1324
+ 'itemPriceRuleId': itemPriceRuleId,
1325
+ },
1326
+ errors: {
1327
+ 401: `Unauthorized`,
1328
+ 403: `Forbidden`,
1329
+ },
1330
+ });
1331
+ }
1332
+ /**
1333
+ * @param stockItemId
1334
+ * @param itemPriceRuleId
1335
+ * @returns PricingRuleDtoEnvelope OK
1336
+ * @throws ApiError
1337
+ */
1338
+ public static deleteApiV2CatalogServiceProductsPriceRules(
1339
+ stockItemId: string,
1340
+ itemPriceRuleId: string,
1341
+ ): CancelablePromise<PricingRuleDtoEnvelope> {
1342
+ return __request(OpenAPI, {
1343
+ method: 'DELETE',
1344
+ url: '/api/v2/CatalogService/Products/{stockItemId}/PriceRules/{itemPriceRuleId}',
1345
+ path: {
1346
+ 'stockItemId': stockItemId,
1347
+ 'itemPriceRuleId': itemPriceRuleId,
1348
+ },
1349
+ errors: {
1350
+ 401: `Unauthorized`,
1351
+ 403: `Forbidden`,
1352
+ },
1353
+ });
1354
+ }
1355
+ /**
1356
+ * @param stockItemId
1357
+ * @returns ItemWarrantyPolicyDtoListEnvelope OK
1358
+ * @throws ApiError
1359
+ */
1360
+ public static getApiV2CatalogServiceProductsWarrantyPolicies(
1361
+ stockItemId: string,
1362
+ ): CancelablePromise<ItemWarrantyPolicyDtoListEnvelope> {
1363
+ return __request(OpenAPI, {
1364
+ method: 'GET',
1365
+ url: '/api/v2/CatalogService/Products/{stockItemId}/WarrantyPolicies',
1366
+ path: {
1367
+ 'stockItemId': stockItemId,
1368
+ },
1369
+ errors: {
1370
+ 401: `Unauthorized`,
1371
+ 403: `Forbidden`,
1372
+ },
1373
+ });
1374
+ }
1375
+ /**
1376
+ * @param stockItemId
1377
+ * @param itemWarrantyPolicyId
1378
+ * @returns ItemWarrantyPolicyDtoEnvelope OK
1379
+ * @throws ApiError
1380
+ */
1381
+ public static getApiV2CatalogServiceProductsWarrantyPolicies1(
1382
+ stockItemId: string,
1383
+ itemWarrantyPolicyId: string,
1384
+ ): CancelablePromise<ItemWarrantyPolicyDtoEnvelope> {
1385
+ return __request(OpenAPI, {
1386
+ method: 'GET',
1387
+ url: '/api/v2/CatalogService/Products/{stockItemId}/WarrantyPolicies/{itemWarrantyPolicyId}',
1388
+ path: {
1389
+ 'stockItemId': stockItemId,
1390
+ 'itemWarrantyPolicyId': itemWarrantyPolicyId,
1391
+ },
1392
+ errors: {
1393
+ 401: `Unauthorized`,
1394
+ 403: `Forbidden`,
1395
+ },
1396
+ });
1397
+ }
1398
+ /**
1399
+ * @param stockItemId
1400
+ * @param itemWarrantyPolicyId
1401
+ * @returns ItemWarrantyPolicyDtoEnvelope OK
1402
+ * @throws ApiError
1403
+ */
1404
+ public static postApiV2CatalogServiceProductsWarrantyPolicies(
1405
+ stockItemId: string,
1406
+ itemWarrantyPolicyId: string,
1407
+ ): CancelablePromise<ItemWarrantyPolicyDtoEnvelope> {
1408
+ return __request(OpenAPI, {
1409
+ method: 'POST',
1410
+ url: '/api/v2/CatalogService/Products/{stockItemId}/WarrantyPolicies/{itemWarrantyPolicyId}',
1411
+ path: {
1412
+ 'stockItemId': stockItemId,
1413
+ 'itemWarrantyPolicyId': itemWarrantyPolicyId,
1414
+ },
1415
+ errors: {
1416
+ 401: `Unauthorized`,
1417
+ 403: `Forbidden`,
1418
+ },
1419
+ });
1420
+ }
1421
+ /**
1422
+ * @param stockItemId
1423
+ * @param itemWarrantyPolicyId
1424
+ * @returns ItemWarrantyPolicyDtoEnvelope OK
1425
+ * @throws ApiError
1426
+ */
1427
+ public static deleteApiV2CatalogServiceProductsWarrantyPolicies(
1428
+ stockItemId: string,
1429
+ itemWarrantyPolicyId: string,
1430
+ ): CancelablePromise<ItemWarrantyPolicyDtoEnvelope> {
1431
+ return __request(OpenAPI, {
1432
+ method: 'DELETE',
1433
+ url: '/api/v2/CatalogService/Products/{stockItemId}/WarrantyPolicies/{itemWarrantyPolicyId}',
1434
+ path: {
1435
+ 'stockItemId': stockItemId,
1436
+ 'itemWarrantyPolicyId': itemWarrantyPolicyId,
1437
+ },
1438
+ errors: {
1439
+ 401: `Unauthorized`,
1440
+ 403: `Forbidden`,
1441
+ },
1442
+ });
1443
+ }
1444
+ /**
1445
+ * @param stockItemId
1446
+ * @returns ItemReturnPolicyDtoListEnvelope OK
1447
+ * @throws ApiError
1448
+ */
1449
+ public static getApiV2CatalogServiceProductsReturnPolicies(
1450
+ stockItemId: string,
1451
+ ): CancelablePromise<ItemReturnPolicyDtoListEnvelope> {
1452
+ return __request(OpenAPI, {
1453
+ method: 'GET',
1454
+ url: '/api/v2/CatalogService/Products/{stockItemId}/ReturnPolicies',
1455
+ path: {
1456
+ 'stockItemId': stockItemId,
1457
+ },
1458
+ errors: {
1459
+ 401: `Unauthorized`,
1460
+ 403: `Forbidden`,
1461
+ },
1462
+ });
1463
+ }
1464
+ /**
1465
+ * @param stockItemId
1466
+ * @param itemReturnPolicyId
1467
+ * @returns ItemReturnPolicyDtoEnvelope OK
1468
+ * @throws ApiError
1469
+ */
1470
+ public static getApiV2CatalogServiceProductsReturnPolicies1(
1471
+ stockItemId: string,
1472
+ itemReturnPolicyId: string,
1473
+ ): CancelablePromise<ItemReturnPolicyDtoEnvelope> {
1474
+ return __request(OpenAPI, {
1475
+ method: 'GET',
1476
+ url: '/api/v2/CatalogService/Products/{stockItemId}/ReturnPolicies/{itemReturnPolicyId}',
1477
+ path: {
1478
+ 'stockItemId': stockItemId,
1479
+ 'itemReturnPolicyId': itemReturnPolicyId,
1480
+ },
1481
+ errors: {
1482
+ 401: `Unauthorized`,
1483
+ 403: `Forbidden`,
1484
+ },
1485
+ });
1486
+ }
1487
+ /**
1488
+ * @param stockItemId
1489
+ * @param itemReturnPolicyId
1490
+ * @returns ItemReturnPolicyDtoEnvelope OK
1491
+ * @throws ApiError
1492
+ */
1493
+ public static postApiV2CatalogServiceProductsReturnPolicies(
1494
+ stockItemId: string,
1495
+ itemReturnPolicyId: string,
1496
+ ): CancelablePromise<ItemReturnPolicyDtoEnvelope> {
1497
+ return __request(OpenAPI, {
1498
+ method: 'POST',
1499
+ url: '/api/v2/CatalogService/Products/{stockItemId}/ReturnPolicies/{itemReturnPolicyId}',
1500
+ path: {
1501
+ 'stockItemId': stockItemId,
1502
+ 'itemReturnPolicyId': itemReturnPolicyId,
1503
+ },
1504
+ errors: {
1505
+ 401: `Unauthorized`,
1506
+ 403: `Forbidden`,
1507
+ },
1508
+ });
1509
+ }
1510
+ /**
1511
+ * @param stockItemId
1512
+ * @param itemReturnPolicyId
1513
+ * @returns ItemReturnPolicyDtoEnvelope OK
1514
+ * @throws ApiError
1515
+ */
1516
+ public static deleteApiV2CatalogServiceProductsReturnPolicies(
1517
+ stockItemId: string,
1518
+ itemReturnPolicyId: string,
1519
+ ): CancelablePromise<ItemReturnPolicyDtoEnvelope> {
1520
+ return __request(OpenAPI, {
1521
+ method: 'DELETE',
1522
+ url: '/api/v2/CatalogService/Products/{stockItemId}/ReturnPolicies/{itemReturnPolicyId}',
1523
+ path: {
1524
+ 'stockItemId': stockItemId,
1525
+ 'itemReturnPolicyId': itemReturnPolicyId,
1526
+ },
1527
+ errors: {
1528
+ 401: `Unauthorized`,
1529
+ 403: `Forbidden`,
1530
+ },
1531
+ });
1532
+ }
1533
+ /**
1534
+ * @param stockItemId
1535
+ * @returns ItemRefundPolicyDtoListEnvelope OK
1536
+ * @throws ApiError
1537
+ */
1538
+ public static getApiV2CatalogServiceProductsRefundPolicies(
1539
+ stockItemId: string,
1540
+ ): CancelablePromise<ItemRefundPolicyDtoListEnvelope> {
1541
+ return __request(OpenAPI, {
1542
+ method: 'GET',
1543
+ url: '/api/v2/CatalogService/Products/{stockItemId}/RefundPolicies',
1544
+ path: {
1545
+ 'stockItemId': stockItemId,
1546
+ },
1547
+ errors: {
1548
+ 401: `Unauthorized`,
1549
+ 403: `Forbidden`,
1550
+ },
1551
+ });
1552
+ }
1553
+ /**
1554
+ * @param stockItemId
1555
+ * @param itemRefundPolicyId
1556
+ * @returns ItemRefundPolicyDtoEnvelope OK
1557
+ * @throws ApiError
1558
+ */
1559
+ public static getApiV2CatalogServiceProductsRefundPolicies1(
1560
+ stockItemId: string,
1561
+ itemRefundPolicyId: string,
1562
+ ): CancelablePromise<ItemRefundPolicyDtoEnvelope> {
1563
+ return __request(OpenAPI, {
1564
+ method: 'GET',
1565
+ url: '/api/v2/CatalogService/Products/{stockItemId}/RefundPolicies/{itemRefundPolicyId}',
1566
+ path: {
1567
+ 'stockItemId': stockItemId,
1568
+ 'itemRefundPolicyId': itemRefundPolicyId,
1569
+ },
1570
+ errors: {
1571
+ 401: `Unauthorized`,
1572
+ 403: `Forbidden`,
1573
+ },
1574
+ });
1575
+ }
1576
+ /**
1577
+ * @param stockItemId
1578
+ * @param itemRefundPolicyId
1579
+ * @returns ItemRefundPolicyDtoEnvelope OK
1580
+ * @throws ApiError
1581
+ */
1582
+ public static postApiV2CatalogServiceProductsRefundPolicies(
1583
+ stockItemId: string,
1584
+ itemRefundPolicyId: string,
1585
+ ): CancelablePromise<ItemRefundPolicyDtoEnvelope> {
1586
+ return __request(OpenAPI, {
1587
+ method: 'POST',
1588
+ url: '/api/v2/CatalogService/Products/{stockItemId}/RefundPolicies/{itemRefundPolicyId}',
1589
+ path: {
1590
+ 'stockItemId': stockItemId,
1591
+ 'itemRefundPolicyId': itemRefundPolicyId,
1592
+ },
1593
+ errors: {
1594
+ 401: `Unauthorized`,
1595
+ 403: `Forbidden`,
1596
+ },
1597
+ });
1598
+ }
1599
+ /**
1600
+ * @param stockItemId
1601
+ * @param itemRefundPolicyId
1602
+ * @returns ItemRefundPolicyDtoEnvelope OK
1603
+ * @throws ApiError
1604
+ */
1605
+ public static deleteApiV2CatalogServiceProductsRefundPolicies(
1606
+ stockItemId: string,
1607
+ itemRefundPolicyId: string,
1608
+ ): CancelablePromise<ItemRefundPolicyDtoEnvelope> {
1609
+ return __request(OpenAPI, {
1610
+ method: 'DELETE',
1611
+ url: '/api/v2/CatalogService/Products/{stockItemId}/RefundPolicies/{itemRefundPolicyId}',
1612
+ path: {
1613
+ 'stockItemId': stockItemId,
1614
+ 'itemRefundPolicyId': itemRefundPolicyId,
1615
+ },
1616
+ errors: {
1617
+ 401: `Unauthorized`,
1618
+ 403: `Forbidden`,
1619
+ },
1620
+ });
1621
+ }
1622
+ /**
1623
+ * @param stockItemId
1624
+ * @returns ItemShippingPolicyDtoListEnvelope OK
1625
+ * @throws ApiError
1626
+ */
1627
+ public static getApiV2CatalogServiceProductsShippingPolicies(
1628
+ stockItemId: string,
1629
+ ): CancelablePromise<ItemShippingPolicyDtoListEnvelope> {
1630
+ return __request(OpenAPI, {
1631
+ method: 'GET',
1632
+ url: '/api/v2/CatalogService/Products/{stockItemId}/ShippingPolicies',
1633
+ path: {
1634
+ 'stockItemId': stockItemId,
1635
+ },
1636
+ errors: {
1637
+ 401: `Unauthorized`,
1638
+ 403: `Forbidden`,
1639
+ },
1640
+ });
1641
+ }
1642
+ /**
1643
+ * @param stockItemId
1644
+ * @param itemShippingPolicyId
1645
+ * @returns ItemShippingPolicyDtoEnvelope OK
1646
+ * @throws ApiError
1647
+ */
1648
+ public static getApiV2CatalogServiceProductsShippingPolicies1(
1649
+ stockItemId: string,
1650
+ itemShippingPolicyId: string,
1651
+ ): CancelablePromise<ItemShippingPolicyDtoEnvelope> {
1652
+ return __request(OpenAPI, {
1653
+ method: 'GET',
1654
+ url: '/api/v2/CatalogService/Products/{stockItemId}/ShippingPolicies/{itemShippingPolicyId}',
1655
+ path: {
1656
+ 'stockItemId': stockItemId,
1657
+ 'itemShippingPolicyId': itemShippingPolicyId,
1658
+ },
1659
+ errors: {
1660
+ 401: `Unauthorized`,
1661
+ 403: `Forbidden`,
1662
+ },
1663
+ });
1664
+ }
1665
+ /**
1666
+ * @param stockItemId
1667
+ * @param itemShippingPolicyId
1668
+ * @returns ItemShippingPolicyDtoEnvelope OK
1669
+ * @throws ApiError
1670
+ */
1671
+ public static postApiV2CatalogServiceProductsShippingPolicies(
1672
+ stockItemId: string,
1673
+ itemShippingPolicyId: string,
1674
+ ): CancelablePromise<ItemShippingPolicyDtoEnvelope> {
1675
+ return __request(OpenAPI, {
1676
+ method: 'POST',
1677
+ url: '/api/v2/CatalogService/Products/{stockItemId}/ShippingPolicies/{itemShippingPolicyId}',
1678
+ path: {
1679
+ 'stockItemId': stockItemId,
1680
+ 'itemShippingPolicyId': itemShippingPolicyId,
1681
+ },
1682
+ errors: {
1683
+ 401: `Unauthorized`,
1684
+ 403: `Forbidden`,
1685
+ },
1686
+ });
1687
+ }
1688
+ /**
1689
+ * @param stockItemId
1690
+ * @param itemShippingPolicyId
1691
+ * @returns ItemShippingPolicyDtoEnvelope OK
1692
+ * @throws ApiError
1693
+ */
1694
+ public static deleteApiV2CatalogServiceProductsShippingPolicies(
1695
+ stockItemId: string,
1696
+ itemShippingPolicyId: string,
1697
+ ): CancelablePromise<ItemShippingPolicyDtoEnvelope> {
1698
+ return __request(OpenAPI, {
1699
+ method: 'DELETE',
1700
+ url: '/api/v2/CatalogService/Products/{stockItemId}/ShippingPolicies/{itemShippingPolicyId}',
1701
+ path: {
1702
+ 'stockItemId': stockItemId,
1703
+ 'itemShippingPolicyId': itemShippingPolicyId,
1704
+ },
1705
+ errors: {
1706
+ 401: `Unauthorized`,
1707
+ 403: `Forbidden`,
1708
+ },
1709
+ });
1710
+ }
1711
+ }