duffelhq / duffel-api-javascript

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

fix: update depreciated type & fix nullable values #948

Closed lohart13 closed 4 days ago

lohart13 commented 3 weeks ago

The allowed_passenger_identity_document_types field was depreciated in v2 so this has been updated to its updated field supported_passenger_identity_document_types with all its possible values as per the schema.

Also, the schema for order says all the passenger values are nullable but still exist in the response so this has been updated. Also fare_type was missing from this so I've added it in.

igorp1 commented 2 weeks ago

This is a breaking change @lohart13, so we need to bump to the package to a new major version. I've made all the updates for v2 on https://github.com/duffelhq/duffel-api-javascript/pull/952. So feel free to close this one, it includes your changes.

lohart13 commented 4 days ago

Closed as per #952