--- displayed_sidebar: servicesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # ClaimService ## constructor ### Parameters ___ ## Properties `","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} /> ___ ## Accessors ### activeManager\_ #### Returns ___ ## Methods ### atomicPhase\_ Wraps some work within a transactional block. If the service already has a transaction manager attached this will be reused, otherwise a new transaction manager is created. #### Type Parameters #### Parameters Promise<TResult>","description":"the transactional work to be done","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"isolationOrErrorHandler","type":"`IsolationLevel` \\| (`error`: TError) => Promise<void \\| TResult>","description":"the isolation level to be used for the work.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"maybeErrorHandlerOrDontFail","type":"(`error`: TError) => Promise<void \\| TResult>","description":"Potential error handler","optional":true,"defaultValue":"","expandable":false,"children":[]}]} /> #### Returns ___ ### cancel #### Parameters #### Returns ___ ### cancelFulfillment #### Parameters #### Returns ___ ### create Creates a Claim on an Order. Claims consists of items that are claimed and optionally items to be sent as replacement for the claimed items. The shipping address that the new items will be shipped to #### Parameters #### Returns ___ ### createFulfillment #### Parameters `","description":"config metadata","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"config.no_notification","type":"`boolean`","description":"config no notification","optional":true,"defaultValue":"","expandable":false,"children":[]}]} /> #### Returns ___ ### createShipment #### Parameters #### Returns ___ ### getRefundTotalForClaimLinesOnOrder Finds claim line items on an order and calculates the refund amount. There are three places too look: - Order items - Swap items - Claim items (from previous claims) Note, it will attempt to return early from each of these places to avoid having to iterate over all items every time. #### Parameters #### Returns ___ ### list #### Parameters #### Returns ___ ### processRefund #### Parameters #### Returns ___ ### retrieve Gets an order by id. #### Parameters #### Returns ___ ### shouldRetryTransaction\_ #### Parameters ` \\| `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} /> #### Returns ___ ### update #### Parameters #### Returns ___ ### validateCreateClaimInput #### Parameters #### Returns ___ ### withTransaction #### Parameters #### Returns