Skip to content

Conversation

@MitchCrane77
Copy link
Contributor

@MitchCrane77 MitchCrane77 commented Nov 19, 2025

https://app.clickup.com/t/86b6umc3z

To test make sure you have/donate to yourself the us enrichment plan and international address plan:

examples>us_enrichemnt.mjs

-Set your Smarty authId and authToken for the server-to-server requests and comment out the client side.
-Use the new withFinancialHistory method:
let clientBuilder = new SmartyCore.ClientBuilder(credentials).withFinancialHistory();
-Log out the result in handleResponse:
console.log(result.response[0].attributes.financial_history, "financial history");
you'll see something like this:

[
  {
    document_type_description: 'grant_deed',
    recording_date: '1989-06-07',
    transfer_amount: '90000'
  }
] financial history

examples>international_street.mjs

-Set your Smarty authId and authToken for the server-to-server requests and comment out the client side.
-Use the new withOccupantUse method:
let clientBuilder = new SmartyCore.ClientBuilder(credentials).withOccupantUse();
-Log out the result in displayResult:
console.log("Metadata:", result.result[0].metadata); (it will either return undefined or something like: occupantUse: 'residential')

Test the tests to make sure tests are being tested;) make sure you are on node version 22+ and run: npm run test

@MitchCrane77 MitchCrane77 merged commit 8bf4aaa into master Nov 20, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants