You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
-
## [Unreleased]
8
+
## [1.3.0] - 2021-02-08
9
+
10
+
### Added
11
+
12
+
- Adds support for creating carbon emission estimates for flights, shipping, and vehicles. See the [docs](https://docs.usepatch.com/#/?id=estimates) for more information.
Copy file name to clipboardExpand all lines: lib/patch_ruby/api/estimates_api.rb
+195Lines changed: 195 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,10 @@
15
15
modulePatch
16
16
classEstimatesApi
17
17
OPERATIONS=[
18
+
:create_flight_estimate,
18
19
:create_mass_estimate,
20
+
:create_shipping_estimate,
21
+
:create_vehicle_estimate,
19
22
:retrieve_estimate,
20
23
:retrieve_estimates,
21
24
]
@@ -25,6 +28,70 @@ class EstimatesApi
25
28
definitialize(api_client=ApiClient.default)
26
29
@api_client=api_client
27
30
end
31
+
# Create a flight estimate given the distance traveled in meters
32
+
# Creates a flight estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
# Create a flight estimate given the distance traveled in meters
42
+
# Creates a flight estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
# Create a vehicle estimate given the distance traveled in meters and the type of vehicle
224
+
# Creates an estimate and calculates the amount of CO2 to be compensated depending on the distance and the vehicle. An order in the `draft` state may be created based on the parameters, linked to the estimate.
# Create a vehicle estimate given the distance traveled in meters and the type of vehicle
234
+
# Creates an estimate and calculates the amount of CO2 to be compensated depending on the distance and the vehicle. An order in the `draft` state may be created based on the parameters, linked to the estimate.
0 commit comments