Closed brannondorsey closed 3 years ago
According to the Taxjar API docs, the POST /v2/taxes endpoint returns a tax object with jurisdictions property which contains an object with key, value pairs.
/v2/taxes
tax
jurisdictions
However, the TaxForOrderRes.tax.jurisdictions type definition in this module contradicts the API docs (and the live results in my experience) by declaring this value contains an array of jurisdiction objects.
TaxForOrderRes.tax.jurisdictions
Is this type definition wrong? Should the [] at the end of the type deceleration by omitted?
[]
@brannondorsey Good catch, this should be an object and not an array. Removed [].
According to the Taxjar API docs, the POST
/v2/taxes
endpoint returns atax
object withjurisdictions
property which contains an object with key, value pairs.However, the
TaxForOrderRes.tax.jurisdictions
type definition in this module contradicts the API docs (and the live results in my experience) by declaring this value contains an array of jurisdiction objects.Is this type definition wrong? Should the
[]
at the end of the type deceleration by omitted?