Struct stripe::Plan[][src]

pub struct Plan {
    pub id: String,
    pub amount: u64,
    pub created: Timestamp,
    pub currency: Currency,
    pub interval: String,
    pub interval_count: u64,
    pub livemode: bool,
    pub metadata: Metadata,
    pub nickname: Option<String>,
    pub statement_descriptor: Option<String>,
    pub trial_period_days: Option<u64>,
}

The resource representing a Stripe plan.

For more details see https://stripe.com/docs/api#plans.

Fields

Methods

impl Plan
[src]

Creates a new plan.

For more details see https://stripe.com/docs/api#create_plan.

Retrieves the details of a plan.

For more details see https://stripe.com/docs/api#retrieve_plan.

Updates a plan's properties.

For more details see https://stripe.com/docs/api#update_plan.

Deletes a plan.

For more details see https://stripe.com/docs/api#delete_plan.

Trait Implementations

impl Debug for Plan
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Plan

impl Sync for Plan