-
Notifications
You must be signed in to change notification settings - Fork 2
1.21.0 - API Completness #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
### 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
spec/integration/orders_spec.rb
Outdated
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
?
06323e8
to
82f5b70
Compare
What
Asana: https://app.asana.com/0/1202119733323437/1202220351403228/f
Why
SDK Release Checklist