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: lib/patch_ruby/api/estimates_api.rb
+65Lines changed: 65 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
modulePatch
16
16
classEstimatesApi
17
17
OPERATIONS=[
18
+
:create_bitcoin_estimate,
18
19
:create_flight_estimate,
19
20
:create_mass_estimate,
20
21
:create_shipping_estimate,
@@ -28,6 +29,70 @@ class EstimatesApi
28
29
definitialize(api_client=ApiClient.default)
29
30
@api_client=api_client
30
31
end
32
+
# Create a bitcoin estimate given a timestamp and transaction value
33
+
# Creates a bitcoin 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 bitcoin estimate given a timestamp and transaction value
43
+
# Creates a bitcoin 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
32
97
# 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.
# Cancelling an order removes the associated offset allocation from an order. You will not be charged for cancelled orders. Only orders in the `draft` state can be cancelled.
31
+
# Cancelling an order removes the associated offset allocation from an order. You will not be charged for cancelled orders. Only orders in the `draft` or `placed` state can be cancelled.
32
32
# @param id [String]
33
33
# @param [Hash] opts the optional parameters
34
34
# @return [OrderResponse]
@@ -38,7 +38,7 @@ def cancel_order(id, opts = {})
38
38
end
39
39
40
40
# Cancel an order
41
-
# Cancelling an order removes the associated offset allocation from an order. You will not be charged for cancelled orders. Only orders in the `draft` state can be cancelled.
41
+
# Cancelling an order removes the associated offset allocation from an order. You will not be charged for cancelled orders. Only orders in the `draft` or `placed` state can be cancelled.
42
42
# @param id [String]
43
43
# @param [Hash] opts the optional parameters
44
44
# @return [Array<(OrderResponse, Integer, Hash)>] OrderResponse data, response status code and response headers
0 commit comments