pub struct CreateFixedChargeInput {
pub add_on_id: String,
pub charge_model: FixedChargeModel,
pub code: Option<String>,
pub invoice_display_name: Option<String>,
pub pay_in_advance: Option<bool>,
pub prorated: Option<bool>,
pub units: Option<f64>,
pub apply_units_immediately: Option<bool>,
pub properties: Option<Value>,
pub tax_codes: Option<Vec<String>>,
pub cascade_updates: Option<bool>,
}Expand description
Input data for creating a standalone fixed charge on a plan.
Fields§
§add_on_id: StringThe add-on ID to reference.
charge_model: FixedChargeModelThe charge model to use.
code: Option<String>Unique code for the fixed charge.
invoice_display_name: Option<String>Display name for the fixed charge on invoices.
pay_in_advance: Option<bool>Whether the fixed charge is billed in advance.
prorated: Option<bool>Whether the fixed charge is prorated.
units: Option<f64>Number of units.
apply_units_immediately: Option<bool>Whether to apply units immediately.
properties: Option<Value>Fixed charge properties (model-specific configuration).
tax_codes: Option<Vec<String>>Tax codes for this fixed charge.
cascade_updates: Option<bool>Whether to cascade updates to existing subscriptions.
Implementations§
Source§impl CreateFixedChargeInput
impl CreateFixedChargeInput
pub fn new(add_on_id: String, charge_model: FixedChargeModel) -> Self
pub fn with_code(self, code: String) -> Self
pub fn with_units(self, units: f64) -> Self
Trait Implementations§
Source§impl Clone for CreateFixedChargeInput
impl Clone for CreateFixedChargeInput
Source§impl Debug for CreateFixedChargeInput
impl Debug for CreateFixedChargeInput
Source§impl<'de> Deserialize<'de> for CreateFixedChargeInput
impl<'de> Deserialize<'de> for CreateFixedChargeInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateFixedChargeInput
impl RefUnwindSafe for CreateFixedChargeInput
impl Send for CreateFixedChargeInput
impl Sync for CreateFixedChargeInput
impl Unpin for CreateFixedChargeInput
impl UnsafeUnpin for CreateFixedChargeInput
impl UnwindSafe for CreateFixedChargeInput
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
Mutably borrows from an owned value. Read more