pub struct CheckoutRequest {
pub amount_cents: i64,
}Expand description
Starts a Stripe Checkout Session crediting the organization identified
by the path (:org). The body carries only the top-up amount in cents.
JSON schema
{
"title": "CheckoutRequest",
"description": "Starts a Stripe Checkout Session crediting the
organization identified by the path (`:org`). The body carries only the
top-up amount in cents.",
"type": "object",
"required": [
"amount_cents"
],
"properties": {
"amount_cents": {
"description": "The credit top-up amount in cents. Must be a
positive integer within the supported bounds (100–1,000,000).",
"type": "integer",
"maximum": 1000000.0,
"minimum": 100.0
}
}
}Fields§
§amount_cents: i64The credit top-up amount in cents. Must be a positive integer within the supported bounds (100–1,000,000).
Trait Implementations§
Source§impl Clone for CheckoutRequest
impl Clone for CheckoutRequest
Source§fn clone(&self) -> CheckoutRequest
fn clone(&self) -> CheckoutRequest
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 Debug for CheckoutRequest
impl Debug for CheckoutRequest
Source§impl<'de> Deserialize<'de> for CheckoutRequest
impl<'de> Deserialize<'de> for CheckoutRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CheckoutRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CheckoutRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CheckoutRequest
impl Serialize for CheckoutRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CheckoutRequest
impl RefUnwindSafe for CheckoutRequest
impl Send for CheckoutRequest
impl Sync for CheckoutRequest
impl Unpin for CheckoutRequest
impl UnsafeUnpin for CheckoutRequest
impl UnwindSafe for CheckoutRequest
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