pub struct SubscriptionUpdate {Show 13 fields
pub customer_id: CustomerID,
pub address_id: AddressID,
pub business_id: BusinessID,
pub currency_code: CurrencyCode,
pub next_billed_at: DateTime<FixedOffset>,
pub discount: SubscriptionDiscountEffectiveFrom,
pub collection_mode: CollectionMode,
pub billing_details: BillingDetails,
pub scheduled_change: Option<()>,
pub items: Vec<SubscriptionChargeItem>,
pub custom_data: Option<Value>,
pub proration_billing_mode: ProrationBillingMode,
pub on_payment_failure: SubscriptionOnPaymentFailure,
}Expand description
Represents a subscription entity when updating subscriptions.
Fields§
§customer_id: CustomerIDUnique Paddle ID for this customer entity, prefixed with ctm_.
address_id: AddressIDUnique Paddle ID for this address entity, prefixed with add_.
business_id: BusinessIDPaddle ID of the business that this subscription is for, prefixed with biz_. Include to change the business for a subscription.
currency_code: CurrencyCodeSupported three-letter ISO 4217 currency code.
next_billed_at: DateTime<FixedOffset>RFC 3339 datetime string.
discount: SubscriptionDiscountEffectiveFromDetails of the discount applied to this subscription. Include to add a discount to a subscription. null to remove a discount.
collection_mode: CollectionModeHow payment is collected. automatic for checkout, manual for invoices.
billing_details: BillingDetailsDetails for invoicing. Required if collection_mode is manual. null if changing collection_mode to automatic.
scheduled_change: Option<()>Change that’s scheduled to be applied to a subscription. When updating, you may only set to null to remove a scheduled change. Use the pause subscription, cancel subscription, and resume subscription operations to create scheduled changes.
items: Vec<SubscriptionChargeItem>List of items on this subscription. Only recurring items may be added. Send the complete list of items that should be on this subscription, including existing items to retain.
custom_data: Option<Value>Your own structured key-value data.
proration_billing_mode: ProrationBillingModeHow Paddle should handle proration calculation for changes made to a subscription or its items. Required when making changes that impact billing.
For automatically-collected subscriptions, responses may take longer than usual if a proration billing mode that collects for payment immediately is used.
on_payment_failure: SubscriptionOnPaymentFailureHow Paddle should handle changes made to a subscription or its items if the payment fails during update. If omitted, defaults to prevent_change.
Trait Implementations§
Source§impl Clone for SubscriptionUpdate
impl Clone for SubscriptionUpdate
Source§fn clone(&self) -> SubscriptionUpdate
fn clone(&self) -> SubscriptionUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more