# CommitmentInfo

## Example Usage

```typescript
import { CommitmentInfo } from "@flexprice/sdk/sdk/models";

let value: CommitmentInfo = {};
```

## Fields

| Field                                                                                                | Type                                                                                                 | Required                                                                                             | Description                                                                                          |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `amount`                                                                                             | *string*                                                                                             | :heavy_minus_sign:                                                                                   | N/A                                                                                                  |
| `computedCommitmentUtilizedAmount`                                                                   | *string*                                                                                             | :heavy_minus_sign:                                                                                   | N/A                                                                                                  |
| `computedOverageAmount`                                                                              | *string*                                                                                             | :heavy_minus_sign:                                                                                   | N/A                                                                                                  |
| `computedTrueUpAmount`                                                                               | *string*                                                                                             | :heavy_minus_sign:                                                                                   | total_cost = computed_commitment_utilized_amount + computed_overage_amount + computed_true_up_amount |
| `duration`                                                                                           | [models.BillingPeriod](../../sdk/models/billing-period.md)                                           | :heavy_minus_sign:                                                                                   | N/A                                                                                                  |
| `isWindowed`                                                                                         | *boolean*                                                                                            | :heavy_minus_sign:                                                                                   | N/A                                                                                                  |
| `overageFactor`                                                                                      | *string*                                                                                             | :heavy_minus_sign:                                                                                   | N/A                                                                                                  |
| `quantity`                                                                                           | *string*                                                                                             | :heavy_minus_sign:                                                                                   | Only used for quantity-based commitments                                                             |
| `trueUpEnabled`                                                                                      | *boolean*                                                                                            | :heavy_minus_sign:                                                                                   | N/A                                                                                                  |
| `type`                                                                                               | [models.CommitmentType](../../sdk/models/commitment-type.md)                                         | :heavy_minus_sign:                                                                                   | N/A                                                                                                  |