All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Adds
issuance_type
toproject
responses - Adds
disclaimers
toproject
responses
- Adds optional
vintage_start_year
andvintage_end_year
fields toorder
creation - Adds optional
vintage_start_year
andvintage_end_year
fields toorder_line_item
create and update - Adds optional
vintage_start_year
andvintage_end_year
fields toinventory
creation - Adds
vintage_start_year
andvintage_end_year
fields toorder
response - Adds
vintage_start_year
andvintage_end_year
fields toorder_line_item
response - Adds optional
carrier_scac
field toPatch::Estimate.create_road_shipping_estimate
method - Deprecates
Patch::Estimate.create_shipping_estimate
in favor ofPatch::Estimate.create_ecommerce_estimate
- Adds
Patch::Estimate.create_ecommerce_estimate
method
- Adds
Patch::Estimate.create_air_shipping_estimate
method - Adds
Patch::Estimate.create_rail_shipping_estimate
method - Adds
Patch::Estimate.create_road_shipping_estimate
method - Adds
Patch::Estimate.create_sea_shipping_estimate
method
- Adds support for the
issued_to
parameter onorders
, to add support for creating and placing orders on behalf of another party.
- Adds support for the
accept_language
option onprojects
, to add support for theAccept-Language
header.
- Adds optional
total_price
andcurrency
field toorder
creation - Adds optional
amount
andunit
field toorder
creation - Adds inventory to
project
responses - Adds inventory to
order
responses
- Deprecates
mass_g
andtotal_price_cents_usd
fields for createorder
requests - Deprecates
average_price_per_tonne_cents_usd
andremaining_mass_g
fromproject
responses - Deprecates
price_cents_usd
,patch_fee_cents_usd
, andmass_g
fromorder
responses
- Adds optional
vintage_year
field toorder
creation
- Adds
Patch::Estimate.create_hotel_estimate
method
- Adds optional
state
field toorder
creation
- Set the order allocatations array as optional.
- No feature changes. Updates the openapi-generator version.
- Removes the
preferences
endpoints (deprecated)
- Adds highlights to project responses
- Adds verifier to project responses
- Added the ability to fetch project technology types via
Patch::TechnologyType.retrieve_technology_types()
- Adds mechanism, tagline, state, latitude, longitude, and technology_type to project responses
- Adds ability to create Bitcoin and Ethereum estimates using the daily balance held.
- Adds a
created_at
attribute in all order responses
- Body parameters are validated before being sent to the API. This gives developers faster feedback as they develop their applications.
- Adds support for airports, aircracts, cabin class and passenger count in flight estimates
- Allows methods to be called with no parameters
- Adds custom User-Agent header
- Add support for querying Orders by
metadata
- Added
transaction_value_eth_gwei
as an alternative way to compute transaction level emissions for ethereum
- Add support for Ethereum estimates
- [BREAKING] Changed
order.price_cents_usd
andorder.patch_fee_cents_usd
from string to integer.
- Order responses return a
registry_url
field - Add support for Bitcoin estimates
- Updated the value validation for certain parameters to match the API
- Added the
renewables
type
- Fixed a
NameError
that was thrown whenPatch::Sdg
was called. Specs have been added to ensure this does not happen again.
- Changed base URL from https://api.usepatch.com to https://api.patch.io
- Adds Sustainable Development Goals (SDGs) field to projects
- Adds filtering to Projects by country, type, minimum_available_mass
- vehicle estimates now support optional
make
,model
andyear
fields.
- Adds support for creating carbon emission estimates for flights, shipping, and vehicles. See the docs for more information.
- Fixes issues/5. Adds method
.openapi_nullable
which returns a set with all nullable properties. This method is referenced in#to_hash
which returns a hash representation of the resource. - Removes non-deterministic integration spec that is creating an Estimate with a specific project-id. Since we do not control the test data (yet) and make queries against our Test projects, we cannot be sure that we will have offsets available for a project ID. Instead we can rely on Patch core specs to cover this.
- Fixes a spec that was failing due to a Patch core change.
- Add spec factories and refactor generated method specs to shared examples.
total_price_cents_usd
field toorders
- allows users to create an order by total price
- order creation requires either
mass_g
ortotal_price_cents_usd
, but not both
patch_fee_cents_usd
field toorders
photos
field toprojects
- Fixing an issue related to the OpenApi code generator.
average_price_per_tonne_cents_usd
field toprojects
remaining_mass_g
field toprojects
standard
field toprojects
- validations on
mass_g
field (has to be greater than 1 and less than 2,000,000,000).
project_id
optional field toorder
creationmetadata
optional field toorder
creationproject_id
optional field toestimate
creation- changelog file
- This is the first official release of Patch's Ruby Gem.
- Pre-release of v1 Gem
- Adds support for Orders, Estimates, Projects and Preferences