pub struct ShippingRate {
pub active: bool,
pub created: Timestamp,
pub delivery_estimate: Option<ShippingRateDeliveryEstimate>,
pub display_name: Option<String>,
pub fixed_amount: Option<ShippingRateFixedAmount>,
pub id: ShippingRateId,
pub livemode: bool,
pub metadata: HashMap<String, String>,
pub tax_behavior: Option<ShippingRateTaxBehavior>,
pub tax_code: Option<Expandable<TaxCode>>,
pub type_: ShippingRateType,
}
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.
For more details see <https://stripe.com/docs/api/shipping_rates/object>.
Fields§
§active: bool
Whether the shipping rate can be used for new purchases. Defaults to true
.
created: Timestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
delivery_estimate: Option<ShippingRateDeliveryEstimate>
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: ShippingRateId
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.
tax_behavior: Option<ShippingRateTaxBehavior>
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes.
One of inclusive
, exclusive
, or unspecified
.
tax_code: Option<Expandable<TaxCode>>
A tax code ID.
The Shipping tax code is txcd_92010001
.
type_: ShippingRateType
The type of calculation to use on the shipping rate.
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