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
# 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
-
# @param id [String]
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.
# 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.
43
-
# @param id [String]
42
+
# 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.
43
+
# @param id [String]
44
44
# @param [Hash] opts the optional parameters
45
45
# @return [Array<(OrderResponse, Integer, Hash)>] OrderResponse data, response status code and response headers
# Retrieves a given order and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
229
-
# @param id [String]
235
+
# Retrieves a given order and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
# Retrieves a given order and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
240
-
# @param id [String]
246
+
# Retrieves a given order and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
247
+
# @param id [String]
241
248
# @param [Hash] opts the optional parameters
242
249
# @return [Array<(OrderResponse, Integer, Hash)>] OrderResponse data, response status code and response headers
# Retrieves a list of orders and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
299
+
# Retrieves a list of orders and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
# Retrieves a list of orders and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
313
+
# Retrieves a list of orders and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
307
314
# @param [Hash] opts the optional parameters
308
-
# @option opts [Integer] :page
309
-
# @option opts [String] :metadata
310
-
# @option opts [String] :metadata_example1
311
-
# @option opts [String] :metadata_example2
315
+
# @option opts [Integer] :page
316
+
# @option opts [String] :metadata
317
+
# @option opts [String] :metadata_example1
318
+
# @option opts [String] :metadata_example2
312
319
# @return [Array<(OrderListResponse, Integer, Hash)>] OrderListResponse data, response status code and response headers
failArgumentError,"`#{k}` is not a valid attribute in `Patch::IssuedTo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+
end
78
+
h[k.to_sym]=v
79
+
}
80
+
81
+
ifattributes.key?(:'name')
82
+
self.name=attributes[:'name']
83
+
end
84
+
85
+
ifattributes.key?(:'email')
86
+
self.email=attributes[:'email']
87
+
end
88
+
end
89
+
90
+
# Show invalid properties with the reasons. Usually used together with valid?
91
+
# @return Array for valid properties with the reasons
92
+
deflist_invalid_properties
93
+
invalid_properties=Array.new
94
+
invalid_properties
95
+
end
96
+
97
+
# Check to see if the all the properties in the model are valid
98
+
# @return true if the model is valid
99
+
defvalid?
100
+
true
101
+
end
102
+
103
+
# Checks equality by comparing each attribute.
104
+
# @param [Object] Object to be compared
105
+
def ==(o)
106
+
returntrueifself.equal?(o)
107
+
self.class == o.class &&
108
+
name == o.name &&
109
+
email == o.email
110
+
end
111
+
112
+
# @see the `==` method
113
+
# @param [Object] Object to be compared
114
+
defeql?(o)
115
+
self == o
116
+
end
117
+
118
+
# Calculates hash code according to all attributes.
119
+
# @return [Integer] Hash code
120
+
defhash
121
+
[name,email].hash
122
+
end
123
+
124
+
# Builds the object from hash
125
+
# @param [Hash] attributes Model attributes in the form of hash
126
+
# @return [Object] Returns the model itself
127
+
defself.build_from_hash(attributes)
128
+
new.build_from_hash(attributes)
129
+
end
130
+
131
+
# Builds the object from hash
132
+
# @param [Hash] attributes Model attributes in the form of hash
failArgumentError,"`#{k}` is not a valid attribute in `Patch::PlaceOrderRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+
end
70
+
h[k.to_sym]=v
71
+
}
72
+
73
+
ifattributes.key?(:'issued_to')
74
+
self.issued_to=attributes[:'issued_to']
75
+
end
76
+
end
77
+
78
+
# Show invalid properties with the reasons. Usually used together with valid?
79
+
# @return Array for valid properties with the reasons
80
+
deflist_invalid_properties
81
+
invalid_properties=Array.new
82
+
invalid_properties
83
+
end
84
+
85
+
# Check to see if the all the properties in the model are valid
86
+
# @return true if the model is valid
87
+
defvalid?
88
+
true
89
+
end
90
+
91
+
# Checks equality by comparing each attribute.
92
+
# @param [Object] Object to be compared
93
+
def ==(o)
94
+
returntrueifself.equal?(o)
95
+
self.class == o.class &&
96
+
issued_to == o.issued_to
97
+
end
98
+
99
+
# @see the `==` method
100
+
# @param [Object] Object to be compared
101
+
defeql?(o)
102
+
self == o
103
+
end
104
+
105
+
# Calculates hash code according to all attributes.
106
+
# @return [Integer] Hash code
107
+
defhash
108
+
[issued_to].hash
109
+
end
110
+
111
+
# Builds the object from hash
112
+
# @param [Hash] attributes Model attributes in the form of hash
113
+
# @return [Object] Returns the model itself
114
+
defself.build_from_hash(attributes)
115
+
new.build_from_hash(attributes)
116
+
end
117
+
118
+
# Builds the object from hash
119
+
# @param [Hash] attributes Model attributes in the form of hash
failArgumentError,"`#{k}` is not a valid attribute in `Patch::V1OrdersIssuedTo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
+
end
75
+
h[k.to_sym]=v
76
+
}
77
+
78
+
ifattributes.key?(:'email')
79
+
self.email=attributes[:'email']
80
+
end
81
+
82
+
ifattributes.key?(:'name')
83
+
self.name=attributes[:'name']
84
+
end
85
+
end
86
+
87
+
# Show invalid properties with the reasons. Usually used together with valid?
88
+
# @return Array for valid properties with the reasons
89
+
deflist_invalid_properties
90
+
invalid_properties=Array.new
91
+
invalid_properties
92
+
end
93
+
94
+
# Check to see if the all the properties in the model are valid
95
+
# @return true if the model is valid
96
+
defvalid?
97
+
true
98
+
end
99
+
100
+
# Checks equality by comparing each attribute.
101
+
# @param [Object] Object to be compared
102
+
def ==(o)
103
+
returntrueifself.equal?(o)
104
+
self.class == o.class &&
105
+
email == o.email &&
106
+
name == o.name
107
+
end
108
+
109
+
# @see the `==` method
110
+
# @param [Object] Object to be compared
111
+
defeql?(o)
112
+
self == o
113
+
end
114
+
115
+
# Calculates hash code according to all attributes.
116
+
# @return [Integer] Hash code
117
+
defhash
118
+
[email,name].hash
119
+
end
120
+
121
+
# Builds the object from hash
122
+
# @param [Hash] attributes Model attributes in the form of hash
123
+
# @return [Object] Returns the model itself
124
+
defself.build_from_hash(attributes)
125
+
new.build_from_hash(attributes)
126
+
end
127
+
128
+
# Builds the object from hash
129
+
# @param [Hash] attributes Model attributes in the form of hash
0 commit comments