# @theorchard/accounting-apps-shared

## 1.11.1

### Patch Changes

-   Added ORCHARD_DE, KNR_UK, KNR_NK entity names

## 1.11.0

### Minor Changes

-   Added `useConfigOnly` prop to `useReferencePaymentEntity` and util `getPaymentEntityNameByIdFromConfig`

## 1.10.1

### Patch Changes

-   Fixed export for usePaymentEntityByName

## 1.10.0

### Minor Changes

-   Added util `detectPaymentEntityByName` and hook: `usePaymentEntityByName`

## 1.9.1

### Patch Changes

-   Added `.trim()` for values in `omitEmpty`

## 1.9.0

### Minor Changes

-   Added `isBlankDeep` and `omitEmpty` utils

## 1.8.1

### Patch Changes

-   Added `paymentEntity` related constants

## 1.8.0

### Minor Changes

-   Added writePaymentEntityToCache test util

## 1.7.1

### Patch Changes

-   Fix for gql imports and fragment usage

## 1.7.0

### Minor Changes

-   Added utils:
    -   getReferencePaymentEntityFragment
    -   getPaymentEntityNameById
    -   createEntityGuard, isAWAL, isKNR, isSME, isOrchard
-   Added hooks:
    -   useReferencePaymentEntity

## 1.6.6

### Patch Changes

-   Added AWAL_US and AWAL_UK into PAYMENT_ENTITY_NAMES constant

## 1.6.5

### Patch Changes

-   Remove `suite-utils` from dependencies

## 1.6.4

### Patch Changes

-   Update peer-dependency versions

## 1.6.3

### Patch Changes

-   Trim peer dependencies

## 1.6.2

### Patch Changes

-   Migrate lodash imports to lodash-es

## 1.6.1

### Patch Changes

-   Fix number formatting regex POSITIVE_PERCENT_REGEX to allow empty value

## 1.6.0

### Minor Changes

-   Added number formatting regex POSITIVE_PERCENT_REGEX

## 1.5.0

### Minor Changes

-   Added number formatting regex POSITIVE_AMOUNT_REGEX, SIGNED_AMOUNT_REGEX

## 1.4.1

### Patch Changes

-   Payment Services: added `PREEXISTING_PAYONEER_ACCOUNT`

## 1.4.0

### Minor Changes

-   Update countries constant, getCountries() already excludes GLOBAL by default.

## 1.3.2

### Patch Changes

-   Added PAYONEER_WIRE payment service

## 1.3.1

### Patch Changes

-   Updated gql exports/imports

## 1.3.0

### Minor Changes

-   Added mutations:
    -   AbacusUpdateAccountTaxInfo
    -   AbacusUpdateState
-   Added queries:
    -   AbacusDownloadFile

## 1.2.0

### Minor Changes

-   Added graphQL utils

## 1.1.1

### Patch Changes

-   Updated export for AbacusAccount utils

## 1.1.0

### Minor Changes

-   Constants:
    -   ABACUS_ACTION_STATUSES;
    -   ABACUS_ACTIONS;
    -   ELLIPS_CHAR;
    -   EMPTY_CHAR;
    -   MASK_CHAR;
    -   ALPHA_2_KOSOVO_COUNTRY_CODE;
    -   NEW_ALPHA_3_KOSOVO_COUNTRY_CODE;
    -   COUNTRY_OPTIONS;
    -   COUNTRIES_BY_CODE_ALPHA_2;
    -   COUNTRIES_BY_CODE_ALPHA_3;
    -   COUNTRY_TBD;
    -   MM_DD_YYYY;
    -   MMM_D_YYYY;
    -   YYYY_MM_DD;
    -   PAYEE_TYPES;
    -   PAYMENT_ENTITY_NAMES;
    -   PAYMENT_SERVICES;
-   Types:
    -   AbacusActionState;
-   Utils:
    -   isCertificateExpiringSoon;
    -   getActionsByStatus;
    -   getStateIdByActionName;
    -   getActionStateByEventName;
    -   isActionInStatus;
    -   isActionComplete;
    -   isActionRunning;
    -   updateActionStates;
    -   statesArePaymentReady;

## 1.0.0

### Major Changes

-   Initial package structure
