duffelhq / duffel-api-javascript

JavaScript client library for the Duffel API
https://duffel.com/docs
MIT License
36 stars 12 forks source link

fix: orq origin & destination types are objects, not strings #898

Closed andrejak closed 8 months ago

andrejak commented 8 months ago

On an offer request, the origin and destination are listed as objects (city or airport) in the docs, not strings: https://duffel.com/docs/api/v1/offer-requests/schema#offer-requests-schema-slices-slices-destination

Also includes a fix for an import that broke the build: https://github.com/duffelhq/duffel-api-javascript/actions/runs/8418046586/job/23048929804