Skip to content

classifyNewStateResponse

classifyNewStateResponse(response): NewStateResponseClassification

Defined in: packages/simply-settings-core/src/address/newStateForm.ts:264

Classifies the response to a “Configure New State” POST. The markers are the ones the mattandneil/statecodes Apex batch matched on, checked in the same order.

The POST’s status, unfollowed redirect location, and body.

string

string

number

NewStateResponseClassification

The outcome, with Salesforce’s message where there was one.