// Generated Beladed C# API client 0.1.0-beta.1. // API version: 2026-07-11; operations: 283; contract: sha256:478f3385fbfb86f845f794fe3e71f4f6411059faab2ad4605087d4e219bc6377. // Source: reviewed public OpenAPI only. Unlisted operations are intentionally unavailable. using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Text.Json; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; namespace Beladed; public sealed class BeladedClient { private sealed record Operation(string OperationId, string Method, string Path, string CredentialType, bool OriginRestricted); private static readonly IReadOnlyDictionary BaseUrls = new Dictionary { ["development"] = "https://api.beladed.dev", ["production"] = "https://api.beladed.com", }; private static readonly Regex PathParameter = new("\\{([^}]+)\\}", RegexOptions.Compiled); private static readonly Regex CredentialQueryKey = new("^(?:api[_-]?key|public[_-]?key|secret[_-]?key|access[_-]?token|session[_-]?token|client[_-]?secret)$", RegexOptions.Compiled | RegexOptions.IgnoreCase); private static readonly IReadOnlyDictionary Operations = new Dictionary { ["accountsAccountGeneralForgotPost"] = new("accountsAccountGeneralForgotPost", "POST", "/api/account/general/forgot", "public", false), ["accountsAccountGeneralGetAccountidGet"] = new("accountsAccountGeneralGetAccountidGet", "GET", "/api/account/general/get/{accountId}", "authenticated_session", false), ["accountsAccountGeneralGetSessionsGet"] = new("accountsAccountGeneralGetSessionsGet", "GET", "/api/account/general/get-sessions", "authenticated_session", false), ["accountsAccountGeneralLogoutDevicePost"] = new("accountsAccountGeneralLogoutDevicePost", "POST", "/api/account/general/logout-device", "authenticated_session", false), ["accountsAccountGeneralLogoutEverywherePost"] = new("accountsAccountGeneralLogoutEverywherePost", "POST", "/api/account/general/logout-everywhere", "authenticated_session", false), ["accountsAccountGeneralLogoutPost"] = new("accountsAccountGeneralLogoutPost", "POST", "/api/account/general/logout", "authenticated_session", false), ["accountsAccountGeneralResetPut"] = new("accountsAccountGeneralResetPut", "PUT", "/api/account/general/reset", "authenticated_session", false), ["accountsAccountGeneralSessionGet"] = new("accountsAccountGeneralSessionGet", "GET", "/api/account/general/session", "authenticated_session", false), ["accountsAccountGeneralSetPasswordPost"] = new("accountsAccountGeneralSetPasswordPost", "POST", "/api/account/general/set-password", "authenticated_session", false), ["accountsCreate"] = new("accountsCreate", "POST", "/api/account/general/create", "public", false), ["accountsListTypes"] = new("accountsListTypes", "GET", "/api/account/types/get", "public", false), ["accountsLogin"] = new("accountsLogin", "POST", "/api/account/general/login", "public", false), ["adsAdsAdvertisementCreatePost"] = new("adsAdsAdvertisementCreatePost", "POST", "/api/ads/advertisement/create", "secret_key", false), ["adsAdsAdvertisementGetPost"] = new("adsAdsAdvertisementGetPost", "POST", "/api/ads/advertisement/get", "secret_key", false), ["adsAdsAttributionAllGet"] = new("adsAdsAttributionAllGet", "GET", "/api/ads/attribution/all", "secret_key", false), ["adsAdsAttributionCreatePost"] = new("adsAdsAttributionCreatePost", "POST", "/api/ads/attribution/create", "secret_key", false), ["adsAdsAttributionDeleteAttributionidDelete"] = new("adsAdsAttributionDeleteAttributionidDelete", "DELETE", "/api/ads/attribution/delete/{attributionId}", "secret_key", false), ["adsAdsAttributionGetAttributionidGet"] = new("adsAdsAttributionGetAttributionidGet", "GET", "/api/ads/attribution/get/{attributionId}", "secret_key", false), ["adsAdsAttributionUpdateAttributionidPut"] = new("adsAdsAttributionUpdateAttributionidPut", "PUT", "/api/ads/attribution/update/{attributionId}", "secret_key", false), ["adsAdsBiddingAllGet"] = new("adsAdsBiddingAllGet", "GET", "/api/ads/bidding/all", "secret_key", false), ["adsAdsBiddingCreatePost"] = new("adsAdsBiddingCreatePost", "POST", "/api/ads/bidding/create", "secret_key", false), ["adsAdsInteractionCreatePost"] = new("adsAdsInteractionCreatePost", "POST", "/api/ads/interaction/create", "secret_key", false), ["adsAdsInventoryAllGet"] = new("adsAdsInventoryAllGet", "GET", "/api/ads/inventory/all", "secret_key", false), ["adsAdsInventoryCreatePost"] = new("adsAdsInventoryCreatePost", "POST", "/api/ads/inventory/create", "secret_key", false), ["adsAdsPlacementAllGet"] = new("adsAdsPlacementAllGet", "GET", "/api/ads/placement/all", "secret_key", false), ["adsAdsPlacementChoicePlacementidPost"] = new("adsAdsPlacementChoicePlacementidPost", "POST", "/api/ads/placement/choice/{placementId}", "public", false), ["adsAdsPlacementInteractPlacementidPost"] = new("adsAdsPlacementInteractPlacementidPost", "POST", "/api/ads/placement/interact/{placementId}", "public", false), ["adsAdsPlacementVotePlacementidPost"] = new("adsAdsPlacementVotePlacementidPost", "POST", "/api/ads/placement/vote/{placementId}", "public", false), ["adsCreatePlacement"] = new("adsCreatePlacement", "POST", "/api/ads/placement/create", "secret_key", false), ["embedsGet"] = new("embedsGet", "POST", "/api/vote/embed/get", "publishable_key", true), ["embedsList"] = new("embedsList", "POST", "/api/vote/embed/all", "publishable_key", true), ["embedsVoteEmbedCreatePost"] = new("embedsVoteEmbedCreatePost", "POST", "/api/vote/embed/create", "secret_key", false), ["embedsVoteEmbedDeletePost"] = new("embedsVoteEmbedDeletePost", "POST", "/api/vote/embed/delete", "secret_key", false), ["embedsVoteEmbedUpdatePut"] = new("embedsVoteEmbedUpdatePut", "PUT", "/api/vote/embed/update", "secret_key", false), ["eventsCreate"] = new("eventsCreate", "POST", "/api/events/general/create", "secret_key", false), ["eventsEventsGeneralDeletePost"] = new("eventsEventsGeneralDeletePost", "POST", "/api/events/general/delete", "secret_key", false), ["eventsGetPublic"] = new("eventsGetPublic", "GET", "/api/events/general/get", "public", false), ["eventsListPublic"] = new("eventsListPublic", "GET", "/api/events/general/all", "public", false), ["eventsUpdate"] = new("eventsUpdate", "PUT", "/api/events/general/update", "secret_key", false), ["livestreamCreate"] = new("livestreamCreate", "POST", "/api/video/stream/create", "secret_key", false), ["livestreamGet"] = new("livestreamGet", "GET", "/api/video/stream/get", "secret_key", false), ["livestreamVideoCategoryAllGet"] = new("livestreamVideoCategoryAllGet", "GET", "/api/video/category/all", "secret_key", false), ["livestreamVideoCategoryCreatePost"] = new("livestreamVideoCategoryCreatePost", "POST", "/api/video/category/create", "secret_key", false), ["livestreamVideoCategoryDeletePost"] = new("livestreamVideoCategoryDeletePost", "POST", "/api/video/category/delete", "secret_key", false), ["livestreamVideoCategoryGetGet"] = new("livestreamVideoCategoryGetGet", "GET", "/api/video/category/get", "secret_key", false), ["livestreamVideoCategoryUpdatePut"] = new("livestreamVideoCategoryUpdatePut", "PUT", "/api/video/category/update", "secret_key", false), ["livestreamVideoChannelAllGet"] = new("livestreamVideoChannelAllGet", "GET", "/api/video/channel/all", "secret_key", false), ["livestreamVideoChannelCreatePost"] = new("livestreamVideoChannelCreatePost", "POST", "/api/video/channel/create", "secret_key", false), ["livestreamVideoChannelDeletePost"] = new("livestreamVideoChannelDeletePost", "POST", "/api/video/channel/delete", "secret_key", false), ["livestreamVideoChannelGetGet"] = new("livestreamVideoChannelGetGet", "GET", "/api/video/channel/get", "secret_key", false), ["livestreamVideoChannelUpdatePut"] = new("livestreamVideoChannelUpdatePut", "PUT", "/api/video/channel/update", "secret_key", false), ["livestreamVideoDetailsAllGet"] = new("livestreamVideoDetailsAllGet", "GET", "/api/video/details/all", "secret_key", false), ["livestreamVideoDetailsCreatePost"] = new("livestreamVideoDetailsCreatePost", "POST", "/api/video/details/create", "secret_key", false), ["livestreamVideoDetailsDeletePost"] = new("livestreamVideoDetailsDeletePost", "POST", "/api/video/details/delete", "secret_key", false), ["livestreamVideoDetailsGetGet"] = new("livestreamVideoDetailsGetGet", "GET", "/api/video/details/get", "secret_key", false), ["livestreamVideoDetailsUpdatePut"] = new("livestreamVideoDetailsUpdatePut", "PUT", "/api/video/details/update", "secret_key", false), ["livestreamVideoEventCreatePost"] = new("livestreamVideoEventCreatePost", "POST", "/api/video/event/create", "secret_key", false), ["livestreamVideoEventDeletePost"] = new("livestreamVideoEventDeletePost", "POST", "/api/video/event/delete", "secret_key", false), ["livestreamVideoEventUpdatePut"] = new("livestreamVideoEventUpdatePut", "PUT", "/api/video/event/update", "secret_key", false), ["livestreamVideoStaticAllGet"] = new("livestreamVideoStaticAllGet", "GET", "/api/video/static/all", "secret_key", false), ["livestreamVideoStaticCreatePost"] = new("livestreamVideoStaticCreatePost", "POST", "/api/video/static/create", "secret_key", false), ["livestreamVideoStaticDeletePost"] = new("livestreamVideoStaticDeletePost", "POST", "/api/video/static/delete", "secret_key", false), ["livestreamVideoStaticGetGet"] = new("livestreamVideoStaticGetGet", "GET", "/api/video/static/get", "secret_key", false), ["livestreamVideoStaticUpdatePut"] = new("livestreamVideoStaticUpdatePut", "PUT", "/api/video/static/update", "secret_key", false), ["livestreamVideoStreamAllGet"] = new("livestreamVideoStreamAllGet", "GET", "/api/video/stream/all", "secret_key", false), ["livestreamVideoStreamCreateclipPost"] = new("livestreamVideoStreamCreateclipPost", "POST", "/api/video/stream/createClip", "secret_key", false), ["livestreamVideoStreamDeletePost"] = new("livestreamVideoStreamDeletePost", "POST", "/api/video/stream/delete", "secret_key", false), ["livestreamVideoStreamGetanalyticsPost"] = new("livestreamVideoStreamGetanalyticsPost", "POST", "/api/video/stream/getAnalytics", "secret_key", false), ["livestreamVideoStreamGetembedcodePost"] = new("livestreamVideoStreamGetembedcodePost", "POST", "/api/video/stream/getEmbedCode", "secret_key", false), ["livestreamVideoStreamGetstatusPost"] = new("livestreamVideoStreamGetstatusPost", "POST", "/api/video/stream/getStatus", "secret_key", false), ["livestreamVideoStreamUpdatePut"] = new("livestreamVideoStreamUpdatePut", "PUT", "/api/video/stream/update", "secret_key", false), ["livestreamVideoSubcategoryAllGet"] = new("livestreamVideoSubcategoryAllGet", "GET", "/api/video/subcategory/all", "secret_key", false), ["livestreamVideoSubcategoryCreatePost"] = new("livestreamVideoSubcategoryCreatePost", "POST", "/api/video/subcategory/create", "secret_key", false), ["livestreamVideoSubcategoryDeletePost"] = new("livestreamVideoSubcategoryDeletePost", "POST", "/api/video/subcategory/delete", "secret_key", false), ["livestreamVideoSubcategoryGetGet"] = new("livestreamVideoSubcategoryGetGet", "GET", "/api/video/subcategory/get", "secret_key", false), ["livestreamVideoSubcategoryUpdatePut"] = new("livestreamVideoSubcategoryUpdatePut", "PUT", "/api/video/subcategory/update", "secret_key", false), ["loyaltyCreateItem"] = new("loyaltyCreateItem", "POST", "/api/incentive/loyalty/create", "secret_key", false), ["loyaltyIncentiveLoyaltyAllGet"] = new("loyaltyIncentiveLoyaltyAllGet", "GET", "/api/incentive/loyalty/all", "secret_key", false), ["loyaltyIncentiveLoyaltyDeletePost"] = new("loyaltyIncentiveLoyaltyDeletePost", "POST", "/api/incentive/loyalty/delete", "secret_key", false), ["loyaltyIncentiveLoyaltyGetGet"] = new("loyaltyIncentiveLoyaltyGetGet", "GET", "/api/incentive/loyalty/get", "secret_key", false), ["loyaltyIncentiveLoyaltyUpdatePut"] = new("loyaltyIncentiveLoyaltyUpdatePut", "PUT", "/api/incentive/loyalty/update", "secret_key", false), ["loyaltyIncentivePromotionAllGet"] = new("loyaltyIncentivePromotionAllGet", "GET", "/api/incentive/promotion/all", "secret_key", false), ["loyaltyIncentivePromotionCreatePost"] = new("loyaltyIncentivePromotionCreatePost", "POST", "/api/incentive/promotion/create", "secret_key", false), ["loyaltyIncentivePromotionDeletePost"] = new("loyaltyIncentivePromotionDeletePost", "POST", "/api/incentive/promotion/delete", "secret_key", false), ["loyaltyIncentivePromotionGetGet"] = new("loyaltyIncentivePromotionGetGet", "GET", "/api/incentive/promotion/get", "secret_key", false), ["loyaltyIncentivePromotionUpdatePut"] = new("loyaltyIncentivePromotionUpdatePut", "PUT", "/api/incentive/promotion/update", "secret_key", false), ["loyaltyIncentiveRewardAllGet"] = new("loyaltyIncentiveRewardAllGet", "GET", "/api/incentive/reward/all", "secret_key", false), ["loyaltyIncentiveRewardCreatePost"] = new("loyaltyIncentiveRewardCreatePost", "POST", "/api/incentive/reward/create", "secret_key", false), ["loyaltyIncentiveRewardDeletePost"] = new("loyaltyIncentiveRewardDeletePost", "POST", "/api/incentive/reward/delete", "secret_key", false), ["loyaltyIncentiveRewardGetGet"] = new("loyaltyIncentiveRewardGetGet", "GET", "/api/incentive/reward/get", "secret_key", false), ["loyaltyIncentiveRewardUpdatePut"] = new("loyaltyIncentiveRewardUpdatePut", "PUT", "/api/incentive/reward/update", "secret_key", false), ["marketingCreateCampaign"] = new("marketingCreateCampaign", "POST", "/api/marketing/campaign/create", "secret_key", false), ["marketingMarketingAutomationCreatePost"] = new("marketingMarketingAutomationCreatePost", "POST", "/api/marketing/automation/create", "secret_key", false), ["marketingMarketingAutomationDeletePost"] = new("marketingMarketingAutomationDeletePost", "POST", "/api/marketing/automation/delete", "secret_key", false), ["marketingMarketingAutomationGetPost"] = new("marketingMarketingAutomationGetPost", "POST", "/api/marketing/automation/get", "secret_key", false), ["marketingMarketingAutomationUpdatePost"] = new("marketingMarketingAutomationUpdatePost", "POST", "/api/marketing/automation/update", "secret_key", false), ["marketingMarketingCampaignAllPost"] = new("marketingMarketingCampaignAllPost", "POST", "/api/marketing/campaign/all", "secret_key", false), ["marketingMarketingCampaignGetPost"] = new("marketingMarketingCampaignGetPost", "POST", "/api/marketing/campaign/get", "secret_key", false), ["marketingMarketingContactAllPost"] = new("marketingMarketingContactAllPost", "POST", "/api/marketing/contact/all", "secret_key", false), ["marketingMarketingContactCreatePost"] = new("marketingMarketingContactCreatePost", "POST", "/api/marketing/contact/create", "secret_key", false), ["marketingMarketingContactDeletePost"] = new("marketingMarketingContactDeletePost", "POST", "/api/marketing/contact/delete", "secret_key", false), ["marketingMarketingContactGetPost"] = new("marketingMarketingContactGetPost", "POST", "/api/marketing/contact/get", "secret_key", false), ["marketingMarketingContactUpdatePost"] = new("marketingMarketingContactUpdatePost", "POST", "/api/marketing/contact/update", "secret_key", false), ["marketingMarketingEmailsequenceCreatePost"] = new("marketingMarketingEmailsequenceCreatePost", "POST", "/api/marketing/emailSequence/create", "secret_key", false), ["marketingMarketingEmailsequenceDeletePost"] = new("marketingMarketingEmailsequenceDeletePost", "POST", "/api/marketing/emailSequence/delete", "secret_key", false), ["marketingMarketingEmailsequenceGetPost"] = new("marketingMarketingEmailsequenceGetPost", "POST", "/api/marketing/emailSequence/get", "secret_key", false), ["marketingMarketingIntegrationAllPost"] = new("marketingMarketingIntegrationAllPost", "POST", "/api/marketing/integration/all", "secret_key", false), ["marketingMarketingIntegrationCreatePost"] = new("marketingMarketingIntegrationCreatePost", "POST", "/api/marketing/integration/create", "secret_key", false), ["marketingMarketingIntegrationDeletePost"] = new("marketingMarketingIntegrationDeletePost", "POST", "/api/marketing/integration/delete", "secret_key", false), ["marketingMarketingIntegrationGetPost"] = new("marketingMarketingIntegrationGetPost", "POST", "/api/marketing/integration/get", "secret_key", false), ["marketingMarketingIntegrationUpdatePost"] = new("marketingMarketingIntegrationUpdatePost", "POST", "/api/marketing/integration/update", "secret_key", false), ["marketingMarketingLeadscoreGetPost"] = new("marketingMarketingLeadscoreGetPost", "POST", "/api/marketing/leadScore/get", "secret_key", false), ["marketingMarketingLeadscoreUpdatePost"] = new("marketingMarketingLeadscoreUpdatePost", "POST", "/api/marketing/leadScore/update", "secret_key", false), ["marketingMarketingSegmentAllPost"] = new("marketingMarketingSegmentAllPost", "POST", "/api/marketing/segment/all", "secret_key", false), ["marketingMarketingSegmentCreatePost"] = new("marketingMarketingSegmentCreatePost", "POST", "/api/marketing/segment/create", "secret_key", false), ["marketingMarketingSegmentDeletePost"] = new("marketingMarketingSegmentDeletePost", "POST", "/api/marketing/segment/delete", "secret_key", false), ["marketingMarketingSegmentGetPost"] = new("marketingMarketingSegmentGetPost", "POST", "/api/marketing/segment/get", "secret_key", false), ["marketingMarketingSegmentUpdatePost"] = new("marketingMarketingSegmentUpdatePost", "POST", "/api/marketing/segment/update", "secret_key", false), ["marketingMarketingTemplateAllPost"] = new("marketingMarketingTemplateAllPost", "POST", "/api/marketing/template/all", "secret_key", false), ["marketingMarketingTemplateCreatePost"] = new("marketingMarketingTemplateCreatePost", "POST", "/api/marketing/template/create", "secret_key", false), ["marketingMarketingTemplateDeletePost"] = new("marketingMarketingTemplateDeletePost", "POST", "/api/marketing/template/delete", "secret_key", false), ["marketingMarketingTemplateGetPost"] = new("marketingMarketingTemplateGetPost", "POST", "/api/marketing/template/get", "secret_key", false), ["marketingMarketingTemplateUpdatePost"] = new("marketingMarketingTemplateUpdatePost", "POST", "/api/marketing/template/update", "secret_key", false), ["pagesCreate"] = new("pagesCreate", "POST", "/api/pages/general/create", "secret_key", false), ["pagesCreateLead"] = new("pagesCreateLead", "POST", "/api/pages/leads/create", "public", false), ["pagesGetPublic"] = new("pagesGetPublic", "GET", "/api/pages/general/get", "public", false), ["pagesListPublic"] = new("pagesListPublic", "GET", "/api/pages/general/all", "public", false), ["pagesPagesGeneralAnalyticsGet"] = new("pagesPagesGeneralAnalyticsGet", "GET", "/api/pages/general/analytics", "secret_key", false), ["pagesPagesGeneralDeleteDelete"] = new("pagesPagesGeneralDeleteDelete", "DELETE", "/api/pages/general/delete", "secret_key", false), ["pagesPagesGeneralStatsGet"] = new("pagesPagesGeneralStatsGet", "GET", "/api/pages/general/stats", "secret_key", false), ["pagesPagesGeneralUpdatePut"] = new("pagesPagesGeneralUpdatePut", "PUT", "/api/pages/general/update", "secret_key", false), ["pagesPagesLeadsAllGet"] = new("pagesPagesLeadsAllGet", "GET", "/api/pages/leads/all", "public", false), ["pagesPagesLeadsDeleteDelete"] = new("pagesPagesLeadsDeleteDelete", "DELETE", "/api/pages/leads/delete", "secret_key", false), ["pagesPagesLeadsGetGet"] = new("pagesPagesLeadsGetGet", "GET", "/api/pages/leads/get", "public", false), ["pagesPagesLeadsUpdatePut"] = new("pagesPagesLeadsUpdatePut", "PUT", "/api/pages/leads/update", "secret_key", false), ["paymentsCreateCustomer"] = new("paymentsCreateCustomer", "POST", "/api/payment/customer/create", "secret_key", false), ["paymentsCreateLink"] = new("paymentsCreateLink", "POST", "/api/payment/link/create", "secret_key", false), ["paymentsCreateSubscription"] = new("paymentsCreateSubscription", "POST", "/api/payment/subscription/create", "secret_key", false), ["paymentsGetSubscription"] = new("paymentsGetSubscription", "POST", "/api/payment/subscription/get", "secret_key", false), ["paymentsGetTransaction"] = new("paymentsGetTransaction", "POST", "/api/payment/transaction/get", "secret_key", false), ["paymentsPaySShortidGet"] = new("paymentsPaySShortidGet", "GET", "/api/pay/s/{shortId}", "public", false), ["paymentsPayShortidGet"] = new("paymentsPayShortidGet", "GET", "/api/pay/{shortId}", "public", false), ["paymentsPaymentChargeAllPost"] = new("paymentsPaymentChargeAllPost", "POST", "/api/payment/charge/all", "secret_key", false), ["paymentsPaymentChargeCreatePost"] = new("paymentsPaymentChargeCreatePost", "POST", "/api/payment/charge/create", "secret_key", false), ["paymentsPaymentChargeDeletePost"] = new("paymentsPaymentChargeDeletePost", "POST", "/api/payment/charge/delete", "secret_key", false), ["paymentsPaymentChargeGetPost"] = new("paymentsPaymentChargeGetPost", "POST", "/api/payment/charge/get", "secret_key", false), ["paymentsPaymentChargeRefundPost"] = new("paymentsPaymentChargeRefundPost", "POST", "/api/payment/charge/refund", "secret_key", false), ["paymentsPaymentChargeReversePost"] = new("paymentsPaymentChargeReversePost", "POST", "/api/payment/charge/reverse", "secret_key", false), ["paymentsPaymentChargeUpdatePost"] = new("paymentsPaymentChargeUpdatePost", "POST", "/api/payment/charge/update", "secret_key", false), ["paymentsPaymentChargeUpdatePut"] = new("paymentsPaymentChargeUpdatePut", "PUT", "/api/payment/charge/update", "secret_key", false), ["paymentsPaymentCustomerAllPost"] = new("paymentsPaymentCustomerAllPost", "POST", "/api/payment/customer/all", "secret_key", false), ["paymentsPaymentCustomerDeletePost"] = new("paymentsPaymentCustomerDeletePost", "POST", "/api/payment/customer/delete", "secret_key", false), ["paymentsPaymentCustomerGetPost"] = new("paymentsPaymentCustomerGetPost", "POST", "/api/payment/customer/get", "secret_key", false), ["paymentsPaymentCustomerSearchPost"] = new("paymentsPaymentCustomerSearchPost", "POST", "/api/payment/customer/search", "secret_key", false), ["paymentsPaymentCustomerUpdatePost"] = new("paymentsPaymentCustomerUpdatePost", "POST", "/api/payment/customer/update", "secret_key", false), ["paymentsPaymentInvoiceChargePost"] = new("paymentsPaymentInvoiceChargePost", "POST", "/api/payment/invoice/charge", "secret_key", false), ["paymentsPaymentInvoiceCreatePost"] = new("paymentsPaymentInvoiceCreatePost", "POST", "/api/payment/invoice/create", "secret_key", false), ["paymentsPaymentInvoiceDeletePost"] = new("paymentsPaymentInvoiceDeletePost", "POST", "/api/payment/invoice/delete", "secret_key", false), ["paymentsPaymentInvoiceGetGet"] = new("paymentsPaymentInvoiceGetGet", "GET", "/api/payment/invoice/get", "secret_key", false), ["paymentsPaymentInvoiceGetallGet"] = new("paymentsPaymentInvoiceGetallGet", "GET", "/api/payment/invoice/getAll", "secret_key", false), ["paymentsPaymentInvoiceResendPost"] = new("paymentsPaymentInvoiceResendPost", "POST", "/api/payment/invoice/resend", "secret_key", false), ["paymentsPaymentInvoiceSearchGet"] = new("paymentsPaymentInvoiceSearchGet", "GET", "/api/payment/invoice/search", "secret_key", false), ["paymentsPaymentInvoiceSearchbycustomerGet"] = new("paymentsPaymentInvoiceSearchbycustomerGet", "GET", "/api/payment/invoice/searchByCustomer", "secret_key", false), ["paymentsPaymentInvoiceSearchbydaterangeGet"] = new("paymentsPaymentInvoiceSearchbydaterangeGet", "GET", "/api/payment/invoice/searchByDateRange", "secret_key", false), ["paymentsPaymentInvoiceSearchbystatusGet"] = new("paymentsPaymentInvoiceSearchbystatusGet", "GET", "/api/payment/invoice/searchByStatus", "secret_key", false), ["paymentsPaymentInvoiceSendPost"] = new("paymentsPaymentInvoiceSendPost", "POST", "/api/payment/invoice/send", "secret_key", false), ["paymentsPaymentInvoiceUpdatePost"] = new("paymentsPaymentInvoiceUpdatePost", "POST", "/api/payment/invoice/update", "secret_key", false), ["paymentsPaymentLinkAllPost"] = new("paymentsPaymentLinkAllPost", "POST", "/api/payment/link/all", "secret_key", false), ["paymentsPaymentLinkGetPost"] = new("paymentsPaymentLinkGetPost", "POST", "/api/payment/link/get", "secret_key", false), ["paymentsPaymentLinkUpdatePost"] = new("paymentsPaymentLinkUpdatePost", "POST", "/api/payment/link/update", "secret_key", false), ["paymentsPaymentPaymentlinkClonePost"] = new("paymentsPaymentPaymentlinkClonePost", "POST", "/api/payment/paymentLink/clone", "secret_key", false), ["paymentsPaymentPaymentlinkDeletePost"] = new("paymentsPaymentPaymentlinkDeletePost", "POST", "/api/payment/paymentLink/delete", "secret_key", false), ["paymentsPaymentPaymentlinkGenerateqrPost"] = new("paymentsPaymentPaymentlinkGenerateqrPost", "POST", "/api/payment/paymentLink/generateQr", "secret_key", false), ["paymentsPaymentPaymentlinkGetdonorsPaymentlinkidGet"] = new("paymentsPaymentPaymentlinkGetdonorsPaymentlinkidGet", "GET", "/api/payment/paymentLink/getDonors/{paymentLinkId}", "secret_key", false), ["paymentsPaymentPaymentlinkGetgoalprogressPaymentlinkidGet"] = new("paymentsPaymentPaymentlinkGetgoalprogressPaymentlinkidGet", "GET", "/api/payment/paymentLink/getGoalProgress/{paymentLinkId}", "secret_key", false), ["paymentsPaymentPaymentlinkGetpaymentsPost"] = new("paymentsPaymentPaymentlinkGetpaymentsPost", "POST", "/api/payment/paymentLink/getPayments", "secret_key", false), ["paymentsPaymentPaymentlinkGetsubscriptionsGet"] = new("paymentsPaymentPaymentlinkGetsubscriptionsGet", "GET", "/api/payment/paymentLink/getSubscriptions", "secret_key", false), ["paymentsPaymentPaymentlinkSharePost"] = new("paymentsPaymentPaymentlinkSharePost", "POST", "/api/payment/paymentLink/share", "secret_key", false), ["paymentsPaymentPromotionAllGet"] = new("paymentsPaymentPromotionAllGet", "GET", "/api/payment/promotion/all", "secret_key", false), ["paymentsPaymentPromotionCreatePost"] = new("paymentsPaymentPromotionCreatePost", "POST", "/api/payment/promotion/create", "secret_key", false), ["paymentsPaymentPromotionDeleteDelete"] = new("paymentsPaymentPromotionDeleteDelete", "DELETE", "/api/payment/promotion/delete", "secret_key", false), ["paymentsPaymentPromotionGetGet"] = new("paymentsPaymentPromotionGetGet", "GET", "/api/payment/promotion/get", "secret_key", false), ["paymentsPaymentPromotionUpdatePut"] = new("paymentsPaymentPromotionUpdatePut", "PUT", "/api/payment/promotion/update", "secret_key", false), ["paymentsPaymentReceiptCreatePost"] = new("paymentsPaymentReceiptCreatePost", "POST", "/api/payment/receipt/create", "secret_key", false), ["paymentsPaymentReceiptDownloadPost"] = new("paymentsPaymentReceiptDownloadPost", "POST", "/api/payment/receipt/download", "secret_key", false), ["paymentsPaymentReceiptFormatPost"] = new("paymentsPaymentReceiptFormatPost", "POST", "/api/payment/receipt/format", "secret_key", false), ["paymentsPaymentReceiptGetPost"] = new("paymentsPaymentReceiptGetPost", "POST", "/api/payment/receipt/get", "secret_key", false), ["paymentsPaymentReceiptGetallPost"] = new("paymentsPaymentReceiptGetallPost", "POST", "/api/payment/receipt/getAll", "secret_key", false), ["paymentsPaymentReceiptResendPost"] = new("paymentsPaymentReceiptResendPost", "POST", "/api/payment/receipt/resend", "secret_key", false), ["paymentsPaymentReceiptSearchPost"] = new("paymentsPaymentReceiptSearchPost", "POST", "/api/payment/receipt/search", "secret_key", false), ["paymentsPaymentReceiptSendPost"] = new("paymentsPaymentReceiptSendPost", "POST", "/api/payment/receipt/send", "secret_key", false), ["paymentsPaymentRefundAllPost"] = new("paymentsPaymentRefundAllPost", "POST", "/api/payment/refund/all", "secret_key", false), ["paymentsPaymentRefundCreatePost"] = new("paymentsPaymentRefundCreatePost", "POST", "/api/payment/refund/create", "secret_key", false), ["paymentsPaymentRefundDeletePost"] = new("paymentsPaymentRefundDeletePost", "POST", "/api/payment/refund/delete", "secret_key", false), ["paymentsPaymentRefundFullrefundPost"] = new("paymentsPaymentRefundFullrefundPost", "POST", "/api/payment/refund/fullrefund", "secret_key", false), ["paymentsPaymentRefundGetPost"] = new("paymentsPaymentRefundGetPost", "POST", "/api/payment/refund/get", "secret_key", false), ["paymentsPaymentRefundPartialrefundPost"] = new("paymentsPaymentRefundPartialrefundPost", "POST", "/api/payment/refund/partialrefund", "secret_key", false), ["paymentsPaymentRefundProcessrefundPost"] = new("paymentsPaymentRefundProcessrefundPost", "POST", "/api/payment/refund/processrefund", "secret_key", false), ["paymentsPaymentRefundSearchPost"] = new("paymentsPaymentRefundSearchPost", "POST", "/api/payment/refund/search", "secret_key", false), ["paymentsPaymentRefundSearchbychargePost"] = new("paymentsPaymentRefundSearchbychargePost", "POST", "/api/payment/refund/searchbycharge", "secret_key", false), ["paymentsPaymentRefundSearchbycustomerPost"] = new("paymentsPaymentRefundSearchbycustomerPost", "POST", "/api/payment/refund/searchbycustomer", "secret_key", false), ["paymentsPaymentRefundSearchbydaterangePost"] = new("paymentsPaymentRefundSearchbydaterangePost", "POST", "/api/payment/refund/searchbydaterange", "secret_key", false), ["paymentsPaymentRefundSearchbystatusPost"] = new("paymentsPaymentRefundSearchbystatusPost", "POST", "/api/payment/refund/searchbystatus", "secret_key", false), ["paymentsPaymentRefundUpdatePost"] = new("paymentsPaymentRefundUpdatePost", "POST", "/api/payment/refund/update", "secret_key", false), ["paymentsPaymentSubscriptionAllPost"] = new("paymentsPaymentSubscriptionAllPost", "POST", "/api/payment/subscription/all", "secret_key", false), ["paymentsPaymentSubscriptionCancelPost"] = new("paymentsPaymentSubscriptionCancelPost", "POST", "/api/payment/subscription/cancel", "secret_key", false), ["paymentsPaymentSubscriptionChangeplanPost"] = new("paymentsPaymentSubscriptionChangeplanPost", "POST", "/api/payment/subscription/changePlan", "secret_key", false), ["paymentsPaymentSubscriptionDeleteDelete"] = new("paymentsPaymentSubscriptionDeleteDelete", "DELETE", "/api/payment/subscription/delete", "secret_key", false), ["paymentsPaymentSubscriptionDeletePost"] = new("paymentsPaymentSubscriptionDeletePost", "POST", "/api/payment/subscription/delete", "secret_key", false), ["paymentsPaymentSubscriptionEndtrialPost"] = new("paymentsPaymentSubscriptionEndtrialPost", "POST", "/api/payment/subscription/endTrial", "secret_key", false), ["paymentsPaymentSubscriptionGetGet"] = new("paymentsPaymentSubscriptionGetGet", "GET", "/api/payment/subscription/get", "secret_key", false), ["paymentsPaymentSubscriptionGetallGet"] = new("paymentsPaymentSubscriptionGetallGet", "GET", "/api/payment/subscription/getAll", "secret_key", false), ["paymentsPaymentSubscriptionGethistoryGet"] = new("paymentsPaymentSubscriptionGethistoryGet", "GET", "/api/payment/subscription/getHistory", "secret_key", false), ["paymentsPaymentSubscriptionGetinvoicesGet"] = new("paymentsPaymentSubscriptionGetinvoicesGet", "GET", "/api/payment/subscription/getInvoices", "secret_key", false), ["paymentsPaymentSubscriptionGetnextbillingGet"] = new("paymentsPaymentSubscriptionGetnextbillingGet", "GET", "/api/payment/subscription/getNextBilling", "secret_key", false), ["paymentsPaymentSubscriptionGetstatusGet"] = new("paymentsPaymentSubscriptionGetstatusGet", "GET", "/api/payment/subscription/getStatus", "secret_key", false), ["paymentsPaymentSubscriptionGetusageGet"] = new("paymentsPaymentSubscriptionGetusageGet", "GET", "/api/payment/subscription/getUsage", "secret_key", false), ["paymentsPaymentSubscriptionPausePost"] = new("paymentsPaymentSubscriptionPausePost", "POST", "/api/payment/subscription/pause", "secret_key", false), ["paymentsPaymentSubscriptionReactivatePost"] = new("paymentsPaymentSubscriptionReactivatePost", "POST", "/api/payment/subscription/reactivate", "secret_key", false), ["paymentsPaymentSubscriptionResumePost"] = new("paymentsPaymentSubscriptionResumePost", "POST", "/api/payment/subscription/resume", "secret_key", false), ["paymentsPaymentSubscriptionSearchGet"] = new("paymentsPaymentSubscriptionSearchGet", "GET", "/api/payment/subscription/search", "secret_key", false), ["paymentsPaymentSubscriptionSearchbycustomerGet"] = new("paymentsPaymentSubscriptionSearchbycustomerGet", "GET", "/api/payment/subscription/searchByCustomer", "secret_key", false), ["paymentsPaymentSubscriptionSearchbyplanGet"] = new("paymentsPaymentSubscriptionSearchbyplanGet", "GET", "/api/payment/subscription/searchByPlan", "secret_key", false), ["paymentsPaymentSubscriptionSearchbystatusGet"] = new("paymentsPaymentSubscriptionSearchbystatusGet", "GET", "/api/payment/subscription/searchByStatus", "secret_key", false), ["paymentsPaymentSubscriptionStarttrialPost"] = new("paymentsPaymentSubscriptionStarttrialPost", "POST", "/api/payment/subscription/startTrial", "secret_key", false), ["paymentsPaymentSubscriptionUpdatePost"] = new("paymentsPaymentSubscriptionUpdatePost", "POST", "/api/payment/subscription/update", "secret_key", false), ["paymentsPaymentSubscriptionUpdatePut"] = new("paymentsPaymentSubscriptionUpdatePut", "PUT", "/api/payment/subscription/update", "secret_key", false), ["paymentsPaymentSubscriptionUpdatepaymentmethodPost"] = new("paymentsPaymentSubscriptionUpdatepaymentmethodPost", "POST", "/api/payment/subscription/updatePaymentMethod", "secret_key", false), ["paymentsPaymentSubscriptionplanAllPost"] = new("paymentsPaymentSubscriptionplanAllPost", "POST", "/api/payment/subscriptionplan/all", "secret_key", false), ["paymentsPaymentSubscriptionplanCalculatepricePost"] = new("paymentsPaymentSubscriptionplanCalculatepricePost", "POST", "/api/payment/subscriptionPlan/calculatePrice", "secret_key", false), ["paymentsPaymentSubscriptionplanCreatePost"] = new("paymentsPaymentSubscriptionplanCreatePost", "POST", "/api/payment/subscriptionplan/create", "secret_key", false), ["paymentsPaymentSubscriptionplanDeleteDelete"] = new("paymentsPaymentSubscriptionplanDeleteDelete", "DELETE", "/api/payment/subscriptionPlan/delete", "secret_key", false), ["paymentsPaymentSubscriptionplanDeletePost"] = new("paymentsPaymentSubscriptionplanDeletePost", "POST", "/api/payment/subscriptionplan/delete", "secret_key", false), ["paymentsPaymentSubscriptionplanGetGet"] = new("paymentsPaymentSubscriptionplanGetGet", "GET", "/api/payment/subscriptionPlan/get", "secret_key", false), ["paymentsPaymentSubscriptionplanGetPost"] = new("paymentsPaymentSubscriptionplanGetPost", "POST", "/api/payment/subscriptionplan/get", "secret_key", false), ["paymentsPaymentSubscriptionplanGetallGet"] = new("paymentsPaymentSubscriptionplanGetallGet", "GET", "/api/payment/subscriptionPlan/getall", "secret_key", false), ["paymentsPaymentSubscriptionplanGetfeaturesGet"] = new("paymentsPaymentSubscriptionplanGetfeaturesGet", "GET", "/api/payment/subscriptionPlan/getFeatures", "secret_key", false), ["paymentsPaymentSubscriptionplanUpdatePost"] = new("paymentsPaymentSubscriptionplanUpdatePost", "POST", "/api/payment/subscriptionplan/update", "secret_key", false), ["paymentsPaymentSubscriptionplanUpdatePut"] = new("paymentsPaymentSubscriptionplanUpdatePut", "PUT", "/api/payment/subscriptionPlan/update", "secret_key", false), ["paymentsPaymentSubscriptionplanUpdatefeaturesPut"] = new("paymentsPaymentSubscriptionplanUpdatefeaturesPut", "PUT", "/api/payment/subscriptionPlan/updateFeatures", "secret_key", false), ["paymentsPaymentTransactionCalculatefeePost"] = new("paymentsPaymentTransactionCalculatefeePost", "POST", "/api/payment/transaction/calculateFee", "secret_key", false), ["paymentsPaymentTransactionCheckstatusPost"] = new("paymentsPaymentTransactionCheckstatusPost", "POST", "/api/payment/transaction/checkStatus", "secret_key", false), ["paymentsPaymentTransactionCreatePost"] = new("paymentsPaymentTransactionCreatePost", "POST", "/api/payment/transaction/create", "secret_key", false), ["paymentsPaymentTransactionDeletePost"] = new("paymentsPaymentTransactionDeletePost", "POST", "/api/payment/transaction/delete", "secret_key", false), ["paymentsPaymentTransactionGetallPost"] = new("paymentsPaymentTransactionGetallPost", "POST", "/api/payment/transaction/getAll", "secret_key", false), ["paymentsPaymentTransactionGetdetailsPost"] = new("paymentsPaymentTransactionGetdetailsPost", "POST", "/api/payment/transaction/getDetails", "secret_key", false), ["paymentsPaymentTransactionGeteventsPost"] = new("paymentsPaymentTransactionGeteventsPost", "POST", "/api/payment/transaction/getEvents", "secret_key", false), ["paymentsPaymentTransactionHistoryPost"] = new("paymentsPaymentTransactionHistoryPost", "POST", "/api/payment/transaction/history", "secret_key", false), ["paymentsPaymentTransactionRefundPost"] = new("paymentsPaymentTransactionRefundPost", "POST", "/api/payment/transaction/refund", "secret_key", false), ["paymentsPaymentTransactionUpdatePost"] = new("paymentsPaymentTransactionUpdatePost", "POST", "/api/payment/transaction/update", "secret_key", false), ["paymentsPaymentTransactionVoidPost"] = new("paymentsPaymentTransactionVoidPost", "POST", "/api/payment/transaction/void", "secret_key", false), ["placesCreate"] = new("placesCreate", "POST", "/api/places/general/create", "secret_key", false), ["placesGetPublic"] = new("placesGetPublic", "GET", "/api/places/general/get", "public", false), ["placesListPublic"] = new("placesListPublic", "GET", "/api/places/general/all", "public", false), ["placesPlacesGeneralDeletePost"] = new("placesPlacesGeneralDeletePost", "POST", "/api/places/general/delete", "secret_key", false), ["placesUpdate"] = new("placesUpdate", "PUT", "/api/places/general/update", "secret_key", false), ["pollsCastVote"] = new("pollsCastVote", "POST", "/api/vote/cast/create", "publishable_key", true), ["pollsVoteCastGetPost"] = new("pollsVoteCastGetPost", "POST", "/api/vote/cast/get", "secret_key", false), ["pollsVoteCastGetallPost"] = new("pollsVoteCastGetallPost", "POST", "/api/vote/cast/getall", "secret_key", false), ["sponsorsCreate"] = new("sponsorsCreate", "POST", "/api/sponsor/general/create", "secret_key", false), ["sponsorsGetPublic"] = new("sponsorsGetPublic", "GET", "/api/sponsor/general/get", "public", false), ["sponsorsSponsorGeneralAllGet"] = new("sponsorsSponsorGeneralAllGet", "GET", "/api/sponsor/general/all", "public", false), ["sponsorsSponsorGeneralDeletePost"] = new("sponsorsSponsorGeneralDeletePost", "POST", "/api/sponsor/general/delete", "secret_key", false), ["sponsorsSponsorGeneralUpdatePut"] = new("sponsorsSponsorGeneralUpdatePut", "PUT", "/api/sponsor/general/update", "secret_key", false), ["teamsCreate"] = new("teamsCreate", "POST", "/api/team/general/create", "secret_key", false), ["teamsTeamCategoryAllGet"] = new("teamsTeamCategoryAllGet", "GET", "/api/team/category/all", "secret_key", false), ["teamsTeamCategoryCreatePost"] = new("teamsTeamCategoryCreatePost", "POST", "/api/team/category/create", "secret_key", false), ["teamsTeamCategoryDeletePost"] = new("teamsTeamCategoryDeletePost", "POST", "/api/team/category/delete", "secret_key", false), ["teamsTeamCategoryGetGet"] = new("teamsTeamCategoryGetGet", "GET", "/api/team/category/get", "secret_key", false), ["teamsTeamCategoryUpdatePut"] = new("teamsTeamCategoryUpdatePut", "PUT", "/api/team/category/update", "secret_key", false), ["teamsTeamGeneralAllGet"] = new("teamsTeamGeneralAllGet", "GET", "/api/team/general/all", "secret_key", false), ["teamsTeamGeneralDeletePost"] = new("teamsTeamGeneralDeletePost", "POST", "/api/team/general/delete", "secret_key", false), ["teamsTeamGeneralGetGet"] = new("teamsTeamGeneralGetGet", "GET", "/api/team/general/get", "secret_key", false), ["teamsTeamGeneralUpdatePut"] = new("teamsTeamGeneralUpdatePut", "PUT", "/api/team/general/update", "secret_key", false), ["teamsTeamSubcategoryAllGet"] = new("teamsTeamSubcategoryAllGet", "GET", "/api/team/subcategory/all", "secret_key", false), ["teamsTeamSubcategoryCreatePost"] = new("teamsTeamSubcategoryCreatePost", "POST", "/api/team/subcategory/create", "secret_key", false), ["teamsTeamSubcategoryDeletePost"] = new("teamsTeamSubcategoryDeletePost", "POST", "/api/team/subcategory/delete", "secret_key", false), ["teamsTeamSubcategoryGetGet"] = new("teamsTeamSubcategoryGetGet", "GET", "/api/team/subcategory/get", "secret_key", false), ["teamsTeamSubcategoryUpdatePut"] = new("teamsTeamSubcategoryUpdatePut", "PUT", "/api/team/subcategory/update", "secret_key", false), ["vendorsCreate"] = new("vendorsCreate", "POST", "/api/vendor/general/create", "secret_key", false), ["vendorsGetPublic"] = new("vendorsGetPublic", "GET", "/api/vendor/general/get", "public", false), ["vendorsVendorGeneralAllGet"] = new("vendorsVendorGeneralAllGet", "GET", "/api/vendor/general/all", "public", false), ["vendorsVendorGeneralUpdatePut"] = new("vendorsVendorGeneralUpdatePut", "PUT", "/api/vendor/general/update", "secret_key", false), }; private readonly string _baseUrl; private readonly string _executionContext; private readonly Credentials _credentials; private readonly HttpClient _httpClient; public BeladedClient(string environment = "development", string executionContext = "server", Credentials? credentials = null, HttpClient? httpClient = null) { if (!BaseUrls.TryGetValue(environment, out var baseUrl)) throw new BeladedApiException("Unknown environment " + environment); if (executionContext != "server") throw new BeladedApiException("The C# SDK supports only server execution"); _baseUrl = baseUrl; _executionContext = executionContext; _credentials = credentials ?? new Credentials(); _httpClient = httpClient ?? new HttpClient(); } private void Authorize(Operation operation, HttpRequestMessage request) { if (_executionContext == "client" && operation.CredentialType is "secret_key" or "oauth_client") throw new BeladedApiException("Operation requires a server-side credential", operationId: operation.OperationId); if (operation.CredentialType == "publishable_key" && !operation.OriginRestricted) throw new BeladedApiException("Operation is not approved for a publishable key", operationId: operation.OperationId); if (operation.CredentialType == "public") return; var credential = operation.CredentialType switch { "publishable_key" => _credentials.PublishableKey, "secret_key" => _credentials.SecretKey, "oauth_client" => _credentials.AccessToken, "authenticated_session" => _credentials.SessionToken, _ => null, }; if (string.IsNullOrWhiteSpace(credential)) throw new BeladedApiException("Missing " + operation.CredentialType + " credential", operationId: operation.OperationId); if (operation.CredentialType == "publishable_key") request.Headers.TryAddWithoutValidation("X-Beladed-Public-Key", credential); else if (operation.CredentialType == "secret_key") request.Headers.TryAddWithoutValidation("X-Beladed-API-Key", credential); else request.Headers.TryAddWithoutValidation("Authorization", "Bearer " + credential); } public async Task RequestAsync(string operationId, RequestOptions? options = null, CancellationToken cancellationToken = default) { if (!Operations.TryGetValue(operationId, out var operation)) throw new BeladedApiException("Unknown or unpublished operation " + operationId, operationId: operationId); options ??= new RequestOptions(); var resolvedPath = PathParameter.Replace(operation.Path, match => { var name = match.Groups[1].Value; if (!options.Path.TryGetValue(name, out var value) || string.IsNullOrEmpty(value)) throw new BeladedApiException("Missing path parameter " + name, operationId: operationId); return Uri.EscapeDataString(value); }); var query = new List(); foreach (var entry in options.Query) { if (CredentialQueryKey.IsMatch(entry.Key)) throw new BeladedApiException("Credential query parameter " + entry.Key + " is forbidden", operationId: operationId); if (entry.Value is not null) query.Add(Uri.EscapeDataString(entry.Key) + "=" + Uri.EscapeDataString(entry.Value)); } var url = _baseUrl + resolvedPath + (query.Count > 0 ? "?" + string.Join("&", query) : ""); using var request = new HttpRequestMessage(new HttpMethod(operation.Method), url); request.Headers.TryAddWithoutValidation("Accept", "application/json"); if (options.Body is not null) request.Content = new StringContent(JsonSerializer.Serialize(options.Body), Encoding.UTF8, "application/json"); Authorize(operation, request); using var response = await _httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false); var payload = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); if (!response.IsSuccessStatusCode) throw new BeladedApiException("Beladed request failed with HTTP " + (int) response.StatusCode, (int) response.StatusCode, operationId, payload); return payload; } public Task AccountsAccountGeneralForgotPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralForgotPost", options, cancellationToken); public Task AccountsAccountGeneralGetAccountidGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralGetAccountidGet", options, cancellationToken); public Task AccountsAccountGeneralGetSessionsGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralGetSessionsGet", options, cancellationToken); public Task AccountsAccountGeneralLogoutDevicePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralLogoutDevicePost", options, cancellationToken); public Task AccountsAccountGeneralLogoutEverywherePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralLogoutEverywherePost", options, cancellationToken); public Task AccountsAccountGeneralLogoutPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralLogoutPost", options, cancellationToken); public Task AccountsAccountGeneralResetPutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralResetPut", options, cancellationToken); public Task AccountsAccountGeneralSessionGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralSessionGet", options, cancellationToken); public Task AccountsAccountGeneralSetPasswordPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsAccountGeneralSetPasswordPost", options, cancellationToken); public Task AccountsCreateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsCreate", options, cancellationToken); public Task AccountsListTypesAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsListTypes", options, cancellationToken); public Task AccountsLoginAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("accountsLogin", options, cancellationToken); public Task AdsAdsAdvertisementCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsAdvertisementCreatePost", options, cancellationToken); public Task AdsAdsAdvertisementGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsAdvertisementGetPost", options, cancellationToken); public Task AdsAdsAttributionAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsAttributionAllGet", options, cancellationToken); public Task AdsAdsAttributionCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsAttributionCreatePost", options, cancellationToken); public Task AdsAdsAttributionDeleteAttributionidDeleteAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsAttributionDeleteAttributionidDelete", options, cancellationToken); public Task AdsAdsAttributionGetAttributionidGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsAttributionGetAttributionidGet", options, cancellationToken); public Task AdsAdsAttributionUpdateAttributionidPutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsAttributionUpdateAttributionidPut", options, cancellationToken); public Task AdsAdsBiddingAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsBiddingAllGet", options, cancellationToken); public Task AdsAdsBiddingCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsBiddingCreatePost", options, cancellationToken); public Task AdsAdsInteractionCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsInteractionCreatePost", options, cancellationToken); public Task AdsAdsInventoryAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsInventoryAllGet", options, cancellationToken); public Task AdsAdsInventoryCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsInventoryCreatePost", options, cancellationToken); public Task AdsAdsPlacementAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsPlacementAllGet", options, cancellationToken); public Task AdsAdsPlacementChoicePlacementidPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsPlacementChoicePlacementidPost", options, cancellationToken); public Task AdsAdsPlacementInteractPlacementidPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsPlacementInteractPlacementidPost", options, cancellationToken); public Task AdsAdsPlacementVotePlacementidPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsAdsPlacementVotePlacementidPost", options, cancellationToken); public Task AdsCreatePlacementAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("adsCreatePlacement", options, cancellationToken); public Task EmbedsGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("embedsGet", options, cancellationToken); public Task EmbedsListAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("embedsList", options, cancellationToken); public Task EmbedsVoteEmbedCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("embedsVoteEmbedCreatePost", options, cancellationToken); public Task EmbedsVoteEmbedDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("embedsVoteEmbedDeletePost", options, cancellationToken); public Task EmbedsVoteEmbedUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("embedsVoteEmbedUpdatePut", options, cancellationToken); public Task EventsCreateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("eventsCreate", options, cancellationToken); public Task EventsEventsGeneralDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("eventsEventsGeneralDeletePost", options, cancellationToken); public Task EventsGetPublicAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("eventsGetPublic", options, cancellationToken); public Task EventsListPublicAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("eventsListPublic", options, cancellationToken); public Task EventsUpdateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("eventsUpdate", options, cancellationToken); public Task LivestreamCreateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamCreate", options, cancellationToken); public Task LivestreamGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamGet", options, cancellationToken); public Task LivestreamVideoCategoryAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoCategoryAllGet", options, cancellationToken); public Task LivestreamVideoCategoryCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoCategoryCreatePost", options, cancellationToken); public Task LivestreamVideoCategoryDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoCategoryDeletePost", options, cancellationToken); public Task LivestreamVideoCategoryGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoCategoryGetGet", options, cancellationToken); public Task LivestreamVideoCategoryUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoCategoryUpdatePut", options, cancellationToken); public Task LivestreamVideoChannelAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoChannelAllGet", options, cancellationToken); public Task LivestreamVideoChannelCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoChannelCreatePost", options, cancellationToken); public Task LivestreamVideoChannelDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoChannelDeletePost", options, cancellationToken); public Task LivestreamVideoChannelGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoChannelGetGet", options, cancellationToken); public Task LivestreamVideoChannelUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoChannelUpdatePut", options, cancellationToken); public Task LivestreamVideoDetailsAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoDetailsAllGet", options, cancellationToken); public Task LivestreamVideoDetailsCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoDetailsCreatePost", options, cancellationToken); public Task LivestreamVideoDetailsDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoDetailsDeletePost", options, cancellationToken); public Task LivestreamVideoDetailsGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoDetailsGetGet", options, cancellationToken); public Task LivestreamVideoDetailsUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoDetailsUpdatePut", options, cancellationToken); public Task LivestreamVideoEventCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoEventCreatePost", options, cancellationToken); public Task LivestreamVideoEventDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoEventDeletePost", options, cancellationToken); public Task LivestreamVideoEventUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoEventUpdatePut", options, cancellationToken); public Task LivestreamVideoStaticAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStaticAllGet", options, cancellationToken); public Task LivestreamVideoStaticCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStaticCreatePost", options, cancellationToken); public Task LivestreamVideoStaticDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStaticDeletePost", options, cancellationToken); public Task LivestreamVideoStaticGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStaticGetGet", options, cancellationToken); public Task LivestreamVideoStaticUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStaticUpdatePut", options, cancellationToken); public Task LivestreamVideoStreamAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStreamAllGet", options, cancellationToken); public Task LivestreamVideoStreamCreateclipPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStreamCreateclipPost", options, cancellationToken); public Task LivestreamVideoStreamDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStreamDeletePost", options, cancellationToken); public Task LivestreamVideoStreamGetanalyticsPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStreamGetanalyticsPost", options, cancellationToken); public Task LivestreamVideoStreamGetembedcodePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStreamGetembedcodePost", options, cancellationToken); public Task LivestreamVideoStreamGetstatusPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStreamGetstatusPost", options, cancellationToken); public Task LivestreamVideoStreamUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoStreamUpdatePut", options, cancellationToken); public Task LivestreamVideoSubcategoryAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoSubcategoryAllGet", options, cancellationToken); public Task LivestreamVideoSubcategoryCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoSubcategoryCreatePost", options, cancellationToken); public Task LivestreamVideoSubcategoryDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoSubcategoryDeletePost", options, cancellationToken); public Task LivestreamVideoSubcategoryGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoSubcategoryGetGet", options, cancellationToken); public Task LivestreamVideoSubcategoryUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("livestreamVideoSubcategoryUpdatePut", options, cancellationToken); public Task LoyaltyCreateItemAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyCreateItem", options, cancellationToken); public Task LoyaltyIncentiveLoyaltyAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveLoyaltyAllGet", options, cancellationToken); public Task LoyaltyIncentiveLoyaltyDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveLoyaltyDeletePost", options, cancellationToken); public Task LoyaltyIncentiveLoyaltyGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveLoyaltyGetGet", options, cancellationToken); public Task LoyaltyIncentiveLoyaltyUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveLoyaltyUpdatePut", options, cancellationToken); public Task LoyaltyIncentivePromotionAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentivePromotionAllGet", options, cancellationToken); public Task LoyaltyIncentivePromotionCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentivePromotionCreatePost", options, cancellationToken); public Task LoyaltyIncentivePromotionDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentivePromotionDeletePost", options, cancellationToken); public Task LoyaltyIncentivePromotionGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentivePromotionGetGet", options, cancellationToken); public Task LoyaltyIncentivePromotionUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentivePromotionUpdatePut", options, cancellationToken); public Task LoyaltyIncentiveRewardAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveRewardAllGet", options, cancellationToken); public Task LoyaltyIncentiveRewardCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveRewardCreatePost", options, cancellationToken); public Task LoyaltyIncentiveRewardDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveRewardDeletePost", options, cancellationToken); public Task LoyaltyIncentiveRewardGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveRewardGetGet", options, cancellationToken); public Task LoyaltyIncentiveRewardUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("loyaltyIncentiveRewardUpdatePut", options, cancellationToken); public Task MarketingCreateCampaignAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingCreateCampaign", options, cancellationToken); public Task MarketingMarketingAutomationCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingAutomationCreatePost", options, cancellationToken); public Task MarketingMarketingAutomationDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingAutomationDeletePost", options, cancellationToken); public Task MarketingMarketingAutomationGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingAutomationGetPost", options, cancellationToken); public Task MarketingMarketingAutomationUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingAutomationUpdatePost", options, cancellationToken); public Task MarketingMarketingCampaignAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingCampaignAllPost", options, cancellationToken); public Task MarketingMarketingCampaignGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingCampaignGetPost", options, cancellationToken); public Task MarketingMarketingContactAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingContactAllPost", options, cancellationToken); public Task MarketingMarketingContactCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingContactCreatePost", options, cancellationToken); public Task MarketingMarketingContactDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingContactDeletePost", options, cancellationToken); public Task MarketingMarketingContactGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingContactGetPost", options, cancellationToken); public Task MarketingMarketingContactUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingContactUpdatePost", options, cancellationToken); public Task MarketingMarketingEmailsequenceCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingEmailsequenceCreatePost", options, cancellationToken); public Task MarketingMarketingEmailsequenceDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingEmailsequenceDeletePost", options, cancellationToken); public Task MarketingMarketingEmailsequenceGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingEmailsequenceGetPost", options, cancellationToken); public Task MarketingMarketingIntegrationAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingIntegrationAllPost", options, cancellationToken); public Task MarketingMarketingIntegrationCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingIntegrationCreatePost", options, cancellationToken); public Task MarketingMarketingIntegrationDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingIntegrationDeletePost", options, cancellationToken); public Task MarketingMarketingIntegrationGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingIntegrationGetPost", options, cancellationToken); public Task MarketingMarketingIntegrationUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingIntegrationUpdatePost", options, cancellationToken); public Task MarketingMarketingLeadscoreGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingLeadscoreGetPost", options, cancellationToken); public Task MarketingMarketingLeadscoreUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingLeadscoreUpdatePost", options, cancellationToken); public Task MarketingMarketingSegmentAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingSegmentAllPost", options, cancellationToken); public Task MarketingMarketingSegmentCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingSegmentCreatePost", options, cancellationToken); public Task MarketingMarketingSegmentDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingSegmentDeletePost", options, cancellationToken); public Task MarketingMarketingSegmentGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingSegmentGetPost", options, cancellationToken); public Task MarketingMarketingSegmentUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingSegmentUpdatePost", options, cancellationToken); public Task MarketingMarketingTemplateAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingTemplateAllPost", options, cancellationToken); public Task MarketingMarketingTemplateCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingTemplateCreatePost", options, cancellationToken); public Task MarketingMarketingTemplateDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingTemplateDeletePost", options, cancellationToken); public Task MarketingMarketingTemplateGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingTemplateGetPost", options, cancellationToken); public Task MarketingMarketingTemplateUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("marketingMarketingTemplateUpdatePost", options, cancellationToken); public Task PagesCreateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesCreate", options, cancellationToken); public Task PagesCreateLeadAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesCreateLead", options, cancellationToken); public Task PagesGetPublicAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesGetPublic", options, cancellationToken); public Task PagesListPublicAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesListPublic", options, cancellationToken); public Task PagesPagesGeneralAnalyticsGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesPagesGeneralAnalyticsGet", options, cancellationToken); public Task PagesPagesGeneralDeleteDeleteAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesPagesGeneralDeleteDelete", options, cancellationToken); public Task PagesPagesGeneralStatsGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesPagesGeneralStatsGet", options, cancellationToken); public Task PagesPagesGeneralUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesPagesGeneralUpdatePut", options, cancellationToken); public Task PagesPagesLeadsAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesPagesLeadsAllGet", options, cancellationToken); public Task PagesPagesLeadsDeleteDeleteAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesPagesLeadsDeleteDelete", options, cancellationToken); public Task PagesPagesLeadsGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesPagesLeadsGetGet", options, cancellationToken); public Task PagesPagesLeadsUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pagesPagesLeadsUpdatePut", options, cancellationToken); public Task PaymentsCreateCustomerAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsCreateCustomer", options, cancellationToken); public Task PaymentsCreateLinkAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsCreateLink", options, cancellationToken); public Task PaymentsCreateSubscriptionAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsCreateSubscription", options, cancellationToken); public Task PaymentsGetSubscriptionAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsGetSubscription", options, cancellationToken); public Task PaymentsGetTransactionAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsGetTransaction", options, cancellationToken); public Task PaymentsPaySShortidGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaySShortidGet", options, cancellationToken); public Task PaymentsPayShortidGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPayShortidGet", options, cancellationToken); public Task PaymentsPaymentChargeAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentChargeAllPost", options, cancellationToken); public Task PaymentsPaymentChargeCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentChargeCreatePost", options, cancellationToken); public Task PaymentsPaymentChargeDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentChargeDeletePost", options, cancellationToken); public Task PaymentsPaymentChargeGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentChargeGetPost", options, cancellationToken); public Task PaymentsPaymentChargeRefundPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentChargeRefundPost", options, cancellationToken); public Task PaymentsPaymentChargeReversePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentChargeReversePost", options, cancellationToken); public Task PaymentsPaymentChargeUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentChargeUpdatePost", options, cancellationToken); public Task PaymentsPaymentChargeUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentChargeUpdatePut", options, cancellationToken); public Task PaymentsPaymentCustomerAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentCustomerAllPost", options, cancellationToken); public Task PaymentsPaymentCustomerDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentCustomerDeletePost", options, cancellationToken); public Task PaymentsPaymentCustomerGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentCustomerGetPost", options, cancellationToken); public Task PaymentsPaymentCustomerSearchPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentCustomerSearchPost", options, cancellationToken); public Task PaymentsPaymentCustomerUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentCustomerUpdatePost", options, cancellationToken); public Task PaymentsPaymentInvoiceChargePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceChargePost", options, cancellationToken); public Task PaymentsPaymentInvoiceCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceCreatePost", options, cancellationToken); public Task PaymentsPaymentInvoiceDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceDeletePost", options, cancellationToken); public Task PaymentsPaymentInvoiceGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceGetGet", options, cancellationToken); public Task PaymentsPaymentInvoiceGetallGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceGetallGet", options, cancellationToken); public Task PaymentsPaymentInvoiceResendPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceResendPost", options, cancellationToken); public Task PaymentsPaymentInvoiceSearchGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceSearchGet", options, cancellationToken); public Task PaymentsPaymentInvoiceSearchbycustomerGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceSearchbycustomerGet", options, cancellationToken); public Task PaymentsPaymentInvoiceSearchbydaterangeGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceSearchbydaterangeGet", options, cancellationToken); public Task PaymentsPaymentInvoiceSearchbystatusGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceSearchbystatusGet", options, cancellationToken); public Task PaymentsPaymentInvoiceSendPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceSendPost", options, cancellationToken); public Task PaymentsPaymentInvoiceUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentInvoiceUpdatePost", options, cancellationToken); public Task PaymentsPaymentLinkAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentLinkAllPost", options, cancellationToken); public Task PaymentsPaymentLinkGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentLinkGetPost", options, cancellationToken); public Task PaymentsPaymentLinkUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentLinkUpdatePost", options, cancellationToken); public Task PaymentsPaymentPaymentlinkClonePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPaymentlinkClonePost", options, cancellationToken); public Task PaymentsPaymentPaymentlinkDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPaymentlinkDeletePost", options, cancellationToken); public Task PaymentsPaymentPaymentlinkGenerateqrPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPaymentlinkGenerateqrPost", options, cancellationToken); public Task PaymentsPaymentPaymentlinkGetdonorsPaymentlinkidGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPaymentlinkGetdonorsPaymentlinkidGet", options, cancellationToken); public Task PaymentsPaymentPaymentlinkGetgoalprogressPaymentlinkidGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPaymentlinkGetgoalprogressPaymentlinkidGet", options, cancellationToken); public Task PaymentsPaymentPaymentlinkGetpaymentsPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPaymentlinkGetpaymentsPost", options, cancellationToken); public Task PaymentsPaymentPaymentlinkGetsubscriptionsGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPaymentlinkGetsubscriptionsGet", options, cancellationToken); public Task PaymentsPaymentPaymentlinkSharePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPaymentlinkSharePost", options, cancellationToken); public Task PaymentsPaymentPromotionAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPromotionAllGet", options, cancellationToken); public Task PaymentsPaymentPromotionCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPromotionCreatePost", options, cancellationToken); public Task PaymentsPaymentPromotionDeleteDeleteAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPromotionDeleteDelete", options, cancellationToken); public Task PaymentsPaymentPromotionGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPromotionGetGet", options, cancellationToken); public Task PaymentsPaymentPromotionUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentPromotionUpdatePut", options, cancellationToken); public Task PaymentsPaymentReceiptCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentReceiptCreatePost", options, cancellationToken); public Task PaymentsPaymentReceiptDownloadPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentReceiptDownloadPost", options, cancellationToken); public Task PaymentsPaymentReceiptFormatPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentReceiptFormatPost", options, cancellationToken); public Task PaymentsPaymentReceiptGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentReceiptGetPost", options, cancellationToken); public Task PaymentsPaymentReceiptGetallPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentReceiptGetallPost", options, cancellationToken); public Task PaymentsPaymentReceiptResendPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentReceiptResendPost", options, cancellationToken); public Task PaymentsPaymentReceiptSearchPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentReceiptSearchPost", options, cancellationToken); public Task PaymentsPaymentReceiptSendPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentReceiptSendPost", options, cancellationToken); public Task PaymentsPaymentRefundAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundAllPost", options, cancellationToken); public Task PaymentsPaymentRefundCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundCreatePost", options, cancellationToken); public Task PaymentsPaymentRefundDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundDeletePost", options, cancellationToken); public Task PaymentsPaymentRefundFullrefundPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundFullrefundPost", options, cancellationToken); public Task PaymentsPaymentRefundGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundGetPost", options, cancellationToken); public Task PaymentsPaymentRefundPartialrefundPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundPartialrefundPost", options, cancellationToken); public Task PaymentsPaymentRefundProcessrefundPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundProcessrefundPost", options, cancellationToken); public Task PaymentsPaymentRefundSearchPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundSearchPost", options, cancellationToken); public Task PaymentsPaymentRefundSearchbychargePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundSearchbychargePost", options, cancellationToken); public Task PaymentsPaymentRefundSearchbycustomerPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundSearchbycustomerPost", options, cancellationToken); public Task PaymentsPaymentRefundSearchbydaterangePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundSearchbydaterangePost", options, cancellationToken); public Task PaymentsPaymentRefundSearchbystatusPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundSearchbystatusPost", options, cancellationToken); public Task PaymentsPaymentRefundUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentRefundUpdatePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionAllPost", options, cancellationToken); public Task PaymentsPaymentSubscriptionCancelPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionCancelPost", options, cancellationToken); public Task PaymentsPaymentSubscriptionChangeplanPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionChangeplanPost", options, cancellationToken); public Task PaymentsPaymentSubscriptionDeleteDeleteAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionDeleteDelete", options, cancellationToken); public Task PaymentsPaymentSubscriptionDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionDeletePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionEndtrialPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionEndtrialPost", options, cancellationToken); public Task PaymentsPaymentSubscriptionGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionGetGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionGetallGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionGetallGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionGethistoryGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionGethistoryGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionGetinvoicesGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionGetinvoicesGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionGetnextbillingGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionGetnextbillingGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionGetstatusGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionGetstatusGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionGetusageGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionGetusageGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionPausePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionPausePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionReactivatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionReactivatePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionResumePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionResumePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionSearchGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionSearchGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionSearchbycustomerGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionSearchbycustomerGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionSearchbyplanGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionSearchbyplanGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionSearchbystatusGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionSearchbystatusGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionStarttrialPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionStarttrialPost", options, cancellationToken); public Task PaymentsPaymentSubscriptionUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionUpdatePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionUpdatePut", options, cancellationToken); public Task PaymentsPaymentSubscriptionUpdatepaymentmethodPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionUpdatepaymentmethodPost", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanAllPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanAllPost", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanCalculatepricePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanCalculatepricePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanCreatePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanDeleteDeleteAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanDeleteDelete", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanDeletePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanGetGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanGetPost", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanGetallGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanGetallGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanGetfeaturesGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanGetfeaturesGet", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanUpdatePost", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanUpdatePut", options, cancellationToken); public Task PaymentsPaymentSubscriptionplanUpdatefeaturesPutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentSubscriptionplanUpdatefeaturesPut", options, cancellationToken); public Task PaymentsPaymentTransactionCalculatefeePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionCalculatefeePost", options, cancellationToken); public Task PaymentsPaymentTransactionCheckstatusPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionCheckstatusPost", options, cancellationToken); public Task PaymentsPaymentTransactionCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionCreatePost", options, cancellationToken); public Task PaymentsPaymentTransactionDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionDeletePost", options, cancellationToken); public Task PaymentsPaymentTransactionGetallPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionGetallPost", options, cancellationToken); public Task PaymentsPaymentTransactionGetdetailsPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionGetdetailsPost", options, cancellationToken); public Task PaymentsPaymentTransactionGeteventsPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionGeteventsPost", options, cancellationToken); public Task PaymentsPaymentTransactionHistoryPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionHistoryPost", options, cancellationToken); public Task PaymentsPaymentTransactionRefundPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionRefundPost", options, cancellationToken); public Task PaymentsPaymentTransactionUpdatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionUpdatePost", options, cancellationToken); public Task PaymentsPaymentTransactionVoidPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("paymentsPaymentTransactionVoidPost", options, cancellationToken); public Task PlacesCreateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("placesCreate", options, cancellationToken); public Task PlacesGetPublicAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("placesGetPublic", options, cancellationToken); public Task PlacesListPublicAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("placesListPublic", options, cancellationToken); public Task PlacesPlacesGeneralDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("placesPlacesGeneralDeletePost", options, cancellationToken); public Task PlacesUpdateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("placesUpdate", options, cancellationToken); public Task PollsCastVoteAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pollsCastVote", options, cancellationToken); public Task PollsVoteCastGetPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pollsVoteCastGetPost", options, cancellationToken); public Task PollsVoteCastGetallPostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("pollsVoteCastGetallPost", options, cancellationToken); public Task SponsorsCreateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("sponsorsCreate", options, cancellationToken); public Task SponsorsGetPublicAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("sponsorsGetPublic", options, cancellationToken); public Task SponsorsSponsorGeneralAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("sponsorsSponsorGeneralAllGet", options, cancellationToken); public Task SponsorsSponsorGeneralDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("sponsorsSponsorGeneralDeletePost", options, cancellationToken); public Task SponsorsSponsorGeneralUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("sponsorsSponsorGeneralUpdatePut", options, cancellationToken); public Task TeamsCreateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsCreate", options, cancellationToken); public Task TeamsTeamCategoryAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamCategoryAllGet", options, cancellationToken); public Task TeamsTeamCategoryCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamCategoryCreatePost", options, cancellationToken); public Task TeamsTeamCategoryDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamCategoryDeletePost", options, cancellationToken); public Task TeamsTeamCategoryGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamCategoryGetGet", options, cancellationToken); public Task TeamsTeamCategoryUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamCategoryUpdatePut", options, cancellationToken); public Task TeamsTeamGeneralAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamGeneralAllGet", options, cancellationToken); public Task TeamsTeamGeneralDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamGeneralDeletePost", options, cancellationToken); public Task TeamsTeamGeneralGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamGeneralGetGet", options, cancellationToken); public Task TeamsTeamGeneralUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamGeneralUpdatePut", options, cancellationToken); public Task TeamsTeamSubcategoryAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamSubcategoryAllGet", options, cancellationToken); public Task TeamsTeamSubcategoryCreatePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamSubcategoryCreatePost", options, cancellationToken); public Task TeamsTeamSubcategoryDeletePostAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamSubcategoryDeletePost", options, cancellationToken); public Task TeamsTeamSubcategoryGetGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamSubcategoryGetGet", options, cancellationToken); public Task TeamsTeamSubcategoryUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("teamsTeamSubcategoryUpdatePut", options, cancellationToken); public Task VendorsCreateAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("vendorsCreate", options, cancellationToken); public Task VendorsGetPublicAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("vendorsGetPublic", options, cancellationToken); public Task VendorsVendorGeneralAllGetAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("vendorsVendorGeneralAllGet", options, cancellationToken); public Task VendorsVendorGeneralUpdatePutAsync(RequestOptions? options = null, CancellationToken cancellationToken = default) => RequestAsync("vendorsVendorGeneralUpdatePut", options, cancellationToken); } public sealed record Credentials(string? PublishableKey = null, string? SecretKey = null, string? AccessToken = null, string? SessionToken = null); public sealed class RequestOptions { public IReadOnlyDictionary Path { get; init; } = new Dictionary(); public IReadOnlyDictionary Query { get; init; } = new Dictionary(); public object? Body { get; init; } } public sealed class BeladedApiException : Exception { public int? Status { get; } public string? OperationId { get; } public string? ResponseBody { get; } public BeladedApiException(string message, int? status = null, string? operationId = null, string? responseBody = null) : base(message) { Status = status; OperationId = operationId; ResponseBody = responseBody; } }