uber / uber-ios-sdk

Uber iOS SDK (beta)
https://developer.uber.com/docs
MIT License
376 stars 125 forks source link

Migrate Endpoints to API V1.2 #180

Closed edjiang closed 7 years ago

edjiang commented 7 years ago

I audited the request/responses for each API endpoint for V1.2, and updated the JSON mocks to use the real request/responses.

I also update the models to match what is shown in V1.2. This adds things like Flat Fares, etc.

I also change some stringly-typed enums in the API into actual enums in the SDK, instead of strings.

As a part of this migration, RidesClient.fetchCheapestProduct was removed as we don't expose pricing structure for products with Upfront Fares anymore.

edjiang commented 7 years ago

@bobz comments addressed :)