Skip to content

Commit

Permalink
Have consumedquantity be 0 for unused commitment
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS-ZachErdman committed Oct 9, 2024
1 parent c6fb404 commit 22c6f72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions specification/columns/consumedquantity.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The ConsumedQuantity column adheres to the following requirements:
* ConsumedQuantity MUST be present in a [*FOCUS dataset*](#glossary:FOCUS-dataset) when the provider supports the measurement of usage.
* ConsumedQuantity MUST be of type Decimal and MUST conform to [Numeric Format](#numericformat) requirements.
* ConsumedQuantity MUST NOT be null and MUST be a valid positive decimal value if [ChargeCategory](#chargecategory) is "Usage", [CommitmentDiscountStatus](#commitmentdiscountstatus) is not "Unused", and [ChargeClass](#chargeclass) is not "Correction".
* ConsumedQuantity MUST be 0 if ChargeCategory is "Usage", CommitmentDiscountStatus is "Unused", and ChargeClass is not "Correction".
* ConsumedQuantity MAY be null or any valid decimal value if ChargeCategory is "Usage", CommitmentDiscountStatus is not "Unused", and ChargeClass is "Correction".
* ConsumedQuantity MUST be null in all other cases.

Expand Down
4 changes: 2 additions & 2 deletions specification/columns/consumedunit.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The ConsumedUnit column adheres to the following requirements:

* ConsumedUnit MUST be present in a [*FOCUS dataset*](#glossary:FOCUS-dataset) when the provider supports the measurement of usage.
* ConsumedUnit MUST be of type String, and the units of measure used in ConsumedUnit SHOULD adhere to the values and format requirements specified in the [UnitFormat](#unitformat) attribute.
* ConsumedUnit MUST NOT be null if [ChargeCategory](#chargecategory) is "Usage", [CommitmentDiscountStatus](#commitmentdiscountstatus) is not "Unused", and [ChargeClass](#chargeclass) is not "Correction".
* ConsumedUnit MAY be null if ChargeCategory is "Usage", CommitmentDiscountStatus is not "Unused", and ChargeClass is "Correction".
* ConsumedUnit MUST NOT be null if [ChargeCategory](#chargecategory) is "Usage" and [ChargeClass](#chargeclass) is not "Correction".
* ConsumedUnit MAY be null if ChargeCategory is "Usage" and ChargeClass is "Correction".
* ConsumedUnit MUST be null in all other cases.

## Column ID
Expand Down

0 comments on commit 22c6f72

Please sign in to comment.