Giter VIP home page Giter VIP logo

Comments (4)

ithielnor avatar ithielnor commented on July 18, 2024 1

I've committed a fix for #41. I'll release a new build in a few minutes.

from harvest.net.

ithielnor avatar ithielnor commented on July 18, 2024

See issue #41. Currently we use string comparison on description to deserialize enums. Harvest seems to like to change the descriptions of the currency values.

Can you send me a sample response with AUD to confirm this is the issue?

from harvest.net.

gavinbenda avatar gavinbenda commented on July 18, 2024

Thanks for that! Here's an example of the data returned via Postman.
Anytime any client is stored in AUD, it will cause the wrapper to return a null object on getClients().

[
  {
    "client": {
      "id": XXXXXXX,
      "name": "Test Client",
      "active": true,
      "currency": "United States Dollar - USD",
      "highrise_id": null,
      "updated_at": "2016-12-07T11:19:38Z",
      "created_at": "2016-12-07T10:45:29Z",
      "statement_key": "3c8d77c01213935b8b66579e9fe31fce",
      "default_invoice_kind": null,
      "default_invoice_timeframe": null,
      "address": "",
      "cache_version": 3852294862,
      "currency_symbol": "$",
      "details": "",
      "last_invoice_kind": null
    }
  },
  {
    "client": {
      "id": XXXXXXX,
      "name": "Test Client 2",
      "active": true,
      "currency": "Euro - EUR",
      "highrise_id": null,
      "updated_at": "2016-12-07T11:30:52Z",
      "created_at": "2016-12-07T11:30:52Z",
      "statement_key": "0e89949a5f3a8ff8ce04fc4fe35450a8",
      "default_invoice_kind": null,
      "default_invoice_timeframe": null,
      "address": null,
      "cache_version": 2551533894,
      "currency_symbol": "€",
      "details": null,
      "last_invoice_kind": null
    }
  },
  {
    "client": {
      "id": XXXXXXX,
      "name": "Test Client 3",
      "active": true,
      "currency": "Australian Dollar - AUD",
      "highrise_id": null,
      "updated_at": "2016-12-07T22:18:01Z",
      "created_at": "2016-12-07T11:32:46Z",
      "statement_key": "b6c64fb061d967d6055da58c9ee8e266",
      "default_invoice_kind": null,
      "default_invoice_timeframe": null,
      "address": "",
      "cache_version": 3049235833,
      "currency_symbol": "$",
      "details": "",
      "last_invoice_kind": null
    }
  }
]

from harvest.net.

gavinbenda avatar gavinbenda commented on July 18, 2024

Looks like they've changed it from Australia Dollar - AUD to Australian Dollar - AUD

from harvest.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.