pub struct ClimateOrder {Show 21 fields
pub amount_fees: i64,
pub amount_subtotal: i64,
pub amount_total: i64,
pub beneficiary: Option<ClimateRemovalsBeneficiary>,
pub canceled_at: Option<Timestamp>,
pub cancellation_reason: Option<ClimateOrderCancellationReason>,
pub certificate: Option<String>,
pub confirmed_at: Option<Timestamp>,
pub created: Timestamp,
pub currency: Currency,
pub delayed_at: Option<Timestamp>,
pub delivered_at: Option<Timestamp>,
pub delivery_details: Vec<ClimateRemovalsOrderDeliveries>,
pub expected_delivery_year: i64,
pub id: ClimateOrderId,
pub livemode: bool,
pub metadata: HashMap<String, String>,
pub metric_tons: String,
pub product: Expandable<ClimateProduct>,
pub product_substituted_at: Option<Timestamp>,
pub status: ClimateOrderStatus,
}
Expand description
Orders represent your intent to purchase a particular Climate product. When you create an order, the. payment is deducted from your merchant balance.
Fields§
§amount_fees: i64
Total amount of Frontier’s service fees in the currency’s smallest unit.
amount_subtotal: i64
Total amount of the carbon removal in the currency’s smallest unit.
amount_total: i64
Total amount of the order including fees in the currency’s smallest unit.
beneficiary: Option<ClimateRemovalsBeneficiary>
§canceled_at: Option<Timestamp>
Time at which the order was canceled. Measured in seconds since the Unix epoch.
cancellation_reason: Option<ClimateOrderCancellationReason>
Reason for the cancellation of this order.
certificate: Option<String>
For delivered orders, a URL to a delivery certificate for the order.
confirmed_at: Option<Timestamp>
Time at which the order was confirmed. Measured in seconds since the Unix epoch.
created: Timestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
currency: Currency
Three-letter ISO currency code, in lowercase, representing the currency for this order.
delayed_at: Option<Timestamp>
Time at which the order’s expected_delivery_year was delayed. Measured in seconds since the Unix epoch.
delivered_at: Option<Timestamp>
Time at which the order was delivered. Measured in seconds since the Unix epoch.
delivery_details: Vec<ClimateRemovalsOrderDeliveries>
Details about the delivery of carbon removal for this order.
expected_delivery_year: i64
The year this order is expected to be delivered.
id: ClimateOrderId
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
metadata: HashMap<String, String>
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
metric_tons: String
Quantity of carbon removal that is included in this order.
product: Expandable<ClimateProduct>
Unique ID for the Climate Product
this order is purchasing.
product_substituted_at: Option<Timestamp>
Time at which the order’s product was substituted for a different product. Measured in seconds since the Unix epoch.
status: ClimateOrderStatus
The current status of this order.
Trait Implementations§
Source§impl Clone for ClimateOrder
impl Clone for ClimateOrder
Source§fn clone(&self) -> ClimateOrder
fn clone(&self) -> ClimateOrder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more