Crate stripe_product

Source
Expand description

This crate provides Rust bindings to the Stripe HTTP API, specifically for requests mentioned in the Products section of the Stripe API docs

Modules§

coupon
price
product
product_feature
promotion_code
shipping_rate
tax_code
tax_rate

Structs§

Coupon
A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to subscriptions, invoices,. checkout sessions, quotes, and more. Coupons do not work with conventional one-off charges or payment intents.
CouponAppliesTo
CouponCurrencyOption
CouponId
CurrencyOption
CustomUnitAmount
DeletedCoupon
DeletedDiscount
DeletedProduct
DeletedProductFeature
DeletedProductFeatureBuilder
Discount
A discount represents the actual application of a coupon or promotion code. It contains information about when the discount began, when it will end, and what it is applied to.
DiscountId
LineItemsDiscountAmount
LineItemsTaxAmount
PackageDimensions
Price
Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. Products help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
PriceId
PriceTier
Product
Products describe the specific goods or services you offer to your customers. For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product. They can be used in conjunction with Prices to configure pricing in Payment Links, Checkout, and Subscriptions.
ProductFeature
A product_feature represents an attachment between a feature and a product. When a product is purchased that has a feature attached, Stripe will create an entitlement to the feature for the purchasing customer.
ProductFeatureId
ProductId
ProductMarketingFeature
PromotionCode
A Promotion Code represents a customer-redeemable code for a coupon. It can be used to. create multiple codes for a single coupon.
PromotionCodeCurrencyOption
PromotionCodeId
PromotionCodesResourceRestrictions
Recurring
ShippingRate
Shipping rates describe the price of shipping presented to your customers and applied to a purchase. For more information, see Charge for shipping.
ShippingRateId
TaxCode
Tax codes classify goods and services for tax purposes.
TaxCodeId
TaxRate
Tax rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax.
TaxRateFlatAmount
The amount of the tax rate when the rate_type`` is flat_amount. Tax rates with rate_type percentagecan vary based on the transaction, resulting in this field beingnull`. This field exposes the amount and currency of the flat tax rate.
TaxRateId
TransformQuantity

Enums§

CouponDuration
CurrencyOptionTaxBehavior
Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.
LineItemsTaxAmountTaxabilityReason
The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
PriceBillingScheme
PriceTaxBehavior
PriceTiersMode
PriceType
ProductType
RecurringInterval
The frequency at which a subscription is billed. One of day, week, month or year.
RecurringUsageType
Configures how the quantity per period should be determined. Can be either metered or licensed. licensed automatically bills the quantity set when adding it to a subscription. metered aggregates the total usage based on usage records. Defaults to licensed.
ShippingRateTaxBehavior
ShippingRateType
TaxRateJurisdictionLevel
The level of the jurisdiction that imposes this tax rate. Will be null for manually defined tax rates.
TaxRateRateType
Indicates the type of tax rate applied to the taxable amount. This value can be null when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
TaxRateTaxType
TransformQuantityRound
After division, either round the result up or down.