pub struct Business {
pub id: BusinessID,
pub customer_id: CustomerID,
pub name: String,
pub company_number: Option<String>,
pub tax_identifier: Option<String>,
pub status: Status,
pub contacts: Option<Vec<Contact>>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub custom_data: Option<Value>,
pub import_meta: Option<ImportMeta>,
}
Expand description
Represents a business entity.
Fields§
§id: BusinessID
Unique Paddle ID for this business entity, prefixed with biz_
.
customer_id: CustomerID
Unique Paddle ID for this customer entity, prefixed with ctm_
.
name: String
Full name.
company_number: Option<String>
Company number for this business.
tax_identifier: Option<String>
Tax or VAT Number for this business.
status: Status
Whether this entity can be used in Paddle.
contacts: Option<Vec<Contact>>
List of contacts related to this business, typically used for sending invoices.
created_at: DateTime<Utc>
RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_at: DateTime<Utc>
RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
custom_data: Option<Value>
Your own structured key-value data.
import_meta: Option<ImportMeta>
Import information for this entity. null
if this entity is not imported.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Business
impl<'de> Deserialize<'de> for Business
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 Business
impl RefUnwindSafe for Business
impl Send for Business
impl Sync for Business
impl Unpin for Business
impl UnwindSafe for Business
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