pub struct CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule {
pub amount: Option<f64>,
pub amount_distribution: String,
pub ending_before: DateTime<Utc>,
pub frequency: String,
pub quantity: Option<f64>,
pub starting_at: DateTime<Utc>,
pub unit_price: Option<f64>,
}Expand description
Enter the unit price and quantity for the charge or instead only send the amount. If amount is sent, the unit price is assumed to be the amount and quantity is inferred to be 1.
JSON schema
{
"description": "Enter the unit price and quantity for the charge or
instead only send the amount. If amount is sent, the unit price is
assumed to be the amount and quantity is inferred to be 1.",
"type": "object",
"required": [
"amount_distribution",
"ending_before",
"frequency",
"starting_at"
],
"properties": {
"amount": {
"description": "Amount for the charge. Can be provided instead of
unit_price and quantity. If amount is sent, the unit_price is assumed to
be the amount and quantity is inferred to be 1.",
"type": "number"
},
"amount_distribution": {
"type": "string"
},
"ending_before": {
"description": "RFC 3339 timestamp (exclusive).",
"type": "string",
"format": "date-time"
},
"frequency": {
"type": "string"
},
"quantity": {
"description": "Quantity for the charge. Will be multiplied by
unit_price to determine the amount and must be specified with
unit_price. If specified amount cannot be provided.",
"type": "number"
},
"starting_at": {
"description": "RFC 3339 timestamp (inclusive).",
"type": "string",
"format": "date-time"
},
"unit_price": {
"description": "Unit price for the charge. Will be multiplied by
quantity to determine the amount and must be specified with quantity. If
specified amount cannot be provided.",
"type": "number"
}
}
}Fields§
§amount: Option<f64>Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.
amount_distribution: String§ending_before: DateTime<Utc>RFC 3339 timestamp (exclusive).
frequency: String§quantity: Option<f64>Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.
starting_at: DateTime<Utc>RFC 3339 timestamp (inclusive).
unit_price: Option<f64>Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.
Trait Implementations§
Source§impl Clone for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
impl Clone for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
Source§fn clone(&self) -> CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
fn clone(&self) -> CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
impl<'de> Deserialize<'de> for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
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 CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
impl RefUnwindSafe for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
impl Send for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
impl Sync for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
impl Unpin for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
impl UnsafeUnpin for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
impl UnwindSafe for CreateCustomerCommitV1BodyInvoiceScheduleRecurringSchedule
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