Typescript SDK Type Docs
    Preparing search index...

    Interface CartsConfiguration

    interface CartsConfiguration {
        countryTaxRateFallbackEnabled?: boolean;
        deleteDaysAfterLastModification: number;
        priceRoundingMode?: RoundingMode;
        taxRoundingMode?: RoundingMode;
    }
    Index

    Properties

    countryTaxRateFallbackEnabled?: boolean

    Indicates if country - no state Tax Rate fallback should be used when a shipping address state is not explicitly covered in the rates lists of all Tax Categories of a Cart Line Items. This field may not be present on Projects created before June 2020.

    deleteDaysAfterLastModification: number

    Default value for the deleteDaysAfterLastModification parameter of the CartDraft and MyCartDraft.

    - If a [ChangeSubscription](ctp:api:type:ChangeSubscription) for Carts exists, a [ResourceDeletedDeliveryPayload](ctp:api:type:ResourceDeletedDeliveryPayload) is sent upon deletion of a Cart.
    - Carts with [CartOrigin](ctp:api:type:CartOrigin) `Quote` or `RecurringOrder` are not affected by this configuration value.
    - Changing this value doesn't affect the retention of existing Carts. To update an existing Cart's retention use [`setDeleteDaysAfterLastModification`](/projects/carts#set-deletedaysafterlastmodification) on the Carts API.
    
    priceRoundingMode?: RoundingMode

    Default value for the priceRoundingMode parameter of the CartDraft. Indicates how the total prices on LineItems and CustomLineItems are rounded when calculated.

    taxRoundingMode?: RoundingMode

    Default value for the taxRoundingMode parameter of the CartDraft. Indicates how monetary values are rounded when calculating taxes for taxedPrice.