pub struct ClimateOrder {Show 22 fields
pub amount_fees: i64,
pub amount_subtotal: i64,
pub amount_total: i64,
pub beneficiary: Option<ClimateRemovalsBeneficiary>,
pub canceled_at: Option<i64>,
pub cancellation_reason: Option<String>,
pub certificate: Option<String>,
pub confirmed_at: Option<i64>,
pub created: i64,
pub currency: String,
pub delayed_at: Option<i64>,
pub delivered_at: Option<i64>,
pub delivery_details: Vec<ClimateRemovalsOrderDeliveries>,
pub expected_delivery_year: i64,
pub id: String,
pub livemode: bool,
pub metadata: Value,
pub metric_tons: Decimal,
pub object: String,
pub product: Value,
pub product_substituted_at: Option<i64>,
pub status: String,
}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: i64Total amount of Frontier’s service fees in the currency’s smallest unit.
amount_subtotal: i64Total amount of the carbon removal in the currency’s smallest unit.
amount_total: i64Total amount of the order including fees in the currency’s smallest unit.
beneficiary: Option<ClimateRemovalsBeneficiary>§canceled_at: Option<i64>Time at which the order was canceled. Measured in seconds since the Unix epoch.
cancellation_reason: Option<String>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<i64>Time at which the order was confirmed. Measured in seconds since the Unix epoch.
created: i64Time at which the object was created. Measured in seconds since the Unix epoch.
currency: StringThree-letter ISO currency code, in lowercase, representing the currency for this order.
delayed_at: Option<i64>Time at which the order’s expected_delivery_year was delayed. Measured in seconds since the Unix epoch.
delivered_at: Option<i64>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: i64The year this order is expected to be delivered.
id: StringUnique identifier for the object.
livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
metadata: ValueSet 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: DecimalQuantity of carbon removal that is included in this order.
object: StringString representing the object’s type. Objects of the same type share the same value.
product: ValueUnique ID for the Climate Product this order is purchasing.
product_substituted_at: Option<i64>Time at which the order’s product was substituted for a different product. Measured in seconds since the Unix epoch.
status: StringThe 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