Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Commit 45fbccc

Browse files
feat(organization): add missing organization fields
1 parent 0f4a991 commit 45fbccc

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

src/organizations/types/organization.rs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use derive_more::{Deref, Display, From};
22
use serde::{Deserialize, Serialize};
33

4-
use crate::{Timestamps, organizations::OrganizationDomain};
4+
use crate::{Metadata, Timestamps, organizations::OrganizationDomain};
55

66
/// The ID of an [`Organization`].
77
#[derive(
@@ -13,20 +13,20 @@ pub struct OrganizationId(String);
1313
/// The ID and name of an [`Organization`].
1414
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
1515
pub struct OrganizationIdAndName {
16-
/// The ID of the organization.
16+
/// Unique identifier of the organization.
1717
pub id: OrganizationId,
1818

19-
/// The name of the organization.
19+
/// A descriptive name for the organization.
2020
pub name: String,
2121
}
2222

2323
/// [WorkOS Docs: Organization](https://workos.com/docs/reference/organization)
2424
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
2525
pub struct Organization {
26-
/// The ID of the organization.
26+
/// Unique identifier of the organization.
2727
pub id: OrganizationId,
2828

29-
/// The name of the organization.
29+
/// A descriptive name for the organization.
3030
pub name: String,
3131

3232
/// Whether the connections within this organization should allow profiles
@@ -37,9 +37,18 @@ pub struct Organization {
3737
/// for more details.
3838
pub allow_profiles_outside_organization: bool,
3939

40-
/// The list of user email domains for the organization.
40+
/// List of organization domains.
4141
pub domains: Vec<OrganizationDomain>,
4242

43+
/// The Strip customer ID associated with this organization.
44+
pub stripe_customer_id: Option<String>,
45+
46+
/// The external ID of the organization.
47+
pub external_id: Option<String>,
48+
49+
/// Object containing metadata key/value pairs associated with the organization.
50+
pub metadata: Option<Metadata>,
51+
4352
/// The timestamps for the organization.
4453
#[serde(flatten)]
4554
pub timestamps: Timestamps,

0 commit comments

Comments
 (0)