|
14 | 14 |
|
15 | 15 | module Patch |
16 | 16 | class Order |
| 17 | + # A unique uid for the record. UIDs will be prepended by ord_prod or ord_test depending on the mode it was created in. |
17 | 18 | attr_accessor :id |
18 | 19 |
|
| 20 | + # The amount of carbon offsets in grams purchased through this order. |
19 | 21 | attr_accessor :mass_g |
20 | 22 |
|
| 23 | + # A boolean indicating if this order is a production or test mode order. |
21 | 24 | attr_accessor :production |
22 | 25 |
|
| 26 | + # The current state of the order. |
23 | 27 | attr_accessor :state |
24 | 28 |
|
| 29 | + # The current state of the allocated carbon offsets of the order. |
25 | 30 | attr_accessor :allocation_state |
26 | 31 |
|
| 32 | + # The total price in cents USD of the carbon offsets purchased through this order. |
27 | 33 | attr_accessor :price_cents_usd |
28 | 34 |
|
| 35 | + # The Patch Fee in cents USD for this order. |
29 | 36 | attr_accessor :patch_fee_cents_usd |
30 | 37 |
|
| 38 | + # An array containing the inventory allocations for this order. |
31 | 39 | attr_accessor :allocations |
32 | 40 |
|
| 41 | + # An optional JSON object containing metadata for this order. |
33 | 42 | attr_accessor :metadata |
34 | 43 |
|
35 | 44 | class EnumAttributeValidator |
@@ -84,6 +93,17 @@ def self.openapi_types |
84 | 93 | } |
85 | 94 | end |
86 | 95 |
|
| 96 | + # Set with nullable attributes. |
| 97 | + def self.openapi_nullable |
| 98 | + nullable_properties = Set.new |
| 99 | + |
| 100 | + nullable_properties.add("price_cents_usd") |
| 101 | + |
| 102 | + nullable_properties.add("patch_fee_cents_usd") |
| 103 | + |
| 104 | + nullable_properties |
| 105 | + end |
| 106 | + |
87 | 107 | # Allows models with corresponding API classes to delegate API operations to those API classes |
88 | 108 | # Exposes Model.operation_id which delegates to ModelsApi.new.operation_id |
89 | 109 | # Eg. Order.create_order delegates to OrdersApi.new.create_order |
|
0 commit comments