Skip to content

Latest commit

 

History

History
6600 lines (4784 loc) · 90.6 KB

reference.md

File metadata and controls

6600 lines (4784 loc) · 90.6 KB

Reference

accounts

client.Accounts.ListApiKeysAsync(ListApiKeysRequest { ... }) -> ListApiKeysResponse

🔌 Usage

await client.Accounts.ListApiKeysAsync(new ListApiKeysRequest { RequireEnvironment = true });

⚙️ Parameters

request: ListApiKeysRequest

client.Accounts.CreateApiKeyAsync(CreateApiKeyRequestBody { ... }) -> CreateApiKeyResponse

🔌 Usage

await client.Accounts.CreateApiKeyAsync(new CreateApiKeyRequestBody { Name = "name" });

⚙️ Parameters

request: CreateApiKeyRequestBody

client.Accounts.GetApiKeyAsync(apiKeyId) -> GetApiKeyResponse

🔌 Usage

await client.Accounts.GetApiKeyAsync("api_key_id");

⚙️ Parameters

apiKeyId: string — api_key_id

client.Accounts.UpdateApiKeyAsync(apiKeyId, UpdateApiKeyRequestBody { ... }) -> UpdateApiKeyResponse

🔌 Usage

await client.Accounts.UpdateApiKeyAsync("api_key_id", new UpdateApiKeyRequestBody());

⚙️ Parameters

apiKeyId: string — api_key_id

request: UpdateApiKeyRequestBody

client.Accounts.DeleteApiKeyAsync(apiKeyId) -> DeleteApiKeyResponse

🔌 Usage

await client.Accounts.DeleteApiKeyAsync("api_key_id");

⚙️ Parameters

apiKeyId: string — api_key_id

client.Accounts.CountApiKeysAsync(CountApiKeysRequest { ... }) -> CountApiKeysResponse

🔌 Usage

await client.Accounts.CountApiKeysAsync(new CountApiKeysRequest { RequireEnvironment = true });

⚙️ Parameters

request: CountApiKeysRequest

client.Accounts.ListApiRequestsAsync(ListApiRequestsRequest { ... }) -> ListApiRequestsResponse

🔌 Usage

await client.Accounts.ListApiRequestsAsync(new ListApiRequestsRequest());

⚙️ Parameters

request: ListApiRequestsRequest

client.Accounts.GetApiRequestAsync(apiRequestId) -> GetApiRequestResponse

🔌 Usage

await client.Accounts.GetApiRequestAsync("api_request_id");

⚙️ Parameters

apiRequestId: string — api_request_id

client.Accounts.CountApiRequestsAsync(CountApiRequestsRequest { ... }) -> CountApiRequestsResponse

🔌 Usage

await client.Accounts.CountApiRequestsAsync(new CountApiRequestsRequest());

⚙️ Parameters

request: CountApiRequestsRequest

client.Accounts.ListEnvironmentsAsync(ListEnvironmentsRequest { ... }) -> ListEnvironmentsResponse

🔌 Usage

await client.Accounts.ListEnvironmentsAsync(new ListEnvironmentsRequest());

⚙️ Parameters

request: ListEnvironmentsRequest

client.Accounts.CreateEnvironmentAsync(CreateEnvironmentRequestBody { ... }) -> CreateEnvironmentResponse

🔌 Usage

await client.Accounts.CreateEnvironmentAsync(
    new CreateEnvironmentRequestBody
    {
        EnvironmentType = CreateEnvironmentRequestBodyEnvironmentType.Development,
        Name = "name",
    }
);

⚙️ Parameters

request: CreateEnvironmentRequestBody

client.Accounts.GetEnvironmentAsync(environmentId) -> GetEnvironmentResponse

🔌 Usage

await client.Accounts.GetEnvironmentAsync("environment_id");

⚙️ Parameters

environmentId: string — environment_id

client.Accounts.UpdateEnvironmentAsync(environmentId, UpdateEnvironmentRequestBody { ... }) -> UpdateEnvironmentResponse

🔌 Usage

await client.Accounts.UpdateEnvironmentAsync("environment_id", new UpdateEnvironmentRequestBody());

⚙️ Parameters

environmentId: string — environment_id

request: UpdateEnvironmentRequestBody

client.Accounts.DeleteEnvironmentAsync(environmentId) -> DeleteEnvironmentResponse

🔌 Usage

await client.Accounts.DeleteEnvironmentAsync("environment_id");

⚙️ Parameters

environmentId: string — environment_id

features

client.Features.CountAudienceCompaniesAsync(AudienceRequestBody { ... }) -> CountAudienceCompaniesResponse

🔌 Usage

await client.Features.CountAudienceCompaniesAsync(
    new AudienceRequestBody
    {
        ConditionGroups = new List<CreateOrUpdateConditionGroupRequestBody>()
        {
            new CreateOrUpdateConditionGroupRequestBody
            {
                Conditions = new List<CreateOrUpdateConditionRequestBody>()
                {
                    new CreateOrUpdateConditionRequestBody
                    {
                        ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                        Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                        ResourceIds = new List<string>() { "resource_ids" },
                    },
                },
            },
        },
        Conditions = new List<CreateOrUpdateConditionRequestBody>()
        {
            new CreateOrUpdateConditionRequestBody
            {
                ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                ResourceIds = new List<string>() { "resource_ids" },
            },
        },
    }
);

⚙️ Parameters

request: AudienceRequestBody

client.Features.CountAudienceUsersAsync(AudienceRequestBody { ... }) -> CountAudienceUsersResponse

🔌 Usage

await client.Features.CountAudienceUsersAsync(
    new AudienceRequestBody
    {
        ConditionGroups = new List<CreateOrUpdateConditionGroupRequestBody>()
        {
            new CreateOrUpdateConditionGroupRequestBody
            {
                Conditions = new List<CreateOrUpdateConditionRequestBody>()
                {
                    new CreateOrUpdateConditionRequestBody
                    {
                        ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                        Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                        ResourceIds = new List<string>() { "resource_ids" },
                    },
                },
            },
        },
        Conditions = new List<CreateOrUpdateConditionRequestBody>()
        {
            new CreateOrUpdateConditionRequestBody
            {
                ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                ResourceIds = new List<string>() { "resource_ids" },
            },
        },
    }
);

⚙️ Parameters

request: AudienceRequestBody

client.Features.ListAudienceCompaniesAsync(AudienceRequestBody { ... }) -> ListAudienceCompaniesResponse

🔌 Usage

await client.Features.ListAudienceCompaniesAsync(
    new AudienceRequestBody
    {
        ConditionGroups = new List<CreateOrUpdateConditionGroupRequestBody>()
        {
            new CreateOrUpdateConditionGroupRequestBody
            {
                Conditions = new List<CreateOrUpdateConditionRequestBody>()
                {
                    new CreateOrUpdateConditionRequestBody
                    {
                        ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                        Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                        ResourceIds = new List<string>() { "resource_ids" },
                    },
                },
            },
        },
        Conditions = new List<CreateOrUpdateConditionRequestBody>()
        {
            new CreateOrUpdateConditionRequestBody
            {
                ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                ResourceIds = new List<string>() { "resource_ids" },
            },
        },
    }
);

⚙️ Parameters

request: AudienceRequestBody

client.Features.ListAudienceUsersAsync(AudienceRequestBody { ... }) -> ListAudienceUsersResponse

🔌 Usage

await client.Features.ListAudienceUsersAsync(
    new AudienceRequestBody
    {
        ConditionGroups = new List<CreateOrUpdateConditionGroupRequestBody>()
        {
            new CreateOrUpdateConditionGroupRequestBody
            {
                Conditions = new List<CreateOrUpdateConditionRequestBody>()
                {
                    new CreateOrUpdateConditionRequestBody
                    {
                        ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                        Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                        ResourceIds = new List<string>() { "resource_ids" },
                    },
                },
            },
        },
        Conditions = new List<CreateOrUpdateConditionRequestBody>()
        {
            new CreateOrUpdateConditionRequestBody
            {
                ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                ResourceIds = new List<string>() { "resource_ids" },
            },
        },
    }
);

⚙️ Parameters

request: AudienceRequestBody

client.Features.ListFeaturesAsync(ListFeaturesRequest { ... }) -> ListFeaturesResponse

🔌 Usage

await client.Features.ListFeaturesAsync(new ListFeaturesRequest());

⚙️ Parameters

request: ListFeaturesRequest

client.Features.CreateFeatureAsync(CreateFeatureRequestBody { ... }) -> CreateFeatureResponse

🔌 Usage

await client.Features.CreateFeatureAsync(
    new CreateFeatureRequestBody
    {
        Description = "description",
        FeatureType = CreateFeatureRequestBodyFeatureType.Boolean,
        Name = "name",
    }
);

⚙️ Parameters

request: CreateFeatureRequestBody

client.Features.GetFeatureAsync(featureId) -> GetFeatureResponse

🔌 Usage

await client.Features.GetFeatureAsync("feature_id");

⚙️ Parameters

featureId: string — feature_id

client.Features.UpdateFeatureAsync(featureId, UpdateFeatureRequestBody { ... }) -> UpdateFeatureResponse

🔌 Usage

await client.Features.UpdateFeatureAsync("feature_id", new UpdateFeatureRequestBody());

⚙️ Parameters

featureId: string — feature_id

request: UpdateFeatureRequestBody

client.Features.DeleteFeatureAsync(featureId) -> DeleteFeatureResponse

🔌 Usage

await client.Features.DeleteFeatureAsync("feature_id");

⚙️ Parameters

featureId: string — feature_id

client.Features.CountFeaturesAsync(CountFeaturesRequest { ... }) -> CountFeaturesResponse

🔌 Usage

await client.Features.CountFeaturesAsync(new CountFeaturesRequest());

⚙️ Parameters

request: CountFeaturesRequest

client.Features.ListFlagsAsync(ListFlagsRequest { ... }) -> ListFlagsResponse

🔌 Usage

await client.Features.ListFlagsAsync(new ListFlagsRequest());

⚙️ Parameters

request: ListFlagsRequest

client.Features.CreateFlagAsync(CreateFlagRequestBody { ... }) -> CreateFlagResponse

🔌 Usage

await client.Features.CreateFlagAsync(
    new CreateFlagRequestBody
    {
        DefaultValue = true,
        Description = "description",
        FlagType = "flag_type",
        Key = "key",
        Name = "name",
    }
);

⚙️ Parameters

request: CreateFlagRequestBody

client.Features.GetFlagAsync(flagId) -> GetFlagResponse

🔌 Usage

await client.Features.GetFlagAsync("flag_id");

⚙️ Parameters

flagId: string — flag_id

client.Features.UpdateFlagAsync(flagId, CreateFlagRequestBody { ... }) -> UpdateFlagResponse

🔌 Usage

await client.Features.UpdateFlagAsync(
    "flag_id",
    new CreateFlagRequestBody
    {
        DefaultValue = true,
        Description = "description",
        FlagType = "flag_type",
        Key = "key",
        Name = "name",
    }
);

⚙️ Parameters

flagId: string — flag_id

request: CreateFlagRequestBody

client.Features.DeleteFlagAsync(flagId) -> DeleteFlagResponse

🔌 Usage

await client.Features.DeleteFlagAsync("flag_id");

⚙️ Parameters

flagId: string — flag_id

client.Features.UpdateFlagRulesAsync(flagId, UpdateFlagRulesRequestBody { ... }) -> UpdateFlagRulesResponse

🔌 Usage

await client.Features.UpdateFlagRulesAsync(
    "flag_id",
    new UpdateFlagRulesRequestBody
    {
        Rules = new List<CreateOrUpdateRuleRequestBody>()
        {
            new CreateOrUpdateRuleRequestBody
            {
                ConditionGroups = new List<CreateOrUpdateConditionGroupRequestBody>()
                {
                    new CreateOrUpdateConditionGroupRequestBody
                    {
                        Conditions = new List<CreateOrUpdateConditionRequestBody>()
                        {
                            new CreateOrUpdateConditionRequestBody
                            {
                                ConditionType =
                                    CreateOrUpdateConditionRequestBodyConditionType.Company,
                                Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                                ResourceIds = new List<string>() { "resource_ids" },
                            },
                        },
                    },
                },
                Conditions = new List<CreateOrUpdateConditionRequestBody>()
                {
                    new CreateOrUpdateConditionRequestBody
                    {
                        ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                        Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                        ResourceIds = new List<string>() { "resource_ids" },
                    },
                },
                Name = "name",
                Priority = 1,
                Value = true,
            },
        },
    }
);

⚙️ Parameters

flagId: string — flag_id

request: UpdateFlagRulesRequestBody

client.Features.CheckFlagAsync(key, CheckFlagRequestBody { ... }) -> CheckFlagResponse

🔌 Usage

await client.Features.CheckFlagAsync("key", new CheckFlagRequestBody());

⚙️ Parameters

key: string — key

request: CheckFlagRequestBody

client.Features.CheckFlagsAsync(CheckFlagRequestBody { ... }) -> CheckFlagsResponse

🔌 Usage

await client.Features.CheckFlagsAsync(new CheckFlagRequestBody());

⚙️ Parameters

request: CheckFlagRequestBody

client.Features.CountFlagsAsync(CountFlagsRequest { ... }) -> CountFlagsResponse

🔌 Usage

await client.Features.CountFlagsAsync(new CountFlagsRequest());

⚙️ Parameters

request: CountFlagsRequest

billing

client.Billing.ListCouponsAsync(ListCouponsRequest { ... }) -> ListCouponsResponse

🔌 Usage

await client.Billing.ListCouponsAsync(new ListCouponsRequest());

⚙️ Parameters

request: ListCouponsRequest

client.Billing.UpsertBillingCouponAsync(CreateCouponRequestBody { ... }) -> UpsertBillingCouponResponse

🔌 Usage

await client.Billing.UpsertBillingCouponAsync(
    new CreateCouponRequestBody
    {
        AmountOff = 1,
        Duration = "duration",
        DurationInMonths = 1,
        ExternalId = "external_id",
        MaxRedemptions = 1,
        Name = "name",
        PercentOff = 1.1,
        TimesRedeemed = 1,
    }
);

⚙️ Parameters

request: CreateCouponRequestBody

client.Billing.UpsertBillingCustomerAsync(CreateBillingCustomerRequestBody { ... }) -> UpsertBillingCustomerResponse

🔌 Usage

await client.Billing.UpsertBillingCustomerAsync(
    new CreateBillingCustomerRequestBody
    {
        Email = "email",
        ExternalId = "external_id",
        FailedToImport = true,
        Meta = new Dictionary<string, string>() { { "key", "value" } },
        Name = "name",
    }
);

⚙️ Parameters

request: CreateBillingCustomerRequestBody

client.Billing.ListCustomersAsync(ListCustomersRequest { ... }) -> ListCustomersResponse

🔌 Usage

await client.Billing.ListCustomersAsync(new ListCustomersRequest());

⚙️ Parameters

request: ListCustomersRequest

client.Billing.CountCustomersAsync(CountCustomersRequest { ... }) -> CountCustomersResponse

🔌 Usage

await client.Billing.CountCustomersAsync(new CountCustomersRequest());

⚙️ Parameters

request: CountCustomersRequest

client.Billing.ListInvoicesAsync(ListInvoicesRequest { ... }) -> ListInvoicesResponse

🔌 Usage

await client.Billing.ListInvoicesAsync(
    new ListInvoicesRequest { CustomerExternalId = "customer_external_id" }
);

⚙️ Parameters

request: ListInvoicesRequest

client.Billing.UpsertInvoiceAsync(CreateInvoiceRequestBody { ... }) -> UpsertInvoiceResponse

🔌 Usage

await client.Billing.UpsertInvoiceAsync(
    new CreateInvoiceRequestBody
    {
        AmountDue = 1,
        AmountPaid = 1,
        AmountRemaining = 1,
        CollectionMethod = "collection_method",
        Currency = "currency",
        CustomerExternalId = "customer_external_id",
        Subtotal = 1,
    }
);

⚙️ Parameters

request: CreateInvoiceRequestBody

client.Billing.ListMetersAsync(ListMetersRequest { ... }) -> ListMetersResponse

🔌 Usage

await client.Billing.ListMetersAsync(new ListMetersRequest());

⚙️ Parameters

request: ListMetersRequest

client.Billing.UpsertBillingMeterAsync(CreateMeterRequestBody { ... }) -> UpsertBillingMeterResponse

🔌 Usage

await client.Billing.UpsertBillingMeterAsync(
    new CreateMeterRequestBody
    {
        DisplayName = "display_name",
        EventName = "event_name",
        EventPayloadKey = "event_payload_key",
        ExternalId = "external_id",
    }
);

⚙️ Parameters

request: CreateMeterRequestBody

client.Billing.ListPaymentMethodsAsync(ListPaymentMethodsRequest { ... }) -> ListPaymentMethodsResponse

🔌 Usage

await client.Billing.ListPaymentMethodsAsync(
    new ListPaymentMethodsRequest { CustomerExternalId = "customer_external_id" }
);

⚙️ Parameters

request: ListPaymentMethodsRequest

client.Billing.UpsertPaymentMethodAsync(CreatePaymentMethodRequestBody { ... }) -> UpsertPaymentMethodResponse

🔌 Usage

await client.Billing.UpsertPaymentMethodAsync(
    new CreatePaymentMethodRequestBody
    {
        CustomerExternalId = "customer_external_id",
        ExternalId = "external_id",
        PaymentMethodType = "payment_method_type",
    }
);

⚙️ Parameters

request: CreatePaymentMethodRequestBody

client.Billing.SearchBillingPricesAsync(SearchBillingPricesRequest { ... }) -> SearchBillingPricesResponse

🔌 Usage

await client.Billing.SearchBillingPricesAsync(new SearchBillingPricesRequest());

⚙️ Parameters

request: SearchBillingPricesRequest

client.Billing.UpsertBillingPriceAsync(CreateBillingPriceRequestBody { ... }) -> UpsertBillingPriceResponse

🔌 Usage

await client.Billing.UpsertBillingPriceAsync(
    new CreateBillingPriceRequestBody
    {
        Currency = "currency",
        Interval = "interval",
        IsActive = true,
        Price = 1,
        PriceExternalId = "price_external_id",
        ProductExternalId = "product_external_id",
        UsageType = CreateBillingPriceRequestBodyUsageType.Licensed,
    }
);

⚙️ Parameters

request: CreateBillingPriceRequestBody

client.Billing.ListProductPricesAsync(ListProductPricesRequest { ... }) -> ListProductPricesResponse

🔌 Usage

await client.Billing.ListProductPricesAsync(new ListProductPricesRequest());

⚙️ Parameters

request: ListProductPricesRequest

client.Billing.DeleteProductPriceAsync(billingId) -> DeleteProductPriceResponse

🔌 Usage

await client.Billing.DeleteProductPriceAsync("billing_id");

⚙️ Parameters

billingId: string — billing_id

client.Billing.UpsertBillingProductAsync(CreateBillingProductRequestBody { ... }) -> UpsertBillingProductResponse

🔌 Usage

await client.Billing.UpsertBillingProductAsync(
    new CreateBillingProductRequestBody
    {
        Currency = "currency",
        ExternalId = "external_id",
        Name = "name",
        Price = 1.1,
        Quantity = 1,
    }
);

⚙️ Parameters

request: CreateBillingProductRequestBody

client.Billing.ListBillingProductsAsync(ListBillingProductsRequest { ... }) -> ListBillingProductsResponse

🔌 Usage

await client.Billing.ListBillingProductsAsync(new ListBillingProductsRequest());

⚙️ Parameters

request: ListBillingProductsRequest

client.Billing.CountBillingProductsAsync(CountBillingProductsRequest { ... }) -> CountBillingProductsResponse

🔌 Usage

await client.Billing.CountBillingProductsAsync(new CountBillingProductsRequest());

⚙️ Parameters

request: CountBillingProductsRequest

client.Billing.UpsertBillingSubscriptionAsync(CreateBillingSubscriptionsRequestBody { ... }) -> UpsertBillingSubscriptionResponse

🔌 Usage

await client.Billing.UpsertBillingSubscriptionAsync(
    new CreateBillingSubscriptionsRequestBody
    {
        CancelAtPeriodEnd = true,
        Currency = "currency",
        CustomerExternalId = "customer_external_id",
        Discounts = new List<BillingSubscriptionDiscount>()
        {
            new BillingSubscriptionDiscount
            {
                CouponExternalId = "coupon_external_id",
                ExternalId = "external_id",
                IsActive = true,
                StartedAt = new DateTime(2024, 01, 15, 09, 30, 00, 000),
            },
        },
        ExpiredAt = new DateTime(2024, 01, 15, 09, 30, 00, 000),
        ProductExternalIds = new List<BillingProductPricing>()
        {
            new BillingProductPricing
            {
                Currency = "currency",
                Interval = "interval",
                Price = 1,
                PriceExternalId = "price_external_id",
                ProductExternalId = "product_external_id",
                Quantity = 1,
                UsageType = BillingProductPricingUsageType.Licensed,
            },
        },
        SubscriptionExternalId = "subscription_external_id",
        TotalPrice = 1,
    }
);

⚙️ Parameters

request: CreateBillingSubscriptionsRequestBody

checkout

client.Checkout.InternalAsync(ChangeSubscriptionInternalRequestBody { ... }) -> CheckoutInternalResponse

🔌 Usage

await client.Checkout.InternalAsync(
    new ChangeSubscriptionInternalRequestBody
    {
        AddOnIds = new List<UpdateAddOnRequestBody>()
        {
            new UpdateAddOnRequestBody { AddOnId = "add_on_id", PriceId = "price_id" },
        },
        CompanyId = "company_id",
        NewPlanId = "new_plan_id",
        NewPriceId = "new_price_id",
        PayInAdvance = new List<UpdatePayInAdvanceRequestBody>()
        {
            new UpdatePayInAdvanceRequestBody { PriceId = "price_id", Quantity = 1 },
        },
    }
);

⚙️ Parameters

request: ChangeSubscriptionInternalRequestBody

client.Checkout.GetCheckoutDataAsync(CheckoutDataRequestBody { ... }) -> GetCheckoutDataResponse

🔌 Usage

await client.Checkout.GetCheckoutDataAsync(
    new CheckoutDataRequestBody { CompanyId = "company_id" }
);

⚙️ Parameters

request: CheckoutDataRequestBody

client.Checkout.PreviewCheckoutInternalAsync(ChangeSubscriptionInternalRequestBody { ... }) -> PreviewCheckoutInternalResponse

🔌 Usage

await client.Checkout.PreviewCheckoutInternalAsync(
    new ChangeSubscriptionInternalRequestBody
    {
        AddOnIds = new List<UpdateAddOnRequestBody>()
        {
            new UpdateAddOnRequestBody { AddOnId = "add_on_id", PriceId = "price_id" },
        },
        CompanyId = "company_id",
        NewPlanId = "new_plan_id",
        NewPriceId = "new_price_id",
        PayInAdvance = new List<UpdatePayInAdvanceRequestBody>()
        {
            new UpdatePayInAdvanceRequestBody { PriceId = "price_id", Quantity = 1 },
        },
    }
);

⚙️ Parameters

request: ChangeSubscriptionInternalRequestBody

client.Checkout.UpdateCustomerSubscriptionTrialEndAsync(subscriptionId, UpdateTrialEndRequestBody { ... }) -> UpdateCustomerSubscriptionTrialEndResponse

🔌 Usage

await client.Checkout.UpdateCustomerSubscriptionTrialEndAsync(
    "subscription_id",
    new UpdateTrialEndRequestBody()
);

⚙️ Parameters

subscriptionId: string — subscription_id

request: UpdateTrialEndRequestBody

companies

client.Companies.ListCompaniesAsync(ListCompaniesRequest { ... }) -> ListCompaniesResponse

🔌 Usage

await client.Companies.ListCompaniesAsync(new ListCompaniesRequest());

⚙️ Parameters

request: ListCompaniesRequest

client.Companies.UpsertCompanyAsync(UpsertCompanyRequestBody { ... }) -> UpsertCompanyResponse

🔌 Usage

await client.Companies.UpsertCompanyAsync(
    new UpsertCompanyRequestBody { Keys = new Dictionary<string, string>() { { "key", "value" } } }
);

⚙️ Parameters

request: UpsertCompanyRequestBody

client.Companies.GetCompanyAsync(companyId) -> GetCompanyResponse

🔌 Usage

await client.Companies.GetCompanyAsync("company_id");

⚙️ Parameters

companyId: string — company_id

client.Companies.DeleteCompanyAsync(companyId) -> DeleteCompanyResponse

🔌 Usage

await client.Companies.DeleteCompanyAsync("company_id");

⚙️ Parameters

companyId: string — company_id

client.Companies.CountCompaniesAsync(CountCompaniesRequest { ... }) -> CountCompaniesResponse

🔌 Usage

await client.Companies.CountCompaniesAsync(new CountCompaniesRequest());

⚙️ Parameters

request: CountCompaniesRequest

client.Companies.CreateCompanyAsync(UpsertCompanyRequestBody { ... }) -> CreateCompanyResponse

🔌 Usage

await client.Companies.CreateCompanyAsync(
    new UpsertCompanyRequestBody { Keys = new Dictionary<string, string>() { { "key", "value" } } }
);

⚙️ Parameters

request: UpsertCompanyRequestBody

client.Companies.DeleteCompanyByKeysAsync(KeysRequestBody { ... }) -> DeleteCompanyByKeysResponse

🔌 Usage

await client.Companies.DeleteCompanyByKeysAsync(
    new KeysRequestBody { Keys = new Dictionary<string, string>() { { "key", "value" } } }
);

⚙️ Parameters

request: KeysRequestBody

client.Companies.LookupCompanyAsync(LookupCompanyRequest { ... }) -> LookupCompanyResponse

🔌 Usage

await client.Companies.LookupCompanyAsync(
    new LookupCompanyRequest
    {
        Keys = new Dictionary<string, object>()
        {
            {
                "keys",
                new Dictionary<object, object?>() { { "key", "value" } }
            },
        },
    }
);

⚙️ Parameters

request: LookupCompanyRequest

client.Companies.GetActiveDealsAsync(GetActiveDealsRequest { ... }) -> GetActiveDealsResponse

🔌 Usage

await client.Companies.GetActiveDealsAsync(
    new GetActiveDealsRequest { CompanyId = "company_id", DealStage = "deal_stage" }
);

⚙️ Parameters

request: GetActiveDealsRequest

client.Companies.ListCompanyMembershipsAsync(ListCompanyMembershipsRequest { ... }) -> ListCompanyMembershipsResponse

🔌 Usage

await client.Companies.ListCompanyMembershipsAsync(new ListCompanyMembershipsRequest());

⚙️ Parameters

request: ListCompanyMembershipsRequest

client.Companies.GetOrCreateCompanyMembershipAsync(GetOrCreateCompanyMembershipRequestBody { ... }) -> GetOrCreateCompanyMembershipResponse

🔌 Usage

await client.Companies.GetOrCreateCompanyMembershipAsync(
    new GetOrCreateCompanyMembershipRequestBody { CompanyId = "company_id", UserId = "user_id" }
);

⚙️ Parameters

request: GetOrCreateCompanyMembershipRequestBody

client.Companies.DeleteCompanyMembershipAsync(companyMembershipId) -> DeleteCompanyMembershipResponse

🔌 Usage

await client.Companies.DeleteCompanyMembershipAsync("company_membership_id");

⚙️ Parameters

companyMembershipId: string — company_membership_id

client.Companies.GetActiveCompanySubscriptionAsync(GetActiveCompanySubscriptionRequest { ... }) -> GetActiveCompanySubscriptionResponse

🔌 Usage

await client.Companies.GetActiveCompanySubscriptionAsync(new GetActiveCompanySubscriptionRequest());

⚙️ Parameters

request: GetActiveCompanySubscriptionRequest

client.Companies.UpsertCompanyTraitAsync(UpsertTraitRequestBody { ... }) -> UpsertCompanyTraitResponse

🔌 Usage

await client.Companies.UpsertCompanyTraitAsync(
    new UpsertTraitRequestBody
    {
        Keys = new Dictionary<string, string>() { { "key", "value" } },
        Trait = "trait",
    }
);

⚙️ Parameters

request: UpsertTraitRequestBody

client.Companies.ListEntityKeyDefinitionsAsync(ListEntityKeyDefinitionsRequest { ... }) -> ListEntityKeyDefinitionsResponse

🔌 Usage

await client.Companies.ListEntityKeyDefinitionsAsync(new ListEntityKeyDefinitionsRequest());

⚙️ Parameters

request: ListEntityKeyDefinitionsRequest

client.Companies.CountEntityKeyDefinitionsAsync(CountEntityKeyDefinitionsRequest { ... }) -> CountEntityKeyDefinitionsResponse

🔌 Usage

await client.Companies.CountEntityKeyDefinitionsAsync(new CountEntityKeyDefinitionsRequest());

⚙️ Parameters

request: CountEntityKeyDefinitionsRequest

client.Companies.ListEntityTraitDefinitionsAsync(ListEntityTraitDefinitionsRequest { ... }) -> ListEntityTraitDefinitionsResponse

🔌 Usage

await client.Companies.ListEntityTraitDefinitionsAsync(new ListEntityTraitDefinitionsRequest());

⚙️ Parameters

request: ListEntityTraitDefinitionsRequest

client.Companies.GetOrCreateEntityTraitDefinitionAsync(CreateEntityTraitDefinitionRequestBody { ... }) -> GetOrCreateEntityTraitDefinitionResponse

🔌 Usage

await client.Companies.GetOrCreateEntityTraitDefinitionAsync(
    new CreateEntityTraitDefinitionRequestBody
    {
        EntityType = CreateEntityTraitDefinitionRequestBodyEntityType.Company,
        Hierarchy = new List<string>() { "hierarchy" },
        TraitType = CreateEntityTraitDefinitionRequestBodyTraitType.Boolean,
    }
);

⚙️ Parameters

request: CreateEntityTraitDefinitionRequestBody

client.Companies.GetEntityTraitDefinitionAsync(entityTraitDefinitionId) -> GetEntityTraitDefinitionResponse

🔌 Usage

await client.Companies.GetEntityTraitDefinitionAsync("entity_trait_definition_id");

⚙️ Parameters

entityTraitDefinitionId: string — entity_trait_definition_id

client.Companies.UpdateEntityTraitDefinitionAsync(entityTraitDefinitionId, UpdateEntityTraitDefinitionRequestBody { ... }) -> UpdateEntityTraitDefinitionResponse

🔌 Usage

await client.Companies.UpdateEntityTraitDefinitionAsync(
    "entity_trait_definition_id",
    new UpdateEntityTraitDefinitionRequestBody
    {
        TraitType = UpdateEntityTraitDefinitionRequestBodyTraitType.Boolean,
    }
);

⚙️ Parameters

entityTraitDefinitionId: string — entity_trait_definition_id

request: UpdateEntityTraitDefinitionRequestBody

client.Companies.CountEntityTraitDefinitionsAsync(CountEntityTraitDefinitionsRequest { ... }) -> CountEntityTraitDefinitionsResponse

🔌 Usage

await client.Companies.CountEntityTraitDefinitionsAsync(new CountEntityTraitDefinitionsRequest());

⚙️ Parameters

request: CountEntityTraitDefinitionsRequest

client.Companies.GetEntityTraitValuesAsync(GetEntityTraitValuesRequest { ... }) -> GetEntityTraitValuesResponse

🔌 Usage

await client.Companies.GetEntityTraitValuesAsync(
    new GetEntityTraitValuesRequest { DefinitionId = "definition_id" }
);

⚙️ Parameters

request: GetEntityTraitValuesRequest

client.Companies.UpsertUserTraitAsync(UpsertTraitRequestBody { ... }) -> UpsertUserTraitResponse

🔌 Usage

await client.Companies.UpsertUserTraitAsync(
    new UpsertTraitRequestBody
    {
        Keys = new Dictionary<string, string>() { { "key", "value" } },
        Trait = "trait",
    }
);

⚙️ Parameters

request: UpsertTraitRequestBody

client.Companies.ListUsersAsync(ListUsersRequest { ... }) -> ListUsersResponse

🔌 Usage

await client.Companies.ListUsersAsync(new ListUsersRequest());

⚙️ Parameters

request: ListUsersRequest

client.Companies.UpsertUserAsync(UpsertUserRequestBody { ... }) -> UpsertUserResponse

🔌 Usage

await client.Companies.UpsertUserAsync(
    new UpsertUserRequestBody
    {
        Company = new Dictionary<string, string>() { { "key", "value" } },
        Keys = new Dictionary<string, string>() { { "key", "value" } },
    }
);

⚙️ Parameters

request: UpsertUserRequestBody

client.Companies.GetUserAsync(userId) -> GetUserResponse

🔌 Usage

await client.Companies.GetUserAsync("user_id");

⚙️ Parameters

userId: string — user_id

client.Companies.DeleteUserAsync(userId) -> DeleteUserResponse

🔌 Usage

await client.Companies.DeleteUserAsync("user_id");

⚙️ Parameters

userId: string — user_id

client.Companies.CountUsersAsync(CountUsersRequest { ... }) -> CountUsersResponse

🔌 Usage

await client.Companies.CountUsersAsync(new CountUsersRequest());

⚙️ Parameters

request: CountUsersRequest

client.Companies.CreateUserAsync(UpsertUserRequestBody { ... }) -> CreateUserResponse

🔌 Usage

await client.Companies.CreateUserAsync(
    new UpsertUserRequestBody
    {
        Company = new Dictionary<string, string>() { { "key", "value" } },
        Keys = new Dictionary<string, string>() { { "key", "value" } },
    }
);

⚙️ Parameters

request: UpsertUserRequestBody

client.Companies.DeleteUserByKeysAsync(KeysRequestBody { ... }) -> DeleteUserByKeysResponse

🔌 Usage

await client.Companies.DeleteUserByKeysAsync(
    new KeysRequestBody { Keys = new Dictionary<string, string>() { { "key", "value" } } }
);

⚙️ Parameters

request: KeysRequestBody

client.Companies.LookupUserAsync(LookupUserRequest { ... }) -> LookupUserResponse

🔌 Usage

await client.Companies.LookupUserAsync(
    new LookupUserRequest
    {
        Keys = new Dictionary<string, object>()
        {
            {
                "keys",
                new Dictionary<object, object?>() { { "key", "value" } }
            },
        },
    }
);

⚙️ Parameters

request: LookupUserRequest

entitlements

client.Entitlements.ListCompanyOverridesAsync(ListCompanyOverridesRequest { ... }) -> ListCompanyOverridesResponse

🔌 Usage

await client.Entitlements.ListCompanyOverridesAsync(new ListCompanyOverridesRequest());

⚙️ Parameters

request: ListCompanyOverridesRequest

client.Entitlements.CreateCompanyOverrideAsync(CreateCompanyOverrideRequestBody { ... }) -> CreateCompanyOverrideResponse

🔌 Usage

await client.Entitlements.CreateCompanyOverrideAsync(
    new CreateCompanyOverrideRequestBody
    {
        CompanyId = "company_id",
        FeatureId = "feature_id",
        ValueType = CreateCompanyOverrideRequestBodyValueType.Boolean,
    }
);

⚙️ Parameters

request: CreateCompanyOverrideRequestBody

client.Entitlements.GetCompanyOverrideAsync(companyOverrideId) -> GetCompanyOverrideResponse

🔌 Usage

await client.Entitlements.GetCompanyOverrideAsync("company_override_id");

⚙️ Parameters

companyOverrideId: string — company_override_id

client.Entitlements.UpdateCompanyOverrideAsync(companyOverrideId, UpdateCompanyOverrideRequestBody { ... }) -> UpdateCompanyOverrideResponse

🔌 Usage

await client.Entitlements.UpdateCompanyOverrideAsync(
    "company_override_id",
    new UpdateCompanyOverrideRequestBody
    {
        ValueType = UpdateCompanyOverrideRequestBodyValueType.Boolean,
    }
);

⚙️ Parameters

companyOverrideId: string — company_override_id

request: UpdateCompanyOverrideRequestBody

client.Entitlements.DeleteCompanyOverrideAsync(companyOverrideId) -> DeleteCompanyOverrideResponse

🔌 Usage

await client.Entitlements.DeleteCompanyOverrideAsync("company_override_id");

⚙️ Parameters

companyOverrideId: string — company_override_id

client.Entitlements.CountCompanyOverridesAsync(CountCompanyOverridesRequest { ... }) -> CountCompanyOverridesResponse

🔌 Usage

await client.Entitlements.CountCompanyOverridesAsync(new CountCompanyOverridesRequest());

⚙️ Parameters

request: CountCompanyOverridesRequest

client.Entitlements.ListFeatureCompaniesAsync(ListFeatureCompaniesRequest { ... }) -> ListFeatureCompaniesResponse

🔌 Usage

await client.Entitlements.ListFeatureCompaniesAsync(
    new ListFeatureCompaniesRequest { FeatureId = "feature_id" }
);

⚙️ Parameters

request: ListFeatureCompaniesRequest

client.Entitlements.CountFeatureCompaniesAsync(CountFeatureCompaniesRequest { ... }) -> CountFeatureCompaniesResponse

🔌 Usage

await client.Entitlements.CountFeatureCompaniesAsync(
    new CountFeatureCompaniesRequest { FeatureId = "feature_id" }
);

⚙️ Parameters

request: CountFeatureCompaniesRequest

client.Entitlements.ListFeatureUsageAsync(ListFeatureUsageRequest { ... }) -> ListFeatureUsageResponse

🔌 Usage

await client.Entitlements.ListFeatureUsageAsync(new ListFeatureUsageRequest());

⚙️ Parameters

request: ListFeatureUsageRequest

client.Entitlements.CountFeatureUsageAsync(CountFeatureUsageRequest { ... }) -> CountFeatureUsageResponse

🔌 Usage

await client.Entitlements.CountFeatureUsageAsync(new CountFeatureUsageRequest());

⚙️ Parameters

request: CountFeatureUsageRequest

client.Entitlements.ListFeatureUsersAsync(ListFeatureUsersRequest { ... }) -> ListFeatureUsersResponse

🔌 Usage

await client.Entitlements.ListFeatureUsersAsync(
    new ListFeatureUsersRequest { FeatureId = "feature_id" }
);

⚙️ Parameters

request: ListFeatureUsersRequest

client.Entitlements.CountFeatureUsersAsync(CountFeatureUsersRequest { ... }) -> CountFeatureUsersResponse

🔌 Usage

await client.Entitlements.CountFeatureUsersAsync(
    new CountFeatureUsersRequest { FeatureId = "feature_id" }
);

⚙️ Parameters

request: CountFeatureUsersRequest

client.Entitlements.ListPlanEntitlementsAsync(ListPlanEntitlementsRequest { ... }) -> ListPlanEntitlementsResponse

🔌 Usage

await client.Entitlements.ListPlanEntitlementsAsync(new ListPlanEntitlementsRequest());

⚙️ Parameters

request: ListPlanEntitlementsRequest

client.Entitlements.CreatePlanEntitlementAsync(CreatePlanEntitlementRequestBody { ... }) -> CreatePlanEntitlementResponse

🔌 Usage

await client.Entitlements.CreatePlanEntitlementAsync(
    new CreatePlanEntitlementRequestBody
    {
        FeatureId = "feature_id",
        PlanId = "plan_id",
        ValueType = CreatePlanEntitlementRequestBodyValueType.Boolean,
    }
);

⚙️ Parameters

request: CreatePlanEntitlementRequestBody

client.Entitlements.GetPlanEntitlementAsync(planEntitlementId) -> GetPlanEntitlementResponse

🔌 Usage

await client.Entitlements.GetPlanEntitlementAsync("plan_entitlement_id");

⚙️ Parameters

planEntitlementId: string — plan_entitlement_id

client.Entitlements.UpdatePlanEntitlementAsync(planEntitlementId, UpdatePlanEntitlementRequestBody { ... }) -> UpdatePlanEntitlementResponse

🔌 Usage

await client.Entitlements.UpdatePlanEntitlementAsync(
    "plan_entitlement_id",
    new UpdatePlanEntitlementRequestBody
    {
        ValueType = UpdatePlanEntitlementRequestBodyValueType.Boolean,
    }
);

⚙️ Parameters

planEntitlementId: string — plan_entitlement_id

request: UpdatePlanEntitlementRequestBody

client.Entitlements.DeletePlanEntitlementAsync(planEntitlementId) -> DeletePlanEntitlementResponse

🔌 Usage

await client.Entitlements.DeletePlanEntitlementAsync("plan_entitlement_id");

⚙️ Parameters

planEntitlementId: string — plan_entitlement_id

client.Entitlements.CountPlanEntitlementsAsync(CountPlanEntitlementsRequest { ... }) -> CountPlanEntitlementsResponse

🔌 Usage

await client.Entitlements.CountPlanEntitlementsAsync(new CountPlanEntitlementsRequest());

⚙️ Parameters

request: CountPlanEntitlementsRequest

client.Entitlements.GetFeatureUsageByCompanyAsync(GetFeatureUsageByCompanyRequest { ... }) -> GetFeatureUsageByCompanyResponse

🔌 Usage

await client.Entitlements.GetFeatureUsageByCompanyAsync(
    new GetFeatureUsageByCompanyRequest
    {
        Keys = new Dictionary<string, object>()
        {
            {
                "keys",
                new Dictionary<object, object?>() { { "key", "value" } }
            },
        },
    }
);

⚙️ Parameters

request: GetFeatureUsageByCompanyRequest

plans

client.Plans.UpdateCompanyPlansAsync(companyPlanId, UpdateCompanyPlansRequestBody { ... }) -> UpdateCompanyPlansResponse

🔌 Usage

await client.Plans.UpdateCompanyPlansAsync(
    "company_plan_id",
    new UpdateCompanyPlansRequestBody { AddOnIds = new List<string>() { "add_on_ids" } }
);

⚙️ Parameters

companyPlanId: string — company_plan_id

request: UpdateCompanyPlansRequestBody

client.Plans.GetAudienceAsync(planAudienceId) -> GetAudienceResponse

🔌 Usage

await client.Plans.GetAudienceAsync("plan_audience_id");

⚙️ Parameters

planAudienceId: string — plan_audience_id

client.Plans.UpdateAudienceAsync(planAudienceId, UpdateAudienceRequestBody { ... }) -> UpdateAudienceResponse

🔌 Usage

await client.Plans.UpdateAudienceAsync(
    "plan_audience_id",
    new UpdateAudienceRequestBody
    {
        ConditionGroups = new List<CreateOrUpdateConditionGroupRequestBody>()
        {
            new CreateOrUpdateConditionGroupRequestBody
            {
                Conditions = new List<CreateOrUpdateConditionRequestBody>()
                {
                    new CreateOrUpdateConditionRequestBody
                    {
                        ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                        Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                        ResourceIds = new List<string>() { "resource_ids" },
                    },
                },
            },
        },
        Conditions = new List<CreateOrUpdateConditionRequestBody>()
        {
            new CreateOrUpdateConditionRequestBody
            {
                ConditionType = CreateOrUpdateConditionRequestBodyConditionType.Company,
                Operator = CreateOrUpdateConditionRequestBodyOperator.Eq,
                ResourceIds = new List<string>() { "resource_ids" },
            },
        },
    }
);

⚙️ Parameters

planAudienceId: string — plan_audience_id

request: UpdateAudienceRequestBody

client.Plans.DeleteAudienceAsync(planAudienceId) -> DeleteAudienceResponse

🔌 Usage

await client.Plans.DeleteAudienceAsync("plan_audience_id");

⚙️ Parameters

planAudienceId: string — plan_audience_id

client.Plans.ListPlansAsync(ListPlansRequest { ... }) -> ListPlansResponse

🔌 Usage

await client.Plans.ListPlansAsync(new ListPlansRequest());

⚙️ Parameters

request: ListPlansRequest

client.Plans.CreatePlanAsync(CreatePlanRequestBody { ... }) -> CreatePlanResponse

🔌 Usage

await client.Plans.CreatePlanAsync(
    new CreatePlanRequestBody
    {
        Description = "description",
        Name = "name",
        PlanType = CreatePlanRequestBodyPlanType.Plan,
    }
);

⚙️ Parameters

request: CreatePlanRequestBody

client.Plans.GetPlanAsync(planId) -> GetPlanResponse

🔌 Usage

await client.Plans.GetPlanAsync("plan_id");

⚙️ Parameters

planId: string — plan_id

client.Plans.UpdatePlanAsync(planId, UpdatePlanRequestBody { ... }) -> UpdatePlanResponse

🔌 Usage

await client.Plans.UpdatePlanAsync("plan_id", new UpdatePlanRequestBody { Name = "name" });

⚙️ Parameters

planId: string — plan_id

request: UpdatePlanRequestBody

client.Plans.DeletePlanAsync(planId) -> DeletePlanResponse

🔌 Usage

await client.Plans.DeletePlanAsync("plan_id");

⚙️ Parameters

planId: string — plan_id

client.Plans.UpsertBillingProductPlanAsync(planId, UpsertBillingProductRequestBody { ... }) -> UpsertBillingProductPlanResponse

🔌 Usage

await client.Plans.UpsertBillingProductPlanAsync(
    "plan_id",
    new UpsertBillingProductRequestBody { IsFreePlan = true, IsTrialable = true }
);

⚙️ Parameters

planId: string — plan_id

request: UpsertBillingProductRequestBody

client.Plans.CountPlansAsync(CountPlansRequest { ... }) -> CountPlansResponse

🔌 Usage

await client.Plans.CountPlansAsync(new CountPlansRequest());

⚙️ Parameters

request: CountPlansRequest

components

client.Components.ListComponentsAsync(ListComponentsRequest { ... }) -> ListComponentsResponse

🔌 Usage

await client.Components.ListComponentsAsync(new ListComponentsRequest());

⚙️ Parameters

request: ListComponentsRequest

client.Components.CreateComponentAsync(CreateComponentRequestBody { ... }) -> CreateComponentResponse

🔌 Usage

await client.Components.CreateComponentAsync(
    new CreateComponentRequestBody
    {
        EntityType = CreateComponentRequestBodyEntityType.Entitlement,
        Name = "name",
    }
);

⚙️ Parameters

request: CreateComponentRequestBody

client.Components.GetComponentAsync(componentId) -> GetComponentResponse

🔌 Usage

await client.Components.GetComponentAsync("component_id");

⚙️ Parameters

componentId: string — component_id

client.Components.UpdateComponentAsync(componentId, UpdateComponentRequestBody { ... }) -> UpdateComponentResponse

🔌 Usage

await client.Components.UpdateComponentAsync("component_id", new UpdateComponentRequestBody());

⚙️ Parameters

componentId: string — component_id

request: UpdateComponentRequestBody

client.Components.DeleteComponentAsync(componentId) -> DeleteComponentResponse

🔌 Usage

await client.Components.DeleteComponentAsync("component_id");

⚙️ Parameters

componentId: string — component_id

client.Components.CountComponentsAsync(CountComponentsRequest { ... }) -> CountComponentsResponse

🔌 Usage

await client.Components.CountComponentsAsync(new CountComponentsRequest());

⚙️ Parameters

request: CountComponentsRequest

client.Components.PreviewComponentDataAsync(PreviewComponentDataRequest { ... }) -> PreviewComponentDataResponse

🔌 Usage

await client.Components.PreviewComponentDataAsync(new PreviewComponentDataRequest());

⚙️ Parameters

request: PreviewComponentDataRequest

crm

client.Crm.UpsertDealLineItemAssociationAsync(CreateCrmDealLineItemAssociationRequestBody { ... }) -> UpsertDealLineItemAssociationResponse

🔌 Usage

await client.Crm.UpsertDealLineItemAssociationAsync(
    new CreateCrmDealLineItemAssociationRequestBody
    {
        DealExternalId = "deal_external_id",
        LineItemExternalId = "line_item_external_id",
    }
);

⚙️ Parameters

request: CreateCrmDealLineItemAssociationRequestBody

client.Crm.UpsertLineItemAsync(CreateCrmLineItemRequestBody { ... }) -> UpsertLineItemResponse

🔌 Usage

await client.Crm.UpsertLineItemAsync(
    new CreateCrmLineItemRequestBody
    {
        Amount = "amount",
        Interval = "interval",
        LineItemExternalId = "line_item_external_id",
        ProductExternalId = "product_external_id",
        Quantity = 1,
    }
);

⚙️ Parameters

request: CreateCrmLineItemRequestBody

client.Crm.UpsertCrmDealAsync(CreateCrmDealRequestBody { ... }) -> UpsertCrmDealResponse

🔌 Usage

await client.Crm.UpsertCrmDealAsync(
    new CreateCrmDealRequestBody
    {
        CrmCompanyKey = "crm_company_key",
        CrmType = "crm_type",
        DealExternalId = "deal_external_id",
    }
);

⚙️ Parameters

request: CreateCrmDealRequestBody

client.Crm.ListCrmProductsAsync(ListCrmProductsRequest { ... }) -> ListCrmProductsResponse

🔌 Usage

await client.Crm.ListCrmProductsAsync(new ListCrmProductsRequest());

⚙️ Parameters

request: ListCrmProductsRequest

client.Crm.UpsertCrmProductAsync(CreateCrmProductRequestBody { ... }) -> UpsertCrmProductResponse

🔌 Usage

await client.Crm.UpsertCrmProductAsync(
    new CreateCrmProductRequestBody
    {
        Currency = "currency",
        Description = "description",
        ExternalId = "external_id",
        Interval = "interval",
        Name = "name",
        Price = "price",
        Quantity = 1,
        Sku = "sku",
    }
);

⚙️ Parameters

request: CreateCrmProductRequestBody

events

client.Events.CreateEventBatchAsync(CreateEventBatchRequestBody { ... }) -> CreateEventBatchResponse

🔌 Usage

await client.Events.CreateEventBatchAsync(
    new CreateEventBatchRequestBody
    {
        Events = new List<CreateEventRequestBody>()
        {
            new CreateEventRequestBody { EventType = CreateEventRequestBodyEventType.Identify },
        },
    }
);

⚙️ Parameters

request: CreateEventBatchRequestBody

client.Events.GetEventSummariesAsync(GetEventSummariesRequest { ... }) -> GetEventSummariesResponse

🔌 Usage

await client.Events.GetEventSummariesAsync(new GetEventSummariesRequest());

⚙️ Parameters

request: GetEventSummariesRequest

client.Events.ListEventsAsync(ListEventsRequest { ... }) -> ListEventsResponse

🔌 Usage

await client.Events.ListEventsAsync(new ListEventsRequest());

⚙️ Parameters

request: ListEventsRequest

client.Events.CreateEventAsync(CreateEventRequestBody { ... }) -> CreateEventResponse

🔌 Usage

await client.Events.CreateEventAsync(
    new CreateEventRequestBody { EventType = CreateEventRequestBodyEventType.Identify }
);

⚙️ Parameters

request: CreateEventRequestBody

client.Events.GetEventAsync(eventId) -> GetEventResponse

🔌 Usage

await client.Events.GetEventAsync("event_id");

⚙️ Parameters

eventId: string — event_id

client.Events.GetSegmentIntegrationStatusAsync() -> GetSegmentIntegrationStatusResponse

🔌 Usage

await client.Events.GetSegmentIntegrationStatusAsync();

plangroups

client.Plangroups.GetPlanGroupAsync() -> GetPlanGroupResponse

🔌 Usage

await client.Plangroups.GetPlanGroupAsync();
client.Plangroups.CreatePlanGroupAsync(CreatePlanGroupRequestBody { ... }) -> CreatePlanGroupResponse

🔌 Usage

await client.Plangroups.CreatePlanGroupAsync(
    new CreatePlanGroupRequestBody
    {
        AddOnIds = new List<string>() { "add_on_ids" },
        PlanIds = new List<string>() { "plan_ids" },
    }
);

⚙️ Parameters

request: CreatePlanGroupRequestBody

client.Plangroups.UpdatePlanGroupAsync(planGroupId, UpdatePlanGroupRequestBody { ... }) -> UpdatePlanGroupResponse

🔌 Usage

await client.Plangroups.UpdatePlanGroupAsync(
    "plan_group_id",
    new UpdatePlanGroupRequestBody
    {
        AddOnIds = new List<string>() { "add_on_ids" },
        PlanIds = new List<string>() { "plan_ids" },
    }
);

⚙️ Parameters

planGroupId: string — plan_group_id

request: UpdatePlanGroupRequestBody

accesstokens

client.Accesstokens.IssueTemporaryAccessTokenAsync(IssueTemporaryAccessTokenRequestBody { ... }) -> IssueTemporaryAccessTokenResponse

🔌 Usage

await client.Accesstokens.IssueTemporaryAccessTokenAsync(
    new IssueTemporaryAccessTokenRequestBody
    {
        Lookup = new Dictionary<string, string>() { { "key", "value" } },
        ResourceType = "resource_type",
    }
);

⚙️ Parameters

request: IssueTemporaryAccessTokenRequestBody

webhooks

client.Webhooks.ListWebhookEventsAsync(ListWebhookEventsRequest { ... }) -> ListWebhookEventsResponse

🔌 Usage

await client.Webhooks.ListWebhookEventsAsync(new ListWebhookEventsRequest());

⚙️ Parameters

request: ListWebhookEventsRequest

client.Webhooks.GetWebhookEventAsync(webhookEventId) -> GetWebhookEventResponse

🔌 Usage

await client.Webhooks.GetWebhookEventAsync("webhook_event_id");

⚙️ Parameters

webhookEventId: string — webhook_event_id

client.Webhooks.CountWebhookEventsAsync(CountWebhookEventsRequest { ... }) -> CountWebhookEventsResponse

🔌 Usage

await client.Webhooks.CountWebhookEventsAsync(new CountWebhookEventsRequest());

⚙️ Parameters

request: CountWebhookEventsRequest

client.Webhooks.ListWebhooksAsync(ListWebhooksRequest { ... }) -> ListWebhooksResponse

🔌 Usage

await client.Webhooks.ListWebhooksAsync(new ListWebhooksRequest());

⚙️ Parameters

request: ListWebhooksRequest

client.Webhooks.CreateWebhookAsync(CreateWebhookRequestBody { ... }) -> CreateWebhookResponse

🔌 Usage

await client.Webhooks.CreateWebhookAsync(
    new CreateWebhookRequestBody
    {
        Name = "name",
        RequestTypes = new List<CreateWebhookRequestBodyRequestTypesItem>()
        {
            CreateWebhookRequestBodyRequestTypesItem.CompanyUpdated,
        },
        Url = "url",
    }
);

⚙️ Parameters

request: CreateWebhookRequestBody

client.Webhooks.GetWebhookAsync(webhookId) -> GetWebhookResponse

🔌 Usage

await client.Webhooks.GetWebhookAsync("webhook_id");

⚙️ Parameters

webhookId: string — webhook_id

client.Webhooks.UpdateWebhookAsync(webhookId, UpdateWebhookRequestBody { ... }) -> UpdateWebhookResponse

🔌 Usage

await client.Webhooks.UpdateWebhookAsync("webhook_id", new UpdateWebhookRequestBody());

⚙️ Parameters

webhookId: string — webhook_id

request: UpdateWebhookRequestBody

client.Webhooks.DeleteWebhookAsync(webhookId) -> DeleteWebhookResponse

🔌 Usage

await client.Webhooks.DeleteWebhookAsync("webhook_id");

⚙️ Parameters

webhookId: string — webhook_id

client.Webhooks.CountWebhooksAsync(CountWebhooksRequest { ... }) -> CountWebhooksResponse

🔌 Usage

await client.Webhooks.CountWebhooksAsync(new CountWebhooksRequest());

⚙️ Parameters

request: CountWebhooksRequest