Skip to content

Passenger API | Add new attributes for deprecated money objects#125

Merged
rmehner merged 1 commit into
mainfrom
chore/deprecated-object-attributes
Sep 8, 2022
Merged

Passenger API | Add new attributes for deprecated money objects#125
rmehner merged 1 commit into
mainfrom
chore/deprecated-object-attributes

Conversation

@phylor

@phylor phylor commented Sep 7, 2022

Copy link
Copy Markdown
Collaborator

These changes adapt the passenger API to the new attributes, according to the API documentation.

History (what I deduce from the documentation):

  • Early on there were no money objects, so the API returned e.g. cost: integer
  • Then, a Money type was introduced. A new attribute was added: cost_object: Money alongside the old cost: integer. cost was then deprecated.
  • Now, cost_object is deprecated and cost is of type Money

The naming of Money objects is not yet consistent across the different APIs. There are some objects still including a deprecated cost: integer.

@phylor
phylor force-pushed the chore/deprecated-object-attributes branch from 24831cd to ab8ddad Compare September 7, 2022 08:09
@phylor
phylor marked this pull request as ready for review September 7, 2022 08:10
@phylor
phylor requested a review from rmehner September 7, 2022 08:10
@rmehner
rmehner merged commit f5a36c5 into main Sep 8, 2022
@rmehner
rmehner deleted the chore/deprecated-object-attributes branch September 8, 2022 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants