Checkout API: All fields under itemTaxes and shipToTaxes are changed to mandatory

In the checkout request payload, all fields of itemTaxes and shipToTaxes under estimatedTax are changed to mandatory.

If items and shipping methods are added to the cart, then the taxes for item and shipping need to be split into City and State taxes. Therefore, it is important to have a value passed to each of the fields (itemTaxes and shipToTaxes) for validation.

For details, see Checkout API references

Updated curl sample:

curl --location --request POST 'https://stage.checkout.fabric.inc/v2/checkout' \
--header 'x-site-context: {"date": "2023-01-23T21:32:19.910Z", "channel": 12, "account":"627418fcf5198b0011312210", "stage":"stg02"}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cartId": "8ae9d0fb-4ca7-42b1-88bf-1c9d634edb5b",
    "estimatedTax": {
        "itemsTaxes": [
            {
                "lineItemId": 1,
                "type": "CITY",
                "amount": 0
            }
        ],
        "shipToTaxes": [
            {
                "shipToId": "2939e202-742f-45b3-9371-1de667c0be1e",
                "type": "STATE",
                "amount": 0
            }
        ]
    },
    "paymentDetails": [
        {
            "connectorName": "CASH_ON_DELIVERY",
            "paymentToken": "507603004",
            "amount": 484,
            "currency": "USD",
            "billToAddress": {
                "name": {
                    "first": "CNC",
                    "last": "Test"
                },
                "phone": {
                    "number": "1234567890",
                    "kind": "MOBILE"
                },
                "email": "user@cnc.com",
                "street1": "1 EVE Street",
                "city": "NY",
                "state": "CA",
                "country": "US",
                "zipCode": "123456",
                "customerId": "504748630"
            }
        }
    ]
}'