pub struct BillingEvent {
pub external_customer_id: Option<String>,
pub external_subscription_id: Option<String>,
pub kind: BillingEventKind,
pub provider: String,
pub raw: Value,
pub status: Option<String>,
pub tier_slug: Option<String>,
}Expand description
Provider-emitted event after webhook validation. Handlers translate this into
internal state (e.g. billing_subscriptions rows, tier_id changes on the org).
JSON schema
{
"description": "Provider-emitted event after webhook validation. Handlers translate this into\ninternal state (e.g. `billing_subscriptions` rows, tier_id changes on the org).",
"type": "object",
"required": [
"kind",
"provider",
"raw"
],
"properties": {
"external_customer_id": {
"type": [
"string",
"null"
]
},
"external_subscription_id": {
"type": [
"string",
"null"
]
},
"kind": {
"$ref": "#/components/schemas/BillingEventKind"
},
"provider": {
"type": "string"
},
"raw": {},
"status": {
"type": [
"string",
"null"
]
},
"tier_slug": {
"type": [
"string",
"null"
]
}
}
}Fields§
§external_customer_id: Option<String>§external_subscription_id: Option<String>§kind: BillingEventKind§provider: String§raw: Value§status: Option<String>§tier_slug: Option<String>Trait Implementations§
Source§impl Clone for BillingEvent
impl Clone for BillingEvent
Source§fn clone(&self) -> BillingEvent
fn clone(&self) -> BillingEvent
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 BillingEvent
impl Debug for BillingEvent
Source§impl<'de> Deserialize<'de> for BillingEvent
impl<'de> Deserialize<'de> for BillingEvent
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 BillingEvent
impl RefUnwindSafe for BillingEvent
impl Send for BillingEvent
impl Sync for BillingEvent
impl Unpin for BillingEvent
impl UnsafeUnpin for BillingEvent
impl UnwindSafe for BillingEvent
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