# Basket

The message describing a basket

## Example Usage

```typescript
import { Basket } from "@apexfintechsolutions/ascend-sdk/models/components";

let value: Basket = {};
```

## Fields

| Field                                                                                                                                                                      | Type                                                                                                                                                                       | Required                                                                                                                                                                   | Description                                                                                                                                                                | Example                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `basketId`                                                                                                                                                                 | *string*                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                         | System generated unique id for the basket                                                                                                                                  | fffd326-72fa-4d2b-bd1f-45384fe5d521                                                                                                                                        |
| `basketOrderCount`                                                                                                                                                         | *string*                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                         | Number of orders in the basket                                                                                                                                             | 30000                                                                                                                                                                      |
| `basketState`                                                                                                                                                              | [components.BasketState](../../models/components/basketstate.md)                                                                                                           | :heavy_minus_sign:                                                                                                                                                         | The processing status of the basket                                                                                                                                        | SUBMITTED                                                                                                                                                                  |
| `clientBasketId`                                                                                                                                                           | *string*                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                         | User-supplied unique basket ID. Cannot be more than 40 characters long.                                                                                                    | 39347a0d-860b-48e8-a04d-511133f057e3                                                                                                                                       |
| `clientBasketSubmitTime`                                                                                                                                                   | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                              | :heavy_minus_sign:                                                                                                                                                         | Time the basket submission request was sent by the client. This is a situationally optional field that reflects the value provided by the user in the SubmitBasketRequest. | 2006-01-02T15:04:05Z                                                                                                                                                       |
| `completeTime`                                                                                                                                                             | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                              | :heavy_minus_sign:                                                                                                                                                         | Time the basket was completed                                                                                                                                              | 2023-09-21T16:55:27.580Z                                                                                                                                                   |
| `compressedOrderCount`                                                                                                                                                     | *string*                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                         | Number of compressed orders in the basket that will go to market. This number is calculated after basket submission.                                                       | 35                                                                                                                                                                         |
| `correspondentId`                                                                                                                                                          | *string*                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                         | The unique id for the correspondent for the basket                                                                                                                         | 01HPMZZM6RKMVZA1JQ63RQKJRP                                                                                                                                                 |
| `createTime`                                                                                                                                                               | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                              | :heavy_minus_sign:                                                                                                                                                         | Time of the basket creation                                                                                                                                                | 2023-09-21T16:55:27.580Z                                                                                                                                                   |
| `distinctAccountCount`                                                                                                                                                     | *string*                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                         | Number of distinct accounts in the basket.                                                                                                                                 | 500                                                                                                                                                                        |
| `lastUpdateTime`                                                                                                                                                           | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                              | :heavy_minus_sign:                                                                                                                                                         | Time of the last basket update                                                                                                                                             | 2023-09-21T16:55:27.580Z                                                                                                                                                   |
| `name`                                                                                                                                                                     | *string*                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                         | System generated name of the basket                                                                                                                                        | correspondents/01HPMZZM6RKMVZA1JQ63RQKJRP/baskets/fffd326-72fa-4d2b-bd1f-45384fe5d521                                                                                      |
| `rejectedAccountCount`                                                                                                                                                     | *string*                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                         | Number of accounts that did not pass risk checks and their orders were rejected.                                                                                           | 2                                                                                                                                                                          |
| `submitTime`                                                                                                                                                               | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                              | :heavy_minus_sign:                                                                                                                                                         | Time the basket was submitted                                                                                                                                              | 2023-09-21T16:55:27.580Z                                                                                                                                                   |