Skip to content

Conversation

rmody3
Copy link
Contributor

@rmody3 rmody3 commented May 4, 2022

What

Asana: https://app.asana.com/0/1202119733323437/1202220351403228/f

Why

  • match sdk to api

SDK Release Checklist

  • Have you added an integration test for the changes?
  • Have you built the gem locally and made queries against it successfully?
  • Did you update the changelog?
  • Did you bump the package version in the code generator?
  • If endpoints were removed, did you manually remove the corresponding files? (this should be rare)
  • For breaking changes, did you plan for the release of the new SDK versions and deploy the API to production?

@rmody3 rmody3 requested a review from a team May 4, 2022 03:57
Comment on lines +10 to +21
### Added

- Adds optional `total_price` and `currency` field to `order` creation
- Adds optional `amount` and `unit` field to `order` creation
- Adds inventory to `project` responses
- Adds inventory to `order` responses

### Changed

- Deprecates `mass_g` and `total_price_cents_usd` fields for create `order` requests
- Deprecates `average_price_per_tonne_cents_usd` and `remaining_mass_g` from `project` responses
- Deprecates `price_cents_usd`, `patch_fee_cents_usd`, and `mass_g` from `order` responses
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done!

Comment on lines 143 to 148
expect(
create_order_response.data.price + create_order_response.data.patch_fee
).to be >= 99
expect(
create_order_response.data.price + create_order_response.data.patch_fee
).to be <= 101
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could probably use within to make this one shorter.

Copy link
Contributor

@pcothenet pcothenet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great, and glad we don't have to generate those manually!

Can you update the README to favor the non-deprecated ways of calling create_order?

@rmody3 rmody3 closed this May 4, 2022
@rmody3 rmody3 reopened this May 4, 2022
@rmody3 rmody3 force-pushed the rm/1.21.0 branch 2 times, most recently from 06323e8 to 82f5b70 Compare May 4, 2022 21:04
@rmody3 rmody3 merged commit b51bb15 into main May 4, 2022
@rmody3 rmody3 deleted the rm/1.21.0 branch May 4, 2022 21:45
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