pub struct CreateSubscriptionRequest<'a> {
pub customer_id: CustomerId<'a>,
pub plan_id: PlanId<'a>,
pub start_date: Option<OffsetDateTime>,
pub external_marketplace: Option<SubscriptionExternalMarketplaceRequest<'a>>,
pub align_billing_with_subscription_start_date: Option<bool>,
pub minimum_amount: Option<&'a str>,
pub net_terms: Option<i64>,
pub auto_collection: Option<bool>,
pub default_invoice_memo: Option<&'a str>,
pub idempotency_key: Option<&'a str>,
}Expand description
An Orb subscription.
Fields§
§customer_id: CustomerId<'a>An optional user-defined ID for this customer resource, used throughout the system as an alias for this customer.
plan_id: PlanId<'a>The plan that the customer should be subscribed to.
The plan determines the pricing and the cadence of the subscription.
start_date: Option<OffsetDateTime>The date at which Orb should start billing for the subscription, localized ot the customer’s timezone.
If None, defaults to the current date in the customer’s timezone.
external_marketplace: Option<SubscriptionExternalMarketplaceRequest<'a>>The name of the external marketplace that the subscription is attached to.
align_billing_with_subscription_start_date: Option<bool>Whether to align billing periods with the subscription’s start date.
If None, the value is determined by the plan configuration.
minimum_amount: Option<&'a str>The subscription’s override minimum amount for the plan.
net_terms: Option<i64>The subscription’s override minimum amount for the plan.
auto_collection: Option<bool>Determines whether issued invoices for this subscription will automatically be charged with the saved payment method on the due date.
If None, the value is determined by the plan configuration.
default_invoice_memo: Option<&'a str>Determines the default memo on this subscription’s invoices.
If None, the value is determined by the plan configuration.
idempotency_key: Option<&'a str>An idempotency key can ensure that if the same request comes in multiple times in a 48-hour period, only one makes changes.
Trait Implementations§
Source§impl<'a> Clone for CreateSubscriptionRequest<'a>
impl<'a> Clone for CreateSubscriptionRequest<'a>
Source§fn clone(&self) -> CreateSubscriptionRequest<'a>
fn clone(&self) -> CreateSubscriptionRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for CreateSubscriptionRequest<'a>
impl<'a> Debug for CreateSubscriptionRequest<'a>
Source§impl<'a> Default for CreateSubscriptionRequest<'a>
impl<'a> Default for CreateSubscriptionRequest<'a>
Source§fn default() -> CreateSubscriptionRequest<'a>
fn default() -> CreateSubscriptionRequest<'a>
Source§impl<'a> Hash for CreateSubscriptionRequest<'a>
impl<'a> Hash for CreateSubscriptionRequest<'a>
Source§impl<'a> PartialEq for CreateSubscriptionRequest<'a>
impl<'a> PartialEq for CreateSubscriptionRequest<'a>
Source§fn eq(&self, other: &CreateSubscriptionRequest<'a>) -> bool
fn eq(&self, other: &CreateSubscriptionRequest<'a>) -> bool
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for CreateSubscriptionRequest<'a>
impl<'a> Serialize for CreateSubscriptionRequest<'a>
impl<'a> Eq for CreateSubscriptionRequest<'a>
impl<'a> StructuralPartialEq for CreateSubscriptionRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateSubscriptionRequest<'a>
impl<'a> RefUnwindSafe for CreateSubscriptionRequest<'a>
impl<'a> Send for CreateSubscriptionRequest<'a>
impl<'a> Sync for CreateSubscriptionRequest<'a>
impl<'a> Unpin for CreateSubscriptionRequest<'a>
impl<'a> UnwindSafe for CreateSubscriptionRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.