yellowgrid-api-ts 3.2.277 → 3.2.278

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 (321) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +66 -0
  4. package/api.ts +5123 -1849
  5. package/common.ts +2 -2
  6. package/dist/api.d.ts +10229 -8273
  7. package/dist/api.js +3208 -319
  8. package/dist/models/ReasonEnum.d.ts +18 -0
  9. package/dist/models/ReasonEnum.js +20 -0
  10. package/dist/models/ResolutionEnum.d.ts +18 -0
  11. package/dist/models/ResolutionEnum.js +20 -0
  12. package/dist/models/RmaItemCreditTypeEnum.d.ts +13 -0
  13. package/dist/models/RmaItemCreditTypeEnum.js +15 -0
  14. package/dist/models/RmaItemResolutionEnum.d.ts +28 -0
  15. package/dist/models/RmaItemResolutionEnum.js +30 -0
  16. package/dist/models/RmaItemStatusEnum.d.ts +18 -0
  17. package/dist/models/RmaItemStatusEnum.js +20 -0
  18. package/dist/models/RmaStatusEnum.d.ts +33 -0
  19. package/dist/models/RmaStatusEnum.js +35 -0
  20. package/docs/AbstractOrderRequestDTO.md +4 -4
  21. package/docs/AccountAddressesDTO.md +3 -3
  22. package/docs/AccountContactEntity.md +13 -13
  23. package/docs/AccountContactModel.md +13 -13
  24. package/docs/AccountContactRequestModel.md +9 -9
  25. package/docs/AccountDetailedSummaryDTO.md +10 -10
  26. package/docs/AccountFinanceDTO.md +10 -10
  27. package/docs/AccountRequestModel.md +11 -11
  28. package/docs/AccountSummaryDTO.md +3 -3
  29. package/docs/AccountsApi.md +48 -0
  30. package/docs/AccountsResponseModel.md +4 -4
  31. package/docs/AddressDTO.md +12 -6
  32. package/docs/AddressModel.md +5 -5
  33. package/docs/AddressRequestModel.md +4 -4
  34. package/docs/AdminCustomerRmasModel.md +27 -0
  35. package/docs/AdminNumberPortDTO.md +7 -7
  36. package/docs/AdminOrderRequestDTO.md +4 -4
  37. package/docs/AdminRmaDTO.md +67 -0
  38. package/docs/AdminRmaItemDTO.md +51 -0
  39. package/docs/AdminRmaNoteDTO.md +27 -0
  40. package/docs/AdminRmaSummaryDTO.md +39 -0
  41. package/docs/AdminUserModel.md +5 -5
  42. package/docs/AgentHoursGraphModel.md +4 -4
  43. package/docs/AgentHoursGraphMonthModel.md +2 -2
  44. package/docs/ApiLogEntity.md +12 -12
  45. package/docs/AreaCodeModel.md +2 -2
  46. package/docs/AttachmentModel.md +5 -5
  47. package/docs/AttributeSetEnum.md +2 -2
  48. package/docs/AuditLogEntity.md +9 -9
  49. package/docs/AuthCodeResponseModel.md +1 -1
  50. package/docs/AxisDataDTO.md +1 -1
  51. package/docs/BasicItemDTO.md +2 -2
  52. package/docs/BasicProductDTO.md +2 -2
  53. package/docs/BatchDTO.md +17 -17
  54. package/docs/BatchEntity.md +17 -17
  55. package/docs/BrandedVideoSummaryDTO.md +10 -10
  56. package/docs/BrandedVideosSummariesModel.md +4 -4
  57. package/docs/CallBarringModel.md +5 -5
  58. package/docs/ClientDetailsModel.md +7 -7
  59. package/docs/ClientModel.md +4 -4
  60. package/docs/CollectionDateDTO.md +27 -0
  61. package/docs/CollectionDatesRequestDTO.md +23 -0
  62. package/docs/CompanyContractModel.md +5 -5
  63. package/docs/ContactInfoModel.md +5 -5
  64. package/docs/ConversationModel.md +8 -8
  65. package/docs/CourierPriceEntity.md +10 -10
  66. package/docs/CreditAccountEntity.md +23 -23
  67. package/docs/CreditNoteDTO.md +5 -1
  68. package/docs/CreditNoteEntity.md +5 -5
  69. package/docs/CreditNoteItemDTO.md +3 -1
  70. package/docs/CreditNoteItemEntity.md +7 -5
  71. package/docs/CreditNoteItemModel.md +7 -5
  72. package/docs/CreditNoteModel.md +5 -5
  73. package/docs/CrmActivitiesResponseDTO.md +2 -2
  74. package/docs/CrmActivityDTO.md +3 -3
  75. package/docs/CrmContactDTO.md +7 -7
  76. package/docs/CrmDateActivitiesDTO.md +1 -1
  77. package/docs/CrmNoteEntity.md +10 -10
  78. package/docs/CrmNoteModel.md +10 -10
  79. package/docs/CustomerCoordinatesDTO.md +5 -5
  80. package/docs/CustomerInformationModel.md +4 -4
  81. package/docs/CustomerItemRequestDTO.md +2 -2
  82. package/docs/CustomerListAccountDTO.md +13 -13
  83. package/docs/CustomerOrderRequestDTO.md +4 -4
  84. package/docs/CustomerPriceListEnum.md +2 -2
  85. package/docs/CustomerRmasModel.md +27 -0
  86. package/docs/CustomerSummaryReportDTO.md +6 -6
  87. package/docs/DdiRangeRequestModel.md +3 -3
  88. package/docs/DdiRangesRequestModel.md +1 -1
  89. package/docs/DetailedItemRequestDTO.md +2 -2
  90. package/docs/DetailedOrderRequestDTO.md +4 -4
  91. package/docs/DivertRequestModel.md +1 -1
  92. package/docs/DivertResponseModel.md +2 -2
  93. package/docs/EdTechProClientEntity.md +4 -4
  94. package/docs/EdTechProSchoolModel.md +11 -11
  95. package/docs/EdTechProSchoolsModel.md +4 -4
  96. package/docs/EdTechProSetupModel.md +5 -5
  97. package/docs/EmailRequestModel.md +21 -0
  98. package/docs/EventDTO.md +8 -8
  99. package/docs/EventRequestDTO.md +3 -3
  100. package/docs/EventSubscriptionModel.md +2 -2
  101. package/docs/EventUpdateDTO.md +4 -4
  102. package/docs/EventUpdateEntity.md +5 -5
  103. package/docs/EventUpdateRequestDTO.md +3 -3
  104. package/docs/ExpiringKeyDTO.md +5 -5
  105. package/docs/FraudManagementModel.md +2 -2
  106. package/docs/FreshdeskCompanyTicketsModel.md +4 -4
  107. package/docs/FreshdeskTicketEntity.md +6 -6
  108. package/docs/FtpAccountsEntity.md +5 -5
  109. package/docs/GenericFileModel.md +3 -3
  110. package/docs/GraphDTO.md +6 -6
  111. package/docs/HostingChangeResponseModel.md +5 -5
  112. package/docs/HostingRegionDTO.md +3 -3
  113. package/docs/InstallationDetailsDTO.md +3 -3
  114. package/docs/InstanceAutoFailoverEntity.md +5 -5
  115. package/docs/InstanceDeletionScheduleEntity.md +4 -4
  116. package/docs/InstanceEntity.md +21 -21
  117. package/docs/InstanceFailoverEntity.md +11 -11
  118. package/docs/InstanceMonitoringEntity.md +3 -3
  119. package/docs/InstanceMonitoringLogEntity.md +6 -6
  120. package/docs/InstanceScheduledTasksEntity.md +6 -6
  121. package/docs/InstanceTcxDetailsEntity.md +10 -10
  122. package/docs/InstanceUserCredentialsEntity.md +5 -5
  123. package/docs/ItemDTO.md +2 -2
  124. package/docs/ItemDiscountEntity.md +6 -6
  125. package/docs/ItemEntity.md +21 -21
  126. package/docs/ItemResolutionRequestModel.md +21 -0
  127. package/docs/LinkedOrderEntity.md +2 -2
  128. package/docs/MFARequiredModel.md +2 -2
  129. package/docs/MacAddressDTO.md +2 -2
  130. package/docs/MacAddressRequestModel.md +21 -0
  131. package/docs/MonthlyUsageModel.md +2 -2
  132. package/docs/MultiTenantChangeResponseModel.md +4 -4
  133. package/docs/NameRequestModel.md +21 -0
  134. package/docs/NavigationModel.md +4 -4
  135. package/docs/NoteRequestModel.md +21 -0
  136. package/docs/NumberPortDTO.md +7 -7
  137. package/docs/NumberPortNoteDTO.md +5 -5
  138. package/docs/NumberPortRangeDTO.md +2 -2
  139. package/docs/NumberPortingApi.md +21 -21
  140. package/docs/NumberPortsModel.md +4 -4
  141. package/docs/OAuth20Api.md +3 -3
  142. package/docs/OfflineInstancesEntity.md +5 -5
  143. package/docs/OrderDTO.md +3 -3
  144. package/docs/OrderDetailsDTO.md +10 -10
  145. package/docs/OrderEntity.md +56 -56
  146. package/docs/OrderItemDTO.md +2 -2
  147. package/docs/OrderRequestModel.md +6 -6
  148. package/docs/OrderSummariesModel.md +4 -4
  149. package/docs/OrderSummaryDTO.md +10 -10
  150. package/docs/OrderTotalModel.md +7 -7
  151. package/docs/OrderedItemEntity.md +14 -14
  152. package/docs/OrderedItemModel.md +14 -14
  153. package/docs/OrdersApi.md +55 -0
  154. package/docs/PartnerDTO.md +10 -10
  155. package/docs/PasswordSenderDTO.md +2 -2
  156. package/docs/PasswordSenderEntity.md +7 -7
  157. package/docs/PortalAccountModel.md +23 -23
  158. package/docs/PortalLoginModel.md +7 -7
  159. package/docs/PostGenerateReport200Response.md +8 -8
  160. package/docs/PriceListItemModel.md +2 -2
  161. package/docs/PrinterEntity.md +5 -5
  162. package/docs/PrizesEntity.md +6 -6
  163. package/docs/ProductDetailedSummaryDTO.md +2 -2
  164. package/docs/ProductPriceListItemModel.md +2 -2
  165. package/docs/ProductSearchResultsModel.md +1 -1
  166. package/docs/ProductSerialInfoDTO.md +27 -0
  167. package/docs/ProductSerialInfoModel.md +3 -3
  168. package/docs/ProductSummaryDTO.md +2 -2
  169. package/docs/PromoCodesEntity.md +8 -8
  170. package/docs/PromoItemModel.md +8 -8
  171. package/docs/PromoItemsEntity.md +8 -8
  172. package/docs/PromoModel.md +8 -8
  173. package/docs/PromoSummariesModel.md +4 -4
  174. package/docs/PromoSummaryDTO.md +3 -3
  175. package/docs/ProspectDTO.md +7 -7
  176. package/docs/ProspectEntity.md +11 -11
  177. package/docs/ProvisioningModel.md +3 -3
  178. package/docs/ProvisioningRequestEntity.md +3 -3
  179. package/docs/RMAApi.md +1749 -0
  180. package/docs/ReasonRequestModel.md +21 -0
  181. package/docs/RecordingBackupAzureModel.md +4 -4
  182. package/docs/RemoteStorageDTO.md +4 -4
  183. package/docs/ReportRequestDTO.md +1 -1
  184. package/docs/ResolutionRequestModel.md +21 -0
  185. package/docs/ResourceNotReadyException.md +3 -3
  186. package/docs/RmaCollectionDTO.md +27 -0
  187. package/docs/RmaCreditItemRequestDTO.md +25 -0
  188. package/docs/RmaDTO.md +47 -0
  189. package/docs/RmaItemDTO.md +35 -0
  190. package/docs/RmaItemRequestDTO.md +25 -0
  191. package/docs/RmaOrderDTO.md +33 -0
  192. package/docs/RmaOrderItemDTO.md +37 -0
  193. package/docs/RmaOrderSummaryDTO.md +25 -0
  194. package/docs/RmaReplacementOrderItemDTO.md +23 -0
  195. package/docs/RmaReplacementOrderRequestDTO.md +21 -0
  196. package/docs/RmaRequestDTO.md +36 -0
  197. package/docs/RmaReturnDTO.md +31 -0
  198. package/docs/RmaSummaryDTO.md +31 -0
  199. package/docs/RmaSummaryItemDTO.md +23 -0
  200. package/docs/RootAccessModel.md +3 -3
  201. package/docs/S3BucketEntity.md +4 -4
  202. package/docs/ScannedItemModel.md +1 -1
  203. package/docs/ScopeModel.md +2 -2
  204. package/docs/SerialNumberRequestModel.md +21 -0
  205. package/docs/SeriesDTO.md +3 -3
  206. package/docs/ServiceHealthDTO.md +2 -2
  207. package/docs/ServiceStatusDTO.md +4 -4
  208. package/docs/ShipmentAddressEntity.md +11 -11
  209. package/docs/ShipmentDTO.md +4 -4
  210. package/docs/ShipmentEntity.md +12 -12
  211. package/docs/ShipmentItemDTO.md +2 -2
  212. package/docs/ShipmentItemEntity.md +5 -5
  213. package/docs/ShipmentItemModel.md +5 -5
  214. package/docs/ShipmentModel.md +12 -12
  215. package/docs/ShipmentRequestDTO.md +4 -4
  216. package/docs/ShippingApi.md +56 -0
  217. package/docs/ShippingConsignmentModel.md +4 -4
  218. package/docs/ShippingInformationDTO.md +3 -3
  219. package/docs/ShippingRequestDTO.md +3 -3
  220. package/docs/ShippingServiceDTO.md +2 -2
  221. package/docs/ShippingServiceModel.md +4 -4
  222. package/docs/ShippingServicesModel.md +1 -1
  223. package/docs/SipTrunkChangeResponseModel.md +5 -5
  224. package/docs/SipTrunkCreationRequestModel.md +6 -6
  225. package/docs/SipTrunkEntity.md +12 -12
  226. package/docs/SipTrunksResponseModel.md +4 -4
  227. package/docs/SmsAccountDTO.md +6 -6
  228. package/docs/SmsAccountEntity.md +6 -6
  229. package/docs/SmsAccountRequestDTO.md +5 -5
  230. package/docs/SmsDataModel.md +1 -1
  231. package/docs/SmsMessageModel.md +3 -3
  232. package/docs/SmsNumbersEntity.md +2 -2
  233. package/docs/SmsPayloadModel.md +3 -3
  234. package/docs/SmsPhoneNumberModel.md +1 -1
  235. package/docs/SmsResponseModel.md +3 -3
  236. package/docs/SmsWhitelistEntity.md +2 -2
  237. package/docs/StockOrderCourierEntity.md +4 -4
  238. package/docs/StockOrderDeductionModel.md +4 -4
  239. package/docs/StockOrderDeductionRequestModel.md +2 -2
  240. package/docs/StockOrderDeductionsEntity.md +4 -4
  241. package/docs/StockOrderEntity.md +22 -22
  242. package/docs/StockOrderItemEntity.md +7 -7
  243. package/docs/StockOrderItemModel.md +7 -7
  244. package/docs/StockOrderItemRequestModel.md +4 -4
  245. package/docs/StockOrderModel.md +14 -14
  246. package/docs/StockOrderProductEntity.md +6 -6
  247. package/docs/StockOrderRequestModel.md +3 -3
  248. package/docs/StockOrderSupplierEntity.md +9 -9
  249. package/docs/StockOrderSupplierModel.md +9 -9
  250. package/docs/StockOrdersModel.md +4 -4
  251. package/docs/StockProductModel.md +6 -6
  252. package/docs/StockProductPriceModel.md +1 -1
  253. package/docs/StockProductSummariesModel.md +4 -4
  254. package/docs/StockProductSummaryModel.md +6 -6
  255. package/docs/StockReportItemModel.md +6 -6
  256. package/docs/StockReportModel.md +5 -5
  257. package/docs/StockTransactionsEntity.md +8 -8
  258. package/docs/SupplierEntity.md +9 -9
  259. package/docs/SupplierItemEntity.md +8 -8
  260. package/docs/SupplierItemModel.md +8 -8
  261. package/docs/SupplierItemsResultsDTO.md +1 -1
  262. package/docs/SupplierModel.md +9 -9
  263. package/docs/SupplierProductModel.md +3 -3
  264. package/docs/SupplierProductResultsModel.md +4 -4
  265. package/docs/SupportTicketModel.md +10 -10
  266. package/docs/TableDTO.md +3 -3
  267. package/docs/TableDataDTO.md +1 -1
  268. package/docs/TableHistoryEntity.md +8 -8
  269. package/docs/TableRowDTO.md +1 -1
  270. package/docs/TcxBackupEntity.md +9 -9
  271. package/docs/TcxBackupModel.md +9 -9
  272. package/docs/TcxBillingEntity.md +10 -10
  273. package/docs/TcxBulkLicenceDetailsModel.md +2 -2
  274. package/docs/TcxDeadLicenceEntity.md +3 -3
  275. package/docs/TcxExtsEntity.md +8 -8
  276. package/docs/TcxInstallationModel.md +17 -17
  277. package/docs/TcxInstallationsModel.md +4 -4
  278. package/docs/TcxKeySummaryDTO.md +3 -3
  279. package/docs/TcxKeysEntity.md +6 -6
  280. package/docs/TcxLicenceDetailsErrorModel.md +4 -4
  281. package/docs/TcxLicenceDetailsModel.md +11 -11
  282. package/docs/TcxMacsEntity.md +3 -3
  283. package/docs/TcxMultiTenantModel.md +7 -7
  284. package/docs/TcxMultiTenantUserModel.md +3 -3
  285. package/docs/TcxMultiTenantsModel.md +4 -4
  286. package/docs/TcxNumbersEntity.md +3 -3
  287. package/docs/TcxOfficeHoursEntity.md +15 -15
  288. package/docs/TcxPhoneModel.md +6 -6
  289. package/docs/TcxPhonesEntity.md +6 -6
  290. package/docs/TcxRemoteStorageModel.md +4 -4
  291. package/docs/TcxSbcDTO.md +7 -7
  292. package/docs/TcxSbcEntity.md +16 -16
  293. package/docs/TcxSbcModel.md +16 -16
  294. package/docs/TcxSbcResponseDTO.md +2 -2
  295. package/docs/TcxSetupEntity.md +25 -25
  296. package/docs/TcxSetupsModel.md +4 -4
  297. package/docs/TcxSipTrunksEntity.md +13 -13
  298. package/docs/TcxTemplateXmlEnum.md +2 -2
  299. package/docs/TcxUsersEntity.md +6 -6
  300. package/docs/TcxWizardConfigModel.md +2 -2
  301. package/docs/TcxWizardModel.md +9 -9
  302. package/docs/TechSupportCompanySummaryDTO.md +5 -5
  303. package/docs/ThumbnailDTO.md +3 -3
  304. package/docs/TicketSummaryModel.md +6 -6
  305. package/docs/TicketTimeDTO.md +9 -9
  306. package/docs/TicketsApi.md +10 -10
  307. package/docs/TokenResponseModel.md +3 -3
  308. package/docs/UpgradeOrderResponseModel.md +2 -2
  309. package/docs/UpgradeRequestModel.md +4 -4
  310. package/docs/UserEntity.md +10 -10
  311. package/docs/VideoRequestEntity.md +13 -13
  312. package/docs/XeroLogEntity.md +10 -10
  313. package/git_push.sh +14 -17
  314. package/models/ReasonEnum.ts +19 -0
  315. package/models/ResolutionEnum.ts +19 -0
  316. package/models/RmaItemCreditTypeEnum.ts +14 -0
  317. package/models/RmaItemResolutionEnum.ts +29 -0
  318. package/models/RmaItemStatusEnum.ts +19 -0
  319. package/models/RmaStatusEnum.ts +34 -0
  320. package/openapitools.json +1 -1
  321. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -84,10 +84,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockReportItemModelCurrencyEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.SeriesDTOTypeEnum = exports.SdrReferenceType = exports.ReportRequestDTOGraphTypeEnum = exports.ReportRequestDTOReportEnum = exports.ProspectDTOStatusEnum = exports.PostGetServicePlansRequestPlanGroupEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.PasswordSenderDTOIntervalTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.GraphDTOCurrencyEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.CustomerRateType = exports.BrandedVideoSummaryDTOStatusEnum = exports.BrandedVideoSummaryDTOTypeEnum = exports.AxisDataDTOTypeEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
88
- exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.GetGetBrandedVideosTypeEnum = exports.BrandedVideosApi = exports.BrandedVideosApiFactory = exports.BrandedVideosApiFp = exports.BrandedVideosApiAxiosParamCreator = exports.GetGetServicesPlanDetailsTypeEnum = exports.GetGetConnectionsTypeEnum = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.PatchSetOnHoldStateEnum = exports.PatchSetAccountStatusStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = void 0;
89
- exports.ProspectsApiAxiosParamCreator = exports.PromotionsApi = exports.PromotionsApiFactory = exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.MiscApi = exports.MiscApiFactory = exports.MiscApiFp = exports.MiscApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = void 0;
90
- exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SuppliersApi = exports.SuppliersApiFactory = exports.SuppliersApiFp = exports.SuppliersApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = void 0;
87
+ exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.SeriesDTOTypeEnum = exports.SdrReferenceType = exports.RmaSummaryDTOStatusEnum = exports.RmaRequestDTORequestedResolutionEnum = exports.RmaRequestDTOReasonEnum = exports.RmaItemDTOStatusEnum = exports.RmaDTOStatusEnum = exports.RmaDTOResolutionEnum = exports.RmaDTOReasonEnum = exports.RmaCreditItemRequestDTORefundPercentageEnum = exports.ResolutionRequestModelResolutionEnum = exports.ReportRequestDTOGraphTypeEnum = exports.ReportRequestDTOReportEnum = exports.ReasonRequestModelReasonEnum = exports.ProspectDTOStatusEnum = exports.PostGetServicePlansRequestPlanGroupEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.PasswordSenderDTOIntervalTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemResolutionRequestModelResolutionEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.GraphDTOCurrencyEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.CustomerRateType = exports.BrandedVideoSummaryDTOStatusEnum = exports.BrandedVideoSummaryDTOTypeEnum = exports.AxisDataDTOTypeEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminRmaSummaryDTOStatusEnum = exports.AdminRmaItemDTOResolutionEnum = exports.AdminRmaItemDTOStatusEnum = exports.AdminRmaDTOStatusEnum = exports.AdminRmaDTOResolutionEnum = exports.AdminRmaDTOReasonEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
88
+ exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.GetGetBrandedVideosTypeEnum = exports.BrandedVideosApi = exports.BrandedVideosApiFactory = exports.BrandedVideosApiFp = exports.BrandedVideosApiAxiosParamCreator = exports.GetGetServicesPlanDetailsTypeEnum = exports.GetGetConnectionsTypeEnum = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.PatchSetOnHoldStateEnum = exports.PatchSetAccountStatusStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockReportItemModelCurrencyEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = void 0;
89
+ exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.MiscApi = exports.MiscApiFactory = exports.MiscApiFp = exports.MiscApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = void 0;
90
+ exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.RMAApi = exports.RMAApiFactory = exports.RMAApiFp = exports.RMAApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.PromotionsApi = exports.PromotionsApiFactory = exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = void 0;
91
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SuppliersApi = exports.SuppliersApiFactory = exports.SuppliersApiFp = exports.SuppliersApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = void 0;
91
92
  var axios_1 = require("axios");
92
93
  // Some imports not used depending on template conditions
93
94
  // @ts-ignore
@@ -98,6 +99,44 @@ exports.AdminOrderRequestDTOPaymentMethodEnum = {
98
99
  Card: 'card',
99
100
  Bacs: 'bacs',
100
101
  };
102
+ exports.AdminRmaDTOReasonEnum = {
103
+ NUMBER_1: 1,
104
+ NUMBER_2: 2,
105
+ NUMBER_3: 3,
106
+ };
107
+ exports.AdminRmaDTOResolutionEnum = {
108
+ NUMBER_1: 1,
109
+ NUMBER_2: 2,
110
+ NUMBER_3: 3,
111
+ };
112
+ exports.AdminRmaDTOStatusEnum = {
113
+ NUMBER_1: 1,
114
+ NUMBER_2: 2,
115
+ NUMBER_3: 3,
116
+ NUMBER_4: 4,
117
+ NUMBER_5: 5,
118
+ NUMBER_6: 6,
119
+ };
120
+ exports.AdminRmaItemDTOStatusEnum = {
121
+ NUMBER_1: 1,
122
+ NUMBER_2: 2,
123
+ NUMBER_3: 3,
124
+ };
125
+ exports.AdminRmaItemDTOResolutionEnum = {
126
+ NUMBER_1: 1,
127
+ NUMBER_2: 2,
128
+ NUMBER_3: 3,
129
+ NUMBER_4: 4,
130
+ NUMBER_5: 5,
131
+ };
132
+ exports.AdminRmaSummaryDTOStatusEnum = {
133
+ NUMBER_1: 1,
134
+ NUMBER_2: 2,
135
+ NUMBER_3: 3,
136
+ NUMBER_4: 4,
137
+ NUMBER_5: 5,
138
+ NUMBER_6: 6,
139
+ };
101
140
  exports.AdminUserModelRoleEnum = {
102
141
  NUMBER_0: 0,
103
142
  NUMBER_1: 1,
@@ -163,6 +202,9 @@ exports.AuditLogEntityTypeEnum = {
163
202
  PopsPromoItems: 'pops_promo_items',
164
203
  PopsProvisioning: 'pops_provisioning',
165
204
  PopsProspectsV2: 'pops_prospects_v2',
205
+ Rma: 'rma',
206
+ RmaItems: 'rma_items',
207
+ RmaNotes: 'rma_notes',
166
208
  S3Buckets: 's3_buckets',
167
209
  PopsShipmentAddress: 'pops_shipment_address',
168
210
  PopsShipments: 'pops_shipments',
@@ -287,6 +329,13 @@ exports.ItemDiscountEntityTypeEnum = {
287
329
  PhoneBulk: 'PHONE_BULK',
288
330
  Additional: 'ADDITIONAL',
289
331
  };
332
+ exports.ItemResolutionRequestModelResolutionEnum = {
333
+ NUMBER_1: 1,
334
+ NUMBER_2: 2,
335
+ NUMBER_3: 3,
336
+ NUMBER_4: 4,
337
+ NUMBER_5: 5,
338
+ };
290
339
  exports.MultiTenantChangeResponseModelTypeEnum = {
291
340
  NewTrunk: 'New Trunk',
292
341
  AvailableTrunk: 'Available Trunk',
@@ -391,6 +440,11 @@ exports.ProspectDTOStatusEnum = {
391
440
  NoActionRequired: 'No Action Required',
392
441
  DoNotCall: 'Do Not Call',
393
442
  };
443
+ exports.ReasonRequestModelReasonEnum = {
444
+ NUMBER_1: 1,
445
+ NUMBER_2: 2,
446
+ NUMBER_3: 3,
447
+ };
394
448
  exports.ReportRequestDTOReportEnum = {
395
449
  _1: '1',
396
450
  _2: '2',
@@ -410,6 +464,56 @@ exports.ReportRequestDTOGraphTypeEnum = {
410
464
  StackedArea: 'stacked-area',
411
465
  Table: 'table',
412
466
  };
467
+ exports.ResolutionRequestModelResolutionEnum = {
468
+ NUMBER_1: 1,
469
+ NUMBER_2: 2,
470
+ NUMBER_3: 3,
471
+ };
472
+ exports.RmaCreditItemRequestDTORefundPercentageEnum = {
473
+ NUMBER_100: 100,
474
+ NUMBER_85: 85,
475
+ };
476
+ exports.RmaDTOReasonEnum = {
477
+ NUMBER_1: 1,
478
+ NUMBER_2: 2,
479
+ NUMBER_3: 3,
480
+ };
481
+ exports.RmaDTOResolutionEnum = {
482
+ NUMBER_1: 1,
483
+ NUMBER_2: 2,
484
+ NUMBER_3: 3,
485
+ };
486
+ exports.RmaDTOStatusEnum = {
487
+ NUMBER_1: 1,
488
+ NUMBER_2: 2,
489
+ NUMBER_3: 3,
490
+ NUMBER_4: 4,
491
+ NUMBER_5: 5,
492
+ NUMBER_6: 6,
493
+ };
494
+ exports.RmaItemDTOStatusEnum = {
495
+ NUMBER_1: 1,
496
+ NUMBER_2: 2,
497
+ NUMBER_3: 3,
498
+ };
499
+ exports.RmaRequestDTOReasonEnum = {
500
+ NUMBER_1: 1,
501
+ NUMBER_2: 2,
502
+ NUMBER_3: 3,
503
+ };
504
+ exports.RmaRequestDTORequestedResolutionEnum = {
505
+ NUMBER_1: 1,
506
+ NUMBER_2: 2,
507
+ NUMBER_3: 3,
508
+ };
509
+ exports.RmaSummaryDTOStatusEnum = {
510
+ NUMBER_1: 1,
511
+ NUMBER_2: 2,
512
+ NUMBER_3: 3,
513
+ NUMBER_4: 4,
514
+ NUMBER_5: 5,
515
+ NUMBER_6: 6,
516
+ };
413
517
  exports.SdrReferenceType = {
414
518
  SipTrunk: 'SIP_TRUNK',
415
519
  Broadband: 'BROADBAND',
@@ -1129,6 +1233,39 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1129
1233
  });
1130
1234
  });
1131
1235
  },
1236
+ /**
1237
+ * Get account delivery addresses
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ getGetDeliveryAddresses: function () {
1242
+ var args_1 = [];
1243
+ for (var _i = 0; _i < arguments.length; _i++) {
1244
+ args_1[_i] = arguments[_i];
1245
+ }
1246
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
1247
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1248
+ if (options === void 0) { options = {}; }
1249
+ return __generator(this, function (_a) {
1250
+ localVarPath = "/accounts/addresses/delivery";
1251
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1252
+ if (configuration) {
1253
+ baseOptions = configuration.baseOptions;
1254
+ }
1255
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1256
+ localVarHeaderParameter = {};
1257
+ localVarQueryParameter = {};
1258
+ localVarHeaderParameter['Accept'] = 'application/json';
1259
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1260
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1261
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1262
+ return [2 /*return*/, {
1263
+ url: (0, common_1.toPathString)(localVarUrlObj),
1264
+ options: localVarRequestOptions,
1265
+ }];
1266
+ });
1267
+ });
1268
+ },
1132
1269
  /**
1133
1270
  * Get Account Finance
1134
1271
  * @param {string} id Account Xero ID
@@ -2777,6 +2914,27 @@ var AccountsApiFp = function (configuration) {
2777
2914
  });
2778
2915
  });
2779
2916
  },
2917
+ /**
2918
+ * Get account delivery addresses
2919
+ * @param {*} [options] Override http request option.
2920
+ * @throws {RequiredError}
2921
+ */
2922
+ getGetDeliveryAddresses: function (options) {
2923
+ return __awaiter(this, void 0, void 0, function () {
2924
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2925
+ var _a, _b, _c;
2926
+ return __generator(this, function (_d) {
2927
+ switch (_d.label) {
2928
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetDeliveryAddresses(options)];
2929
+ case 1:
2930
+ localVarAxiosArgs = _d.sent();
2931
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2932
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetDeliveryAddresses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2933
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2934
+ }
2935
+ });
2936
+ });
2937
+ },
2780
2938
  /**
2781
2939
  * Get Account Finance
2782
2940
  * @param {string} id Account Xero ID
@@ -3701,6 +3859,14 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
3701
3859
  getGetCustomerMap: function (options) {
3702
3860
  return localVarFp.getGetCustomerMap(options).then(function (request) { return request(axios, basePath); });
3703
3861
  },
3862
+ /**
3863
+ * Get account delivery addresses
3864
+ * @param {*} [options] Override http request option.
3865
+ * @throws {RequiredError}
3866
+ */
3867
+ getGetDeliveryAddresses: function (options) {
3868
+ return localVarFp.getGetDeliveryAddresses(options).then(function (request) { return request(axios, basePath); });
3869
+ },
3704
3870
  /**
3705
3871
  * Get Account Finance
3706
3872
  * @param {string} id Account Xero ID
@@ -4199,6 +4365,15 @@ var AccountsApi = /** @class */ (function (_super) {
4199
4365
  var _this = this;
4200
4366
  return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerMap(options).then(function (request) { return request(_this.axios, _this.basePath); });
4201
4367
  };
4368
+ /**
4369
+ * Get account delivery addresses
4370
+ * @param {*} [options] Override http request option.
4371
+ * @throws {RequiredError}
4372
+ */
4373
+ AccountsApi.prototype.getGetDeliveryAddresses = function (options) {
4374
+ var _this = this;
4375
+ return (0, exports.AccountsApiFp)(this.configuration).getGetDeliveryAddresses(options).then(function (request) { return request(_this.axios, _this.basePath); });
4376
+ };
4202
4377
  /**
4203
4378
  * Get Account Finance
4204
4379
  * @param {string} id Account Xero ID
@@ -18108,6 +18283,8 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
18108
18283
  },
18109
18284
  /**
18110
18285
  *
18286
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
18287
+ * @param {File} cloa CLOA (only provide on submission)
18111
18288
  * @param {string | null} [companyName] Company Name
18112
18289
  * @param {string | null} [addressLine1] Address Line 1
18113
18290
  * @param {string | null} [addressLine2] Address Line 2
@@ -18118,20 +18295,22 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
18118
18295
  * @param {string | null} [requestedPortDate] Requested Port Date
18119
18296
  * @param {boolean | null} [asap] Port Date ASAP
18120
18297
  * @param {string | null} [comment] Comment
18121
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18122
- * @param {File} [cloa] CLOA (only provide on submission)
18123
18298
  * @param {*} [options] Override http request option.
18124
18299
  * @throws {RequiredError}
18125
18300
  */
18126
- postCreateNumberPort: function (companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
18301
+ postCreateNumberPort: function (numberRanges_1, cloa_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1) {
18127
18302
  var args_1 = [];
18128
18303
  for (var _i = 12; _i < arguments.length; _i++) {
18129
18304
  args_1[_i - 12] = arguments[_i];
18130
18305
  }
18131
- return __awaiter(_this, __spreadArray([companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18306
+ return __awaiter(_this, __spreadArray([numberRanges_1, cloa_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1], args_1, true), void 0, function (numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
18132
18307
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
18133
18308
  if (options === void 0) { options = {}; }
18134
18309
  return __generator(this, function (_a) {
18310
+ // verify required parameter 'numberRanges' is not null or undefined
18311
+ (0, common_1.assertParamExists)('postCreateNumberPort', 'numberRanges', numberRanges);
18312
+ // verify required parameter 'cloa' is not null or undefined
18313
+ (0, common_1.assertParamExists)('postCreateNumberPort', 'cloa', cloa);
18135
18314
  localVarPath = "/sip/numbers/ports";
18136
18315
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18137
18316
  if (configuration) {
@@ -18193,6 +18372,8 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
18193
18372
  /**
18194
18373
  *
18195
18374
  * @param {number} id Number Port ID
18375
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
18376
+ * @param {File} cloa CLOA (only provide on submission)
18196
18377
  * @param {string | null} [companyName] Company Name
18197
18378
  * @param {string | null} [addressLine1] Address Line 1
18198
18379
  * @param {string | null} [addressLine2] Address Line 2
@@ -18203,22 +18384,24 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
18203
18384
  * @param {string | null} [requestedPortDate] Requested Port Date
18204
18385
  * @param {boolean | null} [asap] Port Date ASAP
18205
18386
  * @param {string | null} [comment] Comment
18206
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18207
- * @param {File} [cloa] CLOA (only provide on submission)
18208
18387
  * @param {*} [options] Override http request option.
18209
18388
  * @throws {RequiredError}
18210
18389
  */
18211
- postSubmitNumberPort: function (id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
18390
+ postSubmitNumberPort: function (id_1, numberRanges_1, cloa_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1) {
18212
18391
  var args_1 = [];
18213
18392
  for (var _i = 13; _i < arguments.length; _i++) {
18214
18393
  args_1[_i - 13] = arguments[_i];
18215
18394
  }
18216
- return __awaiter(_this, __spreadArray([id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18395
+ return __awaiter(_this, __spreadArray([id_1, numberRanges_1, cloa_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1], args_1, true), void 0, function (id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
18217
18396
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
18218
18397
  if (options === void 0) { options = {}; }
18219
18398
  return __generator(this, function (_a) {
18220
18399
  // verify required parameter 'id' is not null or undefined
18221
18400
  (0, common_1.assertParamExists)('postSubmitNumberPort', 'id', id);
18401
+ // verify required parameter 'numberRanges' is not null or undefined
18402
+ (0, common_1.assertParamExists)('postSubmitNumberPort', 'numberRanges', numberRanges);
18403
+ // verify required parameter 'cloa' is not null or undefined
18404
+ (0, common_1.assertParamExists)('postSubmitNumberPort', 'cloa', cloa);
18222
18405
  localVarPath = "/sip/numbers/ports/{id}/submit"
18223
18406
  .replace('{id}', encodeURIComponent(String(id)));
18224
18407
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -18281,6 +18464,8 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
18281
18464
  /**
18282
18465
  *
18283
18466
  * @param {number} id Number Port ID
18467
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
18468
+ * @param {File} cloa CLOA (only provide on submission)
18284
18469
  * @param {string | null} [companyName] Company Name
18285
18470
  * @param {string | null} [addressLine1] Address Line 1
18286
18471
  * @param {string | null} [addressLine2] Address Line 2
@@ -18291,22 +18476,24 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
18291
18476
  * @param {string | null} [requestedPortDate] Requested Port Date
18292
18477
  * @param {boolean | null} [asap] Port Date ASAP
18293
18478
  * @param {string | null} [comment] Comment
18294
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18295
- * @param {File} [cloa] CLOA (only provide on submission)
18296
18479
  * @param {*} [options] Override http request option.
18297
18480
  * @throws {RequiredError}
18298
18481
  */
18299
- postUpdateNumberPort: function (id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
18482
+ postUpdateNumberPort: function (id_1, numberRanges_1, cloa_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1) {
18300
18483
  var args_1 = [];
18301
18484
  for (var _i = 13; _i < arguments.length; _i++) {
18302
18485
  args_1[_i - 13] = arguments[_i];
18303
18486
  }
18304
- return __awaiter(_this, __spreadArray([id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18487
+ return __awaiter(_this, __spreadArray([id_1, numberRanges_1, cloa_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1], args_1, true), void 0, function (id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
18305
18488
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
18306
18489
  if (options === void 0) { options = {}; }
18307
18490
  return __generator(this, function (_a) {
18308
18491
  // verify required parameter 'id' is not null or undefined
18309
18492
  (0, common_1.assertParamExists)('postUpdateNumberPort', 'id', id);
18493
+ // verify required parameter 'numberRanges' is not null or undefined
18494
+ (0, common_1.assertParamExists)('postUpdateNumberPort', 'numberRanges', numberRanges);
18495
+ // verify required parameter 'cloa' is not null or undefined
18496
+ (0, common_1.assertParamExists)('postUpdateNumberPort', 'cloa', cloa);
18310
18497
  localVarPath = "/sip/numbers/ports/{id}"
18311
18498
  .replace('{id}', encodeURIComponent(String(id)));
18312
18499
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -18600,6 +18787,8 @@ var NumberPortingApiFp = function (configuration) {
18600
18787
  },
18601
18788
  /**
18602
18789
  *
18790
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
18791
+ * @param {File} cloa CLOA (only provide on submission)
18603
18792
  * @param {string | null} [companyName] Company Name
18604
18793
  * @param {string | null} [addressLine1] Address Line 1
18605
18794
  * @param {string | null} [addressLine2] Address Line 2
@@ -18610,18 +18799,16 @@ var NumberPortingApiFp = function (configuration) {
18610
18799
  * @param {string | null} [requestedPortDate] Requested Port Date
18611
18800
  * @param {boolean | null} [asap] Port Date ASAP
18612
18801
  * @param {string | null} [comment] Comment
18613
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18614
- * @param {File} [cloa] CLOA (only provide on submission)
18615
18802
  * @param {*} [options] Override http request option.
18616
18803
  * @throws {RequiredError}
18617
18804
  */
18618
- postCreateNumberPort: function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18805
+ postCreateNumberPort: function (numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
18619
18806
  return __awaiter(this, void 0, void 0, function () {
18620
18807
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
18621
18808
  var _a, _b, _c;
18622
18809
  return __generator(this, function (_d) {
18623
18810
  switch (_d.label) {
18624
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
18811
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateNumberPort(numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options)];
18625
18812
  case 1:
18626
18813
  localVarAxiosArgs = _d.sent();
18627
18814
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -18634,6 +18821,8 @@ var NumberPortingApiFp = function (configuration) {
18634
18821
  /**
18635
18822
  *
18636
18823
  * @param {number} id Number Port ID
18824
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
18825
+ * @param {File} cloa CLOA (only provide on submission)
18637
18826
  * @param {string | null} [companyName] Company Name
18638
18827
  * @param {string | null} [addressLine1] Address Line 1
18639
18828
  * @param {string | null} [addressLine2] Address Line 2
@@ -18644,18 +18833,16 @@ var NumberPortingApiFp = function (configuration) {
18644
18833
  * @param {string | null} [requestedPortDate] Requested Port Date
18645
18834
  * @param {boolean | null} [asap] Port Date ASAP
18646
18835
  * @param {string | null} [comment] Comment
18647
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18648
- * @param {File} [cloa] CLOA (only provide on submission)
18649
18836
  * @param {*} [options] Override http request option.
18650
18837
  * @throws {RequiredError}
18651
18838
  */
18652
- postSubmitNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18839
+ postSubmitNumberPort: function (id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
18653
18840
  return __awaiter(this, void 0, void 0, function () {
18654
18841
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
18655
18842
  var _a, _b, _c;
18656
18843
  return __generator(this, function (_d) {
18657
18844
  switch (_d.label) {
18658
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
18845
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSubmitNumberPort(id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options)];
18659
18846
  case 1:
18660
18847
  localVarAxiosArgs = _d.sent();
18661
18848
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -18668,6 +18855,8 @@ var NumberPortingApiFp = function (configuration) {
18668
18855
  /**
18669
18856
  *
18670
18857
  * @param {number} id Number Port ID
18858
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
18859
+ * @param {File} cloa CLOA (only provide on submission)
18671
18860
  * @param {string | null} [companyName] Company Name
18672
18861
  * @param {string | null} [addressLine1] Address Line 1
18673
18862
  * @param {string | null} [addressLine2] Address Line 2
@@ -18678,18 +18867,16 @@ var NumberPortingApiFp = function (configuration) {
18678
18867
  * @param {string | null} [requestedPortDate] Requested Port Date
18679
18868
  * @param {boolean | null} [asap] Port Date ASAP
18680
18869
  * @param {string | null} [comment] Comment
18681
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18682
- * @param {File} [cloa] CLOA (only provide on submission)
18683
18870
  * @param {*} [options] Override http request option.
18684
18871
  * @throws {RequiredError}
18685
18872
  */
18686
- postUpdateNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18873
+ postUpdateNumberPort: function (id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
18687
18874
  return __awaiter(this, void 0, void 0, function () {
18688
18875
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
18689
18876
  var _a, _b, _c;
18690
18877
  return __generator(this, function (_d) {
18691
18878
  switch (_d.label) {
18692
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
18879
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdateNumberPort(id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options)];
18693
18880
  case 1:
18694
18881
  localVarAxiosArgs = _d.sent();
18695
18882
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -18810,6 +18997,8 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
18810
18997
  },
18811
18998
  /**
18812
18999
  *
19000
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
19001
+ * @param {File} cloa CLOA (only provide on submission)
18813
19002
  * @param {string | null} [companyName] Company Name
18814
19003
  * @param {string | null} [addressLine1] Address Line 1
18815
19004
  * @param {string | null} [addressLine2] Address Line 2
@@ -18820,17 +19009,17 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
18820
19009
  * @param {string | null} [requestedPortDate] Requested Port Date
18821
19010
  * @param {boolean | null} [asap] Port Date ASAP
18822
19011
  * @param {string | null} [comment] Comment
18823
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18824
- * @param {File} [cloa] CLOA (only provide on submission)
18825
19012
  * @param {*} [options] Override http request option.
18826
19013
  * @throws {RequiredError}
18827
19014
  */
18828
- postCreateNumberPort: function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18829
- return localVarFp.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
19015
+ postCreateNumberPort: function (numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
19016
+ return localVarFp.postCreateNumberPort(numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options).then(function (request) { return request(axios, basePath); });
18830
19017
  },
18831
19018
  /**
18832
19019
  *
18833
19020
  * @param {number} id Number Port ID
19021
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
19022
+ * @param {File} cloa CLOA (only provide on submission)
18834
19023
  * @param {string | null} [companyName] Company Name
18835
19024
  * @param {string | null} [addressLine1] Address Line 1
18836
19025
  * @param {string | null} [addressLine2] Address Line 2
@@ -18841,17 +19030,17 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
18841
19030
  * @param {string | null} [requestedPortDate] Requested Port Date
18842
19031
  * @param {boolean | null} [asap] Port Date ASAP
18843
19032
  * @param {string | null} [comment] Comment
18844
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18845
- * @param {File} [cloa] CLOA (only provide on submission)
18846
19033
  * @param {*} [options] Override http request option.
18847
19034
  * @throws {RequiredError}
18848
19035
  */
18849
- postSubmitNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18850
- return localVarFp.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
19036
+ postSubmitNumberPort: function (id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
19037
+ return localVarFp.postSubmitNumberPort(id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options).then(function (request) { return request(axios, basePath); });
18851
19038
  },
18852
19039
  /**
18853
19040
  *
18854
19041
  * @param {number} id Number Port ID
19042
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
19043
+ * @param {File} cloa CLOA (only provide on submission)
18855
19044
  * @param {string | null} [companyName] Company Name
18856
19045
  * @param {string | null} [addressLine1] Address Line 1
18857
19046
  * @param {string | null} [addressLine2] Address Line 2
@@ -18862,13 +19051,11 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
18862
19051
  * @param {string | null} [requestedPortDate] Requested Port Date
18863
19052
  * @param {boolean | null} [asap] Port Date ASAP
18864
19053
  * @param {string | null} [comment] Comment
18865
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18866
- * @param {File} [cloa] CLOA (only provide on submission)
18867
19054
  * @param {*} [options] Override http request option.
18868
19055
  * @throws {RequiredError}
18869
19056
  */
18870
- postUpdateNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
18871
- return localVarFp.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
19057
+ postUpdateNumberPort: function (id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
19058
+ return localVarFp.postUpdateNumberPort(id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options).then(function (request) { return request(axios, basePath); });
18872
19059
  },
18873
19060
  /**
18874
19061
  *
@@ -18978,6 +19165,8 @@ var NumberPortingApi = /** @class */ (function (_super) {
18978
19165
  };
18979
19166
  /**
18980
19167
  *
19168
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
19169
+ * @param {File} cloa CLOA (only provide on submission)
18981
19170
  * @param {string | null} [companyName] Company Name
18982
19171
  * @param {string | null} [addressLine1] Address Line 1
18983
19172
  * @param {string | null} [addressLine2] Address Line 2
@@ -18988,18 +19177,18 @@ var NumberPortingApi = /** @class */ (function (_super) {
18988
19177
  * @param {string | null} [requestedPortDate] Requested Port Date
18989
19178
  * @param {boolean | null} [asap] Port Date ASAP
18990
19179
  * @param {string | null} [comment] Comment
18991
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
18992
- * @param {File} [cloa] CLOA (only provide on submission)
18993
19180
  * @param {*} [options] Override http request option.
18994
19181
  * @throws {RequiredError}
18995
19182
  */
18996
- NumberPortingApi.prototype.postCreateNumberPort = function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
19183
+ NumberPortingApi.prototype.postCreateNumberPort = function (numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
18997
19184
  var _this = this;
18998
- return (0, exports.NumberPortingApiFp)(this.configuration).postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
19185
+ return (0, exports.NumberPortingApiFp)(this.configuration).postCreateNumberPort(numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options).then(function (request) { return request(_this.axios, _this.basePath); });
18999
19186
  };
19000
19187
  /**
19001
19188
  *
19002
19189
  * @param {number} id Number Port ID
19190
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
19191
+ * @param {File} cloa CLOA (only provide on submission)
19003
19192
  * @param {string | null} [companyName] Company Name
19004
19193
  * @param {string | null} [addressLine1] Address Line 1
19005
19194
  * @param {string | null} [addressLine2] Address Line 2
@@ -19010,18 +19199,18 @@ var NumberPortingApi = /** @class */ (function (_super) {
19010
19199
  * @param {string | null} [requestedPortDate] Requested Port Date
19011
19200
  * @param {boolean | null} [asap] Port Date ASAP
19012
19201
  * @param {string | null} [comment] Comment
19013
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
19014
- * @param {File} [cloa] CLOA (only provide on submission)
19015
19202
  * @param {*} [options] Override http request option.
19016
19203
  * @throws {RequiredError}
19017
19204
  */
19018
- NumberPortingApi.prototype.postSubmitNumberPort = function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
19205
+ NumberPortingApi.prototype.postSubmitNumberPort = function (id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
19019
19206
  var _this = this;
19020
- return (0, exports.NumberPortingApiFp)(this.configuration).postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
19207
+ return (0, exports.NumberPortingApiFp)(this.configuration).postSubmitNumberPort(id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options).then(function (request) { return request(_this.axios, _this.basePath); });
19021
19208
  };
19022
19209
  /**
19023
19210
  *
19024
19211
  * @param {number} id Number Port ID
19212
+ * @param {Array<NumberPortRangeRequestDTO>} numberRanges Number Ranges
19213
+ * @param {File} cloa CLOA (only provide on submission)
19025
19214
  * @param {string | null} [companyName] Company Name
19026
19215
  * @param {string | null} [addressLine1] Address Line 1
19027
19216
  * @param {string | null} [addressLine2] Address Line 2
@@ -19032,14 +19221,12 @@ var NumberPortingApi = /** @class */ (function (_super) {
19032
19221
  * @param {string | null} [requestedPortDate] Requested Port Date
19033
19222
  * @param {boolean | null} [asap] Port Date ASAP
19034
19223
  * @param {string | null} [comment] Comment
19035
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
19036
- * @param {File} [cloa] CLOA (only provide on submission)
19037
19224
  * @param {*} [options] Override http request option.
19038
19225
  * @throws {RequiredError}
19039
19226
  */
19040
- NumberPortingApi.prototype.postUpdateNumberPort = function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
19227
+ NumberPortingApi.prototype.postUpdateNumberPort = function (id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options) {
19041
19228
  var _this = this;
19042
- return (0, exports.NumberPortingApiFp)(this.configuration).postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
19229
+ return (0, exports.NumberPortingApiFp)(this.configuration).postUpdateNumberPort(id, numberRanges, cloa, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, options).then(function (request) { return request(_this.axios, _this.basePath); });
19043
19230
  };
19044
19231
  /**
19045
19232
  *
@@ -19787,6 +19974,8 @@ exports.PostAccessTokenScopeEnum = {
19787
19974
  ProductsRead: 'products.read',
19788
19975
  ProvisioningRead: 'provisioning.read',
19789
19976
  ProvisioningWrite: 'provisioning.write',
19977
+ RmaRead: 'rma.read',
19978
+ RmaWrite: 'rma.write',
19790
19979
  SmsRead: 'sms.read',
19791
19980
  SmsWrite: 'sms.write',
19792
19981
  TrunksRead: 'trunks.read',
@@ -19823,6 +20012,8 @@ exports.PostAuthoriseScopeEnum = {
19823
20012
  ProductsRead: 'products.read',
19824
20013
  ProvisioningRead: 'provisioning.read',
19825
20014
  ProvisioningWrite: 'provisioning.write',
20015
+ RmaRead: 'rma.read',
20016
+ RmaWrite: 'rma.write',
19826
20017
  SmsRead: 'sms.read',
19827
20018
  SmsWrite: 'sms.write',
19828
20019
  TrunksRead: 'trunks.read',
@@ -20087,6 +20278,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
20087
20278
  });
20088
20279
  });
20089
20280
  },
20281
+ /**
20282
+ * Get Order
20283
+ * @param {number} id Order ID
20284
+ * @param {*} [options] Override http request option.
20285
+ * @throws {RequiredError}
20286
+ */
20287
+ getGetCustomerOrderSummary: function (id_1) {
20288
+ var args_1 = [];
20289
+ for (var _i = 1; _i < arguments.length; _i++) {
20290
+ args_1[_i - 1] = arguments[_i];
20291
+ }
20292
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
20293
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20294
+ if (options === void 0) { options = {}; }
20295
+ return __generator(this, function (_a) {
20296
+ // verify required parameter 'id' is not null or undefined
20297
+ (0, common_1.assertParamExists)('getGetCustomerOrderSummary', 'id', id);
20298
+ localVarPath = "/orders/{id}/summary"
20299
+ .replace('{id}', encodeURIComponent(String(id)));
20300
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20301
+ if (configuration) {
20302
+ baseOptions = configuration.baseOptions;
20303
+ }
20304
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
20305
+ localVarHeaderParameter = {};
20306
+ localVarQueryParameter = {};
20307
+ localVarHeaderParameter['Accept'] = 'application/json';
20308
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20309
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20310
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20311
+ return [2 /*return*/, {
20312
+ url: (0, common_1.toPathString)(localVarUrlObj),
20313
+ options: localVarRequestOptions,
20314
+ }];
20315
+ });
20316
+ });
20317
+ },
20090
20318
  /**
20091
20319
  * Get Editable Order (Beta)
20092
20320
  * @summary Get Editable Order (Beta)
@@ -21336,6 +21564,28 @@ var OrdersApiFp = function (configuration) {
21336
21564
  });
21337
21565
  });
21338
21566
  },
21567
+ /**
21568
+ * Get Order
21569
+ * @param {number} id Order ID
21570
+ * @param {*} [options] Override http request option.
21571
+ * @throws {RequiredError}
21572
+ */
21573
+ getGetCustomerOrderSummary: function (id, options) {
21574
+ return __awaiter(this, void 0, void 0, function () {
21575
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
21576
+ var _a, _b, _c;
21577
+ return __generator(this, function (_d) {
21578
+ switch (_d.label) {
21579
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerOrderSummary(id, options)];
21580
+ case 1:
21581
+ localVarAxiosArgs = _d.sent();
21582
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
21583
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetCustomerOrderSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21584
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
21585
+ }
21586
+ });
21587
+ });
21588
+ },
21339
21589
  /**
21340
21590
  * Get Editable Order (Beta)
21341
21591
  * @summary Get Editable Order (Beta)
@@ -22022,6 +22272,15 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
22022
22272
  getGetCommercialInvoice: function (id, batchId, shipmentId, options) {
22023
22273
  return localVarFp.getGetCommercialInvoice(id, batchId, shipmentId, options).then(function (request) { return request(axios, basePath); });
22024
22274
  },
22275
+ /**
22276
+ * Get Order
22277
+ * @param {number} id Order ID
22278
+ * @param {*} [options] Override http request option.
22279
+ * @throws {RequiredError}
22280
+ */
22281
+ getGetCustomerOrderSummary: function (id, options) {
22282
+ return localVarFp.getGetCustomerOrderSummary(id, options).then(function (request) { return request(axios, basePath); });
22283
+ },
22025
22284
  /**
22026
22285
  * Get Editable Order (Beta)
22027
22286
  * @summary Get Editable Order (Beta)
@@ -22391,6 +22650,16 @@ var OrdersApi = /** @class */ (function (_super) {
22391
22650
  var _this = this;
22392
22651
  return (0, exports.OrdersApiFp)(this.configuration).getGetCommercialInvoice(id, batchId, shipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
22393
22652
  };
22653
+ /**
22654
+ * Get Order
22655
+ * @param {number} id Order ID
22656
+ * @param {*} [options] Override http request option.
22657
+ * @throws {RequiredError}
22658
+ */
22659
+ OrdersApi.prototype.getGetCustomerOrderSummary = function (id, options) {
22660
+ var _this = this;
22661
+ return (0, exports.OrdersApiFp)(this.configuration).getGetCustomerOrderSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
22662
+ };
22394
22663
  /**
22395
22664
  * Get Editable Order (Beta)
22396
22665
  * @summary Get Editable Order (Beta)
@@ -25577,34 +25846,41 @@ var ProvisioningApi = /** @class */ (function (_super) {
25577
25846
  }(base_1.BaseAPI));
25578
25847
  exports.ProvisioningApi = ProvisioningApi;
25579
25848
  /**
25580
- * ReportsApi - axios parameter creator
25849
+ * RMAApi - axios parameter creator
25581
25850
  */
25582
- var ReportsApiAxiosParamCreator = function (configuration) {
25851
+ var RMAApiAxiosParamCreator = function (configuration) {
25583
25852
  var _this = this;
25584
25853
  return {
25585
25854
  /**
25586
- *
25855
+ * Delete an RMA item
25856
+ * @param {number} id
25857
+ * @param {number} itemId
25587
25858
  * @param {*} [options] Override http request option.
25588
25859
  * @throws {RequiredError}
25589
25860
  */
25590
- getGetStockReport: function () {
25861
+ deleteDeleteRmaItem: function (id_1, itemId_1) {
25591
25862
  var args_1 = [];
25592
- for (var _i = 0; _i < arguments.length; _i++) {
25593
- args_1[_i] = arguments[_i];
25863
+ for (var _i = 2; _i < arguments.length; _i++) {
25864
+ args_1[_i - 2] = arguments[_i];
25594
25865
  }
25595
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
25866
+ return __awaiter(_this, __spreadArray([id_1, itemId_1], args_1, true), void 0, function (id, itemId, options) {
25596
25867
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
25597
25868
  if (options === void 0) { options = {}; }
25598
25869
  return __generator(this, function (_a) {
25599
- localVarPath = "/reports/stock";
25870
+ // verify required parameter 'id' is not null or undefined
25871
+ (0, common_1.assertParamExists)('deleteDeleteRmaItem', 'id', id);
25872
+ // verify required parameter 'itemId' is not null or undefined
25873
+ (0, common_1.assertParamExists)('deleteDeleteRmaItem', 'itemId', itemId);
25874
+ localVarPath = "/admin/rma/{id}/items/{item_id}"
25875
+ .replace('{id}', encodeURIComponent(String(id)))
25876
+ .replace('{item_id}', encodeURIComponent(String(itemId)));
25600
25877
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25601
25878
  if (configuration) {
25602
25879
  baseOptions = configuration.baseOptions;
25603
25880
  }
25604
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
25881
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
25605
25882
  localVarHeaderParameter = {};
25606
25883
  localVarQueryParameter = {};
25607
- localVarHeaderParameter['Accept'] = 'application/json';
25608
25884
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
25609
25885
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25610
25886
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -25616,35 +25892,34 @@ var ReportsApiAxiosParamCreator = function (configuration) {
25616
25892
  });
25617
25893
  },
25618
25894
  /**
25619
- * Generate Reports
25620
- * @summary Generate Reports
25621
- * @param {ReportRequestDTO} [reportRequestDTO] Report Request
25895
+ * Delete an RMA
25896
+ * @param {number} id
25622
25897
  * @param {*} [options] Override http request option.
25623
25898
  * @throws {RequiredError}
25624
25899
  */
25625
- postGenerateReport: function (reportRequestDTO_1) {
25900
+ deleteGetAdminRma: function (id_1) {
25626
25901
  var args_1 = [];
25627
25902
  for (var _i = 1; _i < arguments.length; _i++) {
25628
25903
  args_1[_i - 1] = arguments[_i];
25629
25904
  }
25630
- return __awaiter(_this, __spreadArray([reportRequestDTO_1], args_1, true), void 0, function (reportRequestDTO, options) {
25905
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
25631
25906
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
25632
25907
  if (options === void 0) { options = {}; }
25633
25908
  return __generator(this, function (_a) {
25634
- localVarPath = "/reports";
25909
+ // verify required parameter 'id' is not null or undefined
25910
+ (0, common_1.assertParamExists)('deleteGetAdminRma', 'id', id);
25911
+ localVarPath = "/admin/rma/{id}"
25912
+ .replace('{id}', encodeURIComponent(String(id)));
25635
25913
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25636
25914
  if (configuration) {
25637
25915
  baseOptions = configuration.baseOptions;
25638
25916
  }
25639
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
25917
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
25640
25918
  localVarHeaderParameter = {};
25641
25919
  localVarQueryParameter = {};
25642
- localVarHeaderParameter['Content-Type'] = 'application/json';
25643
- localVarHeaderParameter['Accept'] = 'application/json';
25644
25920
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
25645
25921
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25646
25922
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25647
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reportRequestDTO, localVarRequestOptions, configuration);
25648
25923
  return [2 /*return*/, {
25649
25924
  url: (0, common_1.toPathString)(localVarUrlObj),
25650
25925
  options: localVarRequestOptions,
@@ -25652,153 +25927,40 @@ var ReportsApiAxiosParamCreator = function (configuration) {
25652
25927
  });
25653
25928
  });
25654
25929
  },
25655
- };
25656
- };
25657
- exports.ReportsApiAxiosParamCreator = ReportsApiAxiosParamCreator;
25658
- /**
25659
- * ReportsApi - functional programming interface
25660
- */
25661
- var ReportsApiFp = function (configuration) {
25662
- var localVarAxiosParamCreator = (0, exports.ReportsApiAxiosParamCreator)(configuration);
25663
- return {
25664
- /**
25665
- *
25666
- * @param {*} [options] Override http request option.
25667
- * @throws {RequiredError}
25668
- */
25669
- getGetStockReport: function (options) {
25670
- return __awaiter(this, void 0, void 0, function () {
25671
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
25672
- var _a, _b, _c;
25673
- return __generator(this, function (_d) {
25674
- switch (_d.label) {
25675
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockReport(options)];
25676
- case 1:
25677
- localVarAxiosArgs = _d.sent();
25678
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25679
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReportsApi.getGetStockReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25680
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
25681
- }
25682
- });
25683
- });
25684
- },
25685
- /**
25686
- * Generate Reports
25687
- * @summary Generate Reports
25688
- * @param {ReportRequestDTO} [reportRequestDTO] Report Request
25689
- * @param {*} [options] Override http request option.
25690
- * @throws {RequiredError}
25691
- */
25692
- postGenerateReport: function (reportRequestDTO, options) {
25693
- return __awaiter(this, void 0, void 0, function () {
25694
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
25695
- var _a, _b, _c;
25696
- return __generator(this, function (_d) {
25697
- switch (_d.label) {
25698
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGenerateReport(reportRequestDTO, options)];
25699
- case 1:
25700
- localVarAxiosArgs = _d.sent();
25701
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25702
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReportsApi.postGenerateReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25703
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
25704
- }
25705
- });
25706
- });
25707
- },
25708
- };
25709
- };
25710
- exports.ReportsApiFp = ReportsApiFp;
25711
- /**
25712
- * ReportsApi - factory interface
25713
- */
25714
- var ReportsApiFactory = function (configuration, basePath, axios) {
25715
- var localVarFp = (0, exports.ReportsApiFp)(configuration);
25716
- return {
25717
- /**
25718
- *
25719
- * @param {*} [options] Override http request option.
25720
- * @throws {RequiredError}
25721
- */
25722
- getGetStockReport: function (options) {
25723
- return localVarFp.getGetStockReport(options).then(function (request) { return request(axios, basePath); });
25724
- },
25725
- /**
25726
- * Generate Reports
25727
- * @summary Generate Reports
25728
- * @param {ReportRequestDTO} [reportRequestDTO] Report Request
25729
- * @param {*} [options] Override http request option.
25730
- * @throws {RequiredError}
25731
- */
25732
- postGenerateReport: function (reportRequestDTO, options) {
25733
- return localVarFp.postGenerateReport(reportRequestDTO, options).then(function (request) { return request(axios, basePath); });
25734
- },
25735
- };
25736
- };
25737
- exports.ReportsApiFactory = ReportsApiFactory;
25738
- /**
25739
- * ReportsApi - object-oriented interface
25740
- */
25741
- var ReportsApi = /** @class */ (function (_super) {
25742
- __extends(ReportsApi, _super);
25743
- function ReportsApi() {
25744
- return _super !== null && _super.apply(this, arguments) || this;
25745
- }
25746
- /**
25747
- *
25748
- * @param {*} [options] Override http request option.
25749
- * @throws {RequiredError}
25750
- */
25751
- ReportsApi.prototype.getGetStockReport = function (options) {
25752
- var _this = this;
25753
- return (0, exports.ReportsApiFp)(this.configuration).getGetStockReport(options).then(function (request) { return request(_this.axios, _this.basePath); });
25754
- };
25755
- /**
25756
- * Generate Reports
25757
- * @summary Generate Reports
25758
- * @param {ReportRequestDTO} [reportRequestDTO] Report Request
25759
- * @param {*} [options] Override http request option.
25760
- * @throws {RequiredError}
25761
- */
25762
- ReportsApi.prototype.postGenerateReport = function (reportRequestDTO, options) {
25763
- var _this = this;
25764
- return (0, exports.ReportsApiFp)(this.configuration).postGenerateReport(reportRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
25765
- };
25766
- return ReportsApi;
25767
- }(base_1.BaseAPI));
25768
- exports.ReportsApi = ReportsApi;
25769
- /**
25770
- * SIPTrunksApi - axios parameter creator
25771
- */
25772
- var SIPTrunksApiAxiosParamCreator = function (configuration) {
25773
- var _this = this;
25774
- return {
25775
25930
  /**
25776
- * Delete SIP Trunk
25777
- * @summary Delete SIP Trunk
25778
- * @param {number} id SIP Trunk ID
25931
+ * Get Customer RMAs
25932
+ * @param {number} [pageSize] Number Of Results
25933
+ * @param {number} [page] Page Number
25934
+ * @param {string} [search] Search
25779
25935
  * @param {*} [options] Override http request option.
25780
25936
  * @throws {RequiredError}
25781
25937
  */
25782
- deleteGetSipTrunk: function (id_1) {
25938
+ getCreateRma: function (pageSize_1, page_1, search_1) {
25783
25939
  var args_1 = [];
25784
- for (var _i = 1; _i < arguments.length; _i++) {
25785
- args_1[_i - 1] = arguments[_i];
25940
+ for (var _i = 3; _i < arguments.length; _i++) {
25941
+ args_1[_i - 3] = arguments[_i];
25786
25942
  }
25787
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
25943
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
25788
25944
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
25789
25945
  if (options === void 0) { options = {}; }
25790
25946
  return __generator(this, function (_a) {
25791
- // verify required parameter 'id' is not null or undefined
25792
- (0, common_1.assertParamExists)('deleteGetSipTrunk', 'id', id);
25793
- localVarPath = "/sip/trunks/{id}"
25794
- .replace('{id}', encodeURIComponent(String(id)));
25947
+ localVarPath = "/rma";
25795
25948
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25796
25949
  if (configuration) {
25797
25950
  baseOptions = configuration.baseOptions;
25798
25951
  }
25799
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
25952
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
25800
25953
  localVarHeaderParameter = {};
25801
25954
  localVarQueryParameter = {};
25955
+ if (pageSize !== undefined) {
25956
+ localVarQueryParameter['pageSize'] = pageSize;
25957
+ }
25958
+ if (page !== undefined) {
25959
+ localVarQueryParameter['page'] = page;
25960
+ }
25961
+ if (search !== undefined) {
25962
+ localVarQueryParameter['search'] = search;
25963
+ }
25802
25964
  localVarHeaderParameter['Accept'] = 'application/json';
25803
25965
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
25804
25966
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -25811,13 +25973,12 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25811
25973
  });
25812
25974
  },
25813
25975
  /**
25814
- * SIP Trunk Diverts Allowed
25815
- * @summary SIP Trunk Diverts Allowed
25816
- * @param {number} id SIP Trunk ID
25976
+ * Get Admin RMA by ID
25977
+ * @param {number} id
25817
25978
  * @param {*} [options] Override http request option.
25818
25979
  * @throws {RequiredError}
25819
25980
  */
25820
- getCanDivert: function (id_1) {
25981
+ getGetAdminRma: function (id_1) {
25821
25982
  var args_1 = [];
25822
25983
  for (var _i = 1; _i < arguments.length; _i++) {
25823
25984
  args_1[_i - 1] = arguments[_i];
@@ -25827,8 +25988,8 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25827
25988
  if (options === void 0) { options = {}; }
25828
25989
  return __generator(this, function (_a) {
25829
25990
  // verify required parameter 'id' is not null or undefined
25830
- (0, common_1.assertParamExists)('getCanDivert', 'id', id);
25831
- localVarPath = "/sip/trunks/{id}/diverts/allowed"
25991
+ (0, common_1.assertParamExists)('getGetAdminRma', 'id', id);
25992
+ localVarPath = "/admin/rma/{id}"
25832
25993
  .replace('{id}', encodeURIComponent(String(id)));
25833
25994
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25834
25995
  if (configuration) {
@@ -25849,13 +26010,12 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25849
26010
  });
25850
26011
  },
25851
26012
  /**
25852
- * Get SIP Trunk Address
25853
- * @summary Get SIP Trunk Address
25854
- * @param {number} id SIP Trunk ID
26013
+ * Get an RMA\'s Associated Order
26014
+ * @param {number} id
25855
26015
  * @param {*} [options] Override http request option.
25856
26016
  * @throws {RequiredError}
25857
26017
  */
25858
- getGetAddress: function (id_1) {
26018
+ getGetAdminRmaOrder: function (id_1) {
25859
26019
  var args_1 = [];
25860
26020
  for (var _i = 1; _i < arguments.length; _i++) {
25861
26021
  args_1[_i - 1] = arguments[_i];
@@ -25865,8 +26025,8 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25865
26025
  if (options === void 0) { options = {}; }
25866
26026
  return __generator(this, function (_a) {
25867
26027
  // verify required parameter 'id' is not null or undefined
25868
- (0, common_1.assertParamExists)('getGetAddress', 'id', id);
25869
- localVarPath = "/sip/trunks/{id}/address"
26028
+ (0, common_1.assertParamExists)('getGetAdminRmaOrder', 'id', id);
26029
+ localVarPath = "/admin/rma/{id}/order"
25870
26030
  .replace('{id}', encodeURIComponent(String(id)));
25871
26031
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25872
26032
  if (configuration) {
@@ -25887,21 +26047,23 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25887
26047
  });
25888
26048
  },
25889
26049
  /**
25890
- * Get SIP Trunks
25891
- * @param {number} [customerId] Customer ID
26050
+ * Get Admin RMAs
26051
+ * @param {number} [pageSize] Number Of Results
26052
+ * @param {number} [page] Page Number
26053
+ * @param {string} [search] Search
25892
26054
  * @param {*} [options] Override http request option.
25893
26055
  * @throws {RequiredError}
25894
26056
  */
25895
- getGetAdminSipTrunks: function (customerId_1) {
26057
+ getGetAdminRmas: function (pageSize_1, page_1, search_1) {
25896
26058
  var args_1 = [];
25897
- for (var _i = 1; _i < arguments.length; _i++) {
25898
- args_1[_i - 1] = arguments[_i];
26059
+ for (var _i = 3; _i < arguments.length; _i++) {
26060
+ args_1[_i - 3] = arguments[_i];
25899
26061
  }
25900
- return __awaiter(_this, __spreadArray([customerId_1], args_1, true), void 0, function (customerId, options) {
26062
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
25901
26063
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
25902
26064
  if (options === void 0) { options = {}; }
25903
26065
  return __generator(this, function (_a) {
25904
- localVarPath = "/sip/trunks/admin";
26066
+ localVarPath = "/admin/rma";
25905
26067
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25906
26068
  if (configuration) {
25907
26069
  baseOptions = configuration.baseOptions;
@@ -25909,8 +26071,14 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25909
26071
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
25910
26072
  localVarHeaderParameter = {};
25911
26073
  localVarQueryParameter = {};
25912
- if (customerId !== undefined) {
25913
- localVarQueryParameter['customerId'] = customerId;
26074
+ if (pageSize !== undefined) {
26075
+ localVarQueryParameter['pageSize'] = pageSize;
26076
+ }
26077
+ if (page !== undefined) {
26078
+ localVarQueryParameter['page'] = page;
26079
+ }
26080
+ if (search !== undefined) {
26081
+ localVarQueryParameter['search'] = search;
25914
26082
  }
25915
26083
  localVarHeaderParameter['Accept'] = 'application/json';
25916
26084
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -25924,21 +26092,24 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25924
26092
  });
25925
26093
  },
25926
26094
  /**
25927
- * Get UK National Area Codes
25928
- * @summary Get UK National Area Codes
26095
+ * Get RMA by ID
26096
+ * @param {number} id RMA ID
25929
26097
  * @param {*} [options] Override http request option.
25930
26098
  * @throws {RequiredError}
25931
26099
  */
25932
- getGetAreaCodes: function () {
26100
+ getGetRma: function (id_1) {
25933
26101
  var args_1 = [];
25934
- for (var _i = 0; _i < arguments.length; _i++) {
25935
- args_1[_i] = arguments[_i];
26102
+ for (var _i = 1; _i < arguments.length; _i++) {
26103
+ args_1[_i - 1] = arguments[_i];
25936
26104
  }
25937
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
26105
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
25938
26106
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
25939
26107
  if (options === void 0) { options = {}; }
25940
26108
  return __generator(this, function (_a) {
25941
- localVarPath = "/sip/trunks/area/codes";
26109
+ // verify required parameter 'id' is not null or undefined
26110
+ (0, common_1.assertParamExists)('getGetRma', 'id', id);
26111
+ localVarPath = "/rma/{id}"
26112
+ .replace('{id}', encodeURIComponent(String(id)));
25942
26113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25943
26114
  if (configuration) {
25944
26115
  baseOptions = configuration.baseOptions;
@@ -25958,13 +26129,12 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25958
26129
  });
25959
26130
  },
25960
26131
  /**
25961
- * Get SIP Trunk CLI Flexibility Status
25962
- * @summary Get SIP Trunk CLI Flexibility Status
25963
- * @param {number} id SIP Trunk ID
26132
+ * Get Order by ID
26133
+ * @param {number} id Order ID
25964
26134
  * @param {*} [options] Override http request option.
25965
26135
  * @throws {RequiredError}
25966
26136
  */
25967
- getGetCliFlexibility: function (id_1) {
26137
+ getGetRmaOrder: function (id_1) {
25968
26138
  var args_1 = [];
25969
26139
  for (var _i = 1; _i < arguments.length; _i++) {
25970
26140
  args_1[_i - 1] = arguments[_i];
@@ -25974,8 +26144,8 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25974
26144
  if (options === void 0) { options = {}; }
25975
26145
  return __generator(this, function (_a) {
25976
26146
  // verify required parameter 'id' is not null or undefined
25977
- (0, common_1.assertParamExists)('getGetCliFlexibility', 'id', id);
25978
- localVarPath = "/sip/trunks/{id}/cli/flexibility"
26147
+ (0, common_1.assertParamExists)('getGetRmaOrder', 'id', id);
26148
+ localVarPath = "/rma/orders/{id}"
25979
26149
  .replace('{id}', encodeURIComponent(String(id)));
25980
26150
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25981
26151
  if (configuration) {
@@ -25996,25 +26166,26 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
25996
26166
  });
25997
26167
  },
25998
26168
  /**
25999
- * Get SIP Trunk DDIs
26000
- * @summary Get SIP Trunk DDIs
26001
- * @param {number} id SIP Trunk ID
26169
+ * Get suitable advance replacment orders
26170
+ * @param {string} sku Item SKU
26171
+ * @param {number} orderId Order ID
26002
26172
  * @param {*} [options] Override http request option.
26003
26173
  * @throws {RequiredError}
26004
26174
  */
26005
- getGetDdis: function (id_1) {
26175
+ getSearchAdvanceReplacementOrders: function (sku_1, orderId_1) {
26006
26176
  var args_1 = [];
26007
- for (var _i = 1; _i < arguments.length; _i++) {
26008
- args_1[_i - 1] = arguments[_i];
26177
+ for (var _i = 2; _i < arguments.length; _i++) {
26178
+ args_1[_i - 2] = arguments[_i];
26009
26179
  }
26010
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
26180
+ return __awaiter(_this, __spreadArray([sku_1, orderId_1], args_1, true), void 0, function (sku, orderId, options) {
26011
26181
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26012
26182
  if (options === void 0) { options = {}; }
26013
26183
  return __generator(this, function (_a) {
26014
- // verify required parameter 'id' is not null or undefined
26015
- (0, common_1.assertParamExists)('getGetDdis', 'id', id);
26016
- localVarPath = "/sip/trunks/{id}/ddis"
26017
- .replace('{id}', encodeURIComponent(String(id)));
26184
+ // verify required parameter 'sku' is not null or undefined
26185
+ (0, common_1.assertParamExists)('getSearchAdvanceReplacementOrders', 'sku', sku);
26186
+ // verify required parameter 'orderId' is not null or undefined
26187
+ (0, common_1.assertParamExists)('getSearchAdvanceReplacementOrders', 'orderId', orderId);
26188
+ localVarPath = "/rma/advance_replacement/orders";
26018
26189
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26019
26190
  if (configuration) {
26020
26191
  baseOptions = configuration.baseOptions;
@@ -26022,6 +26193,12 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
26022
26193
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
26023
26194
  localVarHeaderParameter = {};
26024
26195
  localVarQueryParameter = {};
26196
+ if (sku !== undefined) {
26197
+ localVarQueryParameter['sku'] = sku;
26198
+ }
26199
+ if (orderId !== undefined) {
26200
+ localVarQueryParameter['orderId'] = orderId;
26201
+ }
26025
26202
  localVarHeaderParameter['Accept'] = 'application/json';
26026
26203
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26027
26204
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -26034,26 +26211,21 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
26034
26211
  });
26035
26212
  },
26036
26213
  /**
26037
- * Get SIP Trunk Diverts
26038
- * @summary Get SIP Trunk Diverts
26039
- * @param {number} id SIP Trunk ID
26040
- * @param {boolean} [enabled] Enabled Diverts
26214
+ * Search for Orders to create an RMA
26215
+ * @param {string} [search] Search
26041
26216
  * @param {*} [options] Override http request option.
26042
26217
  * @throws {RequiredError}
26043
26218
  */
26044
- getGetDiverts: function (id_1, enabled_1) {
26219
+ getSearchRmaOrders: function (search_1) {
26045
26220
  var args_1 = [];
26046
- for (var _i = 2; _i < arguments.length; _i++) {
26047
- args_1[_i - 2] = arguments[_i];
26221
+ for (var _i = 1; _i < arguments.length; _i++) {
26222
+ args_1[_i - 1] = arguments[_i];
26048
26223
  }
26049
- return __awaiter(_this, __spreadArray([id_1, enabled_1], args_1, true), void 0, function (id, enabled, options) {
26224
+ return __awaiter(_this, __spreadArray([search_1], args_1, true), void 0, function (search, options) {
26050
26225
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26051
26226
  if (options === void 0) { options = {}; }
26052
26227
  return __generator(this, function (_a) {
26053
- // verify required parameter 'id' is not null or undefined
26054
- (0, common_1.assertParamExists)('getGetDiverts', 'id', id);
26055
- localVarPath = "/sip/trunks/{id}/diverts"
26056
- .replace('{id}', encodeURIComponent(String(id)));
26228
+ localVarPath = "/rma/orders";
26057
26229
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26058
26230
  if (configuration) {
26059
26231
  baseOptions = configuration.baseOptions;
@@ -26061,8 +26233,8 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
26061
26233
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
26062
26234
  localVarHeaderParameter = {};
26063
26235
  localVarQueryParameter = {};
26064
- if (enabled !== undefined) {
26065
- localVarQueryParameter['enabled'] = enabled;
26236
+ if (search !== undefined) {
26237
+ localVarQueryParameter['search'] = search;
26066
26238
  }
26067
26239
  localVarHeaderParameter['Accept'] = 'application/json';
26068
26240
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -26076,13 +26248,12 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
26076
26248
  });
26077
26249
  },
26078
26250
  /**
26079
- * Get SIP Trunk
26080
- * @summary Get SIP Trunk
26081
- * @param {number} id SIP Trunk ID
26251
+ * Approve an RMA
26252
+ * @param {number} id
26082
26253
  * @param {*} [options] Override http request option.
26083
26254
  * @throws {RequiredError}
26084
26255
  */
26085
- getGetSipTrunk: function (id_1) {
26256
+ patchApproveRma: function (id_1) {
26086
26257
  var args_1 = [];
26087
26258
  for (var _i = 1; _i < arguments.length; _i++) {
26088
26259
  args_1[_i - 1] = arguments[_i];
@@ -26092,17 +26263,16 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
26092
26263
  if (options === void 0) { options = {}; }
26093
26264
  return __generator(this, function (_a) {
26094
26265
  // verify required parameter 'id' is not null or undefined
26095
- (0, common_1.assertParamExists)('getGetSipTrunk', 'id', id);
26096
- localVarPath = "/sip/trunks/{id}"
26266
+ (0, common_1.assertParamExists)('patchApproveRma', 'id', id);
26267
+ localVarPath = "/admin/rma/{id}/approve"
26097
26268
  .replace('{id}', encodeURIComponent(String(id)));
26098
26269
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26099
26270
  if (configuration) {
26100
26271
  baseOptions = configuration.baseOptions;
26101
26272
  }
26102
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
26273
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26103
26274
  localVarHeaderParameter = {};
26104
26275
  localVarQueryParameter = {};
26105
- localVarHeaderParameter['Accept'] = 'application/json';
26106
26276
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26107
26277
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26108
26278
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -26114,41 +26284,35 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
26114
26284
  });
26115
26285
  },
26116
26286
  /**
26117
- * Get SIP Trunks
26118
- * @summary Get SIP Trunks
26119
- * @param {number} [pageSize] Number Of Results
26120
- * @param {number} [page] Page Number
26121
- * @param {string} [search] Search
26287
+ * Mark RMA item as binned
26288
+ * @param {number} id
26289
+ * @param {number} itemId
26122
26290
  * @param {*} [options] Override http request option.
26123
26291
  * @throws {RequiredError}
26124
26292
  */
26125
- getGetSipTrunks: function (pageSize_1, page_1, search_1) {
26293
+ patchMarkRmaItemAsBinned: function (id_1, itemId_1) {
26126
26294
  var args_1 = [];
26127
- for (var _i = 3; _i < arguments.length; _i++) {
26128
- args_1[_i - 3] = arguments[_i];
26295
+ for (var _i = 2; _i < arguments.length; _i++) {
26296
+ args_1[_i - 2] = arguments[_i];
26129
26297
  }
26130
- return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
26298
+ return __awaiter(_this, __spreadArray([id_1, itemId_1], args_1, true), void 0, function (id, itemId, options) {
26131
26299
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26132
26300
  if (options === void 0) { options = {}; }
26133
26301
  return __generator(this, function (_a) {
26134
- localVarPath = "/sip/trunks";
26302
+ // verify required parameter 'id' is not null or undefined
26303
+ (0, common_1.assertParamExists)('patchMarkRmaItemAsBinned', 'id', id);
26304
+ // verify required parameter 'itemId' is not null or undefined
26305
+ (0, common_1.assertParamExists)('patchMarkRmaItemAsBinned', 'itemId', itemId);
26306
+ localVarPath = "/admin/rma/{id}/items/{item_id}/bin"
26307
+ .replace('{id}', encodeURIComponent(String(id)))
26308
+ .replace('{item_id}', encodeURIComponent(String(itemId)));
26135
26309
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26136
26310
  if (configuration) {
26137
26311
  baseOptions = configuration.baseOptions;
26138
26312
  }
26139
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
26313
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26140
26314
  localVarHeaderParameter = {};
26141
26315
  localVarQueryParameter = {};
26142
- if (pageSize !== undefined) {
26143
- localVarQueryParameter['pageSize'] = pageSize;
26144
- }
26145
- if (page !== undefined) {
26146
- localVarQueryParameter['page'] = page;
26147
- }
26148
- if (search !== undefined) {
26149
- localVarQueryParameter['search'] = search;
26150
- }
26151
- localVarHeaderParameter['Accept'] = 'application/json';
26152
26316
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26153
26317
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26154
26318
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -26160,24 +26324,2662 @@ var SIPTrunksApiAxiosParamCreator = function (configuration) {
26160
26324
  });
26161
26325
  },
26162
26326
  /**
26163
- * Update Get SIP Trunk CLI Flexibility Status
26164
- * @summary Update Get SIP Trunk CLI Flexibility Status
26165
- * @param {number} id SIP Trunk ID
26166
- * @param {boolean} enabled Enabled
26327
+ * Mark RMA item as received
26328
+ * @param {number} id
26329
+ * @param {number} itemId
26167
26330
  * @param {*} [options] Override http request option.
26168
26331
  * @throws {RequiredError}
26169
26332
  */
26170
- patchGetCliFlexibility: function (id_1, enabled_1) {
26333
+ patchMarkRmaItemAsReceived: function (id_1, itemId_1) {
26171
26334
  var args_1 = [];
26172
26335
  for (var _i = 2; _i < arguments.length; _i++) {
26173
26336
  args_1[_i - 2] = arguments[_i];
26174
26337
  }
26175
- return __awaiter(_this, __spreadArray([id_1, enabled_1], args_1, true), void 0, function (id, enabled, options) {
26338
+ return __awaiter(_this, __spreadArray([id_1, itemId_1], args_1, true), void 0, function (id, itemId, options) {
26176
26339
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26177
26340
  if (options === void 0) { options = {}; }
26178
26341
  return __generator(this, function (_a) {
26179
26342
  // verify required parameter 'id' is not null or undefined
26180
- (0, common_1.assertParamExists)('patchGetCliFlexibility', 'id', id);
26343
+ (0, common_1.assertParamExists)('patchMarkRmaItemAsReceived', 'id', id);
26344
+ // verify required parameter 'itemId' is not null or undefined
26345
+ (0, common_1.assertParamExists)('patchMarkRmaItemAsReceived', 'itemId', itemId);
26346
+ localVarPath = "/admin/rma/{id}/items/{item_id}/received"
26347
+ .replace('{id}', encodeURIComponent(String(id)))
26348
+ .replace('{item_id}', encodeURIComponent(String(itemId)));
26349
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26350
+ if (configuration) {
26351
+ baseOptions = configuration.baseOptions;
26352
+ }
26353
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26354
+ localVarHeaderParameter = {};
26355
+ localVarQueryParameter = {};
26356
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26357
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26358
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26359
+ return [2 /*return*/, {
26360
+ url: (0, common_1.toPathString)(localVarUrlObj),
26361
+ options: localVarRequestOptions,
26362
+ }];
26363
+ });
26364
+ });
26365
+ },
26366
+ /**
26367
+ * Mark RMA item as unresolved
26368
+ * @param {number} id
26369
+ * @param {number} itemId
26370
+ * @param {*} [options] Override http request option.
26371
+ * @throws {RequiredError}
26372
+ */
26373
+ patchMarkRmaItemAsUnresolved: function (id_1, itemId_1) {
26374
+ var args_1 = [];
26375
+ for (var _i = 2; _i < arguments.length; _i++) {
26376
+ args_1[_i - 2] = arguments[_i];
26377
+ }
26378
+ return __awaiter(_this, __spreadArray([id_1, itemId_1], args_1, true), void 0, function (id, itemId, options) {
26379
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26380
+ if (options === void 0) { options = {}; }
26381
+ return __generator(this, function (_a) {
26382
+ // verify required parameter 'id' is not null or undefined
26383
+ (0, common_1.assertParamExists)('patchMarkRmaItemAsUnresolved', 'id', id);
26384
+ // verify required parameter 'itemId' is not null or undefined
26385
+ (0, common_1.assertParamExists)('patchMarkRmaItemAsUnresolved', 'itemId', itemId);
26386
+ localVarPath = "/admin/rma/{id}/items/{item_id}/unresolved"
26387
+ .replace('{id}', encodeURIComponent(String(id)))
26388
+ .replace('{item_id}', encodeURIComponent(String(itemId)));
26389
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26390
+ if (configuration) {
26391
+ baseOptions = configuration.baseOptions;
26392
+ }
26393
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26394
+ localVarHeaderParameter = {};
26395
+ localVarQueryParameter = {};
26396
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26397
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26398
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26399
+ return [2 /*return*/, {
26400
+ url: (0, common_1.toPathString)(localVarUrlObj),
26401
+ options: localVarRequestOptions,
26402
+ }];
26403
+ });
26404
+ });
26405
+ },
26406
+ /**
26407
+ * Reject an RMA
26408
+ * @param {number} id
26409
+ * @param {NoteRequestModel} [noteRequestModel] RMA Rejection Request
26410
+ * @param {*} [options] Override http request option.
26411
+ * @throws {RequiredError}
26412
+ */
26413
+ patchRejectRma: function (id_1, noteRequestModel_1) {
26414
+ var args_1 = [];
26415
+ for (var _i = 2; _i < arguments.length; _i++) {
26416
+ args_1[_i - 2] = arguments[_i];
26417
+ }
26418
+ return __awaiter(_this, __spreadArray([id_1, noteRequestModel_1], args_1, true), void 0, function (id, noteRequestModel, options) {
26419
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26420
+ if (options === void 0) { options = {}; }
26421
+ return __generator(this, function (_a) {
26422
+ // verify required parameter 'id' is not null or undefined
26423
+ (0, common_1.assertParamExists)('patchRejectRma', 'id', id);
26424
+ localVarPath = "/admin/rma/{id}/reject"
26425
+ .replace('{id}', encodeURIComponent(String(id)));
26426
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26427
+ if (configuration) {
26428
+ baseOptions = configuration.baseOptions;
26429
+ }
26430
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26431
+ localVarHeaderParameter = {};
26432
+ localVarQueryParameter = {};
26433
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26434
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26435
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26436
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26437
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(noteRequestModel, localVarRequestOptions, configuration);
26438
+ return [2 /*return*/, {
26439
+ url: (0, common_1.toPathString)(localVarUrlObj),
26440
+ options: localVarRequestOptions,
26441
+ }];
26442
+ });
26443
+ });
26444
+ },
26445
+ /**
26446
+ * Resolve an RMA
26447
+ * @param {number} id
26448
+ * @param {*} [options] Override http request option.
26449
+ * @throws {RequiredError}
26450
+ */
26451
+ patchResolveRma: function (id_1) {
26452
+ var args_1 = [];
26453
+ for (var _i = 1; _i < arguments.length; _i++) {
26454
+ args_1[_i - 1] = arguments[_i];
26455
+ }
26456
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
26457
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26458
+ if (options === void 0) { options = {}; }
26459
+ return __generator(this, function (_a) {
26460
+ // verify required parameter 'id' is not null or undefined
26461
+ (0, common_1.assertParamExists)('patchResolveRma', 'id', id);
26462
+ localVarPath = "/admin/rma/{id}/resolve"
26463
+ .replace('{id}', encodeURIComponent(String(id)));
26464
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26465
+ if (configuration) {
26466
+ baseOptions = configuration.baseOptions;
26467
+ }
26468
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26469
+ localVarHeaderParameter = {};
26470
+ localVarQueryParameter = {};
26471
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26472
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26473
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26474
+ return [2 /*return*/, {
26475
+ url: (0, common_1.toPathString)(localVarUrlObj),
26476
+ options: localVarRequestOptions,
26477
+ }];
26478
+ });
26479
+ });
26480
+ },
26481
+ /**
26482
+ * Update contact name for an rma
26483
+ * @param {number} id
26484
+ * @param {EmailRequestModel} [emailRequestModel] Email Request
26485
+ * @param {*} [options] Override http request option.
26486
+ * @throws {RequiredError}
26487
+ */
26488
+ patchUpdateRmaContactEmail: function (id_1, emailRequestModel_1) {
26489
+ var args_1 = [];
26490
+ for (var _i = 2; _i < arguments.length; _i++) {
26491
+ args_1[_i - 2] = arguments[_i];
26492
+ }
26493
+ return __awaiter(_this, __spreadArray([id_1, emailRequestModel_1], args_1, true), void 0, function (id, emailRequestModel, options) {
26494
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26495
+ if (options === void 0) { options = {}; }
26496
+ return __generator(this, function (_a) {
26497
+ // verify required parameter 'id' is not null or undefined
26498
+ (0, common_1.assertParamExists)('patchUpdateRmaContactEmail', 'id', id);
26499
+ localVarPath = "/admin/rma/{id}/contactEmail"
26500
+ .replace('{id}', encodeURIComponent(String(id)));
26501
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26502
+ if (configuration) {
26503
+ baseOptions = configuration.baseOptions;
26504
+ }
26505
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26506
+ localVarHeaderParameter = {};
26507
+ localVarQueryParameter = {};
26508
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26509
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26510
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26511
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26512
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emailRequestModel, localVarRequestOptions, configuration);
26513
+ return [2 /*return*/, {
26514
+ url: (0, common_1.toPathString)(localVarUrlObj),
26515
+ options: localVarRequestOptions,
26516
+ }];
26517
+ });
26518
+ });
26519
+ },
26520
+ /**
26521
+ * Update contact name for an rma
26522
+ * @param {number} id
26523
+ * @param {NameRequestModel} [nameRequestModel] Name Request
26524
+ * @param {*} [options] Override http request option.
26525
+ * @throws {RequiredError}
26526
+ */
26527
+ patchUpdateRmaContactName: function (id_1, nameRequestModel_1) {
26528
+ var args_1 = [];
26529
+ for (var _i = 2; _i < arguments.length; _i++) {
26530
+ args_1[_i - 2] = arguments[_i];
26531
+ }
26532
+ return __awaiter(_this, __spreadArray([id_1, nameRequestModel_1], args_1, true), void 0, function (id, nameRequestModel, options) {
26533
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26534
+ if (options === void 0) { options = {}; }
26535
+ return __generator(this, function (_a) {
26536
+ // verify required parameter 'id' is not null or undefined
26537
+ (0, common_1.assertParamExists)('patchUpdateRmaContactName', 'id', id);
26538
+ localVarPath = "/admin/rma/{id}/contactName"
26539
+ .replace('{id}', encodeURIComponent(String(id)));
26540
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26541
+ if (configuration) {
26542
+ baseOptions = configuration.baseOptions;
26543
+ }
26544
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26545
+ localVarHeaderParameter = {};
26546
+ localVarQueryParameter = {};
26547
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26548
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26549
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26550
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26551
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(nameRequestModel, localVarRequestOptions, configuration);
26552
+ return [2 /*return*/, {
26553
+ url: (0, common_1.toPathString)(localVarUrlObj),
26554
+ options: localVarRequestOptions,
26555
+ }];
26556
+ });
26557
+ });
26558
+ },
26559
+ /**
26560
+ * Update RMA item MAC address
26561
+ * @param {number} id
26562
+ * @param {number} itemId
26563
+ * @param {MacAddressRequestModel} [macAddressRequestModel] Update RMA item MAC address request
26564
+ * @param {*} [options] Override http request option.
26565
+ * @throws {RequiredError}
26566
+ */
26567
+ patchUpdateRmaItemMacAddress: function (id_1, itemId_1, macAddressRequestModel_1) {
26568
+ var args_1 = [];
26569
+ for (var _i = 3; _i < arguments.length; _i++) {
26570
+ args_1[_i - 3] = arguments[_i];
26571
+ }
26572
+ return __awaiter(_this, __spreadArray([id_1, itemId_1, macAddressRequestModel_1], args_1, true), void 0, function (id, itemId, macAddressRequestModel, options) {
26573
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26574
+ if (options === void 0) { options = {}; }
26575
+ return __generator(this, function (_a) {
26576
+ // verify required parameter 'id' is not null or undefined
26577
+ (0, common_1.assertParamExists)('patchUpdateRmaItemMacAddress', 'id', id);
26578
+ // verify required parameter 'itemId' is not null or undefined
26579
+ (0, common_1.assertParamExists)('patchUpdateRmaItemMacAddress', 'itemId', itemId);
26580
+ localVarPath = "/admin/rma/{id}/items/{item_id}/mac"
26581
+ .replace('{id}', encodeURIComponent(String(id)))
26582
+ .replace('{item_id}', encodeURIComponent(String(itemId)));
26583
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26584
+ if (configuration) {
26585
+ baseOptions = configuration.baseOptions;
26586
+ }
26587
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26588
+ localVarHeaderParameter = {};
26589
+ localVarQueryParameter = {};
26590
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26591
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26592
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26593
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26594
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(macAddressRequestModel, localVarRequestOptions, configuration);
26595
+ return [2 /*return*/, {
26596
+ url: (0, common_1.toPathString)(localVarUrlObj),
26597
+ options: localVarRequestOptions,
26598
+ }];
26599
+ });
26600
+ });
26601
+ },
26602
+ /**
26603
+ * Update RMA item note
26604
+ * @param {number} id
26605
+ * @param {number} itemId
26606
+ * @param {NoteRequestModel} [noteRequestModel] Update RMA item note request
26607
+ * @param {*} [options] Override http request option.
26608
+ * @throws {RequiredError}
26609
+ */
26610
+ patchUpdateRmaItemNote: function (id_1, itemId_1, noteRequestModel_1) {
26611
+ var args_1 = [];
26612
+ for (var _i = 3; _i < arguments.length; _i++) {
26613
+ args_1[_i - 3] = arguments[_i];
26614
+ }
26615
+ return __awaiter(_this, __spreadArray([id_1, itemId_1, noteRequestModel_1], args_1, true), void 0, function (id, itemId, noteRequestModel, options) {
26616
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26617
+ if (options === void 0) { options = {}; }
26618
+ return __generator(this, function (_a) {
26619
+ // verify required parameter 'id' is not null or undefined
26620
+ (0, common_1.assertParamExists)('patchUpdateRmaItemNote', 'id', id);
26621
+ // verify required parameter 'itemId' is not null or undefined
26622
+ (0, common_1.assertParamExists)('patchUpdateRmaItemNote', 'itemId', itemId);
26623
+ localVarPath = "/admin/rma/{id}/items/{item_id}/note"
26624
+ .replace('{id}', encodeURIComponent(String(id)))
26625
+ .replace('{item_id}', encodeURIComponent(String(itemId)));
26626
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26627
+ if (configuration) {
26628
+ baseOptions = configuration.baseOptions;
26629
+ }
26630
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26631
+ localVarHeaderParameter = {};
26632
+ localVarQueryParameter = {};
26633
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26634
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26635
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26636
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26637
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(noteRequestModel, localVarRequestOptions, configuration);
26638
+ return [2 /*return*/, {
26639
+ url: (0, common_1.toPathString)(localVarUrlObj),
26640
+ options: localVarRequestOptions,
26641
+ }];
26642
+ });
26643
+ });
26644
+ },
26645
+ /**
26646
+ * Update RMA item serial number
26647
+ * @param {number} id
26648
+ * @param {number} itemId
26649
+ * @param {SerialNumberRequestModel} [serialNumberRequestModel] Update RMA item serial number request
26650
+ * @param {*} [options] Override http request option.
26651
+ * @throws {RequiredError}
26652
+ */
26653
+ patchUpdateRmaItemSerialNumber: function (id_1, itemId_1, serialNumberRequestModel_1) {
26654
+ var args_1 = [];
26655
+ for (var _i = 3; _i < arguments.length; _i++) {
26656
+ args_1[_i - 3] = arguments[_i];
26657
+ }
26658
+ return __awaiter(_this, __spreadArray([id_1, itemId_1, serialNumberRequestModel_1], args_1, true), void 0, function (id, itemId, serialNumberRequestModel, options) {
26659
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26660
+ if (options === void 0) { options = {}; }
26661
+ return __generator(this, function (_a) {
26662
+ // verify required parameter 'id' is not null or undefined
26663
+ (0, common_1.assertParamExists)('patchUpdateRmaItemSerialNumber', 'id', id);
26664
+ // verify required parameter 'itemId' is not null or undefined
26665
+ (0, common_1.assertParamExists)('patchUpdateRmaItemSerialNumber', 'itemId', itemId);
26666
+ localVarPath = "/admin/rma/{id}/items/{item_id}/serial"
26667
+ .replace('{id}', encodeURIComponent(String(id)))
26668
+ .replace('{item_id}', encodeURIComponent(String(itemId)));
26669
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26670
+ if (configuration) {
26671
+ baseOptions = configuration.baseOptions;
26672
+ }
26673
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26674
+ localVarHeaderParameter = {};
26675
+ localVarQueryParameter = {};
26676
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26677
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26678
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26679
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26680
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(serialNumberRequestModel, localVarRequestOptions, configuration);
26681
+ return [2 /*return*/, {
26682
+ url: (0, common_1.toPathString)(localVarUrlObj),
26683
+ options: localVarRequestOptions,
26684
+ }];
26685
+ });
26686
+ });
26687
+ },
26688
+ /**
26689
+ * Update RMA reason
26690
+ * @param {number} id
26691
+ * @param {ReasonRequestModel} [reasonRequestModel] Update RMA Reason Request
26692
+ * @param {*} [options] Override http request option.
26693
+ * @throws {RequiredError}
26694
+ */
26695
+ patchUpdateRmaReason: function (id_1, reasonRequestModel_1) {
26696
+ var args_1 = [];
26697
+ for (var _i = 2; _i < arguments.length; _i++) {
26698
+ args_1[_i - 2] = arguments[_i];
26699
+ }
26700
+ return __awaiter(_this, __spreadArray([id_1, reasonRequestModel_1], args_1, true), void 0, function (id, reasonRequestModel, options) {
26701
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26702
+ if (options === void 0) { options = {}; }
26703
+ return __generator(this, function (_a) {
26704
+ // verify required parameter 'id' is not null or undefined
26705
+ (0, common_1.assertParamExists)('patchUpdateRmaReason', 'id', id);
26706
+ localVarPath = "/admin/rma/{id}/reason"
26707
+ .replace('{id}', encodeURIComponent(String(id)));
26708
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26709
+ if (configuration) {
26710
+ baseOptions = configuration.baseOptions;
26711
+ }
26712
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26713
+ localVarHeaderParameter = {};
26714
+ localVarQueryParameter = {};
26715
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26716
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26717
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26718
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26719
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reasonRequestModel, localVarRequestOptions, configuration);
26720
+ return [2 /*return*/, {
26721
+ url: (0, common_1.toPathString)(localVarUrlObj),
26722
+ options: localVarRequestOptions,
26723
+ }];
26724
+ });
26725
+ });
26726
+ },
26727
+ /**
26728
+ * Update RMA resolution
26729
+ * @param {number} id
26730
+ * @param {ResolutionRequestModel} [resolutionRequestModel] Update RMA Resolution Request
26731
+ * @param {*} [options] Override http request option.
26732
+ * @throws {RequiredError}
26733
+ */
26734
+ patchUpdateRmaResolution: function (id_1, resolutionRequestModel_1) {
26735
+ var args_1 = [];
26736
+ for (var _i = 2; _i < arguments.length; _i++) {
26737
+ args_1[_i - 2] = arguments[_i];
26738
+ }
26739
+ return __awaiter(_this, __spreadArray([id_1, resolutionRequestModel_1], args_1, true), void 0, function (id, resolutionRequestModel, options) {
26740
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26741
+ if (options === void 0) { options = {}; }
26742
+ return __generator(this, function (_a) {
26743
+ // verify required parameter 'id' is not null or undefined
26744
+ (0, common_1.assertParamExists)('patchUpdateRmaResolution', 'id', id);
26745
+ localVarPath = "/admin/rma/{id}/resolution"
26746
+ .replace('{id}', encodeURIComponent(String(id)));
26747
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26748
+ if (configuration) {
26749
+ baseOptions = configuration.baseOptions;
26750
+ }
26751
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26752
+ localVarHeaderParameter = {};
26753
+ localVarQueryParameter = {};
26754
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26755
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26756
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26757
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26758
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resolutionRequestModel, localVarRequestOptions, configuration);
26759
+ return [2 /*return*/, {
26760
+ url: (0, common_1.toPathString)(localVarUrlObj),
26761
+ options: localVarRequestOptions,
26762
+ }];
26763
+ });
26764
+ });
26765
+ },
26766
+ /**
26767
+ * Update RMA return address
26768
+ * @param {number} id
26769
+ * @param {AddressDTO} [addressDTO] Update RMA return address
26770
+ * @param {*} [options] Override http request option.
26771
+ * @throws {RequiredError}
26772
+ */
26773
+ patchUpdateRmaReturnAddress: function (id_1, addressDTO_1) {
26774
+ var args_1 = [];
26775
+ for (var _i = 2; _i < arguments.length; _i++) {
26776
+ args_1[_i - 2] = arguments[_i];
26777
+ }
26778
+ return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
26779
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26780
+ if (options === void 0) { options = {}; }
26781
+ return __generator(this, function (_a) {
26782
+ // verify required parameter 'id' is not null or undefined
26783
+ (0, common_1.assertParamExists)('patchUpdateRmaReturnAddress', 'id', id);
26784
+ localVarPath = "/admin/rma/{id}/address"
26785
+ .replace('{id}', encodeURIComponent(String(id)));
26786
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26787
+ if (configuration) {
26788
+ baseOptions = configuration.baseOptions;
26789
+ }
26790
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
26791
+ localVarHeaderParameter = {};
26792
+ localVarQueryParameter = {};
26793
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26794
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26795
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26796
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26797
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
26798
+ return [2 /*return*/, {
26799
+ url: (0, common_1.toPathString)(localVarUrlObj),
26800
+ options: localVarRequestOptions,
26801
+ }];
26802
+ });
26803
+ });
26804
+ },
26805
+ /**
26806
+ * Create a replacement order for an RMA
26807
+ * @param {number} id
26808
+ * @param {RmaReplacementOrderRequestDTO} [rmaReplacementOrderRequestDTO] RMA Replacement Order Request
26809
+ * @param {*} [options] Override http request option.
26810
+ * @throws {RequiredError}
26811
+ */
26812
+ postCreateReplacementOrder: function (id_1, rmaReplacementOrderRequestDTO_1) {
26813
+ var args_1 = [];
26814
+ for (var _i = 2; _i < arguments.length; _i++) {
26815
+ args_1[_i - 2] = arguments[_i];
26816
+ }
26817
+ return __awaiter(_this, __spreadArray([id_1, rmaReplacementOrderRequestDTO_1], args_1, true), void 0, function (id, rmaReplacementOrderRequestDTO, options) {
26818
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26819
+ if (options === void 0) { options = {}; }
26820
+ return __generator(this, function (_a) {
26821
+ // verify required parameter 'id' is not null or undefined
26822
+ (0, common_1.assertParamExists)('postCreateReplacementOrder', 'id', id);
26823
+ localVarPath = "/admin/rma/{id}/replacement_order"
26824
+ .replace('{id}', encodeURIComponent(String(id)));
26825
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26826
+ if (configuration) {
26827
+ baseOptions = configuration.baseOptions;
26828
+ }
26829
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
26830
+ localVarHeaderParameter = {};
26831
+ localVarQueryParameter = {};
26832
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26833
+ localVarHeaderParameter['Accept'] = 'application/json';
26834
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26835
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26836
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26837
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rmaReplacementOrderRequestDTO, localVarRequestOptions, configuration);
26838
+ return [2 /*return*/, {
26839
+ url: (0, common_1.toPathString)(localVarUrlObj),
26840
+ options: localVarRequestOptions,
26841
+ }];
26842
+ });
26843
+ });
26844
+ },
26845
+ /**
26846
+ * Create an RMA
26847
+ * @param {RmaRequestDTO} [rmaRequestDTO] RMA Request
26848
+ * @param {*} [options] Override http request option.
26849
+ * @throws {RequiredError}
26850
+ */
26851
+ postCreateRma: function (rmaRequestDTO_1) {
26852
+ var args_1 = [];
26853
+ for (var _i = 1; _i < arguments.length; _i++) {
26854
+ args_1[_i - 1] = arguments[_i];
26855
+ }
26856
+ return __awaiter(_this, __spreadArray([rmaRequestDTO_1], args_1, true), void 0, function (rmaRequestDTO, options) {
26857
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26858
+ if (options === void 0) { options = {}; }
26859
+ return __generator(this, function (_a) {
26860
+ localVarPath = "/rma";
26861
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26862
+ if (configuration) {
26863
+ baseOptions = configuration.baseOptions;
26864
+ }
26865
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
26866
+ localVarHeaderParameter = {};
26867
+ localVarQueryParameter = {};
26868
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26869
+ localVarHeaderParameter['Accept'] = 'application/json';
26870
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26871
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26872
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26873
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rmaRequestDTO, localVarRequestOptions, configuration);
26874
+ return [2 /*return*/, {
26875
+ url: (0, common_1.toPathString)(localVarUrlObj),
26876
+ options: localVarRequestOptions,
26877
+ }];
26878
+ });
26879
+ });
26880
+ },
26881
+ /**
26882
+ * Create a collection for an RMA
26883
+ * @param {number} id
26884
+ * @param {RmaCollectionDTO} [rmaCollectionDTO] RMA Collection Request
26885
+ * @param {*} [options] Override http request option.
26886
+ * @throws {RequiredError}
26887
+ */
26888
+ postCreateRmaCollection: function (id_1, rmaCollectionDTO_1) {
26889
+ var args_1 = [];
26890
+ for (var _i = 2; _i < arguments.length; _i++) {
26891
+ args_1[_i - 2] = arguments[_i];
26892
+ }
26893
+ return __awaiter(_this, __spreadArray([id_1, rmaCollectionDTO_1], args_1, true), void 0, function (id, rmaCollectionDTO, options) {
26894
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26895
+ if (options === void 0) { options = {}; }
26896
+ return __generator(this, function (_a) {
26897
+ // verify required parameter 'id' is not null or undefined
26898
+ (0, common_1.assertParamExists)('postCreateRmaCollection', 'id', id);
26899
+ localVarPath = "/admin/rma/{id}/collection"
26900
+ .replace('{id}', encodeURIComponent(String(id)));
26901
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26902
+ if (configuration) {
26903
+ baseOptions = configuration.baseOptions;
26904
+ }
26905
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
26906
+ localVarHeaderParameter = {};
26907
+ localVarQueryParameter = {};
26908
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26909
+ localVarHeaderParameter['Accept'] = 'application/json';
26910
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26911
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26912
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26913
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rmaCollectionDTO, localVarRequestOptions, configuration);
26914
+ return [2 /*return*/, {
26915
+ url: (0, common_1.toPathString)(localVarUrlObj),
26916
+ options: localVarRequestOptions,
26917
+ }];
26918
+ });
26919
+ });
26920
+ },
26921
+ /**
26922
+ * Create a credit note for an RMA
26923
+ * @param {number} id
26924
+ * @param {Array<RmaCreditItemRequestDTO>} [rmaCreditItemRequestDTO] RMA Items to be credited
26925
+ * @param {*} [options] Override http request option.
26926
+ * @throws {RequiredError}
26927
+ */
26928
+ postCreateRmaCreditNote: function (id_1, rmaCreditItemRequestDTO_1) {
26929
+ var args_1 = [];
26930
+ for (var _i = 2; _i < arguments.length; _i++) {
26931
+ args_1[_i - 2] = arguments[_i];
26932
+ }
26933
+ return __awaiter(_this, __spreadArray([id_1, rmaCreditItemRequestDTO_1], args_1, true), void 0, function (id, rmaCreditItemRequestDTO, options) {
26934
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26935
+ if (options === void 0) { options = {}; }
26936
+ return __generator(this, function (_a) {
26937
+ // verify required parameter 'id' is not null or undefined
26938
+ (0, common_1.assertParamExists)('postCreateRmaCreditNote', 'id', id);
26939
+ localVarPath = "/admin/rma/{id}/credit"
26940
+ .replace('{id}', encodeURIComponent(String(id)));
26941
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26942
+ if (configuration) {
26943
+ baseOptions = configuration.baseOptions;
26944
+ }
26945
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
26946
+ localVarHeaderParameter = {};
26947
+ localVarQueryParameter = {};
26948
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26949
+ localVarHeaderParameter['Accept'] = 'application/json';
26950
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26951
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26952
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26953
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rmaCreditItemRequestDTO, localVarRequestOptions, configuration);
26954
+ return [2 /*return*/, {
26955
+ url: (0, common_1.toPathString)(localVarUrlObj),
26956
+ options: localVarRequestOptions,
26957
+ }];
26958
+ });
26959
+ });
26960
+ },
26961
+ /**
26962
+ * Create an RMA note
26963
+ * @param {number} id
26964
+ * @param {NoteRequestModel} [noteRequestModel] RMA Note Request
26965
+ * @param {*} [options] Override http request option.
26966
+ * @throws {RequiredError}
26967
+ */
26968
+ postCreateRmaNote: function (id_1, noteRequestModel_1) {
26969
+ var args_1 = [];
26970
+ for (var _i = 2; _i < arguments.length; _i++) {
26971
+ args_1[_i - 2] = arguments[_i];
26972
+ }
26973
+ return __awaiter(_this, __spreadArray([id_1, noteRequestModel_1], args_1, true), void 0, function (id, noteRequestModel, options) {
26974
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26975
+ if (options === void 0) { options = {}; }
26976
+ return __generator(this, function (_a) {
26977
+ // verify required parameter 'id' is not null or undefined
26978
+ (0, common_1.assertParamExists)('postCreateRmaNote', 'id', id);
26979
+ localVarPath = "/admin/rma/{id}/notes"
26980
+ .replace('{id}', encodeURIComponent(String(id)));
26981
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26982
+ if (configuration) {
26983
+ baseOptions = configuration.baseOptions;
26984
+ }
26985
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
26986
+ localVarHeaderParameter = {};
26987
+ localVarQueryParameter = {};
26988
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26989
+ localVarHeaderParameter['Accept'] = 'application/json';
26990
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26991
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26992
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26993
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(noteRequestModel, localVarRequestOptions, configuration);
26994
+ return [2 /*return*/, {
26995
+ url: (0, common_1.toPathString)(localVarUrlObj),
26996
+ options: localVarRequestOptions,
26997
+ }];
26998
+ });
26999
+ });
27000
+ },
27001
+ /**
27002
+ * Create a collection for an RMA
27003
+ * @param {number} id
27004
+ * @param {RmaReturnDTO} [rmaReturnDTO] RMA Return Request
27005
+ * @param {*} [options] Override http request option.
27006
+ * @throws {RequiredError}
27007
+ */
27008
+ postCreateRmaReturn: function (id_1, rmaReturnDTO_1) {
27009
+ var args_1 = [];
27010
+ for (var _i = 2; _i < arguments.length; _i++) {
27011
+ args_1[_i - 2] = arguments[_i];
27012
+ }
27013
+ return __awaiter(_this, __spreadArray([id_1, rmaReturnDTO_1], args_1, true), void 0, function (id, rmaReturnDTO, options) {
27014
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
27015
+ if (options === void 0) { options = {}; }
27016
+ return __generator(this, function (_a) {
27017
+ // verify required parameter 'id' is not null or undefined
27018
+ (0, common_1.assertParamExists)('postCreateRmaReturn', 'id', id);
27019
+ localVarPath = "/admin/rma/{id}/return"
27020
+ .replace('{id}', encodeURIComponent(String(id)));
27021
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
27022
+ if (configuration) {
27023
+ baseOptions = configuration.baseOptions;
27024
+ }
27025
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
27026
+ localVarHeaderParameter = {};
27027
+ localVarQueryParameter = {};
27028
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27029
+ localVarHeaderParameter['Accept'] = 'application/json';
27030
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
27031
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27032
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27033
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rmaReturnDTO, localVarRequestOptions, configuration);
27034
+ return [2 /*return*/, {
27035
+ url: (0, common_1.toPathString)(localVarUrlObj),
27036
+ options: localVarRequestOptions,
27037
+ }];
27038
+ });
27039
+ });
27040
+ },
27041
+ };
27042
+ };
27043
+ exports.RMAApiAxiosParamCreator = RMAApiAxiosParamCreator;
27044
+ /**
27045
+ * RMAApi - functional programming interface
27046
+ */
27047
+ var RMAApiFp = function (configuration) {
27048
+ var localVarAxiosParamCreator = (0, exports.RMAApiAxiosParamCreator)(configuration);
27049
+ return {
27050
+ /**
27051
+ * Delete an RMA item
27052
+ * @param {number} id
27053
+ * @param {number} itemId
27054
+ * @param {*} [options] Override http request option.
27055
+ * @throws {RequiredError}
27056
+ */
27057
+ deleteDeleteRmaItem: function (id, itemId, options) {
27058
+ return __awaiter(this, void 0, void 0, function () {
27059
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27060
+ var _a, _b, _c;
27061
+ return __generator(this, function (_d) {
27062
+ switch (_d.label) {
27063
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteRmaItem(id, itemId, options)];
27064
+ case 1:
27065
+ localVarAxiosArgs = _d.sent();
27066
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27067
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.deleteDeleteRmaItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27068
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27069
+ }
27070
+ });
27071
+ });
27072
+ },
27073
+ /**
27074
+ * Delete an RMA
27075
+ * @param {number} id
27076
+ * @param {*} [options] Override http request option.
27077
+ * @throws {RequiredError}
27078
+ */
27079
+ deleteGetAdminRma: function (id, options) {
27080
+ return __awaiter(this, void 0, void 0, function () {
27081
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27082
+ var _a, _b, _c;
27083
+ return __generator(this, function (_d) {
27084
+ switch (_d.label) {
27085
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGetAdminRma(id, options)];
27086
+ case 1:
27087
+ localVarAxiosArgs = _d.sent();
27088
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27089
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.deleteGetAdminRma']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27090
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27091
+ }
27092
+ });
27093
+ });
27094
+ },
27095
+ /**
27096
+ * Get Customer RMAs
27097
+ * @param {number} [pageSize] Number Of Results
27098
+ * @param {number} [page] Page Number
27099
+ * @param {string} [search] Search
27100
+ * @param {*} [options] Override http request option.
27101
+ * @throws {RequiredError}
27102
+ */
27103
+ getCreateRma: function (pageSize, page, search, options) {
27104
+ return __awaiter(this, void 0, void 0, function () {
27105
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27106
+ var _a, _b, _c;
27107
+ return __generator(this, function (_d) {
27108
+ switch (_d.label) {
27109
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCreateRma(pageSize, page, search, options)];
27110
+ case 1:
27111
+ localVarAxiosArgs = _d.sent();
27112
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27113
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getCreateRma']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27114
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27115
+ }
27116
+ });
27117
+ });
27118
+ },
27119
+ /**
27120
+ * Get Admin RMA by ID
27121
+ * @param {number} id
27122
+ * @param {*} [options] Override http request option.
27123
+ * @throws {RequiredError}
27124
+ */
27125
+ getGetAdminRma: function (id, options) {
27126
+ return __awaiter(this, void 0, void 0, function () {
27127
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27128
+ var _a, _b, _c;
27129
+ return __generator(this, function (_d) {
27130
+ switch (_d.label) {
27131
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminRma(id, options)];
27132
+ case 1:
27133
+ localVarAxiosArgs = _d.sent();
27134
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27135
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getGetAdminRma']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27136
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27137
+ }
27138
+ });
27139
+ });
27140
+ },
27141
+ /**
27142
+ * Get an RMA\'s Associated Order
27143
+ * @param {number} id
27144
+ * @param {*} [options] Override http request option.
27145
+ * @throws {RequiredError}
27146
+ */
27147
+ getGetAdminRmaOrder: function (id, options) {
27148
+ return __awaiter(this, void 0, void 0, function () {
27149
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27150
+ var _a, _b, _c;
27151
+ return __generator(this, function (_d) {
27152
+ switch (_d.label) {
27153
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminRmaOrder(id, options)];
27154
+ case 1:
27155
+ localVarAxiosArgs = _d.sent();
27156
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27157
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getGetAdminRmaOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27158
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27159
+ }
27160
+ });
27161
+ });
27162
+ },
27163
+ /**
27164
+ * Get Admin RMAs
27165
+ * @param {number} [pageSize] Number Of Results
27166
+ * @param {number} [page] Page Number
27167
+ * @param {string} [search] Search
27168
+ * @param {*} [options] Override http request option.
27169
+ * @throws {RequiredError}
27170
+ */
27171
+ getGetAdminRmas: function (pageSize, page, search, options) {
27172
+ return __awaiter(this, void 0, void 0, function () {
27173
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27174
+ var _a, _b, _c;
27175
+ return __generator(this, function (_d) {
27176
+ switch (_d.label) {
27177
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminRmas(pageSize, page, search, options)];
27178
+ case 1:
27179
+ localVarAxiosArgs = _d.sent();
27180
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27181
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getGetAdminRmas']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27182
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27183
+ }
27184
+ });
27185
+ });
27186
+ },
27187
+ /**
27188
+ * Get RMA by ID
27189
+ * @param {number} id RMA ID
27190
+ * @param {*} [options] Override http request option.
27191
+ * @throws {RequiredError}
27192
+ */
27193
+ getGetRma: function (id, options) {
27194
+ return __awaiter(this, void 0, void 0, function () {
27195
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27196
+ var _a, _b, _c;
27197
+ return __generator(this, function (_d) {
27198
+ switch (_d.label) {
27199
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetRma(id, options)];
27200
+ case 1:
27201
+ localVarAxiosArgs = _d.sent();
27202
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27203
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getGetRma']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27204
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27205
+ }
27206
+ });
27207
+ });
27208
+ },
27209
+ /**
27210
+ * Get Order by ID
27211
+ * @param {number} id Order ID
27212
+ * @param {*} [options] Override http request option.
27213
+ * @throws {RequiredError}
27214
+ */
27215
+ getGetRmaOrder: function (id, options) {
27216
+ return __awaiter(this, void 0, void 0, function () {
27217
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27218
+ var _a, _b, _c;
27219
+ return __generator(this, function (_d) {
27220
+ switch (_d.label) {
27221
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetRmaOrder(id, options)];
27222
+ case 1:
27223
+ localVarAxiosArgs = _d.sent();
27224
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27225
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getGetRmaOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27226
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27227
+ }
27228
+ });
27229
+ });
27230
+ },
27231
+ /**
27232
+ * Get suitable advance replacment orders
27233
+ * @param {string} sku Item SKU
27234
+ * @param {number} orderId Order ID
27235
+ * @param {*} [options] Override http request option.
27236
+ * @throws {RequiredError}
27237
+ */
27238
+ getSearchAdvanceReplacementOrders: function (sku, orderId, options) {
27239
+ return __awaiter(this, void 0, void 0, function () {
27240
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27241
+ var _a, _b, _c;
27242
+ return __generator(this, function (_d) {
27243
+ switch (_d.label) {
27244
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchAdvanceReplacementOrders(sku, orderId, options)];
27245
+ case 1:
27246
+ localVarAxiosArgs = _d.sent();
27247
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27248
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getSearchAdvanceReplacementOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27249
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27250
+ }
27251
+ });
27252
+ });
27253
+ },
27254
+ /**
27255
+ * Search for Orders to create an RMA
27256
+ * @param {string} [search] Search
27257
+ * @param {*} [options] Override http request option.
27258
+ * @throws {RequiredError}
27259
+ */
27260
+ getSearchRmaOrders: function (search, options) {
27261
+ return __awaiter(this, void 0, void 0, function () {
27262
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27263
+ var _a, _b, _c;
27264
+ return __generator(this, function (_d) {
27265
+ switch (_d.label) {
27266
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchRmaOrders(search, options)];
27267
+ case 1:
27268
+ localVarAxiosArgs = _d.sent();
27269
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27270
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getSearchRmaOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27271
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27272
+ }
27273
+ });
27274
+ });
27275
+ },
27276
+ /**
27277
+ * Approve an RMA
27278
+ * @param {number} id
27279
+ * @param {*} [options] Override http request option.
27280
+ * @throws {RequiredError}
27281
+ */
27282
+ patchApproveRma: function (id, options) {
27283
+ return __awaiter(this, void 0, void 0, function () {
27284
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27285
+ var _a, _b, _c;
27286
+ return __generator(this, function (_d) {
27287
+ switch (_d.label) {
27288
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchApproveRma(id, options)];
27289
+ case 1:
27290
+ localVarAxiosArgs = _d.sent();
27291
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27292
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchApproveRma']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27293
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27294
+ }
27295
+ });
27296
+ });
27297
+ },
27298
+ /**
27299
+ * Mark RMA item as binned
27300
+ * @param {number} id
27301
+ * @param {number} itemId
27302
+ * @param {*} [options] Override http request option.
27303
+ * @throws {RequiredError}
27304
+ */
27305
+ patchMarkRmaItemAsBinned: function (id, itemId, options) {
27306
+ return __awaiter(this, void 0, void 0, function () {
27307
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27308
+ var _a, _b, _c;
27309
+ return __generator(this, function (_d) {
27310
+ switch (_d.label) {
27311
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchMarkRmaItemAsBinned(id, itemId, options)];
27312
+ case 1:
27313
+ localVarAxiosArgs = _d.sent();
27314
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27315
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchMarkRmaItemAsBinned']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27316
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27317
+ }
27318
+ });
27319
+ });
27320
+ },
27321
+ /**
27322
+ * Mark RMA item as received
27323
+ * @param {number} id
27324
+ * @param {number} itemId
27325
+ * @param {*} [options] Override http request option.
27326
+ * @throws {RequiredError}
27327
+ */
27328
+ patchMarkRmaItemAsReceived: function (id, itemId, options) {
27329
+ return __awaiter(this, void 0, void 0, function () {
27330
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27331
+ var _a, _b, _c;
27332
+ return __generator(this, function (_d) {
27333
+ switch (_d.label) {
27334
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchMarkRmaItemAsReceived(id, itemId, options)];
27335
+ case 1:
27336
+ localVarAxiosArgs = _d.sent();
27337
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27338
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchMarkRmaItemAsReceived']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27339
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27340
+ }
27341
+ });
27342
+ });
27343
+ },
27344
+ /**
27345
+ * Mark RMA item as unresolved
27346
+ * @param {number} id
27347
+ * @param {number} itemId
27348
+ * @param {*} [options] Override http request option.
27349
+ * @throws {RequiredError}
27350
+ */
27351
+ patchMarkRmaItemAsUnresolved: function (id, itemId, options) {
27352
+ return __awaiter(this, void 0, void 0, function () {
27353
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27354
+ var _a, _b, _c;
27355
+ return __generator(this, function (_d) {
27356
+ switch (_d.label) {
27357
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchMarkRmaItemAsUnresolved(id, itemId, options)];
27358
+ case 1:
27359
+ localVarAxiosArgs = _d.sent();
27360
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27361
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchMarkRmaItemAsUnresolved']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27362
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27363
+ }
27364
+ });
27365
+ });
27366
+ },
27367
+ /**
27368
+ * Reject an RMA
27369
+ * @param {number} id
27370
+ * @param {NoteRequestModel} [noteRequestModel] RMA Rejection Request
27371
+ * @param {*} [options] Override http request option.
27372
+ * @throws {RequiredError}
27373
+ */
27374
+ patchRejectRma: function (id, noteRequestModel, options) {
27375
+ return __awaiter(this, void 0, void 0, function () {
27376
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27377
+ var _a, _b, _c;
27378
+ return __generator(this, function (_d) {
27379
+ switch (_d.label) {
27380
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchRejectRma(id, noteRequestModel, options)];
27381
+ case 1:
27382
+ localVarAxiosArgs = _d.sent();
27383
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27384
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchRejectRma']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27385
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27386
+ }
27387
+ });
27388
+ });
27389
+ },
27390
+ /**
27391
+ * Resolve an RMA
27392
+ * @param {number} id
27393
+ * @param {*} [options] Override http request option.
27394
+ * @throws {RequiredError}
27395
+ */
27396
+ patchResolveRma: function (id, options) {
27397
+ return __awaiter(this, void 0, void 0, function () {
27398
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27399
+ var _a, _b, _c;
27400
+ return __generator(this, function (_d) {
27401
+ switch (_d.label) {
27402
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchResolveRma(id, options)];
27403
+ case 1:
27404
+ localVarAxiosArgs = _d.sent();
27405
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27406
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchResolveRma']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27407
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27408
+ }
27409
+ });
27410
+ });
27411
+ },
27412
+ /**
27413
+ * Update contact name for an rma
27414
+ * @param {number} id
27415
+ * @param {EmailRequestModel} [emailRequestModel] Email Request
27416
+ * @param {*} [options] Override http request option.
27417
+ * @throws {RequiredError}
27418
+ */
27419
+ patchUpdateRmaContactEmail: function (id, emailRequestModel, options) {
27420
+ return __awaiter(this, void 0, void 0, function () {
27421
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27422
+ var _a, _b, _c;
27423
+ return __generator(this, function (_d) {
27424
+ switch (_d.label) {
27425
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateRmaContactEmail(id, emailRequestModel, options)];
27426
+ case 1:
27427
+ localVarAxiosArgs = _d.sent();
27428
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27429
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchUpdateRmaContactEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27430
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27431
+ }
27432
+ });
27433
+ });
27434
+ },
27435
+ /**
27436
+ * Update contact name for an rma
27437
+ * @param {number} id
27438
+ * @param {NameRequestModel} [nameRequestModel] Name Request
27439
+ * @param {*} [options] Override http request option.
27440
+ * @throws {RequiredError}
27441
+ */
27442
+ patchUpdateRmaContactName: function (id, nameRequestModel, options) {
27443
+ return __awaiter(this, void 0, void 0, function () {
27444
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27445
+ var _a, _b, _c;
27446
+ return __generator(this, function (_d) {
27447
+ switch (_d.label) {
27448
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateRmaContactName(id, nameRequestModel, options)];
27449
+ case 1:
27450
+ localVarAxiosArgs = _d.sent();
27451
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27452
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchUpdateRmaContactName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27453
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27454
+ }
27455
+ });
27456
+ });
27457
+ },
27458
+ /**
27459
+ * Update RMA item MAC address
27460
+ * @param {number} id
27461
+ * @param {number} itemId
27462
+ * @param {MacAddressRequestModel} [macAddressRequestModel] Update RMA item MAC address request
27463
+ * @param {*} [options] Override http request option.
27464
+ * @throws {RequiredError}
27465
+ */
27466
+ patchUpdateRmaItemMacAddress: function (id, itemId, macAddressRequestModel, options) {
27467
+ return __awaiter(this, void 0, void 0, function () {
27468
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27469
+ var _a, _b, _c;
27470
+ return __generator(this, function (_d) {
27471
+ switch (_d.label) {
27472
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateRmaItemMacAddress(id, itemId, macAddressRequestModel, options)];
27473
+ case 1:
27474
+ localVarAxiosArgs = _d.sent();
27475
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27476
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchUpdateRmaItemMacAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27477
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27478
+ }
27479
+ });
27480
+ });
27481
+ },
27482
+ /**
27483
+ * Update RMA item note
27484
+ * @param {number} id
27485
+ * @param {number} itemId
27486
+ * @param {NoteRequestModel} [noteRequestModel] Update RMA item note request
27487
+ * @param {*} [options] Override http request option.
27488
+ * @throws {RequiredError}
27489
+ */
27490
+ patchUpdateRmaItemNote: function (id, itemId, noteRequestModel, options) {
27491
+ return __awaiter(this, void 0, void 0, function () {
27492
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27493
+ var _a, _b, _c;
27494
+ return __generator(this, function (_d) {
27495
+ switch (_d.label) {
27496
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateRmaItemNote(id, itemId, noteRequestModel, options)];
27497
+ case 1:
27498
+ localVarAxiosArgs = _d.sent();
27499
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27500
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchUpdateRmaItemNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27501
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27502
+ }
27503
+ });
27504
+ });
27505
+ },
27506
+ /**
27507
+ * Update RMA item serial number
27508
+ * @param {number} id
27509
+ * @param {number} itemId
27510
+ * @param {SerialNumberRequestModel} [serialNumberRequestModel] Update RMA item serial number request
27511
+ * @param {*} [options] Override http request option.
27512
+ * @throws {RequiredError}
27513
+ */
27514
+ patchUpdateRmaItemSerialNumber: function (id, itemId, serialNumberRequestModel, options) {
27515
+ return __awaiter(this, void 0, void 0, function () {
27516
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27517
+ var _a, _b, _c;
27518
+ return __generator(this, function (_d) {
27519
+ switch (_d.label) {
27520
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateRmaItemSerialNumber(id, itemId, serialNumberRequestModel, options)];
27521
+ case 1:
27522
+ localVarAxiosArgs = _d.sent();
27523
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27524
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchUpdateRmaItemSerialNumber']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27525
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27526
+ }
27527
+ });
27528
+ });
27529
+ },
27530
+ /**
27531
+ * Update RMA reason
27532
+ * @param {number} id
27533
+ * @param {ReasonRequestModel} [reasonRequestModel] Update RMA Reason Request
27534
+ * @param {*} [options] Override http request option.
27535
+ * @throws {RequiredError}
27536
+ */
27537
+ patchUpdateRmaReason: function (id, reasonRequestModel, options) {
27538
+ return __awaiter(this, void 0, void 0, function () {
27539
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27540
+ var _a, _b, _c;
27541
+ return __generator(this, function (_d) {
27542
+ switch (_d.label) {
27543
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateRmaReason(id, reasonRequestModel, options)];
27544
+ case 1:
27545
+ localVarAxiosArgs = _d.sent();
27546
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27547
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchUpdateRmaReason']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27548
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27549
+ }
27550
+ });
27551
+ });
27552
+ },
27553
+ /**
27554
+ * Update RMA resolution
27555
+ * @param {number} id
27556
+ * @param {ResolutionRequestModel} [resolutionRequestModel] Update RMA Resolution Request
27557
+ * @param {*} [options] Override http request option.
27558
+ * @throws {RequiredError}
27559
+ */
27560
+ patchUpdateRmaResolution: function (id, resolutionRequestModel, options) {
27561
+ return __awaiter(this, void 0, void 0, function () {
27562
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27563
+ var _a, _b, _c;
27564
+ return __generator(this, function (_d) {
27565
+ switch (_d.label) {
27566
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateRmaResolution(id, resolutionRequestModel, options)];
27567
+ case 1:
27568
+ localVarAxiosArgs = _d.sent();
27569
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27570
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchUpdateRmaResolution']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27571
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27572
+ }
27573
+ });
27574
+ });
27575
+ },
27576
+ /**
27577
+ * Update RMA return address
27578
+ * @param {number} id
27579
+ * @param {AddressDTO} [addressDTO] Update RMA return address
27580
+ * @param {*} [options] Override http request option.
27581
+ * @throws {RequiredError}
27582
+ */
27583
+ patchUpdateRmaReturnAddress: function (id, addressDTO, options) {
27584
+ return __awaiter(this, void 0, void 0, function () {
27585
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27586
+ var _a, _b, _c;
27587
+ return __generator(this, function (_d) {
27588
+ switch (_d.label) {
27589
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateRmaReturnAddress(id, addressDTO, options)];
27590
+ case 1:
27591
+ localVarAxiosArgs = _d.sent();
27592
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27593
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.patchUpdateRmaReturnAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27594
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27595
+ }
27596
+ });
27597
+ });
27598
+ },
27599
+ /**
27600
+ * Create a replacement order for an RMA
27601
+ * @param {number} id
27602
+ * @param {RmaReplacementOrderRequestDTO} [rmaReplacementOrderRequestDTO] RMA Replacement Order Request
27603
+ * @param {*} [options] Override http request option.
27604
+ * @throws {RequiredError}
27605
+ */
27606
+ postCreateReplacementOrder: function (id, rmaReplacementOrderRequestDTO, options) {
27607
+ return __awaiter(this, void 0, void 0, function () {
27608
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27609
+ var _a, _b, _c;
27610
+ return __generator(this, function (_d) {
27611
+ switch (_d.label) {
27612
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateReplacementOrder(id, rmaReplacementOrderRequestDTO, options)];
27613
+ case 1:
27614
+ localVarAxiosArgs = _d.sent();
27615
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27616
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.postCreateReplacementOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27617
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27618
+ }
27619
+ });
27620
+ });
27621
+ },
27622
+ /**
27623
+ * Create an RMA
27624
+ * @param {RmaRequestDTO} [rmaRequestDTO] RMA Request
27625
+ * @param {*} [options] Override http request option.
27626
+ * @throws {RequiredError}
27627
+ */
27628
+ postCreateRma: function (rmaRequestDTO, options) {
27629
+ return __awaiter(this, void 0, void 0, function () {
27630
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27631
+ var _a, _b, _c;
27632
+ return __generator(this, function (_d) {
27633
+ switch (_d.label) {
27634
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateRma(rmaRequestDTO, options)];
27635
+ case 1:
27636
+ localVarAxiosArgs = _d.sent();
27637
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27638
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.postCreateRma']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27639
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27640
+ }
27641
+ });
27642
+ });
27643
+ },
27644
+ /**
27645
+ * Create a collection for an RMA
27646
+ * @param {number} id
27647
+ * @param {RmaCollectionDTO} [rmaCollectionDTO] RMA Collection Request
27648
+ * @param {*} [options] Override http request option.
27649
+ * @throws {RequiredError}
27650
+ */
27651
+ postCreateRmaCollection: function (id, rmaCollectionDTO, options) {
27652
+ return __awaiter(this, void 0, void 0, function () {
27653
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27654
+ var _a, _b, _c;
27655
+ return __generator(this, function (_d) {
27656
+ switch (_d.label) {
27657
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateRmaCollection(id, rmaCollectionDTO, options)];
27658
+ case 1:
27659
+ localVarAxiosArgs = _d.sent();
27660
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27661
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.postCreateRmaCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27662
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27663
+ }
27664
+ });
27665
+ });
27666
+ },
27667
+ /**
27668
+ * Create a credit note for an RMA
27669
+ * @param {number} id
27670
+ * @param {Array<RmaCreditItemRequestDTO>} [rmaCreditItemRequestDTO] RMA Items to be credited
27671
+ * @param {*} [options] Override http request option.
27672
+ * @throws {RequiredError}
27673
+ */
27674
+ postCreateRmaCreditNote: function (id, rmaCreditItemRequestDTO, options) {
27675
+ return __awaiter(this, void 0, void 0, function () {
27676
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27677
+ var _a, _b, _c;
27678
+ return __generator(this, function (_d) {
27679
+ switch (_d.label) {
27680
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateRmaCreditNote(id, rmaCreditItemRequestDTO, options)];
27681
+ case 1:
27682
+ localVarAxiosArgs = _d.sent();
27683
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27684
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.postCreateRmaCreditNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27685
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27686
+ }
27687
+ });
27688
+ });
27689
+ },
27690
+ /**
27691
+ * Create an RMA note
27692
+ * @param {number} id
27693
+ * @param {NoteRequestModel} [noteRequestModel] RMA Note Request
27694
+ * @param {*} [options] Override http request option.
27695
+ * @throws {RequiredError}
27696
+ */
27697
+ postCreateRmaNote: function (id, noteRequestModel, options) {
27698
+ return __awaiter(this, void 0, void 0, function () {
27699
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27700
+ var _a, _b, _c;
27701
+ return __generator(this, function (_d) {
27702
+ switch (_d.label) {
27703
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateRmaNote(id, noteRequestModel, options)];
27704
+ case 1:
27705
+ localVarAxiosArgs = _d.sent();
27706
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27707
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.postCreateRmaNote']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27708
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27709
+ }
27710
+ });
27711
+ });
27712
+ },
27713
+ /**
27714
+ * Create a collection for an RMA
27715
+ * @param {number} id
27716
+ * @param {RmaReturnDTO} [rmaReturnDTO] RMA Return Request
27717
+ * @param {*} [options] Override http request option.
27718
+ * @throws {RequiredError}
27719
+ */
27720
+ postCreateRmaReturn: function (id, rmaReturnDTO, options) {
27721
+ return __awaiter(this, void 0, void 0, function () {
27722
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
27723
+ var _a, _b, _c;
27724
+ return __generator(this, function (_d) {
27725
+ switch (_d.label) {
27726
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateRmaReturn(id, rmaReturnDTO, options)];
27727
+ case 1:
27728
+ localVarAxiosArgs = _d.sent();
27729
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
27730
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.postCreateRmaReturn']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
27731
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
27732
+ }
27733
+ });
27734
+ });
27735
+ },
27736
+ };
27737
+ };
27738
+ exports.RMAApiFp = RMAApiFp;
27739
+ /**
27740
+ * RMAApi - factory interface
27741
+ */
27742
+ var RMAApiFactory = function (configuration, basePath, axios) {
27743
+ var localVarFp = (0, exports.RMAApiFp)(configuration);
27744
+ return {
27745
+ /**
27746
+ * Delete an RMA item
27747
+ * @param {number} id
27748
+ * @param {number} itemId
27749
+ * @param {*} [options] Override http request option.
27750
+ * @throws {RequiredError}
27751
+ */
27752
+ deleteDeleteRmaItem: function (id, itemId, options) {
27753
+ return localVarFp.deleteDeleteRmaItem(id, itemId, options).then(function (request) { return request(axios, basePath); });
27754
+ },
27755
+ /**
27756
+ * Delete an RMA
27757
+ * @param {number} id
27758
+ * @param {*} [options] Override http request option.
27759
+ * @throws {RequiredError}
27760
+ */
27761
+ deleteGetAdminRma: function (id, options) {
27762
+ return localVarFp.deleteGetAdminRma(id, options).then(function (request) { return request(axios, basePath); });
27763
+ },
27764
+ /**
27765
+ * Get Customer RMAs
27766
+ * @param {number} [pageSize] Number Of Results
27767
+ * @param {number} [page] Page Number
27768
+ * @param {string} [search] Search
27769
+ * @param {*} [options] Override http request option.
27770
+ * @throws {RequiredError}
27771
+ */
27772
+ getCreateRma: function (pageSize, page, search, options) {
27773
+ return localVarFp.getCreateRma(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
27774
+ },
27775
+ /**
27776
+ * Get Admin RMA by ID
27777
+ * @param {number} id
27778
+ * @param {*} [options] Override http request option.
27779
+ * @throws {RequiredError}
27780
+ */
27781
+ getGetAdminRma: function (id, options) {
27782
+ return localVarFp.getGetAdminRma(id, options).then(function (request) { return request(axios, basePath); });
27783
+ },
27784
+ /**
27785
+ * Get an RMA\'s Associated Order
27786
+ * @param {number} id
27787
+ * @param {*} [options] Override http request option.
27788
+ * @throws {RequiredError}
27789
+ */
27790
+ getGetAdminRmaOrder: function (id, options) {
27791
+ return localVarFp.getGetAdminRmaOrder(id, options).then(function (request) { return request(axios, basePath); });
27792
+ },
27793
+ /**
27794
+ * Get Admin RMAs
27795
+ * @param {number} [pageSize] Number Of Results
27796
+ * @param {number} [page] Page Number
27797
+ * @param {string} [search] Search
27798
+ * @param {*} [options] Override http request option.
27799
+ * @throws {RequiredError}
27800
+ */
27801
+ getGetAdminRmas: function (pageSize, page, search, options) {
27802
+ return localVarFp.getGetAdminRmas(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
27803
+ },
27804
+ /**
27805
+ * Get RMA by ID
27806
+ * @param {number} id RMA ID
27807
+ * @param {*} [options] Override http request option.
27808
+ * @throws {RequiredError}
27809
+ */
27810
+ getGetRma: function (id, options) {
27811
+ return localVarFp.getGetRma(id, options).then(function (request) { return request(axios, basePath); });
27812
+ },
27813
+ /**
27814
+ * Get Order by ID
27815
+ * @param {number} id Order ID
27816
+ * @param {*} [options] Override http request option.
27817
+ * @throws {RequiredError}
27818
+ */
27819
+ getGetRmaOrder: function (id, options) {
27820
+ return localVarFp.getGetRmaOrder(id, options).then(function (request) { return request(axios, basePath); });
27821
+ },
27822
+ /**
27823
+ * Get suitable advance replacment orders
27824
+ * @param {string} sku Item SKU
27825
+ * @param {number} orderId Order ID
27826
+ * @param {*} [options] Override http request option.
27827
+ * @throws {RequiredError}
27828
+ */
27829
+ getSearchAdvanceReplacementOrders: function (sku, orderId, options) {
27830
+ return localVarFp.getSearchAdvanceReplacementOrders(sku, orderId, options).then(function (request) { return request(axios, basePath); });
27831
+ },
27832
+ /**
27833
+ * Search for Orders to create an RMA
27834
+ * @param {string} [search] Search
27835
+ * @param {*} [options] Override http request option.
27836
+ * @throws {RequiredError}
27837
+ */
27838
+ getSearchRmaOrders: function (search, options) {
27839
+ return localVarFp.getSearchRmaOrders(search, options).then(function (request) { return request(axios, basePath); });
27840
+ },
27841
+ /**
27842
+ * Approve an RMA
27843
+ * @param {number} id
27844
+ * @param {*} [options] Override http request option.
27845
+ * @throws {RequiredError}
27846
+ */
27847
+ patchApproveRma: function (id, options) {
27848
+ return localVarFp.patchApproveRma(id, options).then(function (request) { return request(axios, basePath); });
27849
+ },
27850
+ /**
27851
+ * Mark RMA item as binned
27852
+ * @param {number} id
27853
+ * @param {number} itemId
27854
+ * @param {*} [options] Override http request option.
27855
+ * @throws {RequiredError}
27856
+ */
27857
+ patchMarkRmaItemAsBinned: function (id, itemId, options) {
27858
+ return localVarFp.patchMarkRmaItemAsBinned(id, itemId, options).then(function (request) { return request(axios, basePath); });
27859
+ },
27860
+ /**
27861
+ * Mark RMA item as received
27862
+ * @param {number} id
27863
+ * @param {number} itemId
27864
+ * @param {*} [options] Override http request option.
27865
+ * @throws {RequiredError}
27866
+ */
27867
+ patchMarkRmaItemAsReceived: function (id, itemId, options) {
27868
+ return localVarFp.patchMarkRmaItemAsReceived(id, itemId, options).then(function (request) { return request(axios, basePath); });
27869
+ },
27870
+ /**
27871
+ * Mark RMA item as unresolved
27872
+ * @param {number} id
27873
+ * @param {number} itemId
27874
+ * @param {*} [options] Override http request option.
27875
+ * @throws {RequiredError}
27876
+ */
27877
+ patchMarkRmaItemAsUnresolved: function (id, itemId, options) {
27878
+ return localVarFp.patchMarkRmaItemAsUnresolved(id, itemId, options).then(function (request) { return request(axios, basePath); });
27879
+ },
27880
+ /**
27881
+ * Reject an RMA
27882
+ * @param {number} id
27883
+ * @param {NoteRequestModel} [noteRequestModel] RMA Rejection Request
27884
+ * @param {*} [options] Override http request option.
27885
+ * @throws {RequiredError}
27886
+ */
27887
+ patchRejectRma: function (id, noteRequestModel, options) {
27888
+ return localVarFp.patchRejectRma(id, noteRequestModel, options).then(function (request) { return request(axios, basePath); });
27889
+ },
27890
+ /**
27891
+ * Resolve an RMA
27892
+ * @param {number} id
27893
+ * @param {*} [options] Override http request option.
27894
+ * @throws {RequiredError}
27895
+ */
27896
+ patchResolveRma: function (id, options) {
27897
+ return localVarFp.patchResolveRma(id, options).then(function (request) { return request(axios, basePath); });
27898
+ },
27899
+ /**
27900
+ * Update contact name for an rma
27901
+ * @param {number} id
27902
+ * @param {EmailRequestModel} [emailRequestModel] Email Request
27903
+ * @param {*} [options] Override http request option.
27904
+ * @throws {RequiredError}
27905
+ */
27906
+ patchUpdateRmaContactEmail: function (id, emailRequestModel, options) {
27907
+ return localVarFp.patchUpdateRmaContactEmail(id, emailRequestModel, options).then(function (request) { return request(axios, basePath); });
27908
+ },
27909
+ /**
27910
+ * Update contact name for an rma
27911
+ * @param {number} id
27912
+ * @param {NameRequestModel} [nameRequestModel] Name Request
27913
+ * @param {*} [options] Override http request option.
27914
+ * @throws {RequiredError}
27915
+ */
27916
+ patchUpdateRmaContactName: function (id, nameRequestModel, options) {
27917
+ return localVarFp.patchUpdateRmaContactName(id, nameRequestModel, options).then(function (request) { return request(axios, basePath); });
27918
+ },
27919
+ /**
27920
+ * Update RMA item MAC address
27921
+ * @param {number} id
27922
+ * @param {number} itemId
27923
+ * @param {MacAddressRequestModel} [macAddressRequestModel] Update RMA item MAC address request
27924
+ * @param {*} [options] Override http request option.
27925
+ * @throws {RequiredError}
27926
+ */
27927
+ patchUpdateRmaItemMacAddress: function (id, itemId, macAddressRequestModel, options) {
27928
+ return localVarFp.patchUpdateRmaItemMacAddress(id, itemId, macAddressRequestModel, options).then(function (request) { return request(axios, basePath); });
27929
+ },
27930
+ /**
27931
+ * Update RMA item note
27932
+ * @param {number} id
27933
+ * @param {number} itemId
27934
+ * @param {NoteRequestModel} [noteRequestModel] Update RMA item note request
27935
+ * @param {*} [options] Override http request option.
27936
+ * @throws {RequiredError}
27937
+ */
27938
+ patchUpdateRmaItemNote: function (id, itemId, noteRequestModel, options) {
27939
+ return localVarFp.patchUpdateRmaItemNote(id, itemId, noteRequestModel, options).then(function (request) { return request(axios, basePath); });
27940
+ },
27941
+ /**
27942
+ * Update RMA item serial number
27943
+ * @param {number} id
27944
+ * @param {number} itemId
27945
+ * @param {SerialNumberRequestModel} [serialNumberRequestModel] Update RMA item serial number request
27946
+ * @param {*} [options] Override http request option.
27947
+ * @throws {RequiredError}
27948
+ */
27949
+ patchUpdateRmaItemSerialNumber: function (id, itemId, serialNumberRequestModel, options) {
27950
+ return localVarFp.patchUpdateRmaItemSerialNumber(id, itemId, serialNumberRequestModel, options).then(function (request) { return request(axios, basePath); });
27951
+ },
27952
+ /**
27953
+ * Update RMA reason
27954
+ * @param {number} id
27955
+ * @param {ReasonRequestModel} [reasonRequestModel] Update RMA Reason Request
27956
+ * @param {*} [options] Override http request option.
27957
+ * @throws {RequiredError}
27958
+ */
27959
+ patchUpdateRmaReason: function (id, reasonRequestModel, options) {
27960
+ return localVarFp.patchUpdateRmaReason(id, reasonRequestModel, options).then(function (request) { return request(axios, basePath); });
27961
+ },
27962
+ /**
27963
+ * Update RMA resolution
27964
+ * @param {number} id
27965
+ * @param {ResolutionRequestModel} [resolutionRequestModel] Update RMA Resolution Request
27966
+ * @param {*} [options] Override http request option.
27967
+ * @throws {RequiredError}
27968
+ */
27969
+ patchUpdateRmaResolution: function (id, resolutionRequestModel, options) {
27970
+ return localVarFp.patchUpdateRmaResolution(id, resolutionRequestModel, options).then(function (request) { return request(axios, basePath); });
27971
+ },
27972
+ /**
27973
+ * Update RMA return address
27974
+ * @param {number} id
27975
+ * @param {AddressDTO} [addressDTO] Update RMA return address
27976
+ * @param {*} [options] Override http request option.
27977
+ * @throws {RequiredError}
27978
+ */
27979
+ patchUpdateRmaReturnAddress: function (id, addressDTO, options) {
27980
+ return localVarFp.patchUpdateRmaReturnAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
27981
+ },
27982
+ /**
27983
+ * Create a replacement order for an RMA
27984
+ * @param {number} id
27985
+ * @param {RmaReplacementOrderRequestDTO} [rmaReplacementOrderRequestDTO] RMA Replacement Order Request
27986
+ * @param {*} [options] Override http request option.
27987
+ * @throws {RequiredError}
27988
+ */
27989
+ postCreateReplacementOrder: function (id, rmaReplacementOrderRequestDTO, options) {
27990
+ return localVarFp.postCreateReplacementOrder(id, rmaReplacementOrderRequestDTO, options).then(function (request) { return request(axios, basePath); });
27991
+ },
27992
+ /**
27993
+ * Create an RMA
27994
+ * @param {RmaRequestDTO} [rmaRequestDTO] RMA Request
27995
+ * @param {*} [options] Override http request option.
27996
+ * @throws {RequiredError}
27997
+ */
27998
+ postCreateRma: function (rmaRequestDTO, options) {
27999
+ return localVarFp.postCreateRma(rmaRequestDTO, options).then(function (request) { return request(axios, basePath); });
28000
+ },
28001
+ /**
28002
+ * Create a collection for an RMA
28003
+ * @param {number} id
28004
+ * @param {RmaCollectionDTO} [rmaCollectionDTO] RMA Collection Request
28005
+ * @param {*} [options] Override http request option.
28006
+ * @throws {RequiredError}
28007
+ */
28008
+ postCreateRmaCollection: function (id, rmaCollectionDTO, options) {
28009
+ return localVarFp.postCreateRmaCollection(id, rmaCollectionDTO, options).then(function (request) { return request(axios, basePath); });
28010
+ },
28011
+ /**
28012
+ * Create a credit note for an RMA
28013
+ * @param {number} id
28014
+ * @param {Array<RmaCreditItemRequestDTO>} [rmaCreditItemRequestDTO] RMA Items to be credited
28015
+ * @param {*} [options] Override http request option.
28016
+ * @throws {RequiredError}
28017
+ */
28018
+ postCreateRmaCreditNote: function (id, rmaCreditItemRequestDTO, options) {
28019
+ return localVarFp.postCreateRmaCreditNote(id, rmaCreditItemRequestDTO, options).then(function (request) { return request(axios, basePath); });
28020
+ },
28021
+ /**
28022
+ * Create an RMA note
28023
+ * @param {number} id
28024
+ * @param {NoteRequestModel} [noteRequestModel] RMA Note Request
28025
+ * @param {*} [options] Override http request option.
28026
+ * @throws {RequiredError}
28027
+ */
28028
+ postCreateRmaNote: function (id, noteRequestModel, options) {
28029
+ return localVarFp.postCreateRmaNote(id, noteRequestModel, options).then(function (request) { return request(axios, basePath); });
28030
+ },
28031
+ /**
28032
+ * Create a collection for an RMA
28033
+ * @param {number} id
28034
+ * @param {RmaReturnDTO} [rmaReturnDTO] RMA Return Request
28035
+ * @param {*} [options] Override http request option.
28036
+ * @throws {RequiredError}
28037
+ */
28038
+ postCreateRmaReturn: function (id, rmaReturnDTO, options) {
28039
+ return localVarFp.postCreateRmaReturn(id, rmaReturnDTO, options).then(function (request) { return request(axios, basePath); });
28040
+ },
28041
+ };
28042
+ };
28043
+ exports.RMAApiFactory = RMAApiFactory;
28044
+ /**
28045
+ * RMAApi - object-oriented interface
28046
+ */
28047
+ var RMAApi = /** @class */ (function (_super) {
28048
+ __extends(RMAApi, _super);
28049
+ function RMAApi() {
28050
+ return _super !== null && _super.apply(this, arguments) || this;
28051
+ }
28052
+ /**
28053
+ * Delete an RMA item
28054
+ * @param {number} id
28055
+ * @param {number} itemId
28056
+ * @param {*} [options] Override http request option.
28057
+ * @throws {RequiredError}
28058
+ */
28059
+ RMAApi.prototype.deleteDeleteRmaItem = function (id, itemId, options) {
28060
+ var _this = this;
28061
+ return (0, exports.RMAApiFp)(this.configuration).deleteDeleteRmaItem(id, itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
28062
+ };
28063
+ /**
28064
+ * Delete an RMA
28065
+ * @param {number} id
28066
+ * @param {*} [options] Override http request option.
28067
+ * @throws {RequiredError}
28068
+ */
28069
+ RMAApi.prototype.deleteGetAdminRma = function (id, options) {
28070
+ var _this = this;
28071
+ return (0, exports.RMAApiFp)(this.configuration).deleteGetAdminRma(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
28072
+ };
28073
+ /**
28074
+ * Get Customer RMAs
28075
+ * @param {number} [pageSize] Number Of Results
28076
+ * @param {number} [page] Page Number
28077
+ * @param {string} [search] Search
28078
+ * @param {*} [options] Override http request option.
28079
+ * @throws {RequiredError}
28080
+ */
28081
+ RMAApi.prototype.getCreateRma = function (pageSize, page, search, options) {
28082
+ var _this = this;
28083
+ return (0, exports.RMAApiFp)(this.configuration).getCreateRma(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
28084
+ };
28085
+ /**
28086
+ * Get Admin RMA by ID
28087
+ * @param {number} id
28088
+ * @param {*} [options] Override http request option.
28089
+ * @throws {RequiredError}
28090
+ */
28091
+ RMAApi.prototype.getGetAdminRma = function (id, options) {
28092
+ var _this = this;
28093
+ return (0, exports.RMAApiFp)(this.configuration).getGetAdminRma(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
28094
+ };
28095
+ /**
28096
+ * Get an RMA\'s Associated Order
28097
+ * @param {number} id
28098
+ * @param {*} [options] Override http request option.
28099
+ * @throws {RequiredError}
28100
+ */
28101
+ RMAApi.prototype.getGetAdminRmaOrder = function (id, options) {
28102
+ var _this = this;
28103
+ return (0, exports.RMAApiFp)(this.configuration).getGetAdminRmaOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
28104
+ };
28105
+ /**
28106
+ * Get Admin RMAs
28107
+ * @param {number} [pageSize] Number Of Results
28108
+ * @param {number} [page] Page Number
28109
+ * @param {string} [search] Search
28110
+ * @param {*} [options] Override http request option.
28111
+ * @throws {RequiredError}
28112
+ */
28113
+ RMAApi.prototype.getGetAdminRmas = function (pageSize, page, search, options) {
28114
+ var _this = this;
28115
+ return (0, exports.RMAApiFp)(this.configuration).getGetAdminRmas(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
28116
+ };
28117
+ /**
28118
+ * Get RMA by ID
28119
+ * @param {number} id RMA ID
28120
+ * @param {*} [options] Override http request option.
28121
+ * @throws {RequiredError}
28122
+ */
28123
+ RMAApi.prototype.getGetRma = function (id, options) {
28124
+ var _this = this;
28125
+ return (0, exports.RMAApiFp)(this.configuration).getGetRma(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
28126
+ };
28127
+ /**
28128
+ * Get Order by ID
28129
+ * @param {number} id Order ID
28130
+ * @param {*} [options] Override http request option.
28131
+ * @throws {RequiredError}
28132
+ */
28133
+ RMAApi.prototype.getGetRmaOrder = function (id, options) {
28134
+ var _this = this;
28135
+ return (0, exports.RMAApiFp)(this.configuration).getGetRmaOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
28136
+ };
28137
+ /**
28138
+ * Get suitable advance replacment orders
28139
+ * @param {string} sku Item SKU
28140
+ * @param {number} orderId Order ID
28141
+ * @param {*} [options] Override http request option.
28142
+ * @throws {RequiredError}
28143
+ */
28144
+ RMAApi.prototype.getSearchAdvanceReplacementOrders = function (sku, orderId, options) {
28145
+ var _this = this;
28146
+ return (0, exports.RMAApiFp)(this.configuration).getSearchAdvanceReplacementOrders(sku, orderId, options).then(function (request) { return request(_this.axios, _this.basePath); });
28147
+ };
28148
+ /**
28149
+ * Search for Orders to create an RMA
28150
+ * @param {string} [search] Search
28151
+ * @param {*} [options] Override http request option.
28152
+ * @throws {RequiredError}
28153
+ */
28154
+ RMAApi.prototype.getSearchRmaOrders = function (search, options) {
28155
+ var _this = this;
28156
+ return (0, exports.RMAApiFp)(this.configuration).getSearchRmaOrders(search, options).then(function (request) { return request(_this.axios, _this.basePath); });
28157
+ };
28158
+ /**
28159
+ * Approve an RMA
28160
+ * @param {number} id
28161
+ * @param {*} [options] Override http request option.
28162
+ * @throws {RequiredError}
28163
+ */
28164
+ RMAApi.prototype.patchApproveRma = function (id, options) {
28165
+ var _this = this;
28166
+ return (0, exports.RMAApiFp)(this.configuration).patchApproveRma(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
28167
+ };
28168
+ /**
28169
+ * Mark RMA item as binned
28170
+ * @param {number} id
28171
+ * @param {number} itemId
28172
+ * @param {*} [options] Override http request option.
28173
+ * @throws {RequiredError}
28174
+ */
28175
+ RMAApi.prototype.patchMarkRmaItemAsBinned = function (id, itemId, options) {
28176
+ var _this = this;
28177
+ return (0, exports.RMAApiFp)(this.configuration).patchMarkRmaItemAsBinned(id, itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
28178
+ };
28179
+ /**
28180
+ * Mark RMA item as received
28181
+ * @param {number} id
28182
+ * @param {number} itemId
28183
+ * @param {*} [options] Override http request option.
28184
+ * @throws {RequiredError}
28185
+ */
28186
+ RMAApi.prototype.patchMarkRmaItemAsReceived = function (id, itemId, options) {
28187
+ var _this = this;
28188
+ return (0, exports.RMAApiFp)(this.configuration).patchMarkRmaItemAsReceived(id, itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
28189
+ };
28190
+ /**
28191
+ * Mark RMA item as unresolved
28192
+ * @param {number} id
28193
+ * @param {number} itemId
28194
+ * @param {*} [options] Override http request option.
28195
+ * @throws {RequiredError}
28196
+ */
28197
+ RMAApi.prototype.patchMarkRmaItemAsUnresolved = function (id, itemId, options) {
28198
+ var _this = this;
28199
+ return (0, exports.RMAApiFp)(this.configuration).patchMarkRmaItemAsUnresolved(id, itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
28200
+ };
28201
+ /**
28202
+ * Reject an RMA
28203
+ * @param {number} id
28204
+ * @param {NoteRequestModel} [noteRequestModel] RMA Rejection Request
28205
+ * @param {*} [options] Override http request option.
28206
+ * @throws {RequiredError}
28207
+ */
28208
+ RMAApi.prototype.patchRejectRma = function (id, noteRequestModel, options) {
28209
+ var _this = this;
28210
+ return (0, exports.RMAApiFp)(this.configuration).patchRejectRma(id, noteRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28211
+ };
28212
+ /**
28213
+ * Resolve an RMA
28214
+ * @param {number} id
28215
+ * @param {*} [options] Override http request option.
28216
+ * @throws {RequiredError}
28217
+ */
28218
+ RMAApi.prototype.patchResolveRma = function (id, options) {
28219
+ var _this = this;
28220
+ return (0, exports.RMAApiFp)(this.configuration).patchResolveRma(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
28221
+ };
28222
+ /**
28223
+ * Update contact name for an rma
28224
+ * @param {number} id
28225
+ * @param {EmailRequestModel} [emailRequestModel] Email Request
28226
+ * @param {*} [options] Override http request option.
28227
+ * @throws {RequiredError}
28228
+ */
28229
+ RMAApi.prototype.patchUpdateRmaContactEmail = function (id, emailRequestModel, options) {
28230
+ var _this = this;
28231
+ return (0, exports.RMAApiFp)(this.configuration).patchUpdateRmaContactEmail(id, emailRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28232
+ };
28233
+ /**
28234
+ * Update contact name for an rma
28235
+ * @param {number} id
28236
+ * @param {NameRequestModel} [nameRequestModel] Name Request
28237
+ * @param {*} [options] Override http request option.
28238
+ * @throws {RequiredError}
28239
+ */
28240
+ RMAApi.prototype.patchUpdateRmaContactName = function (id, nameRequestModel, options) {
28241
+ var _this = this;
28242
+ return (0, exports.RMAApiFp)(this.configuration).patchUpdateRmaContactName(id, nameRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28243
+ };
28244
+ /**
28245
+ * Update RMA item MAC address
28246
+ * @param {number} id
28247
+ * @param {number} itemId
28248
+ * @param {MacAddressRequestModel} [macAddressRequestModel] Update RMA item MAC address request
28249
+ * @param {*} [options] Override http request option.
28250
+ * @throws {RequiredError}
28251
+ */
28252
+ RMAApi.prototype.patchUpdateRmaItemMacAddress = function (id, itemId, macAddressRequestModel, options) {
28253
+ var _this = this;
28254
+ return (0, exports.RMAApiFp)(this.configuration).patchUpdateRmaItemMacAddress(id, itemId, macAddressRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28255
+ };
28256
+ /**
28257
+ * Update RMA item note
28258
+ * @param {number} id
28259
+ * @param {number} itemId
28260
+ * @param {NoteRequestModel} [noteRequestModel] Update RMA item note request
28261
+ * @param {*} [options] Override http request option.
28262
+ * @throws {RequiredError}
28263
+ */
28264
+ RMAApi.prototype.patchUpdateRmaItemNote = function (id, itemId, noteRequestModel, options) {
28265
+ var _this = this;
28266
+ return (0, exports.RMAApiFp)(this.configuration).patchUpdateRmaItemNote(id, itemId, noteRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28267
+ };
28268
+ /**
28269
+ * Update RMA item serial number
28270
+ * @param {number} id
28271
+ * @param {number} itemId
28272
+ * @param {SerialNumberRequestModel} [serialNumberRequestModel] Update RMA item serial number request
28273
+ * @param {*} [options] Override http request option.
28274
+ * @throws {RequiredError}
28275
+ */
28276
+ RMAApi.prototype.patchUpdateRmaItemSerialNumber = function (id, itemId, serialNumberRequestModel, options) {
28277
+ var _this = this;
28278
+ return (0, exports.RMAApiFp)(this.configuration).patchUpdateRmaItemSerialNumber(id, itemId, serialNumberRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28279
+ };
28280
+ /**
28281
+ * Update RMA reason
28282
+ * @param {number} id
28283
+ * @param {ReasonRequestModel} [reasonRequestModel] Update RMA Reason Request
28284
+ * @param {*} [options] Override http request option.
28285
+ * @throws {RequiredError}
28286
+ */
28287
+ RMAApi.prototype.patchUpdateRmaReason = function (id, reasonRequestModel, options) {
28288
+ var _this = this;
28289
+ return (0, exports.RMAApiFp)(this.configuration).patchUpdateRmaReason(id, reasonRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28290
+ };
28291
+ /**
28292
+ * Update RMA resolution
28293
+ * @param {number} id
28294
+ * @param {ResolutionRequestModel} [resolutionRequestModel] Update RMA Resolution Request
28295
+ * @param {*} [options] Override http request option.
28296
+ * @throws {RequiredError}
28297
+ */
28298
+ RMAApi.prototype.patchUpdateRmaResolution = function (id, resolutionRequestModel, options) {
28299
+ var _this = this;
28300
+ return (0, exports.RMAApiFp)(this.configuration).patchUpdateRmaResolution(id, resolutionRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28301
+ };
28302
+ /**
28303
+ * Update RMA return address
28304
+ * @param {number} id
28305
+ * @param {AddressDTO} [addressDTO] Update RMA return address
28306
+ * @param {*} [options] Override http request option.
28307
+ * @throws {RequiredError}
28308
+ */
28309
+ RMAApi.prototype.patchUpdateRmaReturnAddress = function (id, addressDTO, options) {
28310
+ var _this = this;
28311
+ return (0, exports.RMAApiFp)(this.configuration).patchUpdateRmaReturnAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
28312
+ };
28313
+ /**
28314
+ * Create a replacement order for an RMA
28315
+ * @param {number} id
28316
+ * @param {RmaReplacementOrderRequestDTO} [rmaReplacementOrderRequestDTO] RMA Replacement Order Request
28317
+ * @param {*} [options] Override http request option.
28318
+ * @throws {RequiredError}
28319
+ */
28320
+ RMAApi.prototype.postCreateReplacementOrder = function (id, rmaReplacementOrderRequestDTO, options) {
28321
+ var _this = this;
28322
+ return (0, exports.RMAApiFp)(this.configuration).postCreateReplacementOrder(id, rmaReplacementOrderRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
28323
+ };
28324
+ /**
28325
+ * Create an RMA
28326
+ * @param {RmaRequestDTO} [rmaRequestDTO] RMA Request
28327
+ * @param {*} [options] Override http request option.
28328
+ * @throws {RequiredError}
28329
+ */
28330
+ RMAApi.prototype.postCreateRma = function (rmaRequestDTO, options) {
28331
+ var _this = this;
28332
+ return (0, exports.RMAApiFp)(this.configuration).postCreateRma(rmaRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
28333
+ };
28334
+ /**
28335
+ * Create a collection for an RMA
28336
+ * @param {number} id
28337
+ * @param {RmaCollectionDTO} [rmaCollectionDTO] RMA Collection Request
28338
+ * @param {*} [options] Override http request option.
28339
+ * @throws {RequiredError}
28340
+ */
28341
+ RMAApi.prototype.postCreateRmaCollection = function (id, rmaCollectionDTO, options) {
28342
+ var _this = this;
28343
+ return (0, exports.RMAApiFp)(this.configuration).postCreateRmaCollection(id, rmaCollectionDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
28344
+ };
28345
+ /**
28346
+ * Create a credit note for an RMA
28347
+ * @param {number} id
28348
+ * @param {Array<RmaCreditItemRequestDTO>} [rmaCreditItemRequestDTO] RMA Items to be credited
28349
+ * @param {*} [options] Override http request option.
28350
+ * @throws {RequiredError}
28351
+ */
28352
+ RMAApi.prototype.postCreateRmaCreditNote = function (id, rmaCreditItemRequestDTO, options) {
28353
+ var _this = this;
28354
+ return (0, exports.RMAApiFp)(this.configuration).postCreateRmaCreditNote(id, rmaCreditItemRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
28355
+ };
28356
+ /**
28357
+ * Create an RMA note
28358
+ * @param {number} id
28359
+ * @param {NoteRequestModel} [noteRequestModel] RMA Note Request
28360
+ * @param {*} [options] Override http request option.
28361
+ * @throws {RequiredError}
28362
+ */
28363
+ RMAApi.prototype.postCreateRmaNote = function (id, noteRequestModel, options) {
28364
+ var _this = this;
28365
+ return (0, exports.RMAApiFp)(this.configuration).postCreateRmaNote(id, noteRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
28366
+ };
28367
+ /**
28368
+ * Create a collection for an RMA
28369
+ * @param {number} id
28370
+ * @param {RmaReturnDTO} [rmaReturnDTO] RMA Return Request
28371
+ * @param {*} [options] Override http request option.
28372
+ * @throws {RequiredError}
28373
+ */
28374
+ RMAApi.prototype.postCreateRmaReturn = function (id, rmaReturnDTO, options) {
28375
+ var _this = this;
28376
+ return (0, exports.RMAApiFp)(this.configuration).postCreateRmaReturn(id, rmaReturnDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
28377
+ };
28378
+ return RMAApi;
28379
+ }(base_1.BaseAPI));
28380
+ exports.RMAApi = RMAApi;
28381
+ /**
28382
+ * ReportsApi - axios parameter creator
28383
+ */
28384
+ var ReportsApiAxiosParamCreator = function (configuration) {
28385
+ var _this = this;
28386
+ return {
28387
+ /**
28388
+ *
28389
+ * @param {*} [options] Override http request option.
28390
+ * @throws {RequiredError}
28391
+ */
28392
+ getGetStockReport: function () {
28393
+ var args_1 = [];
28394
+ for (var _i = 0; _i < arguments.length; _i++) {
28395
+ args_1[_i] = arguments[_i];
28396
+ }
28397
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
28398
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28399
+ if (options === void 0) { options = {}; }
28400
+ return __generator(this, function (_a) {
28401
+ localVarPath = "/reports/stock";
28402
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28403
+ if (configuration) {
28404
+ baseOptions = configuration.baseOptions;
28405
+ }
28406
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28407
+ localVarHeaderParameter = {};
28408
+ localVarQueryParameter = {};
28409
+ localVarHeaderParameter['Accept'] = 'application/json';
28410
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28411
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28412
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28413
+ return [2 /*return*/, {
28414
+ url: (0, common_1.toPathString)(localVarUrlObj),
28415
+ options: localVarRequestOptions,
28416
+ }];
28417
+ });
28418
+ });
28419
+ },
28420
+ /**
28421
+ * Generate Reports
28422
+ * @summary Generate Reports
28423
+ * @param {ReportRequestDTO} [reportRequestDTO] Report Request
28424
+ * @param {*} [options] Override http request option.
28425
+ * @throws {RequiredError}
28426
+ */
28427
+ postGenerateReport: function (reportRequestDTO_1) {
28428
+ var args_1 = [];
28429
+ for (var _i = 1; _i < arguments.length; _i++) {
28430
+ args_1[_i - 1] = arguments[_i];
28431
+ }
28432
+ return __awaiter(_this, __spreadArray([reportRequestDTO_1], args_1, true), void 0, function (reportRequestDTO, options) {
28433
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28434
+ if (options === void 0) { options = {}; }
28435
+ return __generator(this, function (_a) {
28436
+ localVarPath = "/reports";
28437
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28438
+ if (configuration) {
28439
+ baseOptions = configuration.baseOptions;
28440
+ }
28441
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
28442
+ localVarHeaderParameter = {};
28443
+ localVarQueryParameter = {};
28444
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28445
+ localVarHeaderParameter['Accept'] = 'application/json';
28446
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28447
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28448
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28449
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reportRequestDTO, localVarRequestOptions, configuration);
28450
+ return [2 /*return*/, {
28451
+ url: (0, common_1.toPathString)(localVarUrlObj),
28452
+ options: localVarRequestOptions,
28453
+ }];
28454
+ });
28455
+ });
28456
+ },
28457
+ };
28458
+ };
28459
+ exports.ReportsApiAxiosParamCreator = ReportsApiAxiosParamCreator;
28460
+ /**
28461
+ * ReportsApi - functional programming interface
28462
+ */
28463
+ var ReportsApiFp = function (configuration) {
28464
+ var localVarAxiosParamCreator = (0, exports.ReportsApiAxiosParamCreator)(configuration);
28465
+ return {
28466
+ /**
28467
+ *
28468
+ * @param {*} [options] Override http request option.
28469
+ * @throws {RequiredError}
28470
+ */
28471
+ getGetStockReport: function (options) {
28472
+ return __awaiter(this, void 0, void 0, function () {
28473
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
28474
+ var _a, _b, _c;
28475
+ return __generator(this, function (_d) {
28476
+ switch (_d.label) {
28477
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetStockReport(options)];
28478
+ case 1:
28479
+ localVarAxiosArgs = _d.sent();
28480
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
28481
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReportsApi.getGetStockReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
28482
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
28483
+ }
28484
+ });
28485
+ });
28486
+ },
28487
+ /**
28488
+ * Generate Reports
28489
+ * @summary Generate Reports
28490
+ * @param {ReportRequestDTO} [reportRequestDTO] Report Request
28491
+ * @param {*} [options] Override http request option.
28492
+ * @throws {RequiredError}
28493
+ */
28494
+ postGenerateReport: function (reportRequestDTO, options) {
28495
+ return __awaiter(this, void 0, void 0, function () {
28496
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
28497
+ var _a, _b, _c;
28498
+ return __generator(this, function (_d) {
28499
+ switch (_d.label) {
28500
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGenerateReport(reportRequestDTO, options)];
28501
+ case 1:
28502
+ localVarAxiosArgs = _d.sent();
28503
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
28504
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReportsApi.postGenerateReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
28505
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
28506
+ }
28507
+ });
28508
+ });
28509
+ },
28510
+ };
28511
+ };
28512
+ exports.ReportsApiFp = ReportsApiFp;
28513
+ /**
28514
+ * ReportsApi - factory interface
28515
+ */
28516
+ var ReportsApiFactory = function (configuration, basePath, axios) {
28517
+ var localVarFp = (0, exports.ReportsApiFp)(configuration);
28518
+ return {
28519
+ /**
28520
+ *
28521
+ * @param {*} [options] Override http request option.
28522
+ * @throws {RequiredError}
28523
+ */
28524
+ getGetStockReport: function (options) {
28525
+ return localVarFp.getGetStockReport(options).then(function (request) { return request(axios, basePath); });
28526
+ },
28527
+ /**
28528
+ * Generate Reports
28529
+ * @summary Generate Reports
28530
+ * @param {ReportRequestDTO} [reportRequestDTO] Report Request
28531
+ * @param {*} [options] Override http request option.
28532
+ * @throws {RequiredError}
28533
+ */
28534
+ postGenerateReport: function (reportRequestDTO, options) {
28535
+ return localVarFp.postGenerateReport(reportRequestDTO, options).then(function (request) { return request(axios, basePath); });
28536
+ },
28537
+ };
28538
+ };
28539
+ exports.ReportsApiFactory = ReportsApiFactory;
28540
+ /**
28541
+ * ReportsApi - object-oriented interface
28542
+ */
28543
+ var ReportsApi = /** @class */ (function (_super) {
28544
+ __extends(ReportsApi, _super);
28545
+ function ReportsApi() {
28546
+ return _super !== null && _super.apply(this, arguments) || this;
28547
+ }
28548
+ /**
28549
+ *
28550
+ * @param {*} [options] Override http request option.
28551
+ * @throws {RequiredError}
28552
+ */
28553
+ ReportsApi.prototype.getGetStockReport = function (options) {
28554
+ var _this = this;
28555
+ return (0, exports.ReportsApiFp)(this.configuration).getGetStockReport(options).then(function (request) { return request(_this.axios, _this.basePath); });
28556
+ };
28557
+ /**
28558
+ * Generate Reports
28559
+ * @summary Generate Reports
28560
+ * @param {ReportRequestDTO} [reportRequestDTO] Report Request
28561
+ * @param {*} [options] Override http request option.
28562
+ * @throws {RequiredError}
28563
+ */
28564
+ ReportsApi.prototype.postGenerateReport = function (reportRequestDTO, options) {
28565
+ var _this = this;
28566
+ return (0, exports.ReportsApiFp)(this.configuration).postGenerateReport(reportRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
28567
+ };
28568
+ return ReportsApi;
28569
+ }(base_1.BaseAPI));
28570
+ exports.ReportsApi = ReportsApi;
28571
+ /**
28572
+ * SIPTrunksApi - axios parameter creator
28573
+ */
28574
+ var SIPTrunksApiAxiosParamCreator = function (configuration) {
28575
+ var _this = this;
28576
+ return {
28577
+ /**
28578
+ * Delete SIP Trunk
28579
+ * @summary Delete SIP Trunk
28580
+ * @param {number} id SIP Trunk ID
28581
+ * @param {*} [options] Override http request option.
28582
+ * @throws {RequiredError}
28583
+ */
28584
+ deleteGetSipTrunk: function (id_1) {
28585
+ var args_1 = [];
28586
+ for (var _i = 1; _i < arguments.length; _i++) {
28587
+ args_1[_i - 1] = arguments[_i];
28588
+ }
28589
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
28590
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28591
+ if (options === void 0) { options = {}; }
28592
+ return __generator(this, function (_a) {
28593
+ // verify required parameter 'id' is not null or undefined
28594
+ (0, common_1.assertParamExists)('deleteGetSipTrunk', 'id', id);
28595
+ localVarPath = "/sip/trunks/{id}"
28596
+ .replace('{id}', encodeURIComponent(String(id)));
28597
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28598
+ if (configuration) {
28599
+ baseOptions = configuration.baseOptions;
28600
+ }
28601
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
28602
+ localVarHeaderParameter = {};
28603
+ localVarQueryParameter = {};
28604
+ localVarHeaderParameter['Accept'] = 'application/json';
28605
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28606
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28607
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28608
+ return [2 /*return*/, {
28609
+ url: (0, common_1.toPathString)(localVarUrlObj),
28610
+ options: localVarRequestOptions,
28611
+ }];
28612
+ });
28613
+ });
28614
+ },
28615
+ /**
28616
+ * SIP Trunk Diverts Allowed
28617
+ * @summary SIP Trunk Diverts Allowed
28618
+ * @param {number} id SIP Trunk ID
28619
+ * @param {*} [options] Override http request option.
28620
+ * @throws {RequiredError}
28621
+ */
28622
+ getCanDivert: function (id_1) {
28623
+ var args_1 = [];
28624
+ for (var _i = 1; _i < arguments.length; _i++) {
28625
+ args_1[_i - 1] = arguments[_i];
28626
+ }
28627
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
28628
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28629
+ if (options === void 0) { options = {}; }
28630
+ return __generator(this, function (_a) {
28631
+ // verify required parameter 'id' is not null or undefined
28632
+ (0, common_1.assertParamExists)('getCanDivert', 'id', id);
28633
+ localVarPath = "/sip/trunks/{id}/diverts/allowed"
28634
+ .replace('{id}', encodeURIComponent(String(id)));
28635
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28636
+ if (configuration) {
28637
+ baseOptions = configuration.baseOptions;
28638
+ }
28639
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28640
+ localVarHeaderParameter = {};
28641
+ localVarQueryParameter = {};
28642
+ localVarHeaderParameter['Accept'] = 'application/json';
28643
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28644
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28645
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28646
+ return [2 /*return*/, {
28647
+ url: (0, common_1.toPathString)(localVarUrlObj),
28648
+ options: localVarRequestOptions,
28649
+ }];
28650
+ });
28651
+ });
28652
+ },
28653
+ /**
28654
+ * Get SIP Trunk Address
28655
+ * @summary Get SIP Trunk Address
28656
+ * @param {number} id SIP Trunk ID
28657
+ * @param {*} [options] Override http request option.
28658
+ * @throws {RequiredError}
28659
+ */
28660
+ getGetAddress: function (id_1) {
28661
+ var args_1 = [];
28662
+ for (var _i = 1; _i < arguments.length; _i++) {
28663
+ args_1[_i - 1] = arguments[_i];
28664
+ }
28665
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
28666
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28667
+ if (options === void 0) { options = {}; }
28668
+ return __generator(this, function (_a) {
28669
+ // verify required parameter 'id' is not null or undefined
28670
+ (0, common_1.assertParamExists)('getGetAddress', 'id', id);
28671
+ localVarPath = "/sip/trunks/{id}/address"
28672
+ .replace('{id}', encodeURIComponent(String(id)));
28673
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28674
+ if (configuration) {
28675
+ baseOptions = configuration.baseOptions;
28676
+ }
28677
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28678
+ localVarHeaderParameter = {};
28679
+ localVarQueryParameter = {};
28680
+ localVarHeaderParameter['Accept'] = 'application/json';
28681
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28682
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28683
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28684
+ return [2 /*return*/, {
28685
+ url: (0, common_1.toPathString)(localVarUrlObj),
28686
+ options: localVarRequestOptions,
28687
+ }];
28688
+ });
28689
+ });
28690
+ },
28691
+ /**
28692
+ * Get SIP Trunks
28693
+ * @param {number} [customerId] Customer ID
28694
+ * @param {*} [options] Override http request option.
28695
+ * @throws {RequiredError}
28696
+ */
28697
+ getGetAdminSipTrunks: function (customerId_1) {
28698
+ var args_1 = [];
28699
+ for (var _i = 1; _i < arguments.length; _i++) {
28700
+ args_1[_i - 1] = arguments[_i];
28701
+ }
28702
+ return __awaiter(_this, __spreadArray([customerId_1], args_1, true), void 0, function (customerId, options) {
28703
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28704
+ if (options === void 0) { options = {}; }
28705
+ return __generator(this, function (_a) {
28706
+ localVarPath = "/sip/trunks/admin";
28707
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28708
+ if (configuration) {
28709
+ baseOptions = configuration.baseOptions;
28710
+ }
28711
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28712
+ localVarHeaderParameter = {};
28713
+ localVarQueryParameter = {};
28714
+ if (customerId !== undefined) {
28715
+ localVarQueryParameter['customerId'] = customerId;
28716
+ }
28717
+ localVarHeaderParameter['Accept'] = 'application/json';
28718
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28719
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28720
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28721
+ return [2 /*return*/, {
28722
+ url: (0, common_1.toPathString)(localVarUrlObj),
28723
+ options: localVarRequestOptions,
28724
+ }];
28725
+ });
28726
+ });
28727
+ },
28728
+ /**
28729
+ * Get UK National Area Codes
28730
+ * @summary Get UK National Area Codes
28731
+ * @param {*} [options] Override http request option.
28732
+ * @throws {RequiredError}
28733
+ */
28734
+ getGetAreaCodes: function () {
28735
+ var args_1 = [];
28736
+ for (var _i = 0; _i < arguments.length; _i++) {
28737
+ args_1[_i] = arguments[_i];
28738
+ }
28739
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
28740
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28741
+ if (options === void 0) { options = {}; }
28742
+ return __generator(this, function (_a) {
28743
+ localVarPath = "/sip/trunks/area/codes";
28744
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28745
+ if (configuration) {
28746
+ baseOptions = configuration.baseOptions;
28747
+ }
28748
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28749
+ localVarHeaderParameter = {};
28750
+ localVarQueryParameter = {};
28751
+ localVarHeaderParameter['Accept'] = 'application/json';
28752
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28753
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28754
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28755
+ return [2 /*return*/, {
28756
+ url: (0, common_1.toPathString)(localVarUrlObj),
28757
+ options: localVarRequestOptions,
28758
+ }];
28759
+ });
28760
+ });
28761
+ },
28762
+ /**
28763
+ * Get SIP Trunk CLI Flexibility Status
28764
+ * @summary Get SIP Trunk CLI Flexibility Status
28765
+ * @param {number} id SIP Trunk ID
28766
+ * @param {*} [options] Override http request option.
28767
+ * @throws {RequiredError}
28768
+ */
28769
+ getGetCliFlexibility: function (id_1) {
28770
+ var args_1 = [];
28771
+ for (var _i = 1; _i < arguments.length; _i++) {
28772
+ args_1[_i - 1] = arguments[_i];
28773
+ }
28774
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
28775
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28776
+ if (options === void 0) { options = {}; }
28777
+ return __generator(this, function (_a) {
28778
+ // verify required parameter 'id' is not null or undefined
28779
+ (0, common_1.assertParamExists)('getGetCliFlexibility', 'id', id);
28780
+ localVarPath = "/sip/trunks/{id}/cli/flexibility"
28781
+ .replace('{id}', encodeURIComponent(String(id)));
28782
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28783
+ if (configuration) {
28784
+ baseOptions = configuration.baseOptions;
28785
+ }
28786
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28787
+ localVarHeaderParameter = {};
28788
+ localVarQueryParameter = {};
28789
+ localVarHeaderParameter['Accept'] = 'application/json';
28790
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28791
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28792
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28793
+ return [2 /*return*/, {
28794
+ url: (0, common_1.toPathString)(localVarUrlObj),
28795
+ options: localVarRequestOptions,
28796
+ }];
28797
+ });
28798
+ });
28799
+ },
28800
+ /**
28801
+ * Get SIP Trunk DDIs
28802
+ * @summary Get SIP Trunk DDIs
28803
+ * @param {number} id SIP Trunk ID
28804
+ * @param {*} [options] Override http request option.
28805
+ * @throws {RequiredError}
28806
+ */
28807
+ getGetDdis: function (id_1) {
28808
+ var args_1 = [];
28809
+ for (var _i = 1; _i < arguments.length; _i++) {
28810
+ args_1[_i - 1] = arguments[_i];
28811
+ }
28812
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
28813
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28814
+ if (options === void 0) { options = {}; }
28815
+ return __generator(this, function (_a) {
28816
+ // verify required parameter 'id' is not null or undefined
28817
+ (0, common_1.assertParamExists)('getGetDdis', 'id', id);
28818
+ localVarPath = "/sip/trunks/{id}/ddis"
28819
+ .replace('{id}', encodeURIComponent(String(id)));
28820
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28821
+ if (configuration) {
28822
+ baseOptions = configuration.baseOptions;
28823
+ }
28824
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28825
+ localVarHeaderParameter = {};
28826
+ localVarQueryParameter = {};
28827
+ localVarHeaderParameter['Accept'] = 'application/json';
28828
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28829
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28830
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28831
+ return [2 /*return*/, {
28832
+ url: (0, common_1.toPathString)(localVarUrlObj),
28833
+ options: localVarRequestOptions,
28834
+ }];
28835
+ });
28836
+ });
28837
+ },
28838
+ /**
28839
+ * Get SIP Trunk Diverts
28840
+ * @summary Get SIP Trunk Diverts
28841
+ * @param {number} id SIP Trunk ID
28842
+ * @param {boolean} [enabled] Enabled Diverts
28843
+ * @param {*} [options] Override http request option.
28844
+ * @throws {RequiredError}
28845
+ */
28846
+ getGetDiverts: function (id_1, enabled_1) {
28847
+ var args_1 = [];
28848
+ for (var _i = 2; _i < arguments.length; _i++) {
28849
+ args_1[_i - 2] = arguments[_i];
28850
+ }
28851
+ return __awaiter(_this, __spreadArray([id_1, enabled_1], args_1, true), void 0, function (id, enabled, options) {
28852
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28853
+ if (options === void 0) { options = {}; }
28854
+ return __generator(this, function (_a) {
28855
+ // verify required parameter 'id' is not null or undefined
28856
+ (0, common_1.assertParamExists)('getGetDiverts', 'id', id);
28857
+ localVarPath = "/sip/trunks/{id}/diverts"
28858
+ .replace('{id}', encodeURIComponent(String(id)));
28859
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28860
+ if (configuration) {
28861
+ baseOptions = configuration.baseOptions;
28862
+ }
28863
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28864
+ localVarHeaderParameter = {};
28865
+ localVarQueryParameter = {};
28866
+ if (enabled !== undefined) {
28867
+ localVarQueryParameter['enabled'] = enabled;
28868
+ }
28869
+ localVarHeaderParameter['Accept'] = 'application/json';
28870
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28871
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28872
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28873
+ return [2 /*return*/, {
28874
+ url: (0, common_1.toPathString)(localVarUrlObj),
28875
+ options: localVarRequestOptions,
28876
+ }];
28877
+ });
28878
+ });
28879
+ },
28880
+ /**
28881
+ * Get SIP Trunk
28882
+ * @summary Get SIP Trunk
28883
+ * @param {number} id SIP Trunk ID
28884
+ * @param {*} [options] Override http request option.
28885
+ * @throws {RequiredError}
28886
+ */
28887
+ getGetSipTrunk: function (id_1) {
28888
+ var args_1 = [];
28889
+ for (var _i = 1; _i < arguments.length; _i++) {
28890
+ args_1[_i - 1] = arguments[_i];
28891
+ }
28892
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
28893
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28894
+ if (options === void 0) { options = {}; }
28895
+ return __generator(this, function (_a) {
28896
+ // verify required parameter 'id' is not null or undefined
28897
+ (0, common_1.assertParamExists)('getGetSipTrunk', 'id', id);
28898
+ localVarPath = "/sip/trunks/{id}"
28899
+ .replace('{id}', encodeURIComponent(String(id)));
28900
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28901
+ if (configuration) {
28902
+ baseOptions = configuration.baseOptions;
28903
+ }
28904
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28905
+ localVarHeaderParameter = {};
28906
+ localVarQueryParameter = {};
28907
+ localVarHeaderParameter['Accept'] = 'application/json';
28908
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28909
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28910
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28911
+ return [2 /*return*/, {
28912
+ url: (0, common_1.toPathString)(localVarUrlObj),
28913
+ options: localVarRequestOptions,
28914
+ }];
28915
+ });
28916
+ });
28917
+ },
28918
+ /**
28919
+ * Get SIP Trunks
28920
+ * @summary Get SIP Trunks
28921
+ * @param {number} [pageSize] Number Of Results
28922
+ * @param {number} [page] Page Number
28923
+ * @param {string} [search] Search
28924
+ * @param {*} [options] Override http request option.
28925
+ * @throws {RequiredError}
28926
+ */
28927
+ getGetSipTrunks: function (pageSize_1, page_1, search_1) {
28928
+ var args_1 = [];
28929
+ for (var _i = 3; _i < arguments.length; _i++) {
28930
+ args_1[_i - 3] = arguments[_i];
28931
+ }
28932
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
28933
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28934
+ if (options === void 0) { options = {}; }
28935
+ return __generator(this, function (_a) {
28936
+ localVarPath = "/sip/trunks";
28937
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28938
+ if (configuration) {
28939
+ baseOptions = configuration.baseOptions;
28940
+ }
28941
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
28942
+ localVarHeaderParameter = {};
28943
+ localVarQueryParameter = {};
28944
+ if (pageSize !== undefined) {
28945
+ localVarQueryParameter['pageSize'] = pageSize;
28946
+ }
28947
+ if (page !== undefined) {
28948
+ localVarQueryParameter['page'] = page;
28949
+ }
28950
+ if (search !== undefined) {
28951
+ localVarQueryParameter['search'] = search;
28952
+ }
28953
+ localVarHeaderParameter['Accept'] = 'application/json';
28954
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28955
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28956
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28957
+ return [2 /*return*/, {
28958
+ url: (0, common_1.toPathString)(localVarUrlObj),
28959
+ options: localVarRequestOptions,
28960
+ }];
28961
+ });
28962
+ });
28963
+ },
28964
+ /**
28965
+ * Update Get SIP Trunk CLI Flexibility Status
28966
+ * @summary Update Get SIP Trunk CLI Flexibility Status
28967
+ * @param {number} id SIP Trunk ID
28968
+ * @param {boolean} enabled Enabled
28969
+ * @param {*} [options] Override http request option.
28970
+ * @throws {RequiredError}
28971
+ */
28972
+ patchGetCliFlexibility: function (id_1, enabled_1) {
28973
+ var args_1 = [];
28974
+ for (var _i = 2; _i < arguments.length; _i++) {
28975
+ args_1[_i - 2] = arguments[_i];
28976
+ }
28977
+ return __awaiter(_this, __spreadArray([id_1, enabled_1], args_1, true), void 0, function (id, enabled, options) {
28978
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
28979
+ if (options === void 0) { options = {}; }
28980
+ return __generator(this, function (_a) {
28981
+ // verify required parameter 'id' is not null or undefined
28982
+ (0, common_1.assertParamExists)('patchGetCliFlexibility', 'id', id);
26181
28983
  // verify required parameter 'enabled' is not null or undefined
26182
28984
  (0, common_1.assertParamExists)('patchGetCliFlexibility', 'enabled', enabled);
26183
28985
  localVarPath = "/sip/trunks/{id}/cli/flexibility"
@@ -28630,6 +31432,42 @@ var ShippingApiAxiosParamCreator = function (configuration) {
28630
31432
  });
28631
31433
  });
28632
31434
  },
31435
+ /**
31436
+ * Get Collection Dates
31437
+ * @param {CollectionDatesRequestDTO} [collectionDatesRequestDTO] Collection Dates Request
31438
+ * @param {*} [options] Override http request option.
31439
+ * @throws {RequiredError}
31440
+ */
31441
+ postGetCollectionDates: function (collectionDatesRequestDTO_1) {
31442
+ var args_1 = [];
31443
+ for (var _i = 1; _i < arguments.length; _i++) {
31444
+ args_1[_i - 1] = arguments[_i];
31445
+ }
31446
+ return __awaiter(_this, __spreadArray([collectionDatesRequestDTO_1], args_1, true), void 0, function (collectionDatesRequestDTO, options) {
31447
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31448
+ if (options === void 0) { options = {}; }
31449
+ return __generator(this, function (_a) {
31450
+ localVarPath = "/shipping/collections/dates";
31451
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31452
+ if (configuration) {
31453
+ baseOptions = configuration.baseOptions;
31454
+ }
31455
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31456
+ localVarHeaderParameter = {};
31457
+ localVarQueryParameter = {};
31458
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31459
+ localVarHeaderParameter['Accept'] = 'application/json';
31460
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
31461
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31462
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31463
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(collectionDatesRequestDTO, localVarRequestOptions, configuration);
31464
+ return [2 /*return*/, {
31465
+ url: (0, common_1.toPathString)(localVarUrlObj),
31466
+ options: localVarRequestOptions,
31467
+ }];
31468
+ });
31469
+ });
31470
+ },
28633
31471
  /**
28634
31472
  * Get Shipping Services
28635
31473
  * @summary Get Shipping Services
@@ -28700,6 +31538,28 @@ var ShippingApiFp = function (configuration) {
28700
31538
  });
28701
31539
  });
28702
31540
  },
31541
+ /**
31542
+ * Get Collection Dates
31543
+ * @param {CollectionDatesRequestDTO} [collectionDatesRequestDTO] Collection Dates Request
31544
+ * @param {*} [options] Override http request option.
31545
+ * @throws {RequiredError}
31546
+ */
31547
+ postGetCollectionDates: function (collectionDatesRequestDTO, options) {
31548
+ return __awaiter(this, void 0, void 0, function () {
31549
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
31550
+ var _a, _b, _c;
31551
+ return __generator(this, function (_d) {
31552
+ switch (_d.label) {
31553
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetCollectionDates(collectionDatesRequestDTO, options)];
31554
+ case 1:
31555
+ localVarAxiosArgs = _d.sent();
31556
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
31557
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetCollectionDates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
31558
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
31559
+ }
31560
+ });
31561
+ });
31562
+ },
28703
31563
  /**
28704
31564
  * Get Shipping Services
28705
31565
  * @summary Get Shipping Services
@@ -28743,6 +31603,15 @@ var ShippingApiFactory = function (configuration, basePath, axios) {
28743
31603
  postGetAdminShippingServices: function (customerId, shippingInformationDTO, options) {
28744
31604
  return localVarFp.postGetAdminShippingServices(customerId, shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
28745
31605
  },
31606
+ /**
31607
+ * Get Collection Dates
31608
+ * @param {CollectionDatesRequestDTO} [collectionDatesRequestDTO] Collection Dates Request
31609
+ * @param {*} [options] Override http request option.
31610
+ * @throws {RequiredError}
31611
+ */
31612
+ postGetCollectionDates: function (collectionDatesRequestDTO, options) {
31613
+ return localVarFp.postGetCollectionDates(collectionDatesRequestDTO, options).then(function (request) { return request(axios, basePath); });
31614
+ },
28746
31615
  /**
28747
31616
  * Get Shipping Services
28748
31617
  * @summary Get Shipping Services
@@ -28776,6 +31645,16 @@ var ShippingApi = /** @class */ (function (_super) {
28776
31645
  var _this = this;
28777
31646
  return (0, exports.ShippingApiFp)(this.configuration).postGetAdminShippingServices(customerId, shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
28778
31647
  };
31648
+ /**
31649
+ * Get Collection Dates
31650
+ * @param {CollectionDatesRequestDTO} [collectionDatesRequestDTO] Collection Dates Request
31651
+ * @param {*} [options] Override http request option.
31652
+ * @throws {RequiredError}
31653
+ */
31654
+ ShippingApi.prototype.postGetCollectionDates = function (collectionDatesRequestDTO, options) {
31655
+ var _this = this;
31656
+ return (0, exports.ShippingApiFp)(this.configuration).postGetCollectionDates(collectionDatesRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
31657
+ };
28779
31658
  /**
28780
31659
  * Get Shipping Services
28781
31660
  * @summary Get Shipping Services
@@ -31579,9 +34458,9 @@ var TicketsApiAxiosParamCreator = function (configuration) {
31579
34458
  },
31580
34459
  /**
31581
34460
  * Create a new telephony support ticket
31582
- * @param {string} [subject] Ticket Subject
31583
- * @param {string} [message] Ticket Message
31584
- * @param {Array<File>} [attachments] Attachments (up to 20MB combined)
34461
+ * @param {string} subject Ticket Subject
34462
+ * @param {string} message Ticket Message
34463
+ * @param {Array<File>} attachments Attachments (up to 20MB combined)
31585
34464
  * @param {*} [options] Override http request option.
31586
34465
  * @throws {RequiredError}
31587
34466
  */
@@ -31594,6 +34473,12 @@ var TicketsApiAxiosParamCreator = function (configuration) {
31594
34473
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
31595
34474
  if (options === void 0) { options = {}; }
31596
34475
  return __generator(this, function (_a) {
34476
+ // verify required parameter 'subject' is not null or undefined
34477
+ (0, common_1.assertParamExists)('postCreateTicket', 'subject', subject);
34478
+ // verify required parameter 'message' is not null or undefined
34479
+ (0, common_1.assertParamExists)('postCreateTicket', 'message', message);
34480
+ // verify required parameter 'attachments' is not null or undefined
34481
+ (0, common_1.assertParamExists)('postCreateTicket', 'attachments', attachments);
31597
34482
  localVarPath = "/tickets/support";
31598
34483
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31599
34484
  if (configuration) {
@@ -31630,8 +34515,8 @@ var TicketsApiAxiosParamCreator = function (configuration) {
31630
34515
  /**
31631
34516
  * Reply to a telephony support ticket
31632
34517
  * @param {number} id Ticket ID
31633
- * @param {string} [body] Reply Body
31634
- * @param {Array<File>} [attachments] Attachments (up to 20MB combined)
34518
+ * @param {string} body Reply Body
34519
+ * @param {Array<File>} attachments Attachments (up to 20MB combined)
31635
34520
  * @param {*} [options] Override http request option.
31636
34521
  * @throws {RequiredError}
31637
34522
  */
@@ -31646,6 +34531,10 @@ var TicketsApiAxiosParamCreator = function (configuration) {
31646
34531
  return __generator(this, function (_a) {
31647
34532
  // verify required parameter 'id' is not null or undefined
31648
34533
  (0, common_1.assertParamExists)('postTicketReply', 'id', id);
34534
+ // verify required parameter 'body' is not null or undefined
34535
+ (0, common_1.assertParamExists)('postTicketReply', 'body', body);
34536
+ // verify required parameter 'attachments' is not null or undefined
34537
+ (0, common_1.assertParamExists)('postTicketReply', 'attachments', attachments);
31649
34538
  localVarPath = "/tickets/support/{id}/reply"
31650
34539
  .replace('{id}', encodeURIComponent(String(id)));
31651
34540
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -31756,9 +34645,9 @@ var TicketsApiFp = function (configuration) {
31756
34645
  },
31757
34646
  /**
31758
34647
  * Create a new telephony support ticket
31759
- * @param {string} [subject] Ticket Subject
31760
- * @param {string} [message] Ticket Message
31761
- * @param {Array<File>} [attachments] Attachments (up to 20MB combined)
34648
+ * @param {string} subject Ticket Subject
34649
+ * @param {string} message Ticket Message
34650
+ * @param {Array<File>} attachments Attachments (up to 20MB combined)
31762
34651
  * @param {*} [options] Override http request option.
31763
34652
  * @throws {RequiredError}
31764
34653
  */
@@ -31781,8 +34670,8 @@ var TicketsApiFp = function (configuration) {
31781
34670
  /**
31782
34671
  * Reply to a telephony support ticket
31783
34672
  * @param {number} id Ticket ID
31784
- * @param {string} [body] Reply Body
31785
- * @param {Array<File>} [attachments] Attachments (up to 20MB combined)
34673
+ * @param {string} body Reply Body
34674
+ * @param {Array<File>} attachments Attachments (up to 20MB combined)
31786
34675
  * @param {*} [options] Override http request option.
31787
34676
  * @throws {RequiredError}
31788
34677
  */
@@ -31842,9 +34731,9 @@ var TicketsApiFactory = function (configuration, basePath, axios) {
31842
34731
  },
31843
34732
  /**
31844
34733
  * Create a new telephony support ticket
31845
- * @param {string} [subject] Ticket Subject
31846
- * @param {string} [message] Ticket Message
31847
- * @param {Array<File>} [attachments] Attachments (up to 20MB combined)
34734
+ * @param {string} subject Ticket Subject
34735
+ * @param {string} message Ticket Message
34736
+ * @param {Array<File>} attachments Attachments (up to 20MB combined)
31848
34737
  * @param {*} [options] Override http request option.
31849
34738
  * @throws {RequiredError}
31850
34739
  */
@@ -31854,8 +34743,8 @@ var TicketsApiFactory = function (configuration, basePath, axios) {
31854
34743
  /**
31855
34744
  * Reply to a telephony support ticket
31856
34745
  * @param {number} id Ticket ID
31857
- * @param {string} [body] Reply Body
31858
- * @param {Array<File>} [attachments] Attachments (up to 20MB combined)
34746
+ * @param {string} body Reply Body
34747
+ * @param {Array<File>} attachments Attachments (up to 20MB combined)
31859
34748
  * @param {*} [options] Override http request option.
31860
34749
  * @throws {RequiredError}
31861
34750
  */
@@ -31907,9 +34796,9 @@ var TicketsApi = /** @class */ (function (_super) {
31907
34796
  };
31908
34797
  /**
31909
34798
  * Create a new telephony support ticket
31910
- * @param {string} [subject] Ticket Subject
31911
- * @param {string} [message] Ticket Message
31912
- * @param {Array<File>} [attachments] Attachments (up to 20MB combined)
34799
+ * @param {string} subject Ticket Subject
34800
+ * @param {string} message Ticket Message
34801
+ * @param {Array<File>} attachments Attachments (up to 20MB combined)
31913
34802
  * @param {*} [options] Override http request option.
31914
34803
  * @throws {RequiredError}
31915
34804
  */
@@ -31920,8 +34809,8 @@ var TicketsApi = /** @class */ (function (_super) {
31920
34809
  /**
31921
34810
  * Reply to a telephony support ticket
31922
34811
  * @param {number} id Ticket ID
31923
- * @param {string} [body] Reply Body
31924
- * @param {Array<File>} [attachments] Attachments (up to 20MB combined)
34812
+ * @param {string} body Reply Body
34813
+ * @param {Array<File>} attachments Attachments (up to 20MB combined)
31925
34814
  * @param {*} [options] Override http request option.
31926
34815
  * @throws {RequiredError}
31927
34816
  */