# Money and banking

Amounts of money, prices, rates, cards and bank accounts.

## Topics

| Page | What it covers |
|---|---|
| [Money and payments](/docs/money-and-payments.md) | Use `Money` for an amount of money and `Currency` for its currency. |
| [Prices, discounts and rates](/docs/prices-discounts-and-rates.md) | These types hold a price, a discount, a price per kilogram or litre, and the rates a business quotes: tax, basis points and interest. |
| [Exchange rates](/docs/exchange-rates.md) | An `ExchangeRate` says how much one currency is worth in another at a moment, so you can convert an amount. |
| [Bank accounts](/docs/bank-accounts.md) | A `BankAccount` holds the details a payment to a bank account needs. |

## Types

| Type | What it is |
|---|---|
| [`Money`](/docs/types/type-money.md) | An amount of money: a whole number of a currency's smallest units, and the currency. |
| [`Currency`](/docs/types/type-currency.md) | A currency, by its three-letter code: `GBP`. |
| [`ExchangeRate`](/docs/types/type-exchange-rate.md) | A rate between two currencies at a moment in time. |
| [`Price`](/docs/types/type-price.md) | An amount, and whether it includes tax. |
| [`UnitPrice`](/docs/types/type-unit-price.md) | A price per amount of something, such as £2.50 per kilo. |
| [`TaxRate`](/docs/types/type-tax-rate.md) | A rate of tax, as a percentage that can't be below zero: `20%`. |
| [`Discount`](/docs/types/type-discount.md) | An amount off a price, or a percentage off it. |
| [`BasisPoints`](/docs/types/type-basis-points.md) | A count of hundredths of a percent: 25 basis points is 0.25%. |
| [`InterestRate`](/docs/types/type-interest-rate.md) | A yearly rate of interest, and the basis it is quoted on: `5.5% APR`. |
| [`PaymentCardNumber`](/docs/types/type-payment-card-number.md) | A payment card's full number, checked by its check digit. |
| [`MaskedCardNumber`](/docs/types/type-masked-card-number.md) | What you may keep of a card once its number is gone: the brand and the last four digits. |
| [`CardBrand`](/docs/types/type-card-brand.md) | A card scheme: `visa`, `mastercard`, `american_express` and so on. |
| [`CardBin`](/docs/types/type-card-bin.md) | The first 6 or 8 digits of a card number, which name its issuer. |
| [`CardExpiry`](/docs/types/type-card-expiry.md) | The month a payment card runs to, written `2028-12`. |
| [`PaymentReference`](/docs/types/type-payment-reference.md) | The reference a payer sees on a UK bank payment: up to 18 characters. |
| [`InvoiceNumber`](/docs/types/type-invoice-number.md) | An invoice's number: up to 200 characters, as your own system writes it. |
| [`Iban`](/docs/types/type-iban.md) | An international bank account number, with its check digits: `GB29NWBK60161331926819`. |
| [`Bic`](/docs/types/type-bic.md) | A bank's identifier code, also called a SWIFT code: 8 or 11 characters. |
| [`UkSortCode`](/docs/types/type-uk-sort-code.md) | A UK bank's sort code, as six digits: `089999`. |
| [`UkAccountNumber`](/docs/types/type-uk-account-number.md) | A UK bank account number: eight digits, with any leading zeros kept. |
| [`BankAccount`](/docs/types/type-bank-account.md) | A bank account to pay into or take from, in any country. |
| [`AbaRoutingNumber`](/docs/types/type-aba-routing-number.md) | A US bank's routing number: nine digits with a check digit. |
| [`Lei`](/docs/types/type-lei.md) | A Legal Entity Identifier, the global ID of a company in financial reporting. |
| [`Isin`](/docs/types/type-isin.md) | A securities identification number, naming a share or a bond: `US0378331005`. |
| [`InterestRateBasis`](/docs/types/type-interest-rate-basis.md) | What an interest rate is quoted as: `aer`, `apr` or `flat`. |
