Skip to content

2.0.0

Choose a tag to compare

@thomasmost thomasmost released this 18 Jun 19:25
· 24 commits to main since this release

This is a major version change. If you are a sender, make a plan to migrate your data mapping from 1.11.0. If you are a receiver, update your webhooks to handle the new version alongside LTS versions (1.11.0), based on the incoming data's schema version.

If you are a custodial client, you may have to manually update your webhook's maximum schema version to start receiving data of the newer version. Until you do, data will be 'downshifted' to fit the 1.11.0 schema.

Breaking Changes

  • passenger changes from type ["string", "null"] to a nullable Person object
  • metadata is removed from flight tickets
  • guests is now an array of Person objects
  • current_period_start and current_period_end have been renamed current_period_start_at and current_period_end_at
  • metadata, taxes, adjustments and other arrays that are valid when empty are now also optional and nullable

Other Changes

  • Fixed: place nullable fields should also not be required
  • Fixed: vehicle nullable image should also not be required
  • Fixed: currency should support cny instead of cnh
  • Added to rental car vehicle
    • license_plate_number (string)
    • vehicle_class (ACRISS car code, four letters)
  • Added adjustment_type enum option: add_on
  • Added website to customer
  • regex pattern validation for vehicle_class, phone, routing_number, last_four and airport codes
  • minimum and maximum bounds for unix timestamps

New Passenger Model

A Person is distinct from a Customer in that it always refers to an individual.

Field Type Required Description
first_name string | null No  
last_name string | null No  
preferred_first_name string | null No  
email string | null No  
phone string | null No  
metadata array of metadatum No List of metadata items