pub struct ShippingRate {
pub active: bool,
pub created: i64,
pub delivery_estimate: Option<Value>,
pub display_name: Option<String>,
pub fixed_amount: Option<ShippingRateFixedAmount>,
pub id: String,
pub livemode: bool,
pub metadata: Value,
pub object: String,
pub tax_behavior: Option<String>,
pub tax_code: Option<Value>,
pub type_: String,
}Expand description
Shipping rates describe the price of shipping presented to your customers and applied to a purchase. For more information, see Charge for shipping.
Fields§
§active: boolWhether the shipping rate can be used for new purchases. Defaults to true.
created: i64Time at which the object was created. Measured in seconds since the Unix epoch.
delivery_estimate: Option<Value>The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
display_name: Option<String>The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
fixed_amount: Option<ShippingRateFixedAmount>§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.
object: StringString representing the object’s type. Objects of the same type share the same value.
tax_behavior: Option<String>Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified.
tax_code: Option<Value>A tax code ID. The Shipping tax code is txcd_92010001.
type_: StringThe type of calculation to use on the shipping rate. Can only be fixed_amount for now.
Trait Implementations§
Source§impl Clone for ShippingRate
impl Clone for ShippingRate
Source§fn clone(&self) -> ShippingRate
fn clone(&self) -> ShippingRate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more