From 1865290aa4eb24673e05f71cf14837b06e4d57a7 Mon Sep 17 00:00:00 2001 From: remarkablemark <10594555+remarkablemark@users.noreply.github.com> Date: Wed, 17 Sep 2025 01:07:22 +0000 Subject: [PATCH] feat(lib): generate library from Bitly OpenAPI --- lib/Client.php | 9740 +++++++++++++++-- lib/Endpoint/AddEmailToUser.php | 86 + lib/Endpoint/AddUserWithRole.php | 89 + lib/Endpoint/AiDomainSearch.php | 95 + lib/Endpoint/AnnualRenewalReminder.php | 82 + lib/Endpoint/ApplyDiscount.php | 94 + lib/Endpoint/ApplyStripeDiscount.php | 94 + lib/Endpoint/ApplyTemplate.php | 90 + lib/Endpoint/BulkAdd.php | 93 + lib/Endpoint/CampaignAddBitlink.php | 98 + lib/Endpoint/CancelPendingDowngrade.php | 77 + lib/Endpoint/CancelPendingDowngradeStripe.php | 77 + lib/Endpoint/CaptureEvent.php | 74 + lib/Endpoint/ChangeUserPassword.php | 86 + lib/Endpoint/CheckDomainDNS.php | 69 + lib/Endpoint/CheckShareableReport.php | 98 + lib/Endpoint/CloneSite.php | 88 + lib/Endpoint/CreateAnalyticsModule.php | 90 + lib/Endpoint/CreateAnalyticsReport.php | 90 + lib/Endpoint/CreateCampaignChannel.php | 83 + lib/Endpoint/CreateChannelBitlink.php | 86 + lib/Endpoint/CreateContainer.php | 94 + lib/Endpoint/CreateCustomer.php | 82 + lib/Endpoint/CreateDeeplinkApp.php | 90 + lib/Endpoint/CreateDeeplinkRule.php | 82 + .../CreateDefaultAnalyticsReportForGroup.php | 106 + lib/Endpoint/CreateFocus.php | 78 + lib/Endpoint/CreateGenericAccessToken.php | 86 + lib/Endpoint/CreateGroup.php | 86 + lib/Endpoint/CreateIntervention.php | 86 + lib/Endpoint/CreateLaunchpad.php | 82 + lib/Endpoint/CreateLaunchpadButton.php | 90 + .../CreateLaunchpadContentBitlink.php | 90 + ...ateLaunchpadContentDigitalBusinessCard.php | 69 + lib/Endpoint/CreateLaunchpadContentImage.php | 90 + lib/Endpoint/CreateLaunchpadContentSocial.php | 90 + .../CreateLaunchpadContentYoutubeVideo.php | 90 + .../CreateLaunchpadTextBlockContent.php | 69 + lib/Endpoint/CreateLink.php | 106 + lib/Endpoint/CreateOAuthApp.php | 78 + .../CreateOrgDomainVerificationEmail.php | 82 + .../CreateOrganizationInvitations.php | 94 + .../CreateOrganizationSSOSettings.php | 94 + lib/Endpoint/CreateOverridesForBitlink.php | 106 + lib/Endpoint/CreatePayPalBillingAgreement.php | 82 + .../CreatePayPalBillingAgreementToken.php | 82 + lib/Endpoint/CreatePaymentMethod.php | 90 + lib/Endpoint/CreateQRCodePreview.php | 94 + lib/Endpoint/CreateQRCodeTemplate.php | 94 + lib/Endpoint/CreateShareableReport.php | 86 + .../CreateShopifyIntegrationOAuth.php | 94 + lib/Endpoint/CreateSite.php | 90 + lib/Endpoint/CreateSiteContent.php | 93 + lib/Endpoint/CreateSiteImage.php | 69 + lib/Endpoint/CreateStripeSetupIntent.php | 85 + lib/Endpoint/CreateSubscription.php | 82 + lib/Endpoint/CreateUser.php | 82 + lib/Endpoint/DeactivateDeeplinkApp.php | 85 + lib/Endpoint/DeleteAnalyticsModule.php | 83 + .../DeleteAnalyticsModuleByReport.php | 86 + lib/Endpoint/DeleteAnalyticsReport.php | 92 + lib/Endpoint/DeleteCampaign.php | 85 + lib/Endpoint/DeleteCanvaUserBrandsByLogin.php | 71 + lib/Endpoint/DeleteChannel.php | 85 + lib/Endpoint/DeleteChannelBitlink.php | 86 + lib/Endpoint/DeleteCustomDomain.php | 82 + lib/Endpoint/DeleteDeeplinkRule.php | 85 + lib/Endpoint/DeleteEmail.php | 85 + lib/Endpoint/DeleteGroup.php | 85 + lib/Endpoint/DeleteIntegrationOAuth.php | 84 + lib/Endpoint/DeleteInvitation.php | 84 + lib/Endpoint/DeleteLaunchpad.php | 85 + lib/Endpoint/DeleteLaunchpadButton.php | 84 + .../DeleteLaunchpadImageByImageUse.php | 84 + lib/Endpoint/DeleteQRCodeTemplate.php | 83 + lib/Endpoint/DeleteSite.php | 85 + lib/Endpoint/DeleteSiteButton.php | 88 + lib/Endpoint/DeleteSiteRedirect.php | 63 + lib/Endpoint/DeleteUser.php | 82 + lib/Endpoint/DeleteUserWithRole.php | 90 + lib/Endpoint/Disable2FA.php | 94 + lib/Endpoint/DiscardDraftLaunchpad.php | 81 + lib/Endpoint/DiscardSiteDraft.php | 85 + lib/Endpoint/DowngradeOrganization.php | 74 + lib/Endpoint/DuplicateAnalyticsReport.php | 88 + lib/Endpoint/EditCustomDomain.php | 78 + lib/Endpoint/EditQRCodePreview.php | 97 + lib/Endpoint/EvaluateIntervention.php | 90 + lib/Endpoint/ExperimentDecide.php | 82 + lib/Endpoint/ExperimentTrack.php | 78 + lib/Endpoint/ExpireOAuthAuthorization.php | 81 + lib/Endpoint/FetchCompDomainPurchase.php | 80 + lib/Endpoint/FetchDomainAgreements.php | 85 + lib/Endpoint/FetchDomainStatus.php | 95 + lib/Endpoint/ForgetUser.php | 66 + lib/Endpoint/FormCapture.php | 86 + lib/Endpoint/GenerateBillingSignature.php | 73 + lib/Endpoint/GetAccessFeatures.php | 73 + .../GetAggregateButtonClicksByCity.php | 102 + .../GetAggregateButtonClicksByCountry.php | 102 + .../GetAggregateButtonClicksByDevice.php | 102 + .../GetAggregateButtonClicksOverTime.php | 102 + lib/Endpoint/GetAggregateCodeScansByCity.php | 102 + .../GetAggregateCodeScansByCountry.php | 102 + .../GetAggregateCodeScansOverTime.php | 102 + ...teDigitalBusinessCardDownloadsOverTime.php | 102 + .../GetAggregateEngagementsForBitlinks.php | 114 + ...ateEngagementsForBitlinksByCitiesFacet.php | 114 + ...AggregateEngagementsForBitlinksByFacet.php | 116 + lib/Endpoint/GetAggregateLinkClicksByCity.php | 102 + .../GetAggregateLinkClicksByCountry.php | 102 + .../GetAggregateLinkClicksByDevice.php | 102 + .../GetAggregateLinkClicksByReferrer.php | 102 + .../GetAggregateLinkClicksOverTime.php | 102 + lib/Endpoint/GetAggregatePageViewsByCity.php | 102 + .../GetAggregatePageViewsByCountry.php | 102 + .../GetAggregatePageViewsByDevice.php | 102 + .../GetAggregatePageViewsByReferrer.php | 102 + .../GetAggregatePageViewsOverTime.php | 102 + lib/Endpoint/GetAggregatePagesOverview.php | 102 + lib/Endpoint/GetAggregateSiteViewsByCity.php | 102 + .../GetAggregateSiteViewsByCountry.php | 102 + .../GetAggregateSiteViewsByDevice.php | 102 + .../GetAggregateSiteViewsByReferrer.php | 102 + .../GetAggregateSiteViewsOverTime.php | 102 + lib/Endpoint/GetAggregateSitesOverview.php | 102 + lib/Endpoint/GetAggregateTopButtonClicks.php | 104 + lib/Endpoint/GetAggregateTopCodeScans.php | 102 + lib/Endpoint/GetAggregateTopLinkClicks.php | 102 + lib/Endpoint/GetAllBrandCampaigns.php | 97 + lib/Endpoint/GetAnalyticsModule.php | 83 + lib/Endpoint/GetAnalyticsReport.php | 84 + .../GetAnalyticsReportsByGroupPaginated.php | 103 + .../GetAnalyticsReportsListByGroup.php | 85 + lib/Endpoint/GetAnalyticsUsage.php | 81 + lib/Endpoint/GetAppAssociations.php | 85 + lib/Endpoint/GetAutobrandedDomain.php | 86 + lib/Endpoint/GetBillingAccount.php | 76 + lib/Endpoint/GetBillingAccountID.php | 73 + lib/Endpoint/GetBillingProvider.php | 77 + lib/Endpoint/GetBitlinkClickCounts.php | 102 + lib/Endpoint/GetBitlinkClicks.php | 109 + ...itlinkClicksMetricsForBitlinkByBrowser.php | 123 + ...BitlinkClicksMetricsForBitlinkByCities.php | 123 + ...linkClicksMetricsForBitlinkByCountries.php | 123 + ...linkClicksMetricsForBitlinkByDevicesOS.php | 123 + lib/Endpoint/GetBitlinkClicksSummary.php | 109 + lib/Endpoint/GetBitlinkScans.php | 109 + lib/Endpoint/GetBitlinkScansSummary.php | 109 + lib/Endpoint/GetBitlinksByGroup.php | 4 +- ...ckDigitalBusinessCardDownloadsByCities.php | 110 + ...igitalBusinessCardDownloadsByCountries.php | 110 + ...kDigitalBusinessCardDownloadsByDevices.php | 110 + ...ckDigitalBusinessCardDownloadsOverTime.php | 110 + lib/Endpoint/GetBrandCampaign.php | 80 + lib/Endpoint/GetBulkUploads.php | 105 + lib/Endpoint/GetButtonClicks.php | 109 + lib/Endpoint/GetButtonClicksSummary.php | 109 + lib/Endpoint/GetCampaignClicks.php | 113 + lib/Endpoint/GetCanvaUserBrand.php | 77 + lib/Endpoint/GetChildrenForBlock.php | 84 + lib/Endpoint/GetConsumableFeatures.php | 77 + lib/Endpoint/GetCountryCallingCodes.php | 86 + lib/Endpoint/GetCurrency.php | 67 + lib/Endpoint/GetCurrencyList.php | 58 + lib/Endpoint/GetCustomDomain.php | 81 + lib/Endpoint/GetCustomDomains.php | 94 + lib/Endpoint/GetDeeplinkApp.php | 81 + lib/Endpoint/GetDeeplinkApps.php | 90 + lib/Endpoint/GetDeeplinkMetricsRollup.php | 109 + lib/Endpoint/GetDeeplinkRules.php | 89 + lib/Endpoint/GetDomainRegistrarInfo.php | 72 + lib/Endpoint/GetDynamicTranslation.php | 65 + lib/Endpoint/GetEngagements.php | 117 + lib/Endpoint/GetEngagementsSample.php | 97 + lib/Endpoint/GetEngagementsSummary.php | 109 + lib/Endpoint/GetFocus.php | 58 + lib/Endpoint/GetGroupBitlinksCount.php | 101 + lib/Endpoint/GetGroupBitlinksCountRollup.php | 109 + lib/Endpoint/GetGroupButtonClicksByCity.php | 101 + .../GetGroupButtonClicksByCountry.php | 101 + lib/Endpoint/GetGroupButtonClicksByDevice.php | 101 + lib/Endpoint/GetGroupButtonClicksOverTime.php | 101 + lib/Endpoint/GetGroupClicksByFacet.php | 110 + lib/Endpoint/GetGroupClicksByFacetRollup.php | 110 + lib/Endpoint/GetGroupCodeScansByCity.php | 101 + lib/Endpoint/GetGroupCodeScansByCountry.php | 101 + lib/Endpoint/GetGroupCodeScansOverTime.php | 101 + ...upDigitalBusinessCardDownloadsByBlocks.php | 107 + ...upDigitalBusinessCardDownloadsByCities.php | 107 + ...igitalBusinessCardDownloadsByCountries.php | 107 + ...pDigitalBusinessCardDownloadsByDevices.php | 107 + ...gitalBusinessCardDownloadsByMicrosites.php | 107 + ...upDigitalBusinessCardDownloadsOverTime.php | 107 + lib/Endpoint/GetGroupLinkClicksByCity.php | 101 + lib/Endpoint/GetGroupLinkClicksByCountry.php | 101 + lib/Endpoint/GetGroupLinkClicksByDevice.php | 101 + lib/Endpoint/GetGroupLinkClicksByReferrer.php | 101 + lib/Endpoint/GetGroupLinkClicksOverTime.php | 101 + lib/Endpoint/GetGroupPageViewsByCity.php | 101 + lib/Endpoint/GetGroupPageViewsByCountry.php | 101 + lib/Endpoint/GetGroupPageViewsByDevice.php | 101 + lib/Endpoint/GetGroupPageViewsByReferrer.php | 101 + lib/Endpoint/GetGroupPageViewsOverTime.php | 101 + lib/Endpoint/GetGroupPagesOverview.php | 101 + lib/Endpoint/GetGroupTopButtonClicks.php | 101 + lib/Endpoint/GetGroupTopCodeScans.php | 101 + lib/Endpoint/GetGroupTopLinkClicks.php | 101 + lib/Endpoint/GetGroupsByLogin.php | 73 + lib/Endpoint/GetImageByGUID.php | 91 + .../GetIntegrationOAuthsByClientID.php | 90 + lib/Endpoint/GetInvitations.php | 73 + lib/Endpoint/GetInvitationsByLogin.php | 77 + lib/Endpoint/GetLaunchpad.php | 81 + ...adDigitalBusinessCardDownloadsOverTime.php | 102 + lib/Endpoint/GetLaunchpadImageByImageUse.php | 94 + lib/Endpoint/GetLaunchpadPresetThemes.php | 62 + lib/Endpoint/GetLaunchpadsForGroup.php | 81 + .../GetLinkEngagementsDailySummary.php | 92 + .../GetLinkEngagementsDayDrillDown.php | 110 + lib/Endpoint/GetLinkEngagementsReport.php | 101 + .../GetLinkPerformanceForLaunchpad.php | 105 + lib/Endpoint/GetLinkPerformanceForSite.php | 105 + .../GetMetricsForLaunchpadByCities.php | 111 + .../GetMetricsForLaunchpadByCountries.php | 107 + .../GetMetricsForLaunchpadByDevices.php | 111 + .../GetMetricsForLaunchpadByReferrers.php | 107 + lib/Endpoint/GetMetricsForSiteByCities.php | 111 + lib/Endpoint/GetMetricsForSiteByDevices.php | 111 + lib/Endpoint/GetMetricsForSiteByReferrers.php | 107 + .../GetMetricsForSitesByCountries.php | 107 + lib/Endpoint/GetOAuthApps.php | 70 + lib/Endpoint/GetOAuthAuthorizations.php | 66 + lib/Endpoint/GetOrgDomainsStatus.php | 81 + lib/Endpoint/GetOrgEmails.php | 96 + lib/Endpoint/GetOrgInvitationRequests.php | 77 + lib/Endpoint/GetOrgPreferences.php | 69 + lib/Endpoint/GetOrganizationActivityLog.php | 103 + .../GetOrganizationActivityLogEntry.php | 83 + .../GetOrganizationActivityLogExport.php | 85 + lib/Endpoint/GetOrganizationFeatureUsage.php | 77 + .../GetOrganizationFeatureUsageByGroup.php | 95 + ...ganizationHistoricalUsageTotalsByGroup.php | 97 + lib/Endpoint/GetOrganizationSSOSettings.php | 85 + lib/Endpoint/GetOrganizationStripeInfo.php | 77 + lib/Endpoint/GetOverrideHistoryForBitlink.php | 107 + lib/Endpoint/GetOverrideMetricsByVersion.php | 113 + lib/Endpoint/GetOverridesForBitlink.php | 89 + lib/Endpoint/GetOverridesForGroups.php | 113 + lib/Endpoint/GetPaymentInvoice.php | 75 + lib/Endpoint/GetPaymentInvoiceFile.php | 85 + lib/Endpoint/GetPaymentInvoices.php | 76 + lib/Endpoint/GetPendingTierForOrg.php | 80 + lib/Endpoint/GetPrivateGeo.php | 58 + lib/Endpoint/GetProductUtilization.php | 77 + lib/Endpoint/GetPromoCodeValidPlans.php | 73 + lib/Endpoint/GetQRCHistory.php | 99 + lib/Endpoint/GetQRCodeByBitlinkId.php | 83 + lib/Endpoint/GetQRCodeById.php | 85 + .../GetQRCodeCustomizationOptions.php | 81 + .../GetQRCodeOverrideMetricsByVersion.php | 113 + lib/Endpoint/GetQRCodeTemplates.php | 89 + lib/Endpoint/GetRegionsList.php | 58 + .../GetRetainedEntitiesAfterDowngrade.php | 73 + lib/Endpoint/GetSSOUsers.php | 99 + .../GetScanMetricsForBitlinkByBrowser.php | 123 + .../GetScanMetricsForBitlinkByCities.php | 123 + .../GetScanMetricsForBitlinkByCountries.php | 119 + .../GetScanMetricsForBitlinkByDevicesOS.php | 123 + lib/Endpoint/GetScansForBitlink.php | 117 + lib/Endpoint/GetScansSummaryForBitlink.php | 109 + lib/Endpoint/GetShopifyShopDomainDetails.php | 88 + lib/Endpoint/GetSite.php | 85 + lib/Endpoint/GetSiteClicksByCities.php | 102 + lib/Endpoint/GetSiteClicksByCountries.php | 102 + lib/Endpoint/GetSiteClicksByDevices.php | 102 + lib/Endpoint/GetSiteClicksOverTime.php | 102 + ...teDigitalBusinessCardDownloadsByBlocks.php | 107 + ...teDigitalBusinessCardDownloadsByCities.php | 107 + ...igitalBusinessCardDownloadsByCountries.php | 107 + ...eDigitalBusinessCardDownloadsByDevices.php | 107 + ...teDigitalBusinessCardDownloadsOverTime.php | 107 + .../GetSiteFilteredTopPageButtons.php | 104 + lib/Endpoint/GetSiteLayouts.php | 74 + lib/Endpoint/GetSitesForGroup.php | 97 + lib/Endpoint/GetSortedEngagements.php | 116 + lib/Endpoint/GetSortedScans.php | 114 + lib/Endpoint/GetSortedScansForGroup.php | 115 + lib/Endpoint/GetTemplates.php | 94 + lib/Endpoint/GetTier.php | 97 + lib/Endpoint/GetTiers.php | 90 + lib/Endpoint/GetTitleForLongURL.php | 94 + lib/Endpoint/GetTopSortedBitlinks.php | 114 + lib/Endpoint/GetTwoFARecord.php | 66 + lib/Endpoint/GetUMGroupPreferences.php | 81 + lib/Endpoint/GetUMGroupSiteThemes.php | 64 + lib/Endpoint/GetUserActivityLog.php | 94 + lib/Endpoint/GetUserAvailableTiers.php | 90 + .../GetUserOnboardingSurveyResults.php | 62 + lib/Endpoint/GetUserPreferences.php | 62 + lib/Endpoint/GetUsers.php | 104 + lib/Endpoint/GetViewsForLaunchpad.php | 103 + lib/Endpoint/GetViewsForSite.php | 103 + lib/Endpoint/GetViewsSummaryForLaunchpad.php | 103 + lib/Endpoint/GetViewsSummaryForSite.php | 103 + lib/Endpoint/HandleWebhook.php | 66 + lib/Endpoint/ListQRMinimal.php | 4 +- lib/Endpoint/NotifyPaymentFailure.php | 82 + lib/Endpoint/PatchCanvaUserBrand.php | 82 + lib/Endpoint/PatchOrgControlledDomain.php | 93 + lib/Endpoint/PatchOrgInvitationRequest.php | 86 + lib/Endpoint/PatchUMGroupPreferences.php | 93 + lib/Endpoint/PostGetLinksReport.php | 101 + lib/Endpoint/PostGroupDataExport.php | 90 + lib/Endpoint/PostOrgUsersDataExport.php | 90 + .../PrevalidateYouTubeVideoButton.php | 86 + lib/Endpoint/PublishDraftLaunchpad.php | 81 + lib/Endpoint/PublishSite.php | 81 + lib/Endpoint/PurchaseAddOns.php | 94 + lib/Endpoint/PurchaseBsd.php | 74 + lib/Endpoint/PurchaseStripeAddOns.php | 94 + lib/Endpoint/PutUMGroupSiteTheme.php | 64 + lib/Endpoint/RedirectQRCodeDestination.php | 88 + lib/Endpoint/RegeneratePaymentInvoiceFile.php | 75 + lib/Endpoint/ReorderBlocksByContainer.php | 97 + lib/Endpoint/RequestUserSAR.php | 80 + lib/Endpoint/ResendInvitation.php | 84 + lib/Endpoint/ScheduleOrgDowngradeStripe.php | 82 + .../ScheduleOrganizationDowngrade.php | 82 + lib/Endpoint/SearchDomains.php | 90 + lib/Endpoint/SearchGroupUserRoles.php | 101 + lib/Endpoint/SearchOrgUserRoles.php | 101 + lib/Endpoint/SendEmailVerification.php | 87 + lib/Endpoint/SendVerificationCode.php | 78 + lib/Endpoint/SetOrgPreference.php | 86 + lib/Endpoint/SetPaymentMethodDefault.php | 92 + lib/Endpoint/SetPhoneNumber.php | 86 + .../SetStripeDefaultPaymentMethod.php | 88 + lib/Endpoint/SetUserPreference.php | 81 + lib/Endpoint/ThirdPartyAppLookup.php | 102 + lib/Endpoint/UpdateAnalyticsModule.php | 92 + lib/Endpoint/UpdateAnalyticsReport.php | 93 + lib/Endpoint/UpdateAppAssociations.php | 94 + lib/Endpoint/UpdateBillingInfo.php | 86 + lib/Endpoint/UpdateBitlink.php | 6 +- lib/Endpoint/UpdateDeeplinkApp.php | 94 + lib/Endpoint/UpdateDeeplinkRule.php | 94 + lib/Endpoint/UpdateEmail.php | 90 + .../UpdateEntitiesRetainedOnDowngrade.php | 86 + lib/Endpoint/UpdateImage.php | 90 + lib/Endpoint/UpdateLaunchpad.php | 94 + .../UpdateLaunchpadBitlinkContent.php | 93 + lib/Endpoint/UpdateLaunchpadButton.php | 93 + .../UpdateLaunchpadButtonSortOrder.php | 90 + .../UpdateLaunchpadCarouselContent.php | 97 + ...ateLaunchpadContentDigitalBusinessCard.php | 72 + lib/Endpoint/UpdateLaunchpadGridContent.php | 97 + .../UpdateLaunchpadImageByImageUse.php | 93 + lib/Endpoint/UpdateLaunchpadImageContent.php | 93 + lib/Endpoint/UpdateLaunchpadSocial.php | 93 + .../UpdateLaunchpadTextBlockContent.php | 72 + lib/Endpoint/UpdateLaunchpadYoutubeVideo.php | 93 + lib/Endpoint/UpdateLink.php | 110 + lib/Endpoint/UpdateOAuthApp.php | 90 + lib/Endpoint/UpdateOAuthAppClientSecret.php | 87 + lib/Endpoint/UpdateOrganization.php | 86 + .../UpdateOrganizationSSOSettings.php | 94 + lib/Endpoint/UpdateOverridesForBitlink.php | 102 + lib/Endpoint/UpdatePaymentContactInfo.php | 90 + lib/Endpoint/UpdateSiteAppearance.php | 90 + lib/Endpoint/UpdateSiteButton.php | 101 + lib/Endpoint/UpdateSitesToKeep.php | 86 + lib/Endpoint/UpdateStripeCustomer.php | 89 + lib/Endpoint/UpdateUserWithRole.php | 90 + lib/Endpoint/UpgradeOrganization.php | 82 + ...radeOrganizationWithStripeSubscription.php | 86 + lib/Endpoint/UpgradeQRCodeToBitlink.php | 83 + lib/Endpoint/UploadImage.php | 93 + lib/Endpoint/UploadLaunchpadImage.php | 97 + lib/Endpoint/UpsertOrgEmail.php | 85 + lib/Endpoint/UserAcceptInvite.php | 86 + lib/Endpoint/ValidateBulkUpload.php | 94 + lib/Endpoint/ValidateCustomDomain.php | 93 + lib/Endpoint/ValidatePromoCode.php | 84 + lib/Endpoint/ValidateStripePromoCode.php | 84 + lib/Endpoint/VerifySSOSlug.php | 85 + lib/Endpoint/VerifyTwoFactorCode.php | 82 + .../AddEmailToUserBadRequestException.php | 40 + .../AddEmailToUserForbiddenException.php | 40 + ...mailToUserInternalServerErrorException.php | 40 + .../AddEmailToUserNotFoundException.php | 40 + ...mailToUserUnprocessableEntityException.php | 40 + .../AddUserWithRoleBadRequestException.php | 40 + .../AddUserWithRoleForbiddenException.php | 40 + ...erWithRoleInternalServerErrorException.php | 40 + ...serWithRoleServiceUnavailableException.php | 40 + ...erWithRoleUnprocessableEntityException.php | 40 + .../AiDomainSearchBadRequestException.php | 40 + .../AiDomainSearchForbiddenException.php | 40 + ...mainSearchInternalServerErrorException.php | 40 + ...nualRenewalReminderBadRequestException.php | 40 + ...alReminderInternalServerErrorException.php | 40 + ...walReminderServiceUnavailableException.php | 40 + ...alReminderUnprocessableEntityException.php | 40 + .../ApplyDiscountBadRequestException.php | 40 + .../ApplyDiscountForbiddenException.php | 40 + ...lyDiscountInternalServerErrorException.php | 40 + .../ApplyDiscountNotFoundException.php | 40 + ...plyDiscountServiceUnavailableException.php | 40 + ...lyDiscountUnprocessableEntityException.php | 40 + ...ApplyStripeDiscountBadRequestException.php | 40 + .../ApplyStripeDiscountForbiddenException.php | 40 + ...peDiscountInternalServerErrorException.php | 40 + .../ApplyStripeDiscountNotFoundException.php | 40 + ...ipeDiscountServiceUnavailableException.php | 40 + ...peDiscountUnprocessableEntityException.php | 40 + .../ApplyTemplateForbiddenException.php | 40 + ...lyTemplateInternalServerErrorException.php | 40 + .../ApplyTemplateNotFoundException.php | 40 + ...plyTemplateServiceUnavailableException.php | 40 + ...lyTemplateUnprocessableEntityException.php | 40 + lib/Exception/BulkAddBadRequestException.php | 40 + lib/Exception/BulkAddForbiddenException.php | 40 + .../BulkAddInternalServerErrorException.php | 40 + lib/Exception/BulkAddNotFoundException.php | 40 + .../CampaignAddBitlinkBadRequestException.php | 40 + .../CampaignAddBitlinkForbiddenException.php | 40 + ...AddBitlinkInternalServerErrorException.php | 40 + .../CampaignAddBitlinkNotFoundException.php | 40 + ...aignAddBitlinkPaymentRequiredException.php | 40 + ...nAddBitlinkServiceUnavailableException.php | 40 + ...AddBitlinkUnprocessableEntityException.php | 40 + ...ncelPendingDowngradeForbiddenException.php | 40 + ...gDowngradeInternalServerErrorException.php | 40 + ...ancelPendingDowngradeNotFoundException.php | 40 + ...ndingDowngradeStripeForbiddenException.php | 40 + ...radeStripeInternalServerErrorException.php | 40 + ...endingDowngradeStripeNotFoundException.php | 40 + .../CaptureEventForbiddenException.php | 40 + ...ptureEventInternalServerErrorException.php | 40 + .../ChangeUserPasswordBadRequestException.php | 40 + .../ChangeUserPasswordForbiddenException.php | 40 + ...erPasswordInternalServerErrorException.php | 40 + .../ChangeUserPasswordNotFoundException.php | 40 + ...erPasswordUnprocessableEntityException.php | 40 + ...kDomainDNSInternalServerErrorException.php | 40 + ...heckShareableReportBadRequestException.php | 40 + ...CheckShareableReportForbiddenException.php | 40 + ...ableReportInternalServerErrorException.php | 40 + .../CheckShareableReportNotFoundException.php | 40 + ...eableReportServiceUnavailableException.php | 40 + .../CloneSiteBadRequestException.php | 40 + lib/Exception/CloneSiteForbiddenException.php | 40 + .../CloneSiteInternalServerErrorException.php | 40 + .../CloneSitePaymentRequiredException.php | 40 + .../CloneSiteServiceUnavailableException.php | 40 + ...eateAnalyticsModuleBadRequestException.php | 40 + ...reateAnalyticsModuleForbiddenException.php | 40 + ...ticsModuleInternalServerErrorException.php | 40 + ...CreateAnalyticsModuleNotFoundException.php | 40 + ...yticsModuleServiceUnavailableException.php | 40 + ...eateAnalyticsReportBadRequestException.php | 40 + ...reateAnalyticsReportForbiddenException.php | 40 + ...ticsReportInternalServerErrorException.php | 40 + ...CreateAnalyticsReportNotFoundException.php | 40 + ...yticsReportServiceUnavailableException.php | 40 + ...eateCampaignChannelBadRequestException.php | 40 + ...ignChannelInternalServerErrorException.php | 40 + ...ignChannelUnprocessableEntityException.php | 40 + ...reateChannelBitlinkBadRequestException.php | 40 + ...nelBitlinkInternalServerErrorException.php | 40 + ...nelBitlinkUnprocessableEntityException.php | 40 + .../CreateContainerBadRequestException.php | 40 + .../CreateContainerForbiddenException.php | 40 + ...eContainerInternalServerErrorException.php | 40 + .../CreateContainerNotFoundException.php | 40 + ...teContainerServiceUnavailableException.php | 40 + ...eContainerUnprocessableEntityException.php | 40 + .../CreateCustomerBadRequestException.php | 40 + .../CreateCustomerForbiddenException.php | 40 + ...teCustomerInternalServerErrorException.php | 40 + ...teCustomerUnprocessableEntityException.php | 40 + .../CreateDeeplinkAppBadRequestException.php | 40 + ...eDeeplinkAppExpectationFailedException.php | 40 + .../CreateDeeplinkAppForbiddenException.php | 40 + ...eeplinkAppInternalServerErrorException.php | 40 + ...DeeplinkAppServiceUnavailableException.php | 40 + ...eeplinkAppUnprocessableEntityException.php | 40 + .../CreateDeeplinkRuleForbiddenException.php | 40 + ...eplinkRuleInternalServerErrorException.php | 40 + .../CreateDeeplinkRuleNotFoundException.php | 40 + ...teDeeplinkRulePaymentRequiredException.php | 40 + ...yticsReportForGroupBadRequestException.php | 40 + ...lyticsReportForGroupForbiddenException.php | 40 + ...rtForGroupInternalServerErrorException.php | 40 + ...alyticsReportForGroupNotFoundException.php | 40 + ...ortForGroupServiceUnavailableException.php | 40 + .../CreateFocusBadRequestException.php | 40 + .../CreateFocusForbiddenException.php | 40 + ...reateFocusInternalServerErrorException.php | 40 + ...eGenericAccessTokenBadRequestException.php | 40 + ...teGenericAccessTokenForbiddenException.php | 40 + ...ccessTokenInternalServerErrorException.php | 40 + ...ateGenericAccessTokenNotFoundException.php | 40 + ...enericAccessTokenUnauthorizedException.php | 40 + .../CreateGroupBadRequestException.php | 40 + .../CreateGroupForbiddenException.php | 40 + ...reateGroupInternalServerErrorException.php | 40 + .../CreateGroupTooManyRequestsException.php | 40 + ...reateGroupUnprocessableEntityException.php | 40 + .../CreateInterventionBadRequestException.php | 40 + .../CreateInterventionForbiddenException.php | 40 + ...terventionInternalServerErrorException.php | 40 + ...nterventionServiceUnavailableException.php | 40 + ...terventionUnprocessableEntityException.php | 40 + .../CreateLaunchpadBadRequestException.php | 40 + ...eateLaunchpadButtonBadRequestException.php | 40 + ...reateLaunchpadButtonForbiddenException.php | 40 + ...hpadButtonInternalServerErrorException.php | 40 + ...CreateLaunchpadButtonNotFoundException.php | 40 + ...chpadButtonServiceUnavailableException.php | 40 + ...chpadContentBitlinkBadRequestException.php | 40 + ...nchpadContentBitlinkForbiddenException.php | 40 + ...entBitlinkInternalServerErrorException.php | 40 + ...unchpadContentBitlinkNotFoundException.php | 40 + ...tentBitlinkServiceUnavailableException.php | 40 + ...unchpadContentImageBadRequestException.php | 40 + ...aunchpadContentImageForbiddenException.php | 40 + ...ntentImageInternalServerErrorException.php | 40 + ...LaunchpadContentImageNotFoundException.php | 40 + ...ontentImageServiceUnavailableException.php | 40 + ...nchpadContentSocialBadRequestException.php | 40 + ...unchpadContentSocialForbiddenException.php | 40 + ...tentSocialInternalServerErrorException.php | 40 + ...aunchpadContentSocialNotFoundException.php | 40 + ...ntentSocialServiceUnavailableException.php | 40 + ...ContentYoutubeVideoBadRequestException.php | 40 + ...dContentYoutubeVideoForbiddenException.php | 40 + ...utubeVideoInternalServerErrorException.php | 40 + ...adContentYoutubeVideoNotFoundException.php | 40 + ...outubeVideoServiceUnavailableException.php | 40 + .../CreateLaunchpadForbiddenException.php | 40 + ...eLaunchpadInternalServerErrorException.php | 40 + ...teLaunchpadServiceUnavailableException.php | 40 + .../CreateLinkBadRequestException.php | 40 + lib/Exception/CreateLinkConflictException.php | 40 + .../CreateLinkExpectationFailedException.php | 40 + .../CreateLinkForbiddenException.php | 40 + ...CreateLinkInternalServerErrorException.php | 40 + lib/Exception/CreateLinkNotFoundException.php | 40 + .../CreateLinkPaymentRequiredException.php | 40 + .../CreateLinkServiceUnavailableException.php | 40 + .../CreateLinkTooManyRequestsException.php | 40 + ...CreateLinkUnprocessableEntityException.php | 40 + .../CreateOAuthAppBadRequestException.php | 40 + .../CreateOAuthAppForbiddenException.php | 40 + ...teOAuthAppInternalServerErrorException.php | 40 + ...inVerificationEmailBadRequestException.php | 40 + ...ainVerificationEmailForbiddenException.php | 40 + ...ationEmailInternalServerErrorException.php | 40 + ...ificationEmailPaymentRequiredException.php | 40 + ...nizationInvitationsBadRequestException.php | 40 + ...anizationInvitationsForbiddenException.php | 40 + ...nvitationsInternalServerErrorException.php | 40 + ...ionInvitationsPaymentRequiredException.php | 40 + ...InvitationsServiceUnavailableException.php | 40 + ...ionInvitationsTooManyRequestsException.php | 40 + ...nizationSSOSettingsBadRequestException.php | 40 + ...anizationSSOSettingsForbiddenException.php | 40 + ...SOSettingsInternalServerErrorException.php | 40 + ...ionSSOSettingsPaymentRequiredException.php | 40 + ...SSOSettingsServiceUnavailableException.php | 40 + ...SOSettingsUnprocessableEntityException.php | 40 + ...OverridesForBitlinkBadRequestException.php | 40 + ...teOverridesForBitlinkConflictException.php | 40 + ...eOverridesForBitlinkForbiddenException.php | 40 + ...ForBitlinkInternalServerErrorException.php | 40 + ...teOverridesForBitlinkNotFoundException.php | 40 + ...idesForBitlinkPaymentRequiredException.php | 40 + ...sForBitlinkServiceUnavailableException.php | 40 + ...idesForBitlinkTooManyRequestsException.php | 40 + ...ForBitlinkUnprocessableEntityException.php | 40 + ...PalBillingAgreementBadRequestException.php | 40 + ...yPalBillingAgreementForbiddenException.php | 40 + ...gAgreementInternalServerErrorException.php | 40 + ...llingAgreementTokenBadRequestException.php | 40 + ...illingAgreementTokenForbiddenException.php | 40 + ...ementTokenInternalServerErrorException.php | 40 + ...ementTokenUnprocessableEntityException.php | 40 + ...gAgreementUnprocessableEntityException.php | 40 + ...CreatePaymentMethodBadRequestException.php | 40 + .../CreatePaymentMethodForbiddenException.php | 40 + ...mentMethodInternalServerErrorException.php | 40 + ...ymentMethodServiceUnavailableException.php | 40 + ...mentMethodUnprocessableEntityException.php | 40 + ...CreateQRCodePreviewBadRequestException.php | 40 + .../CreateQRCodePreviewForbiddenException.php | 40 + .../CreateQRCodePreviewGoneException.php | 40 + ...odePreviewInternalServerErrorException.php | 40 + .../CreateQRCodePreviewNotFoundException.php | 40 + ...eQRCodePreviewPaymentRequiredException.php | 40 + ...reateQRCodeTemplateBadRequestException.php | 40 + ...CreateQRCodeTemplateForbiddenException.php | 40 + .../CreateQRCodeTemplateGoneException.php | 40 + ...deTemplateInternalServerErrorException.php | 40 + .../CreateQRCodeTemplateNotFoundException.php | 40 + ...QRCodeTemplatePaymentRequiredException.php | 40 + ...eateShareableReportBadRequestException.php | 40 + ...reateShareableReportForbiddenException.php | 40 + ...ableReportInternalServerErrorException.php | 40 + ...CreateShareableReportNotFoundException.php | 40 + ...eableReportServiceUnavailableException.php | 40 + ...ifyIntegrationOAuthBadRequestException.php | 40 + ...opifyIntegrationOAuthConflictException.php | 40 + ...pifyIntegrationOAuthForbiddenException.php | 40 + ...ationOAuthInternalServerErrorException.php | 40 + ...rationOAuthServiceUnavailableException.php | 40 + ...ationOAuthUnprocessableEntityException.php | 40 + .../CreateSiteBadRequestException.php | 40 + .../CreateSiteContentBadRequestException.php | 40 + .../CreateSiteContentForbiddenException.php | 40 + ...iteContentInternalServerErrorException.php | 40 + .../CreateSiteContentNotFoundException.php | 40 + ...SiteContentServiceUnavailableException.php | 40 + .../CreateSiteForbiddenException.php | 40 + ...CreateSiteInternalServerErrorException.php | 40 + .../CreateSitePaymentRequiredException.php | 40 + .../CreateSiteServiceUnavailableException.php | 40 + ...CreateSiteUnprocessableEntityException.php | 40 + ...teStripeSetupIntentBadRequestException.php | 40 + ...ateStripeSetupIntentForbiddenException.php | 40 + ...etupIntentInternalServerErrorException.php | 40 + ...SetupIntentServiceUnavailableException.php | 40 + ...etupIntentUnprocessableEntityException.php | 40 + .../CreateSubscriptionBadRequestException.php | 40 + .../CreateSubscriptionForbiddenException.php | 40 + ...bscriptionInternalServerErrorException.php | 40 + ...bscriptionUnprocessableEntityException.php | 40 + .../CreateUserBadRequestException.php | 40 + ...CreateUserInternalServerErrorException.php | 40 + .../CreateUserTooManyRequestsException.php | 40 + ...CreateUserUnprocessableEntityException.php | 40 + ...eactivateDeeplinkAppForbiddenException.php | 40 + ...eeplinkAppInternalServerErrorException.php | 40 + ...DeactivateDeeplinkAppNotFoundException.php | 40 + ...ateDeeplinkAppPaymentRequiredException.php | 40 + ...DeeplinkAppServiceUnavailableException.php | 40 + ...lyticsModuleByReportForbiddenException.php | 40 + ...leByReportInternalServerErrorException.php | 40 + ...alyticsModuleByReportNotFoundException.php | 40 + ...ModuleByReportPaymentRequiredException.php | 40 + ...eleteAnalyticsModuleForbiddenException.php | 40 + ...ticsModuleInternalServerErrorException.php | 40 + ...DeleteAnalyticsModuleNotFoundException.php | 40 + ...nalyticsModulePaymentRequiredException.php | 40 + ...leteAnalyticsReportBadRequestException.php | 40 + ...eleteAnalyticsReportForbiddenException.php | 40 + ...ticsReportInternalServerErrorException.php | 40 + ...DeleteAnalyticsReportNotFoundException.php | 40 + ...nalyticsReportPaymentRequiredException.php | 40 + ...yticsReportServiceUnavailableException.php | 40 + .../DeleteCampaignForbiddenException.php | 40 + ...teCampaignInternalServerErrorException.php | 40 + .../DeleteCampaignNotFoundException.php | 40 + ...DeleteCampaignPaymentRequiredException.php | 40 + ...eteCampaignServiceUnavailableException.php | 40 + ...vaUserBrandsByLoginBadRequestException.php | 40 + ...ndsByLoginInternalServerErrorException.php | 40 + ...eleteChannelBitlinkBadRequestException.php | 40 + ...nelBitlinkInternalServerErrorException.php | 40 + ...nelBitlinkUnprocessableEntityException.php | 40 + .../DeleteChannelForbiddenException.php | 40 + ...eteChannelInternalServerErrorException.php | 40 + .../DeleteChannelNotFoundException.php | 40 + .../DeleteChannelPaymentRequiredException.php | 40 + ...leteChannelServiceUnavailableException.php | 40 + .../DeleteCustomDomainForbiddenException.php | 40 + ...stomDomainInternalServerErrorException.php | 40 + ...stomDomainUnprocessableEntityException.php | 40 + .../DeleteDeeplinkRuleForbiddenException.php | 40 + ...eplinkRuleInternalServerErrorException.php | 40 + .../DeleteDeeplinkRuleNotFoundException.php | 40 + ...teDeeplinkRulePaymentRequiredException.php | 40 + ...eeplinkRuleServiceUnavailableException.php | 40 + .../DeleteEmailBadRequestException.php | 40 + .../DeleteEmailForbiddenException.php | 40 + ...eleteEmailInternalServerErrorException.php | 40 + .../DeleteEmailNotFoundException.php | 40 + ...DeleteEmailServiceUnavailableException.php | 40 + .../DeleteGroupForbiddenException.php | 40 + ...eleteGroupInternalServerErrorException.php | 40 + .../DeleteGroupNotFoundException.php | 40 + ...DeleteGroupServiceUnavailableException.php | 40 + .../DeleteGroupTooManyRequestsException.php | 40 + ...eteIntegrationOAuthBadRequestException.php | 40 + ...leteIntegrationOAuthForbiddenException.php | 40 + ...ationOAuthInternalServerErrorException.php | 40 + ...rationOAuthServiceUnavailableException.php | 40 + .../DeleteInvitationForbiddenException.php | 40 + ...InvitationInternalServerErrorException.php | 40 + .../DeleteInvitationNotFoundException.php | 40 + ...leteInvitationTooManyRequestsException.php | 40 + .../DeleteLaunchpadBadRequestException.php | 40 + ...eleteLaunchpadButtonForbiddenException.php | 40 + ...hpadButtonInternalServerErrorException.php | 40 + ...DeleteLaunchpadButtonNotFoundException.php | 40 + ...chpadButtonServiceUnavailableException.php | 40 + .../DeleteLaunchpadForbiddenException.php | 40 + ...chpadImageByImageUseForbiddenException.php | 40 + ...ByImageUseInternalServerErrorException.php | 40 + ...nchpadImageByImageUseNotFoundException.php | 40 + ...eByImageUseServiceUnavailableException.php | 40 + ...eLaunchpadInternalServerErrorException.php | 40 + .../DeleteLaunchpadNotFoundException.php | 40 + ...teLaunchpadServiceUnavailableException.php | 40 + ...DeleteQRCodeTemplateForbiddenException.php | 40 + ...deTemplateInternalServerErrorException.php | 40 + .../DeleteQRCodeTemplateNotFoundException.php | 40 + ...odeTemplateServiceUnavailableException.php | 40 + .../DeleteSiteBadRequestException.php | 40 + .../DeleteSiteButtonBadRequestException.php | 40 + .../DeleteSiteButtonForbiddenException.php | 40 + ...SiteButtonInternalServerErrorException.php | 40 + .../DeleteSiteButtonNotFoundException.php | 40 + ...eSiteButtonServiceUnavailableException.php | 40 + .../DeleteSiteForbiddenException.php | 40 + ...DeleteSiteInternalServerErrorException.php | 40 + lib/Exception/DeleteSiteNotFoundException.php | 40 + .../DeleteSiteServiceUnavailableException.php | 40 + .../DeleteUserBadRequestException.php | 40 + .../DeleteUserForbiddenException.php | 40 + ...DeleteUserInternalServerErrorException.php | 40 + .../DeleteUserWithRoleBadRequestException.php | 40 + .../DeleteUserWithRoleForbiddenException.php | 40 + ...erWithRoleInternalServerErrorException.php | 40 + ...serWithRoleServiceUnavailableException.php | 40 + ...erWithRoleUnprocessableEntityException.php | 40 + .../Disable2FABadRequestException.php | 40 + .../Disable2FAForbiddenException.php | 40 + ...Disable2FAInternalServerErrorException.php | 40 + lib/Exception/Disable2FANotFoundException.php | 40 + .../Disable2FAServiceUnavailableException.php | 40 + .../Disable2FAUnauthorizedException.php | 40 + ...Disable2FAUnprocessableEntityException.php | 40 + ...scardDraftLaunchpadBadRequestException.php | 40 + ...iscardDraftLaunchpadForbiddenException.php | 40 + ...tLaunchpadInternalServerErrorException.php | 40 + ...ftLaunchpadServiceUnavailableException.php | 40 + .../DiscardSiteDraftBadRequestException.php | 40 + .../DiscardSiteDraftForbiddenException.php | 40 + ...dSiteDraftInternalServerErrorException.php | 40 + .../DiscardSiteDraftNotFoundException.php | 40 + ...dSiteDraftUnprocessableEntityException.php | 40 + ...ganizationInternalServerErrorException.php | 40 + ...ganizationUnprocessableEntityException.php | 40 + ...cateAnalyticsReportBadRequestException.php | 40 + ...icateAnalyticsReportForbiddenException.php | 40 + ...ticsReportInternalServerErrorException.php | 40 + ...licateAnalyticsReportNotFoundException.php | 40 + ...yticsReportServiceUnavailableException.php | 40 + .../EditCustomDomainForbiddenException.php | 40 + ...stomDomainInternalServerErrorException.php | 40 + .../EditQRCodePreviewBadRequestException.php | 40 + .../EditQRCodePreviewForbiddenException.php | 40 + .../EditQRCodePreviewGoneException.php | 40 + ...odePreviewInternalServerErrorException.php | 40 + .../EditQRCodePreviewNotFoundException.php | 40 + ...tQRCodePreviewPaymentRequiredException.php | 40 + ...valuateInterventionBadRequestException.php | 40 + ...EvaluateInterventionForbiddenException.php | 40 + ...terventionInternalServerErrorException.php | 40 + ...nterventionServiceUnavailableException.php | 40 + ...terventionUnprocessableEntityException.php | 40 + .../ExperimentDecideBadRequestException.php | 40 + .../ExperimentDecideForbiddenException.php | 40 + ...mentDecideInternalServerErrorException.php | 40 + ...mentDecideUnprocessableEntityException.php | 40 + .../ExperimentTrackForbiddenException.php | 40 + ...imentTrackInternalServerErrorException.php | 40 + ...imentTrackUnprocessableEntityException.php | 40 + ...eOAuthAuthorizationBadRequestException.php | 40 + ...horizationInternalServerErrorException.php | 40 + ...ireOAuthAuthorizationNotFoundException.php | 40 + ...thorizationServiceUnavailableException.php | 40 + ...chCompDomainPurchaseForbiddenException.php | 40 + ...pDomainPurchaseGatewayTimeoutException.php | 40 + ...inPurchaseInternalServerErrorException.php | 40 + ...AgreementsInternalServerErrorException.php | 40 + .../FetchDomainStatusForbiddenException.php | 40 + ...tchDomainStatusGatewayTimeoutException.php | 40 + ...mainStatusInternalServerErrorException.php | 40 + .../ForgetUserForbiddenException.php | 40 + ...ForgetUserInternalServerErrorException.php | 40 + .../ForgetUserServiceUnavailableException.php | 40 + .../FormCaptureBadRequestException.php | 40 + .../FormCaptureForbiddenException.php | 40 + ...ormCaptureInternalServerErrorException.php | 40 + ...FormCaptureServiceUnavailableException.php | 40 + ...ormCaptureUnprocessableEntityException.php | 40 + lib/Exception/GatewayTimeoutException.php | 19 + ...rateBillingSignatureForbiddenException.php | 40 + ...gSignatureInternalServerErrorException.php | 40 + .../GetAccessFeaturesForbiddenException.php | 40 + ...ssFeaturesInternalServerErrorException.php | 40 + ...eButtonClicksByCityBadRequestException.php | 40 + ...teButtonClicksByCityForbiddenException.php | 40 + ...icksByCityInternalServerErrorException.php | 40 + ...licksByCityServiceUnavailableException.php | 40 + ...ttonClicksByCountryBadRequestException.php | 40 + ...uttonClicksByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...ksByCountryServiceUnavailableException.php | 40 + ...uttonClicksByDeviceBadRequestException.php | 40 + ...ButtonClicksByDeviceForbiddenException.php | 40 + ...ksByDeviceInternalServerErrorException.php | 40 + ...cksByDeviceServiceUnavailableException.php | 40 + ...uttonClicksOverTimeBadRequestException.php | 40 + ...ButtonClicksOverTimeForbiddenException.php | 40 + ...ksOverTimeInternalServerErrorException.php | 40 + ...cksOverTimeServiceUnavailableException.php | 40 + ...gateCodeScansByCityBadRequestException.php | 40 + ...egateCodeScansByCityForbiddenException.php | 40 + ...cansByCityInternalServerErrorException.php | 40 + ...ScansByCityServiceUnavailableException.php | 40 + ...eCodeScansByCountryBadRequestException.php | 40 + ...teCodeScansByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...nsByCountryServiceUnavailableException.php | 40 + ...teCodeScansOverTimeBadRequestException.php | 40 + ...ateCodeScansOverTimeForbiddenException.php | 40 + ...nsOverTimeInternalServerErrorException.php | 40 + ...ansOverTimeServiceUnavailableException.php | 40 + ...rdDownloadsOverTimeBadRequestException.php | 40 + ...ardDownloadsOverTimeForbiddenException.php | 40 + ...dsOverTimeInternalServerErrorException.php | 40 + ...adsOverTimeServiceUnavailableException.php | 40 + ...agementsForBitlinksBadRequestException.php | 40 + ...tlinksByCitiesFacetBadRequestException.php | 40 + ...itlinksByCitiesFacetForbiddenException.php | 40 + ...sForBitlinksByCitiesFacetGoneException.php | 40 + ...itiesFacetInternalServerErrorException.php | 40 + ...BitlinksByCitiesFacetNotFoundException.php | 40 + ...sByCitiesFacetPaymentRequiredException.php | 40 + ...CitiesFacetServiceUnavailableException.php | 40 + ...sForBitlinksByFacetBadRequestException.php | 40 + ...tsForBitlinksByFacetForbiddenException.php | 40 + ...gementsForBitlinksByFacetGoneException.php | 40 + ...nksByFacetInternalServerErrorException.php | 40 + ...ntsForBitlinksByFacetNotFoundException.php | 40 + ...itlinksByFacetPaymentRequiredException.php | 40 + ...inksByFacetServiceUnavailableException.php | 40 + ...gagementsForBitlinksForbiddenException.php | 40 + ...ateEngagementsForBitlinksGoneException.php | 40 + ...orBitlinksInternalServerErrorException.php | 40 + ...ngagementsForBitlinksNotFoundException.php | 40 + ...ntsForBitlinksPaymentRequiredException.php | 40 + ...ForBitlinksServiceUnavailableException.php | 40 + ...ateLinkClicksByCityBadRequestException.php | 40 + ...gateLinkClicksByCityForbiddenException.php | 40 + ...icksByCityInternalServerErrorException.php | 40 + ...licksByCityServiceUnavailableException.php | 40 + ...LinkClicksByCountryBadRequestException.php | 40 + ...eLinkClicksByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...ksByCountryServiceUnavailableException.php | 40 + ...eLinkClicksByDeviceBadRequestException.php | 40 + ...teLinkClicksByDeviceForbiddenException.php | 40 + ...ksByDeviceInternalServerErrorException.php | 40 + ...cksByDeviceServiceUnavailableException.php | 40 + ...inkClicksByReferrerBadRequestException.php | 40 + ...LinkClicksByReferrerForbiddenException.php | 40 + ...ByReferrerInternalServerErrorException.php | 40 + ...sByReferrerServiceUnavailableException.php | 40 + ...eLinkClicksOverTimeBadRequestException.php | 40 + ...teLinkClicksOverTimeForbiddenException.php | 40 + ...ksOverTimeInternalServerErrorException.php | 40 + ...cksOverTimeServiceUnavailableException.php | 40 + ...gatePageViewsByCityBadRequestException.php | 40 + ...egatePageViewsByCityForbiddenException.php | 40 + ...iewsByCityInternalServerErrorException.php | 40 + ...ViewsByCityServiceUnavailableException.php | 40 + ...ePageViewsByCountryBadRequestException.php | 40 + ...tePageViewsByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...wsByCountryServiceUnavailableException.php | 40 + ...tePageViewsByDeviceBadRequestException.php | 40 + ...atePageViewsByDeviceForbiddenException.php | 40 + ...wsByDeviceInternalServerErrorException.php | 40 + ...ewsByDeviceServiceUnavailableException.php | 40 + ...PageViewsByReferrerBadRequestException.php | 40 + ...ePageViewsByReferrerForbiddenException.php | 40 + ...ByReferrerInternalServerErrorException.php | 40 + ...sByReferrerServiceUnavailableException.php | 40 + ...tePageViewsOverTimeBadRequestException.php | 40 + ...atePageViewsOverTimeForbiddenException.php | 40 + ...wsOverTimeInternalServerErrorException.php | 40 + ...ewsOverTimeServiceUnavailableException.php | 40 + ...regatePagesOverviewBadRequestException.php | 40 + ...gregatePagesOverviewForbiddenException.php | 40 + ...esOverviewInternalServerErrorException.php | 40 + ...gesOverviewServiceUnavailableException.php | 40 + ...gateSiteViewsByCityBadRequestException.php | 40 + ...egateSiteViewsByCityForbiddenException.php | 40 + ...iewsByCityInternalServerErrorException.php | 40 + ...ViewsByCityServiceUnavailableException.php | 40 + ...eSiteViewsByCountryBadRequestException.php | 40 + ...teSiteViewsByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...wsByCountryServiceUnavailableException.php | 40 + ...teSiteViewsByDeviceBadRequestException.php | 40 + ...ateSiteViewsByDeviceForbiddenException.php | 40 + ...wsByDeviceInternalServerErrorException.php | 40 + ...ewsByDeviceServiceUnavailableException.php | 40 + ...SiteViewsByReferrerBadRequestException.php | 40 + ...eSiteViewsByReferrerForbiddenException.php | 40 + ...ByReferrerInternalServerErrorException.php | 40 + ...sByReferrerServiceUnavailableException.php | 40 + ...teSiteViewsOverTimeBadRequestException.php | 40 + ...ateSiteViewsOverTimeForbiddenException.php | 40 + ...wsOverTimeInternalServerErrorException.php | 40 + ...ewsOverTimeServiceUnavailableException.php | 40 + ...regateSitesOverviewBadRequestException.php | 40 + ...gregateSitesOverviewForbiddenException.php | 40 + ...esOverviewInternalServerErrorException.php | 40 + ...tesOverviewServiceUnavailableException.php | 40 + ...gateTopButtonClicksBadRequestException.php | 40 + ...egateTopButtonClicksForbiddenException.php | 40 + ...ttonClicksInternalServerErrorException.php | 40 + ...uttonClicksServiceUnavailableException.php | 40 + ...gregateTopCodeScansBadRequestException.php | 40 + ...ggregateTopCodeScansForbiddenException.php | 40 + ...pCodeScansInternalServerErrorException.php | 40 + ...opCodeScansServiceUnavailableException.php | 40 + ...regateTopLinkClicksBadRequestException.php | 40 + ...gregateTopLinkClicksForbiddenException.php | 40 + ...LinkClicksInternalServerErrorException.php | 40 + ...pLinkClicksServiceUnavailableException.php | 40 + ...etAllBrandCampaignsBadRequestException.php | 40 + ...dCampaignsInternalServerErrorException.php | 40 + ...dCampaignsUnprocessableEntityException.php | 40 + .../GetAnalyticsModuleForbiddenException.php | 40 + ...ticsModuleInternalServerErrorException.php | 40 + .../GetAnalyticsModuleNotFoundException.php | 40 + ...yticsModuleServiceUnavailableException.php | 40 + .../GetAnalyticsReportForbiddenException.php | 40 + ...ticsReportInternalServerErrorException.php | 40 + .../GetAnalyticsReportNotFoundException.php | 40 + ...yticsReportServiceUnavailableException.php | 40 + ...rtsByGroupPaginatedBadRequestException.php | 40 + ...ortsByGroupPaginatedForbiddenException.php | 40 + ...pPaginatedInternalServerErrorException.php | 40 + ...GroupPaginatedPaymentRequiredException.php | 40 + ...upPaginatedServiceUnavailableException.php | 40 + ...sReportsListByGroupBadRequestException.php | 40 + ...csReportsListByGroupForbiddenException.php | 40 + ...istByGroupInternalServerErrorException.php | 40 + ...rtsListByGroupPaymentRequiredException.php | 40 + ...ListByGroupServiceUnavailableException.php | 40 + .../GetAnalyticsUsageBadRequestException.php | 40 + .../GetAnalyticsUsageForbiddenException.php | 40 + ...yticsUsageInternalServerErrorException.php | 40 + ...lyticsUsageServiceUnavailableException.php | 40 + .../GetAppAssociationsForbiddenException.php | 40 + ...sociationsInternalServerErrorException.php | 40 + .../GetAppAssociationsNotFoundException.php | 40 + ...ppAssociationsPaymentRequiredException.php | 40 + ...ssociationsServiceUnavailableException.php | 40 + ...etAutobrandedDomainBadRequestException.php | 40 + ...ndedDomainInternalServerErrorException.php | 40 + .../GetBillingAccountForbiddenException.php | 40 + .../GetBillingAccountIDForbiddenException.php | 40 + ...gAccountIDInternalServerErrorException.php | 40 + ...ingAccountInternalServerErrorException.php | 40 + .../GetBillingProviderBadRequestException.php | 40 + .../GetBillingProviderForbiddenException.php | 40 + ...ngProviderInternalServerErrorException.php | 40 + ...tBitlinkClickCountsBadRequestException.php | 40 + .../GetBitlinkClickCountsGoneException.php | 40 + ...lickCountsInternalServerErrorException.php | 40 + ...GetBitlinkClickCountsNotFoundException.php | 40 + ...ClickCountsServiceUnavailableException.php | 40 + ...lickCountsUnprocessableEntityException.php | 40 + .../GetBitlinkClicksBadRequestException.php | 40 + .../GetBitlinkClicksForbiddenException.php | 40 + .../GetBitlinkClicksGoneException.php | 40 + ...linkClicksInternalServerErrorException.php | 40 + ...ForBitlinkByBrowserBadRequestException.php | 40 + ...sForBitlinkByBrowserForbiddenException.php | 40 + ...etricsForBitlinkByBrowserGoneException.php | 40 + ...kByBrowserInternalServerErrorException.php | 40 + ...csForBitlinkByBrowserNotFoundException.php | 40 + ...tlinkByBrowserPaymentRequiredException.php | 40 + ...nkByBrowserServiceUnavailableException.php | 40 + ...sForBitlinkByCitiesBadRequestException.php | 40 + ...csForBitlinkByCitiesForbiddenException.php | 40 + ...MetricsForBitlinkByCitiesGoneException.php | 40 + ...nkByCitiesInternalServerErrorException.php | 40 + ...icsForBitlinkByCitiesNotFoundException.php | 40 + ...itlinkByCitiesPaymentRequiredException.php | 40 + ...inkByCitiesServiceUnavailableException.php | 40 + ...rBitlinkByCountriesBadRequestException.php | 40 + ...orBitlinkByCountriesForbiddenException.php | 40 + ...ricsForBitlinkByCountriesGoneException.php | 40 + ...yCountriesInternalServerErrorException.php | 40 + ...ForBitlinkByCountriesNotFoundException.php | 40 + ...inkByCountriesPaymentRequiredException.php | 40 + ...ByCountriesServiceUnavailableException.php | 40 + ...rBitlinkByDevicesOSBadRequestException.php | 40 + ...orBitlinkByDevicesOSForbiddenException.php | 40 + ...ricsForBitlinkByDevicesOSGoneException.php | 40 + ...yDevicesOSInternalServerErrorException.php | 40 + ...ForBitlinkByDevicesOSNotFoundException.php | 40 + ...inkByDevicesOSPaymentRequiredException.php | 40 + ...ByDevicesOSServiceUnavailableException.php | 40 + .../GetBitlinkClicksNotFoundException.php | 40 + ...tlinkClicksServiceUnavailableException.php | 40 + ...itlinkClicksSummaryBadRequestException.php | 40 + ...BitlinkClicksSummaryForbiddenException.php | 40 + .../GetBitlinkClicksSummaryGoneException.php | 40 + ...cksSummaryInternalServerErrorException.php | 40 + ...tBitlinkClicksSummaryNotFoundException.php | 40 + ...icksSummaryServiceUnavailableException.php | 40 + .../GetBitlinkScansBadRequestException.php | 40 + .../GetBitlinkScansForbiddenException.php | 40 + .../GetBitlinkScansGoneException.php | 40 + ...tlinkScansInternalServerErrorException.php | 40 + .../GetBitlinkScansNotFoundException.php | 40 + ...itlinkScansServiceUnavailableException.php | 40 + ...BitlinkScansSummaryBadRequestException.php | 40 + ...tBitlinkScansSummaryForbiddenException.php | 40 + .../GetBitlinkScansSummaryGoneException.php | 40 + ...ansSummaryInternalServerErrorException.php | 40 + ...etBitlinkScansSummaryNotFoundException.php | 40 + ...cansSummaryServiceUnavailableException.php | 40 + ...rdDownloadsByCitiesBadRequestException.php | 40 + ...ardDownloadsByCitiesForbiddenException.php | 40 + ...dsByCitiesInternalServerErrorException.php | 40 + ...CardDownloadsByCitiesNotFoundException.php | 40 + ...adsByCitiesServiceUnavailableException.php | 40 + ...ownloadsByCountriesBadRequestException.php | 40 + ...DownloadsByCountriesForbiddenException.php | 40 + ...yCountriesInternalServerErrorException.php | 40 + ...dDownloadsByCountriesNotFoundException.php | 40 + ...ByCountriesServiceUnavailableException.php | 40 + ...dDownloadsByDevicesBadRequestException.php | 40 + ...rdDownloadsByDevicesForbiddenException.php | 40 + ...sByDevicesInternalServerErrorException.php | 40 + ...ardDownloadsByDevicesNotFoundException.php | 40 + ...dsByDevicesServiceUnavailableException.php | 40 + ...rdDownloadsOverTimeBadRequestException.php | 40 + ...ardDownloadsOverTimeForbiddenException.php | 40 + ...dsOverTimeInternalServerErrorException.php | 40 + ...CardDownloadsOverTimeNotFoundException.php | 40 + ...adsOverTimeServiceUnavailableException.php | 40 + .../GetBrandCampaignBadRequestException.php | 40 + ...ndCampaignInternalServerErrorException.php | 40 + ...ndCampaignUnprocessableEntityException.php | 40 + .../GetBulkUploadsBadRequestException.php | 40 + .../GetBulkUploadsForbiddenException.php | 40 + ...ulkUploadsInternalServerErrorException.php | 40 + .../GetBulkUploadsNotFoundException.php | 40 + ...GetBulkUploadsPaymentRequiredException.php | 40 + ...BulkUploadsServiceUnavailableException.php | 40 + .../GetButtonClicksBadRequestException.php | 40 + .../GetButtonClicksForbiddenException.php | 40 + .../GetButtonClicksGoneException.php | 40 + ...ttonClicksInternalServerErrorException.php | 40 + .../GetButtonClicksNotFoundException.php | 40 + ...uttonClicksServiceUnavailableException.php | 40 + ...ButtonClicksSummaryBadRequestException.php | 40 + ...tButtonClicksSummaryForbiddenException.php | 40 + .../GetButtonClicksSummaryGoneException.php | 40 + ...cksSummaryInternalServerErrorException.php | 40 + ...etButtonClicksSummaryNotFoundException.php | 40 + ...icksSummaryServiceUnavailableException.php | 40 + .../GetCampaignClicksForbiddenException.php | 40 + ...aignClicksInternalServerErrorException.php | 40 + .../GetCampaignClicksNotFoundException.php | 40 + ...CampaignClicksPaymentRequiredException.php | 40 + ...paignClicksServiceUnavailableException.php | 40 + .../GetCanvaUserBrandBadRequestException.php | 40 + ...aUserBrandInternalServerErrorException.php | 40 + .../GetCanvaUserBrandNotFoundException.php | 40 + .../GetChildrenForBlockForbiddenException.php | 40 + ...enForBlockInternalServerErrorException.php | 40 + .../GetChildrenForBlockNotFoundException.php | 40 + ...renForBlockServiceUnavailableException.php | 40 + ...GetConsumableFeaturesConflictException.php | 30 + ...etConsumableFeaturesForbiddenException.php | 40 + ...leFeaturesInternalServerErrorException.php | 40 + ...CountryCallingCodesBadRequestException.php | 40 + ...llingCodesInternalServerErrorException.php | 40 + ...etCurrencyInternalServerErrorException.php | 40 + ...rrencyListInternalServerErrorException.php | 40 + .../GetCustomDomainForbiddenException.php | 40 + ...stomDomainInternalServerErrorException.php | 40 + .../GetCustomDomainNotFoundException.php | 40 + ...ustomDomainServiceUnavailableException.php | 40 + .../GetCustomDomainsForbiddenException.php | 40 + ...tomDomainsInternalServerErrorException.php | 40 + ...stomDomainsServiceUnavailableException.php | 40 + ...tomDomainsUnprocessableEntityException.php | 40 + .../GetDeeplinkAppForbiddenException.php | 40 + ...eeplinkAppInternalServerErrorException.php | 40 + .../GetDeeplinkAppNotFoundException.php | 40 + ...DeeplinkAppServiceUnavailableException.php | 40 + .../GetDeeplinkAppsForbiddenException.php | 40 + ...eplinkAppsInternalServerErrorException.php | 40 + ...eeplinkAppsServiceUnavailableException.php | 40 + ...eeplinkMetricsRollupForbiddenException.php | 40 + .../GetDeeplinkMetricsRollupGoneException.php | 40 + ...ricsRollupInternalServerErrorException.php | 40 + ...DeeplinkMetricsRollupNotFoundException.php | 40 + ...kMetricsRollupPaymentRequiredException.php | 40 + ...tricsRollupServiceUnavailableException.php | 40 + .../GetDeeplinkRulesForbiddenException.php | 40 + ...plinkRulesInternalServerErrorException.php | 40 + .../GetDeeplinkRulesNotFoundException.php | 40 + ...tDeeplinkRulesPaymentRequiredException.php | 40 + ...eplinkRulesServiceUnavailableException.php | 40 + ...tDeeplinkRulesTooManyRequestsException.php | 40 + ...istrarInfoInternalServerErrorException.php | 40 + .../GetEngagementsBadRequestException.php | 40 + .../GetEngagementsForbiddenException.php | 40 + lib/Exception/GetEngagementsGoneException.php | 40 + ...ngagementsInternalServerErrorException.php | 40 + .../GetEngagementsNotFoundException.php | 40 + ...etEngagementsSampleBadRequestException.php | 40 + ...GetEngagementsSampleForbiddenException.php | 40 + ...entsSampleInternalServerErrorException.php | 40 + ...EngagementsServiceUnavailableException.php | 40 + ...tEngagementsSummaryBadRequestException.php | 40 + ...etEngagementsSummaryForbiddenException.php | 40 + .../GetEngagementsSummaryGoneException.php | 40 + ...ntsSummaryInternalServerErrorException.php | 40 + ...GetEngagementsSummaryNotFoundException.php | 40 + ...entsSummaryServiceUnavailableException.php | 40 + .../GetFocusInternalServerErrorException.php | 40 + ...tGroupBitlinksCountBadRequestException.php | 40 + ...etGroupBitlinksCountForbiddenException.php | 40 + ...linksCountInternalServerErrorException.php | 40 + ...pBitlinksCountPaymentRequiredException.php | 40 + ...BitlinksCountRollupBadRequestException.php | 40 + ...pBitlinksCountRollupForbiddenException.php | 40 + ...ountRollupInternalServerErrorException.php | 40 + ...nksCountRollupPaymentRequiredException.php | 40 + ...CountRollupServiceUnavailableException.php | 40 + ...nksCountRollupTooManyRequestsException.php | 40 + ...pButtonClicksByCityBadRequestException.php | 40 + ...upButtonClicksByCityForbiddenException.php | 40 + ...icksByCityInternalServerErrorException.php | 40 + ...licksByCityServiceUnavailableException.php | 40 + ...ttonClicksByCountryBadRequestException.php | 40 + ...uttonClicksByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...ksByCountryServiceUnavailableException.php | 40 + ...uttonClicksByDeviceBadRequestException.php | 40 + ...ButtonClicksByDeviceForbiddenException.php | 40 + ...ksByDeviceInternalServerErrorException.php | 40 + ...cksByDeviceServiceUnavailableException.php | 40 + ...uttonClicksOverTimeBadRequestException.php | 40 + ...ButtonClicksOverTimeForbiddenException.php | 40 + ...ksOverTimeInternalServerErrorException.php | 40 + ...cksOverTimeServiceUnavailableException.php | 40 + ...tGroupClicksByFacetBadRequestException.php | 40 + ...etGroupClicksByFacetForbiddenException.php | 40 + ...cksByFacetInternalServerErrorException.php | 40 + ...pClicksByFacetPaymentRequiredException.php | 40 + ...ClicksByFacetRollupBadRequestException.php | 40 + ...pClicksByFacetRollupForbiddenException.php | 40 + ...acetRollupInternalServerErrorException.php | 40 + ...sByFacetRollupPaymentRequiredException.php | 40 + ...FacetRollupServiceUnavailableException.php | 40 + ...icksByFacetServiceUnavailableException.php | 40 + ...roupCodeScansByCityBadRequestException.php | 40 + ...GroupCodeScansByCityForbiddenException.php | 40 + ...cansByCityInternalServerErrorException.php | 40 + ...ScansByCityServiceUnavailableException.php | 40 + ...pCodeScansByCountryBadRequestException.php | 40 + ...upCodeScansByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...nsByCountryServiceUnavailableException.php | 40 + ...upCodeScansOverTimeBadRequestException.php | 40 + ...oupCodeScansOverTimeForbiddenException.php | 40 + ...nsOverTimeInternalServerErrorException.php | 40 + ...ansOverTimeServiceUnavailableException.php | 40 + ...rdDownloadsByBlocksBadRequestException.php | 40 + ...ardDownloadsByBlocksForbiddenException.php | 40 + ...dsByBlocksInternalServerErrorException.php | 40 + ...CardDownloadsByBlocksNotFoundException.php | 40 + ...adsByBlocksServiceUnavailableException.php | 40 + ...rdDownloadsByCitiesBadRequestException.php | 40 + ...ardDownloadsByCitiesForbiddenException.php | 40 + ...dsByCitiesInternalServerErrorException.php | 40 + ...CardDownloadsByCitiesNotFoundException.php | 40 + ...adsByCitiesServiceUnavailableException.php | 40 + ...ownloadsByCountriesBadRequestException.php | 40 + ...DownloadsByCountriesForbiddenException.php | 40 + ...yCountriesInternalServerErrorException.php | 40 + ...dDownloadsByCountriesNotFoundException.php | 40 + ...ByCountriesServiceUnavailableException.php | 40 + ...dDownloadsByDevicesBadRequestException.php | 40 + ...rdDownloadsByDevicesForbiddenException.php | 40 + ...sByDevicesInternalServerErrorException.php | 40 + ...ardDownloadsByDevicesNotFoundException.php | 40 + ...dsByDevicesServiceUnavailableException.php | 40 + ...wnloadsByMicrositesBadRequestException.php | 40 + ...ownloadsByMicrositesForbiddenException.php | 40 + ...MicrositesInternalServerErrorException.php | 40 + ...DownloadsByMicrositesNotFoundException.php | 40 + ...yMicrositesServiceUnavailableException.php | 40 + ...rdDownloadsOverTimeBadRequestException.php | 40 + ...ardDownloadsOverTimeForbiddenException.php | 40 + ...dsOverTimeInternalServerErrorException.php | 40 + ...CardDownloadsOverTimeNotFoundException.php | 40 + ...adsOverTimeServiceUnavailableException.php | 40 + ...oupLinkClicksByCityBadRequestException.php | 40 + ...roupLinkClicksByCityForbiddenException.php | 40 + ...icksByCityInternalServerErrorException.php | 40 + ...licksByCityServiceUnavailableException.php | 40 + ...LinkClicksByCountryBadRequestException.php | 40 + ...pLinkClicksByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...ksByCountryServiceUnavailableException.php | 40 + ...pLinkClicksByDeviceBadRequestException.php | 40 + ...upLinkClicksByDeviceForbiddenException.php | 40 + ...ksByDeviceInternalServerErrorException.php | 40 + ...cksByDeviceServiceUnavailableException.php | 40 + ...inkClicksByReferrerBadRequestException.php | 40 + ...LinkClicksByReferrerForbiddenException.php | 40 + ...ByReferrerInternalServerErrorException.php | 40 + ...sByReferrerServiceUnavailableException.php | 40 + ...pLinkClicksOverTimeBadRequestException.php | 40 + ...upLinkClicksOverTimeForbiddenException.php | 40 + ...ksOverTimeInternalServerErrorException.php | 40 + ...cksOverTimeServiceUnavailableException.php | 40 + ...roupPageViewsByCityBadRequestException.php | 40 + ...GroupPageViewsByCityForbiddenException.php | 40 + ...iewsByCityInternalServerErrorException.php | 40 + ...ViewsByCityServiceUnavailableException.php | 40 + ...pPageViewsByCountryBadRequestException.php | 40 + ...upPageViewsByCountryForbiddenException.php | 40 + ...sByCountryInternalServerErrorException.php | 40 + ...wsByCountryServiceUnavailableException.php | 40 + ...upPageViewsByDeviceBadRequestException.php | 40 + ...oupPageViewsByDeviceForbiddenException.php | 40 + ...wsByDeviceInternalServerErrorException.php | 40 + ...ewsByDeviceServiceUnavailableException.php | 40 + ...PageViewsByReferrerBadRequestException.php | 40 + ...pPageViewsByReferrerForbiddenException.php | 40 + ...ByReferrerInternalServerErrorException.php | 40 + ...sByReferrerServiceUnavailableException.php | 40 + ...upPageViewsOverTimeBadRequestException.php | 40 + ...oupPageViewsOverTimeForbiddenException.php | 40 + ...wsOverTimeInternalServerErrorException.php | 40 + ...ewsOverTimeServiceUnavailableException.php | 40 + ...tGroupPagesOverviewBadRequestException.php | 40 + ...etGroupPagesOverviewForbiddenException.php | 40 + ...esOverviewInternalServerErrorException.php | 40 + ...gesOverviewServiceUnavailableException.php | 40 + ...roupTopButtonClicksBadRequestException.php | 40 + ...GroupTopButtonClicksForbiddenException.php | 40 + ...ttonClicksInternalServerErrorException.php | 40 + ...uttonClicksServiceUnavailableException.php | 40 + ...etGroupTopCodeScansBadRequestException.php | 40 + ...GetGroupTopCodeScansForbiddenException.php | 40 + ...pCodeScansInternalServerErrorException.php | 40 + ...opCodeScansServiceUnavailableException.php | 40 + ...tGroupTopLinkClicksBadRequestException.php | 40 + ...etGroupTopLinkClicksForbiddenException.php | 40 + ...LinkClicksInternalServerErrorException.php | 40 + ...pLinkClicksServiceUnavailableException.php | 40 + .../GetGroupsByLoginForbiddenException.php | 40 + ...upsByLoginInternalServerErrorException.php | 40 + .../GetImageByGUIDBadRequestException.php | 40 + .../GetImageByGUIDForbiddenException.php | 40 + ...mageByGUIDInternalServerErrorException.php | 40 + .../GetImageByGUIDNotFoundException.php | 40 + ...ImageByGUIDServiceUnavailableException.php | 40 + ...ionOAuthsByClientIDBadRequestException.php | 40 + ...ByClientIDInternalServerErrorException.php | 40 + ...sByClientIDServiceUnavailableException.php | 40 + ...tInvitationsByLoginBadRequestException.php | 40 + ...etInvitationsByLoginForbiddenException.php | 40 + ...onsByLoginInternalServerErrorException.php | 40 + .../GetInvitationsForbiddenException.php | 40 + ...nvitationsInternalServerErrorException.php | 40 + ...rdDownloadsOverTimeBadRequestException.php | 40 + ...ardDownloadsOverTimeForbiddenException.php | 40 + ...dsOverTimeInternalServerErrorException.php | 40 + ...adsOverTimeServiceUnavailableException.php | 40 + .../GetLaunchpadForbiddenException.php | 40 + ...hpadImageByImageUseBadRequestException.php | 40 + ...chpadImageByImageUseForbiddenException.php | 40 + ...ByImageUseInternalServerErrorException.php | 40 + ...nchpadImageByImageUseNotFoundException.php | 40 + ...eByImageUseServiceUnavailableException.php | 40 + ...tLaunchpadInternalServerErrorException.php | 40 + .../GetLaunchpadNotFoundException.php | 40 + ...esetThemesInternalServerErrorException.php | 40 + ...resetThemesServiceUnavailableException.php | 40 + ...etLaunchpadServiceUnavailableException.php | 40 + ...etLaunchpadsForGroupForbiddenException.php | 40 + ...dsForGroupInternalServerErrorException.php | 40 + ...GetLaunchpadsForGroupNotFoundException.php | 40 + ...adsForGroupServiceUnavailableException.php | 40 + ...gementsDailySummaryBadRequestException.php | 40 + ...agementsDailySummaryForbiddenException.php | 40 + ...ilySummaryInternalServerErrorException.php | 40 + ...gagementsDailySummaryNotFoundException.php | 40 + ...ailySummaryServiceUnavailableException.php | 40 + ...ilySummaryUnprocessableEntityException.php | 40 + ...gementsDayDrillDownBadRequestException.php | 40 + ...agementsDayDrillDownForbiddenException.php | 40 + ...yDrillDownInternalServerErrorException.php | 40 + ...gagementsDayDrillDownNotFoundException.php | 40 + ...ayDrillDownServiceUnavailableException.php | 40 + ...yDrillDownUnprocessableEntityException.php | 40 + ...nkEngagementsReportBadRequestException.php | 40 + ...inkEngagementsReportForbiddenException.php | 40 + ...entsReportInternalServerErrorException.php | 40 + ...LinkEngagementsReportNotFoundException.php | 40 + ...mentsReportServiceUnavailableException.php | 40 + ...entsReportUnprocessableEntityException.php | 40 + ...formanceForLaunchpadForbiddenException.php | 40 + ...rLaunchpadInternalServerErrorException.php | 40 + ...rformanceForLaunchpadNotFoundException.php | 40 + ...orLaunchpadServiceUnavailableException.php | 40 + ...nkPerformanceForSiteForbiddenException.php | 40 + ...nceForSiteInternalServerErrorException.php | 40 + ...inkPerformanceForSiteNotFoundException.php | 40 + ...anceForSiteServiceUnavailableException.php | 40 + ...orLaunchpadByCitiesBadRequestException.php | 40 + ...ForLaunchpadByCitiesForbiddenException.php | 40 + ...adByCitiesInternalServerErrorException.php | 40 + ...sForLaunchpadByCitiesNotFoundException.php | 40 + ...nchpadByCitiesPaymentRequiredException.php | 40 + ...padByCitiesServiceUnavailableException.php | 40 + ...aunchpadByCountriesBadRequestException.php | 40 + ...LaunchpadByCountriesForbiddenException.php | 40 + ...yCountriesInternalServerErrorException.php | 40 + ...rLaunchpadByCountriesNotFoundException.php | 40 + ...ByCountriesServiceUnavailableException.php | 40 + ...rLaunchpadByDevicesBadRequestException.php | 40 + ...orLaunchpadByDevicesForbiddenException.php | 40 + ...dByDevicesInternalServerErrorException.php | 40 + ...ForLaunchpadByDevicesNotFoundException.php | 40 + ...chpadByDevicesPaymentRequiredException.php | 40 + ...adByDevicesServiceUnavailableException.php | 40 + ...aunchpadByReferrersBadRequestException.php | 40 + ...LaunchpadByReferrersForbiddenException.php | 40 + ...yReferrersInternalServerErrorException.php | 40 + ...rLaunchpadByReferrersNotFoundException.php | 40 + ...ByReferrersServiceUnavailableException.php | 40 + ...ricsForSiteByCitiesBadRequestException.php | 40 + ...tricsForSiteByCitiesForbiddenException.php | 40 + ...teByCitiesInternalServerErrorException.php | 40 + ...etricsForSiteByCitiesNotFoundException.php | 40 + ...orSiteByCitiesPaymentRequiredException.php | 40 + ...iteByCitiesServiceUnavailableException.php | 40 + ...icsForSiteByDevicesBadRequestException.php | 40 + ...ricsForSiteByDevicesForbiddenException.php | 40 + ...eByDevicesInternalServerErrorException.php | 40 + ...tricsForSiteByDevicesNotFoundException.php | 40 + ...rSiteByDevicesPaymentRequiredException.php | 40 + ...teByDevicesServiceUnavailableException.php | 40 + ...sForSiteByReferrersBadRequestException.php | 40 + ...csForSiteByReferrersForbiddenException.php | 40 + ...yReferrersInternalServerErrorException.php | 40 + ...icsForSiteByReferrersNotFoundException.php | 40 + ...ByReferrersServiceUnavailableException.php | 40 + ...ForSitesByCountriesBadRequestException.php | 40 + ...sForSitesByCountriesForbiddenException.php | 40 + ...yCountriesInternalServerErrorException.php | 40 + ...csForSitesByCountriesNotFoundException.php | 40 + ...ByCountriesServiceUnavailableException.php | 40 + .../GetOAuthAppsBadRequestException.php | 40 + ...tOAuthAppsInternalServerErrorException.php | 40 + .../GetOAuthAppsNotFoundException.php | 40 + ...etOAuthAppsServiceUnavailableException.php | 40 + ...orizationsInternalServerErrorException.php | 40 + ...etOAuthAuthorizationsNotFoundException.php | 40 + ...horizationsServiceUnavailableException.php | 40 + ...GetOrgDomainsStatusBadRequestException.php | 40 + .../GetOrgDomainsStatusForbiddenException.php | 40 + ...ainsStatusInternalServerErrorException.php | 40 + ...gDomainsStatusTooManyRequestsException.php | 40 + .../GetOrgEmailsForbiddenException.php | 40 + ...tOrgEmailsInternalServerErrorException.php | 40 + .../GetOrgEmailsNotFoundException.php | 40 + ...etOrgEmailsServiceUnavailableException.php | 40 + ...gInvitationRequestsBadRequestException.php | 40 + ...rgInvitationRequestsForbiddenException.php | 40 + ...onRequestsInternalServerErrorException.php | 40 + ...referencesInternalServerErrorException.php | 40 + ...tionActivityLogEntryForbiddenException.php | 40 + ...tyLogEntryInternalServerErrorException.php | 40 + ...ityLogEntryServiceUnavailableException.php | 40 + ...anizationActivityLogForbiddenException.php | 40 + ...ctivityLogInternalServerErrorException.php | 40 + ...ActivityLogServiceUnavailableException.php | 40 + ...FeatureUsageByGroupBadRequestException.php | 40 + ...nFeatureUsageByGroupForbiddenException.php | 40 + ...ageByGroupInternalServerErrorException.php | 40 + ...nizationFeatureUsageForbiddenException.php | 40 + ...atureUsageInternalServerErrorException.php | 40 + ...eatureUsageServiceUnavailableException.php | 40 + ...lUsageTotalsByGroupBadRequestException.php | 40 + ...alUsageTotalsByGroupForbiddenException.php | 40 + ...alsByGroupInternalServerErrorException.php | 40 + ...anizationSSOSettingsForbiddenException.php | 40 + ...SOSettingsInternalServerErrorException.php | 40 + ...ganizationSSOSettingsNotFoundException.php | 40 + ...ionSSOSettingsPaymentRequiredException.php | 40 + ...SSOSettingsServiceUnavailableException.php | 40 + ...anizationStripeInfoBadRequestException.php | 40 + ...ganizationStripeInfoForbiddenException.php | 40 + ...StripeInfoInternalServerErrorException.php | 40 + ...ideHistoryForBitlinkForbiddenException.php | 40 + ...ForBitlinkInternalServerErrorException.php | 40 + ...rideHistoryForBitlinkNotFoundException.php | 40 + ...toryForBitlinkPaymentRequiredException.php | 40 + ...yForBitlinkServiceUnavailableException.php | 40 + ...toryForBitlinkTooManyRequestsException.php | 40 + ...ideMetricsByVersionBadRequestException.php | 40 + ...rideMetricsByVersionForbiddenException.php | 40 + ...tOverrideMetricsByVersionGoneException.php | 40 + ...sByVersionInternalServerErrorException.php | 40 + ...rrideMetricsByVersionNotFoundException.php | 40 + ...tricsByVersionPaymentRequiredException.php | 40 + ...csByVersionServiceUnavailableException.php | 40 + ...tOverridesForBitlinkForbiddenException.php | 40 + .../GetOverridesForBitlinkGoneException.php | 40 + ...ForBitlinkInternalServerErrorException.php | 40 + ...etOverridesForBitlinkNotFoundException.php | 40 + ...idesForBitlinkPaymentRequiredException.php | 40 + ...sForBitlinkServiceUnavailableException.php | 40 + ...tOverridesForGroupsBadRequestException.php | 40 + ...etOverridesForGroupsForbiddenException.php | 40 + ...sForGroupsInternalServerErrorException.php | 40 + ...GetOverridesForGroupsNotFoundException.php | 40 + ...ridesForGroupsPaymentRequiredException.php | 40 + ...esForGroupsServiceUnavailableException.php | 40 + ...etPaymentInvoiceFileForbiddenException.php | 40 + ...nvoiceFileInternalServerErrorException.php | 40 + ...GetPaymentInvoiceFileNotFoundException.php | 40 + .../GetPaymentInvoiceForbiddenException.php | 40 + ...entInvoiceInternalServerErrorException.php | 40 + .../GetPaymentInvoicesForbiddenException.php | 40 + ...ntInvoicesInternalServerErrorException.php | 40 + ...GetPendingTierForOrgForbiddenException.php | 40 + ...TierForOrgInternalServerErrorException.php | 40 + .../GetPendingTierForOrgNotFoundException.php | 40 + ...PrivateGeoInternalServerErrorException.php | 40 + ...tProductUtilizationBadRequestException.php | 40 + ...etProductUtilizationForbiddenException.php | 40 + ...tilizationInternalServerErrorException.php | 40 + ...ValidPlansInternalServerErrorException.php | 40 + ...eValidPlansServiceUnavailableException.php | 40 + .../GetQRCHistoryBadRequestException.php | 40 + .../GetQRCHistoryForbiddenException.php | 40 + ...QRCHistoryInternalServerErrorException.php | 40 + .../GetQRCHistoryTooManyRequestsException.php | 40 + ...etQRCodeByBitlinkIdBadRequestException.php | 40 + ...GetQRCodeByBitlinkIdForbiddenException.php | 40 + .../GetQRCodeByBitlinkIdGoneException.php | 40 + ...yBitlinkIdInternalServerErrorException.php | 40 + .../GetQRCodeByBitlinkIdNotFoundException.php | 40 + .../GetQRCodeByIdBadRequestException.php | 40 + .../GetQRCodeByIdForbiddenException.php | 40 + lib/Exception/GetQRCodeByIdGoneException.php | 40 + ...QRCodeByIdInternalServerErrorException.php | 40 + .../GetQRCodeByIdNotFoundException.php | 40 + ...ustomizationOptionsBadRequestException.php | 40 + ...CustomizationOptionsForbiddenException.php | 40 + ...ionOptionsInternalServerErrorException.php | 40 + ...eCustomizationOptionsNotFoundException.php | 40 + ...ideMetricsByVersionBadRequestException.php | 40 + ...rideMetricsByVersionForbiddenException.php | 40 + ...eOverrideMetricsByVersionGoneException.php | 40 + ...sByVersionInternalServerErrorException.php | 40 + ...rrideMetricsByVersionNotFoundException.php | 40 + ...tricsByVersionPaymentRequiredException.php | 40 + ...csByVersionServiceUnavailableException.php | 40 + .../GetQRCodeTemplatesBadRequestException.php | 40 + .../GetQRCodeTemplatesForbiddenException.php | 40 + .../GetQRCodeTemplatesGoneException.php | 40 + ...eTemplatesInternalServerErrorException.php | 40 + .../GetQRCodeTemplatesNotFoundException.php | 40 + ...RCodeTemplatesPaymentRequiredException.php | 40 + ...egionsListInternalServerErrorException.php | 40 + ...titiesAfterDowngradeForbiddenException.php | 40 + ...rDowngradeInternalServerErrorException.php | 40 + .../GetSSOUsersBadRequestException.php | 40 + .../GetSSOUsersForbiddenException.php | 40 + ...etSSOUsersInternalServerErrorException.php | 40 + ...ForBitlinkByBrowserBadRequestException.php | 40 + ...sForBitlinkByBrowserForbiddenException.php | 40 + ...etricsForBitlinkByBrowserGoneException.php | 40 + ...kByBrowserInternalServerErrorException.php | 40 + ...csForBitlinkByBrowserNotFoundException.php | 40 + ...tlinkByBrowserPaymentRequiredException.php | 40 + ...nkByBrowserServiceUnavailableException.php | 40 + ...sForBitlinkByCitiesBadRequestException.php | 40 + ...csForBitlinkByCitiesForbiddenException.php | 40 + ...MetricsForBitlinkByCitiesGoneException.php | 40 + ...nkByCitiesInternalServerErrorException.php | 40 + ...icsForBitlinkByCitiesNotFoundException.php | 40 + ...itlinkByCitiesPaymentRequiredException.php | 40 + ...inkByCitiesServiceUnavailableException.php | 40 + ...rBitlinkByCountriesBadRequestException.php | 40 + ...orBitlinkByCountriesForbiddenException.php | 40 + ...ricsForBitlinkByCountriesGoneException.php | 40 + ...yCountriesInternalServerErrorException.php | 40 + ...ForBitlinkByCountriesNotFoundException.php | 40 + ...ByCountriesServiceUnavailableException.php | 40 + ...rBitlinkByDevicesOSBadRequestException.php | 40 + ...orBitlinkByDevicesOSForbiddenException.php | 40 + ...ricsForBitlinkByDevicesOSGoneException.php | 40 + ...yDevicesOSInternalServerErrorException.php | 40 + ...ForBitlinkByDevicesOSNotFoundException.php | 40 + ...inkByDevicesOSPaymentRequiredException.php | 40 + ...ByDevicesOSServiceUnavailableException.php | 40 + .../GetScansForBitlinkBadRequestException.php | 40 + .../GetScansForBitlinkForbiddenException.php | 40 + .../GetScansForBitlinkGoneException.php | 40 + ...ForBitlinkInternalServerErrorException.php | 40 + .../GetScansForBitlinkNotFoundException.php | 40 + ...sForBitlinkServiceUnavailableException.php | 40 + ...nsSummaryForBitlinkBadRequestException.php | 40 + ...ansSummaryForBitlinkForbiddenException.php | 40 + ...GetScansSummaryForBitlinkGoneException.php | 40 + ...ForBitlinkInternalServerErrorException.php | 40 + ...cansSummaryForBitlinkNotFoundException.php | 40 + ...yForBitlinkServiceUnavailableException.php | 40 + ...fyShopDomainDetailsBadRequestException.php | 40 + ...ifyShopDomainDetailsForbiddenException.php | 40 + ...ainDetailsInternalServerErrorException.php | 40 + ...pifyShopDomainDetailsNotFoundException.php | 40 + ...mainDetailsServiceUnavailableException.php | 40 + lib/Exception/GetSiteBadRequestException.php | 40 + ...tSiteClicksByCitiesBadRequestException.php | 40 + ...etSiteClicksByCitiesForbiddenException.php | 40 + ...ksByCitiesInternalServerErrorException.php | 40 + ...cksByCitiesServiceUnavailableException.php | 40 + ...teClicksByCountriesBadRequestException.php | 40 + ...iteClicksByCountriesForbiddenException.php | 40 + ...yCountriesInternalServerErrorException.php | 40 + ...ByCountriesServiceUnavailableException.php | 40 + ...SiteClicksByDevicesBadRequestException.php | 40 + ...tSiteClicksByDevicesForbiddenException.php | 40 + ...sByDevicesInternalServerErrorException.php | 40 + ...ksByDevicesServiceUnavailableException.php | 40 + ...tSiteClicksOverTimeBadRequestException.php | 40 + ...etSiteClicksOverTimeForbiddenException.php | 40 + ...ksOverTimeInternalServerErrorException.php | 40 + ...cksOverTimeServiceUnavailableException.php | 40 + ...rdDownloadsByBlocksBadRequestException.php | 40 + ...ardDownloadsByBlocksForbiddenException.php | 40 + ...dsByBlocksInternalServerErrorException.php | 40 + ...CardDownloadsByBlocksNotFoundException.php | 40 + ...adsByBlocksServiceUnavailableException.php | 40 + ...rdDownloadsByCitiesBadRequestException.php | 40 + ...ardDownloadsByCitiesForbiddenException.php | 40 + ...dsByCitiesInternalServerErrorException.php | 40 + ...CardDownloadsByCitiesNotFoundException.php | 40 + ...adsByCitiesServiceUnavailableException.php | 40 + ...ownloadsByCountriesBadRequestException.php | 40 + ...DownloadsByCountriesForbiddenException.php | 40 + ...yCountriesInternalServerErrorException.php | 40 + ...dDownloadsByCountriesNotFoundException.php | 40 + ...ByCountriesServiceUnavailableException.php | 40 + ...dDownloadsByDevicesBadRequestException.php | 40 + ...rdDownloadsByDevicesForbiddenException.php | 40 + ...sByDevicesInternalServerErrorException.php | 40 + ...ardDownloadsByDevicesNotFoundException.php | 40 + ...dsByDevicesServiceUnavailableException.php | 40 + ...rdDownloadsOverTimeBadRequestException.php | 40 + ...ardDownloadsOverTimeForbiddenException.php | 40 + ...dsOverTimeInternalServerErrorException.php | 40 + ...CardDownloadsOverTimeNotFoundException.php | 40 + ...adsOverTimeServiceUnavailableException.php | 40 + ...teredTopPageButtonsBadRequestException.php | 40 + ...lteredTopPageButtonsForbiddenException.php | 40 + ...ageButtonsInternalServerErrorException.php | 40 + ...PageButtonsServiceUnavailableException.php | 40 + lib/Exception/GetSiteForbiddenException.php | 40 + .../GetSiteInternalServerErrorException.php | 40 + .../GetSiteLayoutsBadRequestException.php | 40 + .../GetSiteLayoutsForbiddenException.php | 40 + ...iteLayoutsInternalServerErrorException.php | 40 + .../GetSiteLayoutsNotFoundException.php | 40 + ...SiteLayoutsServiceUnavailableException.php | 40 + lib/Exception/GetSiteNotFoundException.php | 40 + .../GetSiteServiceUnavailableException.php | 40 + .../GetSitesForGroupBadRequestException.php | 40 + .../GetSitesForGroupForbiddenException.php | 40 + ...esForGroupInternalServerErrorException.php | 40 + ...etSortedEngagementsBadRequestException.php | 40 + ...GetSortedEngagementsForbiddenException.php | 40 + .../GetSortedEngagementsGoneException.php | 40 + ...ngagementsInternalServerErrorException.php | 40 + .../GetSortedEngagementsNotFoundException.php | 40 + ...tedEngagementsPaymentRequiredException.php | 40 + ...EngagementsServiceUnavailableException.php | 40 + .../GetSortedScansBadRequestException.php | 40 + ...SortedScansForGroupBadRequestException.php | 40 + ...tSortedScansForGroupForbiddenException.php | 40 + .../GetSortedScansForGroupGoneException.php | 40 + ...nsForGroupInternalServerErrorException.php | 40 + ...etSortedScansForGroupNotFoundException.php | 40 + ...dScansForGroupPaymentRequiredException.php | 40 + ...ansForGroupServiceUnavailableException.php | 40 + .../GetSortedScansForbiddenException.php | 40 + lib/Exception/GetSortedScansGoneException.php | 40 + ...ortedScansInternalServerErrorException.php | 40 + .../GetSortedScansNotFoundException.php | 40 + ...GetSortedScansPaymentRequiredException.php | 40 + ...SortedScansServiceUnavailableException.php | 40 + .../GetTemplatesForbiddenException.php | 40 + ...tTemplatesInternalServerErrorException.php | 40 + .../GetTemplatesNotFoundException.php | 40 + ...etTemplatesServiceUnavailableException.php | 40 + lib/Exception/GetTierForbiddenException.php | 40 + .../GetTierInternalServerErrorException.php | 40 + lib/Exception/GetTierNotFoundException.php | 40 + .../GetTierServiceUnavailableException.php | 40 + lib/Exception/GetTiersForbiddenException.php | 40 + .../GetTiersInternalServerErrorException.php | 40 + .../GetTiersServiceUnavailableException.php | 40 + .../GetTitleForLongURLForbiddenException.php | 40 + ...ForLongURLInternalServerErrorException.php | 40 + .../GetTitleForLongURLNotFoundException.php | 40 + ...eForLongURLServiceUnavailableException.php | 40 + ...etTopSortedBitlinksBadRequestException.php | 40 + ...GetTopSortedBitlinksForbiddenException.php | 40 + .../GetTopSortedBitlinksGoneException.php | 40 + ...edBitlinksInternalServerErrorException.php | 40 + .../GetTopSortedBitlinksNotFoundException.php | 40 + ...SortedBitlinksPaymentRequiredException.php | 40 + ...tedBitlinksServiceUnavailableException.php | 40 + ...woFARecordInternalServerErrorException.php | 40 + .../GetTwoFARecordNotFoundException.php | 40 + ...TwoFARecordServiceUnavailableException.php | 40 + ...etUMGroupPreferencesForbiddenException.php | 40 + ...referencesInternalServerErrorException.php | 40 + ...GetUMGroupPreferencesNotFoundException.php | 40 + ...referencesUnprocessableEntityException.php | 40 + .../GetUserActivityLogForbiddenException.php | 40 + ...ctivityLogInternalServerErrorException.php | 40 + ...ActivityLogServiceUnavailableException.php | 40 + ...etUserAvailableTiersForbiddenException.php | 40 + ...lableTiersInternalServerErrorException.php | 40 + ...ilableTiersServiceUnavailableException.php | 40 + ...oardingSurveyResultsForbiddenException.php | 40 + ...veyResultsInternalServerErrorException.php | 40 + .../GetUserPreferencesBadRequestException.php | 40 + ...referencesInternalServerErrorException.php | 40 + lib/Exception/GetUsersForbiddenException.php | 40 + .../GetUsersInternalServerErrorException.php | 40 + lib/Exception/GetUsersNotFoundException.php | 40 + .../GetUsersServiceUnavailableException.php | 40 + ...GetViewsForLaunchpadForbiddenException.php | 40 + ...rLaunchpadInternalServerErrorException.php | 40 + .../GetViewsForLaunchpadNotFoundException.php | 40 + ...orLaunchpadServiceUnavailableException.php | 40 + .../GetViewsForSiteForbiddenException.php | 40 + ...ewsForSiteInternalServerErrorException.php | 40 + .../GetViewsForSiteNotFoundException.php | 40 + ...iewsForSiteServiceUnavailableException.php | 40 + ...sSummaryForLaunchpadForbiddenException.php | 40 + ...rLaunchpadInternalServerErrorException.php | 40 + ...wsSummaryForLaunchpadNotFoundException.php | 40 + ...orLaunchpadServiceUnavailableException.php | 40 + ...tViewsSummaryForSiteForbiddenException.php | 40 + ...aryForSiteInternalServerErrorException.php | 40 + ...etViewsSummaryForSiteNotFoundException.php | 40 + ...maryForSiteServiceUnavailableException.php | 40 + .../HandleWebhookForbiddenException.php | 40 + ...dleWebhookInternalServerErrorException.php | 40 + ...dleWebhookUnprocessableEntityException.php | 40 + ...otifyPaymentFailureBadRequestException.php | 40 + ...entFailureInternalServerErrorException.php | 40 + ...mentFailureServiceUnavailableException.php | 40 + ...entFailureUnprocessableEntityException.php | 40 + ...PatchCanvaUserBrandBadRequestException.php | 40 + ...aUserBrandInternalServerErrorException.php | 40 + .../PatchCanvaUserBrandNotFoundException.php | 40 + ...OrgControlledDomainBadRequestException.php | 40 + ...hOrgControlledDomainForbiddenException.php | 40 + ...lledDomainInternalServerErrorException.php | 40 + ...ntrolledDomainPaymentRequiredException.php | 40 + ...lledDomainUnprocessableEntityException.php | 40 + ...rgInvitationRequestBadRequestException.php | 40 + ...OrgInvitationRequestForbiddenException.php | 40 + ...ionRequestInternalServerErrorException.php | 40 + ...ionRequestUnprocessableEntityException.php | 40 + ...hUMGroupPreferencesBadRequestException.php | 40 + ...chUMGroupPreferencesForbiddenException.php | 40 + ...referencesInternalServerErrorException.php | 40 + ...tchUMGroupPreferencesNotFoundException.php | 40 + ...referencesUnprocessableEntityException.php | 40 + .../PostGetLinksReportBadRequestException.php | 40 + .../PostGetLinksReportForbiddenException.php | 40 + ...inksReportInternalServerErrorException.php | 40 + ...GetLinksReportPaymentRequiredException.php | 40 + ...LinksReportServiceUnavailableException.php | 40 + ...inksReportUnprocessableEntityException.php | 40 + ...PostGroupDataExportBadRequestException.php | 40 + .../PostGroupDataExportForbiddenException.php | 40 + ...DataExportInternalServerErrorException.php | 40 + ...pDataExportServiceUnavailableException.php | 40 + ...DataExportUnprocessableEntityException.php | 40 + ...tOrgUsersDataExportBadRequestException.php | 40 + ...stOrgUsersDataExportForbiddenException.php | 40 + ...DataExportInternalServerErrorException.php | 40 + ...sersDataExportPaymentRequiredException.php | 40 + ...DataExportUnprocessableEntityException.php | 40 + ...eYouTubeVideoButtonBadRequestException.php | 40 + ...teYouTubeVideoButtonForbiddenException.php | 40 + ...ideoButtonInternalServerErrorException.php | 40 + ...ideoButtonUnprocessableEntityException.php | 40 + ...blishDraftLaunchpadBadRequestException.php | 40 + ...ublishDraftLaunchpadForbiddenException.php | 40 + ...tLaunchpadInternalServerErrorException.php | 40 + ...ftLaunchpadServiceUnavailableException.php | 40 + .../PublishSiteBadRequestException.php | 40 + .../PublishSiteForbiddenException.php | 40 + ...ublishSiteInternalServerErrorException.php | 40 + ...PublishSiteServiceUnavailableException.php | 40 + .../PurchaseAddOnsBadRequestException.php | 40 + .../PurchaseAddOnsForbiddenException.php | 40 + ...haseAddOnsInternalServerErrorException.php | 40 + .../PurchaseAddOnsNotFoundException.php | 40 + ...chaseAddOnsServiceUnavailableException.php | 40 + ...haseAddOnsUnprocessableEntityException.php | 40 + .../PurchaseBsdForbiddenException.php | 40 + ...urchaseBsdInternalServerErrorException.php | 40 + ...urchaseStripeAddOnsBadRequestException.php | 40 + ...PurchaseStripeAddOnsForbiddenException.php | 40 + ...ripeAddOnsInternalServerErrorException.php | 40 + .../PurchaseStripeAddOnsNotFoundException.php | 40 + ...tripeAddOnsServiceUnavailableException.php | 40 + ...ripeAddOnsUnprocessableEntityException.php | 40 + ...ctQRCodeDestinationBadRequestException.php | 40 + ...ectQRCodeDestinationForbiddenException.php | 40 + ...estinationInternalServerErrorException.php | 40 + ...rectQRCodeDestinationNotFoundException.php | 40 + ...odeDestinationTooManyRequestsException.php | 40 + ...tePaymentInvoiceFileForbiddenException.php | 40 + ...nvoiceFileInternalServerErrorException.php | 40 + ...erBlocksByContainerBadRequestException.php | 40 + ...derBlocksByContainerForbiddenException.php | 40 + ...yContainerInternalServerErrorException.php | 40 + ...rderBlocksByContainerNotFoundException.php | 40 + ...ByContainerServiceUnavailableException.php | 40 + ...yContainerUnprocessableEntityException.php | 40 + .../RequestUserSARForbiddenException.php | 40 + ...estUserSARInternalServerErrorException.php | 40 + ...uestUserSARServiceUnavailableException.php | 40 + .../ResendInvitationForbiddenException.php | 40 + ...InvitationInternalServerErrorException.php | 40 + .../ResendInvitationNotFoundException.php | 40 + ...sendInvitationTooManyRequestsException.php | 40 + ...eOrgDowngradeStripeBadRequestException.php | 40 + ...leOrgDowngradeStripeForbiddenException.php | 40 + ...radeStripeInternalServerErrorException.php | 40 + ...ganizationDowngradeBadRequestException.php | 40 + ...rganizationDowngradeForbiddenException.php | 40 + ...nDowngradeInternalServerErrorException.php | 40 + .../SearchDomainsForbiddenException.php | 40 + ...rchDomainsInternalServerErrorException.php | 40 + ...earchGroupUserRolesBadRequestException.php | 40 + ...SearchGroupUserRolesForbiddenException.php | 40 + ...pUserRolesInternalServerErrorException.php | 40 + .../SearchGroupUserRolesNotFoundException.php | 40 + .../SearchOrgUserRolesBadRequestException.php | 40 + .../SearchOrgUserRolesForbiddenException.php | 40 + ...gUserRolesInternalServerErrorException.php | 40 + .../SearchOrgUserRolesNotFoundException.php | 40 + ...ndEmailVerificationBadRequestException.php | 40 + ...rificationInternalServerErrorException.php | 40 + ...SendEmailVerificationNotFoundException.php | 40 + ...erificationServiceUnavailableException.php | 40 + ...endVerificationCodeBadRequestException.php | 40 + ...SendVerificationCodeForbiddenException.php | 40 + ...cationCodeInternalServerErrorException.php | 40 + .../SendVerificationCodeNotFoundException.php | 40 + ...icationCodeServiceUnavailableException.php | 40 + ...dVerificationCodeUnauthorizedException.php | 40 + .../SetOrgPreferenceBadRequestException.php | 40 + .../SetOrgPreferenceForbiddenException.php | 40 + ...PreferenceInternalServerErrorException.php | 40 + ...PreferenceUnprocessableEntityException.php | 40 + ...aymentMethodDefaultBadRequestException.php | 40 + ...PaymentMethodDefaultForbiddenException.php | 40 + ...hodDefaultInternalServerErrorException.php | 40 + ...thodDefaultServiceUnavailableException.php | 40 + ...hodDefaultUnprocessableEntityException.php | 40 + .../SetPhoneNumberBadRequestException.php | 40 + .../SetPhoneNumberForbiddenException.php | 40 + ...honeNumberInternalServerErrorException.php | 40 + ...PhoneNumberServiceUnavailableException.php | 40 + ...honeNumberUnprocessableEntityException.php | 40 + ...efaultPaymentMethodBadRequestException.php | 40 + ...DefaultPaymentMethodForbiddenException.php | 40 + ...mentMethodInternalServerErrorException.php | 40 + ...ymentMethodServiceUnavailableException.php | 40 + ...mentMethodUnprocessableEntityException.php | 40 + .../SetUserPreferenceBadRequestException.php | 40 + ...PreferenceInternalServerErrorException.php | 40 + ...PreferenceUnprocessableEntityException.php | 40 + .../ThirdPartyAppLookupForbiddenException.php | 40 + ...yAppLookupInternalServerErrorException.php | 40 + .../ThirdPartyAppLookupNotFoundException.php | 40 + ...PartyAppLookupPaymentRequiredException.php | 40 + ...tyAppLookupServiceUnavailableException.php | 40 + lib/Exception/UnauthorizedException.php | 19 + ...dateAnalyticsModuleBadRequestException.php | 40 + ...pdateAnalyticsModuleForbiddenException.php | 40 + ...ticsModuleInternalServerErrorException.php | 40 + ...UpdateAnalyticsModuleNotFoundException.php | 40 + ...yticsModuleServiceUnavailableException.php | 40 + ...dateAnalyticsReportBadRequestException.php | 40 + ...pdateAnalyticsReportForbiddenException.php | 40 + ...ticsReportInternalServerErrorException.php | 40 + ...UpdateAnalyticsReportNotFoundException.php | 40 + ...yticsReportServiceUnavailableException.php | 40 + ...dateAppAssociationsBadRequestException.php | 40 + ...pdateAppAssociationsForbiddenException.php | 40 + ...sociationsInternalServerErrorException.php | 40 + ...UpdateAppAssociationsNotFoundException.php | 40 + ...ppAssociationsPaymentRequiredException.php | 40 + ...ssociationsServiceUnavailableException.php | 40 + .../UpdateBillingInfoBadRequestException.php | 40 + .../UpdateBillingInfoForbiddenException.php | 40 + ...illingInfoInternalServerErrorException.php | 40 + ...illingInfoUnprocessableEntityException.php | 40 + .../UpdateBitlinkConflictException.php | 40 + .../UpdateDeeplinkAppForbiddenException.php | 40 + ...eeplinkAppInternalServerErrorException.php | 40 + .../UpdateDeeplinkAppNotFoundException.php | 40 + ...ateDeeplinkAppPaymentRequiredException.php | 40 + ...DeeplinkAppServiceUnavailableException.php | 40 + ...eeplinkAppUnprocessableEntityException.php | 40 + .../UpdateDeeplinkRuleForbiddenException.php | 40 + ...eplinkRuleInternalServerErrorException.php | 40 + .../UpdateDeeplinkRuleNotFoundException.php | 40 + ...teDeeplinkRulePaymentRequiredException.php | 40 + ...eeplinkRuleServiceUnavailableException.php | 40 + ...eplinkRuleUnprocessableEntityException.php | 40 + .../UpdateEmailBadRequestException.php | 40 + .../UpdateEmailForbiddenException.php | 40 + ...pdateEmailInternalServerErrorException.php | 40 + .../UpdateEmailNotFoundException.php | 40 + ...UpdateEmailServiceUnavailableException.php | 40 + ...RetainedOnDowngradeBadRequestException.php | 40 + ...sRetainedOnDowngradeForbiddenException.php | 40 + ...nDowngradeInternalServerErrorException.php | 40 + ...nDowngradeUnprocessableEntityException.php | 40 + .../UpdateImageBadRequestException.php | 40 + .../UpdateImageForbiddenException.php | 40 + ...pdateImageInternalServerErrorException.php | 40 + .../UpdateImageNotFoundException.php | 40 + ...UpdateImageServiceUnavailableException.php | 40 + .../UpdateLaunchpadBadRequestException.php | 40 + ...chpadBitlinkContentBadRequestException.php | 40 + ...nchpadBitlinkContentForbiddenException.php | 40 + ...inkContentInternalServerErrorException.php | 40 + ...unchpadBitlinkContentNotFoundException.php | 40 + ...linkContentServiceUnavailableException.php | 40 + ...dateLaunchpadButtonBadRequestException.php | 40 + ...pdateLaunchpadButtonForbiddenException.php | 40 + ...hpadButtonInternalServerErrorException.php | 40 + ...UpdateLaunchpadButtonNotFoundException.php | 40 + ...chpadButtonServiceUnavailableException.php | 40 + ...hpadButtonSortOrderBadRequestException.php | 40 + ...chpadButtonSortOrderForbiddenException.php | 40 + ...nSortOrderInternalServerErrorException.php | 40 + ...nchpadButtonSortOrderNotFoundException.php | 40 + ...onSortOrderServiceUnavailableException.php | 40 + ...hpadCarouselContentBadRequestException.php | 40 + ...chpadCarouselContentForbiddenException.php | 40 + ...selContentInternalServerErrorException.php | 40 + ...nchpadCarouselContentNotFoundException.php | 40 + ...uselContentServiceUnavailableException.php | 40 + ...selContentUnprocessableEntityException.php | 40 + .../UpdateLaunchpadForbiddenException.php | 40 + ...aunchpadGridContentBadRequestException.php | 40 + ...LaunchpadGridContentForbiddenException.php | 40 + ...ridContentInternalServerErrorException.php | 40 + ...eLaunchpadGridContentNotFoundException.php | 40 + ...GridContentServiceUnavailableException.php | 40 + ...ridContentUnprocessableEntityException.php | 40 + ...hpadImageByImageUseBadRequestException.php | 40 + ...chpadImageByImageUseForbiddenException.php | 40 + ...ByImageUseInternalServerErrorException.php | 40 + ...nchpadImageByImageUseNotFoundException.php | 40 + ...eByImageUseServiceUnavailableException.php | 40 + ...unchpadImageContentBadRequestException.php | 40 + ...aunchpadImageContentForbiddenException.php | 40 + ...ageContentInternalServerErrorException.php | 40 + ...LaunchpadImageContentNotFoundException.php | 40 + ...mageContentServiceUnavailableException.php | 40 + ...eLaunchpadInternalServerErrorException.php | 40 + .../UpdateLaunchpadNotFoundException.php | 40 + ...teLaunchpadServiceUnavailableException.php | 40 + ...dateLaunchpadSocialBadRequestException.php | 40 + ...pdateLaunchpadSocialForbiddenException.php | 40 + ...hpadSocialInternalServerErrorException.php | 40 + ...UpdateLaunchpadSocialNotFoundException.php | 40 + ...chpadSocialServiceUnavailableException.php | 40 + ...pdateLaunchpadTooManyRequestsException.php | 40 + ...unchpadYoutubeVideoBadRequestException.php | 40 + ...aunchpadYoutubeVideoForbiddenException.php | 40 + ...utubeVideoInternalServerErrorException.php | 40 + ...LaunchpadYoutubeVideoNotFoundException.php | 40 + ...outubeVideoServiceUnavailableException.php | 40 + .../UpdateLinkBadRequestException.php | 40 + lib/Exception/UpdateLinkConflictException.php | 40 + .../UpdateLinkExpectationFailedException.php | 40 + .../UpdateLinkForbiddenException.php | 40 + ...UpdateLinkInternalServerErrorException.php | 40 + lib/Exception/UpdateLinkNotFoundException.php | 40 + .../UpdateLinkPaymentRequiredException.php | 40 + .../UpdateLinkServiceUnavailableException.php | 40 + .../UpdateLinkTooManyRequestsException.php | 40 + ...UpdateLinkUnprocessableEntityException.php | 40 + .../UpdateOAuthAppBadRequestException.php | 40 + ...OAuthAppClientSecretForbiddenException.php | 30 + ...ientSecretInternalServerErrorException.php | 40 + ...eOAuthAppClientSecretNotFoundException.php | 40 + ...lientSecretServiceUnavailableException.php | 40 + .../UpdateOAuthAppForbiddenException.php | 40 + ...teOAuthAppInternalServerErrorException.php | 40 + .../UpdateOAuthAppNotFoundException.php | 40 + ...ateOAuthAppServiceUnavailableException.php | 40 + .../UpdateOrganizationForbiddenException.php | 40 + ...ganizationInternalServerErrorException.php | 40 + .../UpdateOrganizationNotFoundException.php | 40 + ...anizationSSOSettingsForbiddenException.php | 40 + ...SOSettingsInternalServerErrorException.php | 40 + ...ganizationSSOSettingsNotFoundException.php | 40 + ...ionSSOSettingsPaymentRequiredException.php | 40 + ...SSOSettingsServiceUnavailableException.php | 40 + ...SOSettingsUnprocessableEntityException.php | 40 + ...rganizationServiceUnavailableException.php | 40 + ...OverridesForBitlinkBadRequestException.php | 40 + ...eOverridesForBitlinkForbiddenException.php | 40 + ...ForBitlinkInternalServerErrorException.php | 40 + ...teOverridesForBitlinkNotFoundException.php | 40 + ...idesForBitlinkPaymentRequiredException.php | 40 + ...sForBitlinkServiceUnavailableException.php | 40 + ...idesForBitlinkTooManyRequestsException.php | 40 + ...ForBitlinkUnprocessableEntityException.php | 40 + ...ePaymentContactInfoBadRequestException.php | 40 + ...tePaymentContactInfoForbiddenException.php | 40 + ...ontactInfoInternalServerErrorException.php | 40 + ...atePaymentContactInfoNotFoundException.php | 40 + ...ontactInfoUnprocessableEntityException.php | 40 + ...pdateSiteAppearanceBadRequestException.php | 40 + ...UpdateSiteAppearanceForbiddenException.php | 40 + ...AppearanceInternalServerErrorException.php | 40 + .../UpdateSiteAppearanceNotFoundException.php | 40 + ...eAppearanceServiceUnavailableException.php | 40 + .../UpdateSiteButtonBadRequestException.php | 40 + ...teSiteButtonExpectationFailedException.php | 40 + .../UpdateSiteButtonForbiddenException.php | 40 + ...SiteButtonInternalServerErrorException.php | 40 + .../UpdateSiteButtonNotFoundException.php | 40 + ...dateSiteButtonTooManyRequestsException.php | 40 + ...SiteButtonUnprocessableEntityException.php | 40 + .../UpdateSitesToKeepBadRequestException.php | 40 + .../UpdateSitesToKeepForbiddenException.php | 40 + ...itesToKeepInternalServerErrorException.php | 40 + ...itesToKeepUnprocessableEntityException.php | 40 + ...pdateStripeCustomerBadRequestException.php | 40 + ...UpdateStripeCustomerForbiddenException.php | 40 + ...peCustomerInternalServerErrorException.php | 40 + ...peCustomerUnprocessableEntityException.php | 40 + .../UpdateUserWithRoleBadRequestException.php | 40 + .../UpdateUserWithRoleForbiddenException.php | 40 + ...erWithRoleInternalServerErrorException.php | 40 + ...serWithRoleServiceUnavailableException.php | 40 + ...erWithRoleUnprocessableEntityException.php | 40 + ...UpgradeOrganizationBadRequestException.php | 40 + .../UpgradeOrganizationForbiddenException.php | 40 + ...ganizationInternalServerErrorException.php | 40 + ...ganizationUnprocessableEntityException.php | 40 + ...hStripeSubscriptionBadRequestException.php | 40 + ...thStripeSubscriptionForbiddenException.php | 40 + ...bscriptionInternalServerErrorException.php | 40 + ...bscriptionUnprocessableEntityException.php | 40 + ...radeQRCodeToBitlinkBadRequestException.php | 40 + ...gradeQRCodeToBitlinkForbiddenException.php | 40 + ...eToBitlinkInternalServerErrorException.php | 40 + ...pgradeQRCodeToBitlinkNotFoundException.php | 40 + ...RCodeToBitlinkTooManyRequestsException.php | 40 + .../UploadImageBadRequestException.php | 40 + .../UploadImageForbiddenException.php | 40 + ...ploadImageInternalServerErrorException.php | 40 + .../UploadImageNotFoundException.php | 40 + ...UploadImageServiceUnavailableException.php | 40 + ...ploadLaunchpadImageBadRequestException.php | 40 + ...UploadLaunchpadImageForbiddenException.php | 40 + ...chpadImageInternalServerErrorException.php | 40 + .../UploadLaunchpadImageNotFoundException.php | 40 + ...nchpadImageServiceUnavailableException.php | 40 + .../UpsertOrgEmailForbiddenException.php | 40 + ...rtOrgEmailInternalServerErrorException.php | 40 + .../UpsertOrgEmailNotFoundException.php | 40 + ...ertOrgEmailServiceUnavailableException.php | 40 + .../UserAcceptInviteBadRequestException.php | 40 + .../UserAcceptInviteForbiddenException.php | 40 + ...ceptInviteInternalServerErrorException.php | 40 + ...ceptInviteUnprocessableEntityException.php | 40 + .../ValidateBulkUploadBadRequestException.php | 40 + .../ValidateBulkUploadForbiddenException.php | 40 + ...BulkUploadInternalServerErrorException.php | 40 + .../ValidateBulkUploadNotFoundException.php | 40 + ...dateBulkUploadPaymentRequiredException.php | 40 + ...eBulkUploadServiceUnavailableException.php | 40 + ...BulkUploadUnprocessableEntityException.php | 40 + ...alidateCustomDomainBadRequestException.php | 40 + ...ValidateCustomDomainForbiddenException.php | 40 + ...stomDomainInternalServerErrorException.php | 40 + .../ValidateCustomDomainNotFoundException.php | 40 + ...ustomDomainServiceUnavailableException.php | 40 + ...stomDomainUnprocessableEntityException.php | 40 + .../ValidatePromoCodeBadRequestException.php | 40 + ...ePromoCodeInternalServerErrorException.php | 40 + .../ValidatePromoCodeNotFoundException.php | 40 + ...tePromoCodeServiceUnavailableException.php | 40 + ...dateStripePromoCodeBadRequestException.php | 40 + ...ePromoCodeInternalServerErrorException.php | 40 + ...lidateStripePromoCodeNotFoundException.php | 40 + ...pePromoCodeServiceUnavailableException.php | 40 + .../VerifySSOSlugForbiddenException.php | 40 + ...ifySSOSlugInternalServerErrorException.php | 40 + .../VerifySSOSlugNotFoundException.php | 40 + .../VerifySSOSlugPaymentRequiredException.php | 40 + ...rifySSOSlugServiceUnavailableException.php | 40 + ...VerifyTwoFactorCodeBadRequestException.php | 40 + ...FactorCodeInternalServerErrorException.php | 40 + .../VerifyTwoFactorCodeNotFoundException.php | 40 + ...oFactorCodeServiceUnavailableException.php | 40 + ...regateLaunchpadsOverviewGetResponse200.php | 75 + .../AggregateSitesOverviewGetResponse200.php | 75 + lib/Model/BillingAccount.php | 17 + .../CampaignsCampaignGuidAddURLsPostBody.php | 41 + lib/Model/CreateCustomerResponse.php | 12 +- lib/Model/FullShorten.php | 12 +- ...upGuidLinksClicksDevicesGetResponse200.php | 115 + ...ClicksDevicesGetResponse200MetricsItem.php | 58 + ...psGroupGuidPagesOverviewGetResponse200.php | 75 + lib/Model/Invitation.php | 25 + .../LaunchpadContentBitlinkRequestContent.php | 24 +- lib/Model/LinksBitlinkDestinationsPutBody.php | 41 + ...chpadsOverviewGetResponse200Normalizer.php | 104 + ...eSitesOverviewGetResponse200Normalizer.php | 104 + lib/Normalizer/BillingAccountNormalizer.php | 7 + ...sCampaignGuidAddURLsPostBodyNormalizer.php | 84 + .../CreateCustomerResponseNormalizer.php | 10 +- ...cesGetResponse200MetricsItemNormalizer.php | 91 + ...sClicksDevicesGetResponse200Normalizer.php | 120 + ...dPagesOverviewGetResponse200Normalizer.php | 104 + lib/Normalizer/InvitationNormalizer.php | 7 + lib/Normalizer/JaneObjectNormalizer.php | 21 + ...ContentBitlinkRequestContentNormalizer.php | 20 +- ...ksBitlinkDestinationsPutBodyNormalizer.php | 84 + 2070 files changed, 111787 insertions(+), 858 deletions(-) create mode 100644 lib/Endpoint/AddEmailToUser.php create mode 100644 lib/Endpoint/AddUserWithRole.php create mode 100644 lib/Endpoint/AiDomainSearch.php create mode 100644 lib/Endpoint/AnnualRenewalReminder.php create mode 100644 lib/Endpoint/ApplyDiscount.php create mode 100644 lib/Endpoint/ApplyStripeDiscount.php create mode 100644 lib/Endpoint/ApplyTemplate.php create mode 100644 lib/Endpoint/BulkAdd.php create mode 100644 lib/Endpoint/CampaignAddBitlink.php create mode 100644 lib/Endpoint/CancelPendingDowngrade.php create mode 100644 lib/Endpoint/CancelPendingDowngradeStripe.php create mode 100644 lib/Endpoint/CaptureEvent.php create mode 100644 lib/Endpoint/ChangeUserPassword.php create mode 100644 lib/Endpoint/CheckDomainDNS.php create mode 100644 lib/Endpoint/CheckShareableReport.php create mode 100644 lib/Endpoint/CloneSite.php create mode 100644 lib/Endpoint/CreateAnalyticsModule.php create mode 100644 lib/Endpoint/CreateAnalyticsReport.php create mode 100644 lib/Endpoint/CreateCampaignChannel.php create mode 100644 lib/Endpoint/CreateChannelBitlink.php create mode 100644 lib/Endpoint/CreateContainer.php create mode 100644 lib/Endpoint/CreateCustomer.php create mode 100644 lib/Endpoint/CreateDeeplinkApp.php create mode 100644 lib/Endpoint/CreateDeeplinkRule.php create mode 100644 lib/Endpoint/CreateDefaultAnalyticsReportForGroup.php create mode 100644 lib/Endpoint/CreateFocus.php create mode 100644 lib/Endpoint/CreateGenericAccessToken.php create mode 100644 lib/Endpoint/CreateGroup.php create mode 100644 lib/Endpoint/CreateIntervention.php create mode 100644 lib/Endpoint/CreateLaunchpad.php create mode 100644 lib/Endpoint/CreateLaunchpadButton.php create mode 100644 lib/Endpoint/CreateLaunchpadContentBitlink.php create mode 100644 lib/Endpoint/CreateLaunchpadContentDigitalBusinessCard.php create mode 100644 lib/Endpoint/CreateLaunchpadContentImage.php create mode 100644 lib/Endpoint/CreateLaunchpadContentSocial.php create mode 100644 lib/Endpoint/CreateLaunchpadContentYoutubeVideo.php create mode 100644 lib/Endpoint/CreateLaunchpadTextBlockContent.php create mode 100644 lib/Endpoint/CreateLink.php create mode 100644 lib/Endpoint/CreateOAuthApp.php create mode 100644 lib/Endpoint/CreateOrgDomainVerificationEmail.php create mode 100644 lib/Endpoint/CreateOrganizationInvitations.php create mode 100644 lib/Endpoint/CreateOrganizationSSOSettings.php create mode 100644 lib/Endpoint/CreateOverridesForBitlink.php create mode 100644 lib/Endpoint/CreatePayPalBillingAgreement.php create mode 100644 lib/Endpoint/CreatePayPalBillingAgreementToken.php create mode 100644 lib/Endpoint/CreatePaymentMethod.php create mode 100644 lib/Endpoint/CreateQRCodePreview.php create mode 100644 lib/Endpoint/CreateQRCodeTemplate.php create mode 100644 lib/Endpoint/CreateShareableReport.php create mode 100644 lib/Endpoint/CreateShopifyIntegrationOAuth.php create mode 100644 lib/Endpoint/CreateSite.php create mode 100644 lib/Endpoint/CreateSiteContent.php create mode 100644 lib/Endpoint/CreateSiteImage.php create mode 100644 lib/Endpoint/CreateStripeSetupIntent.php create mode 100644 lib/Endpoint/CreateSubscription.php create mode 100644 lib/Endpoint/CreateUser.php create mode 100644 lib/Endpoint/DeactivateDeeplinkApp.php create mode 100644 lib/Endpoint/DeleteAnalyticsModule.php create mode 100644 lib/Endpoint/DeleteAnalyticsModuleByReport.php create mode 100644 lib/Endpoint/DeleteAnalyticsReport.php create mode 100644 lib/Endpoint/DeleteCampaign.php create mode 100644 lib/Endpoint/DeleteCanvaUserBrandsByLogin.php create mode 100644 lib/Endpoint/DeleteChannel.php create mode 100644 lib/Endpoint/DeleteChannelBitlink.php create mode 100644 lib/Endpoint/DeleteCustomDomain.php create mode 100644 lib/Endpoint/DeleteDeeplinkRule.php create mode 100644 lib/Endpoint/DeleteEmail.php create mode 100644 lib/Endpoint/DeleteGroup.php create mode 100644 lib/Endpoint/DeleteIntegrationOAuth.php create mode 100644 lib/Endpoint/DeleteInvitation.php create mode 100644 lib/Endpoint/DeleteLaunchpad.php create mode 100644 lib/Endpoint/DeleteLaunchpadButton.php create mode 100644 lib/Endpoint/DeleteLaunchpadImageByImageUse.php create mode 100644 lib/Endpoint/DeleteQRCodeTemplate.php create mode 100644 lib/Endpoint/DeleteSite.php create mode 100644 lib/Endpoint/DeleteSiteButton.php create mode 100644 lib/Endpoint/DeleteSiteRedirect.php create mode 100644 lib/Endpoint/DeleteUser.php create mode 100644 lib/Endpoint/DeleteUserWithRole.php create mode 100644 lib/Endpoint/Disable2FA.php create mode 100644 lib/Endpoint/DiscardDraftLaunchpad.php create mode 100644 lib/Endpoint/DiscardSiteDraft.php create mode 100644 lib/Endpoint/DowngradeOrganization.php create mode 100644 lib/Endpoint/DuplicateAnalyticsReport.php create mode 100644 lib/Endpoint/EditCustomDomain.php create mode 100644 lib/Endpoint/EditQRCodePreview.php create mode 100644 lib/Endpoint/EvaluateIntervention.php create mode 100644 lib/Endpoint/ExperimentDecide.php create mode 100644 lib/Endpoint/ExperimentTrack.php create mode 100644 lib/Endpoint/ExpireOAuthAuthorization.php create mode 100644 lib/Endpoint/FetchCompDomainPurchase.php create mode 100644 lib/Endpoint/FetchDomainAgreements.php create mode 100644 lib/Endpoint/FetchDomainStatus.php create mode 100644 lib/Endpoint/ForgetUser.php create mode 100644 lib/Endpoint/FormCapture.php create mode 100644 lib/Endpoint/GenerateBillingSignature.php create mode 100644 lib/Endpoint/GetAccessFeatures.php create mode 100644 lib/Endpoint/GetAggregateButtonClicksByCity.php create mode 100644 lib/Endpoint/GetAggregateButtonClicksByCountry.php create mode 100644 lib/Endpoint/GetAggregateButtonClicksByDevice.php create mode 100644 lib/Endpoint/GetAggregateButtonClicksOverTime.php create mode 100644 lib/Endpoint/GetAggregateCodeScansByCity.php create mode 100644 lib/Endpoint/GetAggregateCodeScansByCountry.php create mode 100644 lib/Endpoint/GetAggregateCodeScansOverTime.php create mode 100644 lib/Endpoint/GetAggregateDigitalBusinessCardDownloadsOverTime.php create mode 100644 lib/Endpoint/GetAggregateEngagementsForBitlinks.php create mode 100644 lib/Endpoint/GetAggregateEngagementsForBitlinksByCitiesFacet.php create mode 100644 lib/Endpoint/GetAggregateEngagementsForBitlinksByFacet.php create mode 100644 lib/Endpoint/GetAggregateLinkClicksByCity.php create mode 100644 lib/Endpoint/GetAggregateLinkClicksByCountry.php create mode 100644 lib/Endpoint/GetAggregateLinkClicksByDevice.php create mode 100644 lib/Endpoint/GetAggregateLinkClicksByReferrer.php create mode 100644 lib/Endpoint/GetAggregateLinkClicksOverTime.php create mode 100644 lib/Endpoint/GetAggregatePageViewsByCity.php create mode 100644 lib/Endpoint/GetAggregatePageViewsByCountry.php create mode 100644 lib/Endpoint/GetAggregatePageViewsByDevice.php create mode 100644 lib/Endpoint/GetAggregatePageViewsByReferrer.php create mode 100644 lib/Endpoint/GetAggregatePageViewsOverTime.php create mode 100644 lib/Endpoint/GetAggregatePagesOverview.php create mode 100644 lib/Endpoint/GetAggregateSiteViewsByCity.php create mode 100644 lib/Endpoint/GetAggregateSiteViewsByCountry.php create mode 100644 lib/Endpoint/GetAggregateSiteViewsByDevice.php create mode 100644 lib/Endpoint/GetAggregateSiteViewsByReferrer.php create mode 100644 lib/Endpoint/GetAggregateSiteViewsOverTime.php create mode 100644 lib/Endpoint/GetAggregateSitesOverview.php create mode 100644 lib/Endpoint/GetAggregateTopButtonClicks.php create mode 100644 lib/Endpoint/GetAggregateTopCodeScans.php create mode 100644 lib/Endpoint/GetAggregateTopLinkClicks.php create mode 100644 lib/Endpoint/GetAllBrandCampaigns.php create mode 100644 lib/Endpoint/GetAnalyticsModule.php create mode 100644 lib/Endpoint/GetAnalyticsReport.php create mode 100644 lib/Endpoint/GetAnalyticsReportsByGroupPaginated.php create mode 100644 lib/Endpoint/GetAnalyticsReportsListByGroup.php create mode 100644 lib/Endpoint/GetAnalyticsUsage.php create mode 100644 lib/Endpoint/GetAppAssociations.php create mode 100644 lib/Endpoint/GetAutobrandedDomain.php create mode 100644 lib/Endpoint/GetBillingAccount.php create mode 100644 lib/Endpoint/GetBillingAccountID.php create mode 100644 lib/Endpoint/GetBillingProvider.php create mode 100644 lib/Endpoint/GetBitlinkClickCounts.php create mode 100644 lib/Endpoint/GetBitlinkClicks.php create mode 100644 lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByBrowser.php create mode 100644 lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByCities.php create mode 100644 lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByCountries.php create mode 100644 lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByDevicesOS.php create mode 100644 lib/Endpoint/GetBitlinkClicksSummary.php create mode 100644 lib/Endpoint/GetBitlinkScans.php create mode 100644 lib/Endpoint/GetBitlinkScansSummary.php create mode 100644 lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByCities.php create mode 100644 lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByCountries.php create mode 100644 lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByDevices.php create mode 100644 lib/Endpoint/GetBlockDigitalBusinessCardDownloadsOverTime.php create mode 100644 lib/Endpoint/GetBrandCampaign.php create mode 100644 lib/Endpoint/GetBulkUploads.php create mode 100644 lib/Endpoint/GetButtonClicks.php create mode 100644 lib/Endpoint/GetButtonClicksSummary.php create mode 100644 lib/Endpoint/GetCampaignClicks.php create mode 100644 lib/Endpoint/GetCanvaUserBrand.php create mode 100644 lib/Endpoint/GetChildrenForBlock.php create mode 100644 lib/Endpoint/GetConsumableFeatures.php create mode 100644 lib/Endpoint/GetCountryCallingCodes.php create mode 100644 lib/Endpoint/GetCurrency.php create mode 100644 lib/Endpoint/GetCurrencyList.php create mode 100644 lib/Endpoint/GetCustomDomain.php create mode 100644 lib/Endpoint/GetCustomDomains.php create mode 100644 lib/Endpoint/GetDeeplinkApp.php create mode 100644 lib/Endpoint/GetDeeplinkApps.php create mode 100644 lib/Endpoint/GetDeeplinkMetricsRollup.php create mode 100644 lib/Endpoint/GetDeeplinkRules.php create mode 100644 lib/Endpoint/GetDomainRegistrarInfo.php create mode 100644 lib/Endpoint/GetDynamicTranslation.php create mode 100644 lib/Endpoint/GetEngagements.php create mode 100644 lib/Endpoint/GetEngagementsSample.php create mode 100644 lib/Endpoint/GetEngagementsSummary.php create mode 100644 lib/Endpoint/GetFocus.php create mode 100644 lib/Endpoint/GetGroupBitlinksCount.php create mode 100644 lib/Endpoint/GetGroupBitlinksCountRollup.php create mode 100644 lib/Endpoint/GetGroupButtonClicksByCity.php create mode 100644 lib/Endpoint/GetGroupButtonClicksByCountry.php create mode 100644 lib/Endpoint/GetGroupButtonClicksByDevice.php create mode 100644 lib/Endpoint/GetGroupButtonClicksOverTime.php create mode 100644 lib/Endpoint/GetGroupClicksByFacet.php create mode 100644 lib/Endpoint/GetGroupClicksByFacetRollup.php create mode 100644 lib/Endpoint/GetGroupCodeScansByCity.php create mode 100644 lib/Endpoint/GetGroupCodeScansByCountry.php create mode 100644 lib/Endpoint/GetGroupCodeScansOverTime.php create mode 100644 lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByBlocks.php create mode 100644 lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByCities.php create mode 100644 lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByCountries.php create mode 100644 lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByDevices.php create mode 100644 lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByMicrosites.php create mode 100644 lib/Endpoint/GetGroupDigitalBusinessCardDownloadsOverTime.php create mode 100644 lib/Endpoint/GetGroupLinkClicksByCity.php create mode 100644 lib/Endpoint/GetGroupLinkClicksByCountry.php create mode 100644 lib/Endpoint/GetGroupLinkClicksByDevice.php create mode 100644 lib/Endpoint/GetGroupLinkClicksByReferrer.php create mode 100644 lib/Endpoint/GetGroupLinkClicksOverTime.php create mode 100644 lib/Endpoint/GetGroupPageViewsByCity.php create mode 100644 lib/Endpoint/GetGroupPageViewsByCountry.php create mode 100644 lib/Endpoint/GetGroupPageViewsByDevice.php create mode 100644 lib/Endpoint/GetGroupPageViewsByReferrer.php create mode 100644 lib/Endpoint/GetGroupPageViewsOverTime.php create mode 100644 lib/Endpoint/GetGroupPagesOverview.php create mode 100644 lib/Endpoint/GetGroupTopButtonClicks.php create mode 100644 lib/Endpoint/GetGroupTopCodeScans.php create mode 100644 lib/Endpoint/GetGroupTopLinkClicks.php create mode 100644 lib/Endpoint/GetGroupsByLogin.php create mode 100644 lib/Endpoint/GetImageByGUID.php create mode 100644 lib/Endpoint/GetIntegrationOAuthsByClientID.php create mode 100644 lib/Endpoint/GetInvitations.php create mode 100644 lib/Endpoint/GetInvitationsByLogin.php create mode 100644 lib/Endpoint/GetLaunchpad.php create mode 100644 lib/Endpoint/GetLaunchpadDigitalBusinessCardDownloadsOverTime.php create mode 100644 lib/Endpoint/GetLaunchpadImageByImageUse.php create mode 100644 lib/Endpoint/GetLaunchpadPresetThemes.php create mode 100644 lib/Endpoint/GetLaunchpadsForGroup.php create mode 100644 lib/Endpoint/GetLinkEngagementsDailySummary.php create mode 100644 lib/Endpoint/GetLinkEngagementsDayDrillDown.php create mode 100644 lib/Endpoint/GetLinkEngagementsReport.php create mode 100644 lib/Endpoint/GetLinkPerformanceForLaunchpad.php create mode 100644 lib/Endpoint/GetLinkPerformanceForSite.php create mode 100644 lib/Endpoint/GetMetricsForLaunchpadByCities.php create mode 100644 lib/Endpoint/GetMetricsForLaunchpadByCountries.php create mode 100644 lib/Endpoint/GetMetricsForLaunchpadByDevices.php create mode 100644 lib/Endpoint/GetMetricsForLaunchpadByReferrers.php create mode 100644 lib/Endpoint/GetMetricsForSiteByCities.php create mode 100644 lib/Endpoint/GetMetricsForSiteByDevices.php create mode 100644 lib/Endpoint/GetMetricsForSiteByReferrers.php create mode 100644 lib/Endpoint/GetMetricsForSitesByCountries.php create mode 100644 lib/Endpoint/GetOAuthApps.php create mode 100644 lib/Endpoint/GetOAuthAuthorizations.php create mode 100644 lib/Endpoint/GetOrgDomainsStatus.php create mode 100644 lib/Endpoint/GetOrgEmails.php create mode 100644 lib/Endpoint/GetOrgInvitationRequests.php create mode 100644 lib/Endpoint/GetOrgPreferences.php create mode 100644 lib/Endpoint/GetOrganizationActivityLog.php create mode 100644 lib/Endpoint/GetOrganizationActivityLogEntry.php create mode 100644 lib/Endpoint/GetOrganizationActivityLogExport.php create mode 100644 lib/Endpoint/GetOrganizationFeatureUsage.php create mode 100644 lib/Endpoint/GetOrganizationFeatureUsageByGroup.php create mode 100644 lib/Endpoint/GetOrganizationHistoricalUsageTotalsByGroup.php create mode 100644 lib/Endpoint/GetOrganizationSSOSettings.php create mode 100644 lib/Endpoint/GetOrganizationStripeInfo.php create mode 100644 lib/Endpoint/GetOverrideHistoryForBitlink.php create mode 100644 lib/Endpoint/GetOverrideMetricsByVersion.php create mode 100644 lib/Endpoint/GetOverridesForBitlink.php create mode 100644 lib/Endpoint/GetOverridesForGroups.php create mode 100644 lib/Endpoint/GetPaymentInvoice.php create mode 100644 lib/Endpoint/GetPaymentInvoiceFile.php create mode 100644 lib/Endpoint/GetPaymentInvoices.php create mode 100644 lib/Endpoint/GetPendingTierForOrg.php create mode 100644 lib/Endpoint/GetPrivateGeo.php create mode 100644 lib/Endpoint/GetProductUtilization.php create mode 100644 lib/Endpoint/GetPromoCodeValidPlans.php create mode 100644 lib/Endpoint/GetQRCHistory.php create mode 100644 lib/Endpoint/GetQRCodeByBitlinkId.php create mode 100644 lib/Endpoint/GetQRCodeById.php create mode 100644 lib/Endpoint/GetQRCodeCustomizationOptions.php create mode 100644 lib/Endpoint/GetQRCodeOverrideMetricsByVersion.php create mode 100644 lib/Endpoint/GetQRCodeTemplates.php create mode 100644 lib/Endpoint/GetRegionsList.php create mode 100644 lib/Endpoint/GetRetainedEntitiesAfterDowngrade.php create mode 100644 lib/Endpoint/GetSSOUsers.php create mode 100644 lib/Endpoint/GetScanMetricsForBitlinkByBrowser.php create mode 100644 lib/Endpoint/GetScanMetricsForBitlinkByCities.php create mode 100644 lib/Endpoint/GetScanMetricsForBitlinkByCountries.php create mode 100644 lib/Endpoint/GetScanMetricsForBitlinkByDevicesOS.php create mode 100644 lib/Endpoint/GetScansForBitlink.php create mode 100644 lib/Endpoint/GetScansSummaryForBitlink.php create mode 100644 lib/Endpoint/GetShopifyShopDomainDetails.php create mode 100644 lib/Endpoint/GetSite.php create mode 100644 lib/Endpoint/GetSiteClicksByCities.php create mode 100644 lib/Endpoint/GetSiteClicksByCountries.php create mode 100644 lib/Endpoint/GetSiteClicksByDevices.php create mode 100644 lib/Endpoint/GetSiteClicksOverTime.php create mode 100644 lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByBlocks.php create mode 100644 lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByCities.php create mode 100644 lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByCountries.php create mode 100644 lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByDevices.php create mode 100644 lib/Endpoint/GetSiteDigitalBusinessCardDownloadsOverTime.php create mode 100644 lib/Endpoint/GetSiteFilteredTopPageButtons.php create mode 100644 lib/Endpoint/GetSiteLayouts.php create mode 100644 lib/Endpoint/GetSitesForGroup.php create mode 100644 lib/Endpoint/GetSortedEngagements.php create mode 100644 lib/Endpoint/GetSortedScans.php create mode 100644 lib/Endpoint/GetSortedScansForGroup.php create mode 100644 lib/Endpoint/GetTemplates.php create mode 100644 lib/Endpoint/GetTier.php create mode 100644 lib/Endpoint/GetTiers.php create mode 100644 lib/Endpoint/GetTitleForLongURL.php create mode 100644 lib/Endpoint/GetTopSortedBitlinks.php create mode 100644 lib/Endpoint/GetTwoFARecord.php create mode 100644 lib/Endpoint/GetUMGroupPreferences.php create mode 100644 lib/Endpoint/GetUMGroupSiteThemes.php create mode 100644 lib/Endpoint/GetUserActivityLog.php create mode 100644 lib/Endpoint/GetUserAvailableTiers.php create mode 100644 lib/Endpoint/GetUserOnboardingSurveyResults.php create mode 100644 lib/Endpoint/GetUserPreferences.php create mode 100644 lib/Endpoint/GetUsers.php create mode 100644 lib/Endpoint/GetViewsForLaunchpad.php create mode 100644 lib/Endpoint/GetViewsForSite.php create mode 100644 lib/Endpoint/GetViewsSummaryForLaunchpad.php create mode 100644 lib/Endpoint/GetViewsSummaryForSite.php create mode 100644 lib/Endpoint/HandleWebhook.php create mode 100644 lib/Endpoint/NotifyPaymentFailure.php create mode 100644 lib/Endpoint/PatchCanvaUserBrand.php create mode 100644 lib/Endpoint/PatchOrgControlledDomain.php create mode 100644 lib/Endpoint/PatchOrgInvitationRequest.php create mode 100644 lib/Endpoint/PatchUMGroupPreferences.php create mode 100644 lib/Endpoint/PostGetLinksReport.php create mode 100644 lib/Endpoint/PostGroupDataExport.php create mode 100644 lib/Endpoint/PostOrgUsersDataExport.php create mode 100644 lib/Endpoint/PrevalidateYouTubeVideoButton.php create mode 100644 lib/Endpoint/PublishDraftLaunchpad.php create mode 100644 lib/Endpoint/PublishSite.php create mode 100644 lib/Endpoint/PurchaseAddOns.php create mode 100644 lib/Endpoint/PurchaseBsd.php create mode 100644 lib/Endpoint/PurchaseStripeAddOns.php create mode 100644 lib/Endpoint/PutUMGroupSiteTheme.php create mode 100644 lib/Endpoint/RedirectQRCodeDestination.php create mode 100644 lib/Endpoint/RegeneratePaymentInvoiceFile.php create mode 100644 lib/Endpoint/ReorderBlocksByContainer.php create mode 100644 lib/Endpoint/RequestUserSAR.php create mode 100644 lib/Endpoint/ResendInvitation.php create mode 100644 lib/Endpoint/ScheduleOrgDowngradeStripe.php create mode 100644 lib/Endpoint/ScheduleOrganizationDowngrade.php create mode 100644 lib/Endpoint/SearchDomains.php create mode 100644 lib/Endpoint/SearchGroupUserRoles.php create mode 100644 lib/Endpoint/SearchOrgUserRoles.php create mode 100644 lib/Endpoint/SendEmailVerification.php create mode 100644 lib/Endpoint/SendVerificationCode.php create mode 100644 lib/Endpoint/SetOrgPreference.php create mode 100644 lib/Endpoint/SetPaymentMethodDefault.php create mode 100644 lib/Endpoint/SetPhoneNumber.php create mode 100644 lib/Endpoint/SetStripeDefaultPaymentMethod.php create mode 100644 lib/Endpoint/SetUserPreference.php create mode 100644 lib/Endpoint/ThirdPartyAppLookup.php create mode 100644 lib/Endpoint/UpdateAnalyticsModule.php create mode 100644 lib/Endpoint/UpdateAnalyticsReport.php create mode 100644 lib/Endpoint/UpdateAppAssociations.php create mode 100644 lib/Endpoint/UpdateBillingInfo.php create mode 100644 lib/Endpoint/UpdateDeeplinkApp.php create mode 100644 lib/Endpoint/UpdateDeeplinkRule.php create mode 100644 lib/Endpoint/UpdateEmail.php create mode 100644 lib/Endpoint/UpdateEntitiesRetainedOnDowngrade.php create mode 100644 lib/Endpoint/UpdateImage.php create mode 100644 lib/Endpoint/UpdateLaunchpad.php create mode 100644 lib/Endpoint/UpdateLaunchpadBitlinkContent.php create mode 100644 lib/Endpoint/UpdateLaunchpadButton.php create mode 100644 lib/Endpoint/UpdateLaunchpadButtonSortOrder.php create mode 100644 lib/Endpoint/UpdateLaunchpadCarouselContent.php create mode 100644 lib/Endpoint/UpdateLaunchpadContentDigitalBusinessCard.php create mode 100644 lib/Endpoint/UpdateLaunchpadGridContent.php create mode 100644 lib/Endpoint/UpdateLaunchpadImageByImageUse.php create mode 100644 lib/Endpoint/UpdateLaunchpadImageContent.php create mode 100644 lib/Endpoint/UpdateLaunchpadSocial.php create mode 100644 lib/Endpoint/UpdateLaunchpadTextBlockContent.php create mode 100644 lib/Endpoint/UpdateLaunchpadYoutubeVideo.php create mode 100644 lib/Endpoint/UpdateLink.php create mode 100644 lib/Endpoint/UpdateOAuthApp.php create mode 100644 lib/Endpoint/UpdateOAuthAppClientSecret.php create mode 100644 lib/Endpoint/UpdateOrganization.php create mode 100644 lib/Endpoint/UpdateOrganizationSSOSettings.php create mode 100644 lib/Endpoint/UpdateOverridesForBitlink.php create mode 100644 lib/Endpoint/UpdatePaymentContactInfo.php create mode 100644 lib/Endpoint/UpdateSiteAppearance.php create mode 100644 lib/Endpoint/UpdateSiteButton.php create mode 100644 lib/Endpoint/UpdateSitesToKeep.php create mode 100644 lib/Endpoint/UpdateStripeCustomer.php create mode 100644 lib/Endpoint/UpdateUserWithRole.php create mode 100644 lib/Endpoint/UpgradeOrganization.php create mode 100644 lib/Endpoint/UpgradeOrganizationWithStripeSubscription.php create mode 100644 lib/Endpoint/UpgradeQRCodeToBitlink.php create mode 100644 lib/Endpoint/UploadImage.php create mode 100644 lib/Endpoint/UploadLaunchpadImage.php create mode 100644 lib/Endpoint/UpsertOrgEmail.php create mode 100644 lib/Endpoint/UserAcceptInvite.php create mode 100644 lib/Endpoint/ValidateBulkUpload.php create mode 100644 lib/Endpoint/ValidateCustomDomain.php create mode 100644 lib/Endpoint/ValidatePromoCode.php create mode 100644 lib/Endpoint/ValidateStripePromoCode.php create mode 100644 lib/Endpoint/VerifySSOSlug.php create mode 100644 lib/Endpoint/VerifyTwoFactorCode.php create mode 100644 lib/Exception/AddEmailToUserBadRequestException.php create mode 100644 lib/Exception/AddEmailToUserForbiddenException.php create mode 100644 lib/Exception/AddEmailToUserInternalServerErrorException.php create mode 100644 lib/Exception/AddEmailToUserNotFoundException.php create mode 100644 lib/Exception/AddEmailToUserUnprocessableEntityException.php create mode 100644 lib/Exception/AddUserWithRoleBadRequestException.php create mode 100644 lib/Exception/AddUserWithRoleForbiddenException.php create mode 100644 lib/Exception/AddUserWithRoleInternalServerErrorException.php create mode 100644 lib/Exception/AddUserWithRoleServiceUnavailableException.php create mode 100644 lib/Exception/AddUserWithRoleUnprocessableEntityException.php create mode 100644 lib/Exception/AiDomainSearchBadRequestException.php create mode 100644 lib/Exception/AiDomainSearchForbiddenException.php create mode 100644 lib/Exception/AiDomainSearchInternalServerErrorException.php create mode 100644 lib/Exception/AnnualRenewalReminderBadRequestException.php create mode 100644 lib/Exception/AnnualRenewalReminderInternalServerErrorException.php create mode 100644 lib/Exception/AnnualRenewalReminderServiceUnavailableException.php create mode 100644 lib/Exception/AnnualRenewalReminderUnprocessableEntityException.php create mode 100644 lib/Exception/ApplyDiscountBadRequestException.php create mode 100644 lib/Exception/ApplyDiscountForbiddenException.php create mode 100644 lib/Exception/ApplyDiscountInternalServerErrorException.php create mode 100644 lib/Exception/ApplyDiscountNotFoundException.php create mode 100644 lib/Exception/ApplyDiscountServiceUnavailableException.php create mode 100644 lib/Exception/ApplyDiscountUnprocessableEntityException.php create mode 100644 lib/Exception/ApplyStripeDiscountBadRequestException.php create mode 100644 lib/Exception/ApplyStripeDiscountForbiddenException.php create mode 100644 lib/Exception/ApplyStripeDiscountInternalServerErrorException.php create mode 100644 lib/Exception/ApplyStripeDiscountNotFoundException.php create mode 100644 lib/Exception/ApplyStripeDiscountServiceUnavailableException.php create mode 100644 lib/Exception/ApplyStripeDiscountUnprocessableEntityException.php create mode 100644 lib/Exception/ApplyTemplateForbiddenException.php create mode 100644 lib/Exception/ApplyTemplateInternalServerErrorException.php create mode 100644 lib/Exception/ApplyTemplateNotFoundException.php create mode 100644 lib/Exception/ApplyTemplateServiceUnavailableException.php create mode 100644 lib/Exception/ApplyTemplateUnprocessableEntityException.php create mode 100644 lib/Exception/BulkAddBadRequestException.php create mode 100644 lib/Exception/BulkAddForbiddenException.php create mode 100644 lib/Exception/BulkAddInternalServerErrorException.php create mode 100644 lib/Exception/BulkAddNotFoundException.php create mode 100644 lib/Exception/CampaignAddBitlinkBadRequestException.php create mode 100644 lib/Exception/CampaignAddBitlinkForbiddenException.php create mode 100644 lib/Exception/CampaignAddBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/CampaignAddBitlinkNotFoundException.php create mode 100644 lib/Exception/CampaignAddBitlinkPaymentRequiredException.php create mode 100644 lib/Exception/CampaignAddBitlinkServiceUnavailableException.php create mode 100644 lib/Exception/CampaignAddBitlinkUnprocessableEntityException.php create mode 100644 lib/Exception/CancelPendingDowngradeForbiddenException.php create mode 100644 lib/Exception/CancelPendingDowngradeInternalServerErrorException.php create mode 100644 lib/Exception/CancelPendingDowngradeNotFoundException.php create mode 100644 lib/Exception/CancelPendingDowngradeStripeForbiddenException.php create mode 100644 lib/Exception/CancelPendingDowngradeStripeInternalServerErrorException.php create mode 100644 lib/Exception/CancelPendingDowngradeStripeNotFoundException.php create mode 100644 lib/Exception/CaptureEventForbiddenException.php create mode 100644 lib/Exception/CaptureEventInternalServerErrorException.php create mode 100644 lib/Exception/ChangeUserPasswordBadRequestException.php create mode 100644 lib/Exception/ChangeUserPasswordForbiddenException.php create mode 100644 lib/Exception/ChangeUserPasswordInternalServerErrorException.php create mode 100644 lib/Exception/ChangeUserPasswordNotFoundException.php create mode 100644 lib/Exception/ChangeUserPasswordUnprocessableEntityException.php create mode 100644 lib/Exception/CheckDomainDNSInternalServerErrorException.php create mode 100644 lib/Exception/CheckShareableReportBadRequestException.php create mode 100644 lib/Exception/CheckShareableReportForbiddenException.php create mode 100644 lib/Exception/CheckShareableReportInternalServerErrorException.php create mode 100644 lib/Exception/CheckShareableReportNotFoundException.php create mode 100644 lib/Exception/CheckShareableReportServiceUnavailableException.php create mode 100644 lib/Exception/CloneSiteBadRequestException.php create mode 100644 lib/Exception/CloneSiteForbiddenException.php create mode 100644 lib/Exception/CloneSiteInternalServerErrorException.php create mode 100644 lib/Exception/CloneSitePaymentRequiredException.php create mode 100644 lib/Exception/CloneSiteServiceUnavailableException.php create mode 100644 lib/Exception/CreateAnalyticsModuleBadRequestException.php create mode 100644 lib/Exception/CreateAnalyticsModuleForbiddenException.php create mode 100644 lib/Exception/CreateAnalyticsModuleInternalServerErrorException.php create mode 100644 lib/Exception/CreateAnalyticsModuleNotFoundException.php create mode 100644 lib/Exception/CreateAnalyticsModuleServiceUnavailableException.php create mode 100644 lib/Exception/CreateAnalyticsReportBadRequestException.php create mode 100644 lib/Exception/CreateAnalyticsReportForbiddenException.php create mode 100644 lib/Exception/CreateAnalyticsReportInternalServerErrorException.php create mode 100644 lib/Exception/CreateAnalyticsReportNotFoundException.php create mode 100644 lib/Exception/CreateAnalyticsReportServiceUnavailableException.php create mode 100644 lib/Exception/CreateCampaignChannelBadRequestException.php create mode 100644 lib/Exception/CreateCampaignChannelInternalServerErrorException.php create mode 100644 lib/Exception/CreateCampaignChannelUnprocessableEntityException.php create mode 100644 lib/Exception/CreateChannelBitlinkBadRequestException.php create mode 100644 lib/Exception/CreateChannelBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/CreateChannelBitlinkUnprocessableEntityException.php create mode 100644 lib/Exception/CreateContainerBadRequestException.php create mode 100644 lib/Exception/CreateContainerForbiddenException.php create mode 100644 lib/Exception/CreateContainerInternalServerErrorException.php create mode 100644 lib/Exception/CreateContainerNotFoundException.php create mode 100644 lib/Exception/CreateContainerServiceUnavailableException.php create mode 100644 lib/Exception/CreateContainerUnprocessableEntityException.php create mode 100644 lib/Exception/CreateCustomerBadRequestException.php create mode 100644 lib/Exception/CreateCustomerForbiddenException.php create mode 100644 lib/Exception/CreateCustomerInternalServerErrorException.php create mode 100644 lib/Exception/CreateCustomerUnprocessableEntityException.php create mode 100644 lib/Exception/CreateDeeplinkAppBadRequestException.php create mode 100644 lib/Exception/CreateDeeplinkAppExpectationFailedException.php create mode 100644 lib/Exception/CreateDeeplinkAppForbiddenException.php create mode 100644 lib/Exception/CreateDeeplinkAppInternalServerErrorException.php create mode 100644 lib/Exception/CreateDeeplinkAppServiceUnavailableException.php create mode 100644 lib/Exception/CreateDeeplinkAppUnprocessableEntityException.php create mode 100644 lib/Exception/CreateDeeplinkRuleForbiddenException.php create mode 100644 lib/Exception/CreateDeeplinkRuleInternalServerErrorException.php create mode 100644 lib/Exception/CreateDeeplinkRuleNotFoundException.php create mode 100644 lib/Exception/CreateDeeplinkRulePaymentRequiredException.php create mode 100644 lib/Exception/CreateDefaultAnalyticsReportForGroupBadRequestException.php create mode 100644 lib/Exception/CreateDefaultAnalyticsReportForGroupForbiddenException.php create mode 100644 lib/Exception/CreateDefaultAnalyticsReportForGroupInternalServerErrorException.php create mode 100644 lib/Exception/CreateDefaultAnalyticsReportForGroupNotFoundException.php create mode 100644 lib/Exception/CreateDefaultAnalyticsReportForGroupServiceUnavailableException.php create mode 100644 lib/Exception/CreateFocusBadRequestException.php create mode 100644 lib/Exception/CreateFocusForbiddenException.php create mode 100644 lib/Exception/CreateFocusInternalServerErrorException.php create mode 100644 lib/Exception/CreateGenericAccessTokenBadRequestException.php create mode 100644 lib/Exception/CreateGenericAccessTokenForbiddenException.php create mode 100644 lib/Exception/CreateGenericAccessTokenInternalServerErrorException.php create mode 100644 lib/Exception/CreateGenericAccessTokenNotFoundException.php create mode 100644 lib/Exception/CreateGenericAccessTokenUnauthorizedException.php create mode 100644 lib/Exception/CreateGroupBadRequestException.php create mode 100644 lib/Exception/CreateGroupForbiddenException.php create mode 100644 lib/Exception/CreateGroupInternalServerErrorException.php create mode 100644 lib/Exception/CreateGroupTooManyRequestsException.php create mode 100644 lib/Exception/CreateGroupUnprocessableEntityException.php create mode 100644 lib/Exception/CreateInterventionBadRequestException.php create mode 100644 lib/Exception/CreateInterventionForbiddenException.php create mode 100644 lib/Exception/CreateInterventionInternalServerErrorException.php create mode 100644 lib/Exception/CreateInterventionServiceUnavailableException.php create mode 100644 lib/Exception/CreateInterventionUnprocessableEntityException.php create mode 100644 lib/Exception/CreateLaunchpadBadRequestException.php create mode 100644 lib/Exception/CreateLaunchpadButtonBadRequestException.php create mode 100644 lib/Exception/CreateLaunchpadButtonForbiddenException.php create mode 100644 lib/Exception/CreateLaunchpadButtonInternalServerErrorException.php create mode 100644 lib/Exception/CreateLaunchpadButtonNotFoundException.php create mode 100644 lib/Exception/CreateLaunchpadButtonServiceUnavailableException.php create mode 100644 lib/Exception/CreateLaunchpadContentBitlinkBadRequestException.php create mode 100644 lib/Exception/CreateLaunchpadContentBitlinkForbiddenException.php create mode 100644 lib/Exception/CreateLaunchpadContentBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/CreateLaunchpadContentBitlinkNotFoundException.php create mode 100644 lib/Exception/CreateLaunchpadContentBitlinkServiceUnavailableException.php create mode 100644 lib/Exception/CreateLaunchpadContentImageBadRequestException.php create mode 100644 lib/Exception/CreateLaunchpadContentImageForbiddenException.php create mode 100644 lib/Exception/CreateLaunchpadContentImageInternalServerErrorException.php create mode 100644 lib/Exception/CreateLaunchpadContentImageNotFoundException.php create mode 100644 lib/Exception/CreateLaunchpadContentImageServiceUnavailableException.php create mode 100644 lib/Exception/CreateLaunchpadContentSocialBadRequestException.php create mode 100644 lib/Exception/CreateLaunchpadContentSocialForbiddenException.php create mode 100644 lib/Exception/CreateLaunchpadContentSocialInternalServerErrorException.php create mode 100644 lib/Exception/CreateLaunchpadContentSocialNotFoundException.php create mode 100644 lib/Exception/CreateLaunchpadContentSocialServiceUnavailableException.php create mode 100644 lib/Exception/CreateLaunchpadContentYoutubeVideoBadRequestException.php create mode 100644 lib/Exception/CreateLaunchpadContentYoutubeVideoForbiddenException.php create mode 100644 lib/Exception/CreateLaunchpadContentYoutubeVideoInternalServerErrorException.php create mode 100644 lib/Exception/CreateLaunchpadContentYoutubeVideoNotFoundException.php create mode 100644 lib/Exception/CreateLaunchpadContentYoutubeVideoServiceUnavailableException.php create mode 100644 lib/Exception/CreateLaunchpadForbiddenException.php create mode 100644 lib/Exception/CreateLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/CreateLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/CreateLinkBadRequestException.php create mode 100644 lib/Exception/CreateLinkConflictException.php create mode 100644 lib/Exception/CreateLinkExpectationFailedException.php create mode 100644 lib/Exception/CreateLinkForbiddenException.php create mode 100644 lib/Exception/CreateLinkInternalServerErrorException.php create mode 100644 lib/Exception/CreateLinkNotFoundException.php create mode 100644 lib/Exception/CreateLinkPaymentRequiredException.php create mode 100644 lib/Exception/CreateLinkServiceUnavailableException.php create mode 100644 lib/Exception/CreateLinkTooManyRequestsException.php create mode 100644 lib/Exception/CreateLinkUnprocessableEntityException.php create mode 100644 lib/Exception/CreateOAuthAppBadRequestException.php create mode 100644 lib/Exception/CreateOAuthAppForbiddenException.php create mode 100644 lib/Exception/CreateOAuthAppInternalServerErrorException.php create mode 100644 lib/Exception/CreateOrgDomainVerificationEmailBadRequestException.php create mode 100644 lib/Exception/CreateOrgDomainVerificationEmailForbiddenException.php create mode 100644 lib/Exception/CreateOrgDomainVerificationEmailInternalServerErrorException.php create mode 100644 lib/Exception/CreateOrgDomainVerificationEmailPaymentRequiredException.php create mode 100644 lib/Exception/CreateOrganizationInvitationsBadRequestException.php create mode 100644 lib/Exception/CreateOrganizationInvitationsForbiddenException.php create mode 100644 lib/Exception/CreateOrganizationInvitationsInternalServerErrorException.php create mode 100644 lib/Exception/CreateOrganizationInvitationsPaymentRequiredException.php create mode 100644 lib/Exception/CreateOrganizationInvitationsServiceUnavailableException.php create mode 100644 lib/Exception/CreateOrganizationInvitationsTooManyRequestsException.php create mode 100644 lib/Exception/CreateOrganizationSSOSettingsBadRequestException.php create mode 100644 lib/Exception/CreateOrganizationSSOSettingsForbiddenException.php create mode 100644 lib/Exception/CreateOrganizationSSOSettingsInternalServerErrorException.php create mode 100644 lib/Exception/CreateOrganizationSSOSettingsPaymentRequiredException.php create mode 100644 lib/Exception/CreateOrganizationSSOSettingsServiceUnavailableException.php create mode 100644 lib/Exception/CreateOrganizationSSOSettingsUnprocessableEntityException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkBadRequestException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkConflictException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkForbiddenException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkNotFoundException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkPaymentRequiredException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkServiceUnavailableException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkTooManyRequestsException.php create mode 100644 lib/Exception/CreateOverridesForBitlinkUnprocessableEntityException.php create mode 100644 lib/Exception/CreatePayPalBillingAgreementBadRequestException.php create mode 100644 lib/Exception/CreatePayPalBillingAgreementForbiddenException.php create mode 100644 lib/Exception/CreatePayPalBillingAgreementInternalServerErrorException.php create mode 100644 lib/Exception/CreatePayPalBillingAgreementTokenBadRequestException.php create mode 100644 lib/Exception/CreatePayPalBillingAgreementTokenForbiddenException.php create mode 100644 lib/Exception/CreatePayPalBillingAgreementTokenInternalServerErrorException.php create mode 100644 lib/Exception/CreatePayPalBillingAgreementTokenUnprocessableEntityException.php create mode 100644 lib/Exception/CreatePayPalBillingAgreementUnprocessableEntityException.php create mode 100644 lib/Exception/CreatePaymentMethodBadRequestException.php create mode 100644 lib/Exception/CreatePaymentMethodForbiddenException.php create mode 100644 lib/Exception/CreatePaymentMethodInternalServerErrorException.php create mode 100644 lib/Exception/CreatePaymentMethodServiceUnavailableException.php create mode 100644 lib/Exception/CreatePaymentMethodUnprocessableEntityException.php create mode 100644 lib/Exception/CreateQRCodePreviewBadRequestException.php create mode 100644 lib/Exception/CreateQRCodePreviewForbiddenException.php create mode 100644 lib/Exception/CreateQRCodePreviewGoneException.php create mode 100644 lib/Exception/CreateQRCodePreviewInternalServerErrorException.php create mode 100644 lib/Exception/CreateQRCodePreviewNotFoundException.php create mode 100644 lib/Exception/CreateQRCodePreviewPaymentRequiredException.php create mode 100644 lib/Exception/CreateQRCodeTemplateBadRequestException.php create mode 100644 lib/Exception/CreateQRCodeTemplateForbiddenException.php create mode 100644 lib/Exception/CreateQRCodeTemplateGoneException.php create mode 100644 lib/Exception/CreateQRCodeTemplateInternalServerErrorException.php create mode 100644 lib/Exception/CreateQRCodeTemplateNotFoundException.php create mode 100644 lib/Exception/CreateQRCodeTemplatePaymentRequiredException.php create mode 100644 lib/Exception/CreateShareableReportBadRequestException.php create mode 100644 lib/Exception/CreateShareableReportForbiddenException.php create mode 100644 lib/Exception/CreateShareableReportInternalServerErrorException.php create mode 100644 lib/Exception/CreateShareableReportNotFoundException.php create mode 100644 lib/Exception/CreateShareableReportServiceUnavailableException.php create mode 100644 lib/Exception/CreateShopifyIntegrationOAuthBadRequestException.php create mode 100644 lib/Exception/CreateShopifyIntegrationOAuthConflictException.php create mode 100644 lib/Exception/CreateShopifyIntegrationOAuthForbiddenException.php create mode 100644 lib/Exception/CreateShopifyIntegrationOAuthInternalServerErrorException.php create mode 100644 lib/Exception/CreateShopifyIntegrationOAuthServiceUnavailableException.php create mode 100644 lib/Exception/CreateShopifyIntegrationOAuthUnprocessableEntityException.php create mode 100644 lib/Exception/CreateSiteBadRequestException.php create mode 100644 lib/Exception/CreateSiteContentBadRequestException.php create mode 100644 lib/Exception/CreateSiteContentForbiddenException.php create mode 100644 lib/Exception/CreateSiteContentInternalServerErrorException.php create mode 100644 lib/Exception/CreateSiteContentNotFoundException.php create mode 100644 lib/Exception/CreateSiteContentServiceUnavailableException.php create mode 100644 lib/Exception/CreateSiteForbiddenException.php create mode 100644 lib/Exception/CreateSiteInternalServerErrorException.php create mode 100644 lib/Exception/CreateSitePaymentRequiredException.php create mode 100644 lib/Exception/CreateSiteServiceUnavailableException.php create mode 100644 lib/Exception/CreateSiteUnprocessableEntityException.php create mode 100644 lib/Exception/CreateStripeSetupIntentBadRequestException.php create mode 100644 lib/Exception/CreateStripeSetupIntentForbiddenException.php create mode 100644 lib/Exception/CreateStripeSetupIntentInternalServerErrorException.php create mode 100644 lib/Exception/CreateStripeSetupIntentServiceUnavailableException.php create mode 100644 lib/Exception/CreateStripeSetupIntentUnprocessableEntityException.php create mode 100644 lib/Exception/CreateSubscriptionBadRequestException.php create mode 100644 lib/Exception/CreateSubscriptionForbiddenException.php create mode 100644 lib/Exception/CreateSubscriptionInternalServerErrorException.php create mode 100644 lib/Exception/CreateSubscriptionUnprocessableEntityException.php create mode 100644 lib/Exception/CreateUserBadRequestException.php create mode 100644 lib/Exception/CreateUserInternalServerErrorException.php create mode 100644 lib/Exception/CreateUserTooManyRequestsException.php create mode 100644 lib/Exception/CreateUserUnprocessableEntityException.php create mode 100644 lib/Exception/DeactivateDeeplinkAppForbiddenException.php create mode 100644 lib/Exception/DeactivateDeeplinkAppInternalServerErrorException.php create mode 100644 lib/Exception/DeactivateDeeplinkAppNotFoundException.php create mode 100644 lib/Exception/DeactivateDeeplinkAppPaymentRequiredException.php create mode 100644 lib/Exception/DeactivateDeeplinkAppServiceUnavailableException.php create mode 100644 lib/Exception/DeleteAnalyticsModuleByReportForbiddenException.php create mode 100644 lib/Exception/DeleteAnalyticsModuleByReportInternalServerErrorException.php create mode 100644 lib/Exception/DeleteAnalyticsModuleByReportNotFoundException.php create mode 100644 lib/Exception/DeleteAnalyticsModuleByReportPaymentRequiredException.php create mode 100644 lib/Exception/DeleteAnalyticsModuleForbiddenException.php create mode 100644 lib/Exception/DeleteAnalyticsModuleInternalServerErrorException.php create mode 100644 lib/Exception/DeleteAnalyticsModuleNotFoundException.php create mode 100644 lib/Exception/DeleteAnalyticsModulePaymentRequiredException.php create mode 100644 lib/Exception/DeleteAnalyticsReportBadRequestException.php create mode 100644 lib/Exception/DeleteAnalyticsReportForbiddenException.php create mode 100644 lib/Exception/DeleteAnalyticsReportInternalServerErrorException.php create mode 100644 lib/Exception/DeleteAnalyticsReportNotFoundException.php create mode 100644 lib/Exception/DeleteAnalyticsReportPaymentRequiredException.php create mode 100644 lib/Exception/DeleteAnalyticsReportServiceUnavailableException.php create mode 100644 lib/Exception/DeleteCampaignForbiddenException.php create mode 100644 lib/Exception/DeleteCampaignInternalServerErrorException.php create mode 100644 lib/Exception/DeleteCampaignNotFoundException.php create mode 100644 lib/Exception/DeleteCampaignPaymentRequiredException.php create mode 100644 lib/Exception/DeleteCampaignServiceUnavailableException.php create mode 100644 lib/Exception/DeleteCanvaUserBrandsByLoginBadRequestException.php create mode 100644 lib/Exception/DeleteCanvaUserBrandsByLoginInternalServerErrorException.php create mode 100644 lib/Exception/DeleteChannelBitlinkBadRequestException.php create mode 100644 lib/Exception/DeleteChannelBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/DeleteChannelBitlinkUnprocessableEntityException.php create mode 100644 lib/Exception/DeleteChannelForbiddenException.php create mode 100644 lib/Exception/DeleteChannelInternalServerErrorException.php create mode 100644 lib/Exception/DeleteChannelNotFoundException.php create mode 100644 lib/Exception/DeleteChannelPaymentRequiredException.php create mode 100644 lib/Exception/DeleteChannelServiceUnavailableException.php create mode 100644 lib/Exception/DeleteCustomDomainForbiddenException.php create mode 100644 lib/Exception/DeleteCustomDomainInternalServerErrorException.php create mode 100644 lib/Exception/DeleteCustomDomainUnprocessableEntityException.php create mode 100644 lib/Exception/DeleteDeeplinkRuleForbiddenException.php create mode 100644 lib/Exception/DeleteDeeplinkRuleInternalServerErrorException.php create mode 100644 lib/Exception/DeleteDeeplinkRuleNotFoundException.php create mode 100644 lib/Exception/DeleteDeeplinkRulePaymentRequiredException.php create mode 100644 lib/Exception/DeleteDeeplinkRuleServiceUnavailableException.php create mode 100644 lib/Exception/DeleteEmailBadRequestException.php create mode 100644 lib/Exception/DeleteEmailForbiddenException.php create mode 100644 lib/Exception/DeleteEmailInternalServerErrorException.php create mode 100644 lib/Exception/DeleteEmailNotFoundException.php create mode 100644 lib/Exception/DeleteEmailServiceUnavailableException.php create mode 100644 lib/Exception/DeleteGroupForbiddenException.php create mode 100644 lib/Exception/DeleteGroupInternalServerErrorException.php create mode 100644 lib/Exception/DeleteGroupNotFoundException.php create mode 100644 lib/Exception/DeleteGroupServiceUnavailableException.php create mode 100644 lib/Exception/DeleteGroupTooManyRequestsException.php create mode 100644 lib/Exception/DeleteIntegrationOAuthBadRequestException.php create mode 100644 lib/Exception/DeleteIntegrationOAuthForbiddenException.php create mode 100644 lib/Exception/DeleteIntegrationOAuthInternalServerErrorException.php create mode 100644 lib/Exception/DeleteIntegrationOAuthServiceUnavailableException.php create mode 100644 lib/Exception/DeleteInvitationForbiddenException.php create mode 100644 lib/Exception/DeleteInvitationInternalServerErrorException.php create mode 100644 lib/Exception/DeleteInvitationNotFoundException.php create mode 100644 lib/Exception/DeleteInvitationTooManyRequestsException.php create mode 100644 lib/Exception/DeleteLaunchpadBadRequestException.php create mode 100644 lib/Exception/DeleteLaunchpadButtonForbiddenException.php create mode 100644 lib/Exception/DeleteLaunchpadButtonInternalServerErrorException.php create mode 100644 lib/Exception/DeleteLaunchpadButtonNotFoundException.php create mode 100644 lib/Exception/DeleteLaunchpadButtonServiceUnavailableException.php create mode 100644 lib/Exception/DeleteLaunchpadForbiddenException.php create mode 100644 lib/Exception/DeleteLaunchpadImageByImageUseForbiddenException.php create mode 100644 lib/Exception/DeleteLaunchpadImageByImageUseInternalServerErrorException.php create mode 100644 lib/Exception/DeleteLaunchpadImageByImageUseNotFoundException.php create mode 100644 lib/Exception/DeleteLaunchpadImageByImageUseServiceUnavailableException.php create mode 100644 lib/Exception/DeleteLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/DeleteLaunchpadNotFoundException.php create mode 100644 lib/Exception/DeleteLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/DeleteQRCodeTemplateForbiddenException.php create mode 100644 lib/Exception/DeleteQRCodeTemplateInternalServerErrorException.php create mode 100644 lib/Exception/DeleteQRCodeTemplateNotFoundException.php create mode 100644 lib/Exception/DeleteQRCodeTemplateServiceUnavailableException.php create mode 100644 lib/Exception/DeleteSiteBadRequestException.php create mode 100644 lib/Exception/DeleteSiteButtonBadRequestException.php create mode 100644 lib/Exception/DeleteSiteButtonForbiddenException.php create mode 100644 lib/Exception/DeleteSiteButtonInternalServerErrorException.php create mode 100644 lib/Exception/DeleteSiteButtonNotFoundException.php create mode 100644 lib/Exception/DeleteSiteButtonServiceUnavailableException.php create mode 100644 lib/Exception/DeleteSiteForbiddenException.php create mode 100644 lib/Exception/DeleteSiteInternalServerErrorException.php create mode 100644 lib/Exception/DeleteSiteNotFoundException.php create mode 100644 lib/Exception/DeleteSiteServiceUnavailableException.php create mode 100644 lib/Exception/DeleteUserBadRequestException.php create mode 100644 lib/Exception/DeleteUserForbiddenException.php create mode 100644 lib/Exception/DeleteUserInternalServerErrorException.php create mode 100644 lib/Exception/DeleteUserWithRoleBadRequestException.php create mode 100644 lib/Exception/DeleteUserWithRoleForbiddenException.php create mode 100644 lib/Exception/DeleteUserWithRoleInternalServerErrorException.php create mode 100644 lib/Exception/DeleteUserWithRoleServiceUnavailableException.php create mode 100644 lib/Exception/DeleteUserWithRoleUnprocessableEntityException.php create mode 100644 lib/Exception/Disable2FABadRequestException.php create mode 100644 lib/Exception/Disable2FAForbiddenException.php create mode 100644 lib/Exception/Disable2FAInternalServerErrorException.php create mode 100644 lib/Exception/Disable2FANotFoundException.php create mode 100644 lib/Exception/Disable2FAServiceUnavailableException.php create mode 100644 lib/Exception/Disable2FAUnauthorizedException.php create mode 100644 lib/Exception/Disable2FAUnprocessableEntityException.php create mode 100644 lib/Exception/DiscardDraftLaunchpadBadRequestException.php create mode 100644 lib/Exception/DiscardDraftLaunchpadForbiddenException.php create mode 100644 lib/Exception/DiscardDraftLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/DiscardDraftLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/DiscardSiteDraftBadRequestException.php create mode 100644 lib/Exception/DiscardSiteDraftForbiddenException.php create mode 100644 lib/Exception/DiscardSiteDraftInternalServerErrorException.php create mode 100644 lib/Exception/DiscardSiteDraftNotFoundException.php create mode 100644 lib/Exception/DiscardSiteDraftUnprocessableEntityException.php create mode 100644 lib/Exception/DowngradeOrganizationInternalServerErrorException.php create mode 100644 lib/Exception/DowngradeOrganizationUnprocessableEntityException.php create mode 100644 lib/Exception/DuplicateAnalyticsReportBadRequestException.php create mode 100644 lib/Exception/DuplicateAnalyticsReportForbiddenException.php create mode 100644 lib/Exception/DuplicateAnalyticsReportInternalServerErrorException.php create mode 100644 lib/Exception/DuplicateAnalyticsReportNotFoundException.php create mode 100644 lib/Exception/DuplicateAnalyticsReportServiceUnavailableException.php create mode 100644 lib/Exception/EditCustomDomainForbiddenException.php create mode 100644 lib/Exception/EditCustomDomainInternalServerErrorException.php create mode 100644 lib/Exception/EditQRCodePreviewBadRequestException.php create mode 100644 lib/Exception/EditQRCodePreviewForbiddenException.php create mode 100644 lib/Exception/EditQRCodePreviewGoneException.php create mode 100644 lib/Exception/EditQRCodePreviewInternalServerErrorException.php create mode 100644 lib/Exception/EditQRCodePreviewNotFoundException.php create mode 100644 lib/Exception/EditQRCodePreviewPaymentRequiredException.php create mode 100644 lib/Exception/EvaluateInterventionBadRequestException.php create mode 100644 lib/Exception/EvaluateInterventionForbiddenException.php create mode 100644 lib/Exception/EvaluateInterventionInternalServerErrorException.php create mode 100644 lib/Exception/EvaluateInterventionServiceUnavailableException.php create mode 100644 lib/Exception/EvaluateInterventionUnprocessableEntityException.php create mode 100644 lib/Exception/ExperimentDecideBadRequestException.php create mode 100644 lib/Exception/ExperimentDecideForbiddenException.php create mode 100644 lib/Exception/ExperimentDecideInternalServerErrorException.php create mode 100644 lib/Exception/ExperimentDecideUnprocessableEntityException.php create mode 100644 lib/Exception/ExperimentTrackForbiddenException.php create mode 100644 lib/Exception/ExperimentTrackInternalServerErrorException.php create mode 100644 lib/Exception/ExperimentTrackUnprocessableEntityException.php create mode 100644 lib/Exception/ExpireOAuthAuthorizationBadRequestException.php create mode 100644 lib/Exception/ExpireOAuthAuthorizationInternalServerErrorException.php create mode 100644 lib/Exception/ExpireOAuthAuthorizationNotFoundException.php create mode 100644 lib/Exception/ExpireOAuthAuthorizationServiceUnavailableException.php create mode 100644 lib/Exception/FetchCompDomainPurchaseForbiddenException.php create mode 100644 lib/Exception/FetchCompDomainPurchaseGatewayTimeoutException.php create mode 100644 lib/Exception/FetchCompDomainPurchaseInternalServerErrorException.php create mode 100644 lib/Exception/FetchDomainAgreementsInternalServerErrorException.php create mode 100644 lib/Exception/FetchDomainStatusForbiddenException.php create mode 100644 lib/Exception/FetchDomainStatusGatewayTimeoutException.php create mode 100644 lib/Exception/FetchDomainStatusInternalServerErrorException.php create mode 100644 lib/Exception/ForgetUserForbiddenException.php create mode 100644 lib/Exception/ForgetUserInternalServerErrorException.php create mode 100644 lib/Exception/ForgetUserServiceUnavailableException.php create mode 100644 lib/Exception/FormCaptureBadRequestException.php create mode 100644 lib/Exception/FormCaptureForbiddenException.php create mode 100644 lib/Exception/FormCaptureInternalServerErrorException.php create mode 100644 lib/Exception/FormCaptureServiceUnavailableException.php create mode 100644 lib/Exception/FormCaptureUnprocessableEntityException.php create mode 100644 lib/Exception/GatewayTimeoutException.php create mode 100644 lib/Exception/GenerateBillingSignatureForbiddenException.php create mode 100644 lib/Exception/GenerateBillingSignatureInternalServerErrorException.php create mode 100644 lib/Exception/GetAccessFeaturesForbiddenException.php create mode 100644 lib/Exception/GetAccessFeaturesInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByCityBadRequestException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByCityForbiddenException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByCountryBadRequestException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByCountryForbiddenException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByDeviceBadRequestException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByDeviceForbiddenException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByDeviceInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateButtonClicksByDeviceServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateButtonClicksOverTimeBadRequestException.php create mode 100644 lib/Exception/GetAggregateButtonClicksOverTimeForbiddenException.php create mode 100644 lib/Exception/GetAggregateButtonClicksOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateButtonClicksOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateCodeScansByCityBadRequestException.php create mode 100644 lib/Exception/GetAggregateCodeScansByCityForbiddenException.php create mode 100644 lib/Exception/GetAggregateCodeScansByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateCodeScansByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateCodeScansByCountryBadRequestException.php create mode 100644 lib/Exception/GetAggregateCodeScansByCountryForbiddenException.php create mode 100644 lib/Exception/GetAggregateCodeScansByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateCodeScansByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateCodeScansOverTimeBadRequestException.php create mode 100644 lib/Exception/GetAggregateCodeScansOverTimeForbiddenException.php create mode 100644 lib/Exception/GetAggregateCodeScansOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateCodeScansOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeBadRequestException.php create mode 100644 lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeForbiddenException.php create mode 100644 lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksBadRequestException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetBadRequestException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetForbiddenException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetGoneException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetNotFoundException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetPaymentRequiredException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByFacetBadRequestException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByFacetForbiddenException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByFacetGoneException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByFacetInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByFacetNotFoundException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByFacetPaymentRequiredException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksByFacetServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksForbiddenException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksGoneException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksNotFoundException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksPaymentRequiredException.php create mode 100644 lib/Exception/GetAggregateEngagementsForBitlinksServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByCityBadRequestException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByCityForbiddenException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByCountryBadRequestException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByCountryForbiddenException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByDeviceBadRequestException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByDeviceForbiddenException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByDeviceInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByDeviceServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByReferrerBadRequestException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByReferrerForbiddenException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByReferrerInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateLinkClicksByReferrerServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateLinkClicksOverTimeBadRequestException.php create mode 100644 lib/Exception/GetAggregateLinkClicksOverTimeForbiddenException.php create mode 100644 lib/Exception/GetAggregateLinkClicksOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateLinkClicksOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregatePageViewsByCityBadRequestException.php create mode 100644 lib/Exception/GetAggregatePageViewsByCityForbiddenException.php create mode 100644 lib/Exception/GetAggregatePageViewsByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregatePageViewsByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregatePageViewsByCountryBadRequestException.php create mode 100644 lib/Exception/GetAggregatePageViewsByCountryForbiddenException.php create mode 100644 lib/Exception/GetAggregatePageViewsByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregatePageViewsByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregatePageViewsByDeviceBadRequestException.php create mode 100644 lib/Exception/GetAggregatePageViewsByDeviceForbiddenException.php create mode 100644 lib/Exception/GetAggregatePageViewsByDeviceInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregatePageViewsByDeviceServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregatePageViewsByReferrerBadRequestException.php create mode 100644 lib/Exception/GetAggregatePageViewsByReferrerForbiddenException.php create mode 100644 lib/Exception/GetAggregatePageViewsByReferrerInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregatePageViewsByReferrerServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregatePageViewsOverTimeBadRequestException.php create mode 100644 lib/Exception/GetAggregatePageViewsOverTimeForbiddenException.php create mode 100644 lib/Exception/GetAggregatePageViewsOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregatePageViewsOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregatePagesOverviewBadRequestException.php create mode 100644 lib/Exception/GetAggregatePagesOverviewForbiddenException.php create mode 100644 lib/Exception/GetAggregatePagesOverviewInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregatePagesOverviewServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByCityBadRequestException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByCityForbiddenException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByCountryBadRequestException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByCountryForbiddenException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByDeviceBadRequestException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByDeviceForbiddenException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByDeviceInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByDeviceServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByReferrerBadRequestException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByReferrerForbiddenException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByReferrerInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateSiteViewsByReferrerServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateSiteViewsOverTimeBadRequestException.php create mode 100644 lib/Exception/GetAggregateSiteViewsOverTimeForbiddenException.php create mode 100644 lib/Exception/GetAggregateSiteViewsOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateSiteViewsOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateSitesOverviewBadRequestException.php create mode 100644 lib/Exception/GetAggregateSitesOverviewForbiddenException.php create mode 100644 lib/Exception/GetAggregateSitesOverviewInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateSitesOverviewServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateTopButtonClicksBadRequestException.php create mode 100644 lib/Exception/GetAggregateTopButtonClicksForbiddenException.php create mode 100644 lib/Exception/GetAggregateTopButtonClicksInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateTopButtonClicksServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateTopCodeScansBadRequestException.php create mode 100644 lib/Exception/GetAggregateTopCodeScansForbiddenException.php create mode 100644 lib/Exception/GetAggregateTopCodeScansInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateTopCodeScansServiceUnavailableException.php create mode 100644 lib/Exception/GetAggregateTopLinkClicksBadRequestException.php create mode 100644 lib/Exception/GetAggregateTopLinkClicksForbiddenException.php create mode 100644 lib/Exception/GetAggregateTopLinkClicksInternalServerErrorException.php create mode 100644 lib/Exception/GetAggregateTopLinkClicksServiceUnavailableException.php create mode 100644 lib/Exception/GetAllBrandCampaignsBadRequestException.php create mode 100644 lib/Exception/GetAllBrandCampaignsInternalServerErrorException.php create mode 100644 lib/Exception/GetAllBrandCampaignsUnprocessableEntityException.php create mode 100644 lib/Exception/GetAnalyticsModuleForbiddenException.php create mode 100644 lib/Exception/GetAnalyticsModuleInternalServerErrorException.php create mode 100644 lib/Exception/GetAnalyticsModuleNotFoundException.php create mode 100644 lib/Exception/GetAnalyticsModuleServiceUnavailableException.php create mode 100644 lib/Exception/GetAnalyticsReportForbiddenException.php create mode 100644 lib/Exception/GetAnalyticsReportInternalServerErrorException.php create mode 100644 lib/Exception/GetAnalyticsReportNotFoundException.php create mode 100644 lib/Exception/GetAnalyticsReportServiceUnavailableException.php create mode 100644 lib/Exception/GetAnalyticsReportsByGroupPaginatedBadRequestException.php create mode 100644 lib/Exception/GetAnalyticsReportsByGroupPaginatedForbiddenException.php create mode 100644 lib/Exception/GetAnalyticsReportsByGroupPaginatedInternalServerErrorException.php create mode 100644 lib/Exception/GetAnalyticsReportsByGroupPaginatedPaymentRequiredException.php create mode 100644 lib/Exception/GetAnalyticsReportsByGroupPaginatedServiceUnavailableException.php create mode 100644 lib/Exception/GetAnalyticsReportsListByGroupBadRequestException.php create mode 100644 lib/Exception/GetAnalyticsReportsListByGroupForbiddenException.php create mode 100644 lib/Exception/GetAnalyticsReportsListByGroupInternalServerErrorException.php create mode 100644 lib/Exception/GetAnalyticsReportsListByGroupPaymentRequiredException.php create mode 100644 lib/Exception/GetAnalyticsReportsListByGroupServiceUnavailableException.php create mode 100644 lib/Exception/GetAnalyticsUsageBadRequestException.php create mode 100644 lib/Exception/GetAnalyticsUsageForbiddenException.php create mode 100644 lib/Exception/GetAnalyticsUsageInternalServerErrorException.php create mode 100644 lib/Exception/GetAnalyticsUsageServiceUnavailableException.php create mode 100644 lib/Exception/GetAppAssociationsForbiddenException.php create mode 100644 lib/Exception/GetAppAssociationsInternalServerErrorException.php create mode 100644 lib/Exception/GetAppAssociationsNotFoundException.php create mode 100644 lib/Exception/GetAppAssociationsPaymentRequiredException.php create mode 100644 lib/Exception/GetAppAssociationsServiceUnavailableException.php create mode 100644 lib/Exception/GetAutobrandedDomainBadRequestException.php create mode 100644 lib/Exception/GetAutobrandedDomainInternalServerErrorException.php create mode 100644 lib/Exception/GetBillingAccountForbiddenException.php create mode 100644 lib/Exception/GetBillingAccountIDForbiddenException.php create mode 100644 lib/Exception/GetBillingAccountIDInternalServerErrorException.php create mode 100644 lib/Exception/GetBillingAccountInternalServerErrorException.php create mode 100644 lib/Exception/GetBillingProviderBadRequestException.php create mode 100644 lib/Exception/GetBillingProviderForbiddenException.php create mode 100644 lib/Exception/GetBillingProviderInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkClickCountsBadRequestException.php create mode 100644 lib/Exception/GetBitlinkClickCountsGoneException.php create mode 100644 lib/Exception/GetBitlinkClickCountsInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkClickCountsNotFoundException.php create mode 100644 lib/Exception/GetBitlinkClickCountsServiceUnavailableException.php create mode 100644 lib/Exception/GetBitlinkClickCountsUnprocessableEntityException.php create mode 100644 lib/Exception/GetBitlinkClicksBadRequestException.php create mode 100644 lib/Exception/GetBitlinkClicksForbiddenException.php create mode 100644 lib/Exception/GetBitlinkClicksGoneException.php create mode 100644 lib/Exception/GetBitlinkClicksInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserBadRequestException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserForbiddenException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserGoneException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserNotFoundException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserPaymentRequiredException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserServiceUnavailableException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesBadRequestException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesForbiddenException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesGoneException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesNotFoundException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesPaymentRequiredException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesServiceUnavailableException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesBadRequestException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesForbiddenException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesGoneException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesNotFoundException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesPaymentRequiredException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesServiceUnavailableException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSBadRequestException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSForbiddenException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSGoneException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSNotFoundException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSPaymentRequiredException.php create mode 100644 lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSServiceUnavailableException.php create mode 100644 lib/Exception/GetBitlinkClicksNotFoundException.php create mode 100644 lib/Exception/GetBitlinkClicksServiceUnavailableException.php create mode 100644 lib/Exception/GetBitlinkClicksSummaryBadRequestException.php create mode 100644 lib/Exception/GetBitlinkClicksSummaryForbiddenException.php create mode 100644 lib/Exception/GetBitlinkClicksSummaryGoneException.php create mode 100644 lib/Exception/GetBitlinkClicksSummaryInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkClicksSummaryNotFoundException.php create mode 100644 lib/Exception/GetBitlinkClicksSummaryServiceUnavailableException.php create mode 100644 lib/Exception/GetBitlinkScansBadRequestException.php create mode 100644 lib/Exception/GetBitlinkScansForbiddenException.php create mode 100644 lib/Exception/GetBitlinkScansGoneException.php create mode 100644 lib/Exception/GetBitlinkScansInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkScansNotFoundException.php create mode 100644 lib/Exception/GetBitlinkScansServiceUnavailableException.php create mode 100644 lib/Exception/GetBitlinkScansSummaryBadRequestException.php create mode 100644 lib/Exception/GetBitlinkScansSummaryForbiddenException.php create mode 100644 lib/Exception/GetBitlinkScansSummaryGoneException.php create mode 100644 lib/Exception/GetBitlinkScansSummaryInternalServerErrorException.php create mode 100644 lib/Exception/GetBitlinkScansSummaryNotFoundException.php create mode 100644 lib/Exception/GetBitlinkScansSummaryServiceUnavailableException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesBadRequestException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesForbiddenException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesNotFoundException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesBadRequestException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesForbiddenException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesNotFoundException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesBadRequestException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesForbiddenException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesNotFoundException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeBadRequestException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeForbiddenException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeNotFoundException.php create mode 100644 lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetBrandCampaignBadRequestException.php create mode 100644 lib/Exception/GetBrandCampaignInternalServerErrorException.php create mode 100644 lib/Exception/GetBrandCampaignUnprocessableEntityException.php create mode 100644 lib/Exception/GetBulkUploadsBadRequestException.php create mode 100644 lib/Exception/GetBulkUploadsForbiddenException.php create mode 100644 lib/Exception/GetBulkUploadsInternalServerErrorException.php create mode 100644 lib/Exception/GetBulkUploadsNotFoundException.php create mode 100644 lib/Exception/GetBulkUploadsPaymentRequiredException.php create mode 100644 lib/Exception/GetBulkUploadsServiceUnavailableException.php create mode 100644 lib/Exception/GetButtonClicksBadRequestException.php create mode 100644 lib/Exception/GetButtonClicksForbiddenException.php create mode 100644 lib/Exception/GetButtonClicksGoneException.php create mode 100644 lib/Exception/GetButtonClicksInternalServerErrorException.php create mode 100644 lib/Exception/GetButtonClicksNotFoundException.php create mode 100644 lib/Exception/GetButtonClicksServiceUnavailableException.php create mode 100644 lib/Exception/GetButtonClicksSummaryBadRequestException.php create mode 100644 lib/Exception/GetButtonClicksSummaryForbiddenException.php create mode 100644 lib/Exception/GetButtonClicksSummaryGoneException.php create mode 100644 lib/Exception/GetButtonClicksSummaryInternalServerErrorException.php create mode 100644 lib/Exception/GetButtonClicksSummaryNotFoundException.php create mode 100644 lib/Exception/GetButtonClicksSummaryServiceUnavailableException.php create mode 100644 lib/Exception/GetCampaignClicksForbiddenException.php create mode 100644 lib/Exception/GetCampaignClicksInternalServerErrorException.php create mode 100644 lib/Exception/GetCampaignClicksNotFoundException.php create mode 100644 lib/Exception/GetCampaignClicksPaymentRequiredException.php create mode 100644 lib/Exception/GetCampaignClicksServiceUnavailableException.php create mode 100644 lib/Exception/GetCanvaUserBrandBadRequestException.php create mode 100644 lib/Exception/GetCanvaUserBrandInternalServerErrorException.php create mode 100644 lib/Exception/GetCanvaUserBrandNotFoundException.php create mode 100644 lib/Exception/GetChildrenForBlockForbiddenException.php create mode 100644 lib/Exception/GetChildrenForBlockInternalServerErrorException.php create mode 100644 lib/Exception/GetChildrenForBlockNotFoundException.php create mode 100644 lib/Exception/GetChildrenForBlockServiceUnavailableException.php create mode 100644 lib/Exception/GetConsumableFeaturesConflictException.php create mode 100644 lib/Exception/GetConsumableFeaturesForbiddenException.php create mode 100644 lib/Exception/GetConsumableFeaturesInternalServerErrorException.php create mode 100644 lib/Exception/GetCountryCallingCodesBadRequestException.php create mode 100644 lib/Exception/GetCountryCallingCodesInternalServerErrorException.php create mode 100644 lib/Exception/GetCurrencyInternalServerErrorException.php create mode 100644 lib/Exception/GetCurrencyListInternalServerErrorException.php create mode 100644 lib/Exception/GetCustomDomainForbiddenException.php create mode 100644 lib/Exception/GetCustomDomainInternalServerErrorException.php create mode 100644 lib/Exception/GetCustomDomainNotFoundException.php create mode 100644 lib/Exception/GetCustomDomainServiceUnavailableException.php create mode 100644 lib/Exception/GetCustomDomainsForbiddenException.php create mode 100644 lib/Exception/GetCustomDomainsInternalServerErrorException.php create mode 100644 lib/Exception/GetCustomDomainsServiceUnavailableException.php create mode 100644 lib/Exception/GetCustomDomainsUnprocessableEntityException.php create mode 100644 lib/Exception/GetDeeplinkAppForbiddenException.php create mode 100644 lib/Exception/GetDeeplinkAppInternalServerErrorException.php create mode 100644 lib/Exception/GetDeeplinkAppNotFoundException.php create mode 100644 lib/Exception/GetDeeplinkAppServiceUnavailableException.php create mode 100644 lib/Exception/GetDeeplinkAppsForbiddenException.php create mode 100644 lib/Exception/GetDeeplinkAppsInternalServerErrorException.php create mode 100644 lib/Exception/GetDeeplinkAppsServiceUnavailableException.php create mode 100644 lib/Exception/GetDeeplinkMetricsRollupForbiddenException.php create mode 100644 lib/Exception/GetDeeplinkMetricsRollupGoneException.php create mode 100644 lib/Exception/GetDeeplinkMetricsRollupInternalServerErrorException.php create mode 100644 lib/Exception/GetDeeplinkMetricsRollupNotFoundException.php create mode 100644 lib/Exception/GetDeeplinkMetricsRollupPaymentRequiredException.php create mode 100644 lib/Exception/GetDeeplinkMetricsRollupServiceUnavailableException.php create mode 100644 lib/Exception/GetDeeplinkRulesForbiddenException.php create mode 100644 lib/Exception/GetDeeplinkRulesInternalServerErrorException.php create mode 100644 lib/Exception/GetDeeplinkRulesNotFoundException.php create mode 100644 lib/Exception/GetDeeplinkRulesPaymentRequiredException.php create mode 100644 lib/Exception/GetDeeplinkRulesServiceUnavailableException.php create mode 100644 lib/Exception/GetDeeplinkRulesTooManyRequestsException.php create mode 100644 lib/Exception/GetDomainRegistrarInfoInternalServerErrorException.php create mode 100644 lib/Exception/GetEngagementsBadRequestException.php create mode 100644 lib/Exception/GetEngagementsForbiddenException.php create mode 100644 lib/Exception/GetEngagementsGoneException.php create mode 100644 lib/Exception/GetEngagementsInternalServerErrorException.php create mode 100644 lib/Exception/GetEngagementsNotFoundException.php create mode 100644 lib/Exception/GetEngagementsSampleBadRequestException.php create mode 100644 lib/Exception/GetEngagementsSampleForbiddenException.php create mode 100644 lib/Exception/GetEngagementsSampleInternalServerErrorException.php create mode 100644 lib/Exception/GetEngagementsServiceUnavailableException.php create mode 100644 lib/Exception/GetEngagementsSummaryBadRequestException.php create mode 100644 lib/Exception/GetEngagementsSummaryForbiddenException.php create mode 100644 lib/Exception/GetEngagementsSummaryGoneException.php create mode 100644 lib/Exception/GetEngagementsSummaryInternalServerErrorException.php create mode 100644 lib/Exception/GetEngagementsSummaryNotFoundException.php create mode 100644 lib/Exception/GetEngagementsSummaryServiceUnavailableException.php create mode 100644 lib/Exception/GetFocusInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupBitlinksCountBadRequestException.php create mode 100644 lib/Exception/GetGroupBitlinksCountForbiddenException.php create mode 100644 lib/Exception/GetGroupBitlinksCountInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupBitlinksCountPaymentRequiredException.php create mode 100644 lib/Exception/GetGroupBitlinksCountRollupBadRequestException.php create mode 100644 lib/Exception/GetGroupBitlinksCountRollupForbiddenException.php create mode 100644 lib/Exception/GetGroupBitlinksCountRollupInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupBitlinksCountRollupPaymentRequiredException.php create mode 100644 lib/Exception/GetGroupBitlinksCountRollupServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupBitlinksCountRollupTooManyRequestsException.php create mode 100644 lib/Exception/GetGroupButtonClicksByCityBadRequestException.php create mode 100644 lib/Exception/GetGroupButtonClicksByCityForbiddenException.php create mode 100644 lib/Exception/GetGroupButtonClicksByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupButtonClicksByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupButtonClicksByCountryBadRequestException.php create mode 100644 lib/Exception/GetGroupButtonClicksByCountryForbiddenException.php create mode 100644 lib/Exception/GetGroupButtonClicksByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupButtonClicksByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupButtonClicksByDeviceBadRequestException.php create mode 100644 lib/Exception/GetGroupButtonClicksByDeviceForbiddenException.php create mode 100644 lib/Exception/GetGroupButtonClicksByDeviceInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupButtonClicksByDeviceServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupButtonClicksOverTimeBadRequestException.php create mode 100644 lib/Exception/GetGroupButtonClicksOverTimeForbiddenException.php create mode 100644 lib/Exception/GetGroupButtonClicksOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupButtonClicksOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupClicksByFacetBadRequestException.php create mode 100644 lib/Exception/GetGroupClicksByFacetForbiddenException.php create mode 100644 lib/Exception/GetGroupClicksByFacetInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupClicksByFacetPaymentRequiredException.php create mode 100644 lib/Exception/GetGroupClicksByFacetRollupBadRequestException.php create mode 100644 lib/Exception/GetGroupClicksByFacetRollupForbiddenException.php create mode 100644 lib/Exception/GetGroupClicksByFacetRollupInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupClicksByFacetRollupPaymentRequiredException.php create mode 100644 lib/Exception/GetGroupClicksByFacetRollupServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupClicksByFacetServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupCodeScansByCityBadRequestException.php create mode 100644 lib/Exception/GetGroupCodeScansByCityForbiddenException.php create mode 100644 lib/Exception/GetGroupCodeScansByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupCodeScansByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupCodeScansByCountryBadRequestException.php create mode 100644 lib/Exception/GetGroupCodeScansByCountryForbiddenException.php create mode 100644 lib/Exception/GetGroupCodeScansByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupCodeScansByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupCodeScansOverTimeBadRequestException.php create mode 100644 lib/Exception/GetGroupCodeScansOverTimeForbiddenException.php create mode 100644 lib/Exception/GetGroupCodeScansOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupCodeScansOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksBadRequestException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksForbiddenException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksNotFoundException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesBadRequestException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesForbiddenException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesNotFoundException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesBadRequestException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesForbiddenException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesNotFoundException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesBadRequestException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesForbiddenException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesNotFoundException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesBadRequestException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesForbiddenException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesNotFoundException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeBadRequestException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeForbiddenException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeNotFoundException.php create mode 100644 lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupLinkClicksByCityBadRequestException.php create mode 100644 lib/Exception/GetGroupLinkClicksByCityForbiddenException.php create mode 100644 lib/Exception/GetGroupLinkClicksByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupLinkClicksByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupLinkClicksByCountryBadRequestException.php create mode 100644 lib/Exception/GetGroupLinkClicksByCountryForbiddenException.php create mode 100644 lib/Exception/GetGroupLinkClicksByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupLinkClicksByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupLinkClicksByDeviceBadRequestException.php create mode 100644 lib/Exception/GetGroupLinkClicksByDeviceForbiddenException.php create mode 100644 lib/Exception/GetGroupLinkClicksByDeviceInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupLinkClicksByDeviceServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupLinkClicksByReferrerBadRequestException.php create mode 100644 lib/Exception/GetGroupLinkClicksByReferrerForbiddenException.php create mode 100644 lib/Exception/GetGroupLinkClicksByReferrerInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupLinkClicksByReferrerServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupLinkClicksOverTimeBadRequestException.php create mode 100644 lib/Exception/GetGroupLinkClicksOverTimeForbiddenException.php create mode 100644 lib/Exception/GetGroupLinkClicksOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupLinkClicksOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupPageViewsByCityBadRequestException.php create mode 100644 lib/Exception/GetGroupPageViewsByCityForbiddenException.php create mode 100644 lib/Exception/GetGroupPageViewsByCityInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupPageViewsByCityServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupPageViewsByCountryBadRequestException.php create mode 100644 lib/Exception/GetGroupPageViewsByCountryForbiddenException.php create mode 100644 lib/Exception/GetGroupPageViewsByCountryInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupPageViewsByCountryServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupPageViewsByDeviceBadRequestException.php create mode 100644 lib/Exception/GetGroupPageViewsByDeviceForbiddenException.php create mode 100644 lib/Exception/GetGroupPageViewsByDeviceInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupPageViewsByDeviceServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupPageViewsByReferrerBadRequestException.php create mode 100644 lib/Exception/GetGroupPageViewsByReferrerForbiddenException.php create mode 100644 lib/Exception/GetGroupPageViewsByReferrerInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupPageViewsByReferrerServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupPageViewsOverTimeBadRequestException.php create mode 100644 lib/Exception/GetGroupPageViewsOverTimeForbiddenException.php create mode 100644 lib/Exception/GetGroupPageViewsOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupPageViewsOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupPagesOverviewBadRequestException.php create mode 100644 lib/Exception/GetGroupPagesOverviewForbiddenException.php create mode 100644 lib/Exception/GetGroupPagesOverviewInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupPagesOverviewServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupTopButtonClicksBadRequestException.php create mode 100644 lib/Exception/GetGroupTopButtonClicksForbiddenException.php create mode 100644 lib/Exception/GetGroupTopButtonClicksInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupTopButtonClicksServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupTopCodeScansBadRequestException.php create mode 100644 lib/Exception/GetGroupTopCodeScansForbiddenException.php create mode 100644 lib/Exception/GetGroupTopCodeScansInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupTopCodeScansServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupTopLinkClicksBadRequestException.php create mode 100644 lib/Exception/GetGroupTopLinkClicksForbiddenException.php create mode 100644 lib/Exception/GetGroupTopLinkClicksInternalServerErrorException.php create mode 100644 lib/Exception/GetGroupTopLinkClicksServiceUnavailableException.php create mode 100644 lib/Exception/GetGroupsByLoginForbiddenException.php create mode 100644 lib/Exception/GetGroupsByLoginInternalServerErrorException.php create mode 100644 lib/Exception/GetImageByGUIDBadRequestException.php create mode 100644 lib/Exception/GetImageByGUIDForbiddenException.php create mode 100644 lib/Exception/GetImageByGUIDInternalServerErrorException.php create mode 100644 lib/Exception/GetImageByGUIDNotFoundException.php create mode 100644 lib/Exception/GetImageByGUIDServiceUnavailableException.php create mode 100644 lib/Exception/GetIntegrationOAuthsByClientIDBadRequestException.php create mode 100644 lib/Exception/GetIntegrationOAuthsByClientIDInternalServerErrorException.php create mode 100644 lib/Exception/GetIntegrationOAuthsByClientIDServiceUnavailableException.php create mode 100644 lib/Exception/GetInvitationsByLoginBadRequestException.php create mode 100644 lib/Exception/GetInvitationsByLoginForbiddenException.php create mode 100644 lib/Exception/GetInvitationsByLoginInternalServerErrorException.php create mode 100644 lib/Exception/GetInvitationsForbiddenException.php create mode 100644 lib/Exception/GetInvitationsInternalServerErrorException.php create mode 100644 lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeBadRequestException.php create mode 100644 lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeForbiddenException.php create mode 100644 lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetLaunchpadForbiddenException.php create mode 100644 lib/Exception/GetLaunchpadImageByImageUseBadRequestException.php create mode 100644 lib/Exception/GetLaunchpadImageByImageUseForbiddenException.php create mode 100644 lib/Exception/GetLaunchpadImageByImageUseInternalServerErrorException.php create mode 100644 lib/Exception/GetLaunchpadImageByImageUseNotFoundException.php create mode 100644 lib/Exception/GetLaunchpadImageByImageUseServiceUnavailableException.php create mode 100644 lib/Exception/GetLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/GetLaunchpadNotFoundException.php create mode 100644 lib/Exception/GetLaunchpadPresetThemesInternalServerErrorException.php create mode 100644 lib/Exception/GetLaunchpadPresetThemesServiceUnavailableException.php create mode 100644 lib/Exception/GetLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/GetLaunchpadsForGroupForbiddenException.php create mode 100644 lib/Exception/GetLaunchpadsForGroupInternalServerErrorException.php create mode 100644 lib/Exception/GetLaunchpadsForGroupNotFoundException.php create mode 100644 lib/Exception/GetLaunchpadsForGroupServiceUnavailableException.php create mode 100644 lib/Exception/GetLinkEngagementsDailySummaryBadRequestException.php create mode 100644 lib/Exception/GetLinkEngagementsDailySummaryForbiddenException.php create mode 100644 lib/Exception/GetLinkEngagementsDailySummaryInternalServerErrorException.php create mode 100644 lib/Exception/GetLinkEngagementsDailySummaryNotFoundException.php create mode 100644 lib/Exception/GetLinkEngagementsDailySummaryServiceUnavailableException.php create mode 100644 lib/Exception/GetLinkEngagementsDailySummaryUnprocessableEntityException.php create mode 100644 lib/Exception/GetLinkEngagementsDayDrillDownBadRequestException.php create mode 100644 lib/Exception/GetLinkEngagementsDayDrillDownForbiddenException.php create mode 100644 lib/Exception/GetLinkEngagementsDayDrillDownInternalServerErrorException.php create mode 100644 lib/Exception/GetLinkEngagementsDayDrillDownNotFoundException.php create mode 100644 lib/Exception/GetLinkEngagementsDayDrillDownServiceUnavailableException.php create mode 100644 lib/Exception/GetLinkEngagementsDayDrillDownUnprocessableEntityException.php create mode 100644 lib/Exception/GetLinkEngagementsReportBadRequestException.php create mode 100644 lib/Exception/GetLinkEngagementsReportForbiddenException.php create mode 100644 lib/Exception/GetLinkEngagementsReportInternalServerErrorException.php create mode 100644 lib/Exception/GetLinkEngagementsReportNotFoundException.php create mode 100644 lib/Exception/GetLinkEngagementsReportServiceUnavailableException.php create mode 100644 lib/Exception/GetLinkEngagementsReportUnprocessableEntityException.php create mode 100644 lib/Exception/GetLinkPerformanceForLaunchpadForbiddenException.php create mode 100644 lib/Exception/GetLinkPerformanceForLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/GetLinkPerformanceForLaunchpadNotFoundException.php create mode 100644 lib/Exception/GetLinkPerformanceForLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/GetLinkPerformanceForSiteForbiddenException.php create mode 100644 lib/Exception/GetLinkPerformanceForSiteInternalServerErrorException.php create mode 100644 lib/Exception/GetLinkPerformanceForSiteNotFoundException.php create mode 100644 lib/Exception/GetLinkPerformanceForSiteServiceUnavailableException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCitiesBadRequestException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCitiesForbiddenException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCitiesInternalServerErrorException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCitiesNotFoundException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCitiesPaymentRequiredException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCitiesServiceUnavailableException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCountriesBadRequestException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCountriesForbiddenException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCountriesInternalServerErrorException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCountriesNotFoundException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByCountriesServiceUnavailableException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByDevicesBadRequestException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByDevicesForbiddenException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByDevicesInternalServerErrorException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByDevicesNotFoundException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByDevicesPaymentRequiredException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByDevicesServiceUnavailableException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByReferrersBadRequestException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByReferrersForbiddenException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByReferrersInternalServerErrorException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByReferrersNotFoundException.php create mode 100644 lib/Exception/GetMetricsForLaunchpadByReferrersServiceUnavailableException.php create mode 100644 lib/Exception/GetMetricsForSiteByCitiesBadRequestException.php create mode 100644 lib/Exception/GetMetricsForSiteByCitiesForbiddenException.php create mode 100644 lib/Exception/GetMetricsForSiteByCitiesInternalServerErrorException.php create mode 100644 lib/Exception/GetMetricsForSiteByCitiesNotFoundException.php create mode 100644 lib/Exception/GetMetricsForSiteByCitiesPaymentRequiredException.php create mode 100644 lib/Exception/GetMetricsForSiteByCitiesServiceUnavailableException.php create mode 100644 lib/Exception/GetMetricsForSiteByDevicesBadRequestException.php create mode 100644 lib/Exception/GetMetricsForSiteByDevicesForbiddenException.php create mode 100644 lib/Exception/GetMetricsForSiteByDevicesInternalServerErrorException.php create mode 100644 lib/Exception/GetMetricsForSiteByDevicesNotFoundException.php create mode 100644 lib/Exception/GetMetricsForSiteByDevicesPaymentRequiredException.php create mode 100644 lib/Exception/GetMetricsForSiteByDevicesServiceUnavailableException.php create mode 100644 lib/Exception/GetMetricsForSiteByReferrersBadRequestException.php create mode 100644 lib/Exception/GetMetricsForSiteByReferrersForbiddenException.php create mode 100644 lib/Exception/GetMetricsForSiteByReferrersInternalServerErrorException.php create mode 100644 lib/Exception/GetMetricsForSiteByReferrersNotFoundException.php create mode 100644 lib/Exception/GetMetricsForSiteByReferrersServiceUnavailableException.php create mode 100644 lib/Exception/GetMetricsForSitesByCountriesBadRequestException.php create mode 100644 lib/Exception/GetMetricsForSitesByCountriesForbiddenException.php create mode 100644 lib/Exception/GetMetricsForSitesByCountriesInternalServerErrorException.php create mode 100644 lib/Exception/GetMetricsForSitesByCountriesNotFoundException.php create mode 100644 lib/Exception/GetMetricsForSitesByCountriesServiceUnavailableException.php create mode 100644 lib/Exception/GetOAuthAppsBadRequestException.php create mode 100644 lib/Exception/GetOAuthAppsInternalServerErrorException.php create mode 100644 lib/Exception/GetOAuthAppsNotFoundException.php create mode 100644 lib/Exception/GetOAuthAppsServiceUnavailableException.php create mode 100644 lib/Exception/GetOAuthAuthorizationsInternalServerErrorException.php create mode 100644 lib/Exception/GetOAuthAuthorizationsNotFoundException.php create mode 100644 lib/Exception/GetOAuthAuthorizationsServiceUnavailableException.php create mode 100644 lib/Exception/GetOrgDomainsStatusBadRequestException.php create mode 100644 lib/Exception/GetOrgDomainsStatusForbiddenException.php create mode 100644 lib/Exception/GetOrgDomainsStatusInternalServerErrorException.php create mode 100644 lib/Exception/GetOrgDomainsStatusTooManyRequestsException.php create mode 100644 lib/Exception/GetOrgEmailsForbiddenException.php create mode 100644 lib/Exception/GetOrgEmailsInternalServerErrorException.php create mode 100644 lib/Exception/GetOrgEmailsNotFoundException.php create mode 100644 lib/Exception/GetOrgEmailsServiceUnavailableException.php create mode 100644 lib/Exception/GetOrgInvitationRequestsBadRequestException.php create mode 100644 lib/Exception/GetOrgInvitationRequestsForbiddenException.php create mode 100644 lib/Exception/GetOrgInvitationRequestsInternalServerErrorException.php create mode 100644 lib/Exception/GetOrgPreferencesInternalServerErrorException.php create mode 100644 lib/Exception/GetOrganizationActivityLogEntryForbiddenException.php create mode 100644 lib/Exception/GetOrganizationActivityLogEntryInternalServerErrorException.php create mode 100644 lib/Exception/GetOrganizationActivityLogEntryServiceUnavailableException.php create mode 100644 lib/Exception/GetOrganizationActivityLogForbiddenException.php create mode 100644 lib/Exception/GetOrganizationActivityLogInternalServerErrorException.php create mode 100644 lib/Exception/GetOrganizationActivityLogServiceUnavailableException.php create mode 100644 lib/Exception/GetOrganizationFeatureUsageByGroupBadRequestException.php create mode 100644 lib/Exception/GetOrganizationFeatureUsageByGroupForbiddenException.php create mode 100644 lib/Exception/GetOrganizationFeatureUsageByGroupInternalServerErrorException.php create mode 100644 lib/Exception/GetOrganizationFeatureUsageForbiddenException.php create mode 100644 lib/Exception/GetOrganizationFeatureUsageInternalServerErrorException.php create mode 100644 lib/Exception/GetOrganizationFeatureUsageServiceUnavailableException.php create mode 100644 lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupBadRequestException.php create mode 100644 lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupForbiddenException.php create mode 100644 lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupInternalServerErrorException.php create mode 100644 lib/Exception/GetOrganizationSSOSettingsForbiddenException.php create mode 100644 lib/Exception/GetOrganizationSSOSettingsInternalServerErrorException.php create mode 100644 lib/Exception/GetOrganizationSSOSettingsNotFoundException.php create mode 100644 lib/Exception/GetOrganizationSSOSettingsPaymentRequiredException.php create mode 100644 lib/Exception/GetOrganizationSSOSettingsServiceUnavailableException.php create mode 100644 lib/Exception/GetOrganizationStripeInfoBadRequestException.php create mode 100644 lib/Exception/GetOrganizationStripeInfoForbiddenException.php create mode 100644 lib/Exception/GetOrganizationStripeInfoInternalServerErrorException.php create mode 100644 lib/Exception/GetOverrideHistoryForBitlinkForbiddenException.php create mode 100644 lib/Exception/GetOverrideHistoryForBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/GetOverrideHistoryForBitlinkNotFoundException.php create mode 100644 lib/Exception/GetOverrideHistoryForBitlinkPaymentRequiredException.php create mode 100644 lib/Exception/GetOverrideHistoryForBitlinkServiceUnavailableException.php create mode 100644 lib/Exception/GetOverrideHistoryForBitlinkTooManyRequestsException.php create mode 100644 lib/Exception/GetOverrideMetricsByVersionBadRequestException.php create mode 100644 lib/Exception/GetOverrideMetricsByVersionForbiddenException.php create mode 100644 lib/Exception/GetOverrideMetricsByVersionGoneException.php create mode 100644 lib/Exception/GetOverrideMetricsByVersionInternalServerErrorException.php create mode 100644 lib/Exception/GetOverrideMetricsByVersionNotFoundException.php create mode 100644 lib/Exception/GetOverrideMetricsByVersionPaymentRequiredException.php create mode 100644 lib/Exception/GetOverrideMetricsByVersionServiceUnavailableException.php create mode 100644 lib/Exception/GetOverridesForBitlinkForbiddenException.php create mode 100644 lib/Exception/GetOverridesForBitlinkGoneException.php create mode 100644 lib/Exception/GetOverridesForBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/GetOverridesForBitlinkNotFoundException.php create mode 100644 lib/Exception/GetOverridesForBitlinkPaymentRequiredException.php create mode 100644 lib/Exception/GetOverridesForBitlinkServiceUnavailableException.php create mode 100644 lib/Exception/GetOverridesForGroupsBadRequestException.php create mode 100644 lib/Exception/GetOverridesForGroupsForbiddenException.php create mode 100644 lib/Exception/GetOverridesForGroupsInternalServerErrorException.php create mode 100644 lib/Exception/GetOverridesForGroupsNotFoundException.php create mode 100644 lib/Exception/GetOverridesForGroupsPaymentRequiredException.php create mode 100644 lib/Exception/GetOverridesForGroupsServiceUnavailableException.php create mode 100644 lib/Exception/GetPaymentInvoiceFileForbiddenException.php create mode 100644 lib/Exception/GetPaymentInvoiceFileInternalServerErrorException.php create mode 100644 lib/Exception/GetPaymentInvoiceFileNotFoundException.php create mode 100644 lib/Exception/GetPaymentInvoiceForbiddenException.php create mode 100644 lib/Exception/GetPaymentInvoiceInternalServerErrorException.php create mode 100644 lib/Exception/GetPaymentInvoicesForbiddenException.php create mode 100644 lib/Exception/GetPaymentInvoicesInternalServerErrorException.php create mode 100644 lib/Exception/GetPendingTierForOrgForbiddenException.php create mode 100644 lib/Exception/GetPendingTierForOrgInternalServerErrorException.php create mode 100644 lib/Exception/GetPendingTierForOrgNotFoundException.php create mode 100644 lib/Exception/GetPrivateGeoInternalServerErrorException.php create mode 100644 lib/Exception/GetProductUtilizationBadRequestException.php create mode 100644 lib/Exception/GetProductUtilizationForbiddenException.php create mode 100644 lib/Exception/GetProductUtilizationInternalServerErrorException.php create mode 100644 lib/Exception/GetPromoCodeValidPlansInternalServerErrorException.php create mode 100644 lib/Exception/GetPromoCodeValidPlansServiceUnavailableException.php create mode 100644 lib/Exception/GetQRCHistoryBadRequestException.php create mode 100644 lib/Exception/GetQRCHistoryForbiddenException.php create mode 100644 lib/Exception/GetQRCHistoryInternalServerErrorException.php create mode 100644 lib/Exception/GetQRCHistoryTooManyRequestsException.php create mode 100644 lib/Exception/GetQRCodeByBitlinkIdBadRequestException.php create mode 100644 lib/Exception/GetQRCodeByBitlinkIdForbiddenException.php create mode 100644 lib/Exception/GetQRCodeByBitlinkIdGoneException.php create mode 100644 lib/Exception/GetQRCodeByBitlinkIdInternalServerErrorException.php create mode 100644 lib/Exception/GetQRCodeByBitlinkIdNotFoundException.php create mode 100644 lib/Exception/GetQRCodeByIdBadRequestException.php create mode 100644 lib/Exception/GetQRCodeByIdForbiddenException.php create mode 100644 lib/Exception/GetQRCodeByIdGoneException.php create mode 100644 lib/Exception/GetQRCodeByIdInternalServerErrorException.php create mode 100644 lib/Exception/GetQRCodeByIdNotFoundException.php create mode 100644 lib/Exception/GetQRCodeCustomizationOptionsBadRequestException.php create mode 100644 lib/Exception/GetQRCodeCustomizationOptionsForbiddenException.php create mode 100644 lib/Exception/GetQRCodeCustomizationOptionsInternalServerErrorException.php create mode 100644 lib/Exception/GetQRCodeCustomizationOptionsNotFoundException.php create mode 100644 lib/Exception/GetQRCodeOverrideMetricsByVersionBadRequestException.php create mode 100644 lib/Exception/GetQRCodeOverrideMetricsByVersionForbiddenException.php create mode 100644 lib/Exception/GetQRCodeOverrideMetricsByVersionGoneException.php create mode 100644 lib/Exception/GetQRCodeOverrideMetricsByVersionInternalServerErrorException.php create mode 100644 lib/Exception/GetQRCodeOverrideMetricsByVersionNotFoundException.php create mode 100644 lib/Exception/GetQRCodeOverrideMetricsByVersionPaymentRequiredException.php create mode 100644 lib/Exception/GetQRCodeOverrideMetricsByVersionServiceUnavailableException.php create mode 100644 lib/Exception/GetQRCodeTemplatesBadRequestException.php create mode 100644 lib/Exception/GetQRCodeTemplatesForbiddenException.php create mode 100644 lib/Exception/GetQRCodeTemplatesGoneException.php create mode 100644 lib/Exception/GetQRCodeTemplatesInternalServerErrorException.php create mode 100644 lib/Exception/GetQRCodeTemplatesNotFoundException.php create mode 100644 lib/Exception/GetQRCodeTemplatesPaymentRequiredException.php create mode 100644 lib/Exception/GetRegionsListInternalServerErrorException.php create mode 100644 lib/Exception/GetRetainedEntitiesAfterDowngradeForbiddenException.php create mode 100644 lib/Exception/GetRetainedEntitiesAfterDowngradeInternalServerErrorException.php create mode 100644 lib/Exception/GetSSOUsersBadRequestException.php create mode 100644 lib/Exception/GetSSOUsersForbiddenException.php create mode 100644 lib/Exception/GetSSOUsersInternalServerErrorException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByBrowserBadRequestException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByBrowserForbiddenException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByBrowserGoneException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByBrowserInternalServerErrorException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByBrowserNotFoundException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByBrowserPaymentRequiredException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByBrowserServiceUnavailableException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCitiesBadRequestException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCitiesForbiddenException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCitiesGoneException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCitiesInternalServerErrorException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCitiesNotFoundException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCitiesPaymentRequiredException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCitiesServiceUnavailableException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCountriesBadRequestException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCountriesForbiddenException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCountriesGoneException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCountriesInternalServerErrorException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCountriesNotFoundException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByCountriesServiceUnavailableException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByDevicesOSBadRequestException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByDevicesOSForbiddenException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByDevicesOSGoneException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByDevicesOSInternalServerErrorException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByDevicesOSNotFoundException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByDevicesOSPaymentRequiredException.php create mode 100644 lib/Exception/GetScanMetricsForBitlinkByDevicesOSServiceUnavailableException.php create mode 100644 lib/Exception/GetScansForBitlinkBadRequestException.php create mode 100644 lib/Exception/GetScansForBitlinkForbiddenException.php create mode 100644 lib/Exception/GetScansForBitlinkGoneException.php create mode 100644 lib/Exception/GetScansForBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/GetScansForBitlinkNotFoundException.php create mode 100644 lib/Exception/GetScansForBitlinkServiceUnavailableException.php create mode 100644 lib/Exception/GetScansSummaryForBitlinkBadRequestException.php create mode 100644 lib/Exception/GetScansSummaryForBitlinkForbiddenException.php create mode 100644 lib/Exception/GetScansSummaryForBitlinkGoneException.php create mode 100644 lib/Exception/GetScansSummaryForBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/GetScansSummaryForBitlinkNotFoundException.php create mode 100644 lib/Exception/GetScansSummaryForBitlinkServiceUnavailableException.php create mode 100644 lib/Exception/GetShopifyShopDomainDetailsBadRequestException.php create mode 100644 lib/Exception/GetShopifyShopDomainDetailsForbiddenException.php create mode 100644 lib/Exception/GetShopifyShopDomainDetailsInternalServerErrorException.php create mode 100644 lib/Exception/GetShopifyShopDomainDetailsNotFoundException.php create mode 100644 lib/Exception/GetShopifyShopDomainDetailsServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteBadRequestException.php create mode 100644 lib/Exception/GetSiteClicksByCitiesBadRequestException.php create mode 100644 lib/Exception/GetSiteClicksByCitiesForbiddenException.php create mode 100644 lib/Exception/GetSiteClicksByCitiesInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteClicksByCitiesServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteClicksByCountriesBadRequestException.php create mode 100644 lib/Exception/GetSiteClicksByCountriesForbiddenException.php create mode 100644 lib/Exception/GetSiteClicksByCountriesInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteClicksByCountriesServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteClicksByDevicesBadRequestException.php create mode 100644 lib/Exception/GetSiteClicksByDevicesForbiddenException.php create mode 100644 lib/Exception/GetSiteClicksByDevicesInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteClicksByDevicesServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteClicksOverTimeBadRequestException.php create mode 100644 lib/Exception/GetSiteClicksOverTimeForbiddenException.php create mode 100644 lib/Exception/GetSiteClicksOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteClicksOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksBadRequestException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksForbiddenException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksNotFoundException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesBadRequestException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesForbiddenException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesNotFoundException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesBadRequestException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesForbiddenException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesNotFoundException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesBadRequestException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesForbiddenException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesNotFoundException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeBadRequestException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeForbiddenException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeNotFoundException.php create mode 100644 lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteFilteredTopPageButtonsBadRequestException.php create mode 100644 lib/Exception/GetSiteFilteredTopPageButtonsForbiddenException.php create mode 100644 lib/Exception/GetSiteFilteredTopPageButtonsInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteFilteredTopPageButtonsServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteForbiddenException.php create mode 100644 lib/Exception/GetSiteInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteLayoutsBadRequestException.php create mode 100644 lib/Exception/GetSiteLayoutsForbiddenException.php create mode 100644 lib/Exception/GetSiteLayoutsInternalServerErrorException.php create mode 100644 lib/Exception/GetSiteLayoutsNotFoundException.php create mode 100644 lib/Exception/GetSiteLayoutsServiceUnavailableException.php create mode 100644 lib/Exception/GetSiteNotFoundException.php create mode 100644 lib/Exception/GetSiteServiceUnavailableException.php create mode 100644 lib/Exception/GetSitesForGroupBadRequestException.php create mode 100644 lib/Exception/GetSitesForGroupForbiddenException.php create mode 100644 lib/Exception/GetSitesForGroupInternalServerErrorException.php create mode 100644 lib/Exception/GetSortedEngagementsBadRequestException.php create mode 100644 lib/Exception/GetSortedEngagementsForbiddenException.php create mode 100644 lib/Exception/GetSortedEngagementsGoneException.php create mode 100644 lib/Exception/GetSortedEngagementsInternalServerErrorException.php create mode 100644 lib/Exception/GetSortedEngagementsNotFoundException.php create mode 100644 lib/Exception/GetSortedEngagementsPaymentRequiredException.php create mode 100644 lib/Exception/GetSortedEngagementsServiceUnavailableException.php create mode 100644 lib/Exception/GetSortedScansBadRequestException.php create mode 100644 lib/Exception/GetSortedScansForGroupBadRequestException.php create mode 100644 lib/Exception/GetSortedScansForGroupForbiddenException.php create mode 100644 lib/Exception/GetSortedScansForGroupGoneException.php create mode 100644 lib/Exception/GetSortedScansForGroupInternalServerErrorException.php create mode 100644 lib/Exception/GetSortedScansForGroupNotFoundException.php create mode 100644 lib/Exception/GetSortedScansForGroupPaymentRequiredException.php create mode 100644 lib/Exception/GetSortedScansForGroupServiceUnavailableException.php create mode 100644 lib/Exception/GetSortedScansForbiddenException.php create mode 100644 lib/Exception/GetSortedScansGoneException.php create mode 100644 lib/Exception/GetSortedScansInternalServerErrorException.php create mode 100644 lib/Exception/GetSortedScansNotFoundException.php create mode 100644 lib/Exception/GetSortedScansPaymentRequiredException.php create mode 100644 lib/Exception/GetSortedScansServiceUnavailableException.php create mode 100644 lib/Exception/GetTemplatesForbiddenException.php create mode 100644 lib/Exception/GetTemplatesInternalServerErrorException.php create mode 100644 lib/Exception/GetTemplatesNotFoundException.php create mode 100644 lib/Exception/GetTemplatesServiceUnavailableException.php create mode 100644 lib/Exception/GetTierForbiddenException.php create mode 100644 lib/Exception/GetTierInternalServerErrorException.php create mode 100644 lib/Exception/GetTierNotFoundException.php create mode 100644 lib/Exception/GetTierServiceUnavailableException.php create mode 100644 lib/Exception/GetTiersForbiddenException.php create mode 100644 lib/Exception/GetTiersInternalServerErrorException.php create mode 100644 lib/Exception/GetTiersServiceUnavailableException.php create mode 100644 lib/Exception/GetTitleForLongURLForbiddenException.php create mode 100644 lib/Exception/GetTitleForLongURLInternalServerErrorException.php create mode 100644 lib/Exception/GetTitleForLongURLNotFoundException.php create mode 100644 lib/Exception/GetTitleForLongURLServiceUnavailableException.php create mode 100644 lib/Exception/GetTopSortedBitlinksBadRequestException.php create mode 100644 lib/Exception/GetTopSortedBitlinksForbiddenException.php create mode 100644 lib/Exception/GetTopSortedBitlinksGoneException.php create mode 100644 lib/Exception/GetTopSortedBitlinksInternalServerErrorException.php create mode 100644 lib/Exception/GetTopSortedBitlinksNotFoundException.php create mode 100644 lib/Exception/GetTopSortedBitlinksPaymentRequiredException.php create mode 100644 lib/Exception/GetTopSortedBitlinksServiceUnavailableException.php create mode 100644 lib/Exception/GetTwoFARecordInternalServerErrorException.php create mode 100644 lib/Exception/GetTwoFARecordNotFoundException.php create mode 100644 lib/Exception/GetTwoFARecordServiceUnavailableException.php create mode 100644 lib/Exception/GetUMGroupPreferencesForbiddenException.php create mode 100644 lib/Exception/GetUMGroupPreferencesInternalServerErrorException.php create mode 100644 lib/Exception/GetUMGroupPreferencesNotFoundException.php create mode 100644 lib/Exception/GetUMGroupPreferencesUnprocessableEntityException.php create mode 100644 lib/Exception/GetUserActivityLogForbiddenException.php create mode 100644 lib/Exception/GetUserActivityLogInternalServerErrorException.php create mode 100644 lib/Exception/GetUserActivityLogServiceUnavailableException.php create mode 100644 lib/Exception/GetUserAvailableTiersForbiddenException.php create mode 100644 lib/Exception/GetUserAvailableTiersInternalServerErrorException.php create mode 100644 lib/Exception/GetUserAvailableTiersServiceUnavailableException.php create mode 100644 lib/Exception/GetUserOnboardingSurveyResultsForbiddenException.php create mode 100644 lib/Exception/GetUserOnboardingSurveyResultsInternalServerErrorException.php create mode 100644 lib/Exception/GetUserPreferencesBadRequestException.php create mode 100644 lib/Exception/GetUserPreferencesInternalServerErrorException.php create mode 100644 lib/Exception/GetUsersForbiddenException.php create mode 100644 lib/Exception/GetUsersInternalServerErrorException.php create mode 100644 lib/Exception/GetUsersNotFoundException.php create mode 100644 lib/Exception/GetUsersServiceUnavailableException.php create mode 100644 lib/Exception/GetViewsForLaunchpadForbiddenException.php create mode 100644 lib/Exception/GetViewsForLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/GetViewsForLaunchpadNotFoundException.php create mode 100644 lib/Exception/GetViewsForLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/GetViewsForSiteForbiddenException.php create mode 100644 lib/Exception/GetViewsForSiteInternalServerErrorException.php create mode 100644 lib/Exception/GetViewsForSiteNotFoundException.php create mode 100644 lib/Exception/GetViewsForSiteServiceUnavailableException.php create mode 100644 lib/Exception/GetViewsSummaryForLaunchpadForbiddenException.php create mode 100644 lib/Exception/GetViewsSummaryForLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/GetViewsSummaryForLaunchpadNotFoundException.php create mode 100644 lib/Exception/GetViewsSummaryForLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/GetViewsSummaryForSiteForbiddenException.php create mode 100644 lib/Exception/GetViewsSummaryForSiteInternalServerErrorException.php create mode 100644 lib/Exception/GetViewsSummaryForSiteNotFoundException.php create mode 100644 lib/Exception/GetViewsSummaryForSiteServiceUnavailableException.php create mode 100644 lib/Exception/HandleWebhookForbiddenException.php create mode 100644 lib/Exception/HandleWebhookInternalServerErrorException.php create mode 100644 lib/Exception/HandleWebhookUnprocessableEntityException.php create mode 100644 lib/Exception/NotifyPaymentFailureBadRequestException.php create mode 100644 lib/Exception/NotifyPaymentFailureInternalServerErrorException.php create mode 100644 lib/Exception/NotifyPaymentFailureServiceUnavailableException.php create mode 100644 lib/Exception/NotifyPaymentFailureUnprocessableEntityException.php create mode 100644 lib/Exception/PatchCanvaUserBrandBadRequestException.php create mode 100644 lib/Exception/PatchCanvaUserBrandInternalServerErrorException.php create mode 100644 lib/Exception/PatchCanvaUserBrandNotFoundException.php create mode 100644 lib/Exception/PatchOrgControlledDomainBadRequestException.php create mode 100644 lib/Exception/PatchOrgControlledDomainForbiddenException.php create mode 100644 lib/Exception/PatchOrgControlledDomainInternalServerErrorException.php create mode 100644 lib/Exception/PatchOrgControlledDomainPaymentRequiredException.php create mode 100644 lib/Exception/PatchOrgControlledDomainUnprocessableEntityException.php create mode 100644 lib/Exception/PatchOrgInvitationRequestBadRequestException.php create mode 100644 lib/Exception/PatchOrgInvitationRequestForbiddenException.php create mode 100644 lib/Exception/PatchOrgInvitationRequestInternalServerErrorException.php create mode 100644 lib/Exception/PatchOrgInvitationRequestUnprocessableEntityException.php create mode 100644 lib/Exception/PatchUMGroupPreferencesBadRequestException.php create mode 100644 lib/Exception/PatchUMGroupPreferencesForbiddenException.php create mode 100644 lib/Exception/PatchUMGroupPreferencesInternalServerErrorException.php create mode 100644 lib/Exception/PatchUMGroupPreferencesNotFoundException.php create mode 100644 lib/Exception/PatchUMGroupPreferencesUnprocessableEntityException.php create mode 100644 lib/Exception/PostGetLinksReportBadRequestException.php create mode 100644 lib/Exception/PostGetLinksReportForbiddenException.php create mode 100644 lib/Exception/PostGetLinksReportInternalServerErrorException.php create mode 100644 lib/Exception/PostGetLinksReportPaymentRequiredException.php create mode 100644 lib/Exception/PostGetLinksReportServiceUnavailableException.php create mode 100644 lib/Exception/PostGetLinksReportUnprocessableEntityException.php create mode 100644 lib/Exception/PostGroupDataExportBadRequestException.php create mode 100644 lib/Exception/PostGroupDataExportForbiddenException.php create mode 100644 lib/Exception/PostGroupDataExportInternalServerErrorException.php create mode 100644 lib/Exception/PostGroupDataExportServiceUnavailableException.php create mode 100644 lib/Exception/PostGroupDataExportUnprocessableEntityException.php create mode 100644 lib/Exception/PostOrgUsersDataExportBadRequestException.php create mode 100644 lib/Exception/PostOrgUsersDataExportForbiddenException.php create mode 100644 lib/Exception/PostOrgUsersDataExportInternalServerErrorException.php create mode 100644 lib/Exception/PostOrgUsersDataExportPaymentRequiredException.php create mode 100644 lib/Exception/PostOrgUsersDataExportUnprocessableEntityException.php create mode 100644 lib/Exception/PrevalidateYouTubeVideoButtonBadRequestException.php create mode 100644 lib/Exception/PrevalidateYouTubeVideoButtonForbiddenException.php create mode 100644 lib/Exception/PrevalidateYouTubeVideoButtonInternalServerErrorException.php create mode 100644 lib/Exception/PrevalidateYouTubeVideoButtonUnprocessableEntityException.php create mode 100644 lib/Exception/PublishDraftLaunchpadBadRequestException.php create mode 100644 lib/Exception/PublishDraftLaunchpadForbiddenException.php create mode 100644 lib/Exception/PublishDraftLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/PublishDraftLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/PublishSiteBadRequestException.php create mode 100644 lib/Exception/PublishSiteForbiddenException.php create mode 100644 lib/Exception/PublishSiteInternalServerErrorException.php create mode 100644 lib/Exception/PublishSiteServiceUnavailableException.php create mode 100644 lib/Exception/PurchaseAddOnsBadRequestException.php create mode 100644 lib/Exception/PurchaseAddOnsForbiddenException.php create mode 100644 lib/Exception/PurchaseAddOnsInternalServerErrorException.php create mode 100644 lib/Exception/PurchaseAddOnsNotFoundException.php create mode 100644 lib/Exception/PurchaseAddOnsServiceUnavailableException.php create mode 100644 lib/Exception/PurchaseAddOnsUnprocessableEntityException.php create mode 100644 lib/Exception/PurchaseBsdForbiddenException.php create mode 100644 lib/Exception/PurchaseBsdInternalServerErrorException.php create mode 100644 lib/Exception/PurchaseStripeAddOnsBadRequestException.php create mode 100644 lib/Exception/PurchaseStripeAddOnsForbiddenException.php create mode 100644 lib/Exception/PurchaseStripeAddOnsInternalServerErrorException.php create mode 100644 lib/Exception/PurchaseStripeAddOnsNotFoundException.php create mode 100644 lib/Exception/PurchaseStripeAddOnsServiceUnavailableException.php create mode 100644 lib/Exception/PurchaseStripeAddOnsUnprocessableEntityException.php create mode 100644 lib/Exception/RedirectQRCodeDestinationBadRequestException.php create mode 100644 lib/Exception/RedirectQRCodeDestinationForbiddenException.php create mode 100644 lib/Exception/RedirectQRCodeDestinationInternalServerErrorException.php create mode 100644 lib/Exception/RedirectQRCodeDestinationNotFoundException.php create mode 100644 lib/Exception/RedirectQRCodeDestinationTooManyRequestsException.php create mode 100644 lib/Exception/RegeneratePaymentInvoiceFileForbiddenException.php create mode 100644 lib/Exception/RegeneratePaymentInvoiceFileInternalServerErrorException.php create mode 100644 lib/Exception/ReorderBlocksByContainerBadRequestException.php create mode 100644 lib/Exception/ReorderBlocksByContainerForbiddenException.php create mode 100644 lib/Exception/ReorderBlocksByContainerInternalServerErrorException.php create mode 100644 lib/Exception/ReorderBlocksByContainerNotFoundException.php create mode 100644 lib/Exception/ReorderBlocksByContainerServiceUnavailableException.php create mode 100644 lib/Exception/ReorderBlocksByContainerUnprocessableEntityException.php create mode 100644 lib/Exception/RequestUserSARForbiddenException.php create mode 100644 lib/Exception/RequestUserSARInternalServerErrorException.php create mode 100644 lib/Exception/RequestUserSARServiceUnavailableException.php create mode 100644 lib/Exception/ResendInvitationForbiddenException.php create mode 100644 lib/Exception/ResendInvitationInternalServerErrorException.php create mode 100644 lib/Exception/ResendInvitationNotFoundException.php create mode 100644 lib/Exception/ResendInvitationTooManyRequestsException.php create mode 100644 lib/Exception/ScheduleOrgDowngradeStripeBadRequestException.php create mode 100644 lib/Exception/ScheduleOrgDowngradeStripeForbiddenException.php create mode 100644 lib/Exception/ScheduleOrgDowngradeStripeInternalServerErrorException.php create mode 100644 lib/Exception/ScheduleOrganizationDowngradeBadRequestException.php create mode 100644 lib/Exception/ScheduleOrganizationDowngradeForbiddenException.php create mode 100644 lib/Exception/ScheduleOrganizationDowngradeInternalServerErrorException.php create mode 100644 lib/Exception/SearchDomainsForbiddenException.php create mode 100644 lib/Exception/SearchDomainsInternalServerErrorException.php create mode 100644 lib/Exception/SearchGroupUserRolesBadRequestException.php create mode 100644 lib/Exception/SearchGroupUserRolesForbiddenException.php create mode 100644 lib/Exception/SearchGroupUserRolesInternalServerErrorException.php create mode 100644 lib/Exception/SearchGroupUserRolesNotFoundException.php create mode 100644 lib/Exception/SearchOrgUserRolesBadRequestException.php create mode 100644 lib/Exception/SearchOrgUserRolesForbiddenException.php create mode 100644 lib/Exception/SearchOrgUserRolesInternalServerErrorException.php create mode 100644 lib/Exception/SearchOrgUserRolesNotFoundException.php create mode 100644 lib/Exception/SendEmailVerificationBadRequestException.php create mode 100644 lib/Exception/SendEmailVerificationInternalServerErrorException.php create mode 100644 lib/Exception/SendEmailVerificationNotFoundException.php create mode 100644 lib/Exception/SendEmailVerificationServiceUnavailableException.php create mode 100644 lib/Exception/SendVerificationCodeBadRequestException.php create mode 100644 lib/Exception/SendVerificationCodeForbiddenException.php create mode 100644 lib/Exception/SendVerificationCodeInternalServerErrorException.php create mode 100644 lib/Exception/SendVerificationCodeNotFoundException.php create mode 100644 lib/Exception/SendVerificationCodeServiceUnavailableException.php create mode 100644 lib/Exception/SendVerificationCodeUnauthorizedException.php create mode 100644 lib/Exception/SetOrgPreferenceBadRequestException.php create mode 100644 lib/Exception/SetOrgPreferenceForbiddenException.php create mode 100644 lib/Exception/SetOrgPreferenceInternalServerErrorException.php create mode 100644 lib/Exception/SetOrgPreferenceUnprocessableEntityException.php create mode 100644 lib/Exception/SetPaymentMethodDefaultBadRequestException.php create mode 100644 lib/Exception/SetPaymentMethodDefaultForbiddenException.php create mode 100644 lib/Exception/SetPaymentMethodDefaultInternalServerErrorException.php create mode 100644 lib/Exception/SetPaymentMethodDefaultServiceUnavailableException.php create mode 100644 lib/Exception/SetPaymentMethodDefaultUnprocessableEntityException.php create mode 100644 lib/Exception/SetPhoneNumberBadRequestException.php create mode 100644 lib/Exception/SetPhoneNumberForbiddenException.php create mode 100644 lib/Exception/SetPhoneNumberInternalServerErrorException.php create mode 100644 lib/Exception/SetPhoneNumberServiceUnavailableException.php create mode 100644 lib/Exception/SetPhoneNumberUnprocessableEntityException.php create mode 100644 lib/Exception/SetStripeDefaultPaymentMethodBadRequestException.php create mode 100644 lib/Exception/SetStripeDefaultPaymentMethodForbiddenException.php create mode 100644 lib/Exception/SetStripeDefaultPaymentMethodInternalServerErrorException.php create mode 100644 lib/Exception/SetStripeDefaultPaymentMethodServiceUnavailableException.php create mode 100644 lib/Exception/SetStripeDefaultPaymentMethodUnprocessableEntityException.php create mode 100644 lib/Exception/SetUserPreferenceBadRequestException.php create mode 100644 lib/Exception/SetUserPreferenceInternalServerErrorException.php create mode 100644 lib/Exception/SetUserPreferenceUnprocessableEntityException.php create mode 100644 lib/Exception/ThirdPartyAppLookupForbiddenException.php create mode 100644 lib/Exception/ThirdPartyAppLookupInternalServerErrorException.php create mode 100644 lib/Exception/ThirdPartyAppLookupNotFoundException.php create mode 100644 lib/Exception/ThirdPartyAppLookupPaymentRequiredException.php create mode 100644 lib/Exception/ThirdPartyAppLookupServiceUnavailableException.php create mode 100644 lib/Exception/UnauthorizedException.php create mode 100644 lib/Exception/UpdateAnalyticsModuleBadRequestException.php create mode 100644 lib/Exception/UpdateAnalyticsModuleForbiddenException.php create mode 100644 lib/Exception/UpdateAnalyticsModuleInternalServerErrorException.php create mode 100644 lib/Exception/UpdateAnalyticsModuleNotFoundException.php create mode 100644 lib/Exception/UpdateAnalyticsModuleServiceUnavailableException.php create mode 100644 lib/Exception/UpdateAnalyticsReportBadRequestException.php create mode 100644 lib/Exception/UpdateAnalyticsReportForbiddenException.php create mode 100644 lib/Exception/UpdateAnalyticsReportInternalServerErrorException.php create mode 100644 lib/Exception/UpdateAnalyticsReportNotFoundException.php create mode 100644 lib/Exception/UpdateAnalyticsReportServiceUnavailableException.php create mode 100644 lib/Exception/UpdateAppAssociationsBadRequestException.php create mode 100644 lib/Exception/UpdateAppAssociationsForbiddenException.php create mode 100644 lib/Exception/UpdateAppAssociationsInternalServerErrorException.php create mode 100644 lib/Exception/UpdateAppAssociationsNotFoundException.php create mode 100644 lib/Exception/UpdateAppAssociationsPaymentRequiredException.php create mode 100644 lib/Exception/UpdateAppAssociationsServiceUnavailableException.php create mode 100644 lib/Exception/UpdateBillingInfoBadRequestException.php create mode 100644 lib/Exception/UpdateBillingInfoForbiddenException.php create mode 100644 lib/Exception/UpdateBillingInfoInternalServerErrorException.php create mode 100644 lib/Exception/UpdateBillingInfoUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateBitlinkConflictException.php create mode 100644 lib/Exception/UpdateDeeplinkAppForbiddenException.php create mode 100644 lib/Exception/UpdateDeeplinkAppInternalServerErrorException.php create mode 100644 lib/Exception/UpdateDeeplinkAppNotFoundException.php create mode 100644 lib/Exception/UpdateDeeplinkAppPaymentRequiredException.php create mode 100644 lib/Exception/UpdateDeeplinkAppServiceUnavailableException.php create mode 100644 lib/Exception/UpdateDeeplinkAppUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateDeeplinkRuleForbiddenException.php create mode 100644 lib/Exception/UpdateDeeplinkRuleInternalServerErrorException.php create mode 100644 lib/Exception/UpdateDeeplinkRuleNotFoundException.php create mode 100644 lib/Exception/UpdateDeeplinkRulePaymentRequiredException.php create mode 100644 lib/Exception/UpdateDeeplinkRuleServiceUnavailableException.php create mode 100644 lib/Exception/UpdateDeeplinkRuleUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateEmailBadRequestException.php create mode 100644 lib/Exception/UpdateEmailForbiddenException.php create mode 100644 lib/Exception/UpdateEmailInternalServerErrorException.php create mode 100644 lib/Exception/UpdateEmailNotFoundException.php create mode 100644 lib/Exception/UpdateEmailServiceUnavailableException.php create mode 100644 lib/Exception/UpdateEntitiesRetainedOnDowngradeBadRequestException.php create mode 100644 lib/Exception/UpdateEntitiesRetainedOnDowngradeForbiddenException.php create mode 100644 lib/Exception/UpdateEntitiesRetainedOnDowngradeInternalServerErrorException.php create mode 100644 lib/Exception/UpdateEntitiesRetainedOnDowngradeUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateImageBadRequestException.php create mode 100644 lib/Exception/UpdateImageForbiddenException.php create mode 100644 lib/Exception/UpdateImageInternalServerErrorException.php create mode 100644 lib/Exception/UpdateImageNotFoundException.php create mode 100644 lib/Exception/UpdateImageServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadBitlinkContentBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadBitlinkContentForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadBitlinkContentInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadBitlinkContentNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadBitlinkContentServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonSortOrderBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonSortOrderForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonSortOrderInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonSortOrderNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadButtonSortOrderServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadCarouselContentBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadCarouselContentForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadCarouselContentInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadCarouselContentNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadCarouselContentServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadCarouselContentUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateLaunchpadForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadGridContentBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadGridContentForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadGridContentInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadGridContentNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadGridContentServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadGridContentUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateLaunchpadImageByImageUseBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadImageByImageUseForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadImageByImageUseInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadImageByImageUseNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadImageByImageUseServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadImageContentBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadImageContentForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadImageContentInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadImageContentNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadImageContentServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadSocialBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadSocialForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadSocialInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadSocialNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadSocialServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLaunchpadTooManyRequestsException.php create mode 100644 lib/Exception/UpdateLaunchpadYoutubeVideoBadRequestException.php create mode 100644 lib/Exception/UpdateLaunchpadYoutubeVideoForbiddenException.php create mode 100644 lib/Exception/UpdateLaunchpadYoutubeVideoInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLaunchpadYoutubeVideoNotFoundException.php create mode 100644 lib/Exception/UpdateLaunchpadYoutubeVideoServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLinkBadRequestException.php create mode 100644 lib/Exception/UpdateLinkConflictException.php create mode 100644 lib/Exception/UpdateLinkExpectationFailedException.php create mode 100644 lib/Exception/UpdateLinkForbiddenException.php create mode 100644 lib/Exception/UpdateLinkInternalServerErrorException.php create mode 100644 lib/Exception/UpdateLinkNotFoundException.php create mode 100644 lib/Exception/UpdateLinkPaymentRequiredException.php create mode 100644 lib/Exception/UpdateLinkServiceUnavailableException.php create mode 100644 lib/Exception/UpdateLinkTooManyRequestsException.php create mode 100644 lib/Exception/UpdateLinkUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateOAuthAppBadRequestException.php create mode 100644 lib/Exception/UpdateOAuthAppClientSecretForbiddenException.php create mode 100644 lib/Exception/UpdateOAuthAppClientSecretInternalServerErrorException.php create mode 100644 lib/Exception/UpdateOAuthAppClientSecretNotFoundException.php create mode 100644 lib/Exception/UpdateOAuthAppClientSecretServiceUnavailableException.php create mode 100644 lib/Exception/UpdateOAuthAppForbiddenException.php create mode 100644 lib/Exception/UpdateOAuthAppInternalServerErrorException.php create mode 100644 lib/Exception/UpdateOAuthAppNotFoundException.php create mode 100644 lib/Exception/UpdateOAuthAppServiceUnavailableException.php create mode 100644 lib/Exception/UpdateOrganizationForbiddenException.php create mode 100644 lib/Exception/UpdateOrganizationInternalServerErrorException.php create mode 100644 lib/Exception/UpdateOrganizationNotFoundException.php create mode 100644 lib/Exception/UpdateOrganizationSSOSettingsForbiddenException.php create mode 100644 lib/Exception/UpdateOrganizationSSOSettingsInternalServerErrorException.php create mode 100644 lib/Exception/UpdateOrganizationSSOSettingsNotFoundException.php create mode 100644 lib/Exception/UpdateOrganizationSSOSettingsPaymentRequiredException.php create mode 100644 lib/Exception/UpdateOrganizationSSOSettingsServiceUnavailableException.php create mode 100644 lib/Exception/UpdateOrganizationSSOSettingsUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateOrganizationServiceUnavailableException.php create mode 100644 lib/Exception/UpdateOverridesForBitlinkBadRequestException.php create mode 100644 lib/Exception/UpdateOverridesForBitlinkForbiddenException.php create mode 100644 lib/Exception/UpdateOverridesForBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/UpdateOverridesForBitlinkNotFoundException.php create mode 100644 lib/Exception/UpdateOverridesForBitlinkPaymentRequiredException.php create mode 100644 lib/Exception/UpdateOverridesForBitlinkServiceUnavailableException.php create mode 100644 lib/Exception/UpdateOverridesForBitlinkTooManyRequestsException.php create mode 100644 lib/Exception/UpdateOverridesForBitlinkUnprocessableEntityException.php create mode 100644 lib/Exception/UpdatePaymentContactInfoBadRequestException.php create mode 100644 lib/Exception/UpdatePaymentContactInfoForbiddenException.php create mode 100644 lib/Exception/UpdatePaymentContactInfoInternalServerErrorException.php create mode 100644 lib/Exception/UpdatePaymentContactInfoNotFoundException.php create mode 100644 lib/Exception/UpdatePaymentContactInfoUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateSiteAppearanceBadRequestException.php create mode 100644 lib/Exception/UpdateSiteAppearanceForbiddenException.php create mode 100644 lib/Exception/UpdateSiteAppearanceInternalServerErrorException.php create mode 100644 lib/Exception/UpdateSiteAppearanceNotFoundException.php create mode 100644 lib/Exception/UpdateSiteAppearanceServiceUnavailableException.php create mode 100644 lib/Exception/UpdateSiteButtonBadRequestException.php create mode 100644 lib/Exception/UpdateSiteButtonExpectationFailedException.php create mode 100644 lib/Exception/UpdateSiteButtonForbiddenException.php create mode 100644 lib/Exception/UpdateSiteButtonInternalServerErrorException.php create mode 100644 lib/Exception/UpdateSiteButtonNotFoundException.php create mode 100644 lib/Exception/UpdateSiteButtonTooManyRequestsException.php create mode 100644 lib/Exception/UpdateSiteButtonUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateSitesToKeepBadRequestException.php create mode 100644 lib/Exception/UpdateSitesToKeepForbiddenException.php create mode 100644 lib/Exception/UpdateSitesToKeepInternalServerErrorException.php create mode 100644 lib/Exception/UpdateSitesToKeepUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateStripeCustomerBadRequestException.php create mode 100644 lib/Exception/UpdateStripeCustomerForbiddenException.php create mode 100644 lib/Exception/UpdateStripeCustomerInternalServerErrorException.php create mode 100644 lib/Exception/UpdateStripeCustomerUnprocessableEntityException.php create mode 100644 lib/Exception/UpdateUserWithRoleBadRequestException.php create mode 100644 lib/Exception/UpdateUserWithRoleForbiddenException.php create mode 100644 lib/Exception/UpdateUserWithRoleInternalServerErrorException.php create mode 100644 lib/Exception/UpdateUserWithRoleServiceUnavailableException.php create mode 100644 lib/Exception/UpdateUserWithRoleUnprocessableEntityException.php create mode 100644 lib/Exception/UpgradeOrganizationBadRequestException.php create mode 100644 lib/Exception/UpgradeOrganizationForbiddenException.php create mode 100644 lib/Exception/UpgradeOrganizationInternalServerErrorException.php create mode 100644 lib/Exception/UpgradeOrganizationUnprocessableEntityException.php create mode 100644 lib/Exception/UpgradeOrganizationWithStripeSubscriptionBadRequestException.php create mode 100644 lib/Exception/UpgradeOrganizationWithStripeSubscriptionForbiddenException.php create mode 100644 lib/Exception/UpgradeOrganizationWithStripeSubscriptionInternalServerErrorException.php create mode 100644 lib/Exception/UpgradeOrganizationWithStripeSubscriptionUnprocessableEntityException.php create mode 100644 lib/Exception/UpgradeQRCodeToBitlinkBadRequestException.php create mode 100644 lib/Exception/UpgradeQRCodeToBitlinkForbiddenException.php create mode 100644 lib/Exception/UpgradeQRCodeToBitlinkInternalServerErrorException.php create mode 100644 lib/Exception/UpgradeQRCodeToBitlinkNotFoundException.php create mode 100644 lib/Exception/UpgradeQRCodeToBitlinkTooManyRequestsException.php create mode 100644 lib/Exception/UploadImageBadRequestException.php create mode 100644 lib/Exception/UploadImageForbiddenException.php create mode 100644 lib/Exception/UploadImageInternalServerErrorException.php create mode 100644 lib/Exception/UploadImageNotFoundException.php create mode 100644 lib/Exception/UploadImageServiceUnavailableException.php create mode 100644 lib/Exception/UploadLaunchpadImageBadRequestException.php create mode 100644 lib/Exception/UploadLaunchpadImageForbiddenException.php create mode 100644 lib/Exception/UploadLaunchpadImageInternalServerErrorException.php create mode 100644 lib/Exception/UploadLaunchpadImageNotFoundException.php create mode 100644 lib/Exception/UploadLaunchpadImageServiceUnavailableException.php create mode 100644 lib/Exception/UpsertOrgEmailForbiddenException.php create mode 100644 lib/Exception/UpsertOrgEmailInternalServerErrorException.php create mode 100644 lib/Exception/UpsertOrgEmailNotFoundException.php create mode 100644 lib/Exception/UpsertOrgEmailServiceUnavailableException.php create mode 100644 lib/Exception/UserAcceptInviteBadRequestException.php create mode 100644 lib/Exception/UserAcceptInviteForbiddenException.php create mode 100644 lib/Exception/UserAcceptInviteInternalServerErrorException.php create mode 100644 lib/Exception/UserAcceptInviteUnprocessableEntityException.php create mode 100644 lib/Exception/ValidateBulkUploadBadRequestException.php create mode 100644 lib/Exception/ValidateBulkUploadForbiddenException.php create mode 100644 lib/Exception/ValidateBulkUploadInternalServerErrorException.php create mode 100644 lib/Exception/ValidateBulkUploadNotFoundException.php create mode 100644 lib/Exception/ValidateBulkUploadPaymentRequiredException.php create mode 100644 lib/Exception/ValidateBulkUploadServiceUnavailableException.php create mode 100644 lib/Exception/ValidateBulkUploadUnprocessableEntityException.php create mode 100644 lib/Exception/ValidateCustomDomainBadRequestException.php create mode 100644 lib/Exception/ValidateCustomDomainForbiddenException.php create mode 100644 lib/Exception/ValidateCustomDomainInternalServerErrorException.php create mode 100644 lib/Exception/ValidateCustomDomainNotFoundException.php create mode 100644 lib/Exception/ValidateCustomDomainServiceUnavailableException.php create mode 100644 lib/Exception/ValidateCustomDomainUnprocessableEntityException.php create mode 100644 lib/Exception/ValidatePromoCodeBadRequestException.php create mode 100644 lib/Exception/ValidatePromoCodeInternalServerErrorException.php create mode 100644 lib/Exception/ValidatePromoCodeNotFoundException.php create mode 100644 lib/Exception/ValidatePromoCodeServiceUnavailableException.php create mode 100644 lib/Exception/ValidateStripePromoCodeBadRequestException.php create mode 100644 lib/Exception/ValidateStripePromoCodeInternalServerErrorException.php create mode 100644 lib/Exception/ValidateStripePromoCodeNotFoundException.php create mode 100644 lib/Exception/ValidateStripePromoCodeServiceUnavailableException.php create mode 100644 lib/Exception/VerifySSOSlugForbiddenException.php create mode 100644 lib/Exception/VerifySSOSlugInternalServerErrorException.php create mode 100644 lib/Exception/VerifySSOSlugNotFoundException.php create mode 100644 lib/Exception/VerifySSOSlugPaymentRequiredException.php create mode 100644 lib/Exception/VerifySSOSlugServiceUnavailableException.php create mode 100644 lib/Exception/VerifyTwoFactorCodeBadRequestException.php create mode 100644 lib/Exception/VerifyTwoFactorCodeInternalServerErrorException.php create mode 100644 lib/Exception/VerifyTwoFactorCodeNotFoundException.php create mode 100644 lib/Exception/VerifyTwoFactorCodeServiceUnavailableException.php create mode 100644 lib/Model/AggregateLaunchpadsOverviewGetResponse200.php create mode 100644 lib/Model/AggregateSitesOverviewGetResponse200.php create mode 100644 lib/Model/CampaignsCampaignGuidAddURLsPostBody.php create mode 100644 lib/Model/GroupsGroupGuidLinksClicksDevicesGetResponse200.php create mode 100644 lib/Model/GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItem.php create mode 100644 lib/Model/GroupsGroupGuidPagesOverviewGetResponse200.php create mode 100644 lib/Model/LinksBitlinkDestinationsPutBody.php create mode 100644 lib/Normalizer/AggregateLaunchpadsOverviewGetResponse200Normalizer.php create mode 100644 lib/Normalizer/AggregateSitesOverviewGetResponse200Normalizer.php create mode 100644 lib/Normalizer/CampaignsCampaignGuidAddURLsPostBodyNormalizer.php create mode 100644 lib/Normalizer/GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItemNormalizer.php create mode 100644 lib/Normalizer/GroupsGroupGuidLinksClicksDevicesGetResponse200Normalizer.php create mode 100644 lib/Normalizer/GroupsGroupGuidPagesOverviewGetResponse200Normalizer.php create mode 100644 lib/Normalizer/LinksBitlinkDestinationsPutBodyNormalizer.php diff --git a/lib/Client.php b/lib/Client.php index 7c9de5a..0b09e44 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -32,6 +32,53 @@ public function createBitlink(Model\Shorten $requestBody, string $fetch = self:: return $this->executeEndpoint(new Endpoint\CreateBitlink($requestBody), $fetch); } + /** + * Converts a long url to a Bitlink and sets additional parameters. You may see errors returned from this endpoint - "BRANDED_LINK_MONTHLY_LIMIT_EXCEEDED" occurs if you have shortened more links than your account is configured for for the month, and "DNS_CONFIGURATION_ERROR" occurs if you are attempting to shorten links against a custom domain which doesn't have DNS properly configured. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LinkBody|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateLinkBadRequestException + * @throws Exception\CreateLinkPaymentRequiredException + * @throws Exception\CreateLinkForbiddenException + * @throws Exception\CreateLinkNotFoundException + * @throws Exception\CreateLinkConflictException + * @throws Exception\CreateLinkExpectationFailedException + * @throws Exception\CreateLinkUnprocessableEntityException + * @throws Exception\CreateLinkTooManyRequestsException + * @throws Exception\CreateLinkInternalServerErrorException + * @throws Exception\CreateLinkServiceUnavailableException + */ + public function createLink(Model\FullLink $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLink($requestBody), $fetch); + } + + /** + * Updates the destination of a bitlink. You may see errors returned from this endpoint - "BRANDED_LINK_MONTHLY_LIMIT_EXCEEDED" occurs if you have shortened more links than your account is configured for for the month, and "DNS_CONFIGURATION_ERROR" occurs if you are attempting to shorten links against a custom domain which doesn't have DNS properly configured. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LinkBody|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLinkBadRequestException + * @throws Exception\UpdateLinkPaymentRequiredException + * @throws Exception\UpdateLinkForbiddenException + * @throws Exception\UpdateLinkNotFoundException + * @throws Exception\UpdateLinkConflictException + * @throws Exception\UpdateLinkExpectationFailedException + * @throws Exception\UpdateLinkUnprocessableEntityException + * @throws Exception\UpdateLinkTooManyRequestsException + * @throws Exception\UpdateLinkInternalServerErrorException + * @throws Exception\UpdateLinkServiceUnavailableException + */ + public function updateLink(string $bitlink, Model\LinksBitlinkDestinationsPutBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLink($bitlink, $requestBody), $fetch); + } + /** * Converts a long url to a Bitlink and sets additional parameters. You may see errors returned from this endpoint - "BRANDED_LINK_MONTHLY_LIMIT_EXCEEDED" occurs if you have shortened more links than your account is configured for for the month, and "DNS_CONFIGURATION_ERROR" occurs if you are attempting to shorten links against a custom domain which doesn't have DNS properly configured. * @@ -95,7 +142,7 @@ public function getBitlink(string $bitlink, string $fetch = self::FETCH_OBJECT) } /** - * Updates fields in the specified link. To redirect the link (i.e. to update the Long URL), use PATCH /v4/custom_bitlinks/{custom_bitlink} (https://dev.bitly.com/api-reference/#updateCustomBitlink). + * Updates fields in the specified link. To redirect the link (i.e. to update the Long URL), use the long_url parameter. This will always charge an encode limit. * * @param string $bitlink A Bitlink made of the domain and hash * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -106,6 +153,7 @@ public function getBitlink(string $bitlink, string $fetch = self::FETCH_OBJECT) * @throws Exception\UpdateBitlinkPaymentRequiredException * @throws Exception\UpdateBitlinkForbiddenException * @throws Exception\UpdateBitlinkNotFoundException + * @throws Exception\UpdateBitlinkConflictException * @throws Exception\UpdateBitlinkGoneException * @throws Exception\UpdateBitlinkUnprocessableEntityException * @throws Exception\UpdateBitlinkTooManyRequestsException @@ -136,6 +184,30 @@ public function expandBitlink(Model\ExpandBitlink $requestBody, string $fetch = return $this->executeEndpoint(new Endpoint\ExpandBitlink($requestBody), $fetch); } + /** + * Retrieves batched click counts for the specified link. + * + * @param array $queryParameters { + * + * @var array $bitlink_id The query parameter used to get clicks for a Bitlink + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBitlinkClickCountsBadRequestException + * @throws Exception\GetBitlinkClickCountsNotFoundException + * @throws Exception\GetBitlinkClickCountsGoneException + * @throws Exception\GetBitlinkClickCountsUnprocessableEntityException + * @throws Exception\GetBitlinkClickCountsInternalServerErrorException + * @throws Exception\GetBitlinkClickCountsServiceUnavailableException + */ + public function getBitlinkClickCounts(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBitlinkClickCounts($queryParameters), $fetch); + } + /** * Returns the click counts for the specified link in an array based on a date. * @@ -190,99 +262,116 @@ public function getClicksSummaryForBitlink(string $bitlink, array $queryParamete } /** - * Returns the country origins of click traffic for the specified link. + * Returns the scan counts for the specified link in an array based on a date. * * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { * * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time - * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/csv * - * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\Scans|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetMetricsForBitlinkByCountriesBadRequestException - * @throws Exception\GetMetricsForBitlinkByCountriesForbiddenException - * @throws Exception\GetMetricsForBitlinkByCountriesNotFoundException - * @throws Exception\GetMetricsForBitlinkByCountriesGoneException - * @throws Exception\GetMetricsForBitlinkByCountriesTooManyRequestsException - * @throws Exception\GetMetricsForBitlinkByCountriesInternalServerErrorException - * @throws Exception\GetMetricsForBitlinkByCountriesServiceUnavailableException + * @throws Exception\GetScansForBitlinkBadRequestException + * @throws Exception\GetScansForBitlinkForbiddenException + * @throws Exception\GetScansForBitlinkNotFoundException + * @throws Exception\GetScansForBitlinkGoneException + * @throws Exception\GetScansForBitlinkInternalServerErrorException + * @throws Exception\GetScansForBitlinkServiceUnavailableException */ - public function getMetricsForBitlinkByCountries(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getScansForBitlink(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByCountries($bitlink, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetScansForBitlink($bitlink, $queryParameters, $accept), $fetch); } /** - * Returns the city origins of click traffic for the specified link. + * Returns the scan counts for the specified link rolled up into a single field. * * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { * * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time - * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\CityMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\ScansSummary|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetMetricsForBitlinkByCitiesBadRequestException - * @throws Exception\GetMetricsForBitlinkByCitiesPaymentRequiredException - * @throws Exception\GetMetricsForBitlinkByCitiesForbiddenException - * @throws Exception\GetMetricsForBitlinkByCitiesNotFoundException - * @throws Exception\GetMetricsForBitlinkByCitiesGoneException - * @throws Exception\GetMetricsForBitlinkByCitiesTooManyRequestsException - * @throws Exception\GetMetricsForBitlinkByCitiesInternalServerErrorException - * @throws Exception\GetMetricsForBitlinkByCitiesServiceUnavailableException + * @throws Exception\GetScansSummaryForBitlinkBadRequestException + * @throws Exception\GetScansSummaryForBitlinkForbiddenException + * @throws Exception\GetScansSummaryForBitlinkNotFoundException + * @throws Exception\GetScansSummaryForBitlinkGoneException + * @throws Exception\GetScansSummaryForBitlinkInternalServerErrorException + * @throws Exception\GetScansSummaryForBitlinkServiceUnavailableException */ - public function getMetricsForBitlinkByCities(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getScansSummaryForBitlink(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByCities($bitlink, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetScansSummaryForBitlink($bitlink, $queryParameters), $fetch); } /** - * Returns the device types generating click traffic to the specified link. + * Returns an array of bitlink click counts for the specified link. The array is comprised of click counts for each time window, where the window is based on the provided unit. * * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { * * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time - * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\DeviceMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\BitlinkClicks|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetMetricsForBitlinkByDevicesBadRequestException - * @throws Exception\GetMetricsForBitlinkByDevicesPaymentRequiredException - * @throws Exception\GetMetricsForBitlinkByDevicesForbiddenException - * @throws Exception\GetMetricsForBitlinkByDevicesNotFoundException - * @throws Exception\GetMetricsForBitlinkByDevicesGoneException - * @throws Exception\GetMetricsForBitlinkByDevicesTooManyRequestsException - * @throws Exception\GetMetricsForBitlinkByDevicesInternalServerErrorException - * @throws Exception\GetMetricsForBitlinkByDevicesServiceUnavailableException + * @throws Exception\GetBitlinkClicksBadRequestException + * @throws Exception\GetBitlinkClicksForbiddenException + * @throws Exception\GetBitlinkClicksNotFoundException + * @throws Exception\GetBitlinkClicksGoneException + * @throws Exception\GetBitlinkClicksInternalServerErrorException + * @throws Exception\GetBitlinkClicksServiceUnavailableException */ - public function getMetricsForBitlinkByDevices(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getBitlinkClicks(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByDevices($bitlink, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetBitlinkClicks($bitlink, $queryParameters), $fetch); } /** - * Returns referrer click counts for the specified link. + * Returns the bitlink click counts for the specified link rolled up into a single field. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkClicksSummary|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBitlinkClicksSummaryBadRequestException + * @throws Exception\GetBitlinkClicksSummaryForbiddenException + * @throws Exception\GetBitlinkClicksSummaryNotFoundException + * @throws Exception\GetBitlinkClicksSummaryGoneException + * @throws Exception\GetBitlinkClicksSummaryInternalServerErrorException + * @throws Exception\GetBitlinkClicksSummaryServiceUnavailableException + */ + public function getBitlinkClicksSummary(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBitlinkClicksSummary($bitlink, $queryParameters), $fetch); + } + + /** + * Returns the country origins of click traffic and their counts for the specified link. * * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { @@ -296,23 +385,23 @@ public function getMetricsForBitlinkByDevices(string $bitlink, array $queryParam * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/csv * - * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\BitlinkClicksMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetMetricsForBitlinkByReferrersBadRequestException - * @throws Exception\GetMetricsForBitlinkByReferrersForbiddenException - * @throws Exception\GetMetricsForBitlinkByReferrersNotFoundException - * @throws Exception\GetMetricsForBitlinkByReferrersGoneException - * @throws Exception\GetMetricsForBitlinkByReferrersTooManyRequestsException - * @throws Exception\GetMetricsForBitlinkByReferrersInternalServerErrorException - * @throws Exception\GetMetricsForBitlinkByReferrersServiceUnavailableException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCountriesBadRequestException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCountriesPaymentRequiredException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCountriesForbiddenException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCountriesNotFoundException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCountriesGoneException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCountriesInternalServerErrorException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCountriesServiceUnavailableException */ - public function getMetricsForBitlinkByReferrers(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getBitlinkClicksMetricsForBitlinkByCountries(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByReferrers($bitlink, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetBitlinkClicksMetricsForBitlinkByCountries($bitlink, $queryParameters, $accept), $fetch); } /** - * Returns referrer click counts for the specified link. + * Returns the city origins of click traffic and their counts for the specified link. * * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { @@ -326,22 +415,23 @@ public function getMetricsForBitlinkByReferrers(string $bitlink, array $queryPar * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/csv * - * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\CityBitlinkClicksMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetMetricsForBitlinkByReferrerNameBadRequestException - * @throws Exception\GetMetricsForBitlinkByReferrerNameForbiddenException - * @throws Exception\GetMetricsForBitlinkByReferrerNameNotFoundException - * @throws Exception\GetMetricsForBitlinkByReferrerNameGoneException - * @throws Exception\GetMetricsForBitlinkByReferrerNameInternalServerErrorException - * @throws Exception\GetMetricsForBitlinkByReferrerNameServiceUnavailableException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCitiesBadRequestException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCitiesPaymentRequiredException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCitiesForbiddenException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCitiesNotFoundException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCitiesGoneException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCitiesInternalServerErrorException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByCitiesServiceUnavailableException */ - public function getMetricsForBitlinkByReferrerName(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getBitlinkClicksMetricsForBitlinkByCities(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByReferrerName($bitlink, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetBitlinkClicksMetricsForBitlinkByCities($bitlink, $queryParameters, $accept), $fetch); } /** - * Returns the referring domain click counts for the specified link. + * Returns the device os generating clicks traffic to the specified link. * * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { @@ -352,25 +442,26 @@ public function getMetricsForBitlinkByReferrerName(string $bitlink, array $query * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv * - * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\BitlinkClicksMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetMetricsForBitlinkByReferringDomainsBadRequestException - * @throws Exception\GetMetricsForBitlinkByReferringDomainsForbiddenException - * @throws Exception\GetMetricsForBitlinkByReferringDomainsNotFoundException - * @throws Exception\GetMetricsForBitlinkByReferringDomainsGoneException - * @throws Exception\GetMetricsForBitlinkByReferringDomainsTooManyRequestsException - * @throws Exception\GetMetricsForBitlinkByReferringDomainsInternalServerErrorException - * @throws Exception\GetMetricsForBitlinkByReferringDomainsServiceUnavailableException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSBadRequestException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSPaymentRequiredException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSForbiddenException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSNotFoundException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSGoneException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSInternalServerErrorException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSServiceUnavailableException */ - public function getMetricsForBitlinkByReferringDomains(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getBitlinkClicksMetricsForBitlinkByDevicesOS(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByReferringDomains($bitlink, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetBitlinkClicksMetricsForBitlinkByDevicesOS($bitlink, $queryParameters, $accept), $fetch); } /** - * Returns click metrics grouped by referrers for the specified link. + * Returns the browsers generating click traffic to the specified link as well as their counts. * * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { @@ -381,92 +472,110 @@ public function getMetricsForBitlinkByReferringDomains(string $bitlink, array $q * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv * - * @return Model\ReferrersByDomains|\Psr\Http\Message\ResponseInterface|null + * @return Model\BitlinkClicksMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsBadRequestException - * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsForbiddenException - * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsNotFoundException - * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsGoneException - * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsTooManyRequestsException - * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsInternalServerErrorException - * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsServiceUnavailableException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByBrowserBadRequestException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByBrowserPaymentRequiredException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByBrowserForbiddenException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByBrowserNotFoundException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByBrowserGoneException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByBrowserInternalServerErrorException + * @throws Exception\GetBitlinkClicksMetricsForBitlinkByBrowserServiceUnavailableException */ - public function getMetricsForBitlinkByReferrersByDomains(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getBitlinkClicksMetricsForBitlinkByBrowser(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByReferrersByDomains($bitlink, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetBitlinkClicksMetricsForBitlinkByBrowser($bitlink, $queryParameters, $accept), $fetch); } /** - * Add a keyword (or "custom back-half") to a Bitlink with a Custom Domain (domains must match). This endpoint can also be used for initial redirects to a link. + * Returns an array of button click counts for the specified link. The array is comprised of button click counts for each time window, where the window is based on the provided unit. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\CustomBitlink|\Psr\Http\Message\ResponseInterface|null + * @return Model\ButtonClicks|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\AddCustomBitlinkBadRequestException - * @throws Exception\AddCustomBitlinkPaymentRequiredException - * @throws Exception\AddCustomBitlinkForbiddenException - * @throws Exception\AddCustomBitlinkNotFoundException - * @throws Exception\AddCustomBitlinkConflictException - * @throws Exception\AddCustomBitlinkUnprocessableEntityException - * @throws Exception\AddCustomBitlinkTooManyRequestsException - * @throws Exception\AddCustomBitlinkInternalServerErrorException - * @throws Exception\AddCustomBitlinkServiceUnavailableException + * @throws Exception\GetButtonClicksBadRequestException + * @throws Exception\GetButtonClicksForbiddenException + * @throws Exception\GetButtonClicksNotFoundException + * @throws Exception\GetButtonClicksGoneException + * @throws Exception\GetButtonClicksInternalServerErrorException + * @throws Exception\GetButtonClicksServiceUnavailableException */ - public function addCustomBitlink(Model\AddCustomBitlink $requestBody, string $fetch = self::FETCH_OBJECT) + public function getButtonClicks(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\AddCustomBitlink($requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetButtonClicks($bitlink, $queryParameters), $fetch); } /** - * Returns the details and history of the specified link. + * Returns the button click counts for the specified link rolled up into a single field. * - * @param string $customBitlink A Custom Bitlink made of the domain and keyword - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { * - * @return Model\CustomBitlink|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\GetCustomBitlinkPaymentRequiredException - * @throws Exception\GetCustomBitlinkForbiddenException - * @throws Exception\GetCustomBitlinkNotFoundException - * @throws Exception\GetCustomBitlinkGoneException - * @throws Exception\GetCustomBitlinkTooManyRequestsException - * @throws Exception\GetCustomBitlinkInternalServerErrorException - * @throws Exception\GetCustomBitlinkServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ButtonClicksSummary|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetButtonClicksSummaryBadRequestException + * @throws Exception\GetButtonClicksSummaryForbiddenException + * @throws Exception\GetButtonClicksSummaryNotFoundException + * @throws Exception\GetButtonClicksSummaryGoneException + * @throws Exception\GetButtonClicksSummaryInternalServerErrorException + * @throws Exception\GetButtonClicksSummaryServiceUnavailableException */ - public function getCustomBitlink(string $customBitlink, string $fetch = self::FETCH_OBJECT) + public function getButtonClicksSummary(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetCustomBitlink($customBitlink), $fetch); + return $this->executeEndpoint(new Endpoint\GetButtonClicksSummary($bitlink, $queryParameters), $fetch); } /** - * Move a keyword (or custom back-half) to a different Bitlink (domains must match). + * Returns an array of engagement counts for the specified link. The array is comprised of button click, click and scan counts for each time window, where the window is based on the provided unit. * - * @param string $customBitlink A Custom Bitlink made of the domain and keyword - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { * - * @return Model\CustomBitlink|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\UpdateCustomBitlinkBadRequestException - * @throws Exception\UpdateCustomBitlinkPaymentRequiredException - * @throws Exception\UpdateCustomBitlinkForbiddenException - * @throws Exception\UpdateCustomBitlinkNotFoundException - * @throws Exception\UpdateCustomBitlinkUnprocessableEntityException - * @throws Exception\UpdateCustomBitlinkTooManyRequestsException - * @throws Exception\UpdateCustomBitlinkInternalServerErrorException - * @throws Exception\UpdateCustomBitlinkServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\TotalEngagements|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetEngagementsBadRequestException + * @throws Exception\GetEngagementsForbiddenException + * @throws Exception\GetEngagementsNotFoundException + * @throws Exception\GetEngagementsGoneException + * @throws Exception\GetEngagementsInternalServerErrorException + * @throws Exception\GetEngagementsServiceUnavailableException */ - public function updateCustomBitlink(string $customBitlink, Model\UpdateCustomBitlink $requestBody, string $fetch = self::FETCH_OBJECT) + public function getEngagements(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new Endpoint\UpdateCustomBitlink($customBitlink, $requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetEngagements($bitlink, $queryParameters, $accept), $fetch); } /** - * Returns click metrics for the specified link by its historical destinations. + * Returns the engagement counts for the specified link rolled up into a single field. * - * @param string $customBitlink A Custom Bitlink made of the domain and keyword + * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { * * @var string $unit A unit of time @@ -476,25 +585,24 @@ public function updateCustomBitlink(string $customBitlink, Model\UpdateCustomBit * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\TotalEngagementsSummary|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetCustomBitlinkMetricsByDestinationPaymentRequiredException - * @throws Exception\GetCustomBitlinkMetricsByDestinationForbiddenException - * @throws Exception\GetCustomBitlinkMetricsByDestinationNotFoundException - * @throws Exception\GetCustomBitlinkMetricsByDestinationGoneException - * @throws Exception\GetCustomBitlinkMetricsByDestinationTooManyRequestsException - * @throws Exception\GetCustomBitlinkMetricsByDestinationInternalServerErrorException - * @throws Exception\GetCustomBitlinkMetricsByDestinationServiceUnavailableException + * @throws Exception\GetEngagementsSummaryBadRequestException + * @throws Exception\GetEngagementsSummaryForbiddenException + * @throws Exception\GetEngagementsSummaryNotFoundException + * @throws Exception\GetEngagementsSummaryGoneException + * @throws Exception\GetEngagementsSummaryInternalServerErrorException + * @throws Exception\GetEngagementsSummaryServiceUnavailableException */ - public function getCustomBitlinkMetricsByDestination(string $customBitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getEngagementsSummary(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetCustomBitlinkMetricsByDestination($customBitlink, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetEngagementsSummary($bitlink, $queryParameters), $fetch); } /** - * Returns the click counts for the specified link. This returns an array with clicks based on a date. + * Returns an array of bitlink click counts for the specified link. The array is comprised of click counts for each time window, where the window is based on the provided unit. * - * @param string $customBitlink A Custom Bitlink made of the domain and keyword + * @param string $bitlink A Bitlink made of the domain and hash * @param array $queryParameters { * * @var string $unit A unit of time @@ -504,231 +612,8003 @@ public function getCustomBitlinkMetricsByDestination(string $customBitlink, arra * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Clicks|\Psr\Http\Message\ResponseInterface|null + * @return Model\BitlinkScans|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetClicksForCustomBitlinkBadRequestException - * @throws Exception\GetClicksForCustomBitlinkPaymentRequiredException - * @throws Exception\GetClicksForCustomBitlinkForbiddenException - * @throws Exception\GetClicksForCustomBitlinkNotFoundException - * @throws Exception\GetClicksForCustomBitlinkGoneException - * @throws Exception\GetClicksForCustomBitlinkTooManyRequestsException - * @throws Exception\GetClicksForCustomBitlinkInternalServerErrorException - * @throws Exception\GetClicksForCustomBitlinkServiceUnavailableException + * @throws Exception\GetBitlinkScansBadRequestException + * @throws Exception\GetBitlinkScansForbiddenException + * @throws Exception\GetBitlinkScansNotFoundException + * @throws Exception\GetBitlinkScansGoneException + * @throws Exception\GetBitlinkScansInternalServerErrorException + * @throws Exception\GetBitlinkScansServiceUnavailableException */ - public function getClicksForCustomBitlink(string $customBitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getBitlinkScans(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetClicksForCustomBitlink($customBitlink, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetBitlinkScans($bitlink, $queryParameters), $fetch); } /** - * Returns a list of groups in the organization. + * Returns the bitlink click counts for the specified link rolled up into a single field. * - * @param array $queryParameters { + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { * - * @var string $organization_guid A GUID for a Bitly organization + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Groups|\Psr\Http\Message\ResponseInterface|null + * @return Model\BitlinkScansSummary|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupsBadRequestException - * @throws Exception\GetGroupsForbiddenException - * @throws Exception\GetGroupsNotFoundException - * @throws Exception\GetGroupsUnprocessableEntityException - * @throws Exception\GetGroupsTooManyRequestsException - * @throws Exception\GetGroupsInternalServerErrorException - * @throws Exception\GetGroupsServiceUnavailableException + * @throws Exception\GetBitlinkScansSummaryBadRequestException + * @throws Exception\GetBitlinkScansSummaryForbiddenException + * @throws Exception\GetBitlinkScansSummaryNotFoundException + * @throws Exception\GetBitlinkScansSummaryGoneException + * @throws Exception\GetBitlinkScansSummaryInternalServerErrorException + * @throws Exception\GetBitlinkScansSummaryServiceUnavailableException */ - public function getGroups(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getBitlinkScansSummary(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroups($queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetBitlinkScansSummary($bitlink, $queryParameters), $fetch); } /** - * Returns details for a group. + * Returns the country origins of click traffic for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForBitlinkByCountriesBadRequestException + * @throws Exception\GetMetricsForBitlinkByCountriesForbiddenException + * @throws Exception\GetMetricsForBitlinkByCountriesNotFoundException + * @throws Exception\GetMetricsForBitlinkByCountriesGoneException + * @throws Exception\GetMetricsForBitlinkByCountriesTooManyRequestsException + * @throws Exception\GetMetricsForBitlinkByCountriesInternalServerErrorException + * @throws Exception\GetMetricsForBitlinkByCountriesServiceUnavailableException + */ + public function getMetricsForBitlinkByCountries(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByCountries($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Returns the city origins of click traffic for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\CityMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForBitlinkByCitiesBadRequestException + * @throws Exception\GetMetricsForBitlinkByCitiesPaymentRequiredException + * @throws Exception\GetMetricsForBitlinkByCitiesForbiddenException + * @throws Exception\GetMetricsForBitlinkByCitiesNotFoundException + * @throws Exception\GetMetricsForBitlinkByCitiesGoneException + * @throws Exception\GetMetricsForBitlinkByCitiesTooManyRequestsException + * @throws Exception\GetMetricsForBitlinkByCitiesInternalServerErrorException + * @throws Exception\GetMetricsForBitlinkByCitiesServiceUnavailableException + */ + public function getMetricsForBitlinkByCities(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByCities($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Returns the device types generating click traffic to the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\DeviceMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForBitlinkByDevicesBadRequestException + * @throws Exception\GetMetricsForBitlinkByDevicesPaymentRequiredException + * @throws Exception\GetMetricsForBitlinkByDevicesForbiddenException + * @throws Exception\GetMetricsForBitlinkByDevicesNotFoundException + * @throws Exception\GetMetricsForBitlinkByDevicesGoneException + * @throws Exception\GetMetricsForBitlinkByDevicesTooManyRequestsException + * @throws Exception\GetMetricsForBitlinkByDevicesInternalServerErrorException + * @throws Exception\GetMetricsForBitlinkByDevicesServiceUnavailableException + */ + public function getMetricsForBitlinkByDevices(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByDevices($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Returns referrer click counts for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForBitlinkByReferrersBadRequestException + * @throws Exception\GetMetricsForBitlinkByReferrersForbiddenException + * @throws Exception\GetMetricsForBitlinkByReferrersNotFoundException + * @throws Exception\GetMetricsForBitlinkByReferrersGoneException + * @throws Exception\GetMetricsForBitlinkByReferrersTooManyRequestsException + * @throws Exception\GetMetricsForBitlinkByReferrersInternalServerErrorException + * @throws Exception\GetMetricsForBitlinkByReferrersServiceUnavailableException + */ + public function getMetricsForBitlinkByReferrers(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByReferrers($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Returns referrer click counts for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForBitlinkByReferrerNameBadRequestException + * @throws Exception\GetMetricsForBitlinkByReferrerNameForbiddenException + * @throws Exception\GetMetricsForBitlinkByReferrerNameNotFoundException + * @throws Exception\GetMetricsForBitlinkByReferrerNameGoneException + * @throws Exception\GetMetricsForBitlinkByReferrerNameInternalServerErrorException + * @throws Exception\GetMetricsForBitlinkByReferrerNameServiceUnavailableException + */ + public function getMetricsForBitlinkByReferrerName(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByReferrerName($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Returns the referring domain click counts for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForBitlinkByReferringDomainsBadRequestException + * @throws Exception\GetMetricsForBitlinkByReferringDomainsForbiddenException + * @throws Exception\GetMetricsForBitlinkByReferringDomainsNotFoundException + * @throws Exception\GetMetricsForBitlinkByReferringDomainsGoneException + * @throws Exception\GetMetricsForBitlinkByReferringDomainsTooManyRequestsException + * @throws Exception\GetMetricsForBitlinkByReferringDomainsInternalServerErrorException + * @throws Exception\GetMetricsForBitlinkByReferringDomainsServiceUnavailableException + */ + public function getMetricsForBitlinkByReferringDomains(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByReferringDomains($bitlink, $queryParameters), $fetch); + } + + /** + * Returns click metrics grouped by referrers for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ReferrersByDomains|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsBadRequestException + * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsForbiddenException + * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsNotFoundException + * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsGoneException + * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsTooManyRequestsException + * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsInternalServerErrorException + * @throws Exception\GetMetricsForBitlinkByReferrersByDomainsServiceUnavailableException + */ + public function getMetricsForBitlinkByReferrersByDomains(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForBitlinkByReferrersByDomains($bitlink, $queryParameters), $fetch); + } + + /** + * Returns the country origins of scan traffic for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForBitlinkByCountriesBadRequestException + * @throws Exception\GetScanMetricsForBitlinkByCountriesForbiddenException + * @throws Exception\GetScanMetricsForBitlinkByCountriesNotFoundException + * @throws Exception\GetScanMetricsForBitlinkByCountriesGoneException + * @throws Exception\GetScanMetricsForBitlinkByCountriesInternalServerErrorException + * @throws Exception\GetScanMetricsForBitlinkByCountriesServiceUnavailableException + */ + public function getScanMetricsForBitlinkByCountries(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForBitlinkByCountries($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Gets a descending sorted list of metrics (scans) for a list of links by unit of time for a specific period of time - maximum 100 links. By default returns top 10. + * + * @param array $queryParameters { + * + * @var int $size The quantity of items to be be returned + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedEngagements|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSortedScansBadRequestException + * @throws Exception\GetSortedScansPaymentRequiredException + * @throws Exception\GetSortedScansForbiddenException + * @throws Exception\GetSortedScansNotFoundException + * @throws Exception\GetSortedScansGoneException + * @throws Exception\GetSortedScansInternalServerErrorException + * @throws Exception\GetSortedScansServiceUnavailableException + */ + public function getSortedScans(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSortedScans($queryParameters), $fetch); + } + + /** + * Returns the city origins of scan traffic for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\CityScanMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForBitlinkByCitiesBadRequestException + * @throws Exception\GetScanMetricsForBitlinkByCitiesPaymentRequiredException + * @throws Exception\GetScanMetricsForBitlinkByCitiesForbiddenException + * @throws Exception\GetScanMetricsForBitlinkByCitiesNotFoundException + * @throws Exception\GetScanMetricsForBitlinkByCitiesGoneException + * @throws Exception\GetScanMetricsForBitlinkByCitiesInternalServerErrorException + * @throws Exception\GetScanMetricsForBitlinkByCitiesServiceUnavailableException + */ + public function getScanMetricsForBitlinkByCities(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForBitlinkByCities($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Returns the device os generating scan traffic to the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForBitlinkByDevicesOSBadRequestException + * @throws Exception\GetScanMetricsForBitlinkByDevicesOSPaymentRequiredException + * @throws Exception\GetScanMetricsForBitlinkByDevicesOSForbiddenException + * @throws Exception\GetScanMetricsForBitlinkByDevicesOSNotFoundException + * @throws Exception\GetScanMetricsForBitlinkByDevicesOSGoneException + * @throws Exception\GetScanMetricsForBitlinkByDevicesOSInternalServerErrorException + * @throws Exception\GetScanMetricsForBitlinkByDevicesOSServiceUnavailableException + */ + public function getScanMetricsForBitlinkByDevicesOS(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForBitlinkByDevicesOS($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Returns the browsers generating scan traffic to the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForBitlinkByBrowserBadRequestException + * @throws Exception\GetScanMetricsForBitlinkByBrowserPaymentRequiredException + * @throws Exception\GetScanMetricsForBitlinkByBrowserForbiddenException + * @throws Exception\GetScanMetricsForBitlinkByBrowserNotFoundException + * @throws Exception\GetScanMetricsForBitlinkByBrowserGoneException + * @throws Exception\GetScanMetricsForBitlinkByBrowserInternalServerErrorException + * @throws Exception\GetScanMetricsForBitlinkByBrowserServiceUnavailableException + */ + public function getScanMetricsForBitlinkByBrowser(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForBitlinkByBrowser($bitlink, $queryParameters, $accept), $fetch); + } + + /** + * Gets a descending sorted list of scans for bitlinks in a group filtered by unit of time for a specific period of time. By default returns top 10. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedEngagements|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSortedScansForGroupBadRequestException + * @throws Exception\GetSortedScansForGroupPaymentRequiredException + * @throws Exception\GetSortedScansForGroupForbiddenException + * @throws Exception\GetSortedScansForGroupNotFoundException + * @throws Exception\GetSortedScansForGroupGoneException + * @throws Exception\GetSortedScansForGroupInternalServerErrorException + * @throws Exception\GetSortedScansForGroupServiceUnavailableException + */ + public function getSortedScansForGroup(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSortedScansForGroup($groupGuid, $queryParameters), $fetch); + } + + /** + * Gets an aggregate of all link engagements for a list of links by unit of time for a specific period of time (accepts bitlinks or a tag, or both). + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateEngagementsForBitlinksBadRequestException + * @throws Exception\GetAggregateEngagementsForBitlinksPaymentRequiredException + * @throws Exception\GetAggregateEngagementsForBitlinksForbiddenException + * @throws Exception\GetAggregateEngagementsForBitlinksNotFoundException + * @throws Exception\GetAggregateEngagementsForBitlinksGoneException + * @throws Exception\GetAggregateEngagementsForBitlinksInternalServerErrorException + * @throws Exception\GetAggregateEngagementsForBitlinksServiceUnavailableException + */ + public function getAggregateEngagementsForBitlinks(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateEngagementsForBitlinks($queryParameters), $fetch); + } + + /** + * Gets an aggregate of all link engagements by cities facet for a list of links by unit of time for a specific period of time (accepts a list of bitlinks). + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByCitiesFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateEngagementsForBitlinksByCitiesFacetBadRequestException + * @throws Exception\GetAggregateEngagementsForBitlinksByCitiesFacetPaymentRequiredException + * @throws Exception\GetAggregateEngagementsForBitlinksByCitiesFacetForbiddenException + * @throws Exception\GetAggregateEngagementsForBitlinksByCitiesFacetNotFoundException + * @throws Exception\GetAggregateEngagementsForBitlinksByCitiesFacetGoneException + * @throws Exception\GetAggregateEngagementsForBitlinksByCitiesFacetInternalServerErrorException + * @throws Exception\GetAggregateEngagementsForBitlinksByCitiesFacetServiceUnavailableException + */ + public function getAggregateEngagementsForBitlinksByCitiesFacet(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateEngagementsForBitlinksByCitiesFacet($queryParameters), $fetch); + } + + /** + * Gets an aggregate of all link engagements by facet (available facets are countries, devices, referrers) for a list of links by unit of time for a specific period of time (accepts a list of bitlinks). + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateEngagementsForBitlinksByFacetBadRequestException + * @throws Exception\GetAggregateEngagementsForBitlinksByFacetPaymentRequiredException + * @throws Exception\GetAggregateEngagementsForBitlinksByFacetForbiddenException + * @throws Exception\GetAggregateEngagementsForBitlinksByFacetNotFoundException + * @throws Exception\GetAggregateEngagementsForBitlinksByFacetGoneException + * @throws Exception\GetAggregateEngagementsForBitlinksByFacetInternalServerErrorException + * @throws Exception\GetAggregateEngagementsForBitlinksByFacetServiceUnavailableException + */ + public function getAggregateEngagementsForBitlinksByFacet(string $facet, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateEngagementsForBitlinksByFacet($facet, $queryParameters), $fetch); + } + + /** + * Gets a descending sorted list of metrics (scans + clicks) for a list of links by unit of time for a specific period of time - maximum 100 links. By default returns top 10. + * + * @param array $queryParameters { + * + * @var int $size The quantity of items to be be returned + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedEngagements|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSortedEngagementsBadRequestException + * @throws Exception\GetSortedEngagementsPaymentRequiredException + * @throws Exception\GetSortedEngagementsForbiddenException + * @throws Exception\GetSortedEngagementsNotFoundException + * @throws Exception\GetSortedEngagementsGoneException + * @throws Exception\GetSortedEngagementsInternalServerErrorException + * @throws Exception\GetSortedEngagementsServiceUnavailableException + */ + public function getSortedEngagements(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSortedEngagements($queryParameters), $fetch); + } + + /** + * Gets a descending sorted list of metrics clicks for a list of links by unit of time for a specific period of time - maximum 100 links. By default returns top 10. + * + * @param array $queryParameters { + * + * @var int $size The quantity of items to be be returned + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedEngagements|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTopSortedBitlinksBadRequestException + * @throws Exception\GetTopSortedBitlinksPaymentRequiredException + * @throws Exception\GetTopSortedBitlinksForbiddenException + * @throws Exception\GetTopSortedBitlinksNotFoundException + * @throws Exception\GetTopSortedBitlinksGoneException + * @throws Exception\GetTopSortedBitlinksInternalServerErrorException + * @throws Exception\GetTopSortedBitlinksServiceUnavailableException + */ + public function getTopSortedBitlinks(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTopSortedBitlinks($queryParameters), $fetch); + } + + /** + * Returns the override rules for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkOverrides|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOverridesForBitlinkPaymentRequiredException + * @throws Exception\GetOverridesForBitlinkForbiddenException + * @throws Exception\GetOverridesForBitlinkNotFoundException + * @throws Exception\GetOverridesForBitlinkGoneException + * @throws Exception\GetOverridesForBitlinkInternalServerErrorException + * @throws Exception\GetOverridesForBitlinkServiceUnavailableException + */ + public function getOverridesForBitlink(string $bitlink, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOverridesForBitlink($bitlink), $fetch); + } + + /** + * Creates the override rules for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkOverrides|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateOverridesForBitlinkBadRequestException + * @throws Exception\CreateOverridesForBitlinkPaymentRequiredException + * @throws Exception\CreateOverridesForBitlinkForbiddenException + * @throws Exception\CreateOverridesForBitlinkNotFoundException + * @throws Exception\CreateOverridesForBitlinkConflictException + * @throws Exception\CreateOverridesForBitlinkUnprocessableEntityException + * @throws Exception\CreateOverridesForBitlinkTooManyRequestsException + * @throws Exception\CreateOverridesForBitlinkInternalServerErrorException + * @throws Exception\CreateOverridesForBitlinkServiceUnavailableException + */ + public function createOverridesForBitlink(string $bitlink, Model\CreateOverrideRules $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateOverridesForBitlink($bitlink, $requestBody), $fetch); + } + + /** + * Updates the override rules for the specified link. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkOverrides|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateOverridesForBitlinkBadRequestException + * @throws Exception\UpdateOverridesForBitlinkPaymentRequiredException + * @throws Exception\UpdateOverridesForBitlinkForbiddenException + * @throws Exception\UpdateOverridesForBitlinkNotFoundException + * @throws Exception\UpdateOverridesForBitlinkUnprocessableEntityException + * @throws Exception\UpdateOverridesForBitlinkTooManyRequestsException + * @throws Exception\UpdateOverridesForBitlinkInternalServerErrorException + * @throws Exception\UpdateOverridesForBitlinkServiceUnavailableException + */ + public function updateOverridesForBitlink(string $bitlink, Model\UpdateOverrideRules $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateOverridesForBitlink($bitlink, $requestBody), $fetch); + } + + /** + * Returns the history of redirects for the specified link. A redirect is when the destination URL is changed. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var int $limit limit the amount of results returned + * @var int $offset set the starting index of the result set + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkOverrideHistory|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOverrideHistoryForBitlinkPaymentRequiredException + * @throws Exception\GetOverrideHistoryForBitlinkForbiddenException + * @throws Exception\GetOverrideHistoryForBitlinkNotFoundException + * @throws Exception\GetOverrideHistoryForBitlinkTooManyRequestsException + * @throws Exception\GetOverrideHistoryForBitlinkInternalServerErrorException + * @throws Exception\GetOverrideHistoryForBitlinkServiceUnavailableException + */ + public function getOverrideHistoryForBitlink(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOverrideHistoryForBitlink($bitlink, $queryParameters), $fetch); + } + + /** + * Returns click metrics for the specified link by its override versions. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOverrideMetricsByVersionBadRequestException + * @throws Exception\GetOverrideMetricsByVersionPaymentRequiredException + * @throws Exception\GetOverrideMetricsByVersionForbiddenException + * @throws Exception\GetOverrideMetricsByVersionNotFoundException + * @throws Exception\GetOverrideMetricsByVersionGoneException + * @throws Exception\GetOverrideMetricsByVersionInternalServerErrorException + * @throws Exception\GetOverrideMetricsByVersionServiceUnavailableException + */ + public function getOverrideMetricsByVersion(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOverrideMetricsByVersion($bitlink, $queryParameters), $fetch); + } + + /** + * retrieves all account overrides matching specified group_guid and bsd query filters. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var array $group_guid GUIDs for a Bitly group + * @var int $created_after Timestamp as an integer unix epoch (seconds only) + * @var int $limit limit the amount of results returned + * @var int $offset set the starting index of the result set + * @var array $bsd a branded short domains to filter results + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkOverridesData|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOverridesForGroupsBadRequestException + * @throws Exception\GetOverridesForGroupsPaymentRequiredException + * @throws Exception\GetOverridesForGroupsForbiddenException + * @throws Exception\GetOverridesForGroupsNotFoundException + * @throws Exception\GetOverridesForGroupsInternalServerErrorException + * @throws Exception\GetOverridesForGroupsServiceUnavailableException + */ + public function getOverridesForGroups(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOverridesForGroups($groupGuid, $queryParameters), $fetch); + } + + /** + * Add a keyword (or "custom back-half") to a Bitlink with a Custom Domain (domains must match). This endpoint can also be used for initial redirects to a link. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CustomBitlink|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\AddCustomBitlinkBadRequestException + * @throws Exception\AddCustomBitlinkPaymentRequiredException + * @throws Exception\AddCustomBitlinkForbiddenException + * @throws Exception\AddCustomBitlinkNotFoundException + * @throws Exception\AddCustomBitlinkConflictException + * @throws Exception\AddCustomBitlinkUnprocessableEntityException + * @throws Exception\AddCustomBitlinkTooManyRequestsException + * @throws Exception\AddCustomBitlinkInternalServerErrorException + * @throws Exception\AddCustomBitlinkServiceUnavailableException + */ + public function addCustomBitlink(Model\AddCustomBitlink $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\AddCustomBitlink($requestBody), $fetch); + } + + /** + * Returns the details and history of the specified link. + * + * @param string $customBitlink A Custom Bitlink made of the domain and keyword + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CustomBitlink|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCustomBitlinkPaymentRequiredException + * @throws Exception\GetCustomBitlinkForbiddenException + * @throws Exception\GetCustomBitlinkNotFoundException + * @throws Exception\GetCustomBitlinkGoneException + * @throws Exception\GetCustomBitlinkTooManyRequestsException + * @throws Exception\GetCustomBitlinkInternalServerErrorException + * @throws Exception\GetCustomBitlinkServiceUnavailableException + */ + public function getCustomBitlink(string $customBitlink, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCustomBitlink($customBitlink), $fetch); + } + + /** + * Move a keyword (or custom back-half) to a different Bitlink (domains must match). + * + * @param string $customBitlink A Custom Bitlink made of the domain and keyword + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CustomBitlink|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateCustomBitlinkBadRequestException + * @throws Exception\UpdateCustomBitlinkPaymentRequiredException + * @throws Exception\UpdateCustomBitlinkForbiddenException + * @throws Exception\UpdateCustomBitlinkNotFoundException + * @throws Exception\UpdateCustomBitlinkUnprocessableEntityException + * @throws Exception\UpdateCustomBitlinkTooManyRequestsException + * @throws Exception\UpdateCustomBitlinkInternalServerErrorException + * @throws Exception\UpdateCustomBitlinkServiceUnavailableException + */ + public function updateCustomBitlink(string $customBitlink, Model\UpdateCustomBitlink $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateCustomBitlink($customBitlink, $requestBody), $fetch); + } + + /** + * Returns click metrics for the specified link by its historical destinations. + * + * @param string $customBitlink A Custom Bitlink made of the domain and keyword + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCustomBitlinkMetricsByDestinationPaymentRequiredException + * @throws Exception\GetCustomBitlinkMetricsByDestinationForbiddenException + * @throws Exception\GetCustomBitlinkMetricsByDestinationNotFoundException + * @throws Exception\GetCustomBitlinkMetricsByDestinationGoneException + * @throws Exception\GetCustomBitlinkMetricsByDestinationTooManyRequestsException + * @throws Exception\GetCustomBitlinkMetricsByDestinationInternalServerErrorException + * @throws Exception\GetCustomBitlinkMetricsByDestinationServiceUnavailableException + */ + public function getCustomBitlinkMetricsByDestination(string $customBitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCustomBitlinkMetricsByDestination($customBitlink, $queryParameters), $fetch); + } + + /** + * Returns the click counts for the specified link. This returns an array with clicks based on a date. + * + * @param string $customBitlink A Custom Bitlink made of the domain and keyword + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Clicks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetClicksForCustomBitlinkBadRequestException + * @throws Exception\GetClicksForCustomBitlinkPaymentRequiredException + * @throws Exception\GetClicksForCustomBitlinkForbiddenException + * @throws Exception\GetClicksForCustomBitlinkNotFoundException + * @throws Exception\GetClicksForCustomBitlinkGoneException + * @throws Exception\GetClicksForCustomBitlinkTooManyRequestsException + * @throws Exception\GetClicksForCustomBitlinkInternalServerErrorException + * @throws Exception\GetClicksForCustomBitlinkServiceUnavailableException + */ + public function getClicksForCustomBitlink(string $customBitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetClicksForCustomBitlink($customBitlink, $queryParameters), $fetch); + } + + /** + * Returns a list of groups in the organization. + * + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Groups|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupsBadRequestException + * @throws Exception\GetGroupsForbiddenException + * @throws Exception\GetGroupsNotFoundException + * @throws Exception\GetGroupsUnprocessableEntityException + * @throws Exception\GetGroupsTooManyRequestsException + * @throws Exception\GetGroupsInternalServerErrorException + * @throws Exception\GetGroupsServiceUnavailableException + */ + public function getGroups(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroups($queryParameters), $fetch); + } + + /** + * Creates a new group in the organization. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Group|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateGroupBadRequestException + * @throws Exception\CreateGroupForbiddenException + * @throws Exception\CreateGroupUnprocessableEntityException + * @throws Exception\CreateGroupTooManyRequestsException + * @throws Exception\CreateGroupInternalServerErrorException + */ + public function createGroup(Model\GroupUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateGroup($requestBody), $fetch); + } + + /** + * Deletes a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteGroupForbiddenException + * @throws Exception\DeleteGroupNotFoundException + * @throws Exception\DeleteGroupTooManyRequestsException + * @throws Exception\DeleteGroupInternalServerErrorException + * @throws Exception\DeleteGroupServiceUnavailableException + */ + public function deleteGroup(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteGroup($groupGuid), $fetch); + } + + /** + * Returns details for a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Group|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupForbiddenException + * @throws Exception\GetGroupNotFoundException + * @throws Exception\GetGroupTooManyRequestsException + * @throws Exception\GetGroupInternalServerErrorException + * @throws Exception\GetGroupServiceUnavailableException + */ + public function getGroup(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroup($groupGuid), $fetch); + } + + /** + * Updates the details of a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Group|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateGroupBadRequestException + * @throws Exception\UpdateGroupForbiddenException + * @throws Exception\UpdateGroupNotFoundException + * @throws Exception\UpdateGroupUnprocessableEntityException + * @throws Exception\UpdateGroupInternalServerErrorException + * @throws Exception\UpdateGroupServiceUnavailableException + */ + public function updateGroup(string $groupGuid, Model\GroupUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateGroup($groupGuid, $requestBody), $fetch); + } + + /** + * Retrieve a list of users for Group GUID and optionally query by user's login, display name, or primary email. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var int $page Integer specifying the numbered result at which to start + * @var int $size The quantity of items to be be returned + * @var string $query A string used for fuzzy searching user's login, display name, or primary email. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\UserRoleReferences|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SearchGroupUserRolesBadRequestException + * @throws Exception\SearchGroupUserRolesForbiddenException + * @throws Exception\SearchGroupUserRolesNotFoundException + * @throws Exception\SearchGroupUserRolesInternalServerErrorException + */ + public function searchGroupUserRoles(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SearchGroupUserRoles($groupGuid, $queryParameters), $fetch); + } + + /** + * Returns the tags currently used in the specified group. Maximum 1000. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Tags|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupTagsForbiddenException + * @throws Exception\GetGroupTagsNotFoundException + * @throws Exception\GetGroupTagsTooManyRequestsException + * @throws Exception\GetGroupTagsInternalServerErrorException + * @throws Exception\GetGroupTagsServiceUnavailableException + */ + public function getGroupTags(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupTags($groupGuid), $fetch); + } + + /** + * Returns a paginated collection of Bitlinks for a group. The list of custom bitlinks has newest entries first. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var int $size The quantity of items to be be returned + * @var string $search_after token used to search next batch, only use response from API as input value + * @var string $query The value that you would like to search + * @var string $hostname_path_query The hostname and/or path you would like to search (case-insensitive). Subdomains included; query params and fragment ignored. + * @var int $created_before Timestamp as an integer unix epoch (seconds only) + * @var int $created_after Timestamp as an integer unix epoch (seconds only) + * @var string $archived Whether or not to include archived resources + * @var string $deeplinks Filter to only Bitlinks that contain deeplinks + * @var string $domain_deeplinks Filter to only Bitlinks that contain deeplinks configured with a custom domain + * @var string $campaign_guid Filter to return only links for the given campaign GUID, can be provided + * @var string $channel_guid Filter to return only links for the given channel GUID, can be provided, overrides all other parameters + * @var string $custom_bitlink + * @var string $has_qr_codes a filter value if the resource has any QR codes + * @var array $tags Filter by given tags + * @var array $launchpad_ids Filter by launchpad id + * @var array $encoding_login Filter by the login of the authenticated user that created the Bitlink + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Bitlinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBitlinksByGroupForbiddenException + * @throws Exception\GetBitlinksByGroupNotFoundException + * @throws Exception\GetBitlinksByGroupInternalServerErrorException + * @throws Exception\GetBitlinksByGroupServiceUnavailableException + */ + public function getBitlinksByGroup(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBitlinksByGroup($groupGuid, $queryParameters), $fetch); + } + + /** + * Bulk update can add or remove tags or archive up to 100 links at a time; The response includes a list of bitlink ids that were updated. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BulkUpdate|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateBitlinksByGroupBadRequestException + * @throws Exception\UpdateBitlinksByGroupForbiddenException + * @throws Exception\UpdateBitlinksByGroupNotFoundException + * @throws Exception\UpdateBitlinksByGroupUnprocessableEntityException + * @throws Exception\UpdateBitlinksByGroupInternalServerErrorException + * @throws Exception\UpdateBitlinksByGroupServiceUnavailableException + */ + public function updateBitlinksByGroup(string $groupGuid, Model\BulkUpdateRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateBitlinksByGroup($groupGuid, $requestBody), $fetch); + } + + /** + * get number of bitlinks encoded in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupBitlinksCount|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupBitlinksCountBadRequestException + * @throws Exception\GetGroupBitlinksCountPaymentRequiredException + * @throws Exception\GetGroupBitlinksCountForbiddenException + * @throws Exception\GetGroupBitlinksCountInternalServerErrorException + */ + public function getGroupBitlinksCount(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupBitlinksCount($groupGuid, $queryParameters), $fetch); + } + + /** + * Gets all templates for the group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeTemplatesResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetQRCodeTemplatesBadRequestException + * @throws Exception\GetQRCodeTemplatesPaymentRequiredException + * @throws Exception\GetQRCodeTemplatesForbiddenException + * @throws Exception\GetQRCodeTemplatesNotFoundException + * @throws Exception\GetQRCodeTemplatesGoneException + * @throws Exception\GetQRCodeTemplatesInternalServerErrorException + */ + public function getQRCodeTemplates(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetQRCodeTemplates($groupGuid), $fetch); + } + + /** + * Creates a template of a QR Code customization. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeTemplateResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateQRCodeTemplateBadRequestException + * @throws Exception\CreateQRCodeTemplatePaymentRequiredException + * @throws Exception\CreateQRCodeTemplateForbiddenException + * @throws Exception\CreateQRCodeTemplateNotFoundException + * @throws Exception\CreateQRCodeTemplateGoneException + * @throws Exception\CreateQRCodeTemplateInternalServerErrorException + */ + public function createQRCodeTemplate(string $groupGuid, Model\QRCodeTemplateRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateQRCodeTemplate($groupGuid, $requestBody), $fetch); + } + + /** + * Deletes a specific template by id. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteQRCodeTemplateForbiddenException + * @throws Exception\DeleteQRCodeTemplateNotFoundException + * @throws Exception\DeleteQRCodeTemplateInternalServerErrorException + * @throws Exception\DeleteQRCodeTemplateServiceUnavailableException + */ + public function deleteQRCodeTemplate(string $groupGuid, string $templateId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteQRCodeTemplate($groupGuid, $templateId), $fetch); + } + + /** + * Returns a list of Bitlinks sorted by group. The list of custom bitlinks has newest entries first. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $sort The type of sorting that you would like to do + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time. + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var int $size The quantity of items to be be returned + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedLinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSortedBitlinksForbiddenException + * @throws Exception\GetSortedBitlinksNotFoundException + * @throws Exception\GetSortedBitlinksTooManyRequestsException + * @throws Exception\GetSortedBitlinksInternalServerErrorException + * @throws Exception\GetSortedBitlinksServiceUnavailableException + */ + public function getSortedBitlinks(string $groupGuid, string $sort, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSortedBitlinks($groupGuid, $sort, $queryParameters), $fetch); + } + + /** + * Returns preferences for the specified group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupPreferences|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupPreferencesForbiddenException + * @throws Exception\GetGroupPreferencesNotFoundException + * @throws Exception\GetGroupPreferencesInternalServerErrorException + * @throws Exception\GetGroupPreferencesServiceUnavailableException + */ + public function getGroupPreferences(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupPreferences($groupGuid), $fetch); + } + + /** + * Updates preferences for a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupPreferences|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateGroupPreferencesBadRequestException + * @throws Exception\UpdateGroupPreferencesForbiddenException + * @throws Exception\UpdateGroupPreferencesNotFoundException + * @throws Exception\UpdateGroupPreferencesUnprocessableEntityException + * @throws Exception\UpdateGroupPreferencesTooManyRequestsException + * @throws Exception\UpdateGroupPreferencesInternalServerErrorException + * @throws Exception\UpdateGroupPreferencesServiceUnavailableException + */ + public function updateGroupPreferences(string $groupGuid, Model\GroupPreferences $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateGroupPreferences($groupGuid, $requestBody), $fetch); + } + + /** + * Returns preferences for the specified group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\UMGroupPreferences|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetUMGroupPreferencesForbiddenException + * @throws Exception\GetUMGroupPreferencesNotFoundException + * @throws Exception\GetUMGroupPreferencesUnprocessableEntityException + * @throws Exception\GetUMGroupPreferencesInternalServerErrorException + */ + public function getUMGroupPreferences(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUMGroupPreferences($groupGuid), $fetch); + } + + /** + * Update or add new preferences for the specified group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchUMGroupPreferencesBadRequestException + * @throws Exception\PatchUMGroupPreferencesForbiddenException + * @throws Exception\PatchUMGroupPreferencesNotFoundException + * @throws Exception\PatchUMGroupPreferencesUnprocessableEntityException + * @throws Exception\PatchUMGroupPreferencesInternalServerErrorException + */ + public function patchUMGroupPreferences(string $groupGuid, \stdClass $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchUMGroupPreferences($groupGuid, $requestBody), $fetch); + } + + /** + * Returns site themes preference for the specified group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteThemes|\Psr\Http\Message\ResponseInterface|null + */ + public function getUMGroupSiteThemes(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUMGroupSiteThemes($groupGuid), $fetch); + } + + /** + * Upserts new site theme for the specified group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + */ + public function putUMGroupSiteTheme(string $groupGuid, Model\SiteThemes $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PutUMGroupSiteTheme($groupGuid, $requestBody), $fetch); + } + + /** + * Returns all the shorten counts for a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Metrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupShortenCountsForbiddenException + * @throws Exception\GetGroupShortenCountsNotFoundException + * @throws Exception\GetGroupShortenCountsTooManyRequestsException + * @throws Exception\GetGroupShortenCountsInternalServerErrorException + * @throws Exception\GetGroupShortenCountsServiceUnavailableException + */ + public function getGroupShortenCounts(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupShortenCounts($groupGuid, $queryParameters), $fetch); + } + + /** + * Returns the geographic origins of click traffic by country for the specified group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupMetricsByCountriesForbiddenException + * @throws Exception\GetGroupMetricsByCountriesNotFoundException + * @throws Exception\GetGroupMetricsByCountriesTooManyRequestsException + * @throws Exception\GetGroupMetricsByCountriesInternalServerErrorException + * @throws Exception\GetGroupMetricsByCountriesServiceUnavailableException + */ + public function getGroupMetricsByCountries(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetGroupMetricsByCountries($groupGuid, $queryParameters, $accept), $fetch); + } + + /** + * Returns the geographic origins of click traffic by city for the specified group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\CityMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupMetricsByCitiesPaymentRequiredException + * @throws Exception\GetGroupMetricsByCitiesForbiddenException + * @throws Exception\GetGroupMetricsByCitiesNotFoundException + * @throws Exception\GetGroupMetricsByCitiesTooManyRequestsException + * @throws Exception\GetGroupMetricsByCitiesInternalServerErrorException + * @throws Exception\GetGroupMetricsByCitiesServiceUnavailableException + */ + public function getGroupMetricsByCities(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetGroupMetricsByCities($groupGuid, $queryParameters, $accept), $fetch); + } + + /** + * Returns the device types generating click traffic to the specified group's links. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\DeviceMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupMetricsByDevicesPaymentRequiredException + * @throws Exception\GetGroupMetricsByDevicesForbiddenException + * @throws Exception\GetGroupMetricsByDevicesNotFoundException + * @throws Exception\GetGroupMetricsByDevicesTooManyRequestsException + * @throws Exception\GetGroupMetricsByDevicesInternalServerErrorException + * @throws Exception\GetGroupMetricsByDevicesServiceUnavailableException + */ + public function getGroupMetricsByDevices(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetGroupMetricsByDevices($groupGuid, $queryParameters, $accept), $fetch); + } + + /** + * Returns metrics by referring networks for the specified group's links. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupMetricsByReferringNetworksForbiddenException + * @throws Exception\GetGroupMetricsByReferringNetworksNotFoundException + * @throws Exception\GetGroupMetricsByReferringNetworksInternalServerErrorException + * @throws Exception\GetGroupMetricsByReferringNetworksServiceUnavailableException + */ + public function getGroupMetricsByReferringNetworks(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupMetricsByReferringNetworks($groupGuid, $queryParameters), $fetch); + } + + /** + * Returns metrics by referrer for the specified group's links. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupMetricsByReferrerForbiddenException + * @throws Exception\GetGroupMetricsByReferrerNotFoundException + * @throws Exception\GetGroupMetricsByReferrerTooManyRequestsException + * @throws Exception\GetGroupMetricsByReferrerInternalServerErrorException + * @throws Exception\GetGroupMetricsByReferrerServiceUnavailableException + */ + public function getGroupMetricsByReferrer(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetGroupMetricsByReferrer($groupGuid, $queryParameters, $accept), $fetch); + } + + /** + * get number of bitlinks encoded in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupBitlinksCountRollup|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupBitlinksCountRollupBadRequestException + * @throws Exception\GetGroupBitlinksCountRollupPaymentRequiredException + * @throws Exception\GetGroupBitlinksCountRollupForbiddenException + * @throws Exception\GetGroupBitlinksCountRollupTooManyRequestsException + * @throws Exception\GetGroupBitlinksCountRollupInternalServerErrorException + * @throws Exception\GetGroupBitlinksCountRollupServiceUnavailableException + */ + public function getGroupBitlinksCountRollup(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupBitlinksCountRollup($groupGuid, $queryParameters), $fetch); + } + + /** + * get number of clicks on bitlinks in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupClicks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupClicksBadRequestException + * @throws Exception\GetGroupClicksPaymentRequiredException + * @throws Exception\GetGroupClicksForbiddenException + * @throws Exception\GetGroupClicksTooManyRequestsException + * @throws Exception\GetGroupClicksInternalServerErrorException + * @throws Exception\GetGroupClicksServiceUnavailableException + */ + public function getGroupClicks(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupClicks($groupGuid, $queryParameters), $fetch); + } + + /** + * get number of clicks on bitlinks in a group by facet. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $facet A facet of metrics (e.g. country, referrer, ...) + * @param array $queryParameters { + * + * @var int $limit only return this number of facet values (subtotal only) + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupClicksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupClicksByFacetBadRequestException + * @throws Exception\GetGroupClicksByFacetPaymentRequiredException + * @throws Exception\GetGroupClicksByFacetForbiddenException + * @throws Exception\GetGroupClicksByFacetInternalServerErrorException + * @throws Exception\GetGroupClicksByFacetServiceUnavailableException + */ + public function getGroupClicksByFacet(string $groupGuid, string $facet, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupClicksByFacet($groupGuid, $facet, $queryParameters), $fetch); + } + + /** + * get number of clicks on bitlinks in a group by facet, rolled up by facet. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $facet A facet of metrics (e.g. country, referrer, ...) + * @param array $queryParameters { + * + * @var int $limit only return this number of facet values (subtotal only) + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupClicksByFacetRollup|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupClicksByFacetRollupBadRequestException + * @throws Exception\GetGroupClicksByFacetRollupPaymentRequiredException + * @throws Exception\GetGroupClicksByFacetRollupForbiddenException + * @throws Exception\GetGroupClicksByFacetRollupInternalServerErrorException + * @throws Exception\GetGroupClicksByFacetRollupServiceUnavailableException + */ + public function getGroupClicksByFacetRollup(string $groupGuid, string $facet, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupClicksByFacetRollup($groupGuid, $facet, $queryParameters), $fetch); + } + + /** + * get number of engagements in a group limited up to a months worth of engagements. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupClicks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetEngagementsSampleBadRequestException + * @throws Exception\GetEngagementsSampleForbiddenException + * @throws Exception\GetEngagementsSampleInternalServerErrorException + */ + public function getEngagementsSample(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetEngagementsSample($groupGuid, $queryParameters), $fetch); + } + + /** + * post to queue a group data export job. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostGroupDataExportBadRequestException + * @throws Exception\PostGroupDataExportForbiddenException + * @throws Exception\PostGroupDataExportUnprocessableEntityException + * @throws Exception\PostGroupDataExportInternalServerErrorException + * @throws Exception\PostGroupDataExportServiceUnavailableException + */ + public function postGroupDataExport(string $groupGuid, Model\DataExportQuery $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostGroupDataExport($groupGuid, $requestBody), $fetch); + } + + /** + * post to build a links report. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\LinksReportRequestResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostGetLinksReportBadRequestException + * @throws Exception\PostGetLinksReportPaymentRequiredException + * @throws Exception\PostGetLinksReportForbiddenException + * @throws Exception\PostGetLinksReportUnprocessableEntityException + * @throws Exception\PostGetLinksReportInternalServerErrorException + * @throws Exception\PostGetLinksReportServiceUnavailableException + */ + public function postGetLinksReport(string $groupGuid, Model\LinksReportRequestBody $requestBody, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\PostGetLinksReport($groupGuid, $requestBody, $accept), $fetch); + } + + /** + * capture user submitted form data. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\FormCaptureBadRequestException + * @throws Exception\FormCaptureForbiddenException + * @throws Exception\FormCaptureUnprocessableEntityException + * @throws Exception\FormCaptureInternalServerErrorException + * @throws Exception\FormCaptureServiceUnavailableException + */ + public function formCapture(Model\FormCapturePayload $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\FormCapture($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Organizations|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationsForbiddenException + * @throws Exception\GetOrganizationsNotFoundException + * @throws Exception\GetOrganizationsInternalServerErrorException + * @throws Exception\GetOrganizationsServiceUnavailableException + */ + public function getOrganizations(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizations(), $fetch); + } + + /** + * Retrive details for the specified organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Organization|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationForbiddenException + * @throws Exception\GetOrganizationNotFoundException + * @throws Exception\GetOrganizationInternalServerErrorException + * @throws Exception\GetOrganizationServiceUnavailableException + */ + public function getOrganization(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganization($organizationGuid), $fetch); + } + + /** + * Update an Organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Organization|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateOrganizationForbiddenException + * @throws Exception\UpdateOrganizationNotFoundException + * @throws Exception\UpdateOrganizationInternalServerErrorException + * @throws Exception\UpdateOrganizationServiceUnavailableException + */ + public function updateOrganization(string $organizationGuid, Model\OrganizationUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateOrganization($organizationGuid, $requestBody), $fetch); + } + + /** + * post to queue an organization users data export job. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrgUsersDataExportBadRequestException + * @throws Exception\PostOrgUsersDataExportPaymentRequiredException + * @throws Exception\PostOrgUsersDataExportForbiddenException + * @throws Exception\PostOrgUsersDataExportUnprocessableEntityException + * @throws Exception\PostOrgUsersDataExportInternalServerErrorException + */ + public function postOrgUsersDataExport(string $organizationGuid, Model\OrgUsersDataExportQuery $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrgUsersDataExport($organizationGuid, $requestBody), $fetch); + } + + /** + * creates a stripe subscription. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CreateSubscriptionResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateSubscriptionBadRequestException + * @throws Exception\CreateSubscriptionForbiddenException + * @throws Exception\CreateSubscriptionUnprocessableEntityException + * @throws Exception\CreateSubscriptionInternalServerErrorException + */ + public function createSubscription(Model\CreateSubscriptionBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateSubscription($requestBody), $fetch); + } + + /** + * creates a stripe customer and setup intent. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CreateCustomerResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateCustomerBadRequestException + * @throws Exception\CreateCustomerForbiddenException + * @throws Exception\CreateCustomerUnprocessableEntityException + * @throws Exception\CreateCustomerInternalServerErrorException + */ + public function createCustomer(Model\CreateCustomerBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateCustomer($requestBody), $fetch); + } + + /** + * updates a stripe customer and setup intent. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $stripeCustomerId Stripe customer id that starts with cus_ + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\StripeCustomer|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateStripeCustomerBadRequestException + * @throws Exception\UpdateStripeCustomerForbiddenException + * @throws Exception\UpdateStripeCustomerUnprocessableEntityException + * @throws Exception\UpdateStripeCustomerInternalServerErrorException + */ + public function updateStripeCustomer(string $organizationGuid, string $stripeCustomerId, Model\UpdateStripeCustomerBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateStripeCustomer($organizationGuid, $stripeCustomerId, $requestBody), $fetch); + } + + /** + * upgrade the organization with Stripe subscription. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Organization|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpgradeOrganizationWithStripeSubscriptionBadRequestException + * @throws Exception\UpgradeOrganizationWithStripeSubscriptionForbiddenException + * @throws Exception\UpgradeOrganizationWithStripeSubscriptionUnprocessableEntityException + * @throws Exception\UpgradeOrganizationWithStripeSubscriptionInternalServerErrorException + */ + public function upgradeOrganizationWithStripeSubscription(string $organizationGuid, Model\StripeUpgradeOrgBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpgradeOrganizationWithStripeSubscription($organizationGuid, $requestBody), $fetch); + } + + /** + * schedule an account to be downgraded in billing and user management. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SubscriptionCancelledDate|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ScheduleOrgDowngradeStripeBadRequestException + * @throws Exception\ScheduleOrgDowngradeStripeForbiddenException + * @throws Exception\ScheduleOrgDowngradeStripeInternalServerErrorException + */ + public function scheduleOrgDowngradeStripe(string $organizationGuid, Model\BillingDowngrade $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ScheduleOrgDowngradeStripe($organizationGuid, $requestBody), $fetch); + } + + /** + * Cancel a downgrade that is currently pending for stripe subscription. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CancelPendingDowngradeStripeNotFoundException + * @throws Exception\CancelPendingDowngradeStripeForbiddenException + * @throws Exception\CancelPendingDowngradeStripeInternalServerErrorException + */ + public function cancelPendingDowngradeStripe(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CancelPendingDowngradeStripe($organizationGuid), $fetch); + } + + /** + * upgrade the organization. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpgradeOrganizationBadRequestException + * @throws Exception\UpgradeOrganizationForbiddenException + * @throws Exception\UpgradeOrganizationUnprocessableEntityException + * @throws Exception\UpgradeOrganizationInternalServerErrorException + */ + public function upgradeOrganization(Model\UpgradeOrgBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpgradeOrganization($requestBody), $fetch); + } + + /** + * get all the active organization preferences for an org. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrganizationPreferences|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrgPreferencesInternalServerErrorException + */ + public function getOrgPreferences(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrgPreferences($organizationGuid), $fetch); + } + + /** + * create or update an organization preference. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SetOrgPreferenceBadRequestException + * @throws Exception\SetOrgPreferenceForbiddenException + * @throws Exception\SetOrgPreferenceUnprocessableEntityException + * @throws Exception\SetOrgPreferenceInternalServerErrorException + */ + public function setOrgPreference(string $organizationGuid, Model\OrganizationPreferenceSet $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SetOrgPreference($organizationGuid, $requestBody), $fetch); + } + + /** + * downgrade the organization. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DowngradeOrganizationUnprocessableEntityException + * @throws Exception\DowngradeOrganizationInternalServerErrorException + */ + public function downgradeOrganization(Model\DowngradeOrgBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DowngradeOrganization($requestBody), $fetch); + } + + /** + * get org emails by user or org. + * + * @param array $queryParameters { + * + * @var string $login The login for a Bitly user + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrgEmails|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrgEmailsForbiddenException + * @throws Exception\GetOrgEmailsNotFoundException + * @throws Exception\GetOrgEmailsInternalServerErrorException + * @throws Exception\GetOrgEmailsServiceUnavailableException + */ + public function getOrgEmails(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrgEmails($queryParameters), $fetch); + } + + /** + * create or update an org email. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrgEmail|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpsertOrgEmailForbiddenException + * @throws Exception\UpsertOrgEmailNotFoundException + * @throws Exception\UpsertOrgEmailInternalServerErrorException + * @throws Exception\UpsertOrgEmailServiceUnavailableException + */ + public function upsertOrgEmail(Model\OrgEmailBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpsertOrgEmail($requestBody), $fetch); + } + + /** + * Returns all relevant data about a promo code and associated discount. + * + * @param string $promoCode A promo code string + * @param string $tierName The name of a pricing plan + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PromoCode|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ValidatePromoCodeBadRequestException + * @throws Exception\ValidatePromoCodeNotFoundException + * @throws Exception\ValidatePromoCodeInternalServerErrorException + * @throws Exception\ValidatePromoCodeServiceUnavailableException + */ + public function validatePromoCode(string $promoCode, string $tierName, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ValidatePromoCode($promoCode, $tierName), $fetch); + } + + /** + * Returns all relevant data about a stripe promo code and associated discount. + * + * @param string $promoCode A promo code string + * @param string $tierName The name of a pricing plan + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PromoCode|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ValidateStripePromoCodeBadRequestException + * @throws Exception\ValidateStripePromoCodeNotFoundException + * @throws Exception\ValidateStripePromoCodeInternalServerErrorException + * @throws Exception\ValidateStripePromoCodeServiceUnavailableException + */ + public function validateStripePromoCode(string $promoCode, string $tierName, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ValidateStripePromoCode($promoCode, $tierName), $fetch); + } + + /** + * Returns a list of strings of all valid plans for a promo code, regardless of if that promo code is active/expired. + * + * @param string $promoCode A promo code string + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PromoCodeValidPlans|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetPromoCodeValidPlansInternalServerErrorException + * @throws Exception\GetPromoCodeValidPlansServiceUnavailableException + */ + public function getPromoCodeValidPlans(string $promoCode, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetPromoCodeValidPlans($promoCode), $fetch); + } + + /** + * Applies a discount via a stripe promo code to an existing subscription. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ApplyStripeDiscountBadRequestException + * @throws Exception\ApplyStripeDiscountForbiddenException + * @throws Exception\ApplyStripeDiscountNotFoundException + * @throws Exception\ApplyStripeDiscountUnprocessableEntityException + * @throws Exception\ApplyStripeDiscountInternalServerErrorException + * @throws Exception\ApplyStripeDiscountServiceUnavailableException + */ + public function applyStripeDiscount(string $organizationGuid, Model\ApplyDiscount $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ApplyStripeDiscount($organizationGuid, $requestBody), $fetch); + } + + /** + * Applies a discount via a promo code to an existing subscription. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ApplyDiscountBadRequestException + * @throws Exception\ApplyDiscountForbiddenException + * @throws Exception\ApplyDiscountNotFoundException + * @throws Exception\ApplyDiscountUnprocessableEntityException + * @throws Exception\ApplyDiscountInternalServerErrorException + * @throws Exception\ApplyDiscountServiceUnavailableException + */ + public function applyDiscount(string $organizationGuid, Model\ApplyDiscount $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ApplyDiscount($organizationGuid, $requestBody), $fetch); + } + + /** + * Endpoint to purchase add on entitlements for an account. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PurchaseAddOnsBadRequestException + * @throws Exception\PurchaseAddOnsForbiddenException + * @throws Exception\PurchaseAddOnsNotFoundException + * @throws Exception\PurchaseAddOnsUnprocessableEntityException + * @throws Exception\PurchaseAddOnsInternalServerErrorException + * @throws Exception\PurchaseAddOnsServiceUnavailableException + */ + public function purchaseAddOns(string $organizationGuid, Model\AddOns $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PurchaseAddOns($organizationGuid, $requestBody), $fetch); + } + + /** + * Endpoint to purchase add on entitlements for an account using Stripe. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PurchaseStripeAddOnsBadRequestException + * @throws Exception\PurchaseStripeAddOnsForbiddenException + * @throws Exception\PurchaseStripeAddOnsNotFoundException + * @throws Exception\PurchaseStripeAddOnsUnprocessableEntityException + * @throws Exception\PurchaseStripeAddOnsInternalServerErrorException + * @throws Exception\PurchaseStripeAddOnsServiceUnavailableException + */ + public function purchaseStripeAddOns(string $organizationGuid, Model\AddOns $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PurchaseStripeAddOns($organizationGuid, $requestBody), $fetch); + } + + /** + * get deeplink apps for an organization. + * + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeeplinkApps|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDeeplinkAppsForbiddenException + * @throws Exception\GetDeeplinkAppsInternalServerErrorException + * @throws Exception\GetDeeplinkAppsServiceUnavailableException + */ + public function getDeeplinkApps(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDeeplinkApps($queryParameters), $fetch); + } + + /** + * create a new deeplink app. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeeplinkApp|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateDeeplinkAppBadRequestException + * @throws Exception\CreateDeeplinkAppForbiddenException + * @throws Exception\CreateDeeplinkAppExpectationFailedException + * @throws Exception\CreateDeeplinkAppUnprocessableEntityException + * @throws Exception\CreateDeeplinkAppInternalServerErrorException + * @throws Exception\CreateDeeplinkAppServiceUnavailableException + */ + public function createDeeplinkApp(Model\DeeplinkApp $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateDeeplinkApp($requestBody), $fetch); + } + + /** + * deactivate a deeplink app. + * + * @param string $deeplinkAppGuid the guid reference to a deeplink app + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeactivateDeeplinkAppPaymentRequiredException + * @throws Exception\DeactivateDeeplinkAppForbiddenException + * @throws Exception\DeactivateDeeplinkAppNotFoundException + * @throws Exception\DeactivateDeeplinkAppInternalServerErrorException + * @throws Exception\DeactivateDeeplinkAppServiceUnavailableException + */ + public function deactivateDeeplinkApp(string $deeplinkAppGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeactivateDeeplinkApp($deeplinkAppGuid), $fetch); + } + + /** + * get a single deeplink app that belongs to an organization. + * + * @param string $deeplinkAppGuid the guid reference to a deeplink app + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeeplinkApp|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDeeplinkAppForbiddenException + * @throws Exception\GetDeeplinkAppNotFoundException + * @throws Exception\GetDeeplinkAppInternalServerErrorException + * @throws Exception\GetDeeplinkAppServiceUnavailableException + */ + public function getDeeplinkApp(string $deeplinkAppGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDeeplinkApp($deeplinkAppGuid), $fetch); + } + + /** + * update a deeplink app. + * + * @param string $deeplinkAppGuid the guid reference to a deeplink app + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeeplinkApp|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateDeeplinkAppPaymentRequiredException + * @throws Exception\UpdateDeeplinkAppForbiddenException + * @throws Exception\UpdateDeeplinkAppNotFoundException + * @throws Exception\UpdateDeeplinkAppUnprocessableEntityException + * @throws Exception\UpdateDeeplinkAppInternalServerErrorException + * @throws Exception\UpdateDeeplinkAppServiceUnavailableException + */ + public function updateDeeplinkApp(string $deeplinkAppGuid, Model\DeeplinkApp $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateDeeplinkApp($deeplinkAppGuid, $requestBody), $fetch); + } + + /** + * get third party app data for a given third party app id. + * + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * @var string $third_party_app_id the third party app id describing a specific ios/android app + * @var string $os the os of a specific ios/android app + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ThirdPartyAppData|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ThirdPartyAppLookupPaymentRequiredException + * @throws Exception\ThirdPartyAppLookupForbiddenException + * @throws Exception\ThirdPartyAppLookupNotFoundException + * @throws Exception\ThirdPartyAppLookupInternalServerErrorException + * @throws Exception\ThirdPartyAppLookupServiceUnavailableException + */ + public function thirdPartyAppLookup(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ThirdPartyAppLookup($queryParameters), $fetch); + } + + /** + * get all deeplink rules for a bitlink. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeeplinkRules|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDeeplinkRulesPaymentRequiredException + * @throws Exception\GetDeeplinkRulesForbiddenException + * @throws Exception\GetDeeplinkRulesNotFoundException + * @throws Exception\GetDeeplinkRulesTooManyRequestsException + * @throws Exception\GetDeeplinkRulesInternalServerErrorException + * @throws Exception\GetDeeplinkRulesServiceUnavailableException + */ + public function getDeeplinkRules(string $bitlink, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDeeplinkRules($bitlink), $fetch); + } + + /** + * create deeplink rule for a bitlink. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeeplinkRule|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateDeeplinkRulePaymentRequiredException + * @throws Exception\CreateDeeplinkRuleForbiddenException + * @throws Exception\CreateDeeplinkRuleNotFoundException + * @throws Exception\CreateDeeplinkRuleInternalServerErrorException + */ + public function createDeeplinkRule(Model\DeeplinkRule $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateDeeplinkRule($requestBody), $fetch); + } + + /** + * delete a deeplink rule for a bitlink. + * + * @param string $deeplinkRuleGuid the guid of a deeplink rule + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteDeeplinkRulePaymentRequiredException + * @throws Exception\DeleteDeeplinkRuleForbiddenException + * @throws Exception\DeleteDeeplinkRuleNotFoundException + * @throws Exception\DeleteDeeplinkRuleInternalServerErrorException + * @throws Exception\DeleteDeeplinkRuleServiceUnavailableException + */ + public function deleteDeeplinkRule(string $deeplinkRuleGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteDeeplinkRule($deeplinkRuleGuid), $fetch); + } + + /** + * update deeplink rule for a bitlink. + * + * @param string $deeplinkRuleGuid the guid of a deeplink rule + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeeplinkRule|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateDeeplinkRulePaymentRequiredException + * @throws Exception\UpdateDeeplinkRuleForbiddenException + * @throws Exception\UpdateDeeplinkRuleNotFoundException + * @throws Exception\UpdateDeeplinkRuleUnprocessableEntityException + * @throws Exception\UpdateDeeplinkRuleInternalServerErrorException + * @throws Exception\UpdateDeeplinkRuleServiceUnavailableException + */ + public function updateDeeplinkRule(string $deeplinkRuleGuid, Model\DeeplinkRule $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateDeeplinkRule($deeplinkRuleGuid, $requestBody), $fetch); + } + + /** + * get rolled up deeplink metrics for a bitlink. + * + * @param string $bitlink A Bitlink made of the domain and hash + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeeplinkMetricsRollup|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDeeplinkMetricsRollupPaymentRequiredException + * @throws Exception\GetDeeplinkMetricsRollupForbiddenException + * @throws Exception\GetDeeplinkMetricsRollupNotFoundException + * @throws Exception\GetDeeplinkMetricsRollupGoneException + * @throws Exception\GetDeeplinkMetricsRollupInternalServerErrorException + * @throws Exception\GetDeeplinkMetricsRollupServiceUnavailableException + */ + public function getDeeplinkMetricsRollup(string $bitlink, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDeeplinkMetricsRollup($bitlink, $queryParameters), $fetch); + } + + /** + * validate shareable report URL. + * + * @param array $queryParameters { + * + * @var string $shareable_report Shareable Report URL to validate + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ShareableReport|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CheckShareableReportBadRequestException + * @throws Exception\CheckShareableReportForbiddenException + * @throws Exception\CheckShareableReportNotFoundException + * @throws Exception\CheckShareableReportInternalServerErrorException + * @throws Exception\CheckShareableReportServiceUnavailableException + */ + public function checkShareableReport(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CheckShareableReport($queryParameters), $fetch); + } + + /** + * create shareable report URL. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ShareableReport|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateShareableReportBadRequestException + * @throws Exception\CreateShareableReportForbiddenException + * @throws Exception\CreateShareableReportNotFoundException + * @throws Exception\CreateShareableReportInternalServerErrorException + * @throws Exception\CreateShareableReportServiceUnavailableException + */ + public function createShareableReport(Model\ShareableReport $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateShareableReport($requestBody), $fetch); + } + + /** + * Returns the shorten counts for a specific organization over a specified time period. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Metrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationShortenCountsForbiddenException + * @throws Exception\GetOrganizationShortenCountsNotFoundException + * @throws Exception\GetOrganizationShortenCountsInternalServerErrorException + * @throws Exception\GetOrganizationShortenCountsServiceUnavailableException + */ + public function getOrganizationShortenCounts(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationShortenCounts($organizationGuid, $queryParameters), $fetch); + } + + /** + * Returns the shorten counts for a specific organization by group for the current month. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Metrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationShortenCountsByGroupForbiddenException + * @throws Exception\GetOrganizationShortenCountsByGroupNotFoundException + * @throws Exception\GetOrganizationShortenCountsByGroupInternalServerErrorException + * @throws Exception\GetOrganizationShortenCountsByGroupServiceUnavailableException + */ + public function getOrganizationShortenCountsByGroup(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationShortenCountsByGroup($organizationGuid), $fetch); + } + + /** + * update org's default payment method in billing provider. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SetPaymentMethodDefaultBadRequestException + * @throws Exception\SetPaymentMethodDefaultForbiddenException + * @throws Exception\SetPaymentMethodDefaultUnprocessableEntityException + * @throws Exception\SetPaymentMethodDefaultInternalServerErrorException + * @throws Exception\SetPaymentMethodDefaultServiceUnavailableException + */ + public function setPaymentMethodDefault(string $organizationGuid, string $paymentMethodId, Model\BillingAddress $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SetPaymentMethodDefault($organizationGuid, $paymentMethodId, $requestBody), $fetch); + } + + /** + * calls the billing provider to get a payment method. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PaymentMethod|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreatePaymentMethodBadRequestException + * @throws Exception\CreatePaymentMethodForbiddenException + * @throws Exception\CreatePaymentMethodUnprocessableEntityException + * @throws Exception\CreatePaymentMethodInternalServerErrorException + * @throws Exception\CreatePaymentMethodServiceUnavailableException + */ + public function createPaymentMethod(string $organizationGuid, Model\CreatePaymentMethod $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreatePaymentMethod($organizationGuid, $requestBody), $fetch); + } + + /** + * calls the stripe billing provider and returns the client secret. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SetupIntent|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateStripeSetupIntentBadRequestException + * @throws Exception\CreateStripeSetupIntentForbiddenException + * @throws Exception\CreateStripeSetupIntentUnprocessableEntityException + * @throws Exception\CreateStripeSetupIntentInternalServerErrorException + * @throws Exception\CreateStripeSetupIntentServiceUnavailableException + */ + public function createStripeSetupIntent(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateStripeSetupIntent($organizationGuid), $fetch); + } + + /** + * sets payment method as default for the organization in stripe. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $paymentMethodId A Stripe payment method ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SetStripeDefaultPaymentMethodBadRequestException + * @throws Exception\SetStripeDefaultPaymentMethodForbiddenException + * @throws Exception\SetStripeDefaultPaymentMethodUnprocessableEntityException + * @throws Exception\SetStripeDefaultPaymentMethodInternalServerErrorException + * @throws Exception\SetStripeDefaultPaymentMethodServiceUnavailableException + */ + public function setStripeDefaultPaymentMethod(string $organizationGuid, string $paymentMethodId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SetStripeDefaultPaymentMethod($organizationGuid, $paymentMethodId), $fetch); + } + + /** + * make a call to billing provider to get a payment invoice summary. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PaymentInvoices|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetPaymentInvoicesForbiddenException + * @throws Exception\GetPaymentInvoicesInternalServerErrorException + */ + public function getPaymentInvoices(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetPaymentInvoices($organizationGuid), $fetch); + } + + /** + * make a call to billing provider to get a single payment invoice. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PaymentInvoiceDetail|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetPaymentInvoiceForbiddenException + * @throws Exception\GetPaymentInvoiceInternalServerErrorException + */ + public function getPaymentInvoice(string $organizationGuid, string $invoiceID, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetPaymentInvoice($organizationGuid, $invoiceID), $fetch); + } + + /** + * make a call to billing provider to get a single payment invoice in PDF format. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/pdf|application/json + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetPaymentInvoiceFileForbiddenException + * @throws Exception\GetPaymentInvoiceFileNotFoundException + * @throws Exception\GetPaymentInvoiceFileInternalServerErrorException + */ + public function getPaymentInvoiceFile(string $organizationGuid, string $invoiceID, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetPaymentInvoiceFile($organizationGuid, $invoiceID, $accept), $fetch); + } + + /** + * Trigger the generation of an updated version of an invoice PDF. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\RegeneratePaymentInvoiceFileForbiddenException + * @throws Exception\RegeneratePaymentInvoiceFileInternalServerErrorException + */ + public function regeneratePaymentInvoiceFile(string $organizationGuid, string $invoiceID, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\RegeneratePaymentInvoiceFile($organizationGuid, $invoiceID), $fetch); + } + + /** + * Update user preferences to payment failure and cancel subscription. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\NotifyPaymentFailureBadRequestException + * @throws Exception\NotifyPaymentFailureUnprocessableEntityException + * @throws Exception\NotifyPaymentFailureInternalServerErrorException + * @throws Exception\NotifyPaymentFailureServiceUnavailableException + */ + public function notifyPaymentFailure(Model\OrganizationGUID $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\NotifyPaymentFailure($requestBody), $fetch); + } + + /** + * Sends an annual renewal email to billing contact on an account. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\AnnualRenewalReminderBadRequestException + * @throws Exception\AnnualRenewalReminderUnprocessableEntityException + * @throws Exception\AnnualRenewalReminderInternalServerErrorException + * @throws Exception\AnnualRenewalReminderServiceUnavailableException + */ + public function annualRenewalReminder(Model\AnnualRenewalReminderRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\AnnualRenewalReminder($requestBody), $fetch); + } + + /** + * make a call to billing provider to update a billing info. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateBillingInfoBadRequestException + * @throws Exception\UpdateBillingInfoForbiddenException + * @throws Exception\UpdateBillingInfoUnprocessableEntityException + * @throws Exception\UpdateBillingInfoInternalServerErrorException + */ + public function updateBillingInfo(string $organizationGuid, Model\BillingInfo $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateBillingInfo($organizationGuid, $requestBody), $fetch); + } + + /** + * Update the contact tied to an account's payment method. This also appears as the "sold to contact" on the account invoices. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ContactInfo|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdatePaymentContactInfoBadRequestException + * @throws Exception\UpdatePaymentContactInfoForbiddenException + * @throws Exception\UpdatePaymentContactInfoNotFoundException + * @throws Exception\UpdatePaymentContactInfoUnprocessableEntityException + * @throws Exception\UpdatePaymentContactInfoInternalServerErrorException + */ + public function updatePaymentContactInfo(string $organizationGuid, Model\ContactInfo $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdatePaymentContactInfo($organizationGuid, $requestBody), $fetch); + } + + /** + * make a call to billing provider to get an org's billing account. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BillingAccount|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBillingAccountForbiddenException + * @throws Exception\GetBillingAccountInternalServerErrorException + */ + public function getBillingAccount(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBillingAccount($organizationGuid), $fetch); + } + + /** + * Get the currency and Stripe Instance associated with the org if they have an existing Stripe account. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\StripeOrganizationInfo|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationStripeInfoBadRequestException + * @throws Exception\GetOrganizationStripeInfoForbiddenException + * @throws Exception\GetOrganizationStripeInfoInternalServerErrorException + */ + public function getOrganizationStripeInfo(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationStripeInfo($organizationGuid), $fetch); + } + + /** + * determine the billing provider (stripe or zuora) for an account. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BillingProvider|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBillingProviderBadRequestException + * @throws Exception\GetBillingProviderForbiddenException + * @throws Exception\GetBillingProviderInternalServerErrorException + */ + public function getBillingProvider(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBillingProvider($organizationGuid), $fetch); + } + + /** + * make a call to billing API to get an org's main billing accout ID. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BillingAccountID|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBillingAccountIDForbiddenException + * @throws Exception\GetBillingAccountIDInternalServerErrorException + */ + public function getBillingAccountID(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBillingAccountID($organizationGuid), $fetch); + } + + /** + * schedule an account to be downgraded in billing and user management. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SubscriptionCancelledDate|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ScheduleOrganizationDowngradeBadRequestException + * @throws Exception\ScheduleOrganizationDowngradeForbiddenException + * @throws Exception\ScheduleOrganizationDowngradeInternalServerErrorException + */ + public function scheduleOrganizationDowngrade(string $organizationGuid, Model\BillingDowngrade $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ScheduleOrganizationDowngrade($organizationGuid, $requestBody), $fetch); + } + + /** + * makes a call to billing provider to generate a unique signature. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BillingSignature|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GenerateBillingSignatureForbiddenException + * @throws Exception\GenerateBillingSignatureInternalServerErrorException + */ + public function generateBillingSignature(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GenerateBillingSignature($organizationGuid), $fetch); + } + + /** + * Creates a billing agreement token to be used with PayPal. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PayPalToken|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreatePayPalBillingAgreementTokenBadRequestException + * @throws Exception\CreatePayPalBillingAgreementTokenForbiddenException + * @throws Exception\CreatePayPalBillingAgreementTokenUnprocessableEntityException + * @throws Exception\CreatePayPalBillingAgreementTokenInternalServerErrorException + */ + public function createPayPalBillingAgreementToken(Model\PayPalTokenRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreatePayPalBillingAgreementToken($requestBody), $fetch); + } + + /** + * make a call to user management to check for a pending tier change. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrgTierHistory|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetPendingTierForOrgForbiddenException + * @throws Exception\GetPendingTierForOrgNotFoundException + * @throws Exception\GetPendingTierForOrgInternalServerErrorException + */ + public function getPendingTierForOrg(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetPendingTierForOrg($organizationGuid), $fetch); + } + + /** + * Cancel a downgrade that is currently pending. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CancelPendingDowngradeNotFoundException + * @throws Exception\CancelPendingDowngradeForbiddenException + * @throws Exception\CancelPendingDowngradeInternalServerErrorException + */ + public function cancelPendingDowngrade(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CancelPendingDowngrade($organizationGuid), $fetch); + } + + /** + * Update the entities (currently users) that will retain access to account on downgrade. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateEntitiesRetainedOnDowngradeBadRequestException + * @throws Exception\UpdateEntitiesRetainedOnDowngradeForbiddenException + * @throws Exception\UpdateEntitiesRetainedOnDowngradeUnprocessableEntityException + * @throws Exception\UpdateEntitiesRetainedOnDowngradeInternalServerErrorException + */ + public function updateEntitiesRetainedOnDowngrade(string $organizationGuid, Model\UpdateRetainedDowngradeEntities $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateEntitiesRetainedOnDowngrade($organizationGuid, $requestBody), $fetch); + } + + /** + * get an organization's feature limits and current usage. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\FeatureUsage|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationFeatureUsageForbiddenException + * @throws Exception\GetOrganizationFeatureUsageInternalServerErrorException + * @throws Exception\GetOrganizationFeatureUsageServiceUnavailableException + */ + public function getOrganizationFeatureUsage(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationFeatureUsage($organizationGuid), $fetch); + } + + /** + * get an organization's current feature usage for all groups. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param array $queryParameters { + * + * @var array $name The limit name you would like usage for + * @var array $group_guid GUIDs for a Bitly group + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrgFeatureUsageByGroup|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationFeatureUsageByGroupBadRequestException + * @throws Exception\GetOrganizationFeatureUsageByGroupForbiddenException + * @throws Exception\GetOrganizationFeatureUsageByGroupInternalServerErrorException + */ + public function getOrganizationFeatureUsageByGroup(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationFeatureUsageByGroup($organizationGuid, $queryParameters), $fetch); + } + + /** + * get an organization's activity log. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param array $queryParameters { + * + * @var string $next_page + * @var string $after_ts + * @var string $before_ts + * @var int $limit + * @var array $actions + * @var array $user_filter + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ActivityLogs|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationActivityLogForbiddenException + * @throws Exception\GetOrganizationActivityLogInternalServerErrorException + * @throws Exception\GetOrganizationActivityLogServiceUnavailableException + */ + public function getOrganizationActivityLog(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationActivityLog($organizationGuid, $queryParameters), $fetch); + } + + /** + * export an organization's activity log as csv. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param array $queryParameters { + * + * @var array $actions + * @var array $user_filter + * @var string $after_ts + * @var string $before_ts + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + */ + public function getOrganizationActivityLogExport(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationActivityLogExport($organizationGuid, $queryParameters), $fetch); + } + + /** + * get a single log from aorganization's activity log. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ActivityLog|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationActivityLogEntryForbiddenException + * @throws Exception\GetOrganizationActivityLogEntryInternalServerErrorException + * @throws Exception\GetOrganizationActivityLogEntryServiceUnavailableException + */ + public function getOrganizationActivityLogEntry(string $organizationGuid, string $action, string $timestamp, string $id, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationActivityLogEntry($organizationGuid, $action, $timestamp, $id), $fetch); + } + + /** + * This returns all of the attributes for all of the tiers. + * + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Tier[]|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTiersForbiddenException + * @throws Exception\GetTiersInternalServerErrorException + * @throws Exception\GetTiersServiceUnavailableException + */ + public function getTiers(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTiers($queryParameters), $fetch); + } + + /** + * Returns all attributes for experiment-based user available tiers. + * + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Tier[]|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetUserAvailableTiersForbiddenException + * @throws Exception\GetUserAvailableTiersInternalServerErrorException + * @throws Exception\GetUserAvailableTiersServiceUnavailableException + */ + public function getUserAvailableTiers(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUserAvailableTiers($queryParameters), $fetch); + } + + /** + * This returns all of the attributes for the requested tier. + * + * @param string $tierName The name of a pricing plan + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Tier|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTierForbiddenException + * @throws Exception\GetTierNotFoundException + * @throws Exception\GetTierInternalServerErrorException + * @throws Exception\GetTierServiceUnavailableException + */ + public function getTier(string $tierName, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTier($tierName, $queryParameters), $fetch); + } + + /** + * delete passed in domain. + * + * @param string $customDomain find out more about your custom domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteCustomDomainForbiddenException + * @throws Exception\DeleteCustomDomainUnprocessableEntityException + * @throws Exception\DeleteCustomDomainInternalServerErrorException + */ + public function deleteCustomDomain(string $customDomain, Model\OrganizationGUID $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteCustomDomain($customDomain, $requestBody), $fetch); + } + + /** + * find out more about your custom domain. + * + * @param string $customDomain find out more about your custom domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CustomDomainBody|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCustomDomainForbiddenException + * @throws Exception\GetCustomDomainNotFoundException + * @throws Exception\GetCustomDomainInternalServerErrorException + * @throws Exception\GetCustomDomainServiceUnavailableException + */ + public function getCustomDomain(string $customDomain, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCustomDomain($customDomain), $fetch); + } + + /** + * edit custom domain settings. + * + * @param string $customDomain find out more about your custom domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\EditCustomDomainForbiddenException + * @throws Exception\EditCustomDomainInternalServerErrorException + */ + public function editCustomDomain(string $customDomain, Model\DomainUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\EditCustomDomain($customDomain, $requestBody), $fetch); + } + + /** + * get custom domain data for an organization, including validation state. + * + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CustomDomains|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCustomDomainsForbiddenException + * @throws Exception\GetCustomDomainsUnprocessableEntityException + * @throws Exception\GetCustomDomainsInternalServerErrorException + * @throws Exception\GetCustomDomainsServiceUnavailableException + */ + public function getCustomDomains(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCustomDomains($queryParameters), $fetch); + } + + /** + * validate custom domain and organization. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DomainValidate|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ValidateCustomDomainBadRequestException + * @throws Exception\ValidateCustomDomainForbiddenException + * @throws Exception\ValidateCustomDomainNotFoundException + * @throws Exception\ValidateCustomDomainUnprocessableEntityException + * @throws Exception\ValidateCustomDomainInternalServerErrorException + * @throws Exception\ValidateCustomDomainServiceUnavailableException + */ + public function validateCustomDomain(Model\DomainValidateBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ValidateCustomDomain($requestBody), $fetch); + } + + /** + * get deeplink app associations for a custom domain. + * + * @param string $customDomain find out more about your custom domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AppAssociations|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAppAssociationsPaymentRequiredException + * @throws Exception\GetAppAssociationsForbiddenException + * @throws Exception\GetAppAssociationsNotFoundException + * @throws Exception\GetAppAssociationsInternalServerErrorException + * @throws Exception\GetAppAssociationsServiceUnavailableException + */ + public function getAppAssociations(string $customDomain, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAppAssociations($customDomain), $fetch); + } + + /** + * update deeplink app associations for a custom domain. + * + * @param string $customDomain find out more about your custom domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AppAssociations|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateAppAssociationsBadRequestException + * @throws Exception\UpdateAppAssociationsPaymentRequiredException + * @throws Exception\UpdateAppAssociationsForbiddenException + * @throws Exception\UpdateAppAssociationsNotFoundException + * @throws Exception\UpdateAppAssociationsInternalServerErrorException + * @throws Exception\UpdateAppAssociationsServiceUnavailableException + */ + public function updateAppAssociations(string $customDomain, Model\AppAssociations $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateAppAssociations($customDomain, $requestBody), $fetch); + } + + /** + * Retrieve SSO Settings, if any exist, for a given organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SSOSettings|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationSSOSettingsPaymentRequiredException + * @throws Exception\GetOrganizationSSOSettingsForbiddenException + * @throws Exception\GetOrganizationSSOSettingsNotFoundException + * @throws Exception\GetOrganizationSSOSettingsInternalServerErrorException + * @throws Exception\GetOrganizationSSOSettingsServiceUnavailableException + */ + public function getOrganizationSSOSettings(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationSSOSettings($organizationGuid), $fetch); + } + + /** + * Update an Organization's SSO Settings. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SSOSettings|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateOrganizationSSOSettingsPaymentRequiredException + * @throws Exception\UpdateOrganizationSSOSettingsForbiddenException + * @throws Exception\UpdateOrganizationSSOSettingsNotFoundException + * @throws Exception\UpdateOrganizationSSOSettingsUnprocessableEntityException + * @throws Exception\UpdateOrganizationSSOSettingsInternalServerErrorException + * @throws Exception\UpdateOrganizationSSOSettingsServiceUnavailableException + */ + public function updateOrganizationSSOSettings(string $organizationGuid, Model\SSOSettings $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateOrganizationSSOSettings($organizationGuid, $requestBody), $fetch); + } + + /** + * Create an Organization's SSO Settings. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SSOSettings|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateOrganizationSSOSettingsBadRequestException + * @throws Exception\CreateOrganizationSSOSettingsPaymentRequiredException + * @throws Exception\CreateOrganizationSSOSettingsForbiddenException + * @throws Exception\CreateOrganizationSSOSettingsUnprocessableEntityException + * @throws Exception\CreateOrganizationSSOSettingsInternalServerErrorException + * @throws Exception\CreateOrganizationSSOSettingsServiceUnavailableException + */ + public function createOrganizationSSOSettings(string $organizationGuid, Model\SSOSlug $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateOrganizationSSOSettings($organizationGuid, $requestBody), $fetch); + } + + /** + * Check to see if the SSO Slug is available. + * + * @param string $urlSlug A potential slug for SSO + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SSOVerifySlug|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\VerifySSOSlugPaymentRequiredException + * @throws Exception\VerifySSOSlugForbiddenException + * @throws Exception\VerifySSOSlugNotFoundException + * @throws Exception\VerifySSOSlugInternalServerErrorException + * @throws Exception\VerifySSOSlugServiceUnavailableException + */ + public function verifySSOSlug(string $urlSlug, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\VerifySSOSlug($urlSlug), $fetch); + } + + /** + * Retrieve all country calling codes optionally sorted by property. + * + * @param array $queryParameters { + * + * @var string $sort_by Country code property you would like to sort country codes by + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CountryCode[]|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCountryCallingCodesBadRequestException + * @throws Exception\GetCountryCallingCodesInternalServerErrorException + */ + public function getCountryCallingCodes(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCountryCallingCodes($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\User|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetUserForbiddenException + * @throws Exception\GetUserNotFoundException + * @throws Exception\GetUserInternalServerErrorException + * @throws Exception\GetUserServiceUnavailableException + */ + public function getUser(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUser(), $fetch); + } + + /** + * Update fields in the user. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\User|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateUserBadRequestException + * @throws Exception\UpdateUserForbiddenException + * @throws Exception\UpdateUserNotFoundException + * @throws Exception\UpdateUserUnprocessableEntityException + * @throws Exception\UpdateUserInternalServerErrorException + * @throws Exception\UpdateUserServiceUnavailableException + */ + public function updateUser(Model\UserUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateUser($requestBody), $fetch); + } + + /** + * Request SAR Report. + * + * @param mixed|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\RequestUserSARForbiddenException + * @throws Exception\RequestUserSARInternalServerErrorException + * @throws Exception\RequestUserSARServiceUnavailableException + */ + public function requestUserSAR($requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\RequestUserSAR($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ForgetUserForbiddenException + * @throws Exception\ForgetUserInternalServerErrorException + * @throws Exception\ForgetUserServiceUnavailableException + */ + public function forgetUser(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ForgetUser(), $fetch); + } + + /** + * Disable 2FA for a user. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\Disable2FABadRequestException + * @throws Exception\Disable2FAUnauthorizedException + * @throws Exception\Disable2FAForbiddenException + * @throws Exception\Disable2FANotFoundException + * @throws Exception\Disable2FAUnprocessableEntityException + * @throws Exception\Disable2FAInternalServerErrorException + * @throws Exception\Disable2FAServiceUnavailableException + */ + public function disable2FA(Model\TwoFactorCode $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\Disable2FA($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\TwoFactor|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTwoFARecordNotFoundException + * @throws Exception\GetTwoFARecordInternalServerErrorException + * @throws Exception\GetTwoFARecordServiceUnavailableException + */ + public function getTwoFARecord(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTwoFARecord(), $fetch); + } + + /** + * Set a phone number for 2FA via sms. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\TwoFactor|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SetPhoneNumberBadRequestException + * @throws Exception\SetPhoneNumberForbiddenException + * @throws Exception\SetPhoneNumberUnprocessableEntityException + * @throws Exception\SetPhoneNumberInternalServerErrorException + * @throws Exception\SetPhoneNumberServiceUnavailableException + */ + public function setPhoneNumber(Model\TwoFactor $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SetPhoneNumber($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\TwoFactor|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SendVerificationCodeBadRequestException + * @throws Exception\SendVerificationCodeUnauthorizedException + * @throws Exception\SendVerificationCodeForbiddenException + * @throws Exception\SendVerificationCodeNotFoundException + * @throws Exception\SendVerificationCodeInternalServerErrorException + * @throws Exception\SendVerificationCodeServiceUnavailableException + */ + public function sendVerificationCode(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SendVerificationCode(), $fetch); + } + + /** + * Verify a 2FA code and see if record is valid or expired. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\TwoFactorVerify|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\VerifyTwoFactorCodeBadRequestException + * @throws Exception\VerifyTwoFactorCodeNotFoundException + * @throws Exception\VerifyTwoFactorCodeInternalServerErrorException + * @throws Exception\VerifyTwoFactorCodeServiceUnavailableException + */ + public function verifyTwoFactorCode(Model\TwoFactorCode $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\VerifyTwoFactorCode($requestBody), $fetch); + } + + /** + * Remove a user from Bitly. + * + * @param string $login The login for a Bitly user + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteUserBadRequestException + * @throws Exception\DeleteUserForbiddenException + * @throws Exception\DeleteUserInternalServerErrorException + */ + public function deleteUser(string $login, Model\DeactivateUser $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteUser($login, $requestBody), $fetch); + } + + /** + * Retrieve a list of users for the provided scope. + * + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * @var int $page Integer specifying the numbered result at which to start + * @var int $size The quantity of items to be be returned + * @var string $group_guid A GUID for a Bitly group + * @var array $logins The logins for Bitly users + * @var string $full_name_search A partial string that will be compared to the full name of a user + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Users|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetUsersForbiddenException + * @throws Exception\GetUsersNotFoundException + * @throws Exception\GetUsersInternalServerErrorException + * @throws Exception\GetUsersServiceUnavailableException + */ + public function getUsers(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUsers($queryParameters), $fetch); + } + + /** + * Create a user. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PublicOAuthUser|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateUserBadRequestException + * @throws Exception\CreateUserUnprocessableEntityException + * @throws Exception\CreateUserTooManyRequestsException + * @throws Exception\CreateUserInternalServerErrorException + */ + public function createUser(Model\CreateUserBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateUser($requestBody), $fetch); + } + + /** + * Retrieve a list of Groups by a User Login. + * + * @param string $login The login for a Bitly user + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Groups|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupsByLoginForbiddenException + * @throws Exception\GetGroupsByLoginInternalServerErrorException + */ + public function getGroupsByLogin(string $login, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupsByLogin($login), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\UserPreferences|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetUserPreferencesBadRequestException + * @throws Exception\GetUserPreferencesInternalServerErrorException + */ + public function getUserPreferences(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUserPreferences(), $fetch); + } + + /** + * Set a user preference. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SetUserPreferenceBadRequestException + * @throws Exception\SetUserPreferenceUnprocessableEntityException + * @throws Exception\SetUserPreferenceInternalServerErrorException + */ + public function setUserPreference(Model\UserPreferenceBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SetUserPreference($requestBody), $fetch); + } + + /** + * gets all invitations for a given login. + * + * @param string $login The login for a Bitly user + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\InvitationsForLogin|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetInvitationsByLoginBadRequestException + * @throws Exception\GetInvitationsByLoginForbiddenException + * @throws Exception\GetInvitationsByLoginInternalServerErrorException + */ + public function getInvitationsByLogin(string $login, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetInvitationsByLogin($login), $fetch); + } + + /** + * accepts an invitation for a user and adds them to invited organizations and groups. + * + * @param string $login The login for a Bitly user + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Organizations|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UserAcceptInviteBadRequestException + * @throws Exception\UserAcceptInviteForbiddenException + * @throws Exception\UserAcceptInviteUnprocessableEntityException + * @throws Exception\UserAcceptInviteInternalServerErrorException + */ + public function userAcceptInvite(string $login, Model\InvitationsAccept $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UserAcceptInvite($login, $requestBody), $fetch); + } + + /** + * Get a user's activity log. + * + * @param array $queryParameters { + * + * @var string $next_page + * @var int $limit + * @var array $action + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ActivityLogs|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetUserActivityLogForbiddenException + * @throws Exception\GetUserActivityLogInternalServerErrorException + * @throws Exception\GetUserActivityLogServiceUnavailableException + */ + public function getUserActivityLog(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUserActivityLog($queryParameters), $fetch); + } + + /** + * Change the stored password for a user. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ChangeUserPasswordBadRequestException + * @throws Exception\ChangeUserPasswordForbiddenException + * @throws Exception\ChangeUserPasswordNotFoundException + * @throws Exception\ChangeUserPasswordUnprocessableEntityException + * @throws Exception\ChangeUserPasswordInternalServerErrorException + */ + public function changeUserPassword(Model\UserPasswordChange $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ChangeUserPassword($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\UserOnboardingSurvey|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetUserOnboardingSurveyResultsForbiddenException + * @throws Exception\GetUserOnboardingSurveyResultsInternalServerErrorException + */ + public function getUserOnboardingSurveyResults(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetUserOnboardingSurveyResults(), $fetch); + } + + /** + * adds a new email to an existing user. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\EmailBody|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\AddEmailToUserBadRequestException + * @throws Exception\AddEmailToUserForbiddenException + * @throws Exception\AddEmailToUserNotFoundException + * @throws Exception\AddEmailToUserUnprocessableEntityException + * @throws Exception\AddEmailToUserInternalServerErrorException + */ + public function addEmailToUser(Model\EmailBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\AddEmailToUser($requestBody), $fetch); + } + + /** + * Delete an existing email. + * + * @param string $email An email address + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteEmailBadRequestException + * @throws Exception\DeleteEmailForbiddenException + * @throws Exception\DeleteEmailNotFoundException + * @throws Exception\DeleteEmailInternalServerErrorException + * @throws Exception\DeleteEmailServiceUnavailableException + */ + public function deleteEmail(string $email, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteEmail($email), $fetch); + } + + /** + * Update an email. + * + * @param string $email An email address + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\EmailBody|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateEmailBadRequestException + * @throws Exception\UpdateEmailForbiddenException + * @throws Exception\UpdateEmailNotFoundException + * @throws Exception\UpdateEmailInternalServerErrorException + * @throws Exception\UpdateEmailServiceUnavailableException + */ + public function updateEmail(string $email, Model\EmailBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateEmail($email, $requestBody), $fetch); + } + + /** + * Send a verification for an email to a user. + * + * @param string $email An email address + * @param mixed|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SendEmailVerificationBadRequestException + * @throws Exception\SendEmailVerificationNotFoundException + * @throws Exception\SendEmailVerificationInternalServerErrorException + * @throws Exception\SendEmailVerificationServiceUnavailableException + */ + public function sendEmailVerification(string $email, $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SendEmailVerification($email, $requestBody), $fetch); + } + + /** + * Returns the campaigns for the current authenticated user. + * + * @param array $queryParameters { + * + * @var string $group_guid A GUID for a Bitly group + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Campaigns|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCampaignsBadRequestException + * @throws Exception\GetCampaignsPaymentRequiredException + * @throws Exception\GetCampaignsForbiddenException + * @throws Exception\GetCampaignsNotFoundException + * @throws Exception\GetCampaignsInternalServerErrorException + * @throws Exception\GetCampaignsBadGatewayException + * @throws Exception\GetCampaignsServiceUnavailableException + */ + public function getCampaigns(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCampaigns($queryParameters), $fetch); + } + + /** + * Creates a new campaign. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Campaign|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateCampaignBadRequestException + * @throws Exception\CreateCampaignPaymentRequiredException + * @throws Exception\CreateCampaignForbiddenException + * @throws Exception\CreateCampaignNotFoundException + * @throws Exception\CreateCampaignUnprocessableEntityException + * @throws Exception\CreateCampaignTooManyRequestsException + * @throws Exception\CreateCampaignInternalServerErrorException + * @throws Exception\CreateCampaignServiceUnavailableException + */ + public function createCampaign(Model\CampaignModify $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateCampaign($requestBody), $fetch); + } + + /** + * Deletes a campaign. + * + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteCampaignPaymentRequiredException + * @throws Exception\DeleteCampaignForbiddenException + * @throws Exception\DeleteCampaignNotFoundException + * @throws Exception\DeleteCampaignInternalServerErrorException + * @throws Exception\DeleteCampaignServiceUnavailableException + */ + public function deleteCampaign(string $campaignGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteCampaign($campaignGuid), $fetch); + } + + /** + * Returns details for a campaign. + * + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Campaign|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCampaignPaymentRequiredException + * @throws Exception\GetCampaignForbiddenException + * @throws Exception\GetCampaignNotFoundException + * @throws Exception\GetCampaignTooManyRequestsException + * @throws Exception\GetCampaignInternalServerErrorException + * @throws Exception\GetCampaignServiceUnavailableException + */ + public function getCampaign(string $campaignGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCampaign($campaignGuid), $fetch); + } + + /** + * Updates a campaign's details. + * + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Campaign|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateCampaignBadRequestException + * @throws Exception\UpdateCampaignPaymentRequiredException + * @throws Exception\UpdateCampaignForbiddenException + * @throws Exception\UpdateCampaignNotFoundException + * @throws Exception\UpdateCampaignUnprocessableEntityException + * @throws Exception\UpdateCampaignTooManyRequestsException + * @throws Exception\UpdateCampaignInternalServerErrorException + * @throws Exception\UpdateCampaignServiceUnavailableException + */ + public function updateCampaign(string $campaignGuid, Model\CampaignModify $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateCampaign($campaignGuid, $requestBody), $fetch); + } + + /** + * Returns the number of clicks for all channels within a campaign. + * + * @param string $campaignGuid A GUID for a Bitly campaign + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\CampaignClicks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCampaignClicksPaymentRequiredException + * @throws Exception\GetCampaignClicksForbiddenException + * @throws Exception\GetCampaignClicksNotFoundException + * @throws Exception\GetCampaignClicksInternalServerErrorException + * @throws Exception\GetCampaignClicksServiceUnavailableException + */ + public function getCampaignClicks(string $campaignGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetCampaignClicks($campaignGuid, $queryParameters, $accept), $fetch); + } + + /** + * bulk add bitlinks to multiple campaign channels. + * + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BulkAddResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\BulkAddBadRequestException + * @throws Exception\BulkAddForbiddenException + * @throws Exception\BulkAddNotFoundException + * @throws Exception\BulkAddInternalServerErrorException + */ + public function bulkAdd(string $campaignGuid, Model\CampaignsCampaignGuidAddURLsPostBody $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\BulkAdd($campaignGuid, $requestBody), $fetch); + } + + /** + * add a url to a channel for a brand and campaign. + * + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CampaignAddBitlinkResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CampaignAddBitlinkBadRequestException + * @throws Exception\CampaignAddBitlinkPaymentRequiredException + * @throws Exception\CampaignAddBitlinkForbiddenException + * @throws Exception\CampaignAddBitlinkNotFoundException + * @throws Exception\CampaignAddBitlinkUnprocessableEntityException + * @throws Exception\CampaignAddBitlinkInternalServerErrorException + * @throws Exception\CampaignAddBitlinkServiceUnavailableException + */ + public function campaignAddBitlink(string $campaignGuid, Model\CampaignAddBitlink $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CampaignAddBitlink($campaignGuid, $requestBody), $fetch); + } + + /** + * Returns the channels available to a user. + * + * @param array $queryParameters { + * + * @var string $group_guid A GUID for a Bitly group + * @var string $campaign_guid A GUID for a Bitly campaign + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Channels|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetChannelsPaymentRequiredException + * @throws Exception\GetChannelsForbiddenException + * @throws Exception\GetChannelsNotFoundException + * @throws Exception\GetChannelsInternalServerErrorException + * @throws Exception\GetChannelsServiceUnavailableException + */ + public function getChannels(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetChannels($queryParameters), $fetch); + } + + /** + * Creates a new channel. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Channel|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateChannelBadRequestException + * @throws Exception\CreateChannelPaymentRequiredException + * @throws Exception\CreateChannelForbiddenException + * @throws Exception\CreateChannelNotFoundException + * @throws Exception\CreateChannelUnprocessableEntityException + * @throws Exception\CreateChannelTooManyRequestsException + * @throws Exception\CreateChannelInternalServerErrorException + * @throws Exception\CreateChannelServiceUnavailableException + */ + public function createChannel(Model\ChannelModify $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateChannel($requestBody), $fetch); + } + + /** + * Deletes a channel. + * + * @param string $channelGuid A GUID for a Bitly Channel + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteChannelPaymentRequiredException + * @throws Exception\DeleteChannelForbiddenException + * @throws Exception\DeleteChannelNotFoundException + * @throws Exception\DeleteChannelInternalServerErrorException + * @throws Exception\DeleteChannelServiceUnavailableException + */ + public function deleteChannel(string $channelGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteChannel($channelGuid), $fetch); + } + + /** + * Returns a channel's details. + * + * @param string $channelGuid A GUID for a Bitly Channel + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Channel|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetChannelPaymentRequiredException + * @throws Exception\GetChannelForbiddenException + * @throws Exception\GetChannelNotFoundException + * @throws Exception\GetChannelTooManyRequestsException + * @throws Exception\GetChannelInternalServerErrorException + * @throws Exception\GetChannelServiceUnavailableException + */ + public function getChannel(string $channelGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetChannel($channelGuid), $fetch); + } + + /** + * Updates an existing channel. + * + * @param string $channelGuid A GUID for a Bitly Channel + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Channel|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateChannelBadRequestException + * @throws Exception\UpdateChannelPaymentRequiredException + * @throws Exception\UpdateChannelForbiddenException + * @throws Exception\UpdateChannelNotFoundException + * @throws Exception\UpdateChannelUnprocessableEntityException + * @throws Exception\UpdateChannelTooManyRequestsException + * @throws Exception\UpdateChannelInternalServerErrorException + * @throws Exception\UpdateChannelServiceUnavailableException + */ + public function updateChannel(string $channelGuid, Model\ChannelModify $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateChannel($channelGuid, $requestBody), $fetch); + } + + /** + * Retrieve the details for the provided OAuth App client ID. + * + * @param string $clientId The client ID of an OAuth app + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OAuthApp|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOAuthAppForbiddenException + * @throws Exception\GetOAuthAppNotFoundException + * @throws Exception\GetOAuthAppInternalServerErrorException + * @throws Exception\GetOAuthAppServiceUnavailableException + */ + public function getOAuthApp(string $clientId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOAuthApp($clientId), $fetch); + } + + /** + * Update the details for the provided OAuth App client ID. + * + * @param string $clientId The client ID of an OAuth app + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OAuthAppFull|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateOAuthAppBadRequestException + * @throws Exception\UpdateOAuthAppForbiddenException + * @throws Exception\UpdateOAuthAppNotFoundException + * @throws Exception\UpdateOAuthAppInternalServerErrorException + * @throws Exception\UpdateOAuthAppServiceUnavailableException + */ + public function updateOAuthApp(string $clientId, Model\UpdateApp $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateOAuthApp($clientId, $requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OAuthApps|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOAuthAppsBadRequestException + * @throws Exception\GetOAuthAppsNotFoundException + * @throws Exception\GetOAuthAppsInternalServerErrorException + * @throws Exception\GetOAuthAppsServiceUnavailableException + */ + public function getOAuthApps(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOAuthApps(), $fetch); + } + + /** + * Creates an OAuth App for the user. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OAuthAppFull|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateOAuthAppBadRequestException + * @throws Exception\CreateOAuthAppForbiddenException + * @throws Exception\CreateOAuthAppInternalServerErrorException + */ + public function createOAuthApp(Model\CreateOAuthAppReq $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateOAuthApp($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Authorizations|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOAuthAuthorizationsNotFoundException + * @throws Exception\GetOAuthAuthorizationsInternalServerErrorException + * @throws Exception\GetOAuthAuthorizationsServiceUnavailableException + */ + public function getOAuthAuthorizations(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOAuthAuthorizations(), $fetch); + } + + /** + * Creates a generic access token for the user. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GenericAccessToken|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateGenericAccessTokenBadRequestException + * @throws Exception\CreateGenericAccessTokenUnauthorizedException + * @throws Exception\CreateGenericAccessTokenForbiddenException + * @throws Exception\CreateGenericAccessTokenNotFoundException + * @throws Exception\CreateGenericAccessTokenInternalServerErrorException + */ + public function createGenericAccessToken(Model\GenericAccessTokenReq $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateGenericAccessToken($requestBody), $fetch); + } + + /** + * Delete the oauth authorization for a user. + * + * @param string $authorizationId A ID for an oAuth authorization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ExpireOAuthAuthorizationBadRequestException + * @throws Exception\ExpireOAuthAuthorizationNotFoundException + * @throws Exception\ExpireOAuthAuthorizationInternalServerErrorException + * @throws Exception\ExpireOAuthAuthorizationServiceUnavailableException + */ + public function expireOAuthAuthorization(string $authorizationId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ExpireOAuthAuthorization($authorizationId), $fetch); + } + + /** + * Finds the OAuth App associated with the param clientID, and updates the client secret for that app. + * + * @param string $clientId The client ID of an OAuth app + * @param mixed|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OAuthAppFull|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateOAuthAppClientSecretForbiddenException + * @throws Exception\UpdateOAuthAppClientSecretNotFoundException + * @throws Exception\UpdateOAuthAppClientSecretInternalServerErrorException + * @throws Exception\UpdateOAuthAppClientSecretServiceUnavailableException + */ + public function updateOAuthAppClientSecret(string $clientId, $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateOAuthAppClientSecret($clientId, $requestBody), $fetch); + } + + /** + * Retrieve the Integration OAuths matching a given clientID. + * + * @param array $queryParameters { + * + * @var string $client_id The client_id is a required search param partially matching the integration oauth composite key + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\IntegrationOAuths|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetIntegrationOAuthsByClientIDBadRequestException + * @throws Exception\GetIntegrationOAuthsByClientIDInternalServerErrorException + * @throws Exception\GetIntegrationOAuthsByClientIDServiceUnavailableException + */ + public function getIntegrationOAuthsByClientID(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetIntegrationOAuthsByClientID($queryParameters), $fetch); + } + + /** + * delete a Integration OAuth matching a given clientID and Organization GUID. + * + * @param string $clientId The client ID of an OAuth app + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteIntegrationOAuthBadRequestException + * @throws Exception\DeleteIntegrationOAuthForbiddenException + * @throws Exception\DeleteIntegrationOAuthInternalServerErrorException + * @throws Exception\DeleteIntegrationOAuthServiceUnavailableException + */ + public function deleteIntegrationOAuth(string $clientId, string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteIntegrationOAuth($clientId, $organizationGuid), $fetch); + } + + /** + * Creates a new Shopify Integration OAuth for the given Organization GUID. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateShopifyIntegrationOAuthBadRequestException + * @throws Exception\CreateShopifyIntegrationOAuthForbiddenException + * @throws Exception\CreateShopifyIntegrationOAuthConflictException + * @throws Exception\CreateShopifyIntegrationOAuthUnprocessableEntityException + * @throws Exception\CreateShopifyIntegrationOAuthInternalServerErrorException + * @throws Exception\CreateShopifyIntegrationOAuthServiceUnavailableException + */ + public function createShopifyIntegrationOAuth(string $organizationGuid, Model\ShopifyTokenExchangeRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateShopifyIntegrationOAuth($organizationGuid, $requestBody), $fetch); + } + + /** + * Retrieves shopify domain details for a organization guid and client id. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $clientId The client ID of an OAuth app + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ShopifyDomainDetailsResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetShopifyShopDomainDetailsBadRequestException + * @throws Exception\GetShopifyShopDomainDetailsForbiddenException + * @throws Exception\GetShopifyShopDomainDetailsNotFoundException + * @throws Exception\GetShopifyShopDomainDetailsInternalServerErrorException + * @throws Exception\GetShopifyShopDomainDetailsServiceUnavailableException + */ + public function getShopifyShopDomainDetails(string $organizationGuid, string $clientId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetShopifyShopDomainDetails($organizationGuid, $clientId), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BSDsResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBSDsBadRequestException + * @throws Exception\GetBSDsForbiddenException + * @throws Exception\GetBSDsInternalServerErrorException + * @throws Exception\GetBSDsServiceUnavailableException + */ + public function getBSDs(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBSDs(), $fetch); + } + + /** + * Fetch a list of domains based on a query. + * + * @param array $queryParameters { + * + * @var int $limit limit the amount of results returned + * @var string $query The value that you would like to search + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BSDSearchResults|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SearchDomainsForbiddenException + * @throws Exception\SearchDomainsInternalServerErrorException + */ + public function searchDomains(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SearchDomains($queryParameters), $fetch); + } + + /** + * Fetch AI-generated branded short domains based on a natural language prompt. + * + * @param array $queryParameters { + * + * @var int $limit limit the amount of results returned + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BSDSearchResults|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\AiDomainSearchBadRequestException + * @throws Exception\AiDomainSearchForbiddenException + * @throws Exception\AiDomainSearchInternalServerErrorException + */ + public function aiDomainSearch(Model\BSDAISearchPrompt $requestBody, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\AiDomainSearch($requestBody, $queryParameters), $fetch); + } + + /** + * Fetches autobranded domain for urls. + * + * @param array $queryParameters { + * + * @var array $long_url + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AutobrandedDomain|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAutobrandedDomainBadRequestException + * @throws Exception\GetAutobrandedDomainInternalServerErrorException + */ + public function getAutobrandedDomain(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAutobrandedDomain($queryParameters), $fetch); + } + + /** + * Buy a BSD for a user. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PurchaseBSDResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PurchaseBsdForbiddenException + * @throws Exception\PurchaseBsdInternalServerErrorException + */ + public function purchaseBsd(Model\PurchaseBSD $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PurchaseBsd($requestBody), $fetch); + } + + /** + * Get domain details from registrar. + * + * @param string $domain a web domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DomainRegistrarInfo|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetDomainRegistrarInfoInternalServerErrorException + */ + public function getDomainRegistrarInfo(string $domain, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDomainRegistrarInfo($domain), $fetch); + } + + /** + * Get agreements from registrar to purchase a domain. + * + * @param string $domain a web domain + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DomainAgreements|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\FetchDomainAgreementsInternalServerErrorException + */ + public function fetchDomainAgreements(string $domain, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\FetchDomainAgreements($domain, $queryParameters), $fetch); + } + + /** + * Get DNS provider, DNS record type (A or CNAME), values (where DNS points), and whether the DNS values are valid. + * + * @param string $domain a web domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DomainDNS|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CheckDomainDNSInternalServerErrorException + */ + public function checkDomainDNS(string $domain, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CheckDomainDNS($domain), $fetch); + } + + /** + * Fetch the status of available domain. + * + * @param string $domain a web domain + * @param array $queryParameters { + * + * @var string $organization_guid A GUID for a Bitly organization + * @var bool $fetch_price Include pricing information for a domain + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DomainStatus|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\FetchDomainStatusForbiddenException + * @throws Exception\FetchDomainStatusInternalServerErrorException + * @throws Exception\FetchDomainStatusGatewayTimeoutException + */ + public function fetchDomainStatus(string $domain, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\FetchDomainStatus($domain, $queryParameters), $fetch); + } + + /** + * Fetch all information around a complimentary domain purchase for a specific domain. + * + * @param string $domain a web domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DomainPurchase|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\FetchCompDomainPurchaseForbiddenException + * @throws Exception\FetchCompDomainPurchaseInternalServerErrorException + * @throws Exception\FetchCompDomainPurchaseGatewayTimeoutException + */ + public function fetchCompDomainPurchase(string $domain, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\FetchCompDomainPurchase($domain), $fetch); + } + + /** + * Fetch all Access Features available for an Organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AccessFeatures|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAccessFeaturesForbiddenException + * @throws Exception\GetAccessFeaturesInternalServerErrorException + */ + public function getAccessFeatures(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAccessFeatures($organizationGuid), $fetch); + } + + /** + * allows us to capture user events. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CaptureEventForbiddenException + * @throws Exception\CaptureEventInternalServerErrorException + */ + public function captureEvent(Model\Event $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CaptureEvent($requestBody), $fetch); + } + + /** + * Fetch all Consumable Features available for an Organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ConsumableFeatures|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetConsumableFeaturesForbiddenException + * @throws Exception\GetConsumableFeaturesConflictException + * @throws Exception\GetConsumableFeaturesInternalServerErrorException + */ + public function getConsumableFeatures(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetConsumableFeatures($organizationGuid), $fetch); + } + + /** + * Fetch all invitations available for an Organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Invitations|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetInvitationsForbiddenException + * @throws Exception\GetInvitationsInternalServerErrorException + */ + public function getInvitations(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetInvitations($organizationGuid), $fetch); + } + + /** + * Create invitaitons for an Organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Invitations|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateOrganizationInvitationsBadRequestException + * @throws Exception\CreateOrganizationInvitationsPaymentRequiredException + * @throws Exception\CreateOrganizationInvitationsForbiddenException + * @throws Exception\CreateOrganizationInvitationsTooManyRequestsException + * @throws Exception\CreateOrganizationInvitationsInternalServerErrorException + * @throws Exception\CreateOrganizationInvitationsServiceUnavailableException + */ + public function createOrganizationInvitations(string $organizationGuid, Model\InvitationsCreate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateOrganizationInvitations($organizationGuid, $requestBody), $fetch); + } + + /** + * Fetch all invitations available for an Organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $email An email address + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Invitation|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ResendInvitationForbiddenException + * @throws Exception\ResendInvitationNotFoundException + * @throws Exception\ResendInvitationTooManyRequestsException + * @throws Exception\ResendInvitationInternalServerErrorException + */ + public function resendInvitation(string $organizationGuid, string $email, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ResendInvitation($organizationGuid, $email), $fetch); + } + + /** + * Deletes an invitation for a given organization and email address. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $email An email address + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteInvitationForbiddenException + * @throws Exception\DeleteInvitationNotFoundException + * @throws Exception\DeleteInvitationTooManyRequestsException + * @throws Exception\DeleteInvitationInternalServerErrorException + */ + public function deleteInvitation(string $organizationGuid, string $email, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteInvitation($organizationGuid, $email), $fetch); + } + + /** + * Fetch all webhooks available for an Organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Webhooks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetWebhooksPaymentRequiredException + * @throws Exception\GetWebhooksForbiddenException + * @throws Exception\GetWebhooksNotFoundException + * @throws Exception\GetWebhooksTooManyRequestsException + * @throws Exception\GetWebhooksInternalServerErrorException + * @throws Exception\GetWebhooksServiceUnavailableException + */ + public function getWebhooks(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetWebhooks($organizationGuid), $fetch); + } + + /** + * Creates a webhook. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Webhook|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateWebhookBadRequestException + * @throws Exception\CreateWebhookPaymentRequiredException + * @throws Exception\CreateWebhookForbiddenException + * @throws Exception\CreateWebhookNotFoundException + * @throws Exception\CreateWebhookUnprocessableEntityException + * @throws Exception\CreateWebhookTooManyRequestsException + * @throws Exception\CreateWebhookInternalServerErrorException + * @throws Exception\CreateWebhookServiceUnavailableException + */ + public function createWebhook(Model\WebhookCreate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateWebhook($requestBody), $fetch); + } + + /** + * Deletes a webhook. + * + * @param string $webhookGuid A GUID for a Bitly webhook + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteWebhookBadRequestException + * @throws Exception\DeleteWebhookPaymentRequiredException + * @throws Exception\DeleteWebhookForbiddenException + * @throws Exception\DeleteWebhookNotFoundException + * @throws Exception\DeleteWebhookInternalServerErrorException + * @throws Exception\DeleteWebhookServiceUnavailableException + */ + public function deleteWebhook(string $webhookGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteWebhook($webhookGuid), $fetch); + } + + /** + * Returns a webhook. + * + * @param string $webhookGuid A GUID for a Bitly webhook + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Webhook|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetWebhookBadRequestException + * @throws Exception\GetWebhookPaymentRequiredException + * @throws Exception\GetWebhookForbiddenException + * @throws Exception\GetWebhookNotFoundException + * @throws Exception\GetWebhookTooManyRequestsException + * @throws Exception\GetWebhookInternalServerErrorException + * @throws Exception\GetWebhookServiceUnavailableException + */ + public function getWebhook(string $webhookGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetWebhook($webhookGuid), $fetch); + } + + /** + * Update a webhook. + * + * @param string $webhookGuid A GUID for a Bitly webhook + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Webhook|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateWebhookBadRequestException + * @throws Exception\UpdateWebhookPaymentRequiredException + * @throws Exception\UpdateWebhookForbiddenException + * @throws Exception\UpdateWebhookNotFoundException + * @throws Exception\UpdateWebhookUnprocessableEntityException + * @throws Exception\UpdateWebhookTooManyRequestsException + * @throws Exception\UpdateWebhookInternalServerErrorException + * @throws Exception\UpdateWebhookServiceUnavailableException + */ + public function updateWebhook(string $webhookGuid, Model\WebhookUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateWebhook($webhookGuid, $requestBody), $fetch); + } + + /** + * Sends ping event to test webhook configuration. + * + * @param string $webhookGuid A GUID for a Bitly webhook + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Webhook|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\VerifyWebhookBadRequestException + * @throws Exception\VerifyWebhookPaymentRequiredException + * @throws Exception\VerifyWebhookForbiddenException + * @throws Exception\VerifyWebhookNotFoundException + * @throws Exception\VerifyWebhookInternalServerErrorException + * @throws Exception\VerifyWebhookServiceUnavailableException + */ + public function verifyWebhook(string $webhookGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\VerifyWebhook($webhookGuid), $fetch); + } + + /** + * Returns all plan limits and counts available for an organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PlanLimits|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetPlanLimitsForbiddenException + * @throws Exception\GetPlanLimitsInternalServerErrorException + * @throws Exception\GetPlanLimitsServiceUnavailableException + */ + public function getPlanLimits(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetPlanLimits($organizationGuid), $fetch); + } + + /** + * Fetch all platform limits and counts available for an organization. + * + * @param array $queryParameters { + * + * @var string $path The specific path for which information is requested + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PlatformLimits|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetPlatformLimitsForbiddenException + * @throws Exception\GetPlatformLimitsNotFoundException + * @throws Exception\GetPlatformLimitsInternalServerErrorException + * @throws Exception\GetPlatformLimitsServiceUnavailableException + */ + public function getPlatformLimits(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetPlatformLimits($queryParameters), $fetch); + } + + /** + * validate bulk upload. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BulkUploadData|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ValidateBulkUploadBadRequestException + * @throws Exception\ValidateBulkUploadPaymentRequiredException + * @throws Exception\ValidateBulkUploadForbiddenException + * @throws Exception\ValidateBulkUploadNotFoundException + * @throws Exception\ValidateBulkUploadUnprocessableEntityException + * @throws Exception\ValidateBulkUploadInternalServerErrorException + * @throws Exception\ValidateBulkUploadServiceUnavailableException + */ + public function validateBulkUpload(Model\BulkUploadValidate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ValidateBulkUpload($requestBody), $fetch); + } + + /** + * Returns all bulk uploads for an organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param array $queryParameters { + * + * @var string $upload_type Return uploads specific to the action being performed. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BulkUploads|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBulkUploadsBadRequestException + * @throws Exception\GetBulkUploadsPaymentRequiredException + * @throws Exception\GetBulkUploadsForbiddenException + * @throws Exception\GetBulkUploadsNotFoundException + * @throws Exception\GetBulkUploadsInternalServerErrorException + * @throws Exception\GetBulkUploadsServiceUnavailableException + */ + public function getBulkUploads(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBulkUploads($organizationGuid, $queryParameters), $fetch); + } + + /** + * Deletes an existing Link Launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteLaunchpadBadRequestException + * @throws Exception\DeleteLaunchpadForbiddenException + * @throws Exception\DeleteLaunchpadNotFoundException + * @throws Exception\DeleteLaunchpadInternalServerErrorException + * @throws Exception\DeleteLaunchpadServiceUnavailableException + */ + public function deleteLaunchpad(string $launchpadId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteLaunchpad($launchpadId), $fetch); + } + + /** + * Returns all relevant data to render a specific link launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Launchpad|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLaunchpadForbiddenException + * @throws Exception\GetLaunchpadNotFoundException + * @throws Exception\GetLaunchpadInternalServerErrorException + * @throws Exception\GetLaunchpadServiceUnavailableException + */ + public function getLaunchpad(string $launchpadId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLaunchpad($launchpadId), $fetch); + } + + /** + * Updates an existing link launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Launchpad|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadBadRequestException + * @throws Exception\UpdateLaunchpadForbiddenException + * @throws Exception\UpdateLaunchpadNotFoundException + * @throws Exception\UpdateLaunchpadTooManyRequestsException + * @throws Exception\UpdateLaunchpadInternalServerErrorException + * @throws Exception\UpdateLaunchpadServiceUnavailableException + */ + public function updateLaunchpad(string $launchpadId, Model\UpdateLaunchpad $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpad($launchpadId, $requestBody), $fetch); + } + + /** + * Creates an empty link launchpad for a group using default appearance settings. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Launchpad|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateLaunchpadBadRequestException + * @throws Exception\CreateLaunchpadForbiddenException + * @throws Exception\CreateLaunchpadInternalServerErrorException + * @throws Exception\CreateLaunchpadServiceUnavailableException + */ + public function createLaunchpad(Model\CreateLaunchpad $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLaunchpad($requestBody), $fetch); + } + + /** + * Creates an empty Bitly Site for a group using default appearance settings. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateSiteBadRequestException + * @throws Exception\CreateSitePaymentRequiredException + * @throws Exception\CreateSiteForbiddenException + * @throws Exception\CreateSiteUnprocessableEntityException + * @throws Exception\CreateSiteInternalServerErrorException + * @throws Exception\CreateSiteServiceUnavailableException + */ + public function createSite(Model\CreateLaunchpad $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateSite($requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlySiteLayout[]|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSiteLayoutsBadRequestException + * @throws Exception\GetSiteLayoutsForbiddenException + * @throws Exception\GetSiteLayoutsNotFoundException + * @throws Exception\GetSiteLayoutsInternalServerErrorException + * @throws Exception\GetSiteLayoutsServiceUnavailableException + */ + public function getSiteLayouts(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSiteLayouts(), $fetch); + } + + /** + * Deletes an existing Site. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteSiteBadRequestException + * @throws Exception\DeleteSiteForbiddenException + * @throws Exception\DeleteSiteNotFoundException + * @throws Exception\DeleteSiteInternalServerErrorException + * @throws Exception\DeleteSiteServiceUnavailableException + */ + public function deleteSite(string $siteId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteSite($siteId), $fetch); + } + + /** + * Retrieves a Bitly Site by ID. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSiteBadRequestException + * @throws Exception\GetSiteForbiddenException + * @throws Exception\GetSiteNotFoundException + * @throws Exception\GetSiteInternalServerErrorException + * @throws Exception\GetSiteServiceUnavailableException + */ + public function getSite(string $siteId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSite($siteId), $fetch); + } + + /** + * Creates a new Bitly site by cloning content and appearance from an existing site. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CloneSiteBadRequestException + * @throws Exception\CloneSitePaymentRequiredException + * @throws Exception\CloneSiteForbiddenException + * @throws Exception\CloneSiteInternalServerErrorException + * @throws Exception\CloneSiteServiceUnavailableException + */ + public function cloneSite(string $siteId, Model\SiteCloneRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CloneSite($siteId, $requestBody), $fetch); + } + + /** + * Discards a given site's in-progress draft. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DiscardSiteDraftBadRequestException + * @throws Exception\DiscardSiteDraftForbiddenException + * @throws Exception\DiscardSiteDraftNotFoundException + * @throws Exception\DiscardSiteDraftUnprocessableEntityException + * @throws Exception\DiscardSiteDraftInternalServerErrorException + */ + public function discardSiteDraft(string $siteId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DiscardSiteDraft($siteId), $fetch); + } + + /** + * Discards a launchpad draft copy of production launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Launchpad|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DiscardDraftLaunchpadBadRequestException + * @throws Exception\DiscardDraftLaunchpadForbiddenException + * @throws Exception\DiscardDraftLaunchpadInternalServerErrorException + * @throws Exception\DiscardDraftLaunchpadServiceUnavailableException + */ + public function discardDraftLaunchpad(string $launchpadId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DiscardDraftLaunchpad($launchpadId), $fetch); + } + + /** + * Replaces a production launchpad with its draft launchpad if changes are made. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Launchpad|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PublishDraftLaunchpadBadRequestException + * @throws Exception\PublishDraftLaunchpadForbiddenException + * @throws Exception\PublishDraftLaunchpadInternalServerErrorException + * @throws Exception\PublishDraftLaunchpadServiceUnavailableException + */ + public function publishDraftLaunchpad(string $launchpadId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PublishDraftLaunchpad($launchpadId), $fetch); + } + + /** + * Fully deletes a link launchpad button - does not deactivate. Does not delete link tied to button. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteLaunchpadButtonForbiddenException + * @throws Exception\DeleteLaunchpadButtonNotFoundException + * @throws Exception\DeleteLaunchpadButtonInternalServerErrorException + * @throws Exception\DeleteLaunchpadButtonServiceUnavailableException + */ + public function deleteLaunchpadButton(string $launchpadId, string $buttonId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteLaunchpadButton($launchpadId, $buttonId), $fetch); + } + + /** + * Updates a provided button on a provided link launchpad. + * + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadButton|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadButtonBadRequestException + * @throws Exception\UpdateLaunchpadButtonForbiddenException + * @throws Exception\UpdateLaunchpadButtonNotFoundException + * @throws Exception\UpdateLaunchpadButtonInternalServerErrorException + * @throws Exception\UpdateLaunchpadButtonServiceUnavailableException + */ + public function updateLaunchpadButton(string $buttonId, string $launchpadId, Model\LaunchpadButtonRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadButton($buttonId, $launchpadId, $requestBody), $fetch); + } + + /** + * Updates a provided social icon on a provided link launchpad. + * + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadSocial|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadSocialBadRequestException + * @throws Exception\UpdateLaunchpadSocialForbiddenException + * @throws Exception\UpdateLaunchpadSocialNotFoundException + * @throws Exception\UpdateLaunchpadSocialInternalServerErrorException + * @throws Exception\UpdateLaunchpadSocialServiceUnavailableException + */ + public function updateLaunchpadSocial(string $buttonId, string $launchpadId, Model\LaunchpadSocialRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadSocial($buttonId, $launchpadId, $requestBody), $fetch); + } + + /** + * Updates a provided youtube embed on a provided link launchpad. + * + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContentYouTubeResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadYoutubeVideoBadRequestException + * @throws Exception\UpdateLaunchpadYoutubeVideoForbiddenException + * @throws Exception\UpdateLaunchpadYoutubeVideoNotFoundException + * @throws Exception\UpdateLaunchpadYoutubeVideoInternalServerErrorException + * @throws Exception\UpdateLaunchpadYoutubeVideoServiceUnavailableException + */ + public function updateLaunchpadYoutubeVideo(string $buttonId, string $launchpadId, Model\LaunchpadContentYouTubeRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadYoutubeVideo($buttonId, $launchpadId, $requestBody), $fetch); + } + + /** + * Updates a provided image on a provided link launchpad. + * + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContentImage|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadImageContentBadRequestException + * @throws Exception\UpdateLaunchpadImageContentForbiddenException + * @throws Exception\UpdateLaunchpadImageContentNotFoundException + * @throws Exception\UpdateLaunchpadImageContentInternalServerErrorException + * @throws Exception\UpdateLaunchpadImageContentServiceUnavailableException + */ + public function updateLaunchpadImageContent(string $buttonId, string $launchpadId, Model\LaunchpadContentImageRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadImageContent($buttonId, $launchpadId, $requestBody), $fetch); + } + + /** + * Updates a provided grid on a provided link launchpad. + * + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContainerResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadGridContentBadRequestException + * @throws Exception\UpdateLaunchpadGridContentForbiddenException + * @throws Exception\UpdateLaunchpadGridContentNotFoundException + * @throws Exception\UpdateLaunchpadGridContentUnprocessableEntityException + * @throws Exception\UpdateLaunchpadGridContentInternalServerErrorException + * @throws Exception\UpdateLaunchpadGridContentServiceUnavailableException + */ + public function updateLaunchpadGridContent(string $buttonId, string $launchpadId, Model\LaunchpadContainerRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadGridContent($buttonId, $launchpadId, $requestBody), $fetch); + } + + /** + * Updates a provided carousel on a provided link launchpad. + * + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContainerResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadCarouselContentBadRequestException + * @throws Exception\UpdateLaunchpadCarouselContentForbiddenException + * @throws Exception\UpdateLaunchpadCarouselContentNotFoundException + * @throws Exception\UpdateLaunchpadCarouselContentUnprocessableEntityException + * @throws Exception\UpdateLaunchpadCarouselContentInternalServerErrorException + * @throws Exception\UpdateLaunchpadCarouselContentServiceUnavailableException + */ + public function updateLaunchpadCarouselContent(string $buttonId, string $launchpadId, Model\LaunchpadContainerRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadCarouselContent($buttonId, $launchpadId, $requestBody), $fetch); + } + + /** + * Updates a provided bitlink on a provided link launchpad. + * + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadButton|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadBitlinkContentBadRequestException + * @throws Exception\UpdateLaunchpadBitlinkContentForbiddenException + * @throws Exception\UpdateLaunchpadBitlinkContentNotFoundException + * @throws Exception\UpdateLaunchpadBitlinkContentInternalServerErrorException + * @throws Exception\UpdateLaunchpadBitlinkContentServiceUnavailableException + */ + public function updateLaunchpadBitlinkContent(string $buttonId, string $launchpadId, Model\LaunchpadContentBitlinkRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadBitlinkContent($buttonId, $launchpadId, $requestBody), $fetch); + } + + /** + * Updates the sort order for all buttons associated with a launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\UpdateButtonSortOrder|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadButtonSortOrderBadRequestException + * @throws Exception\UpdateLaunchpadButtonSortOrderForbiddenException + * @throws Exception\UpdateLaunchpadButtonSortOrderNotFoundException + * @throws Exception\UpdateLaunchpadButtonSortOrderInternalServerErrorException + * @throws Exception\UpdateLaunchpadButtonSortOrderServiceUnavailableException + */ + public function updateLaunchpadButtonSortOrder(string $launchpadId, Model\UpdateButtonSortOrder $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadButtonSortOrder($launchpadId, $requestBody), $fetch); + } + + /** + * Creates a button on a provided link launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadButton|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateLaunchpadButtonBadRequestException + * @throws Exception\CreateLaunchpadButtonForbiddenException + * @throws Exception\CreateLaunchpadButtonNotFoundException + * @throws Exception\CreateLaunchpadButtonInternalServerErrorException + * @throws Exception\CreateLaunchpadButtonServiceUnavailableException + */ + public function createLaunchpadButton(string $launchpadId, Model\LaunchpadButtonRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLaunchpadButton($launchpadId, $requestBody), $fetch); + } + + /** + * Creates a content of given type on the provided launchpad ID. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadButton|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateLaunchpadContentBitlinkBadRequestException + * @throws Exception\CreateLaunchpadContentBitlinkForbiddenException + * @throws Exception\CreateLaunchpadContentBitlinkNotFoundException + * @throws Exception\CreateLaunchpadContentBitlinkInternalServerErrorException + * @throws Exception\CreateLaunchpadContentBitlinkServiceUnavailableException + */ + public function createLaunchpadContentBitlink(string $launchpadId, Model\LaunchpadContentBitlinkRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLaunchpadContentBitlink($launchpadId, $requestBody), $fetch); + } + + /** + * Creates a content of given type on the provided launchpad ID. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadSocial|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateLaunchpadContentSocialBadRequestException + * @throws Exception\CreateLaunchpadContentSocialForbiddenException + * @throws Exception\CreateLaunchpadContentSocialNotFoundException + * @throws Exception\CreateLaunchpadContentSocialInternalServerErrorException + * @throws Exception\CreateLaunchpadContentSocialServiceUnavailableException + */ + public function createLaunchpadContentSocial(string $launchpadId, Model\LaunchpadContentSocialRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLaunchpadContentSocial($launchpadId, $requestBody), $fetch); + } + + /** + * Creates a content of given type on the provided launchpad ID. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContentYouTubeResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateLaunchpadContentYoutubeVideoBadRequestException + * @throws Exception\CreateLaunchpadContentYoutubeVideoForbiddenException + * @throws Exception\CreateLaunchpadContentYoutubeVideoNotFoundException + * @throws Exception\CreateLaunchpadContentYoutubeVideoInternalServerErrorException + * @throws Exception\CreateLaunchpadContentYoutubeVideoServiceUnavailableException + */ + public function createLaunchpadContentYoutubeVideo(string $launchpadId, Model\LaunchpadContentYouTubeRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLaunchpadContentYoutubeVideo($launchpadId, $requestBody), $fetch); + } + + /** + * Creates a content of given type on the provided launchpad ID. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContentImage|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateLaunchpadContentImageBadRequestException + * @throws Exception\CreateLaunchpadContentImageForbiddenException + * @throws Exception\CreateLaunchpadContentImageNotFoundException + * @throws Exception\CreateLaunchpadContentImageInternalServerErrorException + * @throws Exception\CreateLaunchpadContentImageServiceUnavailableException + */ + public function createLaunchpadContentImage(string $launchpadId, Model\LaunchpadContentImageRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLaunchpadContentImage($launchpadId, $requestBody), $fetch); + } + + /** + * Creates a content of given type on the provided launchpad ID. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContentDigitalBusinessCardResponse|\Psr\Http\Message\ResponseInterface|null + */ + public function createLaunchpadContentDigitalBusinessCard(string $launchpadId, Model\LaunchpadContentDigitalBusinessCardRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLaunchpadContentDigitalBusinessCard($launchpadId, $requestBody), $fetch); + } + + /** + * Updates a digital business card on a provided link launchpad. + * + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContentDigitalBusinessCardResponse|\Psr\Http\Message\ResponseInterface|null + */ + public function updateLaunchpadContentDigitalBusinessCard(string $buttonId, string $launchpadId, Model\LaunchpadContentDigitalBusinessCardRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadContentDigitalBusinessCard($buttonId, $launchpadId, $requestBody), $fetch); + } + + /** + * Creates a content of given type on the provided launchpad ID. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContentTextBlockResponse|\Psr\Http\Message\ResponseInterface|null + */ + public function createLaunchpadTextBlockContent(string $launchpadId, Model\LaunchpadContentTextBlockRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateLaunchpadTextBlockContent($launchpadId, $requestBody), $fetch); + } + + /** + * Updates a content of given type on the provided launchpad ID and button ID. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $buttonId A GUID for a Bitly Link Launchpad button + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadContentTextBlockResponse|\Psr\Http\Message\ResponseInterface|null + */ + public function updateLaunchpadTextBlockContent(string $launchpadId, string $buttonId, Model\LaunchpadContentTextBlockRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadTextBlockContent($launchpadId, $buttonId, $requestBody), $fetch); + } + + /** + * Allows for the upload of an image for use on a launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ImageUploadResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UploadLaunchpadImageBadRequestException + * @throws Exception\UploadLaunchpadImageForbiddenException + * @throws Exception\UploadLaunchpadImageNotFoundException + * @throws Exception\UploadLaunchpadImageInternalServerErrorException + * @throws Exception\UploadLaunchpadImageServiceUnavailableException + */ + public function uploadLaunchpadImage(string $launchpadId, Model\LaunchpadImageUpload $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UploadLaunchpadImage($launchpadId, $requestBody), $fetch); + } + + /** + * Deletes an image associated with a launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $imageUse An image use for an image uploaded to Bitly + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadImageUpload|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteLaunchpadImageByImageUseForbiddenException + * @throws Exception\DeleteLaunchpadImageByImageUseNotFoundException + * @throws Exception\DeleteLaunchpadImageByImageUseInternalServerErrorException + * @throws Exception\DeleteLaunchpadImageByImageUseServiceUnavailableException + */ + public function deleteLaunchpadImageByImageUse(string $launchpadId, string $imageUse, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteLaunchpadImageByImageUse($launchpadId, $imageUse), $fetch); + } + + /** + * this endpoint is authenticated so that only the launchpad admin can see the original image. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $imageUse An image use for an image uploaded to Bitly + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header image/*|application/json + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLaunchpadImageByImageUseBadRequestException + * @throws Exception\GetLaunchpadImageByImageUseForbiddenException + * @throws Exception\GetLaunchpadImageByImageUseNotFoundException + * @throws Exception\GetLaunchpadImageByImageUseInternalServerErrorException + * @throws Exception\GetLaunchpadImageByImageUseServiceUnavailableException + */ + public function getLaunchpadImageByImageUse(string $launchpadId, string $imageUse, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetLaunchpadImageByImageUse($launchpadId, $imageUse, $accept), $fetch); + } + + /** + * the public version of an image can be recropped without reuploading the original image. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $imageUse An image use for an image uploaded to Bitly + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadImageUpdate|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateLaunchpadImageByImageUseBadRequestException + * @throws Exception\UpdateLaunchpadImageByImageUseForbiddenException + * @throws Exception\UpdateLaunchpadImageByImageUseNotFoundException + * @throws Exception\UpdateLaunchpadImageByImageUseInternalServerErrorException + * @throws Exception\UpdateLaunchpadImageByImageUseServiceUnavailableException + */ + public function updateLaunchpadImageByImageUse(string $launchpadId, string $imageUse, Model\ImageCrop $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateLaunchpadImageByImageUse($launchpadId, $imageUse, $requestBody), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadPresetTheme[]|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLaunchpadPresetThemesInternalServerErrorException + * @throws Exception\GetLaunchpadPresetThemesServiceUnavailableException + */ + public function getLaunchpadPresetThemes(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLaunchpadPresetThemes(), $fetch); + } + + /** + * Retrieves All Link Launchpads Associated with a Provided Group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Launchpads|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLaunchpadsForGroupForbiddenException + * @throws Exception\GetLaunchpadsForGroupNotFoundException + * @throws Exception\GetLaunchpadsForGroupInternalServerErrorException + * @throws Exception\GetLaunchpadsForGroupServiceUnavailableException + */ + public function getLaunchpadsForGroup(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLaunchpadsForGroup($groupGuid), $fetch); + } + + /** + * Returns the view counts for the specified launchpad rolled up into a single field. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ViewsSummary|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetViewsSummaryForLaunchpadForbiddenException + * @throws Exception\GetViewsSummaryForLaunchpadNotFoundException + * @throws Exception\GetViewsSummaryForLaunchpadInternalServerErrorException + * @throws Exception\GetViewsSummaryForLaunchpadServiceUnavailableException + */ + public function getViewsSummaryForLaunchpad(string $launchpadId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetViewsSummaryForLaunchpad($launchpadId, $queryParameters), $fetch); + } + + /** + * Returns the country origins of view traffic for the specified launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Views|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForLaunchpadByCountriesBadRequestException + * @throws Exception\GetMetricsForLaunchpadByCountriesForbiddenException + * @throws Exception\GetMetricsForLaunchpadByCountriesNotFoundException + * @throws Exception\GetMetricsForLaunchpadByCountriesInternalServerErrorException + * @throws Exception\GetMetricsForLaunchpadByCountriesServiceUnavailableException + */ + public function getMetricsForLaunchpadByCountries(string $launchpadId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForLaunchpadByCountries($launchpadId, $queryParameters), $fetch); + } + + /** + * Returns the city origins of view traffic for the specified Launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CityViewMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForLaunchpadByCitiesBadRequestException + * @throws Exception\GetMetricsForLaunchpadByCitiesPaymentRequiredException + * @throws Exception\GetMetricsForLaunchpadByCitiesForbiddenException + * @throws Exception\GetMetricsForLaunchpadByCitiesNotFoundException + * @throws Exception\GetMetricsForLaunchpadByCitiesInternalServerErrorException + * @throws Exception\GetMetricsForLaunchpadByCitiesServiceUnavailableException + */ + public function getMetricsForLaunchpadByCities(string $launchpadId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForLaunchpadByCities($launchpadId, $queryParameters), $fetch); + } + + /** + * Returns the device types generating view traffic to the specified launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Views|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForLaunchpadByDevicesBadRequestException + * @throws Exception\GetMetricsForLaunchpadByDevicesPaymentRequiredException + * @throws Exception\GetMetricsForLaunchpadByDevicesForbiddenException + * @throws Exception\GetMetricsForLaunchpadByDevicesNotFoundException + * @throws Exception\GetMetricsForLaunchpadByDevicesInternalServerErrorException + * @throws Exception\GetMetricsForLaunchpadByDevicesServiceUnavailableException + */ + public function getMetricsForLaunchpadByDevices(string $launchpadId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForLaunchpadByDevices($launchpadId, $queryParameters), $fetch); + } + + /** + * Returns referrer view counts for the specified launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Views|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForLaunchpadByReferrersBadRequestException + * @throws Exception\GetMetricsForLaunchpadByReferrersForbiddenException + * @throws Exception\GetMetricsForLaunchpadByReferrersNotFoundException + * @throws Exception\GetMetricsForLaunchpadByReferrersInternalServerErrorException + * @throws Exception\GetMetricsForLaunchpadByReferrersServiceUnavailableException + */ + public function getMetricsForLaunchpadByReferrers(string $launchpadId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForLaunchpadByReferrers($launchpadId, $queryParameters), $fetch); + } + + /** + * Returns the view counts for the specified link in an array based on a date. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Views|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetViewsForLaunchpadForbiddenException + * @throws Exception\GetViewsForLaunchpadNotFoundException + * @throws Exception\GetViewsForLaunchpadInternalServerErrorException + * @throws Exception\GetViewsForLaunchpadServiceUnavailableException + */ + public function getViewsForLaunchpad(string $launchpadId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetViewsForLaunchpad($launchpadId, $queryParameters), $fetch); + } + + /** + * Returns the click counts for all active and inactive links that were associated with a launchpad. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var int $page Integer specifying the numbered result at which to start + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\LaunchpadLinkPerformance|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLinkPerformanceForLaunchpadForbiddenException + * @throws Exception\GetLinkPerformanceForLaunchpadNotFoundException + * @throws Exception\GetLinkPerformanceForLaunchpadInternalServerErrorException + * @throws Exception\GetLinkPerformanceForLaunchpadServiceUnavailableException + */ + public function getLinkPerformanceForLaunchpad(string $launchpadId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLinkPerformanceForLaunchpad($launchpadId, $queryParameters), $fetch); + } + + /** + * Gets all active Bitly Sites owned by the provided Group GUID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $search_after token used to search next batch, only use response from API as input value + * @var int $size The quantity of items to be be returned + * @var string $sites_url_param + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlySites|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSitesForGroupBadRequestException + * @throws Exception\GetSitesForGroupForbiddenException + * @throws Exception\GetSitesForGroupInternalServerErrorException + */ + public function getSitesForGroup(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSitesForGroup($groupGuid, $queryParameters), $fetch); + } + + /** + * Update which sites to keep upon tier downgrade. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateSitesToKeepBadRequestException + * @throws Exception\UpdateSitesToKeepForbiddenException + * @throws Exception\UpdateSitesToKeepUnprocessableEntityException + * @throws Exception\UpdateSitesToKeepInternalServerErrorException + */ + public function updateSitesToKeep(string $organizationGuid, Model\KeepSitesRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateSitesToKeep($organizationGuid, $requestBody), $fetch); + } + + /** + * Deletes a button from a given site - does not deactivate. Does not delete link tied to button. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $buttonId A GUID for a Bitly Site button + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteSiteButtonBadRequestException + * @throws Exception\DeleteSiteButtonForbiddenException + * @throws Exception\DeleteSiteButtonNotFoundException + * @throws Exception\DeleteSiteButtonInternalServerErrorException + * @throws Exception\DeleteSiteButtonServiceUnavailableException + */ + public function deleteSiteButton(string $siteId, string $buttonId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteSiteButton($siteId, $buttonId), $fetch); + } + + /** + * Updates a provided button on a provided site. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $buttonId A GUID for a Bitly Site button + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateSiteButtonBadRequestException + * @throws Exception\UpdateSiteButtonForbiddenException + * @throws Exception\UpdateSiteButtonNotFoundException + * @throws Exception\UpdateSiteButtonExpectationFailedException + * @throws Exception\UpdateSiteButtonUnprocessableEntityException + * @throws Exception\UpdateSiteButtonTooManyRequestsException + * @throws Exception\UpdateSiteButtonInternalServerErrorException + */ + public function updateSiteButton(string $siteId, string $buttonId, Model\SiteButtonRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateSiteButton($siteId, $buttonId, $requestBody), $fetch); + } + + /** + * constructs the content blob required to create a YouTube video button. + * + * @param string $launchpadId A GUID for a Bitly Link Launchpad + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\YoutubeVideoRequest|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PrevalidateYouTubeVideoButtonBadRequestException + * @throws Exception\PrevalidateYouTubeVideoButtonForbiddenException + * @throws Exception\PrevalidateYouTubeVideoButtonUnprocessableEntityException + * @throws Exception\PrevalidateYouTubeVideoButtonInternalServerErrorException + */ + public function prevalidateYouTubeVideoButton(string $launchpadId, Model\PrevalidateYouTubeVideoRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PrevalidateYouTubeVideoButton($launchpadId, $requestBody), $fetch); + } + + /** + * Retrieves all content that are children of a block (i.e carousel or grid). + * + * @param string $siteId A GUID for a Bitly Site + * @param string $containerId A GUID for a Bitly Container + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteBlock[]|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetChildrenForBlockForbiddenException + * @throws Exception\GetChildrenForBlockNotFoundException + * @throws Exception\GetChildrenForBlockInternalServerErrorException + * @throws Exception\GetChildrenForBlockServiceUnavailableException + */ + public function getChildrenForBlock(string $siteId, string $containerId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetChildrenForBlock($siteId, $containerId), $fetch); + } + + /** + * Updates the order of all blocks within the container. Container can be root, social, or a grid/carousel GUID. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $containerId A GUID for a Bitly Container + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ReorderBlocksByContainerBadRequestException + * @throws Exception\ReorderBlocksByContainerForbiddenException + * @throws Exception\ReorderBlocksByContainerNotFoundException + * @throws Exception\ReorderBlocksByContainerUnprocessableEntityException + * @throws Exception\ReorderBlocksByContainerInternalServerErrorException + * @throws Exception\ReorderBlocksByContainerServiceUnavailableException + */ + public function reorderBlocksByContainer(string $siteId, string $containerId, Model\BlockOrders $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ReorderBlocksByContainer($siteId, $containerId, $requestBody), $fetch); + } + + /** + * Retrieves all templates optionally sorted by a Site's onboarding category. + * + * @param array $queryParameters { + * + * @var string $category A filter option for template categories + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Template[]|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTemplatesForbiddenException + * @throws Exception\GetTemplatesNotFoundException + * @throws Exception\GetTemplatesInternalServerErrorException + * @throws Exception\GetTemplatesServiceUnavailableException + */ + public function getTemplates(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTemplates($queryParameters), $fetch); + } + + /** + * Applies a template's appearance and optionally sample content to a Bitly Site. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ApplyTemplateForbiddenException + * @throws Exception\ApplyTemplateNotFoundException + * @throws Exception\ApplyTemplateUnprocessableEntityException + * @throws Exception\ApplyTemplateInternalServerErrorException + * @throws Exception\ApplyTemplateServiceUnavailableException + */ + public function applyTemplate(string $siteId, ?Model\ApplyTemplateRequest $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ApplyTemplate($siteId, $requestBody), $fetch); + } + + /** + * Creates a container which contains a set of other content. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteBlock|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateContainerBadRequestException + * @throws Exception\CreateContainerForbiddenException + * @throws Exception\CreateContainerNotFoundException + * @throws Exception\CreateContainerUnprocessableEntityException + * @throws Exception\CreateContainerInternalServerErrorException + * @throws Exception\CreateContainerServiceUnavailableException + */ + public function createContainer(string $siteId, Model\SiteBlockContainerRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateContainer($siteId, $requestBody), $fetch); + } + + /** + * Replaces a production Site with its draft Site if changes are made. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PublishSiteBadRequestException + * @throws Exception\PublishSiteForbiddenException + * @throws Exception\PublishSiteInternalServerErrorException + * @throws Exception\PublishSiteServiceUnavailableException + */ + public function publishSite(string $siteId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PublishSite($siteId), $fetch); + } + + /** + * Returns the country origins of view traffic for the specified Site. + * + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteViewMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForSitesByCountriesBadRequestException + * @throws Exception\GetMetricsForSitesByCountriesForbiddenException + * @throws Exception\GetMetricsForSitesByCountriesNotFoundException + * @throws Exception\GetMetricsForSitesByCountriesInternalServerErrorException + * @throws Exception\GetMetricsForSitesByCountriesServiceUnavailableException + */ + public function getMetricsForSitesByCountries(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForSitesByCountries($siteId, $queryParameters), $fetch); + } + + /** + * Returns the city origins of view traffic for the specified Site. + * + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteCityViewMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForSiteByCitiesBadRequestException + * @throws Exception\GetMetricsForSiteByCitiesPaymentRequiredException + * @throws Exception\GetMetricsForSiteByCitiesForbiddenException + * @throws Exception\GetMetricsForSiteByCitiesNotFoundException + * @throws Exception\GetMetricsForSiteByCitiesInternalServerErrorException + * @throws Exception\GetMetricsForSiteByCitiesServiceUnavailableException + */ + public function getMetricsForSiteByCities(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForSiteByCities($siteId, $queryParameters), $fetch); + } + + /** + * Returns the device types generating view traffic to the specified site. + * + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteViewMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForSiteByDevicesBadRequestException + * @throws Exception\GetMetricsForSiteByDevicesPaymentRequiredException + * @throws Exception\GetMetricsForSiteByDevicesForbiddenException + * @throws Exception\GetMetricsForSiteByDevicesNotFoundException + * @throws Exception\GetMetricsForSiteByDevicesInternalServerErrorException + * @throws Exception\GetMetricsForSiteByDevicesServiceUnavailableException + */ + public function getMetricsForSiteByDevices(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForSiteByDevices($siteId, $queryParameters), $fetch); + } + + /** + * Returns referrer view counts for the specified site. + * + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteViewMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetMetricsForSiteByReferrersBadRequestException + * @throws Exception\GetMetricsForSiteByReferrersForbiddenException + * @throws Exception\GetMetricsForSiteByReferrersNotFoundException + * @throws Exception\GetMetricsForSiteByReferrersInternalServerErrorException + * @throws Exception\GetMetricsForSiteByReferrersServiceUnavailableException + */ + public function getMetricsForSiteByReferrers(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetMetricsForSiteByReferrers($siteId, $queryParameters), $fetch); + } + + /** + * add a user with role to a brand or organization. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\UserInternal|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\AddUserWithRoleBadRequestException + * @throws Exception\AddUserWithRoleForbiddenException + * @throws Exception\AddUserWithRoleUnprocessableEntityException + * @throws Exception\AddUserWithRoleInternalServerErrorException + * @throws Exception\AddUserWithRoleServiceUnavailableException + */ + public function addUserWithRole(Model\UserRole $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\AddUserWithRole($requestBody), $fetch); + } + + /** + * delete a user with role from a brand or organization. + * + * @param string $roleName The role specified for a user + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteUserWithRoleBadRequestException + * @throws Exception\DeleteUserWithRoleForbiddenException + * @throws Exception\DeleteUserWithRoleUnprocessableEntityException + * @throws Exception\DeleteUserWithRoleInternalServerErrorException + * @throws Exception\DeleteUserWithRoleServiceUnavailableException + */ + public function deleteUserWithRole(string $roleName, Model\UserRole $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteUserWithRole($roleName, $requestBody), $fetch); + } + + /** + * delete a user with role for a brand or organization. + * + * @param string $roleName The role specified for a user + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateUserWithRoleBadRequestException + * @throws Exception\UpdateUserWithRoleForbiddenException + * @throws Exception\UpdateUserWithRoleUnprocessableEntityException + * @throws Exception\UpdateUserWithRoleInternalServerErrorException + * @throws Exception\UpdateUserWithRoleServiceUnavailableException + */ + public function updateUserWithRole(string $roleName, Model\UserRole $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateUserWithRole($roleName, $requestBody), $fetch); + } + + /** + * Crawls the web to return the webpages title for a long URL. + * + * @param array $queryParameters { + * + * @var string $url + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\TitleResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetTitleForLongURLForbiddenException + * @throws Exception\GetTitleForLongURLNotFoundException + * @throws Exception\GetTitleForLongURLInternalServerErrorException + * @throws Exception\GetTitleForLongURLServiceUnavailableException + */ + public function getTitleForLongURL(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetTitleForLongURL($queryParameters), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\HandleWebhookForbiddenException + * @throws Exception\HandleWebhookUnprocessableEntityException + * @throws Exception\HandleWebhookInternalServerErrorException + */ + public function handleWebhook(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\HandleWebhook(), $fetch); + } + + /** + * Evaluates an intervention and returns the appropriate promo code. + * + * @param string $intervention the type of intervention (e.g. downgrade, upgrade, etc) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\EvaluateInterventionResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\EvaluateInterventionBadRequestException + * @throws Exception\EvaluateInterventionForbiddenException + * @throws Exception\EvaluateInterventionUnprocessableEntityException + * @throws Exception\EvaluateInterventionInternalServerErrorException + * @throws Exception\EvaluateInterventionServiceUnavailableException + */ + public function evaluateIntervention(string $intervention, Model\EvaluateInterventionRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\EvaluateIntervention($intervention, $requestBody), $fetch); + } + + /** + * Creates an intervention for the org. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Intervention|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateInterventionBadRequestException + * @throws Exception\CreateInterventionForbiddenException + * @throws Exception\CreateInterventionUnprocessableEntityException + * @throws Exception\CreateInterventionInternalServerErrorException + * @throws Exception\CreateInterventionServiceUnavailableException + */ + public function createIntervention(Model\Intervention $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateIntervention($requestBody), $fetch); + } + + /** + * Decides the variant for an entity in a given optimizely experiment. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DecideResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ExperimentDecideBadRequestException + * @throws Exception\ExperimentDecideForbiddenException + * @throws Exception\ExperimentDecideUnprocessableEntityException + * @throws Exception\ExperimentDecideInternalServerErrorException + */ + public function experimentDecide(Model\DecideRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ExperimentDecide($requestBody), $fetch); + } + + /** + * Track captures an Optimizely event on an entity in a given experiment. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ExperimentTrackForbiddenException + * @throws Exception\ExperimentTrackUnprocessableEntityException + * @throws Exception\ExperimentTrackInternalServerErrorException + */ + public function experimentTrack(Model\TrackRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ExperimentTrack($requestBody), $fetch); + } + + /** + * Upload an image for use in a QR code. Specify optional "use" parameter to store image as a default group preference. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ImageUploadResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UploadImageBadRequestException + * @throws Exception\UploadImageForbiddenException + * @throws Exception\UploadImageNotFoundException + * @throws Exception\UploadImageInternalServerErrorException + * @throws Exception\UploadImageServiceUnavailableException + */ + public function uploadImage(Model\ImageUpload $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UploadImage($requestBody), $fetch); + } + + /** + * Fetches the original image associated with the provided image_guid for use when cropping. + * + * @param string $imageGuid A GUID for an image uploaded to Bitly + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header image/*|application/json + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetImageByGUIDBadRequestException + * @throws Exception\GetImageByGUIDForbiddenException + * @throws Exception\GetImageByGUIDNotFoundException + * @throws Exception\GetImageByGUIDInternalServerErrorException + * @throws Exception\GetImageByGUIDServiceUnavailableException + */ + public function getImageByGUID(string $imageGuid, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetImageByGUID($imageGuid, $accept), $fetch); + } + + /** + * the public version of an image can be recropped without reuploading the original image. + * + * @param string $imageGuid A GUID for an image uploaded to Bitly + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PublicImageURL|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateImageBadRequestException + * @throws Exception\UpdateImageForbiddenException + * @throws Exception\UpdateImageNotFoundException + * @throws Exception\UpdateImageInternalServerErrorException + * @throws Exception\UpdateImageServiceUnavailableException + */ + public function updateImage(string $imageGuid, Model\ImageUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateImage($imageGuid, $requestBody), $fetch); + } + + /** + * Gets the QR code with a matching id. + * + * @param string $id The QR code ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeFullResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetQRCodeByIdBadRequestException + * @throws Exception\GetQRCodeByIdForbiddenException + * @throws Exception\GetQRCodeByIdNotFoundException + * @throws Exception\GetQRCodeByIdGoneException + * @throws Exception\GetQRCodeByIdInternalServerErrorException + */ + public function getQRCodeById(string $id, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetQRCodeById($id), $fetch); + } + + /** + * Create a new QR Code and return its metadata. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeMinimal|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateQRCodePublicBadRequestException + * @throws Exception\CreateQRCodePublicPaymentRequiredException + * @throws Exception\CreateQRCodePublicForbiddenException + * @throws Exception\CreateQRCodePublicNotFoundException + * @throws Exception\CreateQRCodePublicTooManyRequestsException + * @throws Exception\CreateQRCodePublicGoneException + * @throws Exception\CreateQRCodePublicInternalServerErrorException + */ + public function createQRCodePublic(Model\PublicCreateQRCodeRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateQRCodePublic($requestBody), $fetch); + } + + /** + * Get the image of a given QR Code. The Accept header controls how this is returned (options are "application/json", "image/svg+xml", and "image/png"). + * If the Accept header is "application/json" the format query parameter will determine the image format inside of the json (which will be base64 encoded and prefixed with its mime type as would be suitable for a HTML image src tag). + * To Return the QR Code image itself, set the Accept header to "image/svg+xml" or "image/png", or remove the Accept header and set the format query parameter to “svg” or “png” (if no format is specified the default will be “svg”). + * + * @param string $qrcodeId The QR Code ID + * @param array $queryParameters { + * + * @var string $format The format type of the image. If there is an image format in the header it takes precedence. + * } + * + * @param array $headerParameters { + * + * @var string $Accept The file format for the QR code's image. If the accept header is application/json the image data will be wrapped in a json object, base64 encoded and prefixed with its mime type as would be suitable for a HTML image src tag. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|image/svg+xml|image/png + * + * @return Model\PublicQRCodeImageResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetQRCodeImagePublicBadRequestException + * @throws Exception\GetQRCodeImagePublicForbiddenException + * @throws Exception\GetQRCodeImagePublicNotFoundException + * @throws Exception\GetQRCodeImagePublicGoneException + * @throws Exception\GetQRCodeImagePublicInternalServerErrorException + */ + public function getQRCodeImagePublic(string $qrcodeId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetQRCodeImagePublic($qrcodeId, $queryParameters, $headerParameters, $accept), $fetch); + } + + /** + * Delete a QR Code that has not been redirected and is not for a custom link. Also deletes the associated link (if applicable). + * + * @param string $qrcodeId The QR Code ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PublicDeleteQRCodeResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteQRCodeBadRequestException + * @throws Exception\DeleteQRCodeForbiddenException + * @throws Exception\DeleteQRCodeNotFoundException + * @throws Exception\DeleteQRCodeGoneException + * @throws Exception\DeleteQRCodeTooManyRequestsException + * @throws Exception\DeleteQRCodeInternalServerErrorException + */ + public function deleteQRCode(string $qrcodeId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteQRCode($qrcodeId), $fetch); + } + + /** + * Gets the QR code with a matching id. + * + * @param string $qrcodeId The QR Code ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeDetails|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetQRCodeByIdPublicBadRequestException + * @throws Exception\GetQRCodeByIdPublicForbiddenException + * @throws Exception\GetQRCodeByIdPublicNotFoundException + * @throws Exception\GetQRCodeByIdPublicGoneException + * @throws Exception\GetQRCodeByIdPublicInternalServerErrorException + */ + public function getQRCodeByIdPublic(string $qrcodeId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetQRCodeByIdPublic($qrcodeId), $fetch); + } + + /** + * Updates the QR code with a matching id and returns it. + * + * @param string $qrcodeId The QR code ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeMinimal|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateQRCodePublicBadRequestException + * @throws Exception\UpdateQRCodePublicForbiddenException + * @throws Exception\UpdateQRCodePublicNotFoundException + * @throws Exception\UpdateQRCodePublicGoneException + * @throws Exception\UpdateQRCodePublicInternalServerErrorException + */ + public function updateQRCodePublic(string $qrcodeId, Model\PublicUpdateQRCodeRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateQRCodePublic($qrcodeId, $requestBody), $fetch); + } + + /** + * Returns the history of redirects for the specified QR Code. A redirect is when the destination URL is changed. + * + * @param string $qrcodeId The QR code ID + * @param array $queryParameters { + * + * @var int $limit limit the amount of results returned + * @var int $offset set the starting index of the result set + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeHistory|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetQRCHistoryBadRequestException + * @throws Exception\GetQRCHistoryForbiddenException + * @throws Exception\GetQRCHistoryTooManyRequestsException + * @throws Exception\GetQRCHistoryInternalServerErrorException + */ + public function getQRCHistory(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetQRCHistory($qrcodeId, $queryParameters), $fetch); + } + + /** + * Retrieves a list of QR codes matching the filter settings. Values are in reverse chronological order. + * The pagination occurs by calling the next link in the pagination response object. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $has_render_customizations Whether or not QRCode has any render customizations (like color or shape changes) + * @var int $size The quantity of items to be be returned + * @var string $search_after token used to search next batch of qr codes, only use response from API as input value + * @var string $query The value that you would like to search + * @var string $hostname_path_query The hostname and/or path you would like to search (case-insensitive). Subdomains included; query params and fragment ignored. + * @var int $created_before Timestamp as an integer unix epoch (seconds only) + * @var int $created_after Timestamp as an integer unix epoch (seconds only) + * @var string $archived Whether or not to include archived resources + * @var array $creating_login Filter by the login of the authenticated user that created the QR Code + * @var array $qrc_type + * @var string $is_gs1 a filter value if the resource is a GS1 QR code + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodesMinimal|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\ListQRMinimalForbiddenException + * @throws Exception\ListQRMinimalTooManyRequestsException + * @throws Exception\ListQRMinimalInternalServerErrorException + */ + public function listQRMinimal(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\ListQRMinimal($groupGuid, $queryParameters), $fetch); + } + + /** + * Returns an array of scan counts for the specified QR code. The array is comprised of scan counts for each time window, where the window is based on the provided unit. + * + * @param string $qrcodeId The QR Code ID + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkScans|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForQRCodeBadRequestException + * @throws Exception\GetScanMetricsForQRCodeForbiddenException + * @throws Exception\GetScanMetricsForQRCodeNotFoundException + * @throws Exception\GetScanMetricsForQRCodeGoneException + * @throws Exception\GetScanMetricsForQRCodeInternalServerErrorException + * @throws Exception\GetScanMetricsForQRCodeServiceUnavailableException + */ + public function getScanMetricsForQRCode(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCode($qrcodeId, $queryParameters), $fetch); + } + + /** + * Returns the scan counts for a QR Code rolled up into a single field for a specified time window, where the window is based on the provided unit. + * + * @param string $qrcodeId The QR Code ID + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkScansSummary|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsSummaryForQRCodeBadRequestException + * @throws Exception\GetScanMetricsSummaryForQRCodeForbiddenException + * @throws Exception\GetScanMetricsSummaryForQRCodeNotFoundException + * @throws Exception\GetScanMetricsSummaryForQRCodeGoneException + * @throws Exception\GetScanMetricsSummaryForQRCodeInternalServerErrorException + * @throws Exception\GetScanMetricsSummaryForQRCodeServiceUnavailableException + */ + public function getScanMetricsSummaryForQRCode(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsSummaryForQRCode($qrcodeId, $queryParameters), $fetch); + } + + /** + * Returns the country origins of scan traffic for the specified QR Code. + * + * @param string $qrcodeId The QR Code ID + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForQRCodeByCountriesBadRequestException + * @throws Exception\GetScanMetricsForQRCodeByCountriesForbiddenException + * @throws Exception\GetScanMetricsForQRCodeByCountriesNotFoundException + * @throws Exception\GetScanMetricsForQRCodeByCountriesGoneException + * @throws Exception\GetScanMetricsForQRCodeByCountriesInternalServerErrorException + * @throws Exception\GetScanMetricsForQRCodeByCountriesServiceUnavailableException + */ + public function getScanMetricsForQRCodeByCountries(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCodeByCountries($qrcodeId, $queryParameters, $accept), $fetch); + } + + /** + * Returns the city origins of scan traffic for the specified QR Code. + * + * @param string $qrcodeId The QR Code ID + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\CityScanMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForQRCodeByCitiesBadRequestException + * @throws Exception\GetScanMetricsForQRCodeByCitiesPaymentRequiredException + * @throws Exception\GetScanMetricsForQRCodeByCitiesForbiddenException + * @throws Exception\GetScanMetricsForQRCodeByCitiesNotFoundException + * @throws Exception\GetScanMetricsForQRCodeByCitiesGoneException + * @throws Exception\GetScanMetricsForQRCodeByCitiesInternalServerErrorException + * @throws Exception\GetScanMetricsForQRCodeByCitiesServiceUnavailableException + */ + public function getScanMetricsForQRCodeByCities(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCodeByCities($qrcodeId, $queryParameters, $accept), $fetch); + } + + /** + * Returns the device os generating scan traffic for the specified QR Code. + * + * @param string $qrcodeId The QR Code ID + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForQRCodeByDevicesOSBadRequestException + * @throws Exception\GetScanMetricsForQRCodeByDevicesOSPaymentRequiredException + * @throws Exception\GetScanMetricsForQRCodeByDevicesOSForbiddenException + * @throws Exception\GetScanMetricsForQRCodeByDevicesOSNotFoundException + * @throws Exception\GetScanMetricsForQRCodeByDevicesOSGoneException + * @throws Exception\GetScanMetricsForQRCodeByDevicesOSInternalServerErrorException + * @throws Exception\GetScanMetricsForQRCodeByDevicesOSServiceUnavailableException + */ + public function getScanMetricsForQRCodeByDevicesOS(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCodeByDevicesOS($qrcodeId, $queryParameters, $accept), $fetch); + } + + /** + * Returns the browsers generating scan traffic to the specified QR Code. + * + * @param string $qrcodeId The QR Code ID + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/json|text/csv + * + * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetScanMetricsForQRCodeByBrowserBadRequestException + * @throws Exception\GetScanMetricsForQRCodeByBrowserPaymentRequiredException + * @throws Exception\GetScanMetricsForQRCodeByBrowserForbiddenException + * @throws Exception\GetScanMetricsForQRCodeByBrowserNotFoundException + * @throws Exception\GetScanMetricsForQRCodeByBrowserGoneException + * @throws Exception\GetScanMetricsForQRCodeByBrowserInternalServerErrorException + * @throws Exception\GetScanMetricsForQRCodeByBrowserServiceUnavailableException + */ + public function getScanMetricsForQRCodeByBrowser(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCodeByBrowser($qrcodeId, $queryParameters, $accept), $fetch); + } + + /** + * Gets the QR code with a matching bitlink id. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeFullResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetQRCodeByBitlinkIdBadRequestException + * @throws Exception\GetQRCodeByBitlinkIdForbiddenException + * @throws Exception\GetQRCodeByBitlinkIdNotFoundException + * @throws Exception\GetQRCodeByBitlinkIdGoneException + * @throws Exception\GetQRCodeByBitlinkIdInternalServerErrorException + */ + public function getQRCodeByBitlinkId(string $bitlinkId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetQRCodeByBitlinkId($bitlinkId), $fetch); + } + + /** + * Get the list of QR code customization options including metadata, id, and thumbnails. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeCustomizationOptionsResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetQRCodeCustomizationOptionsBadRequestException + * @throws Exception\GetQRCodeCustomizationOptionsForbiddenException + * @throws Exception\GetQRCodeCustomizationOptionsNotFoundException + * @throws Exception\GetQRCodeCustomizationOptionsInternalServerErrorException + */ + public function getQRCodeCustomizationOptions(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetQRCodeCustomizationOptions($groupGuid), $fetch); + } + + /** + * Creates a preview of a QR Code with an interstitial link. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeFullResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateQRCodePreviewBadRequestException + * @throws Exception\CreateQRCodePreviewPaymentRequiredException + * @throws Exception\CreateQRCodePreviewForbiddenException + * @throws Exception\CreateQRCodePreviewNotFoundException + * @throws Exception\CreateQRCodePreviewGoneException + * @throws Exception\CreateQRCodePreviewInternalServerErrorException + */ + public function createQRCodePreview(string $groupGuid, Model\PreviewQRCodeRequestV2 $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateQRCodePreview($groupGuid, $requestBody), $fetch); + } + + /** + * Preview changes on an existing QR Code but don't save the result to the DB. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $id The QR code ID + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeFullResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\EditQRCodePreviewBadRequestException + * @throws Exception\EditQRCodePreviewPaymentRequiredException + * @throws Exception\EditQRCodePreviewForbiddenException + * @throws Exception\EditQRCodePreviewNotFoundException + * @throws Exception\EditQRCodePreviewGoneException + * @throws Exception\EditQRCodePreviewInternalServerErrorException + */ + public function editQRCodePreview(string $groupGuid, string $id, Model\PreviewQRCodeRequestV2 $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\EditQRCodePreview($groupGuid, $id, $requestBody), $fetch); + } + + /** + * Upgrade a QR code to a bitlink. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BitlinkBody|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpgradeQRCodeToBitlinkBadRequestException + * @throws Exception\UpgradeQRCodeToBitlinkForbiddenException + * @throws Exception\UpgradeQRCodeToBitlinkNotFoundException + * @throws Exception\UpgradeQRCodeToBitlinkTooManyRequestsException + * @throws Exception\UpgradeQRCodeToBitlinkInternalServerErrorException + */ + public function upgradeQRCodeToBitlink(string $id, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpgradeQRCodeToBitlink($id), $fetch); + } + + /** + * Redirect the destination URL of a QR Code. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\QRCodeMinimal|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\RedirectQRCodeDestinationBadRequestException + * @throws Exception\RedirectQRCodeDestinationForbiddenException + * @throws Exception\RedirectQRCodeDestinationNotFoundException + * @throws Exception\RedirectQRCodeDestinationTooManyRequestsException + * @throws Exception\RedirectQRCodeDestinationInternalServerErrorException + */ + public function redirectQRCodeDestination(string $id, Model\RedirectQRCodeRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\RedirectQRCodeDestination($id, $requestBody), $fetch); + } + + /** + * Returns metrics for the specified qrcode by its override versions. + * + * @param string $qrcodeId The QR Code ID + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetQRCodeOverrideMetricsByVersionBadRequestException + * @throws Exception\GetQRCodeOverrideMetricsByVersionPaymentRequiredException + * @throws Exception\GetQRCodeOverrideMetricsByVersionForbiddenException + * @throws Exception\GetQRCodeOverrideMetricsByVersionNotFoundException + * @throws Exception\GetQRCodeOverrideMetricsByVersionGoneException + * @throws Exception\GetQRCodeOverrideMetricsByVersionInternalServerErrorException + * @throws Exception\GetQRCodeOverrideMetricsByVersionServiceUnavailableException + */ + public function getQRCodeOverrideMetricsByVersion(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetQRCodeOverrideMetricsByVersion($qrcodeId, $queryParameters), $fetch); + } + + /** + * Determines if a group has utilized the Links, QR Codes, the Analytics Dashboard and Link-in-bio products. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ProductUtilizationResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetProductUtilizationBadRequestException + * @throws Exception\GetProductUtilizationForbiddenException + * @throws Exception\GetProductUtilizationInternalServerErrorException + */ + public function getProductUtilization(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetProductUtilization($groupGuid), $fetch); + } + + /** + * Get a group's current feature limit usage, optionally provide limit name(s) for usage on specific limit(s). + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var array $name The limit name you would like usage for + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupFeatureUsage|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupFeatureUsageBadRequestException + * @throws Exception\GetGroupFeatureUsageForbiddenException + * @throws Exception\GetGroupFeatureUsageTooManyRequestsException + * @throws Exception\GetGroupFeatureUsageInternalServerErrorException + */ + public function getGroupFeatureUsage(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupFeatureUsage($groupGuid, $queryParameters), $fetch); + } + + /** + * Get an organization's groups' historical usage totals for specific feature(s) and date range. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param array $queryParameters { + * + * @var array $name The limit name you would like usage for + * @var string $start_date The start date for the date range + * @var string $end_date The end date for the date range + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrganizationHistoricalUsageTotals|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationHistoricalUsageTotalsByGroupBadRequestException + * @throws Exception\GetOrganizationHistoricalUsageTotalsByGroupForbiddenException + * @throws Exception\GetOrganizationHistoricalUsageTotalsByGroupInternalServerErrorException + */ + public function getOrganizationHistoricalUsageTotalsByGroup(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationHistoricalUsageTotalsByGroup($organizationGuid, $queryParameters), $fetch); + } + + /** + * Get a group's historical usage for specific limit(s) and date range. Refer to GET /v4/groups/{group_guid}/feature_usage endpoint response for available limit names. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var array $name The limit name you would like usage for + * @var string $start_date The start date for the date range + * @var string $end_date The end date for the date range + * @var string $unit A unit of time (day, week, or month) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupHistoricalUsage|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupHistoricalUsageBadRequestException + * @throws Exception\GetGroupHistoricalUsageForbiddenException + * @throws Exception\GetGroupHistoricalUsageTooManyRequestsException + * @throws Exception\GetGroupHistoricalUsageInternalServerErrorException + */ + public function getGroupHistoricalUsage(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupHistoricalUsage($groupGuid, $queryParameters), $fetch); + } + + /** + * Deletes an analytics report by ID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $reportId A GUID for a Bitly Analytics Report + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteAnalyticsReportBadRequestException + * @throws Exception\DeleteAnalyticsReportPaymentRequiredException + * @throws Exception\DeleteAnalyticsReportForbiddenException + * @throws Exception\DeleteAnalyticsReportNotFoundException + * @throws Exception\DeleteAnalyticsReportInternalServerErrorException + * @throws Exception\DeleteAnalyticsReportServiceUnavailableException + */ + public function deleteAnalyticsReport(string $groupGuid, string $reportId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteAnalyticsReport($groupGuid, $reportId), $fetch); + } + + /** + * Retrieves an analytics report by ID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $reportId A GUID for a Bitly Analytics Report + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AnalyticsReport|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAnalyticsReportForbiddenException + * @throws Exception\GetAnalyticsReportNotFoundException + * @throws Exception\GetAnalyticsReportInternalServerErrorException + * @throws Exception\GetAnalyticsReportServiceUnavailableException + */ + public function getAnalyticsReport(string $groupGuid, string $reportId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAnalyticsReport($groupGuid, $reportId), $fetch); + } + + /** + * Updates an existing Analytics Report. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $reportId A GUID for a Bitly Analytics Report + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AnalyticsReport|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateAnalyticsReportBadRequestException + * @throws Exception\UpdateAnalyticsReportForbiddenException + * @throws Exception\UpdateAnalyticsReportNotFoundException + * @throws Exception\UpdateAnalyticsReportInternalServerErrorException + * @throws Exception\UpdateAnalyticsReportServiceUnavailableException + */ + public function updateAnalyticsReport(string $groupGuid, string $reportId, Model\UpdateAnalyticsReport $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateAnalyticsReport($groupGuid, $reportId, $requestBody), $fetch); + } + + /** + * Duplicate an analytics report by ID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $reportId A GUID for a Bitly Analytics Report + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AnalyticsReport|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DuplicateAnalyticsReportBadRequestException + * @throws Exception\DuplicateAnalyticsReportForbiddenException + * @throws Exception\DuplicateAnalyticsReportNotFoundException + * @throws Exception\DuplicateAnalyticsReportInternalServerErrorException + * @throws Exception\DuplicateAnalyticsReportServiceUnavailableException + */ + public function duplicateAnalyticsReport(string $groupGuid, string $reportId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DuplicateAnalyticsReport($groupGuid, $reportId), $fetch); + } + + /** + * Retrieves many paginated analytics report by group ID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var int $page Integer specifying the numbered result at which to start + * @var int $size The quantity of items to be be returned + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PaginatedAnalyticsReports|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAnalyticsReportsByGroupPaginatedBadRequestException + * @throws Exception\GetAnalyticsReportsByGroupPaginatedPaymentRequiredException + * @throws Exception\GetAnalyticsReportsByGroupPaginatedForbiddenException + * @throws Exception\GetAnalyticsReportsByGroupPaginatedInternalServerErrorException + * @throws Exception\GetAnalyticsReportsByGroupPaginatedServiceUnavailableException + */ + public function getAnalyticsReportsByGroupPaginated(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAnalyticsReportsByGroupPaginated($groupGuid, $queryParameters), $fetch); + } + + /** + * Creates a new analytics report. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AnalyticsReport|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateAnalyticsReportBadRequestException + * @throws Exception\CreateAnalyticsReportForbiddenException + * @throws Exception\CreateAnalyticsReportNotFoundException + * @throws Exception\CreateAnalyticsReportInternalServerErrorException + * @throws Exception\CreateAnalyticsReportServiceUnavailableException + */ + public function createAnalyticsReport(string $groupGuid, Model\CreateAnalyticsReport $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateAnalyticsReport($groupGuid, $requestBody), $fetch); + } + + /** + * Retrieves all analytics reports by group ID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AnalyticsReports|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAnalyticsReportsListByGroupBadRequestException + * @throws Exception\GetAnalyticsReportsListByGroupPaymentRequiredException + * @throws Exception\GetAnalyticsReportsListByGroupForbiddenException + * @throws Exception\GetAnalyticsReportsListByGroupInternalServerErrorException + * @throws Exception\GetAnalyticsReportsListByGroupServiceUnavailableException + */ + public function getAnalyticsReportsListByGroup(string $groupGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAnalyticsReportsListByGroup($groupGuid), $fetch); + } + + /** + * Creates a default analytics report for a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var bool $is_custom Allows for granular control over default analytics report creation + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AnalyticsReport|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateDefaultAnalyticsReportForGroupBadRequestException + * @throws Exception\CreateDefaultAnalyticsReportForGroupForbiddenException + * @throws Exception\CreateDefaultAnalyticsReportForGroupNotFoundException + * @throws Exception\CreateDefaultAnalyticsReportForGroupInternalServerErrorException + * @throws Exception\CreateDefaultAnalyticsReportForGroupServiceUnavailableException + */ + public function createDefaultAnalyticsReportForGroup(string $groupGuid, ?Model\CreateAnalyticsReport $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateDefaultAnalyticsReportForGroup($groupGuid, $requestBody, $queryParameters), $fetch); + } + + /** + * Deletes an analytics module and updates the associated modules for the supplied report ID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $reportId A GUID for a Bitly Analytics Report + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteAnalyticsModuleByReportPaymentRequiredException + * @throws Exception\DeleteAnalyticsModuleByReportForbiddenException + * @throws Exception\DeleteAnalyticsModuleByReportNotFoundException + * @throws Exception\DeleteAnalyticsModuleByReportInternalServerErrorException + */ + public function deleteAnalyticsModuleByReport(string $groupGuid, string $moduleGuid, string $reportId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteAnalyticsModuleByReport($groupGuid, $moduleGuid, $reportId), $fetch); + } + + /** + * Deletes an analytics module by ID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteAnalyticsModulePaymentRequiredException + * @throws Exception\DeleteAnalyticsModuleForbiddenException + * @throws Exception\DeleteAnalyticsModuleNotFoundException + * @throws Exception\DeleteAnalyticsModuleInternalServerErrorException + */ + public function deleteAnalyticsModule(string $groupGuid, string $moduleGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteAnalyticsModule($groupGuid, $moduleGuid), $fetch); + } + + /** + * Retrieves an analytics module by ID. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Module|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAnalyticsModuleForbiddenException + * @throws Exception\GetAnalyticsModuleNotFoundException + * @throws Exception\GetAnalyticsModuleInternalServerErrorException + * @throws Exception\GetAnalyticsModuleServiceUnavailableException + */ + public function getAnalyticsModule(string $groupGuid, string $moduleGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAnalyticsModule($groupGuid, $moduleGuid), $fetch); + } + + /** + * Updates an existing Analytics Module. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Module|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\UpdateAnalyticsModuleBadRequestException + * @throws Exception\UpdateAnalyticsModuleForbiddenException + * @throws Exception\UpdateAnalyticsModuleNotFoundException + * @throws Exception\UpdateAnalyticsModuleInternalServerErrorException + * @throws Exception\UpdateAnalyticsModuleServiceUnavailableException + */ + public function updateAnalyticsModule(string $groupGuid, string $moduleGuid, Model\UpdateAnalyticsModule $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\UpdateAnalyticsModule($groupGuid, $moduleGuid, $requestBody), $fetch); + } + + /** + * Creates a new analytics module. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Module|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateAnalyticsModuleBadRequestException + * @throws Exception\CreateAnalyticsModuleForbiddenException + * @throws Exception\CreateAnalyticsModuleNotFoundException + * @throws Exception\CreateAnalyticsModuleInternalServerErrorException + * @throws Exception\CreateAnalyticsModuleServiceUnavailableException + */ + public function createAnalyticsModule(string $groupGuid, Model\CreateAnalyticsModule $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateAnalyticsModule($groupGuid, $requestBody), $fetch); + } + + /** + * Retrieves an organization's analytics usage. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupAnalyticsUsage[]|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAnalyticsUsageBadRequestException + * @throws Exception\GetAnalyticsUsageForbiddenException + * @throws Exception\GetAnalyticsUsageInternalServerErrorException + * @throws Exception\GetAnalyticsUsageServiceUnavailableException + */ + public function getAnalyticsUsage(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAnalyticsUsage($organizationGuid), $fetch); + } + + /** + * Get a daily summary of engagements for a report. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $reportId A GUID for a Bitly Analytics Report + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\EngagementsDailySummary|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLinkEngagementsDailySummaryBadRequestException + * @throws Exception\GetLinkEngagementsDailySummaryForbiddenException + * @throws Exception\GetLinkEngagementsDailySummaryNotFoundException + * @throws Exception\GetLinkEngagementsDailySummaryUnprocessableEntityException + * @throws Exception\GetLinkEngagementsDailySummaryInternalServerErrorException + * @throws Exception\GetLinkEngagementsDailySummaryServiceUnavailableException + */ + public function getLinkEngagementsDailySummary(string $groupGuid, string $reportId, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLinkEngagementsDailySummary($groupGuid, $reportId), $fetch); + } + + /** + * Returns a csv file download or queues an email export job. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $reportId A GUID for a Bitly Analytics Report + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header text/csv|application/json + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLinkEngagementsReportBadRequestException + * @throws Exception\GetLinkEngagementsReportForbiddenException + * @throws Exception\GetLinkEngagementsReportNotFoundException + * @throws Exception\GetLinkEngagementsReportUnprocessableEntityException + * @throws Exception\GetLinkEngagementsReportInternalServerErrorException + * @throws Exception\GetLinkEngagementsReportServiceUnavailableException + */ + public function getLinkEngagementsReport(string $groupGuid, string $reportId, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new Endpoint\GetLinkEngagementsReport($groupGuid, $reportId, $accept), $fetch); + } + + /** + * Get a single day's link-level engagements for a report. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $reportId A GUID for a Bitly Analytics Report + * @param array $queryParameters { + * + * @var string $sort + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\EngagementsDayDrillDown|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLinkEngagementsDayDrillDownBadRequestException + * @throws Exception\GetLinkEngagementsDayDrillDownForbiddenException + * @throws Exception\GetLinkEngagementsDayDrillDownNotFoundException + * @throws Exception\GetLinkEngagementsDayDrillDownUnprocessableEntityException + * @throws Exception\GetLinkEngagementsDayDrillDownInternalServerErrorException + * @throws Exception\GetLinkEngagementsDayDrillDownServiceUnavailableException + */ + public function getLinkEngagementsDayDrillDown(string $groupGuid, string $reportId, string $timestamp, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetLinkEngagementsDayDrillDown($groupGuid, $reportId, $timestamp, $queryParameters), $fetch); + } + + /** + * Retrieves a Canva UserBrand record matching the Canva UserID and BrandID. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PublicCanvaUserBrand|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCanvaUserBrandBadRequestException + * @throws Exception\GetCanvaUserBrandNotFoundException + * @throws Exception\GetCanvaUserBrandInternalServerErrorException + */ + public function getCanvaUserBrand(string $canvaUserID, string $canvaBrandID, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCanvaUserBrand($canvaUserID, $canvaBrandID), $fetch); + } + + /** + * Patches a Canva UserBrand record's Brand GUID, and inferred Org GUID matching the Canva UserID and BrandID. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchCanvaUserBrandBadRequestException + * @throws Exception\PatchCanvaUserBrandNotFoundException + * @throws Exception\PatchCanvaUserBrandInternalServerErrorException + */ + public function patchCanvaUserBrand(string $canvaUserID, string $canvaBrandID, Model\UpdateCanvaUserBrand $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchCanvaUserBrand($canvaUserID, $canvaBrandID, $requestBody), $fetch); + } + + /** + * Deletes all Canva UserBrand record's matching the Bitly user's login. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteCanvaUserBrandsByLoginBadRequestException + * @throws Exception\DeleteCanvaUserBrandsByLoginInternalServerErrorException + */ + public function deleteCanvaUserBrandsByLogin(string $login, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteCanvaUserBrandsByLogin($login), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GetFocusResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetFocusInternalServerErrorException + */ + public function getFocus(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetFocus(), $fetch); + } + + /** + * Store Focus record with Bitly login key to memcache. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CreateFocusResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateFocusBadRequestException + * @throws Exception\CreateFocusForbiddenException + * @throws Exception\CreateFocusInternalServerErrorException + */ + public function createFocus(Model\CreateFocusRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateFocus($requestBody), $fetch); + } + + /** + * Validates an admins request to control a domain, upserts a non-expired org domain verification and sends a verification email to the admin. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrgDomainVerification|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateOrgDomainVerificationEmailBadRequestException + * @throws Exception\CreateOrgDomainVerificationEmailPaymentRequiredException + * @throws Exception\CreateOrgDomainVerificationEmailForbiddenException + * @throws Exception\CreateOrgDomainVerificationEmailInternalServerErrorException + */ + public function createOrgDomainVerificationEmail(Model\CreateOrgDomainVerificationEmailRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateOrgDomainVerificationEmail($requestBody), $fetch); + } + + /** + * This will update the status of a controlled domain for an org and deactivate any other controlled domain for that org that are active. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $domain a web domain + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchOrgControlledDomainBadRequestException + * @throws Exception\PatchOrgControlledDomainPaymentRequiredException + * @throws Exception\PatchOrgControlledDomainForbiddenException + * @throws Exception\PatchOrgControlledDomainUnprocessableEntityException + * @throws Exception\PatchOrgControlledDomainInternalServerErrorException + */ + public function patchOrgControlledDomain(string $organizationGuid, string $domain, Model\PatchOrgControlledDomain $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchOrgControlledDomain($organizationGuid, $domain, $requestBody), $fetch); + } + + /** + * This returns all domains that an org can claim as well as domains that are already controlled by the org. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrgDomainsStatus|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrgDomainsStatusBadRequestException + * @throws Exception\GetOrgDomainsStatusForbiddenException + * @throws Exception\GetOrgDomainsStatusTooManyRequestsException + * @throws Exception\GetOrgDomainsStatusInternalServerErrorException + */ + public function getOrgDomainsStatus(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrgDomainsStatus($organizationGuid), $fetch); + } + + /** + * Fetch all org invitation requests to an Organization. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrgInvitationRequests|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrgInvitationRequestsBadRequestException + * @throws Exception\GetOrgInvitationRequestsForbiddenException + * @throws Exception\GetOrgInvitationRequestsInternalServerErrorException + */ + public function getOrgInvitationRequests(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrgInvitationRequests($organizationGuid), $fetch); + } + + /** + * This will update the status of an org invitation request for a user. Only 'denied' status allowed for this endpoint--approving a request follows the create organization invitation flow. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchOrgInvitationRequestBadRequestException + * @throws Exception\PatchOrgInvitationRequestForbiddenException + * @throws Exception\PatchOrgInvitationRequestUnprocessableEntityException + * @throws Exception\PatchOrgInvitationRequestInternalServerErrorException + */ + public function patchOrgInvitationRequest(string $organizationGuid, Model\PatchOrgInvitationRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchOrgInvitationRequest($organizationGuid, $requestBody), $fetch); + } + + /** + * This will get a list of logins for entities that have preserved_status after a scheduled downgrade. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\RetainedEntitiesAfterDowngrade|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetRetainedEntitiesAfterDowngradeForbiddenException + * @throws Exception\GetRetainedEntitiesAfterDowngradeInternalServerErrorException + */ + public function getRetainedEntitiesAfterDowngrade(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetRetainedEntitiesAfterDowngrade($organizationGuid), $fetch); + } + + /** + * Retrieve a list of users for Organization GUID and optionally query by user's login, display name, or primary email. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param array $queryParameters { + * + * @var int $page Integer specifying the numbered result at which to start + * @var int $size The quantity of items to be be returned + * @var string $query A string used for fuzzy searching user's login, display name, or primary email. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\UserRoleReferences|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\SearchOrgUserRolesBadRequestException + * @throws Exception\SearchOrgUserRolesForbiddenException + * @throws Exception\SearchOrgUserRolesNotFoundException + * @throws Exception\SearchOrgUserRolesInternalServerErrorException + */ + public function searchOrgUserRoles(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\SearchOrgUserRoles($organizationGuid, $queryParameters), $fetch); + } + + /** + * Retrieve a list of SSO users, and optionally query by sso username or login. + * + * @param string $organizationGuid A GUID for a Bitly organization + * @param array $queryParameters { + * + * @var int $page Integer specifying the numbered result at which to start + * @var int $size The quantity of items to be be returned + * @var string $sso_username a string used for searching sso users by sso username + * @var string $login The login for a Bitly user + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\PublicSSOUsersResults|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSSOUsersBadRequestException + * @throws Exception\GetSSOUsersForbiddenException + * @throws Exception\GetSSOUsersInternalServerErrorException + */ + public function getSSOUsers(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetSSOUsers($organizationGuid, $queryParameters), $fetch); + } + + /** + * Creates a valid PayPal billing agreement using a token. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BillingAgreement|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreatePayPalBillingAgreementBadRequestException + * @throws Exception\CreatePayPalBillingAgreementForbiddenException + * @throws Exception\CreatePayPalBillingAgreementUnprocessableEntityException + * @throws Exception\CreatePayPalBillingAgreementInternalServerErrorException + */ + public function createPayPalBillingAgreement(Model\BillingAgreementToken $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreatePayPalBillingAgreement($requestBody), $fetch); + } + + /** + * get all campaigns for a brand. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var int $limit limit the amount of results returned + * @var int $offset set the starting index of the result set + * @var string $query The value that you would like to search + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BrandCampaignsResponse|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAllBrandCampaignsBadRequestException + * @throws Exception\GetAllBrandCampaignsUnprocessableEntityException + * @throws Exception\GetAllBrandCampaignsInternalServerErrorException + */ + public function getAllBrandCampaigns(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAllBrandCampaigns($groupGuid, $queryParameters), $fetch); + } + + /** + * get a single campaigns for a brand. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\BrandCampaign|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetBrandCampaignBadRequestException + * @throws Exception\GetBrandCampaignUnprocessableEntityException + * @throws Exception\GetBrandCampaignInternalServerErrorException + */ + public function getBrandCampaign(string $groupGuid, string $campaignGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetBrandCampaign($groupGuid, $campaignGuid), $fetch); + } + + /** + * delete a bitlink id from a campaign channel. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $channelGuid A GUID for a Bitly Channel + * @param string $bitlink A Bitlink made of the domain and hash + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteChannelBitlinkBadRequestException + * @throws Exception\DeleteChannelBitlinkUnprocessableEntityException + * @throws Exception\DeleteChannelBitlinkInternalServerErrorException + */ + public function deleteChannelBitlink(string $groupGuid, string $campaignGuid, string $channelGuid, string $bitlink, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteChannelBitlink($groupGuid, $campaignGuid, $channelGuid, $bitlink), $fetch); + } + + /** + * add a bitlink id to a campaign channel. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $channelGuid A GUID for a Bitly Channel + * @param string $bitlink A Bitlink made of the domain and hash + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateChannelBitlinkBadRequestException + * @throws Exception\CreateChannelBitlinkUnprocessableEntityException + * @throws Exception\CreateChannelBitlinkInternalServerErrorException + */ + public function createChannelBitlink(string $groupGuid, string $campaignGuid, string $channelGuid, string $bitlink, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateChannelBitlink($groupGuid, $campaignGuid, $channelGuid, $bitlink), $fetch); + } + + /** + * associate an already existing channel to a campaign for a brand guid. + * + * @param string $groupGuid A GUID for a Bitly group + * @param string $campaignGuid A GUID for a Bitly campaign + * @param string $channelGuid A GUID for a Bitly Channel + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\CreateCampaignChannelBadRequestException + * @throws Exception\CreateCampaignChannelUnprocessableEntityException + * @throws Exception\CreateCampaignChannelInternalServerErrorException + */ + public function createCampaignChannel(string $groupGuid, string $campaignGuid, string $channelGuid, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateCampaignChannel($groupGuid, $campaignGuid, $channelGuid), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GeoIP|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetPrivateGeoInternalServerErrorException + */ + public function getPrivateGeo(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetPrivateGeo(), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CurrencyList|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCurrencyListInternalServerErrorException + */ + public function getCurrencyList(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCurrencyList(), $fetch); + } + + /** + * Checks if the given currency is supported. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SupportedCurrency|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetCurrencyInternalServerErrorException + */ + public function getCurrency(string $currency, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetCurrency($currency), $fetch); + } + + /** + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\Regions|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetRegionsListInternalServerErrorException + */ + public function getRegionsList(string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetRegionsList(), $fetch); + } + + /** + * get link clicks over time for all links in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupClicks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupLinkClicksOverTimeBadRequestException + * @throws Exception\GetGroupLinkClicksOverTimeForbiddenException + * @throws Exception\GetGroupLinkClicksOverTimeInternalServerErrorException + * @throws Exception\GetGroupLinkClicksOverTimeServiceUnavailableException + */ + public function getGroupLinkClicksOverTime(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupLinkClicksOverTime($groupGuid, $queryParameters), $fetch); + } + + /** + * get link clicks by device for all links in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupsGroupGuidLinksClicksDevicesGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupLinkClicksByDeviceBadRequestException + * @throws Exception\GetGroupLinkClicksByDeviceForbiddenException + * @throws Exception\GetGroupLinkClicksByDeviceInternalServerErrorException + * @throws Exception\GetGroupLinkClicksByDeviceServiceUnavailableException + */ + public function getGroupLinkClicksByDevice(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupLinkClicksByDevice($groupGuid, $queryParameters), $fetch); + } + + /** + * get link clicks by referrer for all links in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupLinkClicksByReferrerBadRequestException + * @throws Exception\GetGroupLinkClicksByReferrerForbiddenException + * @throws Exception\GetGroupLinkClicksByReferrerInternalServerErrorException + * @throws Exception\GetGroupLinkClicksByReferrerServiceUnavailableException + */ + public function getGroupLinkClicksByReferrer(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupLinkClicksByReferrer($groupGuid, $queryParameters), $fetch); + } + + /** + * get link clicks by country for all links in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupLinkClicksByCountryBadRequestException + * @throws Exception\GetGroupLinkClicksByCountryForbiddenException + * @throws Exception\GetGroupLinkClicksByCountryInternalServerErrorException + * @throws Exception\GetGroupLinkClicksByCountryServiceUnavailableException + */ + public function getGroupLinkClicksByCountry(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupLinkClicksByCountry($groupGuid, $queryParameters), $fetch); + } + + /** + * get link clicks by city for all links in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CityMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupLinkClicksByCityBadRequestException + * @throws Exception\GetGroupLinkClicksByCityForbiddenException + * @throws Exception\GetGroupLinkClicksByCityInternalServerErrorException + * @throws Exception\GetGroupLinkClicksByCityServiceUnavailableException + */ + public function getGroupLinkClicksByCity(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupLinkClicksByCity($groupGuid, $queryParameters), $fetch); + } + + /** + * get top performing links by click for all links in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedLinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupTopLinkClicksBadRequestException + * @throws Exception\GetGroupTopLinkClicksForbiddenException + * @throws Exception\GetGroupTopLinkClicksInternalServerErrorException + * @throws Exception\GetGroupTopLinkClicksServiceUnavailableException + */ + public function getGroupTopLinkClicks(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupTopLinkClicks($groupGuid, $queryParameters), $fetch); + } + + /** + * get code scans over time for all qr codes in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupClicks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupCodeScansOverTimeBadRequestException + * @throws Exception\GetGroupCodeScansOverTimeForbiddenException + * @throws Exception\GetGroupCodeScansOverTimeInternalServerErrorException + * @throws Exception\GetGroupCodeScansOverTimeServiceUnavailableException + */ + public function getGroupCodeScansOverTime(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupCodeScansOverTime($groupGuid, $queryParameters), $fetch); + } + + /** + * get code scans by country for all qr codes in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupCodeScansByCountryBadRequestException + * @throws Exception\GetGroupCodeScansByCountryForbiddenException + * @throws Exception\GetGroupCodeScansByCountryInternalServerErrorException + * @throws Exception\GetGroupCodeScansByCountryServiceUnavailableException + */ + public function getGroupCodeScansByCountry(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupCodeScansByCountry($groupGuid, $queryParameters), $fetch); + } + + /** + * get code scans by city for all qr codes in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CityMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupCodeScansByCityBadRequestException + * @throws Exception\GetGroupCodeScansByCityForbiddenException + * @throws Exception\GetGroupCodeScansByCityInternalServerErrorException + * @throws Exception\GetGroupCodeScansByCityServiceUnavailableException + */ + public function getGroupCodeScansByCity(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupCodeScansByCity($groupGuid, $queryParameters), $fetch); + } + + /** + * get top performing codes by scan for all qr codes in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedLinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupTopCodeScansBadRequestException + * @throws Exception\GetGroupTopCodeScansForbiddenException + * @throws Exception\GetGroupTopCodeScansInternalServerErrorException + * @throws Exception\GetGroupTopCodeScansServiceUnavailableException + */ + public function getGroupTopCodeScans(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupTopCodeScans($groupGuid, $queryParameters), $fetch); + } + + /** + * get link clicks over time for requested links. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateLinkClicksOverTimeBadRequestException + * @throws Exception\GetAggregateLinkClicksOverTimeForbiddenException + * @throws Exception\GetAggregateLinkClicksOverTimeInternalServerErrorException + * @throws Exception\GetAggregateLinkClicksOverTimeServiceUnavailableException + */ + public function getAggregateLinkClicksOverTime(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateLinkClicksOverTime($queryParameters), $fetch); + } + + /** + * get link clicks by device for requested links. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateLinkClicksByDeviceBadRequestException + * @throws Exception\GetAggregateLinkClicksByDeviceForbiddenException + * @throws Exception\GetAggregateLinkClicksByDeviceInternalServerErrorException + * @throws Exception\GetAggregateLinkClicksByDeviceServiceUnavailableException + */ + public function getAggregateLinkClicksByDevice(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateLinkClicksByDevice($queryParameters), $fetch); + } + + /** + * get link clicks by referrer for requested links. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateLinkClicksByReferrerBadRequestException + * @throws Exception\GetAggregateLinkClicksByReferrerForbiddenException + * @throws Exception\GetAggregateLinkClicksByReferrerInternalServerErrorException + * @throws Exception\GetAggregateLinkClicksByReferrerServiceUnavailableException + */ + public function getAggregateLinkClicksByReferrer(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateLinkClicksByReferrer($queryParameters), $fetch); + } + + /** + * get link clicks by country for requested links. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateLinkClicksByCountryBadRequestException + * @throws Exception\GetAggregateLinkClicksByCountryForbiddenException + * @throws Exception\GetAggregateLinkClicksByCountryInternalServerErrorException + * @throws Exception\GetAggregateLinkClicksByCountryServiceUnavailableException + */ + public function getAggregateLinkClicksByCountry(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateLinkClicksByCountry($queryParameters), $fetch); + } + + /** + * get link clicks by city for requested links. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByCitiesFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateLinkClicksByCityBadRequestException + * @throws Exception\GetAggregateLinkClicksByCityForbiddenException + * @throws Exception\GetAggregateLinkClicksByCityInternalServerErrorException + * @throws Exception\GetAggregateLinkClicksByCityServiceUnavailableException + */ + public function getAggregateLinkClicksByCity(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateLinkClicksByCity($queryParameters), $fetch); + } + + /** + * get top performing links by click for requested links. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedLinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateTopLinkClicksBadRequestException + * @throws Exception\GetAggregateTopLinkClicksForbiddenException + * @throws Exception\GetAggregateTopLinkClicksInternalServerErrorException + * @throws Exception\GetAggregateTopLinkClicksServiceUnavailableException + */ + public function getAggregateTopLinkClicks(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateTopLinkClicks($queryParameters), $fetch); + } + + /** + * get code scans over time for requested qr codes. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateCodeScansOverTimeBadRequestException + * @throws Exception\GetAggregateCodeScansOverTimeForbiddenException + * @throws Exception\GetAggregateCodeScansOverTimeInternalServerErrorException + * @throws Exception\GetAggregateCodeScansOverTimeServiceUnavailableException + */ + public function getAggregateCodeScansOverTime(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateCodeScansOverTime($queryParameters), $fetch); + } + + /** + * get code scans by country for requested codes. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateCodeScansByCountryBadRequestException + * @throws Exception\GetAggregateCodeScansByCountryForbiddenException + * @throws Exception\GetAggregateCodeScansByCountryInternalServerErrorException + * @throws Exception\GetAggregateCodeScansByCountryServiceUnavailableException + */ + public function getAggregateCodeScansByCountry(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateCodeScansByCountry($queryParameters), $fetch); + } + + /** + * get code scans by city for requested codes. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByCitiesFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateCodeScansByCityBadRequestException + * @throws Exception\GetAggregateCodeScansByCityForbiddenException + * @throws Exception\GetAggregateCodeScansByCityInternalServerErrorException + * @throws Exception\GetAggregateCodeScansByCityServiceUnavailableException + */ + public function getAggregateCodeScansByCity(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateCodeScansByCity($queryParameters), $fetch); + } + + /** + * get top performing codes by scan for requested codes. + * + * @param array $queryParameters { + * + * @var array $bitlink Filter by given bitlinks + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @param string $groupGuid A GUID for a Bitly group - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @return Model\SortedLinks|\Psr\Http\Message\ResponseInterface|null * - * @return Model\Group|\Psr\Http\Message\ResponseInterface|null + * @throws Exception\GetAggregateTopCodeScansBadRequestException + * @throws Exception\GetAggregateTopCodeScansForbiddenException + * @throws Exception\GetAggregateTopCodeScansInternalServerErrorException + * @throws Exception\GetAggregateTopCodeScansServiceUnavailableException + */ + public function getAggregateTopCodeScans(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetAggregateTopCodeScans($queryParameters), $fetch); + } + + /** + * get page views over time for all pages in a group. * - * @throws Exception\GetGroupForbiddenException - * @throws Exception\GetGroupNotFoundException - * @throws Exception\GetGroupTooManyRequestsException - * @throws Exception\GetGroupInternalServerErrorException - * @throws Exception\GetGroupServiceUnavailableException + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupClicks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupPageViewsOverTimeBadRequestException + * @throws Exception\GetGroupPageViewsOverTimeForbiddenException + * @throws Exception\GetGroupPageViewsOverTimeInternalServerErrorException + * @throws Exception\GetGroupPageViewsOverTimeServiceUnavailableException */ - public function getGroup(string $groupGuid, string $fetch = self::FETCH_OBJECT) + public function getGroupPageViewsOverTime(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroup($groupGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupPageViewsOverTime($groupGuid, $queryParameters), $fetch); } /** - * Updates the details of a group. + * get page views by device for all pages in a group. * - * @param string $groupGuid A GUID for a Bitly group - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { * - * @return Model\Group|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\UpdateGroupBadRequestException - * @throws Exception\UpdateGroupForbiddenException - * @throws Exception\UpdateGroupNotFoundException - * @throws Exception\UpdateGroupUnprocessableEntityException - * @throws Exception\UpdateGroupInternalServerErrorException - * @throws Exception\UpdateGroupServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeviceMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupPageViewsByDeviceBadRequestException + * @throws Exception\GetGroupPageViewsByDeviceForbiddenException + * @throws Exception\GetGroupPageViewsByDeviceInternalServerErrorException + * @throws Exception\GetGroupPageViewsByDeviceServiceUnavailableException */ - public function updateGroup(string $groupGuid, Model\GroupUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + public function getGroupPageViewsByDevice(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\UpdateGroup($groupGuid, $requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupPageViewsByDevice($groupGuid, $queryParameters), $fetch); } /** - * Returns the tags currently used in the specified group. Maximum 1000. + * get page views by referrer for all pages in a group. * - * @param string $groupGuid A GUID for a Bitly group - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { * - * @return Model\Tags|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\GetGroupTagsForbiddenException - * @throws Exception\GetGroupTagsNotFoundException - * @throws Exception\GetGroupTagsTooManyRequestsException - * @throws Exception\GetGroupTagsInternalServerErrorException - * @throws Exception\GetGroupTagsServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupPageViewsByReferrerBadRequestException + * @throws Exception\GetGroupPageViewsByReferrerForbiddenException + * @throws Exception\GetGroupPageViewsByReferrerInternalServerErrorException + * @throws Exception\GetGroupPageViewsByReferrerServiceUnavailableException */ - public function getGroupTags(string $groupGuid, string $fetch = self::FETCH_OBJECT) + public function getGroupPageViewsByReferrer(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupTags($groupGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupPageViewsByReferrer($groupGuid, $queryParameters), $fetch); } /** - * Returns a paginated collection of Bitlinks for a group. The list of custom bitlinks has newest entries first. + * get page views by country for all pages in a group. * * @param string $groupGuid A GUID for a Bitly group * @param array $queryParameters { * - * @var int $size The quantity of items to be be returned - * @var string $search_after token used to search next batch, only use response from API as input value - * @var string $query The value that you would like to search - * @var int $created_before Timestamp as an integer unix epoch (seconds only) - * @var int $created_after Timestamp as an integer unix epoch (seconds only) - * @var string $archived Whether or not to include archived resources - * @var string $deeplinks Filter to only Bitlinks that contain deeplinks - * @var string $domain_deeplinks Filter to only Bitlinks that contain deeplinks configured with a custom domain - * @var string $campaign_guid Filter to return only links for the given campaign GUID, can be provided - * @var string $channel_guid Filter to return only links for the given channel GUID, can be provided, overrides all other parameters - * @var string $custom_bitlink - * @var string $has_qr_codes a filter value if the resource has any QR codes - * @var array $tags Filter by given tags - * @var array $launchpad_ids Filter by launchpad id - * @var array $encoding_login Filter by the login of the authenticated user that created the Bitlink + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Bitlinks|\Psr\Http\Message\ResponseInterface|null + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetBitlinksByGroupForbiddenException - * @throws Exception\GetBitlinksByGroupNotFoundException - * @throws Exception\GetBitlinksByGroupInternalServerErrorException - * @throws Exception\GetBitlinksByGroupServiceUnavailableException + * @throws Exception\GetGroupPageViewsByCountryBadRequestException + * @throws Exception\GetGroupPageViewsByCountryForbiddenException + * @throws Exception\GetGroupPageViewsByCountryInternalServerErrorException + * @throws Exception\GetGroupPageViewsByCountryServiceUnavailableException */ - public function getBitlinksByGroup(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getGroupPageViewsByCountry(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetBitlinksByGroup($groupGuid, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupPageViewsByCountry($groupGuid, $queryParameters), $fetch); } /** - * Bulk update can add or remove tags or archive up to 100 links at a time; The response includes a list of bitlink ids that were updated. + * get page views by city for all pages in a group. * - * @param string $groupGuid A GUID for a Bitly group - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { * - * @return Model\BulkUpdate|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\UpdateBitlinksByGroupBadRequestException - * @throws Exception\UpdateBitlinksByGroupForbiddenException - * @throws Exception\UpdateBitlinksByGroupNotFoundException - * @throws Exception\UpdateBitlinksByGroupUnprocessableEntityException - * @throws Exception\UpdateBitlinksByGroupInternalServerErrorException - * @throws Exception\UpdateBitlinksByGroupServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CityMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupPageViewsByCityBadRequestException + * @throws Exception\GetGroupPageViewsByCityForbiddenException + * @throws Exception\GetGroupPageViewsByCityInternalServerErrorException + * @throws Exception\GetGroupPageViewsByCityServiceUnavailableException */ - public function updateBitlinksByGroup(string $groupGuid, Model\BulkUpdateRequest $requestBody, string $fetch = self::FETCH_OBJECT) + public function getGroupPageViewsByCity(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\UpdateBitlinksByGroup($groupGuid, $requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupPageViewsByCity($groupGuid, $queryParameters), $fetch); } /** - * Returns a list of Bitlinks sorted by group. The list of custom bitlinks has newest entries first. + * get button clicks over time for all pages in a group. * * @param string $groupGuid A GUID for a Bitly group - * @param string $sort The type of sorting that you would like to do * @param array $queryParameters { * * @var string $unit A unit of time - * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time. + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) - * @var int $size The quantity of items to be be returned * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\SortedLinks|\Psr\Http\Message\ResponseInterface|null + * @return Model\GroupClicks|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetSortedBitlinksForbiddenException - * @throws Exception\GetSortedBitlinksNotFoundException - * @throws Exception\GetSortedBitlinksTooManyRequestsException - * @throws Exception\GetSortedBitlinksInternalServerErrorException - * @throws Exception\GetSortedBitlinksServiceUnavailableException + * @throws Exception\GetGroupButtonClicksOverTimeBadRequestException + * @throws Exception\GetGroupButtonClicksOverTimeForbiddenException + * @throws Exception\GetGroupButtonClicksOverTimeInternalServerErrorException + * @throws Exception\GetGroupButtonClicksOverTimeServiceUnavailableException */ - public function getSortedBitlinks(string $groupGuid, string $sort, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getGroupButtonClicksOverTime(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetSortedBitlinks($groupGuid, $sort, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupButtonClicksOverTime($groupGuid, $queryParameters), $fetch); } /** - * Returns preferences for the specified group. + * get button clicks by device for all pages in a group. * - * @param string $groupGuid A GUID for a Bitly group - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { * - * @return Model\GroupPreferences|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\GetGroupPreferencesForbiddenException - * @throws Exception\GetGroupPreferencesNotFoundException - * @throws Exception\GetGroupPreferencesInternalServerErrorException - * @throws Exception\GetGroupPreferencesServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeviceMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupButtonClicksByDeviceBadRequestException + * @throws Exception\GetGroupButtonClicksByDeviceForbiddenException + * @throws Exception\GetGroupButtonClicksByDeviceInternalServerErrorException + * @throws Exception\GetGroupButtonClicksByDeviceServiceUnavailableException */ - public function getGroupPreferences(string $groupGuid, string $fetch = self::FETCH_OBJECT) + public function getGroupButtonClicksByDevice(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupPreferences($groupGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupButtonClicksByDevice($groupGuid, $queryParameters), $fetch); } /** - * Updates preferences for a group. + * get button clicks by country for all pages in a group. * - * @param string $groupGuid A GUID for a Bitly group - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { * - * @return Model\GroupPreferences|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\UpdateGroupPreferencesBadRequestException - * @throws Exception\UpdateGroupPreferencesForbiddenException - * @throws Exception\UpdateGroupPreferencesNotFoundException - * @throws Exception\UpdateGroupPreferencesUnprocessableEntityException - * @throws Exception\UpdateGroupPreferencesTooManyRequestsException - * @throws Exception\UpdateGroupPreferencesInternalServerErrorException - * @throws Exception\UpdateGroupPreferencesServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupButtonClicksByCountryBadRequestException + * @throws Exception\GetGroupButtonClicksByCountryForbiddenException + * @throws Exception\GetGroupButtonClicksByCountryInternalServerErrorException + * @throws Exception\GetGroupButtonClicksByCountryServiceUnavailableException */ - public function updateGroupPreferences(string $groupGuid, Model\GroupPreferences $requestBody, string $fetch = self::FETCH_OBJECT) + public function getGroupButtonClicksByCountry(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\UpdateGroupPreferences($groupGuid, $requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupButtonClicksByCountry($groupGuid, $queryParameters), $fetch); } /** - * Returns all the shorten counts for a group. + * get button clicks by city for all pages in a group. * * @param string $groupGuid A GUID for a Bitly group * @param array $queryParameters { @@ -740,21 +8620,124 @@ public function updateGroupPreferences(string $groupGuid, Model\GroupPreferences * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Metrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\CityMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupShortenCountsForbiddenException - * @throws Exception\GetGroupShortenCountsNotFoundException - * @throws Exception\GetGroupShortenCountsTooManyRequestsException - * @throws Exception\GetGroupShortenCountsInternalServerErrorException - * @throws Exception\GetGroupShortenCountsServiceUnavailableException + * @throws Exception\GetGroupButtonClicksByCityBadRequestException + * @throws Exception\GetGroupButtonClicksByCityForbiddenException + * @throws Exception\GetGroupButtonClicksByCityInternalServerErrorException + * @throws Exception\GetGroupButtonClicksByCityServiceUnavailableException */ - public function getGroupShortenCounts(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getGroupButtonClicksByCity(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupButtonClicksByCity($groupGuid, $queryParameters), $fetch); + } + + /** + * get top performing buttons by click for all pages in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SortedButtons|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupTopButtonClicksBadRequestException + * @throws Exception\GetGroupTopButtonClicksForbiddenException + * @throws Exception\GetGroupTopButtonClicksInternalServerErrorException + * @throws Exception\GetGroupTopButtonClicksServiceUnavailableException + */ + public function getGroupTopButtonClicks(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupTopButtonClicks($groupGuid, $queryParameters), $fetch); + } + + /** + * get pages overview (total button clicks and page views) for all pages in a group. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\GroupsGroupGuidPagesOverviewGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupPagesOverviewBadRequestException + * @throws Exception\GetGroupPagesOverviewForbiddenException + * @throws Exception\GetGroupPagesOverviewInternalServerErrorException + * @throws Exception\GetGroupPagesOverviewServiceUnavailableException + */ + public function getGroupPagesOverview(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupPagesOverview($groupGuid, $queryParameters), $fetch); + } + + /** + * group DBC downloads over time. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DownloadsOverTime|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsOverTimeNotFoundException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsOverTimeServiceUnavailableException + */ + public function getGroupDigitalBusinessCardDownloadsOverTime(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetGroupDigitalBusinessCardDownloadsOverTime($groupGuid, $queryParameters), $fetch); + } + + /** + * group DBC downloads by device. + * + * @param string $groupGuid A GUID for a Bitly group + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\DeviceDownloadMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByDevicesBadRequestException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByDevicesForbiddenException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByDevicesNotFoundException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByDevicesInternalServerErrorException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByDevicesServiceUnavailableException + */ + public function getGroupDigitalBusinessCardDownloadsByDevices(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupShortenCounts($groupGuid, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupDigitalBusinessCardDownloadsByDevices($groupGuid, $queryParameters), $fetch); } /** - * Returns the geographic origins of click traffic by country for the specified group. + * group DBC downloads by country. * * @param string $groupGuid A GUID for a Bitly group * @param array $queryParameters { @@ -765,24 +8748,23 @@ public function getGroupShortenCounts(string $groupGuid, array $queryParameters * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\DownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupMetricsByCountriesForbiddenException - * @throws Exception\GetGroupMetricsByCountriesNotFoundException - * @throws Exception\GetGroupMetricsByCountriesTooManyRequestsException - * @throws Exception\GetGroupMetricsByCountriesInternalServerErrorException - * @throws Exception\GetGroupMetricsByCountriesServiceUnavailableException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCountriesBadRequestException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCountriesForbiddenException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCountriesNotFoundException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCountriesInternalServerErrorException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCountriesServiceUnavailableException */ - public function getGroupMetricsByCountries(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getGroupDigitalBusinessCardDownloadsByCountries(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupMetricsByCountries($groupGuid, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupDigitalBusinessCardDownloadsByCountries($groupGuid, $queryParameters), $fetch); } /** - * Returns the geographic origins of click traffic by city for the specified group. + * group DBC downloads by city. * * @param string $groupGuid A GUID for a Bitly group * @param array $queryParameters { @@ -793,25 +8775,23 @@ public function getGroupMetricsByCountries(string $groupGuid, array $queryParame * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\CityMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\CityDownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupMetricsByCitiesPaymentRequiredException - * @throws Exception\GetGroupMetricsByCitiesForbiddenException - * @throws Exception\GetGroupMetricsByCitiesNotFoundException - * @throws Exception\GetGroupMetricsByCitiesTooManyRequestsException - * @throws Exception\GetGroupMetricsByCitiesInternalServerErrorException - * @throws Exception\GetGroupMetricsByCitiesServiceUnavailableException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCitiesBadRequestException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCitiesForbiddenException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCitiesNotFoundException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCitiesInternalServerErrorException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByCitiesServiceUnavailableException */ - public function getGroupMetricsByCities(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getGroupDigitalBusinessCardDownloadsByCities(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupMetricsByCities($groupGuid, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupDigitalBusinessCardDownloadsByCities($groupGuid, $queryParameters), $fetch); } /** - * Returns the device types generating click traffic to the specified group's links. + * group DBC downloads by Page. * * @param string $groupGuid A GUID for a Bitly group * @param array $queryParameters { @@ -822,25 +8802,23 @@ public function getGroupMetricsByCities(string $groupGuid, array $queryParameter * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\DeviceMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\DownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupMetricsByDevicesPaymentRequiredException - * @throws Exception\GetGroupMetricsByDevicesForbiddenException - * @throws Exception\GetGroupMetricsByDevicesNotFoundException - * @throws Exception\GetGroupMetricsByDevicesTooManyRequestsException - * @throws Exception\GetGroupMetricsByDevicesInternalServerErrorException - * @throws Exception\GetGroupMetricsByDevicesServiceUnavailableException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesBadRequestException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesForbiddenException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesNotFoundException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesInternalServerErrorException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesServiceUnavailableException */ - public function getGroupMetricsByDevices(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getGroupDigitalBusinessCardDownloadsByMicrosites(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupMetricsByDevices($groupGuid, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupDigitalBusinessCardDownloadsByMicrosites($groupGuid, $queryParameters), $fetch); } /** - * Returns metrics by referring networks for the specified group's links. + * group DBC downloads by block. * * @param string $groupGuid A GUID for a Bitly group * @param array $queryParameters { @@ -853,22 +8831,23 @@ public function getGroupMetricsByDevices(string $groupGuid, array $queryParamete * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\DownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupMetricsByReferringNetworksForbiddenException - * @throws Exception\GetGroupMetricsByReferringNetworksNotFoundException - * @throws Exception\GetGroupMetricsByReferringNetworksInternalServerErrorException - * @throws Exception\GetGroupMetricsByReferringNetworksServiceUnavailableException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByBlocksBadRequestException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByBlocksForbiddenException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByBlocksNotFoundException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByBlocksInternalServerErrorException + * @throws Exception\GetGroupDigitalBusinessCardDownloadsByBlocksServiceUnavailableException */ - public function getGroupMetricsByReferringNetworks(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getGroupDigitalBusinessCardDownloadsByBlocks(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupMetricsByReferringNetworks($groupGuid, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetGroupDigitalBusinessCardDownloadsByBlocks($groupGuid, $queryParameters), $fetch); } /** - * Returns metrics by referrer for the specified group's links. + * site DBC downloads over time. * - * @param string $groupGuid A GUID for a Bitly group + * @param string $siteId A GUID for a Bitly Site * @param array $queryParameters { * * @var string $unit A unit of time @@ -877,892 +8856,1021 @@ public function getGroupMetricsByReferringNetworks(string $groupGuid, array $que * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ClickMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\DownloadsOverTime|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupMetricsByReferrerForbiddenException - * @throws Exception\GetGroupMetricsByReferrerNotFoundException - * @throws Exception\GetGroupMetricsByReferrerTooManyRequestsException - * @throws Exception\GetGroupMetricsByReferrerInternalServerErrorException - * @throws Exception\GetGroupMetricsByReferrerServiceUnavailableException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsOverTimeNotFoundException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsOverTimeServiceUnavailableException */ - public function getGroupMetricsByReferrer(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getSiteDigitalBusinessCardDownloadsOverTime(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupMetricsByReferrer($groupGuid, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteDigitalBusinessCardDownloadsOverTime($siteId, $queryParameters), $fetch); } /** - * get number of clicks on bitlinks in a group. + * site DBC downloads by device. * - * @param string $groupGuid A GUID for a Bitly group + * @param string $siteId A GUID for a Bitly Site * @param array $queryParameters { * * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GroupClicks|\Psr\Http\Message\ResponseInterface|null + * @return Model\DeviceDownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupClicksBadRequestException - * @throws Exception\GetGroupClicksPaymentRequiredException - * @throws Exception\GetGroupClicksForbiddenException - * @throws Exception\GetGroupClicksTooManyRequestsException - * @throws Exception\GetGroupClicksInternalServerErrorException - * @throws Exception\GetGroupClicksServiceUnavailableException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByDevicesBadRequestException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByDevicesForbiddenException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByDevicesNotFoundException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByDevicesInternalServerErrorException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByDevicesServiceUnavailableException */ - public function getGroupClicks(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getSiteDigitalBusinessCardDownloadsByDevices(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupClicks($groupGuid, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteDigitalBusinessCardDownloadsByDevices($siteId, $queryParameters), $fetch); } /** + * site DBC downloads by country. + * + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } + * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Organizations|\Psr\Http\Message\ResponseInterface|null + * @return Model\DownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetOrganizationsForbiddenException - * @throws Exception\GetOrganizationsNotFoundException - * @throws Exception\GetOrganizationsInternalServerErrorException - * @throws Exception\GetOrganizationsServiceUnavailableException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCountriesBadRequestException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCountriesForbiddenException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCountriesNotFoundException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCountriesInternalServerErrorException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCountriesServiceUnavailableException */ - public function getOrganizations(string $fetch = self::FETCH_OBJECT) + public function getSiteDigitalBusinessCardDownloadsByCountries(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetOrganizations(), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteDigitalBusinessCardDownloadsByCountries($siteId, $queryParameters), $fetch); } /** - * Retrive details for the specified organization. + * site DBC downloads by city. * - * @param string $organizationGuid A GUID for a Bitly organization - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { * - * @return Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\GetOrganizationForbiddenException - * @throws Exception\GetOrganizationNotFoundException - * @throws Exception\GetOrganizationInternalServerErrorException - * @throws Exception\GetOrganizationServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\CityDownloadMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCitiesBadRequestException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCitiesForbiddenException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCitiesNotFoundException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCitiesInternalServerErrorException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByCitiesServiceUnavailableException */ - public function getOrganization(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + public function getSiteDigitalBusinessCardDownloadsByCities(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetOrganization($organizationGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteDigitalBusinessCardDownloadsByCities($siteId, $queryParameters), $fetch); } /** - * Returns the shorten counts for a specific organization over a specified time period. + * site DBC downloads by block. * - * @param string $organizationGuid A GUID for a Bitly organization - * @param array $queryParameters { + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { * * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Metrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\DownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetOrganizationShortenCountsForbiddenException - * @throws Exception\GetOrganizationShortenCountsNotFoundException - * @throws Exception\GetOrganizationShortenCountsInternalServerErrorException - * @throws Exception\GetOrganizationShortenCountsServiceUnavailableException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByBlocksBadRequestException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByBlocksForbiddenException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByBlocksNotFoundException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByBlocksInternalServerErrorException + * @throws Exception\GetSiteDigitalBusinessCardDownloadsByBlocksServiceUnavailableException */ - public function getOrganizationShortenCounts(string $organizationGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getSiteDigitalBusinessCardDownloadsByBlocks(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetOrganizationShortenCounts($organizationGuid, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteDigitalBusinessCardDownloadsByBlocks($siteId, $queryParameters), $fetch); } /** - * Returns the shorten counts for a specific organization by group for the current month. + * a DBC's downloads over time. * - * @param string $organizationGuid A GUID for a Bitly organization - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $siteId A GUID for a Bitly Site + * @param string $blockId A GUID for a Bitly Site Block + * @param array $queryParameters { * - * @return Model\Metrics|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\GetOrganizationShortenCountsByGroupForbiddenException - * @throws Exception\GetOrganizationShortenCountsByGroupNotFoundException - * @throws Exception\GetOrganizationShortenCountsByGroupInternalServerErrorException - * @throws Exception\GetOrganizationShortenCountsByGroupServiceUnavailableException - */ - public function getOrganizationShortenCountsByGroup(string $organizationGuid, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new Endpoint\GetOrganizationShortenCountsByGroup($organizationGuid), $fetch); - } - - /** * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\User|\Psr\Http\Message\ResponseInterface|null + * @return Model\DownloadsOverTime|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetUserForbiddenException - * @throws Exception\GetUserNotFoundException - * @throws Exception\GetUserInternalServerErrorException - * @throws Exception\GetUserServiceUnavailableException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsOverTimeNotFoundException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsOverTimeServiceUnavailableException */ - public function getUser(string $fetch = self::FETCH_OBJECT) + public function getBlockDigitalBusinessCardDownloadsOverTime(string $siteId, string $blockId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetUser(), $fetch); + return $this->executeEndpoint(new Endpoint\GetBlockDigitalBusinessCardDownloadsOverTime($siteId, $blockId, $queryParameters), $fetch); } /** - * Update fields in the user. + * a DBC's downloads by device. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $blockId A GUID for a Bitly Site Block + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\User|\Psr\Http\Message\ResponseInterface|null + * @return Model\DeviceDownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\UpdateUserBadRequestException - * @throws Exception\UpdateUserForbiddenException - * @throws Exception\UpdateUserNotFoundException - * @throws Exception\UpdateUserUnprocessableEntityException - * @throws Exception\UpdateUserInternalServerErrorException - * @throws Exception\UpdateUserServiceUnavailableException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByDevicesBadRequestException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByDevicesForbiddenException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByDevicesNotFoundException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByDevicesInternalServerErrorException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByDevicesServiceUnavailableException */ - public function updateUser(Model\UserUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + public function getBlockDigitalBusinessCardDownloadsByDevices(string $siteId, string $blockId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\UpdateUser($requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetBlockDigitalBusinessCardDownloadsByDevices($siteId, $blockId, $queryParameters), $fetch); } /** - * Returns the campaigns for the current authenticated user. + * a DBC's downloads by country. * - * @param array $queryParameters { + * @param string $siteId A GUID for a Bitly Site + * @param string $blockId A GUID for a Bitly Site Block + * @param array $queryParameters { * - * @var string $group_guid A GUID for a Bitly group + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Campaigns|\Psr\Http\Message\ResponseInterface|null + * @return Model\DownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetCampaignsBadRequestException - * @throws Exception\GetCampaignsPaymentRequiredException - * @throws Exception\GetCampaignsForbiddenException - * @throws Exception\GetCampaignsNotFoundException - * @throws Exception\GetCampaignsInternalServerErrorException - * @throws Exception\GetCampaignsBadGatewayException - * @throws Exception\GetCampaignsServiceUnavailableException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCountriesBadRequestException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCountriesForbiddenException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCountriesNotFoundException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCountriesInternalServerErrorException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCountriesServiceUnavailableException */ - public function getCampaigns(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getBlockDigitalBusinessCardDownloadsByCountries(string $siteId, string $blockId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetCampaigns($queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetBlockDigitalBusinessCardDownloadsByCountries($siteId, $blockId, $queryParameters), $fetch); } /** - * Creates a new campaign. + * a DBC's downloads by city. + * + * @param string $siteId A GUID for a Bitly Site + * @param string $blockId A GUID for a Bitly Site Block + * @param array $queryParameters { + * + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Campaign|\Psr\Http\Message\ResponseInterface|null + * @return Model\CityDownloadMetrics|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\CreateCampaignBadRequestException - * @throws Exception\CreateCampaignPaymentRequiredException - * @throws Exception\CreateCampaignForbiddenException - * @throws Exception\CreateCampaignNotFoundException - * @throws Exception\CreateCampaignUnprocessableEntityException - * @throws Exception\CreateCampaignTooManyRequestsException - * @throws Exception\CreateCampaignInternalServerErrorException - * @throws Exception\CreateCampaignServiceUnavailableException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCitiesBadRequestException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCitiesForbiddenException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCitiesNotFoundException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCitiesInternalServerErrorException + * @throws Exception\GetBlockDigitalBusinessCardDownloadsByCitiesServiceUnavailableException */ - public function createCampaign(Model\CampaignModify $requestBody, string $fetch = self::FETCH_OBJECT) + public function getBlockDigitalBusinessCardDownloadsByCities(string $siteId, string $blockId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\CreateCampaign($requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetBlockDigitalBusinessCardDownloadsByCities($siteId, $blockId, $queryParameters), $fetch); } /** - * Returns details for a campaign. + * Returns the click counts for all active and inactive links that were associated with a site. * - * @param string $campaignGuid A GUID for a Bitly campaign - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { * - * @return Model\Campaign|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var int $page Integer specifying the numbered result at which to start + * } * - * @throws Exception\GetCampaignPaymentRequiredException - * @throws Exception\GetCampaignForbiddenException - * @throws Exception\GetCampaignNotFoundException - * @throws Exception\GetCampaignTooManyRequestsException - * @throws Exception\GetCampaignInternalServerErrorException - * @throws Exception\GetCampaignServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteLinkPerformance|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetLinkPerformanceForSiteForbiddenException + * @throws Exception\GetLinkPerformanceForSiteNotFoundException + * @throws Exception\GetLinkPerformanceForSiteInternalServerErrorException + * @throws Exception\GetLinkPerformanceForSiteServiceUnavailableException */ - public function getCampaign(string $campaignGuid, string $fetch = self::FETCH_OBJECT) + public function getLinkPerformanceForSite(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetCampaign($campaignGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetLinkPerformanceForSite($siteId, $queryParameters), $fetch); } /** - * Updates a campaign's details. + * Returns the view counts for the specified link in an array based on a date. * - * @param string $campaignGuid A GUID for a Bitly campaign - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { * - * @return Model\Campaign|\Psr\Http\Message\ResponseInterface|null + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * } * - * @throws Exception\UpdateCampaignBadRequestException - * @throws Exception\UpdateCampaignPaymentRequiredException - * @throws Exception\UpdateCampaignForbiddenException - * @throws Exception\UpdateCampaignNotFoundException - * @throws Exception\UpdateCampaignUnprocessableEntityException - * @throws Exception\UpdateCampaignTooManyRequestsException - * @throws Exception\UpdateCampaignInternalServerErrorException - * @throws Exception\UpdateCampaignServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\SiteViewMetrics|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetViewsForSiteForbiddenException + * @throws Exception\GetViewsForSiteNotFoundException + * @throws Exception\GetViewsForSiteInternalServerErrorException + * @throws Exception\GetViewsForSiteServiceUnavailableException */ - public function updateCampaign(string $campaignGuid, Model\CampaignModify $requestBody, string $fetch = self::FETCH_OBJECT) + public function getViewsForSite(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\UpdateCampaign($campaignGuid, $requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetViewsForSite($siteId, $queryParameters), $fetch); } /** - * Returns the channels available to a user. + * Returns the view counts for the specified site rolled up into a single field. * - * @param array $queryParameters { + * @param string $siteId A GUID for a Bitly Site + * @param array $queryParameters { * - * @var string $group_guid A GUID for a Bitly group - * @var string $campaign_guid A GUID for a Bitly campaign + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var int $size The quantity of items to be be returned + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Channels|\Psr\Http\Message\ResponseInterface|null + * @return Model\SiteViewsSummary|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetChannelsPaymentRequiredException - * @throws Exception\GetChannelsForbiddenException - * @throws Exception\GetChannelsNotFoundException - * @throws Exception\GetChannelsInternalServerErrorException - * @throws Exception\GetChannelsServiceUnavailableException + * @throws Exception\GetViewsSummaryForSiteForbiddenException + * @throws Exception\GetViewsSummaryForSiteNotFoundException + * @throws Exception\GetViewsSummaryForSiteInternalServerErrorException + * @throws Exception\GetViewsSummaryForSiteServiceUnavailableException */ - public function getChannels(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getViewsSummaryForSite(string $siteId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetChannels($queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetViewsSummaryForSite($siteId, $queryParameters), $fetch); } /** - * Creates a new channel. + * Takes a previously uploaded image and attaches it to a site. * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Channel|\Psr\Http\Message\ResponseInterface|null + * @return Model\ImageUploadResponse|\Psr\Http\Message\ResponseInterface|null + */ + public function createSiteImage(string $siteId, Model\SiteImageUpload $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\CreateSiteImage($siteId, $requestBody), $fetch); + } + + /** + * Deletes a redirect for a site. * - * @throws Exception\CreateChannelBadRequestException - * @throws Exception\CreateChannelPaymentRequiredException - * @throws Exception\CreateChannelForbiddenException - * @throws Exception\CreateChannelNotFoundException - * @throws Exception\CreateChannelUnprocessableEntityException - * @throws Exception\CreateChannelTooManyRequestsException - * @throws Exception\CreateChannelInternalServerErrorException - * @throws Exception\CreateChannelServiceUnavailableException + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null */ - public function createChannel(Model\ChannelModify $requestBody, string $fetch = self::FETCH_OBJECT) + public function deleteSiteRedirect(string $siteId, string $domain, string $keyword, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\CreateChannel($requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\DeleteSiteRedirect($siteId, $domain, $keyword), $fetch); } /** - * Returns a channel's details. + * Updates the appearance of a Bitly Site. * - * @param string $channelGuid A GUID for a Bitly Channel - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $siteId A GUID for a Bitly Site + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Channel|\Psr\Http\Message\ResponseInterface|null + * @return \Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetChannelPaymentRequiredException - * @throws Exception\GetChannelForbiddenException - * @throws Exception\GetChannelNotFoundException - * @throws Exception\GetChannelTooManyRequestsException - * @throws Exception\GetChannelInternalServerErrorException - * @throws Exception\GetChannelServiceUnavailableException + * @throws Exception\UpdateSiteAppearanceBadRequestException + * @throws Exception\UpdateSiteAppearanceForbiddenException + * @throws Exception\UpdateSiteAppearanceNotFoundException + * @throws Exception\UpdateSiteAppearanceInternalServerErrorException + * @throws Exception\UpdateSiteAppearanceServiceUnavailableException */ - public function getChannel(string $channelGuid, string $fetch = self::FETCH_OBJECT) + public function updateSiteAppearance(string $siteId, Model\BitlySiteAppearance $requestBody, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetChannel($channelGuid), $fetch); + return $this->executeEndpoint(new Endpoint\UpdateSiteAppearance($siteId, $requestBody), $fetch); } /** - * Updates an existing channel. + * Creates a content of given type on the provided Site ID. * - * @param string $channelGuid A GUID for a Bitly Channel + * @param string $siteId A GUID for a Bitly Site + * @param string $contentType Type of microsite content * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Channel|\Psr\Http\Message\ResponseInterface|null + * @return Model\SiteBlock|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\UpdateChannelBadRequestException - * @throws Exception\UpdateChannelPaymentRequiredException - * @throws Exception\UpdateChannelForbiddenException - * @throws Exception\UpdateChannelNotFoundException - * @throws Exception\UpdateChannelUnprocessableEntityException - * @throws Exception\UpdateChannelTooManyRequestsException - * @throws Exception\UpdateChannelInternalServerErrorException - * @throws Exception\UpdateChannelServiceUnavailableException + * @throws Exception\CreateSiteContentBadRequestException + * @throws Exception\CreateSiteContentForbiddenException + * @throws Exception\CreateSiteContentNotFoundException + * @throws Exception\CreateSiteContentInternalServerErrorException + * @throws Exception\CreateSiteContentServiceUnavailableException */ - public function updateChannel(string $channelGuid, Model\ChannelModify $requestBody, string $fetch = self::FETCH_OBJECT) + public function createSiteContent(string $siteId, string $contentType, Model\SiteContentRequest $requestBody, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\UpdateChannel($channelGuid, $requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\CreateSiteContent($siteId, $contentType, $requestBody), $fetch); } /** - * Retrieve the details for the provided OAuth App client ID. + * get sites overview (total button clicks and page views) for requested bitly page. * - * @param string $clientId The client ID of an OAuth app - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\OAuthApp|\Psr\Http\Message\ResponseInterface|null + * @var array $site Filter by given Bitly Site guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\GetOAuthAppForbiddenException - * @throws Exception\GetOAuthAppNotFoundException - * @throws Exception\GetOAuthAppInternalServerErrorException - * @throws Exception\GetOAuthAppServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateSitesOverviewGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateSitesOverviewBadRequestException + * @throws Exception\GetAggregateSitesOverviewForbiddenException + * @throws Exception\GetAggregateSitesOverviewInternalServerErrorException + * @throws Exception\GetAggregateSitesOverviewServiceUnavailableException */ - public function getOAuthApp(string $clientId, string $fetch = self::FETCH_OBJECT) + public function getAggregateSitesOverview(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetOAuthApp($clientId), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateSitesOverview($queryParameters), $fetch); } /** + * get site views over time for requested sites. + * + * @param array $queryParameters { + * + * @var array $site Filter by given Bitly Site guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\BSDsResponse|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetBSDsBadRequestException - * @throws Exception\GetBSDsForbiddenException - * @throws Exception\GetBSDsInternalServerErrorException - * @throws Exception\GetBSDsServiceUnavailableException + * @throws Exception\GetAggregateSiteViewsOverTimeBadRequestException + * @throws Exception\GetAggregateSiteViewsOverTimeForbiddenException + * @throws Exception\GetAggregateSiteViewsOverTimeInternalServerErrorException + * @throws Exception\GetAggregateSiteViewsOverTimeServiceUnavailableException */ - public function getBSDs(string $fetch = self::FETCH_OBJECT) + public function getAggregateSiteViewsOverTime(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetBSDs(), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateSiteViewsOverTime($queryParameters), $fetch); } /** - * Fetch all webhooks available for an Organization. + * get site views by device for requested sites. * - * @param string $organizationGuid A GUID for a Bitly organization - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\Webhooks|\Psr\Http\Message\ResponseInterface|null + * @var array $site Filter by given Bitly Site guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\GetWebhooksPaymentRequiredException - * @throws Exception\GetWebhooksForbiddenException - * @throws Exception\GetWebhooksNotFoundException - * @throws Exception\GetWebhooksTooManyRequestsException - * @throws Exception\GetWebhooksInternalServerErrorException - * @throws Exception\GetWebhooksServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateSiteViewsByDeviceBadRequestException + * @throws Exception\GetAggregateSiteViewsByDeviceForbiddenException + * @throws Exception\GetAggregateSiteViewsByDeviceInternalServerErrorException + * @throws Exception\GetAggregateSiteViewsByDeviceServiceUnavailableException */ - public function getWebhooks(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + public function getAggregateSiteViewsByDevice(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetWebhooks($organizationGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateSiteViewsByDevice($queryParameters), $fetch); } /** - * Creates a webhook. + * get site views by referrer for requested sites. + * + * @param array $queryParameters { + * + * @var array $site Filter by given Bitly Site guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\Webhook|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\CreateWebhookBadRequestException - * @throws Exception\CreateWebhookPaymentRequiredException - * @throws Exception\CreateWebhookForbiddenException - * @throws Exception\CreateWebhookNotFoundException - * @throws Exception\CreateWebhookUnprocessableEntityException - * @throws Exception\CreateWebhookTooManyRequestsException - * @throws Exception\CreateWebhookInternalServerErrorException - * @throws Exception\CreateWebhookServiceUnavailableException + * @throws Exception\GetAggregateSiteViewsByReferrerBadRequestException + * @throws Exception\GetAggregateSiteViewsByReferrerForbiddenException + * @throws Exception\GetAggregateSiteViewsByReferrerInternalServerErrorException + * @throws Exception\GetAggregateSiteViewsByReferrerServiceUnavailableException */ - public function createWebhook(Model\WebhookCreate $requestBody, string $fetch = self::FETCH_OBJECT) + public function getAggregateSiteViewsByReferrer(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\CreateWebhook($requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateSiteViewsByReferrer($queryParameters), $fetch); } /** - * Deletes a webhook. + * get site views by country for requested sites. * - * @param string $webhookGuid A GUID for a Bitly webhook - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return \Psr\Http\Message\ResponseInterface|null + * @var array $site Filter by given Bitly Site guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\DeleteWebhookBadRequestException - * @throws Exception\DeleteWebhookPaymentRequiredException - * @throws Exception\DeleteWebhookForbiddenException - * @throws Exception\DeleteWebhookNotFoundException - * @throws Exception\DeleteWebhookInternalServerErrorException - * @throws Exception\DeleteWebhookServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateSiteViewsByCountryBadRequestException + * @throws Exception\GetAggregateSiteViewsByCountryForbiddenException + * @throws Exception\GetAggregateSiteViewsByCountryInternalServerErrorException + * @throws Exception\GetAggregateSiteViewsByCountryServiceUnavailableException */ - public function deleteWebhook(string $webhookGuid, string $fetch = self::FETCH_OBJECT) + public function getAggregateSiteViewsByCountry(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\DeleteWebhook($webhookGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateSiteViewsByCountry($queryParameters), $fetch); } /** - * Returns a webhook. + * get site views by city for requested sites. * - * @param string $webhookGuid A GUID for a Bitly webhook - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\Webhook|\Psr\Http\Message\ResponseInterface|null + * @var array $site Filter by given Bitly Site guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\GetWebhookBadRequestException - * @throws Exception\GetWebhookPaymentRequiredException - * @throws Exception\GetWebhookForbiddenException - * @throws Exception\GetWebhookNotFoundException - * @throws Exception\GetWebhookTooManyRequestsException - * @throws Exception\GetWebhookInternalServerErrorException - * @throws Exception\GetWebhookServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByCitiesFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateSiteViewsByCityBadRequestException + * @throws Exception\GetAggregateSiteViewsByCityForbiddenException + * @throws Exception\GetAggregateSiteViewsByCityInternalServerErrorException + * @throws Exception\GetAggregateSiteViewsByCityServiceUnavailableException */ - public function getWebhook(string $webhookGuid, string $fetch = self::FETCH_OBJECT) + public function getAggregateSiteViewsByCity(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetWebhook($webhookGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateSiteViewsByCity($queryParameters), $fetch); } /** - * Update a webhook. + * get page views over time for requested pages. * - * @param string $webhookGuid A GUID for a Bitly webhook - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\Webhook|\Psr\Http\Message\ResponseInterface|null + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\UpdateWebhookBadRequestException - * @throws Exception\UpdateWebhookPaymentRequiredException - * @throws Exception\UpdateWebhookForbiddenException - * @throws Exception\UpdateWebhookNotFoundException - * @throws Exception\UpdateWebhookUnprocessableEntityException - * @throws Exception\UpdateWebhookTooManyRequestsException - * @throws Exception\UpdateWebhookInternalServerErrorException - * @throws Exception\UpdateWebhookServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregatePageViewsOverTimeBadRequestException + * @throws Exception\GetAggregatePageViewsOverTimeForbiddenException + * @throws Exception\GetAggregatePageViewsOverTimeInternalServerErrorException + * @throws Exception\GetAggregatePageViewsOverTimeServiceUnavailableException */ - public function updateWebhook(string $webhookGuid, Model\WebhookUpdate $requestBody, string $fetch = self::FETCH_OBJECT) + public function getAggregatePageViewsOverTime(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\UpdateWebhook($webhookGuid, $requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregatePageViewsOverTime($queryParameters), $fetch); } /** - * Sends ping event to test webhook configuration. + * get page views by device for requested pages. * - * @param string $webhookGuid A GUID for a Bitly webhook - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\Webhook|\Psr\Http\Message\ResponseInterface|null + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\VerifyWebhookBadRequestException - * @throws Exception\VerifyWebhookPaymentRequiredException - * @throws Exception\VerifyWebhookForbiddenException - * @throws Exception\VerifyWebhookNotFoundException - * @throws Exception\VerifyWebhookInternalServerErrorException - * @throws Exception\VerifyWebhookServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregatePageViewsByDeviceBadRequestException + * @throws Exception\GetAggregatePageViewsByDeviceForbiddenException + * @throws Exception\GetAggregatePageViewsByDeviceInternalServerErrorException + * @throws Exception\GetAggregatePageViewsByDeviceServiceUnavailableException */ - public function verifyWebhook(string $webhookGuid, string $fetch = self::FETCH_OBJECT) + public function getAggregatePageViewsByDevice(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\VerifyWebhook($webhookGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregatePageViewsByDevice($queryParameters), $fetch); } /** - * Returns all plan limits and counts available for an organization. + * get page views by referrer for requested pages. * - * @param string $organizationGuid A GUID for a Bitly organization - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\PlanLimits|\Psr\Http\Message\ResponseInterface|null + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\GetPlanLimitsForbiddenException - * @throws Exception\GetPlanLimitsInternalServerErrorException - * @throws Exception\GetPlanLimitsServiceUnavailableException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregatePageViewsByReferrerBadRequestException + * @throws Exception\GetAggregatePageViewsByReferrerForbiddenException + * @throws Exception\GetAggregatePageViewsByReferrerInternalServerErrorException + * @throws Exception\GetAggregatePageViewsByReferrerServiceUnavailableException */ - public function getPlanLimits(string $organizationGuid, string $fetch = self::FETCH_OBJECT) + public function getAggregatePageViewsByReferrer(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetPlanLimits($organizationGuid), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregatePageViewsByReferrer($queryParameters), $fetch); } /** - * Fetch all platform limits and counts available for an organization. + * get page views by country for requested pages. * * @param array $queryParameters { * - * @var string $path The specific path for which information is requested + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\PlatformLimits|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetPlatformLimitsForbiddenException - * @throws Exception\GetPlatformLimitsNotFoundException - * @throws Exception\GetPlatformLimitsInternalServerErrorException - * @throws Exception\GetPlatformLimitsServiceUnavailableException + * @throws Exception\GetAggregatePageViewsByCountryBadRequestException + * @throws Exception\GetAggregatePageViewsByCountryForbiddenException + * @throws Exception\GetAggregatePageViewsByCountryInternalServerErrorException + * @throws Exception\GetAggregatePageViewsByCountryServiceUnavailableException */ - public function getPlatformLimits(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAggregatePageViewsByCountry(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetPlatformLimits($queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregatePageViewsByCountry($queryParameters), $fetch); } /** - * Create a new QR Code and return its metadata. - * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * get page views by city for requested pages. * - * @return Model\QRCodeMinimal|\Psr\Http\Message\ResponseInterface|null + * @param array $queryParameters { * - * @throws Exception\CreateQRCodePublicBadRequestException - * @throws Exception\CreateQRCodePublicPaymentRequiredException - * @throws Exception\CreateQRCodePublicForbiddenException - * @throws Exception\CreateQRCodePublicNotFoundException - * @throws Exception\CreateQRCodePublicTooManyRequestsException - * @throws Exception\CreateQRCodePublicGoneException - * @throws Exception\CreateQRCodePublicInternalServerErrorException + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByCitiesFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregatePageViewsByCityBadRequestException + * @throws Exception\GetAggregatePageViewsByCityForbiddenException + * @throws Exception\GetAggregatePageViewsByCityInternalServerErrorException + * @throws Exception\GetAggregatePageViewsByCityServiceUnavailableException */ - public function createQRCodePublic(Model\PublicCreateQRCodeRequest $requestBody, string $fetch = self::FETCH_OBJECT) + public function getAggregatePageViewsByCity(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\CreateQRCodePublic($requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregatePageViewsByCity($queryParameters), $fetch); } /** - * Get the image of a given QR Code. The Accept header controls how this is returned (options are "application/json", "image/svg+xml", and "image/png"). - * If the Accept header is "application/json" the format query parameter will determine the image format inside of the json (which will be base64 encoded and prefixed with its mime type as would be suitable for a HTML image src tag). - * To Return the QR Code image itself, set the Accept header to "image/svg+xml" or "image/png", or remove the Accept header and set the format query parameter to “svg” or “png” (if no format is specified the default will be “svg”). - * - * @param string $qrcodeId The QR Code ID - * @param array $queryParameters { - * - * @var string $format The format type of the image. If there is an image format in the header it takes precedence. - * } + * get button clicks over time for requested pages. * - * @param array $headerParameters { + * @param array $queryParameters { * - * @var string $Accept The file format for the QR code's image. If the accept header is application/json the image data will be wrapped in a json object, base64 encoded and prefixed with its mime type as would be suitable for a HTML image src tag. + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|image/svg+xml|image/png + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\PublicQRCodeImageResponse|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetQRCodeImagePublicBadRequestException - * @throws Exception\GetQRCodeImagePublicForbiddenException - * @throws Exception\GetQRCodeImagePublicNotFoundException - * @throws Exception\GetQRCodeImagePublicGoneException - * @throws Exception\GetQRCodeImagePublicInternalServerErrorException + * @throws Exception\GetAggregateButtonClicksOverTimeBadRequestException + * @throws Exception\GetAggregateButtonClicksOverTimeForbiddenException + * @throws Exception\GetAggregateButtonClicksOverTimeInternalServerErrorException + * @throws Exception\GetAggregateButtonClicksOverTimeServiceUnavailableException */ - public function getQRCodeImagePublic(string $qrcodeId, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getAggregateButtonClicksOverTime(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetQRCodeImagePublic($qrcodeId, $queryParameters, $headerParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateButtonClicksOverTime($queryParameters), $fetch); } /** - * Delete a QR Code that has not been redirected and is not for a custom link. Also deletes the associated link (if applicable). + * get button clicks by device for requested pages. * - * @param string $qrcodeId The QR Code ID - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\PublicDeleteQRCodeResponse|\Psr\Http\Message\ResponseInterface|null + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\DeleteQRCodeBadRequestException - * @throws Exception\DeleteQRCodeForbiddenException - * @throws Exception\DeleteQRCodeNotFoundException - * @throws Exception\DeleteQRCodeGoneException - * @throws Exception\DeleteQRCodeTooManyRequestsException - * @throws Exception\DeleteQRCodeInternalServerErrorException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateButtonClicksByDeviceBadRequestException + * @throws Exception\GetAggregateButtonClicksByDeviceForbiddenException + * @throws Exception\GetAggregateButtonClicksByDeviceInternalServerErrorException + * @throws Exception\GetAggregateButtonClicksByDeviceServiceUnavailableException */ - public function deleteQRCode(string $qrcodeId, string $fetch = self::FETCH_OBJECT) + public function getAggregateButtonClicksByDevice(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\DeleteQRCode($qrcodeId), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateButtonClicksByDevice($queryParameters), $fetch); } /** - * Gets the QR code with a matching id. + * get button clicks by country for requested pages. * - * @param string $qrcodeId The QR Code ID - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\QRCodeDetails|\Psr\Http\Message\ResponseInterface|null + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\GetQRCodeByIdPublicBadRequestException - * @throws Exception\GetQRCodeByIdPublicForbiddenException - * @throws Exception\GetQRCodeByIdPublicNotFoundException - * @throws Exception\GetQRCodeByIdPublicGoneException - * @throws Exception\GetQRCodeByIdPublicInternalServerErrorException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateButtonClicksByCountryBadRequestException + * @throws Exception\GetAggregateButtonClicksByCountryForbiddenException + * @throws Exception\GetAggregateButtonClicksByCountryInternalServerErrorException + * @throws Exception\GetAggregateButtonClicksByCountryServiceUnavailableException */ - public function getQRCodeByIdPublic(string $qrcodeId, string $fetch = self::FETCH_OBJECT) + public function getAggregateButtonClicksByCountry(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetQRCodeByIdPublic($qrcodeId), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateButtonClicksByCountry($queryParameters), $fetch); } /** - * Updates the QR code with a matching id and returns it. + * get button clicks by city for requested pages. * - * @param string $qrcodeId The QR code ID - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return Model\QRCodeMinimal|\Psr\Http\Message\ResponseInterface|null + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * - * @throws Exception\UpdateQRCodePublicBadRequestException - * @throws Exception\UpdateQRCodePublicForbiddenException - * @throws Exception\UpdateQRCodePublicNotFoundException - * @throws Exception\UpdateQRCodePublicGoneException - * @throws Exception\UpdateQRCodePublicInternalServerErrorException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\AggregateClicksForBitlinksByCitiesFacet|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetAggregateButtonClicksByCityBadRequestException + * @throws Exception\GetAggregateButtonClicksByCityForbiddenException + * @throws Exception\GetAggregateButtonClicksByCityInternalServerErrorException + * @throws Exception\GetAggregateButtonClicksByCityServiceUnavailableException */ - public function updateQRCodePublic(string $qrcodeId, Model\PublicUpdateQRCodeRequest $requestBody, string $fetch = self::FETCH_OBJECT) + public function getAggregateButtonClicksByCity(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\UpdateQRCodePublic($qrcodeId, $requestBody), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateButtonClicksByCity($queryParameters), $fetch); } /** - * Retrieves a list of QR codes matching the filter settings. Values are in reverse chronological order. - * The pagination occurs by calling the next link in the pagination response object. + * get top performing buttons by click for requested pages. * - * @param string $groupGuid A GUID for a Bitly group - * @param array $queryParameters { + * @param array $queryParameters { * - * @var string $has_render_customizations Whether or not QRCode has any render customizations (like color or shape changes) - * @var int $size The quantity of items to be be returned - * @var string $search_after token used to search next batch of qr codes, only use response from API as input value - * @var string $query The value that you would like to search - * @var int $created_before Timestamp as an integer unix epoch (seconds only) - * @var int $created_after Timestamp as an integer unix epoch (seconds only) - * @var string $archived Whether or not to include archived resources - * @var array $creating_login Filter by the login of the authenticated user that created the QR Code - * @var array $qrc_type - * @var string $is_gs1 a filter value if the resource is a GS1 QR code + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $brand_guid + * @var string $report_guid * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\QRCodesMinimal|\Psr\Http\Message\ResponseInterface|null + * @return Model\SortedButtons|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\ListQRMinimalForbiddenException - * @throws Exception\ListQRMinimalTooManyRequestsException - * @throws Exception\ListQRMinimalInternalServerErrorException + * @throws Exception\GetAggregateTopButtonClicksBadRequestException + * @throws Exception\GetAggregateTopButtonClicksForbiddenException + * @throws Exception\GetAggregateTopButtonClicksInternalServerErrorException + * @throws Exception\GetAggregateTopButtonClicksServiceUnavailableException */ - public function listQRMinimal(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAggregateTopButtonClicks(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\ListQRMinimal($groupGuid, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateTopButtonClicks($queryParameters), $fetch); } /** - * Returns an array of scan counts for the specified QR code. The array is comprised of scan counts for each time window, where the window is based on the provided unit. + * get digital business card downloads over time for requested pages. * - * @param string $qrcodeId The QR Code ID - * @param array $queryParameters { + * @param array $queryParameters { * + * @var array $launchpad Filter by given launchpad (Bitly Page) guids * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\BitlinkScans|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetScanMetricsForQRCodeBadRequestException - * @throws Exception\GetScanMetricsForQRCodeForbiddenException - * @throws Exception\GetScanMetricsForQRCodeNotFoundException - * @throws Exception\GetScanMetricsForQRCodeGoneException - * @throws Exception\GetScanMetricsForQRCodeInternalServerErrorException - * @throws Exception\GetScanMetricsForQRCodeServiceUnavailableException + * @throws Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeServiceUnavailableException */ - public function getScanMetricsForQRCode(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAggregateDigitalBusinessCardDownloadsOverTime(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCode($qrcodeId, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregateDigitalBusinessCardDownloadsOverTime($queryParameters), $fetch); } /** - * Returns the scan counts for a QR Code rolled up into a single field for a specified time window, where the window is based on the provided unit. + * get button clicks over time for requested pages. * - * @param string $qrcodeId The QR Code ID - * @param array $queryParameters { + * @param array $queryParameters { * + * @var array $site Filter by given Bitly Site guids * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\BitlinkScansSummary|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetScanMetricsSummaryForQRCodeBadRequestException - * @throws Exception\GetScanMetricsSummaryForQRCodeForbiddenException - * @throws Exception\GetScanMetricsSummaryForQRCodeNotFoundException - * @throws Exception\GetScanMetricsSummaryForQRCodeGoneException - * @throws Exception\GetScanMetricsSummaryForQRCodeInternalServerErrorException - * @throws Exception\GetScanMetricsSummaryForQRCodeServiceUnavailableException + * @throws Exception\GetSiteClicksOverTimeBadRequestException + * @throws Exception\GetSiteClicksOverTimeForbiddenException + * @throws Exception\GetSiteClicksOverTimeInternalServerErrorException + * @throws Exception\GetSiteClicksOverTimeServiceUnavailableException */ - public function getScanMetricsSummaryForQRCode(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getSiteClicksOverTime(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetScanMetricsSummaryForQRCode($qrcodeId, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteClicksOverTime($queryParameters), $fetch); } /** - * Returns the country origins of scan traffic for the specified QR Code. + * get button clicks by device for requested pages. * - * @param string $qrcodeId The QR Code ID - * @param array $queryParameters { + * @param array $queryParameters { * + * @var array $site Filter by given Bitly Site guids * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time - * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetScanMetricsForQRCodeByCountriesBadRequestException - * @throws Exception\GetScanMetricsForQRCodeByCountriesForbiddenException - * @throws Exception\GetScanMetricsForQRCodeByCountriesNotFoundException - * @throws Exception\GetScanMetricsForQRCodeByCountriesGoneException - * @throws Exception\GetScanMetricsForQRCodeByCountriesInternalServerErrorException - * @throws Exception\GetScanMetricsForQRCodeByCountriesServiceUnavailableException + * @throws Exception\GetSiteClicksByCitiesBadRequestException + * @throws Exception\GetSiteClicksByCitiesForbiddenException + * @throws Exception\GetSiteClicksByCitiesInternalServerErrorException + * @throws Exception\GetSiteClicksByCitiesServiceUnavailableException */ - public function getScanMetricsForQRCodeByCountries(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getSiteClicksByCities(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCodeByCountries($qrcodeId, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteClicksByCities($queryParameters), $fetch); } /** - * Returns the city origins of scan traffic for the specified QR Code. + * get top performing buttons by click for requested pages. * - * @param string $qrcodeId The QR Code ID - * @param array $queryParameters { + * @param array $queryParameters { * + * @var array $site Filter by given Bitly Site guids * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time - * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $brand_guid + * @var string $report_guid * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\CityScanMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\SortedButtons|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetScanMetricsForQRCodeByCitiesBadRequestException - * @throws Exception\GetScanMetricsForQRCodeByCitiesPaymentRequiredException - * @throws Exception\GetScanMetricsForQRCodeByCitiesForbiddenException - * @throws Exception\GetScanMetricsForQRCodeByCitiesNotFoundException - * @throws Exception\GetScanMetricsForQRCodeByCitiesGoneException - * @throws Exception\GetScanMetricsForQRCodeByCitiesInternalServerErrorException - * @throws Exception\GetScanMetricsForQRCodeByCitiesServiceUnavailableException + * @throws Exception\GetSiteFilteredTopPageButtonsBadRequestException + * @throws Exception\GetSiteFilteredTopPageButtonsForbiddenException + * @throws Exception\GetSiteFilteredTopPageButtonsInternalServerErrorException + * @throws Exception\GetSiteFilteredTopPageButtonsServiceUnavailableException */ - public function getScanMetricsForQRCodeByCities(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getSiteFilteredTopPageButtons(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCodeByCities($qrcodeId, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteFilteredTopPageButtons($queryParameters), $fetch); } /** - * Returns the device os generating scan traffic for the specified QR Code. + * get button clicks by country for requested pages. * - * @param string $qrcodeId The QR Code ID - * @param array $queryParameters { + * @param array $queryParameters { * + * @var array $site Filter by given Bitly Site guids * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time - * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinksByFacet|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetScanMetricsForQRCodeByDevicesOSBadRequestException - * @throws Exception\GetScanMetricsForQRCodeByDevicesOSPaymentRequiredException - * @throws Exception\GetScanMetricsForQRCodeByDevicesOSForbiddenException - * @throws Exception\GetScanMetricsForQRCodeByDevicesOSNotFoundException - * @throws Exception\GetScanMetricsForQRCodeByDevicesOSGoneException - * @throws Exception\GetScanMetricsForQRCodeByDevicesOSInternalServerErrorException - * @throws Exception\GetScanMetricsForQRCodeByDevicesOSServiceUnavailableException + * @throws Exception\GetSiteClicksByCountriesBadRequestException + * @throws Exception\GetSiteClicksByCountriesForbiddenException + * @throws Exception\GetSiteClicksByCountriesInternalServerErrorException + * @throws Exception\GetSiteClicksByCountriesServiceUnavailableException */ - public function getScanMetricsForQRCodeByDevicesOS(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getSiteClicksByCountries(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCodeByDevicesOS($qrcodeId, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteClicksByCountries($queryParameters), $fetch); } /** - * Returns the browsers generating scan traffic to the specified QR Code. + * get button clicks by city for requested pages. * - * @param string $qrcodeId The QR Code ID - * @param array $queryParameters { + * @param array $queryParameters { * + * @var array $site Filter by given Bitly Site guids * @var string $unit A unit of time * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time - * @var int $size The quantity of items to be be returned * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * @param array $accept Accept content header application/json|text/csv + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\ScanMetrics|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinksByCitiesFacet|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetScanMetricsForQRCodeByBrowserBadRequestException - * @throws Exception\GetScanMetricsForQRCodeByBrowserPaymentRequiredException - * @throws Exception\GetScanMetricsForQRCodeByBrowserForbiddenException - * @throws Exception\GetScanMetricsForQRCodeByBrowserNotFoundException - * @throws Exception\GetScanMetricsForQRCodeByBrowserGoneException - * @throws Exception\GetScanMetricsForQRCodeByBrowserInternalServerErrorException - * @throws Exception\GetScanMetricsForQRCodeByBrowserServiceUnavailableException + * @throws Exception\GetSiteClicksByDevicesBadRequestException + * @throws Exception\GetSiteClicksByDevicesForbiddenException + * @throws Exception\GetSiteClicksByDevicesInternalServerErrorException + * @throws Exception\GetSiteClicksByDevicesServiceUnavailableException */ - public function getScanMetricsForQRCodeByBrowser(string $qrcodeId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function getSiteClicksByDevices(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetScanMetricsForQRCodeByBrowser($qrcodeId, $queryParameters, $accept), $fetch); + return $this->executeEndpoint(new Endpoint\GetSiteClicksByDevices($queryParameters), $fetch); } /** - * Get a group's current feature limit usage, optionally provide limit name(s) for usage on specific limit(s). + * get button clicks over time for requested pages. * - * @param string $groupGuid A GUID for a Bitly group - * @param array $queryParameters { + * @param array $queryParameters { * - * @var array $name The limit name you would like usage for - * } + * @var array $site Filter by given Bitly Site guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GroupFeatureUsage|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateClicksForBitlinks|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupFeatureUsageBadRequestException - * @throws Exception\GetGroupFeatureUsageForbiddenException - * @throws Exception\GetGroupFeatureUsageTooManyRequestsException - * @throws Exception\GetGroupFeatureUsageInternalServerErrorException + * @throws Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeServiceUnavailableException */ - public function getGroupFeatureUsage(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getLaunchpadDigitalBusinessCardDownloadsOverTime(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupFeatureUsage($groupGuid, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetLaunchpadDigitalBusinessCardDownloadsOverTime($queryParameters), $fetch); } /** - * Get a group's historical usage for specific limit(s) and date range. Refer to GET /v4/groups/{group_guid}/feature_usage endpoint response for available limit names. + * get pages overview (total button clicks and page views) for requested pages. * - * @param string $groupGuid A GUID for a Bitly group - * @param array $queryParameters { + * @param array $queryParameters { * - * @var array $name The limit name you would like usage for - * @var string $start_date The start date for the date range - * @var string $end_date The end date for the date range - * @var string $unit A unit of time (day, week, or month) + * @var array $launchpad Filter by given launchpad (Bitly Page) guids + * @var string $unit A unit of time + * @var int $units An integer representing the time units to query data for. pass -1 to return all units of time + * @var string $unit_reference An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time. Timestamp values should be url encoded (i.e. replace '+' with '%2B' and ':' with '%3A'; 2022-02-02T15:53:02+0000 becomes 2022-02-02T15%3A53%3A02%2B0000) + * @var string $report_guid * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return Model\GroupHistoricalUsage|\Psr\Http\Message\ResponseInterface|null + * @return Model\AggregateLaunchpadsOverviewGetResponse200|\Psr\Http\Message\ResponseInterface|null * - * @throws Exception\GetGroupHistoricalUsageBadRequestException - * @throws Exception\GetGroupHistoricalUsageForbiddenException - * @throws Exception\GetGroupHistoricalUsageTooManyRequestsException - * @throws Exception\GetGroupHistoricalUsageInternalServerErrorException + * @throws Exception\GetAggregatePagesOverviewBadRequestException + * @throws Exception\GetAggregatePagesOverviewForbiddenException + * @throws Exception\GetAggregatePagesOverviewInternalServerErrorException + * @throws Exception\GetAggregatePagesOverviewServiceUnavailableException */ - public function getGroupHistoricalUsage(string $groupGuid, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAggregatePagesOverview(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new Endpoint\GetGroupHistoricalUsage($groupGuid, $queryParameters), $fetch); + return $this->executeEndpoint(new Endpoint\GetAggregatePagesOverview($queryParameters), $fetch); + } + + /** + * Provides a way to do dynamic translation at runtime. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return \Psr\Http\Message\ResponseInterface|null + */ + public function getDynamicTranslation(Model\TranslationRequest $requestBody, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetDynamicTranslation($requestBody), $fetch); } public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) diff --git a/lib/Endpoint/AddEmailToUser.php b/lib/Endpoint/AddEmailToUser.php new file mode 100644 index 0000000..667ecca --- /dev/null +++ b/lib/Endpoint/AddEmailToUser.php @@ -0,0 +1,86 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/emails'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\EmailBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\EmailBody|null + * + * @throws \Bitly\Exception\AddEmailToUserBadRequestException + * @throws \Bitly\Exception\AddEmailToUserForbiddenException + * @throws \Bitly\Exception\AddEmailToUserNotFoundException + * @throws \Bitly\Exception\AddEmailToUserUnprocessableEntityException + * @throws \Bitly\Exception\AddEmailToUserInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\EmailBody', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddEmailToUserBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddEmailToUserForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddEmailToUserNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddEmailToUserUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddEmailToUserInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/AddUserWithRole.php b/lib/Endpoint/AddUserWithRole.php new file mode 100644 index 0000000..475ec50 --- /dev/null +++ b/lib/Endpoint/AddUserWithRole.php @@ -0,0 +1,89 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/roles'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UserRole) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\UserInternal|null + * + * @throws \Bitly\Exception\AddUserWithRoleBadRequestException + * @throws \Bitly\Exception\AddUserWithRoleForbiddenException + * @throws \Bitly\Exception\AddUserWithRoleUnprocessableEntityException + * @throws \Bitly\Exception\AddUserWithRoleInternalServerErrorException + * @throws \Bitly\Exception\AddUserWithRoleServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\UserInternal', 'json'); + } + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddUserWithRoleBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddUserWithRoleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddUserWithRoleUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddUserWithRoleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AddUserWithRoleServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/AiDomainSearch.php b/lib/Endpoint/AiDomainSearch.php new file mode 100644 index 0000000..230cf7a --- /dev/null +++ b/lib/Endpoint/AiDomainSearch.php @@ -0,0 +1,95 @@ +body = $requestBody; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/bsds/ai_search'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BSDAISearchPrompt) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['limit']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('limit', ['int']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BSDSearchResults|null + * + * @throws \Bitly\Exception\AiDomainSearchBadRequestException + * @throws \Bitly\Exception\AiDomainSearchForbiddenException + * @throws \Bitly\Exception\AiDomainSearchInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BSDSearchResults', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AiDomainSearchBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AiDomainSearchForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AiDomainSearchInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/AnnualRenewalReminder.php b/lib/Endpoint/AnnualRenewalReminder.php new file mode 100644 index 0000000..ede0235 --- /dev/null +++ b/lib/Endpoint/AnnualRenewalReminder.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/annual_renewal_reminder'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\AnnualRenewalReminderRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\AnnualRenewalReminderBadRequestException + * @throws \Bitly\Exception\AnnualRenewalReminderUnprocessableEntityException + * @throws \Bitly\Exception\AnnualRenewalReminderInternalServerErrorException + * @throws \Bitly\Exception\AnnualRenewalReminderServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AnnualRenewalReminderBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AnnualRenewalReminderUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AnnualRenewalReminderInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\AnnualRenewalReminderServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ApplyDiscount.php b/lib/Endpoint/ApplyDiscount.php new file mode 100644 index 0000000..fb92296 --- /dev/null +++ b/lib/Endpoint/ApplyDiscount.php @@ -0,0 +1,94 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/apply_discount'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ApplyDiscount) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\ApplyDiscountBadRequestException + * @throws \Bitly\Exception\ApplyDiscountForbiddenException + * @throws \Bitly\Exception\ApplyDiscountNotFoundException + * @throws \Bitly\Exception\ApplyDiscountUnprocessableEntityException + * @throws \Bitly\Exception\ApplyDiscountInternalServerErrorException + * @throws \Bitly\Exception\ApplyDiscountServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyDiscountBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyDiscountForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyDiscountNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyDiscountUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyDiscountInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyDiscountServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ApplyStripeDiscount.php b/lib/Endpoint/ApplyStripeDiscount.php new file mode 100644 index 0000000..4d8a796 --- /dev/null +++ b/lib/Endpoint/ApplyStripeDiscount.php @@ -0,0 +1,94 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/private/stripe/organizations/{organization_guid}/apply_discount'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ApplyDiscount) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\ApplyStripeDiscountBadRequestException + * @throws \Bitly\Exception\ApplyStripeDiscountForbiddenException + * @throws \Bitly\Exception\ApplyStripeDiscountNotFoundException + * @throws \Bitly\Exception\ApplyStripeDiscountUnprocessableEntityException + * @throws \Bitly\Exception\ApplyStripeDiscountInternalServerErrorException + * @throws \Bitly\Exception\ApplyStripeDiscountServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyStripeDiscountBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyStripeDiscountForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyStripeDiscountNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyStripeDiscountUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyStripeDiscountInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyStripeDiscountServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ApplyTemplate.php b/lib/Endpoint/ApplyTemplate.php new file mode 100644 index 0000000..67875e2 --- /dev/null +++ b/lib/Endpoint/ApplyTemplate.php @@ -0,0 +1,90 @@ +site_id = $siteId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/template'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ApplyTemplateRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\ApplyTemplateForbiddenException + * @throws \Bitly\Exception\ApplyTemplateNotFoundException + * @throws \Bitly\Exception\ApplyTemplateUnprocessableEntityException + * @throws \Bitly\Exception\ApplyTemplateInternalServerErrorException + * @throws \Bitly\Exception\ApplyTemplateServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyTemplateForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyTemplateNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyTemplateUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyTemplateInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ApplyTemplateServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/BulkAdd.php b/lib/Endpoint/BulkAdd.php new file mode 100644 index 0000000..12c3685 --- /dev/null +++ b/lib/Endpoint/BulkAdd.php @@ -0,0 +1,93 @@ +campaign_guid = $campaignGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{campaign_guid}'], [$this->campaign_guid], '/campaigns/{campaign_guid}/addURLs'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CampaignsCampaignGuidAddURLsPostBody) { + $bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + foreach ($formParameters as $key => $value) { + $value = is_int($value) ? (string) $value : $value; + $bodyBuilder->addResource($key, $value); + } + + return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BulkAddResponse|null + * + * @throws \Bitly\Exception\BulkAddBadRequestException + * @throws \Bitly\Exception\BulkAddForbiddenException + * @throws \Bitly\Exception\BulkAddNotFoundException + * @throws \Bitly\Exception\BulkAddInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BulkAddResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\BulkAddBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\BulkAddForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\BulkAddNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\BulkAddInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CampaignAddBitlink.php b/lib/Endpoint/CampaignAddBitlink.php new file mode 100644 index 0000000..0e9e7d5 --- /dev/null +++ b/lib/Endpoint/CampaignAddBitlink.php @@ -0,0 +1,98 @@ +campaign_guid = $campaignGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{campaign_guid}'], [$this->campaign_guid], '/campaigns/{campaign_guid}/addURL'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CampaignAddBitlink) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\CampaignAddBitlinkResponse|null + * + * @throws \Bitly\Exception\CampaignAddBitlinkBadRequestException + * @throws \Bitly\Exception\CampaignAddBitlinkPaymentRequiredException + * @throws \Bitly\Exception\CampaignAddBitlinkForbiddenException + * @throws \Bitly\Exception\CampaignAddBitlinkNotFoundException + * @throws \Bitly\Exception\CampaignAddBitlinkUnprocessableEntityException + * @throws \Bitly\Exception\CampaignAddBitlinkInternalServerErrorException + * @throws \Bitly\Exception\CampaignAddBitlinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CampaignAddBitlinkResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CampaignAddBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CampaignAddBitlinkPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CampaignAddBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CampaignAddBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CampaignAddBitlinkUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CampaignAddBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CampaignAddBitlinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CancelPendingDowngrade.php b/lib/Endpoint/CancelPendingDowngrade.php new file mode 100644 index 0000000..c5977df --- /dev/null +++ b/lib/Endpoint/CancelPendingDowngrade.php @@ -0,0 +1,77 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/cancel_pending_downgrade'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\CancelPendingDowngradeNotFoundException + * @throws \Bitly\Exception\CancelPendingDowngradeForbiddenException + * @throws \Bitly\Exception\CancelPendingDowngradeInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CancelPendingDowngradeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CancelPendingDowngradeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CancelPendingDowngradeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CancelPendingDowngradeStripe.php b/lib/Endpoint/CancelPendingDowngradeStripe.php new file mode 100644 index 0000000..5107fc7 --- /dev/null +++ b/lib/Endpoint/CancelPendingDowngradeStripe.php @@ -0,0 +1,77 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/private/stripe/organizations/{organization_guid}/subscriptions/cancel_downgrade'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\CancelPendingDowngradeStripeNotFoundException + * @throws \Bitly\Exception\CancelPendingDowngradeStripeForbiddenException + * @throws \Bitly\Exception\CancelPendingDowngradeStripeInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CancelPendingDowngradeStripeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CancelPendingDowngradeStripeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CancelPendingDowngradeStripeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CaptureEvent.php b/lib/Endpoint/CaptureEvent.php new file mode 100644 index 0000000..ef9589a --- /dev/null +++ b/lib/Endpoint/CaptureEvent.php @@ -0,0 +1,74 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/events'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\Event) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\CaptureEventForbiddenException + * @throws \Bitly\Exception\CaptureEventInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CaptureEventForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CaptureEventInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ChangeUserPassword.php b/lib/Endpoint/ChangeUserPassword.php new file mode 100644 index 0000000..cdf257b --- /dev/null +++ b/lib/Endpoint/ChangeUserPassword.php @@ -0,0 +1,86 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return '/user/password'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UserPasswordChange) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\ChangeUserPasswordBadRequestException + * @throws \Bitly\Exception\ChangeUserPasswordForbiddenException + * @throws \Bitly\Exception\ChangeUserPasswordNotFoundException + * @throws \Bitly\Exception\ChangeUserPasswordUnprocessableEntityException + * @throws \Bitly\Exception\ChangeUserPasswordInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ChangeUserPasswordBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ChangeUserPasswordForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ChangeUserPasswordNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ChangeUserPasswordUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ChangeUserPasswordInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CheckDomainDNS.php b/lib/Endpoint/CheckDomainDNS.php new file mode 100644 index 0000000..8ac2285 --- /dev/null +++ b/lib/Endpoint/CheckDomainDNS.php @@ -0,0 +1,69 @@ +domain = $domain; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{domain}'], [$this->domain], '/domains/{domain}/check_dns'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DomainDNS|null + * + * @throws \Bitly\Exception\CheckDomainDNSInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DomainDNS', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CheckDomainDNSInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CheckShareableReport.php b/lib/Endpoint/CheckShareableReport.php new file mode 100644 index 0000000..e2536a3 --- /dev/null +++ b/lib/Endpoint/CheckShareableReport.php @@ -0,0 +1,98 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/shareable_reports'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['shareable_report']); + $optionsResolver->setRequired(['shareable_report']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('shareable_report', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ShareableReport|null + * + * @throws \Bitly\Exception\CheckShareableReportBadRequestException + * @throws \Bitly\Exception\CheckShareableReportForbiddenException + * @throws \Bitly\Exception\CheckShareableReportNotFoundException + * @throws \Bitly\Exception\CheckShareableReportInternalServerErrorException + * @throws \Bitly\Exception\CheckShareableReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ShareableReport', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CheckShareableReportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CheckShareableReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CheckShareableReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CheckShareableReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CheckShareableReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CloneSite.php b/lib/Endpoint/CloneSite.php new file mode 100644 index 0000000..c2d4782 --- /dev/null +++ b/lib/Endpoint/CloneSite.php @@ -0,0 +1,88 @@ +site_id = $siteId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/clone'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\SiteCloneRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\CloneSiteBadRequestException + * @throws \Bitly\Exception\CloneSitePaymentRequiredException + * @throws \Bitly\Exception\CloneSiteForbiddenException + * @throws \Bitly\Exception\CloneSiteInternalServerErrorException + * @throws \Bitly\Exception\CloneSiteServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CloneSiteBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CloneSitePaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CloneSiteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CloneSiteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CloneSiteServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateAnalyticsModule.php b/lib/Endpoint/CreateAnalyticsModule.php new file mode 100644 index 0000000..49c7ef1 --- /dev/null +++ b/lib/Endpoint/CreateAnalyticsModule.php @@ -0,0 +1,90 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/analytics/groups/{group_guid}/modules'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateAnalyticsModule) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Module|null + * + * @throws \Bitly\Exception\CreateAnalyticsModuleBadRequestException + * @throws \Bitly\Exception\CreateAnalyticsModuleForbiddenException + * @throws \Bitly\Exception\CreateAnalyticsModuleNotFoundException + * @throws \Bitly\Exception\CreateAnalyticsModuleInternalServerErrorException + * @throws \Bitly\Exception\CreateAnalyticsModuleServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Module', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsModuleBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsModuleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsModuleNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsModuleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsModuleServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateAnalyticsReport.php b/lib/Endpoint/CreateAnalyticsReport.php new file mode 100644 index 0000000..e87154c --- /dev/null +++ b/lib/Endpoint/CreateAnalyticsReport.php @@ -0,0 +1,90 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/analytics/groups/{group_guid}/reports'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateAnalyticsReport) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\AnalyticsReport|null + * + * @throws \Bitly\Exception\CreateAnalyticsReportBadRequestException + * @throws \Bitly\Exception\CreateAnalyticsReportForbiddenException + * @throws \Bitly\Exception\CreateAnalyticsReportNotFoundException + * @throws \Bitly\Exception\CreateAnalyticsReportInternalServerErrorException + * @throws \Bitly\Exception\CreateAnalyticsReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AnalyticsReport', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsReportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateAnalyticsReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateCampaignChannel.php b/lib/Endpoint/CreateCampaignChannel.php new file mode 100644 index 0000000..74f147b --- /dev/null +++ b/lib/Endpoint/CreateCampaignChannel.php @@ -0,0 +1,83 @@ +group_guid = $groupGuid; + $this->campaign_guid = $campaignGuid; + $this->channel_guid = $channelGuid; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{campaign_guid}', '{channel_guid}'], [$this->group_guid, $this->campaign_guid, $this->channel_guid], '/private/groups/{group_guid}/campaigns/{campaign_guid}/channels/{channel_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\CreateCampaignChannelBadRequestException + * @throws \Bitly\Exception\CreateCampaignChannelUnprocessableEntityException + * @throws \Bitly\Exception\CreateCampaignChannelInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateCampaignChannelBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateCampaignChannelUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateCampaignChannelInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateChannelBitlink.php b/lib/Endpoint/CreateChannelBitlink.php new file mode 100644 index 0000000..bf93e74 --- /dev/null +++ b/lib/Endpoint/CreateChannelBitlink.php @@ -0,0 +1,86 @@ +group_guid = $groupGuid; + $this->campaign_guid = $campaignGuid; + $this->channel_guid = $channelGuid; + $this->bitlink = $bitlink; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{campaign_guid}', '{channel_guid}', '{bitlink}'], [$this->group_guid, $this->campaign_guid, $this->channel_guid, $this->bitlink], '/private/groups/{group_guid}/campaigns/{campaign_guid}/channels/{channel_guid}/bitlinks/{bitlink}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\CreateChannelBitlinkBadRequestException + * @throws \Bitly\Exception\CreateChannelBitlinkUnprocessableEntityException + * @throws \Bitly\Exception\CreateChannelBitlinkInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateChannelBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateChannelBitlinkUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateChannelBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateContainer.php b/lib/Endpoint/CreateContainer.php new file mode 100644 index 0000000..ad37606 --- /dev/null +++ b/lib/Endpoint/CreateContainer.php @@ -0,0 +1,94 @@ +site_id = $siteId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/containers'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\SiteBlockContainerRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SiteBlock|null + * + * @throws \Bitly\Exception\CreateContainerBadRequestException + * @throws \Bitly\Exception\CreateContainerForbiddenException + * @throws \Bitly\Exception\CreateContainerNotFoundException + * @throws \Bitly\Exception\CreateContainerUnprocessableEntityException + * @throws \Bitly\Exception\CreateContainerInternalServerErrorException + * @throws \Bitly\Exception\CreateContainerServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteBlock', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateContainerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateContainerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateContainerNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateContainerUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateContainerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateContainerServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateCustomer.php b/lib/Endpoint/CreateCustomer.php new file mode 100644 index 0000000..524c122 --- /dev/null +++ b/lib/Endpoint/CreateCustomer.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/private/stripe/customer'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateCustomerBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\CreateCustomerResponse|null + * + * @throws \Bitly\Exception\CreateCustomerBadRequestException + * @throws \Bitly\Exception\CreateCustomerForbiddenException + * @throws \Bitly\Exception\CreateCustomerUnprocessableEntityException + * @throws \Bitly\Exception\CreateCustomerInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CreateCustomerResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateCustomerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateCustomerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateCustomerUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateCustomerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateDeeplinkApp.php b/lib/Endpoint/CreateDeeplinkApp.php new file mode 100644 index 0000000..85ccefa --- /dev/null +++ b/lib/Endpoint/CreateDeeplinkApp.php @@ -0,0 +1,90 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/deeplinks/apps'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DeeplinkApp) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DeeplinkApp|null + * + * @throws \Bitly\Exception\CreateDeeplinkAppBadRequestException + * @throws \Bitly\Exception\CreateDeeplinkAppForbiddenException + * @throws \Bitly\Exception\CreateDeeplinkAppExpectationFailedException + * @throws \Bitly\Exception\CreateDeeplinkAppUnprocessableEntityException + * @throws \Bitly\Exception\CreateDeeplinkAppInternalServerErrorException + * @throws \Bitly\Exception\CreateDeeplinkAppServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeeplinkApp', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkAppBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkAppForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (417 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkAppExpectationFailedException($serializer->deserialize($body, 'Bitly\Model\ExpectationFailed', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkAppUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkAppInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkAppServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateDeeplinkRule.php b/lib/Endpoint/CreateDeeplinkRule.php new file mode 100644 index 0000000..1a6e5c0 --- /dev/null +++ b/lib/Endpoint/CreateDeeplinkRule.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/deeplinks/rules'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DeeplinkRule) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DeeplinkRule|null + * + * @throws \Bitly\Exception\CreateDeeplinkRulePaymentRequiredException + * @throws \Bitly\Exception\CreateDeeplinkRuleForbiddenException + * @throws \Bitly\Exception\CreateDeeplinkRuleNotFoundException + * @throws \Bitly\Exception\CreateDeeplinkRuleInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeeplinkRule', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkRulePaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkRuleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkRuleNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDeeplinkRuleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateDefaultAnalyticsReportForGroup.php b/lib/Endpoint/CreateDefaultAnalyticsReportForGroup.php new file mode 100644 index 0000000..56eb3e0 --- /dev/null +++ b/lib/Endpoint/CreateDefaultAnalyticsReportForGroup.php @@ -0,0 +1,106 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/analytics/groups/{group_guid}/create_default_report'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateAnalyticsReport) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['is_custom']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('is_custom', ['bool']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AnalyticsReport|null + * + * @throws \Bitly\Exception\CreateDefaultAnalyticsReportForGroupBadRequestException + * @throws \Bitly\Exception\CreateDefaultAnalyticsReportForGroupForbiddenException + * @throws \Bitly\Exception\CreateDefaultAnalyticsReportForGroupNotFoundException + * @throws \Bitly\Exception\CreateDefaultAnalyticsReportForGroupInternalServerErrorException + * @throws \Bitly\Exception\CreateDefaultAnalyticsReportForGroupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AnalyticsReport', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDefaultAnalyticsReportForGroupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDefaultAnalyticsReportForGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDefaultAnalyticsReportForGroupNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDefaultAnalyticsReportForGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateDefaultAnalyticsReportForGroupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateFocus.php b/lib/Endpoint/CreateFocus.php new file mode 100644 index 0000000..f94f872 --- /dev/null +++ b/lib/Endpoint/CreateFocus.php @@ -0,0 +1,78 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/canva/focus'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateFocusRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\CreateFocusResponse|null + * + * @throws \Bitly\Exception\CreateFocusBadRequestException + * @throws \Bitly\Exception\CreateFocusForbiddenException + * @throws \Bitly\Exception\CreateFocusInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CreateFocusResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateFocusBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateFocusForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateFocusInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateGenericAccessToken.php b/lib/Endpoint/CreateGenericAccessToken.php new file mode 100644 index 0000000..de88053 --- /dev/null +++ b/lib/Endpoint/CreateGenericAccessToken.php @@ -0,0 +1,86 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/oauth/authorizations'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\GenericAccessTokenReq) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\GenericAccessToken|null + * + * @throws \Bitly\Exception\CreateGenericAccessTokenBadRequestException + * @throws \Bitly\Exception\CreateGenericAccessTokenUnauthorizedException + * @throws \Bitly\Exception\CreateGenericAccessTokenForbiddenException + * @throws \Bitly\Exception\CreateGenericAccessTokenNotFoundException + * @throws \Bitly\Exception\CreateGenericAccessTokenInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GenericAccessToken', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGenericAccessTokenBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGenericAccessTokenUnauthorizedException($serializer->deserialize($body, 'Bitly\Model\Unauthorized', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGenericAccessTokenForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGenericAccessTokenNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGenericAccessTokenInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateGroup.php b/lib/Endpoint/CreateGroup.php new file mode 100644 index 0000000..c8ed168 --- /dev/null +++ b/lib/Endpoint/CreateGroup.php @@ -0,0 +1,86 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/groups'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\GroupUpdate) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Group|null + * + * @throws \Bitly\Exception\CreateGroupBadRequestException + * @throws \Bitly\Exception\CreateGroupForbiddenException + * @throws \Bitly\Exception\CreateGroupUnprocessableEntityException + * @throws \Bitly\Exception\CreateGroupTooManyRequestsException + * @throws \Bitly\Exception\CreateGroupInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Group', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGroupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGroupUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGroupTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateIntervention.php b/lib/Endpoint/CreateIntervention.php new file mode 100644 index 0000000..fa71888 --- /dev/null +++ b/lib/Endpoint/CreateIntervention.php @@ -0,0 +1,86 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/interventions'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\Intervention) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Intervention|null + * + * @throws \Bitly\Exception\CreateInterventionBadRequestException + * @throws \Bitly\Exception\CreateInterventionForbiddenException + * @throws \Bitly\Exception\CreateInterventionUnprocessableEntityException + * @throws \Bitly\Exception\CreateInterventionInternalServerErrorException + * @throws \Bitly\Exception\CreateInterventionServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Intervention', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateInterventionBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateInterventionForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateInterventionUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateInterventionInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateInterventionServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLaunchpad.php b/lib/Endpoint/CreateLaunchpad.php new file mode 100644 index 0000000..cbe47f4 --- /dev/null +++ b/lib/Endpoint/CreateLaunchpad.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/launchpads'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateLaunchpad) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Launchpad|null + * + * @throws \Bitly\Exception\CreateLaunchpadBadRequestException + * @throws \Bitly\Exception\CreateLaunchpadForbiddenException + * @throws \Bitly\Exception\CreateLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\CreateLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Launchpad', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLaunchpadButton.php b/lib/Endpoint/CreateLaunchpadButton.php new file mode 100644 index 0000000..25a3af7 --- /dev/null +++ b/lib/Endpoint/CreateLaunchpadButton.php @@ -0,0 +1,90 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/buttons'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadButtonRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadButton|null + * + * @throws \Bitly\Exception\CreateLaunchpadButtonBadRequestException + * @throws \Bitly\Exception\CreateLaunchpadButtonForbiddenException + * @throws \Bitly\Exception\CreateLaunchpadButtonNotFoundException + * @throws \Bitly\Exception\CreateLaunchpadButtonInternalServerErrorException + * @throws \Bitly\Exception\CreateLaunchpadButtonServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadButton', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadButtonBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadButtonForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadButtonNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadButtonInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadButtonServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLaunchpadContentBitlink.php b/lib/Endpoint/CreateLaunchpadContentBitlink.php new file mode 100644 index 0000000..7296fd2 --- /dev/null +++ b/lib/Endpoint/CreateLaunchpadContentBitlink.php @@ -0,0 +1,90 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/contents/bitlink'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentBitlinkRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadButton|null + * + * @throws \Bitly\Exception\CreateLaunchpadContentBitlinkBadRequestException + * @throws \Bitly\Exception\CreateLaunchpadContentBitlinkForbiddenException + * @throws \Bitly\Exception\CreateLaunchpadContentBitlinkNotFoundException + * @throws \Bitly\Exception\CreateLaunchpadContentBitlinkInternalServerErrorException + * @throws \Bitly\Exception\CreateLaunchpadContentBitlinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadButton', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentBitlinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLaunchpadContentDigitalBusinessCard.php b/lib/Endpoint/CreateLaunchpadContentDigitalBusinessCard.php new file mode 100644 index 0000000..6d95379 --- /dev/null +++ b/lib/Endpoint/CreateLaunchpadContentDigitalBusinessCard.php @@ -0,0 +1,69 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/contents/digital_business_card'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentDigitalBusinessCardRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContentDigitalBusinessCardResponse|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContentDigitalBusinessCardResponse', 'json'); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLaunchpadContentImage.php b/lib/Endpoint/CreateLaunchpadContentImage.php new file mode 100644 index 0000000..26a46c2 --- /dev/null +++ b/lib/Endpoint/CreateLaunchpadContentImage.php @@ -0,0 +1,90 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/contents/image'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentImageRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContentImage|null + * + * @throws \Bitly\Exception\CreateLaunchpadContentImageBadRequestException + * @throws \Bitly\Exception\CreateLaunchpadContentImageForbiddenException + * @throws \Bitly\Exception\CreateLaunchpadContentImageNotFoundException + * @throws \Bitly\Exception\CreateLaunchpadContentImageInternalServerErrorException + * @throws \Bitly\Exception\CreateLaunchpadContentImageServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContentImage', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentImageBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentImageForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentImageNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentImageInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentImageServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLaunchpadContentSocial.php b/lib/Endpoint/CreateLaunchpadContentSocial.php new file mode 100644 index 0000000..28c5794 --- /dev/null +++ b/lib/Endpoint/CreateLaunchpadContentSocial.php @@ -0,0 +1,90 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/contents/social'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentSocialRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadSocial|null + * + * @throws \Bitly\Exception\CreateLaunchpadContentSocialBadRequestException + * @throws \Bitly\Exception\CreateLaunchpadContentSocialForbiddenException + * @throws \Bitly\Exception\CreateLaunchpadContentSocialNotFoundException + * @throws \Bitly\Exception\CreateLaunchpadContentSocialInternalServerErrorException + * @throws \Bitly\Exception\CreateLaunchpadContentSocialServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadSocial', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentSocialBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentSocialForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentSocialNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentSocialInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentSocialServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLaunchpadContentYoutubeVideo.php b/lib/Endpoint/CreateLaunchpadContentYoutubeVideo.php new file mode 100644 index 0000000..0059eda --- /dev/null +++ b/lib/Endpoint/CreateLaunchpadContentYoutubeVideo.php @@ -0,0 +1,90 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/contents/youtubeVideo'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentYouTubeRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContentYouTubeResponse|null + * + * @throws \Bitly\Exception\CreateLaunchpadContentYoutubeVideoBadRequestException + * @throws \Bitly\Exception\CreateLaunchpadContentYoutubeVideoForbiddenException + * @throws \Bitly\Exception\CreateLaunchpadContentYoutubeVideoNotFoundException + * @throws \Bitly\Exception\CreateLaunchpadContentYoutubeVideoInternalServerErrorException + * @throws \Bitly\Exception\CreateLaunchpadContentYoutubeVideoServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContentYouTubeResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentYoutubeVideoBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentYoutubeVideoForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentYoutubeVideoNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentYoutubeVideoInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLaunchpadContentYoutubeVideoServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLaunchpadTextBlockContent.php b/lib/Endpoint/CreateLaunchpadTextBlockContent.php new file mode 100644 index 0000000..ab7f48f --- /dev/null +++ b/lib/Endpoint/CreateLaunchpadTextBlockContent.php @@ -0,0 +1,69 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/contents/text_block'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentTextBlockRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContentTextBlockResponse|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContentTextBlockResponse', 'json'); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateLink.php b/lib/Endpoint/CreateLink.php new file mode 100644 index 0000000..6ffa9ec --- /dev/null +++ b/lib/Endpoint/CreateLink.php @@ -0,0 +1,106 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/links'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\FullLink) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LinkBody|null + * + * @throws \Bitly\Exception\CreateLinkBadRequestException + * @throws \Bitly\Exception\CreateLinkPaymentRequiredException + * @throws \Bitly\Exception\CreateLinkForbiddenException + * @throws \Bitly\Exception\CreateLinkNotFoundException + * @throws \Bitly\Exception\CreateLinkConflictException + * @throws \Bitly\Exception\CreateLinkExpectationFailedException + * @throws \Bitly\Exception\CreateLinkUnprocessableEntityException + * @throws \Bitly\Exception\CreateLinkTooManyRequestsException + * @throws \Bitly\Exception\CreateLinkInternalServerErrorException + * @throws \Bitly\Exception\CreateLinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LinkBody', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkConflictException($serializer->deserialize($body, 'Bitly\Model\Conflict', 'json'), $response); + } + if (is_null($contentType) === false && (417 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkExpectationFailedException($serializer->deserialize($body, 'Bitly\Model\ExpectationFailed', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateLinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateOAuthApp.php b/lib/Endpoint/CreateOAuthApp.php new file mode 100644 index 0000000..3e8b99c --- /dev/null +++ b/lib/Endpoint/CreateOAuthApp.php @@ -0,0 +1,78 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/oauth/apps'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateOAuthAppReq) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OAuthAppFull|null + * + * @throws \Bitly\Exception\CreateOAuthAppBadRequestException + * @throws \Bitly\Exception\CreateOAuthAppForbiddenException + * @throws \Bitly\Exception\CreateOAuthAppInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OAuthAppFull', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOAuthAppBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOAuthAppForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOAuthAppInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateOrgDomainVerificationEmail.php b/lib/Endpoint/CreateOrgDomainVerificationEmail.php new file mode 100644 index 0000000..58a5bb1 --- /dev/null +++ b/lib/Endpoint/CreateOrgDomainVerificationEmail.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/org_domain_verifications'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateOrgDomainVerificationEmailRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OrgDomainVerification|null + * + * @throws \Bitly\Exception\CreateOrgDomainVerificationEmailBadRequestException + * @throws \Bitly\Exception\CreateOrgDomainVerificationEmailPaymentRequiredException + * @throws \Bitly\Exception\CreateOrgDomainVerificationEmailForbiddenException + * @throws \Bitly\Exception\CreateOrgDomainVerificationEmailInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrgDomainVerification', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrgDomainVerificationEmailBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrgDomainVerificationEmailPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrgDomainVerificationEmailForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrgDomainVerificationEmailInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateOrganizationInvitations.php b/lib/Endpoint/CreateOrganizationInvitations.php new file mode 100644 index 0000000..b072883 --- /dev/null +++ b/lib/Endpoint/CreateOrganizationInvitations.php @@ -0,0 +1,94 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/invitations'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\InvitationsCreate) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Invitations|null + * + * @throws \Bitly\Exception\CreateOrganizationInvitationsBadRequestException + * @throws \Bitly\Exception\CreateOrganizationInvitationsPaymentRequiredException + * @throws \Bitly\Exception\CreateOrganizationInvitationsForbiddenException + * @throws \Bitly\Exception\CreateOrganizationInvitationsTooManyRequestsException + * @throws \Bitly\Exception\CreateOrganizationInvitationsInternalServerErrorException + * @throws \Bitly\Exception\CreateOrganizationInvitationsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Invitations', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationInvitationsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationInvitationsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationInvitationsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationInvitationsTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationInvitationsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationInvitationsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateOrganizationSSOSettings.php b/lib/Endpoint/CreateOrganizationSSOSettings.php new file mode 100644 index 0000000..451a8c1 --- /dev/null +++ b/lib/Endpoint/CreateOrganizationSSOSettings.php @@ -0,0 +1,94 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/sso/organizations/{organization_guid}/settings'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\SSOSlug) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SSOSettings|null + * + * @throws \Bitly\Exception\CreateOrganizationSSOSettingsBadRequestException + * @throws \Bitly\Exception\CreateOrganizationSSOSettingsPaymentRequiredException + * @throws \Bitly\Exception\CreateOrganizationSSOSettingsForbiddenException + * @throws \Bitly\Exception\CreateOrganizationSSOSettingsUnprocessableEntityException + * @throws \Bitly\Exception\CreateOrganizationSSOSettingsInternalServerErrorException + * @throws \Bitly\Exception\CreateOrganizationSSOSettingsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SSOSettings', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationSSOSettingsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationSSOSettingsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationSSOSettingsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationSSOSettingsUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationSSOSettingsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOrganizationSSOSettingsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateOverridesForBitlink.php b/lib/Endpoint/CreateOverridesForBitlink.php new file mode 100644 index 0000000..f524f86 --- /dev/null +++ b/lib/Endpoint/CreateOverridesForBitlink.php @@ -0,0 +1,106 @@ +bitlink = $bitlink; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/overrides'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateOverrideRules) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BitlinkOverrides|null + * + * @throws \Bitly\Exception\CreateOverridesForBitlinkBadRequestException + * @throws \Bitly\Exception\CreateOverridesForBitlinkPaymentRequiredException + * @throws \Bitly\Exception\CreateOverridesForBitlinkForbiddenException + * @throws \Bitly\Exception\CreateOverridesForBitlinkNotFoundException + * @throws \Bitly\Exception\CreateOverridesForBitlinkConflictException + * @throws \Bitly\Exception\CreateOverridesForBitlinkUnprocessableEntityException + * @throws \Bitly\Exception\CreateOverridesForBitlinkTooManyRequestsException + * @throws \Bitly\Exception\CreateOverridesForBitlinkInternalServerErrorException + * @throws \Bitly\Exception\CreateOverridesForBitlinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkOverrides', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkConflictException($serializer->deserialize($body, 'Bitly\Model\Conflict', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\TooManyRequests', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateOverridesForBitlinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreatePayPalBillingAgreement.php b/lib/Endpoint/CreatePayPalBillingAgreement.php new file mode 100644 index 0000000..d03e636 --- /dev/null +++ b/lib/Endpoint/CreatePayPalBillingAgreement.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/paypal/billing_agreement'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BillingAgreementToken) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BillingAgreement|null + * + * @throws \Bitly\Exception\CreatePayPalBillingAgreementBadRequestException + * @throws \Bitly\Exception\CreatePayPalBillingAgreementForbiddenException + * @throws \Bitly\Exception\CreatePayPalBillingAgreementUnprocessableEntityException + * @throws \Bitly\Exception\CreatePayPalBillingAgreementInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BillingAgreement', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePayPalBillingAgreementBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePayPalBillingAgreementForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePayPalBillingAgreementUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePayPalBillingAgreementInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreatePayPalBillingAgreementToken.php b/lib/Endpoint/CreatePayPalBillingAgreementToken.php new file mode 100644 index 0000000..9b38581 --- /dev/null +++ b/lib/Endpoint/CreatePayPalBillingAgreementToken.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/paypal_billing_agreement_token'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\PayPalTokenRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PayPalToken|null + * + * @throws \Bitly\Exception\CreatePayPalBillingAgreementTokenBadRequestException + * @throws \Bitly\Exception\CreatePayPalBillingAgreementTokenForbiddenException + * @throws \Bitly\Exception\CreatePayPalBillingAgreementTokenUnprocessableEntityException + * @throws \Bitly\Exception\CreatePayPalBillingAgreementTokenInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PayPalToken', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePayPalBillingAgreementTokenBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePayPalBillingAgreementTokenForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePayPalBillingAgreementTokenUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePayPalBillingAgreementTokenInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreatePaymentMethod.php b/lib/Endpoint/CreatePaymentMethod.php new file mode 100644 index 0000000..d8e91b3 --- /dev/null +++ b/lib/Endpoint/CreatePaymentMethod.php @@ -0,0 +1,90 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/payment_methods'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreatePaymentMethod) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PaymentMethod|null + * + * @throws \Bitly\Exception\CreatePaymentMethodBadRequestException + * @throws \Bitly\Exception\CreatePaymentMethodForbiddenException + * @throws \Bitly\Exception\CreatePaymentMethodUnprocessableEntityException + * @throws \Bitly\Exception\CreatePaymentMethodInternalServerErrorException + * @throws \Bitly\Exception\CreatePaymentMethodServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PaymentMethod', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePaymentMethodBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePaymentMethodForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePaymentMethodUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePaymentMethodInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreatePaymentMethodServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateQRCodePreview.php b/lib/Endpoint/CreateQRCodePreview.php new file mode 100644 index 0000000..3d02939 --- /dev/null +++ b/lib/Endpoint/CreateQRCodePreview.php @@ -0,0 +1,94 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/qrcodes/preview/{group_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\PreviewQRCodeRequestV2) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\QRCodeFullResponse|null + * + * @throws \Bitly\Exception\CreateQRCodePreviewBadRequestException + * @throws \Bitly\Exception\CreateQRCodePreviewPaymentRequiredException + * @throws \Bitly\Exception\CreateQRCodePreviewForbiddenException + * @throws \Bitly\Exception\CreateQRCodePreviewNotFoundException + * @throws \Bitly\Exception\CreateQRCodePreviewGoneException + * @throws \Bitly\Exception\CreateQRCodePreviewInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeFullResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodePreviewBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodePreviewPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodePreviewForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodePreviewNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodePreviewGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodePreviewInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateQRCodeTemplate.php b/lib/Endpoint/CreateQRCodeTemplate.php new file mode 100644 index 0000000..53a9d53 --- /dev/null +++ b/lib/Endpoint/CreateQRCodeTemplate.php @@ -0,0 +1,94 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/qr_templates'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\QRCodeTemplateRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\QRCodeTemplateResponse|null + * + * @throws \Bitly\Exception\CreateQRCodeTemplateBadRequestException + * @throws \Bitly\Exception\CreateQRCodeTemplatePaymentRequiredException + * @throws \Bitly\Exception\CreateQRCodeTemplateForbiddenException + * @throws \Bitly\Exception\CreateQRCodeTemplateNotFoundException + * @throws \Bitly\Exception\CreateQRCodeTemplateGoneException + * @throws \Bitly\Exception\CreateQRCodeTemplateInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeTemplateResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodeTemplateBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodeTemplatePaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodeTemplateForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodeTemplateNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodeTemplateGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateQRCodeTemplateInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateShareableReport.php b/lib/Endpoint/CreateShareableReport.php new file mode 100644 index 0000000..c5fd187 --- /dev/null +++ b/lib/Endpoint/CreateShareableReport.php @@ -0,0 +1,86 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/shareable_reports'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ShareableReport) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ShareableReport|null + * + * @throws \Bitly\Exception\CreateShareableReportBadRequestException + * @throws \Bitly\Exception\CreateShareableReportForbiddenException + * @throws \Bitly\Exception\CreateShareableReportNotFoundException + * @throws \Bitly\Exception\CreateShareableReportInternalServerErrorException + * @throws \Bitly\Exception\CreateShareableReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ShareableReport', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShareableReportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShareableReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShareableReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShareableReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShareableReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateShopifyIntegrationOAuth.php b/lib/Endpoint/CreateShopifyIntegrationOAuth.php new file mode 100644 index 0000000..dd027da --- /dev/null +++ b/lib/Endpoint/CreateShopifyIntegrationOAuth.php @@ -0,0 +1,94 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/private/organizations/{organization_guid}/shopify_integration_oauth'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ShopifyTokenExchangeRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\CreateShopifyIntegrationOAuthBadRequestException + * @throws \Bitly\Exception\CreateShopifyIntegrationOAuthForbiddenException + * @throws \Bitly\Exception\CreateShopifyIntegrationOAuthConflictException + * @throws \Bitly\Exception\CreateShopifyIntegrationOAuthUnprocessableEntityException + * @throws \Bitly\Exception\CreateShopifyIntegrationOAuthInternalServerErrorException + * @throws \Bitly\Exception\CreateShopifyIntegrationOAuthServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShopifyIntegrationOAuthBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShopifyIntegrationOAuthForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShopifyIntegrationOAuthConflictException($serializer->deserialize($body, 'Bitly\Model\Conflict', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShopifyIntegrationOAuthUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShopifyIntegrationOAuthInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateShopifyIntegrationOAuthServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateSite.php b/lib/Endpoint/CreateSite.php new file mode 100644 index 0000000..b800589 --- /dev/null +++ b/lib/Endpoint/CreateSite.php @@ -0,0 +1,90 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/sites'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateLaunchpad) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\CreateSiteBadRequestException + * @throws \Bitly\Exception\CreateSitePaymentRequiredException + * @throws \Bitly\Exception\CreateSiteForbiddenException + * @throws \Bitly\Exception\CreateSiteUnprocessableEntityException + * @throws \Bitly\Exception\CreateSiteInternalServerErrorException + * @throws \Bitly\Exception\CreateSiteServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSitePaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateSiteContent.php b/lib/Endpoint/CreateSiteContent.php new file mode 100644 index 0000000..134f936 --- /dev/null +++ b/lib/Endpoint/CreateSiteContent.php @@ -0,0 +1,93 @@ +site_id = $siteId; + $this->content_type = $contentType; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{content_type}'], [$this->site_id, $this->content_type], '/sites/{site_id}/contents/{content_type}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\SiteContentRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SiteBlock|null + * + * @throws \Bitly\Exception\CreateSiteContentBadRequestException + * @throws \Bitly\Exception\CreateSiteContentForbiddenException + * @throws \Bitly\Exception\CreateSiteContentNotFoundException + * @throws \Bitly\Exception\CreateSiteContentInternalServerErrorException + * @throws \Bitly\Exception\CreateSiteContentServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteBlock', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteContentBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteContentForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteContentNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteContentInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSiteContentServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateSiteImage.php b/lib/Endpoint/CreateSiteImage.php new file mode 100644 index 0000000..7730d04 --- /dev/null +++ b/lib/Endpoint/CreateSiteImage.php @@ -0,0 +1,69 @@ +site_id = $siteId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/images'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\SiteImageUpload) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ImageUploadResponse|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ImageUploadResponse', 'json'); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateStripeSetupIntent.php b/lib/Endpoint/CreateStripeSetupIntent.php new file mode 100644 index 0000000..e63fd05 --- /dev/null +++ b/lib/Endpoint/CreateStripeSetupIntent.php @@ -0,0 +1,85 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/private/stripe/organizations/{organization_guid}/setup_intent'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SetupIntent|null + * + * @throws \Bitly\Exception\CreateStripeSetupIntentBadRequestException + * @throws \Bitly\Exception\CreateStripeSetupIntentForbiddenException + * @throws \Bitly\Exception\CreateStripeSetupIntentUnprocessableEntityException + * @throws \Bitly\Exception\CreateStripeSetupIntentInternalServerErrorException + * @throws \Bitly\Exception\CreateStripeSetupIntentServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SetupIntent', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateStripeSetupIntentBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateStripeSetupIntentForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateStripeSetupIntentUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateStripeSetupIntentInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateStripeSetupIntentServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateSubscription.php b/lib/Endpoint/CreateSubscription.php new file mode 100644 index 0000000..93c32e1 --- /dev/null +++ b/lib/Endpoint/CreateSubscription.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/private/stripe/subscription'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateSubscriptionBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\CreateSubscriptionResponse|null + * + * @throws \Bitly\Exception\CreateSubscriptionBadRequestException + * @throws \Bitly\Exception\CreateSubscriptionForbiddenException + * @throws \Bitly\Exception\CreateSubscriptionUnprocessableEntityException + * @throws \Bitly\Exception\CreateSubscriptionInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CreateSubscriptionResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSubscriptionBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSubscriptionForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSubscriptionUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateSubscriptionInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/CreateUser.php b/lib/Endpoint/CreateUser.php new file mode 100644 index 0000000..e92f9da --- /dev/null +++ b/lib/Endpoint/CreateUser.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/users'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\CreateUserBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PublicOAuthUser|null + * + * @throws \Bitly\Exception\CreateUserBadRequestException + * @throws \Bitly\Exception\CreateUserUnprocessableEntityException + * @throws \Bitly\Exception\CreateUserTooManyRequestsException + * @throws \Bitly\Exception\CreateUserInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PublicOAuthUser', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateUserBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateUserUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateUserTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\TooManyRequests', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\CreateUserInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeactivateDeeplinkApp.php b/lib/Endpoint/DeactivateDeeplinkApp.php new file mode 100644 index 0000000..ec41698 --- /dev/null +++ b/lib/Endpoint/DeactivateDeeplinkApp.php @@ -0,0 +1,85 @@ +deeplink_app_guid = $deeplinkAppGuid; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{deeplink_app_guid}'], [$this->deeplink_app_guid], '/deeplinks/apps/{deeplink_app_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeactivateDeeplinkAppPaymentRequiredException + * @throws \Bitly\Exception\DeactivateDeeplinkAppForbiddenException + * @throws \Bitly\Exception\DeactivateDeeplinkAppNotFoundException + * @throws \Bitly\Exception\DeactivateDeeplinkAppInternalServerErrorException + * @throws \Bitly\Exception\DeactivateDeeplinkAppServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeactivateDeeplinkAppPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeactivateDeeplinkAppForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeactivateDeeplinkAppNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeactivateDeeplinkAppInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeactivateDeeplinkAppServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteAnalyticsModule.php b/lib/Endpoint/DeleteAnalyticsModule.php new file mode 100644 index 0000000..622cabb --- /dev/null +++ b/lib/Endpoint/DeleteAnalyticsModule.php @@ -0,0 +1,83 @@ +group_guid = $groupGuid; + $this->module_guid = $moduleGuid; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{module_guid}'], [$this->group_guid, $this->module_guid], '/analytics/groups/{group_guid}/modules/{module_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteAnalyticsModulePaymentRequiredException + * @throws \Bitly\Exception\DeleteAnalyticsModuleForbiddenException + * @throws \Bitly\Exception\DeleteAnalyticsModuleNotFoundException + * @throws \Bitly\Exception\DeleteAnalyticsModuleInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsModulePaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsModuleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsModuleNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsModuleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteAnalyticsModuleByReport.php b/lib/Endpoint/DeleteAnalyticsModuleByReport.php new file mode 100644 index 0000000..bf859cf --- /dev/null +++ b/lib/Endpoint/DeleteAnalyticsModuleByReport.php @@ -0,0 +1,86 @@ +group_guid = $groupGuid; + $this->module_guid = $moduleGuid; + $this->report_id = $reportId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{module_guid}', '{report_id}'], [$this->group_guid, $this->module_guid, $this->report_id], '/analytics/groups/{group_guid}/reports/{report_id}/modules/{module_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteAnalyticsModuleByReportPaymentRequiredException + * @throws \Bitly\Exception\DeleteAnalyticsModuleByReportForbiddenException + * @throws \Bitly\Exception\DeleteAnalyticsModuleByReportNotFoundException + * @throws \Bitly\Exception\DeleteAnalyticsModuleByReportInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsModuleByReportPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsModuleByReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsModuleByReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsModuleByReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteAnalyticsReport.php b/lib/Endpoint/DeleteAnalyticsReport.php new file mode 100644 index 0000000..60fef09 --- /dev/null +++ b/lib/Endpoint/DeleteAnalyticsReport.php @@ -0,0 +1,92 @@ +group_guid = $groupGuid; + $this->report_id = $reportId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{report_id}'], [$this->group_guid, $this->report_id], '/analytics/groups/{group_guid}/reports/{report_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteAnalyticsReportBadRequestException + * @throws \Bitly\Exception\DeleteAnalyticsReportPaymentRequiredException + * @throws \Bitly\Exception\DeleteAnalyticsReportForbiddenException + * @throws \Bitly\Exception\DeleteAnalyticsReportNotFoundException + * @throws \Bitly\Exception\DeleteAnalyticsReportInternalServerErrorException + * @throws \Bitly\Exception\DeleteAnalyticsReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsReportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsReportPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteAnalyticsReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteCampaign.php b/lib/Endpoint/DeleteCampaign.php new file mode 100644 index 0000000..0c8ef9a --- /dev/null +++ b/lib/Endpoint/DeleteCampaign.php @@ -0,0 +1,85 @@ +campaign_guid = $campaignGuid; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{campaign_guid}'], [$this->campaign_guid], '/campaigns/{campaign_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteCampaignPaymentRequiredException + * @throws \Bitly\Exception\DeleteCampaignForbiddenException + * @throws \Bitly\Exception\DeleteCampaignNotFoundException + * @throws \Bitly\Exception\DeleteCampaignInternalServerErrorException + * @throws \Bitly\Exception\DeleteCampaignServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCampaignPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCampaignForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCampaignNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCampaignInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCampaignServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteCanvaUserBrandsByLogin.php b/lib/Endpoint/DeleteCanvaUserBrandsByLogin.php new file mode 100644 index 0000000..27b8dbc --- /dev/null +++ b/lib/Endpoint/DeleteCanvaUserBrandsByLogin.php @@ -0,0 +1,71 @@ +login = $login; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{login}'], [$this->login], '/canva/login/{login}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteCanvaUserBrandsByLoginBadRequestException + * @throws \Bitly\Exception\DeleteCanvaUserBrandsByLoginInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCanvaUserBrandsByLoginBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCanvaUserBrandsByLoginInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteChannel.php b/lib/Endpoint/DeleteChannel.php new file mode 100644 index 0000000..d3de1d3 --- /dev/null +++ b/lib/Endpoint/DeleteChannel.php @@ -0,0 +1,85 @@ +channel_guid = $channelGuid; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{channel_guid}'], [$this->channel_guid], '/channels/{channel_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteChannelPaymentRequiredException + * @throws \Bitly\Exception\DeleteChannelForbiddenException + * @throws \Bitly\Exception\DeleteChannelNotFoundException + * @throws \Bitly\Exception\DeleteChannelInternalServerErrorException + * @throws \Bitly\Exception\DeleteChannelServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteChannelPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteChannelForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteChannelNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteChannelInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteChannelServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteChannelBitlink.php b/lib/Endpoint/DeleteChannelBitlink.php new file mode 100644 index 0000000..1a81c04 --- /dev/null +++ b/lib/Endpoint/DeleteChannelBitlink.php @@ -0,0 +1,86 @@ +group_guid = $groupGuid; + $this->campaign_guid = $campaignGuid; + $this->channel_guid = $channelGuid; + $this->bitlink = $bitlink; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{campaign_guid}', '{channel_guid}', '{bitlink}'], [$this->group_guid, $this->campaign_guid, $this->channel_guid, $this->bitlink], '/private/groups/{group_guid}/campaigns/{campaign_guid}/channels/{channel_guid}/bitlinks/{bitlink}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteChannelBitlinkBadRequestException + * @throws \Bitly\Exception\DeleteChannelBitlinkUnprocessableEntityException + * @throws \Bitly\Exception\DeleteChannelBitlinkInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteChannelBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteChannelBitlinkUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteChannelBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteCustomDomain.php b/lib/Endpoint/DeleteCustomDomain.php new file mode 100644 index 0000000..a134472 --- /dev/null +++ b/lib/Endpoint/DeleteCustomDomain.php @@ -0,0 +1,82 @@ +custom_domain = $customDomain; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{custom_domain}'], [$this->custom_domain], '/custom_domains/{custom_domain}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\OrganizationGUID) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteCustomDomainForbiddenException + * @throws \Bitly\Exception\DeleteCustomDomainUnprocessableEntityException + * @throws \Bitly\Exception\DeleteCustomDomainInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCustomDomainForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCustomDomainUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteCustomDomainInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteDeeplinkRule.php b/lib/Endpoint/DeleteDeeplinkRule.php new file mode 100644 index 0000000..e43bead --- /dev/null +++ b/lib/Endpoint/DeleteDeeplinkRule.php @@ -0,0 +1,85 @@ +deeplink_rule_guid = $deeplinkRuleGuid; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{deeplink_rule_guid}'], [$this->deeplink_rule_guid], '/deeplinks/rules/{deeplink_rule_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteDeeplinkRulePaymentRequiredException + * @throws \Bitly\Exception\DeleteDeeplinkRuleForbiddenException + * @throws \Bitly\Exception\DeleteDeeplinkRuleNotFoundException + * @throws \Bitly\Exception\DeleteDeeplinkRuleInternalServerErrorException + * @throws \Bitly\Exception\DeleteDeeplinkRuleServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteDeeplinkRulePaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteDeeplinkRuleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteDeeplinkRuleNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteDeeplinkRuleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteDeeplinkRuleServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteEmail.php b/lib/Endpoint/DeleteEmail.php new file mode 100644 index 0000000..d2146c0 --- /dev/null +++ b/lib/Endpoint/DeleteEmail.php @@ -0,0 +1,85 @@ +email = $email; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{email}'], [$this->email], '/emails/{email}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteEmailBadRequestException + * @throws \Bitly\Exception\DeleteEmailForbiddenException + * @throws \Bitly\Exception\DeleteEmailNotFoundException + * @throws \Bitly\Exception\DeleteEmailInternalServerErrorException + * @throws \Bitly\Exception\DeleteEmailServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteEmailBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteEmailForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteEmailNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteEmailInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteEmailServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteGroup.php b/lib/Endpoint/DeleteGroup.php new file mode 100644 index 0000000..35af469 --- /dev/null +++ b/lib/Endpoint/DeleteGroup.php @@ -0,0 +1,85 @@ +group_guid = $groupGuid; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteGroupForbiddenException + * @throws \Bitly\Exception\DeleteGroupNotFoundException + * @throws \Bitly\Exception\DeleteGroupTooManyRequestsException + * @throws \Bitly\Exception\DeleteGroupInternalServerErrorException + * @throws \Bitly\Exception\DeleteGroupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteGroupNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteGroupTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteGroupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteIntegrationOAuth.php b/lib/Endpoint/DeleteIntegrationOAuth.php new file mode 100644 index 0000000..5cc1d20 --- /dev/null +++ b/lib/Endpoint/DeleteIntegrationOAuth.php @@ -0,0 +1,84 @@ +client_id = $clientId; + $this->organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{client_id}', '{organization_guid}'], [$this->client_id, $this->organization_guid], '/organizations/{organization_guid}/integration_oauth/{client_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteIntegrationOAuthBadRequestException + * @throws \Bitly\Exception\DeleteIntegrationOAuthForbiddenException + * @throws \Bitly\Exception\DeleteIntegrationOAuthInternalServerErrorException + * @throws \Bitly\Exception\DeleteIntegrationOAuthServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteIntegrationOAuthBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteIntegrationOAuthForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteIntegrationOAuthInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteIntegrationOAuthServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteInvitation.php b/lib/Endpoint/DeleteInvitation.php new file mode 100644 index 0000000..f53546b --- /dev/null +++ b/lib/Endpoint/DeleteInvitation.php @@ -0,0 +1,84 @@ +organization_guid = $organizationGuid; + $this->email = $email; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{email}'], [$this->organization_guid, $this->email], '/organizations/{organization_guid}/invitations/{email}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteInvitationForbiddenException + * @throws \Bitly\Exception\DeleteInvitationNotFoundException + * @throws \Bitly\Exception\DeleteInvitationTooManyRequestsException + * @throws \Bitly\Exception\DeleteInvitationInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteInvitationForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteInvitationNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteInvitationTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteInvitationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteLaunchpad.php b/lib/Endpoint/DeleteLaunchpad.php new file mode 100644 index 0000000..0c1b10a --- /dev/null +++ b/lib/Endpoint/DeleteLaunchpad.php @@ -0,0 +1,85 @@ +launchpad_id = $launchpadId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteLaunchpadBadRequestException + * @throws \Bitly\Exception\DeleteLaunchpadForbiddenException + * @throws \Bitly\Exception\DeleteLaunchpadNotFoundException + * @throws \Bitly\Exception\DeleteLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\DeleteLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteLaunchpadButton.php b/lib/Endpoint/DeleteLaunchpadButton.php new file mode 100644 index 0000000..d3d8dd1 --- /dev/null +++ b/lib/Endpoint/DeleteLaunchpadButton.php @@ -0,0 +1,84 @@ +launchpad_id = $launchpadId; + $this->button_id = $buttonId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}', '{button_id}'], [$this->launchpad_id, $this->button_id], '/launchpads/{launchpad_id}/buttons/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteLaunchpadButtonForbiddenException + * @throws \Bitly\Exception\DeleteLaunchpadButtonNotFoundException + * @throws \Bitly\Exception\DeleteLaunchpadButtonInternalServerErrorException + * @throws \Bitly\Exception\DeleteLaunchpadButtonServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadButtonForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadButtonNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadButtonInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadButtonServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteLaunchpadImageByImageUse.php b/lib/Endpoint/DeleteLaunchpadImageByImageUse.php new file mode 100644 index 0000000..bff80cc --- /dev/null +++ b/lib/Endpoint/DeleteLaunchpadImageByImageUse.php @@ -0,0 +1,84 @@ +launchpad_id = $launchpadId; + $this->image_use = $imageUse; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}', '{image_use}'], [$this->launchpad_id, $this->image_use], '/launchpads/{launchpad_id}/images_by_use/{image_use}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadImageUpload|null + * + * @throws \Bitly\Exception\DeleteLaunchpadImageByImageUseForbiddenException + * @throws \Bitly\Exception\DeleteLaunchpadImageByImageUseNotFoundException + * @throws \Bitly\Exception\DeleteLaunchpadImageByImageUseInternalServerErrorException + * @throws \Bitly\Exception\DeleteLaunchpadImageByImageUseServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (204 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadImageUpload', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadImageByImageUseForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadImageByImageUseNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadImageByImageUseInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteLaunchpadImageByImageUseServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteQRCodeTemplate.php b/lib/Endpoint/DeleteQRCodeTemplate.php new file mode 100644 index 0000000..4fd01ba --- /dev/null +++ b/lib/Endpoint/DeleteQRCodeTemplate.php @@ -0,0 +1,83 @@ +group_guid = $groupGuid; + $this->template_id = $templateId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{template_id}'], [$this->group_guid, $this->template_id], '/groups/{group_guid}/qr_templates/{template_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteQRCodeTemplateForbiddenException + * @throws \Bitly\Exception\DeleteQRCodeTemplateNotFoundException + * @throws \Bitly\Exception\DeleteQRCodeTemplateInternalServerErrorException + * @throws \Bitly\Exception\DeleteQRCodeTemplateServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteQRCodeTemplateForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteQRCodeTemplateNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteQRCodeTemplateInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteQRCodeTemplateServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteSite.php b/lib/Endpoint/DeleteSite.php new file mode 100644 index 0000000..0e9eb8a --- /dev/null +++ b/lib/Endpoint/DeleteSite.php @@ -0,0 +1,85 @@ +site_id = $siteId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteSiteBadRequestException + * @throws \Bitly\Exception\DeleteSiteForbiddenException + * @throws \Bitly\Exception\DeleteSiteNotFoundException + * @throws \Bitly\Exception\DeleteSiteInternalServerErrorException + * @throws \Bitly\Exception\DeleteSiteServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteSiteButton.php b/lib/Endpoint/DeleteSiteButton.php new file mode 100644 index 0000000..e1dd540 --- /dev/null +++ b/lib/Endpoint/DeleteSiteButton.php @@ -0,0 +1,88 @@ +site_id = $siteId; + $this->button_id = $buttonId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{button_id}'], [$this->site_id, $this->button_id], '/sites/{site_id}/buttons/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteSiteButtonBadRequestException + * @throws \Bitly\Exception\DeleteSiteButtonForbiddenException + * @throws \Bitly\Exception\DeleteSiteButtonNotFoundException + * @throws \Bitly\Exception\DeleteSiteButtonInternalServerErrorException + * @throws \Bitly\Exception\DeleteSiteButtonServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteButtonBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteButtonForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteButtonNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteButtonInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteSiteButtonServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteSiteRedirect.php b/lib/Endpoint/DeleteSiteRedirect.php new file mode 100644 index 0000000..509fdfc --- /dev/null +++ b/lib/Endpoint/DeleteSiteRedirect.php @@ -0,0 +1,63 @@ +site_id = $siteId; + $this->domain = $domain; + $this->keyword = $keyword; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{domain}', '{keyword}'], [$this->site_id, $this->domain, $this->keyword], '/sites/{site_id}/redirects/{domain}/{keyword}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + /** + * @return null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteUser.php b/lib/Endpoint/DeleteUser.php new file mode 100644 index 0000000..7a7ec4b --- /dev/null +++ b/lib/Endpoint/DeleteUser.php @@ -0,0 +1,82 @@ +login = $login; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{login}'], [$this->login], '/users/{login}/delete'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DeactivateUser) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteUserBadRequestException + * @throws \Bitly\Exception\DeleteUserForbiddenException + * @throws \Bitly\Exception\DeleteUserInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteUserBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteUserForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteUserInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DeleteUserWithRole.php b/lib/Endpoint/DeleteUserWithRole.php new file mode 100644 index 0000000..290d940 --- /dev/null +++ b/lib/Endpoint/DeleteUserWithRole.php @@ -0,0 +1,90 @@ +role_name = $roleName; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{role_name}'], [$this->role_name], '/roles/{role_name}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UserRole) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DeleteUserWithRoleBadRequestException + * @throws \Bitly\Exception\DeleteUserWithRoleForbiddenException + * @throws \Bitly\Exception\DeleteUserWithRoleUnprocessableEntityException + * @throws \Bitly\Exception\DeleteUserWithRoleInternalServerErrorException + * @throws \Bitly\Exception\DeleteUserWithRoleServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteUserWithRoleBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteUserWithRoleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteUserWithRoleUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteUserWithRoleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DeleteUserWithRoleServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/Disable2FA.php b/lib/Endpoint/Disable2FA.php new file mode 100644 index 0000000..43cb9d2 --- /dev/null +++ b/lib/Endpoint/Disable2FA.php @@ -0,0 +1,94 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/user/two_factor/sms'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\TwoFactorCode) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\Disable2FABadRequestException + * @throws \Bitly\Exception\Disable2FAUnauthorizedException + * @throws \Bitly\Exception\Disable2FAForbiddenException + * @throws \Bitly\Exception\Disable2FANotFoundException + * @throws \Bitly\Exception\Disable2FAUnprocessableEntityException + * @throws \Bitly\Exception\Disable2FAInternalServerErrorException + * @throws \Bitly\Exception\Disable2FAServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\Disable2FABadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\Disable2FAUnauthorizedException($serializer->deserialize($body, 'Bitly\Model\Unauthorized', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\Disable2FAForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\Disable2FANotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\Disable2FAUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\Disable2FAInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\Disable2FAServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DiscardDraftLaunchpad.php b/lib/Endpoint/DiscardDraftLaunchpad.php new file mode 100644 index 0000000..0b3b956 --- /dev/null +++ b/lib/Endpoint/DiscardDraftLaunchpad.php @@ -0,0 +1,81 @@ +launchpad_id = $launchpadId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/draft'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Launchpad|null + * + * @throws \Bitly\Exception\DiscardDraftLaunchpadBadRequestException + * @throws \Bitly\Exception\DiscardDraftLaunchpadForbiddenException + * @throws \Bitly\Exception\DiscardDraftLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\DiscardDraftLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Launchpad', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardDraftLaunchpadBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardDraftLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardDraftLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardDraftLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DiscardSiteDraft.php b/lib/Endpoint/DiscardSiteDraft.php new file mode 100644 index 0000000..bc34d2f --- /dev/null +++ b/lib/Endpoint/DiscardSiteDraft.php @@ -0,0 +1,85 @@ +site_id = $siteId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/draft'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DiscardSiteDraftBadRequestException + * @throws \Bitly\Exception\DiscardSiteDraftForbiddenException + * @throws \Bitly\Exception\DiscardSiteDraftNotFoundException + * @throws \Bitly\Exception\DiscardSiteDraftUnprocessableEntityException + * @throws \Bitly\Exception\DiscardSiteDraftInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardSiteDraftBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardSiteDraftForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardSiteDraftNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardSiteDraftUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DiscardSiteDraftInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DowngradeOrganization.php b/lib/Endpoint/DowngradeOrganization.php new file mode 100644 index 0000000..c79312b --- /dev/null +++ b/lib/Endpoint/DowngradeOrganization.php @@ -0,0 +1,74 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organization_downgrade'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DowngradeOrgBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\DowngradeOrganizationUnprocessableEntityException + * @throws \Bitly\Exception\DowngradeOrganizationInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DowngradeOrganizationUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DowngradeOrganizationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/DuplicateAnalyticsReport.php b/lib/Endpoint/DuplicateAnalyticsReport.php new file mode 100644 index 0000000..40284d2 --- /dev/null +++ b/lib/Endpoint/DuplicateAnalyticsReport.php @@ -0,0 +1,88 @@ +group_guid = $groupGuid; + $this->report_id = $reportId; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{report_id}'], [$this->group_guid, $this->report_id], '/analytics/groups/{group_guid}/duplicate/{report_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\AnalyticsReport|null + * + * @throws \Bitly\Exception\DuplicateAnalyticsReportBadRequestException + * @throws \Bitly\Exception\DuplicateAnalyticsReportForbiddenException + * @throws \Bitly\Exception\DuplicateAnalyticsReportNotFoundException + * @throws \Bitly\Exception\DuplicateAnalyticsReportInternalServerErrorException + * @throws \Bitly\Exception\DuplicateAnalyticsReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AnalyticsReport', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DuplicateAnalyticsReportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DuplicateAnalyticsReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DuplicateAnalyticsReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DuplicateAnalyticsReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\DuplicateAnalyticsReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/EditCustomDomain.php b/lib/Endpoint/EditCustomDomain.php new file mode 100644 index 0000000..f8e40c3 --- /dev/null +++ b/lib/Endpoint/EditCustomDomain.php @@ -0,0 +1,78 @@ +custom_domain = $customDomain; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{custom_domain}'], [$this->custom_domain], '/custom_domains/{custom_domain}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DomainUpdate) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\EditCustomDomainForbiddenException + * @throws \Bitly\Exception\EditCustomDomainInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EditCustomDomainForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EditCustomDomainInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/EditQRCodePreview.php b/lib/Endpoint/EditQRCodePreview.php new file mode 100644 index 0000000..1987e94 --- /dev/null +++ b/lib/Endpoint/EditQRCodePreview.php @@ -0,0 +1,97 @@ +group_guid = $groupGuid; + $this->id = $id; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{id}'], [$this->group_guid, $this->id], '/qrcodes/preview/{group_guid}/{id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\PreviewQRCodeRequestV2) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\QRCodeFullResponse|null + * + * @throws \Bitly\Exception\EditQRCodePreviewBadRequestException + * @throws \Bitly\Exception\EditQRCodePreviewPaymentRequiredException + * @throws \Bitly\Exception\EditQRCodePreviewForbiddenException + * @throws \Bitly\Exception\EditQRCodePreviewNotFoundException + * @throws \Bitly\Exception\EditQRCodePreviewGoneException + * @throws \Bitly\Exception\EditQRCodePreviewInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeFullResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EditQRCodePreviewBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EditQRCodePreviewPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EditQRCodePreviewForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EditQRCodePreviewNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EditQRCodePreviewGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EditQRCodePreviewInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/EvaluateIntervention.php b/lib/Endpoint/EvaluateIntervention.php new file mode 100644 index 0000000..a2073da --- /dev/null +++ b/lib/Endpoint/EvaluateIntervention.php @@ -0,0 +1,90 @@ +intervention = $intervention; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{intervention}'], [$this->intervention], '/interventions/{intervention}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\EvaluateInterventionRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\EvaluateInterventionResponse|null + * + * @throws \Bitly\Exception\EvaluateInterventionBadRequestException + * @throws \Bitly\Exception\EvaluateInterventionForbiddenException + * @throws \Bitly\Exception\EvaluateInterventionUnprocessableEntityException + * @throws \Bitly\Exception\EvaluateInterventionInternalServerErrorException + * @throws \Bitly\Exception\EvaluateInterventionServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\EvaluateInterventionResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EvaluateInterventionBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EvaluateInterventionForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EvaluateInterventionUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EvaluateInterventionInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\EvaluateInterventionServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ExperimentDecide.php b/lib/Endpoint/ExperimentDecide.php new file mode 100644 index 0000000..a23bc04 --- /dev/null +++ b/lib/Endpoint/ExperimentDecide.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/private/decide'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DecideRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DecideResponse|null + * + * @throws \Bitly\Exception\ExperimentDecideBadRequestException + * @throws \Bitly\Exception\ExperimentDecideForbiddenException + * @throws \Bitly\Exception\ExperimentDecideUnprocessableEntityException + * @throws \Bitly\Exception\ExperimentDecideInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DecideResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExperimentDecideBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExperimentDecideForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExperimentDecideUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExperimentDecideInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ExperimentTrack.php b/lib/Endpoint/ExperimentTrack.php new file mode 100644 index 0000000..5c18f2b --- /dev/null +++ b/lib/Endpoint/ExperimentTrack.php @@ -0,0 +1,78 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/private/track'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\TrackRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\ExperimentTrackForbiddenException + * @throws \Bitly\Exception\ExperimentTrackUnprocessableEntityException + * @throws \Bitly\Exception\ExperimentTrackInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExperimentTrackForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExperimentTrackUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExperimentTrackInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ExpireOAuthAuthorization.php b/lib/Endpoint/ExpireOAuthAuthorization.php new file mode 100644 index 0000000..5b813ab --- /dev/null +++ b/lib/Endpoint/ExpireOAuthAuthorization.php @@ -0,0 +1,81 @@ +authorization_id = $authorizationId; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{authorization_id}'], [$this->authorization_id], '/oauth/authorizations/{authorization_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\ExpireOAuthAuthorizationBadRequestException + * @throws \Bitly\Exception\ExpireOAuthAuthorizationNotFoundException + * @throws \Bitly\Exception\ExpireOAuthAuthorizationInternalServerErrorException + * @throws \Bitly\Exception\ExpireOAuthAuthorizationServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExpireOAuthAuthorizationBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExpireOAuthAuthorizationNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExpireOAuthAuthorizationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ExpireOAuthAuthorizationServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/FetchCompDomainPurchase.php b/lib/Endpoint/FetchCompDomainPurchase.php new file mode 100644 index 0000000..2c948a6 --- /dev/null +++ b/lib/Endpoint/FetchCompDomainPurchase.php @@ -0,0 +1,80 @@ +domain = $domain; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{domain}'], [$this->domain], '/domains/{domain}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DomainPurchase|null + * + * @throws \Bitly\Exception\FetchCompDomainPurchaseForbiddenException + * @throws \Bitly\Exception\FetchCompDomainPurchaseInternalServerErrorException + * @throws \Bitly\Exception\FetchCompDomainPurchaseGatewayTimeoutException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DomainPurchase', 'json'); + } + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FetchCompDomainPurchaseForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FetchCompDomainPurchaseInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (504 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FetchCompDomainPurchaseGatewayTimeoutException($serializer->deserialize($body, 'Bitly\Model\Timeout', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/FetchDomainAgreements.php b/lib/Endpoint/FetchDomainAgreements.php new file mode 100644 index 0000000..1ae1b73 --- /dev/null +++ b/lib/Endpoint/FetchDomainAgreements.php @@ -0,0 +1,85 @@ +domain = $domain; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{domain}'], [$this->domain], '/domains/{domain}/agreements'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DomainAgreements|null + * + * @throws \Bitly\Exception\FetchDomainAgreementsInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DomainAgreements', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FetchDomainAgreementsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/FetchDomainStatus.php b/lib/Endpoint/FetchDomainStatus.php new file mode 100644 index 0000000..71aa691 --- /dev/null +++ b/lib/Endpoint/FetchDomainStatus.php @@ -0,0 +1,95 @@ +domain = $domain; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{domain}'], [$this->domain], '/domains/{domain}/status'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid', 'fetch_price']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['fetch_price' => false]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + $optionsResolver->addAllowedTypes('fetch_price', ['bool']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DomainStatus|null + * + * @throws \Bitly\Exception\FetchDomainStatusForbiddenException + * @throws \Bitly\Exception\FetchDomainStatusInternalServerErrorException + * @throws \Bitly\Exception\FetchDomainStatusGatewayTimeoutException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DomainStatus', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FetchDomainStatusForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FetchDomainStatusInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (504 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FetchDomainStatusGatewayTimeoutException($serializer->deserialize($body, 'Bitly\Model\Timeout', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ForgetUser.php b/lib/Endpoint/ForgetUser.php new file mode 100644 index 0000000..dd76497 --- /dev/null +++ b/lib/Endpoint/ForgetUser.php @@ -0,0 +1,66 @@ + ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\ForgetUserForbiddenException + * @throws \Bitly\Exception\ForgetUserInternalServerErrorException + * @throws \Bitly\Exception\ForgetUserServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ForgetUserForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ForgetUserInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ForgetUserServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/FormCapture.php b/lib/Endpoint/FormCapture.php new file mode 100644 index 0000000..0961001 --- /dev/null +++ b/lib/Endpoint/FormCapture.php @@ -0,0 +1,86 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/form_capture'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\FormCapturePayload) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\FormCaptureBadRequestException + * @throws \Bitly\Exception\FormCaptureForbiddenException + * @throws \Bitly\Exception\FormCaptureUnprocessableEntityException + * @throws \Bitly\Exception\FormCaptureInternalServerErrorException + * @throws \Bitly\Exception\FormCaptureServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FormCaptureBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FormCaptureForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FormCaptureUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FormCaptureInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\FormCaptureServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GenerateBillingSignature.php b/lib/Endpoint/GenerateBillingSignature.php new file mode 100644 index 0000000..a679d7f --- /dev/null +++ b/lib/Endpoint/GenerateBillingSignature.php @@ -0,0 +1,73 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/billing_signature'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BillingSignature|null + * + * @throws \Bitly\Exception\GenerateBillingSignatureForbiddenException + * @throws \Bitly\Exception\GenerateBillingSignatureInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BillingSignature', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GenerateBillingSignatureForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GenerateBillingSignatureInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAccessFeatures.php b/lib/Endpoint/GetAccessFeatures.php new file mode 100644 index 0000000..642bbec --- /dev/null +++ b/lib/Endpoint/GetAccessFeatures.php @@ -0,0 +1,73 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/access_features'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\AccessFeatures|null + * + * @throws \Bitly\Exception\GetAccessFeaturesForbiddenException + * @throws \Bitly\Exception\GetAccessFeaturesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AccessFeatures', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAccessFeaturesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAccessFeaturesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateButtonClicksByCity.php b/lib/Endpoint/GetAggregateButtonClicksByCity.php new file mode 100644 index 0000000..6bb5c7d --- /dev/null +++ b/lib/Endpoint/GetAggregateButtonClicksByCity.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/clicks/cities'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByCitiesFacet|null + * + * @throws \Bitly\Exception\GetAggregateButtonClicksByCityBadRequestException + * @throws \Bitly\Exception\GetAggregateButtonClicksByCityForbiddenException + * @throws \Bitly\Exception\GetAggregateButtonClicksByCityInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateButtonClicksByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByCitiesFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateButtonClicksByCountry.php b/lib/Endpoint/GetAggregateButtonClicksByCountry.php new file mode 100644 index 0000000..be9ae0a --- /dev/null +++ b/lib/Endpoint/GetAggregateButtonClicksByCountry.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/clicks/countries'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateButtonClicksByCountryBadRequestException + * @throws \Bitly\Exception\GetAggregateButtonClicksByCountryForbiddenException + * @throws \Bitly\Exception\GetAggregateButtonClicksByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateButtonClicksByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateButtonClicksByDevice.php b/lib/Endpoint/GetAggregateButtonClicksByDevice.php new file mode 100644 index 0000000..b4d2afc --- /dev/null +++ b/lib/Endpoint/GetAggregateButtonClicksByDevice.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/clicks/devices'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateButtonClicksByDeviceBadRequestException + * @throws \Bitly\Exception\GetAggregateButtonClicksByDeviceForbiddenException + * @throws \Bitly\Exception\GetAggregateButtonClicksByDeviceInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateButtonClicksByDeviceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByDeviceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByDeviceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByDeviceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksByDeviceServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateButtonClicksOverTime.php b/lib/Endpoint/GetAggregateButtonClicksOverTime.php new file mode 100644 index 0000000..b03bea0 --- /dev/null +++ b/lib/Endpoint/GetAggregateButtonClicksOverTime.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/clicks/over_time'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetAggregateButtonClicksOverTimeBadRequestException + * @throws \Bitly\Exception\GetAggregateButtonClicksOverTimeForbiddenException + * @throws \Bitly\Exception\GetAggregateButtonClicksOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateButtonClicksOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateButtonClicksOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateCodeScansByCity.php b/lib/Endpoint/GetAggregateCodeScansByCity.php new file mode 100644 index 0000000..f5c7c24 --- /dev/null +++ b/lib/Endpoint/GetAggregateCodeScansByCity.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/codes/scans/cities'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByCitiesFacet|null + * + * @throws \Bitly\Exception\GetAggregateCodeScansByCityBadRequestException + * @throws \Bitly\Exception\GetAggregateCodeScansByCityForbiddenException + * @throws \Bitly\Exception\GetAggregateCodeScansByCityInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateCodeScansByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByCitiesFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateCodeScansByCountry.php b/lib/Endpoint/GetAggregateCodeScansByCountry.php new file mode 100644 index 0000000..7fa4a36 --- /dev/null +++ b/lib/Endpoint/GetAggregateCodeScansByCountry.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/codes/scans/countries'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateCodeScansByCountryBadRequestException + * @throws \Bitly\Exception\GetAggregateCodeScansByCountryForbiddenException + * @throws \Bitly\Exception\GetAggregateCodeScansByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateCodeScansByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateCodeScansOverTime.php b/lib/Endpoint/GetAggregateCodeScansOverTime.php new file mode 100644 index 0000000..8353f64 --- /dev/null +++ b/lib/Endpoint/GetAggregateCodeScansOverTime.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/codes/scans/over_time'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetAggregateCodeScansOverTimeBadRequestException + * @throws \Bitly\Exception\GetAggregateCodeScansOverTimeForbiddenException + * @throws \Bitly\Exception\GetAggregateCodeScansOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateCodeScansOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateCodeScansOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateDigitalBusinessCardDownloadsOverTime.php b/lib/Endpoint/GetAggregateDigitalBusinessCardDownloadsOverTime.php new file mode 100644 index 0000000..8a3fd56 --- /dev/null +++ b/lib/Endpoint/GetAggregateDigitalBusinessCardDownloadsOverTime.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/digital_business_card_downloads/over_time'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws \Bitly\Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws \Bitly\Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateDigitalBusinessCardDownloadsOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateEngagementsForBitlinks.php b/lib/Endpoint/GetAggregateEngagementsForBitlinks.php new file mode 100644 index 0000000..235ce36 --- /dev/null +++ b/lib/Endpoint/GetAggregateEngagementsForBitlinks.php @@ -0,0 +1,114 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/engagements/aggregate'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksBadRequestException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksPaymentRequiredException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksForbiddenException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksNotFoundException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksGoneException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateEngagementsForBitlinksByCitiesFacet.php b/lib/Endpoint/GetAggregateEngagementsForBitlinksByCitiesFacet.php new file mode 100644 index 0000000..c31a14a --- /dev/null +++ b/lib/Endpoint/GetAggregateEngagementsForBitlinksByCitiesFacet.php @@ -0,0 +1,114 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/engagements/cities/aggregate'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'unit_reference', 'units', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByCitiesFacet|null + * + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetBadRequestException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetPaymentRequiredException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetForbiddenException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetNotFoundException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetGoneException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByCitiesFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByCitiesFacetServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateEngagementsForBitlinksByFacet.php b/lib/Endpoint/GetAggregateEngagementsForBitlinksByFacet.php new file mode 100644 index 0000000..4b8a2a4 --- /dev/null +++ b/lib/Endpoint/GetAggregateEngagementsForBitlinksByFacet.php @@ -0,0 +1,116 @@ +facet = $facet; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{facet}'], [$this->facet], '/engagements/aggregate/{facet}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'unit_reference', 'units', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetBadRequestException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetPaymentRequiredException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetForbiddenException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetNotFoundException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetGoneException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateEngagementsForBitlinksByFacetServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateLinkClicksByCity.php b/lib/Endpoint/GetAggregateLinkClicksByCity.php new file mode 100644 index 0000000..700e731 --- /dev/null +++ b/lib/Endpoint/GetAggregateLinkClicksByCity.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/links/clicks/cities'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByCitiesFacet|null + * + * @throws \Bitly\Exception\GetAggregateLinkClicksByCityBadRequestException + * @throws \Bitly\Exception\GetAggregateLinkClicksByCityForbiddenException + * @throws \Bitly\Exception\GetAggregateLinkClicksByCityInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateLinkClicksByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByCitiesFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateLinkClicksByCountry.php b/lib/Endpoint/GetAggregateLinkClicksByCountry.php new file mode 100644 index 0000000..7da5301 --- /dev/null +++ b/lib/Endpoint/GetAggregateLinkClicksByCountry.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/links/clicks/countries'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateLinkClicksByCountryBadRequestException + * @throws \Bitly\Exception\GetAggregateLinkClicksByCountryForbiddenException + * @throws \Bitly\Exception\GetAggregateLinkClicksByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateLinkClicksByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateLinkClicksByDevice.php b/lib/Endpoint/GetAggregateLinkClicksByDevice.php new file mode 100644 index 0000000..f9da4c2 --- /dev/null +++ b/lib/Endpoint/GetAggregateLinkClicksByDevice.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/links/clicks/devices'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateLinkClicksByDeviceBadRequestException + * @throws \Bitly\Exception\GetAggregateLinkClicksByDeviceForbiddenException + * @throws \Bitly\Exception\GetAggregateLinkClicksByDeviceInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateLinkClicksByDeviceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByDeviceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByDeviceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByDeviceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByDeviceServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateLinkClicksByReferrer.php b/lib/Endpoint/GetAggregateLinkClicksByReferrer.php new file mode 100644 index 0000000..3cd3e8e --- /dev/null +++ b/lib/Endpoint/GetAggregateLinkClicksByReferrer.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/links/clicks/referrers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateLinkClicksByReferrerBadRequestException + * @throws \Bitly\Exception\GetAggregateLinkClicksByReferrerForbiddenException + * @throws \Bitly\Exception\GetAggregateLinkClicksByReferrerInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateLinkClicksByReferrerServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByReferrerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByReferrerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByReferrerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksByReferrerServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateLinkClicksOverTime.php b/lib/Endpoint/GetAggregateLinkClicksOverTime.php new file mode 100644 index 0000000..6c10ed5 --- /dev/null +++ b/lib/Endpoint/GetAggregateLinkClicksOverTime.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/links/clicks/over_time'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetAggregateLinkClicksOverTimeBadRequestException + * @throws \Bitly\Exception\GetAggregateLinkClicksOverTimeForbiddenException + * @throws \Bitly\Exception\GetAggregateLinkClicksOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateLinkClicksOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateLinkClicksOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregatePageViewsByCity.php b/lib/Endpoint/GetAggregatePageViewsByCity.php new file mode 100644 index 0000000..3d618dd --- /dev/null +++ b/lib/Endpoint/GetAggregatePageViewsByCity.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/views/cities'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByCitiesFacet|null + * + * @throws \Bitly\Exception\GetAggregatePageViewsByCityBadRequestException + * @throws \Bitly\Exception\GetAggregatePageViewsByCityForbiddenException + * @throws \Bitly\Exception\GetAggregatePageViewsByCityInternalServerErrorException + * @throws \Bitly\Exception\GetAggregatePageViewsByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByCitiesFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregatePageViewsByCountry.php b/lib/Endpoint/GetAggregatePageViewsByCountry.php new file mode 100644 index 0000000..556c7a4 --- /dev/null +++ b/lib/Endpoint/GetAggregatePageViewsByCountry.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/views/countries'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregatePageViewsByCountryBadRequestException + * @throws \Bitly\Exception\GetAggregatePageViewsByCountryForbiddenException + * @throws \Bitly\Exception\GetAggregatePageViewsByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetAggregatePageViewsByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregatePageViewsByDevice.php b/lib/Endpoint/GetAggregatePageViewsByDevice.php new file mode 100644 index 0000000..fe26fe5 --- /dev/null +++ b/lib/Endpoint/GetAggregatePageViewsByDevice.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/views/devices'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregatePageViewsByDeviceBadRequestException + * @throws \Bitly\Exception\GetAggregatePageViewsByDeviceForbiddenException + * @throws \Bitly\Exception\GetAggregatePageViewsByDeviceInternalServerErrorException + * @throws \Bitly\Exception\GetAggregatePageViewsByDeviceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByDeviceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByDeviceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByDeviceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByDeviceServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregatePageViewsByReferrer.php b/lib/Endpoint/GetAggregatePageViewsByReferrer.php new file mode 100644 index 0000000..7ad7c53 --- /dev/null +++ b/lib/Endpoint/GetAggregatePageViewsByReferrer.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/views/referrers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregatePageViewsByReferrerBadRequestException + * @throws \Bitly\Exception\GetAggregatePageViewsByReferrerForbiddenException + * @throws \Bitly\Exception\GetAggregatePageViewsByReferrerInternalServerErrorException + * @throws \Bitly\Exception\GetAggregatePageViewsByReferrerServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByReferrerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByReferrerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByReferrerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsByReferrerServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregatePageViewsOverTime.php b/lib/Endpoint/GetAggregatePageViewsOverTime.php new file mode 100644 index 0000000..7df3c81 --- /dev/null +++ b/lib/Endpoint/GetAggregatePageViewsOverTime.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/views/over_time'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetAggregatePageViewsOverTimeBadRequestException + * @throws \Bitly\Exception\GetAggregatePageViewsOverTimeForbiddenException + * @throws \Bitly\Exception\GetAggregatePageViewsOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetAggregatePageViewsOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePageViewsOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregatePagesOverview.php b/lib/Endpoint/GetAggregatePagesOverview.php new file mode 100644 index 0000000..a018b00 --- /dev/null +++ b/lib/Endpoint/GetAggregatePagesOverview.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/overview'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateLaunchpadsOverviewGetResponse200|null + * + * @throws \Bitly\Exception\GetAggregatePagesOverviewBadRequestException + * @throws \Bitly\Exception\GetAggregatePagesOverviewForbiddenException + * @throws \Bitly\Exception\GetAggregatePagesOverviewInternalServerErrorException + * @throws \Bitly\Exception\GetAggregatePagesOverviewServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateLaunchpadsOverviewGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePagesOverviewBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePagesOverviewForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePagesOverviewInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregatePagesOverviewServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateSiteViewsByCity.php b/lib/Endpoint/GetAggregateSiteViewsByCity.php new file mode 100644 index 0000000..f79740e --- /dev/null +++ b/lib/Endpoint/GetAggregateSiteViewsByCity.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/views/cities'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByCitiesFacet|null + * + * @throws \Bitly\Exception\GetAggregateSiteViewsByCityBadRequestException + * @throws \Bitly\Exception\GetAggregateSiteViewsByCityForbiddenException + * @throws \Bitly\Exception\GetAggregateSiteViewsByCityInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateSiteViewsByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByCitiesFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateSiteViewsByCountry.php b/lib/Endpoint/GetAggregateSiteViewsByCountry.php new file mode 100644 index 0000000..e30f251 --- /dev/null +++ b/lib/Endpoint/GetAggregateSiteViewsByCountry.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/views/countries'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateSiteViewsByCountryBadRequestException + * @throws \Bitly\Exception\GetAggregateSiteViewsByCountryForbiddenException + * @throws \Bitly\Exception\GetAggregateSiteViewsByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateSiteViewsByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateSiteViewsByDevice.php b/lib/Endpoint/GetAggregateSiteViewsByDevice.php new file mode 100644 index 0000000..05c8d83 --- /dev/null +++ b/lib/Endpoint/GetAggregateSiteViewsByDevice.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/views/devices'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateSiteViewsByDeviceBadRequestException + * @throws \Bitly\Exception\GetAggregateSiteViewsByDeviceForbiddenException + * @throws \Bitly\Exception\GetAggregateSiteViewsByDeviceInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateSiteViewsByDeviceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByDeviceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByDeviceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByDeviceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByDeviceServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateSiteViewsByReferrer.php b/lib/Endpoint/GetAggregateSiteViewsByReferrer.php new file mode 100644 index 0000000..a05b76b --- /dev/null +++ b/lib/Endpoint/GetAggregateSiteViewsByReferrer.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/views/referrers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetAggregateSiteViewsByReferrerBadRequestException + * @throws \Bitly\Exception\GetAggregateSiteViewsByReferrerForbiddenException + * @throws \Bitly\Exception\GetAggregateSiteViewsByReferrerInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateSiteViewsByReferrerServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByReferrerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByReferrerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByReferrerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsByReferrerServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateSiteViewsOverTime.php b/lib/Endpoint/GetAggregateSiteViewsOverTime.php new file mode 100644 index 0000000..7213322 --- /dev/null +++ b/lib/Endpoint/GetAggregateSiteViewsOverTime.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/views/over_time'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetAggregateSiteViewsOverTimeBadRequestException + * @throws \Bitly\Exception\GetAggregateSiteViewsOverTimeForbiddenException + * @throws \Bitly\Exception\GetAggregateSiteViewsOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateSiteViewsOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSiteViewsOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateSitesOverview.php b/lib/Endpoint/GetAggregateSitesOverview.php new file mode 100644 index 0000000..1249d91 --- /dev/null +++ b/lib/Endpoint/GetAggregateSitesOverview.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/overview'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateSitesOverviewGetResponse200|null + * + * @throws \Bitly\Exception\GetAggregateSitesOverviewBadRequestException + * @throws \Bitly\Exception\GetAggregateSitesOverviewForbiddenException + * @throws \Bitly\Exception\GetAggregateSitesOverviewInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateSitesOverviewServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateSitesOverviewGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSitesOverviewBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSitesOverviewForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSitesOverviewInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateSitesOverviewServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateTopButtonClicks.php b/lib/Endpoint/GetAggregateTopButtonClicks.php new file mode 100644 index 0000000..68c4269 --- /dev/null +++ b/lib/Endpoint/GetAggregateTopButtonClicks.php @@ -0,0 +1,104 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/launchpads/clicks/top'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['launchpad', 'unit', 'units', 'unit_reference', 'brand_guid', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('launchpad', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('brand_guid', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedButtons|null + * + * @throws \Bitly\Exception\GetAggregateTopButtonClicksBadRequestException + * @throws \Bitly\Exception\GetAggregateTopButtonClicksForbiddenException + * @throws \Bitly\Exception\GetAggregateTopButtonClicksInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateTopButtonClicksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedButtons', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopButtonClicksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopButtonClicksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopButtonClicksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopButtonClicksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateTopCodeScans.php b/lib/Endpoint/GetAggregateTopCodeScans.php new file mode 100644 index 0000000..44d2c86 --- /dev/null +++ b/lib/Endpoint/GetAggregateTopCodeScans.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/codes/scans/top'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedLinks|null + * + * @throws \Bitly\Exception\GetAggregateTopCodeScansBadRequestException + * @throws \Bitly\Exception\GetAggregateTopCodeScansForbiddenException + * @throws \Bitly\Exception\GetAggregateTopCodeScansInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateTopCodeScansServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedLinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopCodeScansBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopCodeScansForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopCodeScansInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopCodeScansServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAggregateTopLinkClicks.php b/lib/Endpoint/GetAggregateTopLinkClicks.php new file mode 100644 index 0000000..ab4b463 --- /dev/null +++ b/lib/Endpoint/GetAggregateTopLinkClicks.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/links/clicks/top'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedLinks|null + * + * @throws \Bitly\Exception\GetAggregateTopLinkClicksBadRequestException + * @throws \Bitly\Exception\GetAggregateTopLinkClicksForbiddenException + * @throws \Bitly\Exception\GetAggregateTopLinkClicksInternalServerErrorException + * @throws \Bitly\Exception\GetAggregateTopLinkClicksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedLinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopLinkClicksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopLinkClicksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopLinkClicksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAggregateTopLinkClicksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAllBrandCampaigns.php b/lib/Endpoint/GetAllBrandCampaigns.php new file mode 100644 index 0000000..7d3156f --- /dev/null +++ b/lib/Endpoint/GetAllBrandCampaigns.php @@ -0,0 +1,97 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/private/groups/{group_guid}/campaigns'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['limit', 'offset', 'query']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('offset', ['int']); + $optionsResolver->addAllowedTypes('query', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BrandCampaignsResponse|null + * + * @throws \Bitly\Exception\GetAllBrandCampaignsBadRequestException + * @throws \Bitly\Exception\GetAllBrandCampaignsUnprocessableEntityException + * @throws \Bitly\Exception\GetAllBrandCampaignsInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BrandCampaignsResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAllBrandCampaignsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAllBrandCampaignsUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAllBrandCampaignsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAnalyticsModule.php b/lib/Endpoint/GetAnalyticsModule.php new file mode 100644 index 0000000..f189a35 --- /dev/null +++ b/lib/Endpoint/GetAnalyticsModule.php @@ -0,0 +1,83 @@ +group_guid = $groupGuid; + $this->module_guid = $moduleGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{module_guid}'], [$this->group_guid, $this->module_guid], '/analytics/groups/{group_guid}/modules/{module_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Module|null + * + * @throws \Bitly\Exception\GetAnalyticsModuleForbiddenException + * @throws \Bitly\Exception\GetAnalyticsModuleNotFoundException + * @throws \Bitly\Exception\GetAnalyticsModuleInternalServerErrorException + * @throws \Bitly\Exception\GetAnalyticsModuleServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Module', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsModuleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsModuleNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsModuleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsModuleServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAnalyticsReport.php b/lib/Endpoint/GetAnalyticsReport.php new file mode 100644 index 0000000..3c25e53 --- /dev/null +++ b/lib/Endpoint/GetAnalyticsReport.php @@ -0,0 +1,84 @@ +group_guid = $groupGuid; + $this->report_id = $reportId; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{report_id}'], [$this->group_guid, $this->report_id], '/analytics/groups/{group_guid}/reports/{report_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\AnalyticsReport|null + * + * @throws \Bitly\Exception\GetAnalyticsReportForbiddenException + * @throws \Bitly\Exception\GetAnalyticsReportNotFoundException + * @throws \Bitly\Exception\GetAnalyticsReportInternalServerErrorException + * @throws \Bitly\Exception\GetAnalyticsReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AnalyticsReport', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAnalyticsReportsByGroupPaginated.php b/lib/Endpoint/GetAnalyticsReportsByGroupPaginated.php new file mode 100644 index 0000000..5cdb75a --- /dev/null +++ b/lib/Endpoint/GetAnalyticsReportsByGroupPaginated.php @@ -0,0 +1,103 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/analytics/groups/{group_guid}/reports'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page', 'size']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1, 'size' => 50]); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\PaginatedAnalyticsReports|null + * + * @throws \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedBadRequestException + * @throws \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedPaymentRequiredException + * @throws \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedForbiddenException + * @throws \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedInternalServerErrorException + * @throws \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PaginatedAnalyticsReports', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsByGroupPaginatedServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAnalyticsReportsListByGroup.php b/lib/Endpoint/GetAnalyticsReportsListByGroup.php new file mode 100644 index 0000000..09e3f5b --- /dev/null +++ b/lib/Endpoint/GetAnalyticsReportsListByGroup.php @@ -0,0 +1,85 @@ +group_guid = $groupGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/analytics/groups/{group_guid}/reports_list'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\AnalyticsReports|null + * + * @throws \Bitly\Exception\GetAnalyticsReportsListByGroupBadRequestException + * @throws \Bitly\Exception\GetAnalyticsReportsListByGroupPaymentRequiredException + * @throws \Bitly\Exception\GetAnalyticsReportsListByGroupForbiddenException + * @throws \Bitly\Exception\GetAnalyticsReportsListByGroupInternalServerErrorException + * @throws \Bitly\Exception\GetAnalyticsReportsListByGroupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AnalyticsReports', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsListByGroupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsListByGroupPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsListByGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsListByGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsReportsListByGroupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAnalyticsUsage.php b/lib/Endpoint/GetAnalyticsUsage.php new file mode 100644 index 0000000..99ae4bd --- /dev/null +++ b/lib/Endpoint/GetAnalyticsUsage.php @@ -0,0 +1,81 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/analytics/organizations/{organization_guid}/usage'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\GroupAnalyticsUsage[]|null + * + * @throws \Bitly\Exception\GetAnalyticsUsageBadRequestException + * @throws \Bitly\Exception\GetAnalyticsUsageForbiddenException + * @throws \Bitly\Exception\GetAnalyticsUsageInternalServerErrorException + * @throws \Bitly\Exception\GetAnalyticsUsageServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupAnalyticsUsage[]', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsUsageBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsUsageForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsUsageInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAnalyticsUsageServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAppAssociations.php b/lib/Endpoint/GetAppAssociations.php new file mode 100644 index 0000000..f7afbfa --- /dev/null +++ b/lib/Endpoint/GetAppAssociations.php @@ -0,0 +1,85 @@ +custom_domain = $customDomain; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{custom_domain}'], [$this->custom_domain], '/custom_domains/{custom_domain}/appassociations'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\AppAssociations|null + * + * @throws \Bitly\Exception\GetAppAssociationsPaymentRequiredException + * @throws \Bitly\Exception\GetAppAssociationsForbiddenException + * @throws \Bitly\Exception\GetAppAssociationsNotFoundException + * @throws \Bitly\Exception\GetAppAssociationsInternalServerErrorException + * @throws \Bitly\Exception\GetAppAssociationsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AppAssociations', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAppAssociationsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAppAssociationsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAppAssociationsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAppAssociationsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAppAssociationsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetAutobrandedDomain.php b/lib/Endpoint/GetAutobrandedDomain.php new file mode 100644 index 0000000..b9de642 --- /dev/null +++ b/lib/Endpoint/GetAutobrandedDomain.php @@ -0,0 +1,86 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/autobranded_domain'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['long_url']); + $optionsResolver->setRequired(['long_url']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('long_url', ['array']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AutobrandedDomain|null + * + * @throws \Bitly\Exception\GetAutobrandedDomainBadRequestException + * @throws \Bitly\Exception\GetAutobrandedDomainInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AutobrandedDomain', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAutobrandedDomainBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetAutobrandedDomainInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBillingAccount.php b/lib/Endpoint/GetBillingAccount.php new file mode 100644 index 0000000..1b96a5f --- /dev/null +++ b/lib/Endpoint/GetBillingAccount.php @@ -0,0 +1,76 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/billing_account'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BillingAccount|null + * + * @throws \Bitly\Exception\GetBillingAccountForbiddenException + * @throws \Bitly\Exception\GetBillingAccountInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BillingAccount', 'json'); + } + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBillingAccountForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBillingAccountInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBillingAccountID.php b/lib/Endpoint/GetBillingAccountID.php new file mode 100644 index 0000000..e54bd28 --- /dev/null +++ b/lib/Endpoint/GetBillingAccountID.php @@ -0,0 +1,73 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/billing_account_id'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BillingAccountID|null + * + * @throws \Bitly\Exception\GetBillingAccountIDForbiddenException + * @throws \Bitly\Exception\GetBillingAccountIDInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BillingAccountID', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBillingAccountIDForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBillingAccountIDInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBillingProvider.php b/lib/Endpoint/GetBillingProvider.php new file mode 100644 index 0000000..f3fe5d5 --- /dev/null +++ b/lib/Endpoint/GetBillingProvider.php @@ -0,0 +1,77 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/private/stripe/organizations/{organization_guid}/billing_provider'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BillingProvider|null + * + * @throws \Bitly\Exception\GetBillingProviderBadRequestException + * @throws \Bitly\Exception\GetBillingProviderForbiddenException + * @throws \Bitly\Exception\GetBillingProviderInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BillingProvider', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBillingProviderBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBillingProviderForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBillingProviderInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkClickCounts.php b/lib/Endpoint/GetBitlinkClickCounts.php new file mode 100644 index 0000000..2315c15 --- /dev/null +++ b/lib/Endpoint/GetBitlinkClickCounts.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/clicks'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['bitlink_id']); + $optionsResolver->setRequired(['bitlink_id']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('bitlink_id', ['array']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetBitlinkClickCountsBadRequestException + * @throws \Bitly\Exception\GetBitlinkClickCountsNotFoundException + * @throws \Bitly\Exception\GetBitlinkClickCountsGoneException + * @throws \Bitly\Exception\GetBitlinkClickCountsUnprocessableEntityException + * @throws \Bitly\Exception\GetBitlinkClickCountsInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkClickCountsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClickCountsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClickCountsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClickCountsGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClickCountsUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClickCountsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClickCountsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkClicks.php b/lib/Endpoint/GetBitlinkClicks.php new file mode 100644 index 0000000..7756f98 --- /dev/null +++ b/lib/Endpoint/GetBitlinkClicks.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/bitlink_clicks'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkClicks|null + * + * @throws \Bitly\Exception\GetBitlinkClicksBadRequestException + * @throws \Bitly\Exception\GetBitlinkClicksForbiddenException + * @throws \Bitly\Exception\GetBitlinkClicksNotFoundException + * @throws \Bitly\Exception\GetBitlinkClicksGoneException + * @throws \Bitly\Exception\GetBitlinkClicksInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkClicksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkClicks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByBrowser.php b/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByBrowser.php new file mode 100644 index 0000000..269f7f8 --- /dev/null +++ b/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByBrowser.php @@ -0,0 +1,123 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/bitlink_clicks/browsers'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkClicksMetrics|null + * + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserBadRequestException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserPaymentRequiredException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserForbiddenException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserNotFoundException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserGoneException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkClicksMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByBrowserServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByCities.php b/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByCities.php new file mode 100644 index 0000000..8e9b1fc --- /dev/null +++ b/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByCities.php @@ -0,0 +1,123 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/bitlink_clicks/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityBitlinkClicksMetrics|null + * + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesBadRequestException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesPaymentRequiredException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesForbiddenException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesNotFoundException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesGoneException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityBitlinkClicksMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCitiesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByCountries.php b/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByCountries.php new file mode 100644 index 0000000..62864e3 --- /dev/null +++ b/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByCountries.php @@ -0,0 +1,123 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/bitlink_clicks/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkClicksMetrics|null + * + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesBadRequestException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesPaymentRequiredException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesForbiddenException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesNotFoundException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesGoneException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkClicksMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByCountriesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByDevicesOS.php b/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByDevicesOS.php new file mode 100644 index 0000000..b05eafc --- /dev/null +++ b/lib/Endpoint/GetBitlinkClicksMetricsForBitlinkByDevicesOS.php @@ -0,0 +1,123 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/bitlink_clicks/device_os'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkClicksMetrics|null + * + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSBadRequestException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSPaymentRequiredException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSForbiddenException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSNotFoundException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSGoneException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkClicksMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksMetricsForBitlinkByDevicesOSServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkClicksSummary.php b/lib/Endpoint/GetBitlinkClicksSummary.php new file mode 100644 index 0000000..851f46d --- /dev/null +++ b/lib/Endpoint/GetBitlinkClicksSummary.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/bitlink_clicks/summary'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkClicksSummary|null + * + * @throws \Bitly\Exception\GetBitlinkClicksSummaryBadRequestException + * @throws \Bitly\Exception\GetBitlinkClicksSummaryForbiddenException + * @throws \Bitly\Exception\GetBitlinkClicksSummaryNotFoundException + * @throws \Bitly\Exception\GetBitlinkClicksSummaryGoneException + * @throws \Bitly\Exception\GetBitlinkClicksSummaryInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkClicksSummaryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkClicksSummary', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksSummaryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksSummaryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksSummaryNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksSummaryGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksSummaryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkClicksSummaryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkScans.php b/lib/Endpoint/GetBitlinkScans.php new file mode 100644 index 0000000..5b1e525 --- /dev/null +++ b/lib/Endpoint/GetBitlinkScans.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/bitlink_scans'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkScans|null + * + * @throws \Bitly\Exception\GetBitlinkScansBadRequestException + * @throws \Bitly\Exception\GetBitlinkScansForbiddenException + * @throws \Bitly\Exception\GetBitlinkScansNotFoundException + * @throws \Bitly\Exception\GetBitlinkScansGoneException + * @throws \Bitly\Exception\GetBitlinkScansInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkScansServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkScans', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinkScansSummary.php b/lib/Endpoint/GetBitlinkScansSummary.php new file mode 100644 index 0000000..a79c621 --- /dev/null +++ b/lib/Endpoint/GetBitlinkScansSummary.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/bitlink_scans/summary'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkScansSummary|null + * + * @throws \Bitly\Exception\GetBitlinkScansSummaryBadRequestException + * @throws \Bitly\Exception\GetBitlinkScansSummaryForbiddenException + * @throws \Bitly\Exception\GetBitlinkScansSummaryNotFoundException + * @throws \Bitly\Exception\GetBitlinkScansSummaryGoneException + * @throws \Bitly\Exception\GetBitlinkScansSummaryInternalServerErrorException + * @throws \Bitly\Exception\GetBitlinkScansSummaryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkScansSummary', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansSummaryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansSummaryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansSummaryNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansSummaryGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansSummaryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBitlinkScansSummaryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBitlinksByGroup.php b/lib/Endpoint/GetBitlinksByGroup.php index ee3eec4..178ce26 100644 --- a/lib/Endpoint/GetBitlinksByGroup.php +++ b/lib/Endpoint/GetBitlinksByGroup.php @@ -24,6 +24,7 @@ class GetBitlinksByGroup extends \Bitly\Runtime\Client\BaseEndpoint implements \ * @var int $size The quantity of items to be be returned * @var string $search_after token used to search next batch, only use response from API as input value * @var string $query The value that you would like to search + * @var string $hostname_path_query The hostname and/or path you would like to search (case-insensitive). Subdomains included; query params and fragment ignored. * @var int $created_before Timestamp as an integer unix epoch (seconds only) * @var int $created_after Timestamp as an integer unix epoch (seconds only) * @var string $archived Whether or not to include archived resources @@ -67,12 +68,13 @@ public function getExtraHeaders(): array protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['size', 'search_after', 'query', 'created_before', 'created_after', 'archived', 'deeplinks', 'domain_deeplinks', 'campaign_guid', 'channel_guid', 'custom_bitlink', 'has_qr_codes', 'tags', 'launchpad_ids', 'encoding_login']); + $optionsResolver->setDefined(['size', 'search_after', 'query', 'hostname_path_query', 'created_before', 'created_after', 'archived', 'deeplinks', 'domain_deeplinks', 'campaign_guid', 'channel_guid', 'custom_bitlink', 'has_qr_codes', 'tags', 'launchpad_ids', 'encoding_login']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['size' => 50, 'archived' => 'off', 'deeplinks' => 'both', 'domain_deeplinks' => 'both', 'custom_bitlink' => 'both', 'has_qr_codes' => 'both']); $optionsResolver->addAllowedTypes('size', ['int']); $optionsResolver->addAllowedTypes('search_after', ['string']); $optionsResolver->addAllowedTypes('query', ['string']); + $optionsResolver->addAllowedTypes('hostname_path_query', ['string']); $optionsResolver->addAllowedTypes('created_before', ['int']); $optionsResolver->addAllowedTypes('created_after', ['int']); $optionsResolver->addAllowedTypes('archived', ['string']); diff --git a/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByCities.php b/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByCities.php new file mode 100644 index 0000000..7e1d84c --- /dev/null +++ b/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByCities.php @@ -0,0 +1,110 @@ +site_id = $siteId; + $this->block_id = $blockId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{block_id}'], [$this->site_id, $this->block_id], '/sites/{site_id}/blocks/{block_id}/digital_business_card_downloads/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityDownloadMetrics|null + * + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesBadRequestException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesForbiddenException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesNotFoundException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesInternalServerErrorException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityDownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCitiesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByCountries.php b/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByCountries.php new file mode 100644 index 0000000..a4412c5 --- /dev/null +++ b/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByCountries.php @@ -0,0 +1,110 @@ +site_id = $siteId; + $this->block_id = $blockId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{block_id}'], [$this->site_id, $this->block_id], '/sites/{site_id}/blocks/{block_id}/digital_business_card_downloads/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadMetrics|null + * + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesBadRequestException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesForbiddenException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesNotFoundException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesInternalServerErrorException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByCountriesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByDevices.php b/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByDevices.php new file mode 100644 index 0000000..7371f71 --- /dev/null +++ b/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsByDevices.php @@ -0,0 +1,110 @@ +site_id = $siteId; + $this->block_id = $blockId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{block_id}'], [$this->site_id, $this->block_id], '/sites/{site_id}/blocks/{block_id}/digital_business_card_downloads/devices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DeviceDownloadMetrics|null + * + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesBadRequestException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesForbiddenException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesNotFoundException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesInternalServerErrorException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeviceDownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsByDevicesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsOverTime.php b/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsOverTime.php new file mode 100644 index 0000000..4e27312 --- /dev/null +++ b/lib/Endpoint/GetBlockDigitalBusinessCardDownloadsOverTime.php @@ -0,0 +1,110 @@ +site_id = $siteId; + $this->block_id = $blockId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{block_id}'], [$this->site_id, $this->block_id], '/sites/{site_id}/blocks/{block_id}/digital_business_card_downloads/over_time'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadsOverTime|null + * + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeNotFoundException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadsOverTime', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBlockDigitalBusinessCardDownloadsOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBrandCampaign.php b/lib/Endpoint/GetBrandCampaign.php new file mode 100644 index 0000000..5c43cbc --- /dev/null +++ b/lib/Endpoint/GetBrandCampaign.php @@ -0,0 +1,80 @@ +group_guid = $groupGuid; + $this->campaign_guid = $campaignGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{campaign_guid}'], [$this->group_guid, $this->campaign_guid], '/private/groups/{group_guid}/campaigns/{campaign_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BrandCampaign|null + * + * @throws \Bitly\Exception\GetBrandCampaignBadRequestException + * @throws \Bitly\Exception\GetBrandCampaignUnprocessableEntityException + * @throws \Bitly\Exception\GetBrandCampaignInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BrandCampaign', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBrandCampaignBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBrandCampaignUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBrandCampaignInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetBulkUploads.php b/lib/Endpoint/GetBulkUploads.php new file mode 100644 index 0000000..221e5b3 --- /dev/null +++ b/lib/Endpoint/GetBulkUploads.php @@ -0,0 +1,105 @@ +organization_guid = $organizationGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/bulk_upload/{organization_guid}/uploads'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['upload_type']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('upload_type', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BulkUploads|null + * + * @throws \Bitly\Exception\GetBulkUploadsBadRequestException + * @throws \Bitly\Exception\GetBulkUploadsPaymentRequiredException + * @throws \Bitly\Exception\GetBulkUploadsForbiddenException + * @throws \Bitly\Exception\GetBulkUploadsNotFoundException + * @throws \Bitly\Exception\GetBulkUploadsInternalServerErrorException + * @throws \Bitly\Exception\GetBulkUploadsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BulkUploads', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBulkUploadsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBulkUploadsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBulkUploadsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBulkUploadsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBulkUploadsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetBulkUploadsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetButtonClicks.php b/lib/Endpoint/GetButtonClicks.php new file mode 100644 index 0000000..6b0a189 --- /dev/null +++ b/lib/Endpoint/GetButtonClicks.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/button_clicks'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ButtonClicks|null + * + * @throws \Bitly\Exception\GetButtonClicksBadRequestException + * @throws \Bitly\Exception\GetButtonClicksForbiddenException + * @throws \Bitly\Exception\GetButtonClicksNotFoundException + * @throws \Bitly\Exception\GetButtonClicksGoneException + * @throws \Bitly\Exception\GetButtonClicksInternalServerErrorException + * @throws \Bitly\Exception\GetButtonClicksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ButtonClicks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetButtonClicksSummary.php b/lib/Endpoint/GetButtonClicksSummary.php new file mode 100644 index 0000000..e5ea0f5 --- /dev/null +++ b/lib/Endpoint/GetButtonClicksSummary.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/button_clicks/summary'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ButtonClicksSummary|null + * + * @throws \Bitly\Exception\GetButtonClicksSummaryBadRequestException + * @throws \Bitly\Exception\GetButtonClicksSummaryForbiddenException + * @throws \Bitly\Exception\GetButtonClicksSummaryNotFoundException + * @throws \Bitly\Exception\GetButtonClicksSummaryGoneException + * @throws \Bitly\Exception\GetButtonClicksSummaryInternalServerErrorException + * @throws \Bitly\Exception\GetButtonClicksSummaryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ButtonClicksSummary', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksSummaryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksSummaryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksSummaryNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksSummaryGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksSummaryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetButtonClicksSummaryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetCampaignClicks.php b/lib/Endpoint/GetCampaignClicks.php new file mode 100644 index 0000000..97f49f9 --- /dev/null +++ b/lib/Endpoint/GetCampaignClicks.php @@ -0,0 +1,113 @@ +campaign_guid = $campaignGuid; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{campaign_guid}'], [$this->campaign_guid], '/campaigns/{campaign_guid}/clicks'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CampaignClicks|null + * + * @throws \Bitly\Exception\GetCampaignClicksPaymentRequiredException + * @throws \Bitly\Exception\GetCampaignClicksForbiddenException + * @throws \Bitly\Exception\GetCampaignClicksNotFoundException + * @throws \Bitly\Exception\GetCampaignClicksInternalServerErrorException + * @throws \Bitly\Exception\GetCampaignClicksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CampaignClicks', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCampaignClicksPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCampaignClicksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCampaignClicksNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCampaignClicksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCampaignClicksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetCanvaUserBrand.php b/lib/Endpoint/GetCanvaUserBrand.php new file mode 100644 index 0000000..7d2dfd6 --- /dev/null +++ b/lib/Endpoint/GetCanvaUserBrand.php @@ -0,0 +1,77 @@ +canvaUserID = $canvaUserID; + $this->canvaBrandID = $canvaBrandID; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{canvaUserID}', '{canvaBrandID}'], [$this->canvaUserID, $this->canvaBrandID], '/canva/userbrand/{canvaUserID}/{canvaBrandID}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PublicCanvaUserBrand|null + * + * @throws \Bitly\Exception\GetCanvaUserBrandBadRequestException + * @throws \Bitly\Exception\GetCanvaUserBrandNotFoundException + * @throws \Bitly\Exception\GetCanvaUserBrandInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PublicCanvaUserBrand', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCanvaUserBrandBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCanvaUserBrandNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCanvaUserBrandInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetChildrenForBlock.php b/lib/Endpoint/GetChildrenForBlock.php new file mode 100644 index 0000000..a2a8913 --- /dev/null +++ b/lib/Endpoint/GetChildrenForBlock.php @@ -0,0 +1,84 @@ +site_id = $siteId; + $this->container_id = $containerId; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{container_id}'], [$this->site_id, $this->container_id], '/sites/{site_id}/containers/{container_id}/blocks'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SiteBlock[]|null + * + * @throws \Bitly\Exception\GetChildrenForBlockForbiddenException + * @throws \Bitly\Exception\GetChildrenForBlockNotFoundException + * @throws \Bitly\Exception\GetChildrenForBlockInternalServerErrorException + * @throws \Bitly\Exception\GetChildrenForBlockServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteBlock[]', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetChildrenForBlockForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetChildrenForBlockNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetChildrenForBlockInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetChildrenForBlockServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetConsumableFeatures.php b/lib/Endpoint/GetConsumableFeatures.php new file mode 100644 index 0000000..2a3cf3e --- /dev/null +++ b/lib/Endpoint/GetConsumableFeatures.php @@ -0,0 +1,77 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/consumable_features'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ConsumableFeatures|null + * + * @throws \Bitly\Exception\GetConsumableFeaturesForbiddenException + * @throws \Bitly\Exception\GetConsumableFeaturesConflictException + * @throws \Bitly\Exception\GetConsumableFeaturesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ConsumableFeatures', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetConsumableFeaturesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetConsumableFeaturesConflictException($response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetConsumableFeaturesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetCountryCallingCodes.php b/lib/Endpoint/GetCountryCallingCodes.php new file mode 100644 index 0000000..38dc4ea --- /dev/null +++ b/lib/Endpoint/GetCountryCallingCodes.php @@ -0,0 +1,86 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/two_factor/country_calling_codes'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['sort_by']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('sort_by', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CountryCode[]|null + * + * @throws \Bitly\Exception\GetCountryCallingCodesBadRequestException + * @throws \Bitly\Exception\GetCountryCallingCodesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CountryCode[]', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCountryCallingCodesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCountryCallingCodesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetCurrency.php b/lib/Endpoint/GetCurrency.php new file mode 100644 index 0000000..5fb5393 --- /dev/null +++ b/lib/Endpoint/GetCurrency.php @@ -0,0 +1,67 @@ +currency = $currency; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{currency}'], [$this->currency], '/currency/{currency}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SupportedCurrency|null + * + * @throws \Bitly\Exception\GetCurrencyInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SupportedCurrency', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCurrencyInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetCurrencyList.php b/lib/Endpoint/GetCurrencyList.php new file mode 100644 index 0000000..4955bf4 --- /dev/null +++ b/lib/Endpoint/GetCurrencyList.php @@ -0,0 +1,58 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\CurrencyList|null + * + * @throws \Bitly\Exception\GetCurrencyListInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CurrencyList', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCurrencyListInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetCustomDomain.php b/lib/Endpoint/GetCustomDomain.php new file mode 100644 index 0000000..86eb201 --- /dev/null +++ b/lib/Endpoint/GetCustomDomain.php @@ -0,0 +1,81 @@ +custom_domain = $customDomain; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{custom_domain}'], [$this->custom_domain], '/custom_domains/{custom_domain}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\CustomDomainBody|null + * + * @throws \Bitly\Exception\GetCustomDomainForbiddenException + * @throws \Bitly\Exception\GetCustomDomainNotFoundException + * @throws \Bitly\Exception\GetCustomDomainInternalServerErrorException + * @throws \Bitly\Exception\GetCustomDomainServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CustomDomainBody', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCustomDomainForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCustomDomainNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCustomDomainInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCustomDomainServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetCustomDomains.php b/lib/Endpoint/GetCustomDomains.php new file mode 100644 index 0000000..8762166 --- /dev/null +++ b/lib/Endpoint/GetCustomDomains.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/custom_domains'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CustomDomains|null + * + * @throws \Bitly\Exception\GetCustomDomainsForbiddenException + * @throws \Bitly\Exception\GetCustomDomainsUnprocessableEntityException + * @throws \Bitly\Exception\GetCustomDomainsInternalServerErrorException + * @throws \Bitly\Exception\GetCustomDomainsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CustomDomains', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCustomDomainsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCustomDomainsUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCustomDomainsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetCustomDomainsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetDeeplinkApp.php b/lib/Endpoint/GetDeeplinkApp.php new file mode 100644 index 0000000..24130b9 --- /dev/null +++ b/lib/Endpoint/GetDeeplinkApp.php @@ -0,0 +1,81 @@ +deeplink_app_guid = $deeplinkAppGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{deeplink_app_guid}'], [$this->deeplink_app_guid], '/deeplinks/apps/{deeplink_app_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DeeplinkApp|null + * + * @throws \Bitly\Exception\GetDeeplinkAppForbiddenException + * @throws \Bitly\Exception\GetDeeplinkAppNotFoundException + * @throws \Bitly\Exception\GetDeeplinkAppInternalServerErrorException + * @throws \Bitly\Exception\GetDeeplinkAppServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeeplinkApp', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkAppForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkAppNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkAppInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkAppServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetDeeplinkApps.php b/lib/Endpoint/GetDeeplinkApps.php new file mode 100644 index 0000000..46852f6 --- /dev/null +++ b/lib/Endpoint/GetDeeplinkApps.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/deeplinks/apps'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DeeplinkApps|null + * + * @throws \Bitly\Exception\GetDeeplinkAppsForbiddenException + * @throws \Bitly\Exception\GetDeeplinkAppsInternalServerErrorException + * @throws \Bitly\Exception\GetDeeplinkAppsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeeplinkApps', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkAppsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkAppsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkAppsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetDeeplinkMetricsRollup.php b/lib/Endpoint/GetDeeplinkMetricsRollup.php new file mode 100644 index 0000000..752fe9a --- /dev/null +++ b/lib/Endpoint/GetDeeplinkMetricsRollup.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/deeplinks/bitlinks/{bitlink}/metrics/rollup'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DeeplinkMetricsRollup|null + * + * @throws \Bitly\Exception\GetDeeplinkMetricsRollupPaymentRequiredException + * @throws \Bitly\Exception\GetDeeplinkMetricsRollupForbiddenException + * @throws \Bitly\Exception\GetDeeplinkMetricsRollupNotFoundException + * @throws \Bitly\Exception\GetDeeplinkMetricsRollupGoneException + * @throws \Bitly\Exception\GetDeeplinkMetricsRollupInternalServerErrorException + * @throws \Bitly\Exception\GetDeeplinkMetricsRollupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeeplinkMetricsRollup', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkMetricsRollupPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkMetricsRollupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkMetricsRollupNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkMetricsRollupGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkMetricsRollupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkMetricsRollupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetDeeplinkRules.php b/lib/Endpoint/GetDeeplinkRules.php new file mode 100644 index 0000000..8fa0961 --- /dev/null +++ b/lib/Endpoint/GetDeeplinkRules.php @@ -0,0 +1,89 @@ +bitlink = $bitlink; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/deeplinks/bitlinks/{bitlink}/rules'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DeeplinkRules|null + * + * @throws \Bitly\Exception\GetDeeplinkRulesPaymentRequiredException + * @throws \Bitly\Exception\GetDeeplinkRulesForbiddenException + * @throws \Bitly\Exception\GetDeeplinkRulesNotFoundException + * @throws \Bitly\Exception\GetDeeplinkRulesTooManyRequestsException + * @throws \Bitly\Exception\GetDeeplinkRulesInternalServerErrorException + * @throws \Bitly\Exception\GetDeeplinkRulesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeeplinkRules', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkRulesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkRulesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkRulesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkRulesTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkRulesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDeeplinkRulesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetDomainRegistrarInfo.php b/lib/Endpoint/GetDomainRegistrarInfo.php new file mode 100644 index 0000000..9eb96cb --- /dev/null +++ b/lib/Endpoint/GetDomainRegistrarInfo.php @@ -0,0 +1,72 @@ +domain = $domain; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{domain}'], [$this->domain], '/domains/{domain}/registrar_info'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DomainRegistrarInfo|null + * + * @throws \Bitly\Exception\GetDomainRegistrarInfoInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DomainRegistrarInfo', 'json'); + } + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetDomainRegistrarInfoInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetDynamicTranslation.php b/lib/Endpoint/GetDynamicTranslation.php new file mode 100644 index 0000000..8242cd6 --- /dev/null +++ b/lib/Endpoint/GetDynamicTranslation.php @@ -0,0 +1,65 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/private/translation'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\TranslationRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetEngagements.php b/lib/Endpoint/GetEngagements.php new file mode 100644 index 0000000..46e30d3 --- /dev/null +++ b/lib/Endpoint/GetEngagements.php @@ -0,0 +1,117 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/engagements'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\TotalEngagements|null + * + * @throws \Bitly\Exception\GetEngagementsBadRequestException + * @throws \Bitly\Exception\GetEngagementsForbiddenException + * @throws \Bitly\Exception\GetEngagementsNotFoundException + * @throws \Bitly\Exception\GetEngagementsGoneException + * @throws \Bitly\Exception\GetEngagementsInternalServerErrorException + * @throws \Bitly\Exception\GetEngagementsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\TotalEngagements', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetEngagementsSample.php b/lib/Endpoint/GetEngagementsSample.php new file mode 100644 index 0000000..b773574 --- /dev/null +++ b/lib/Endpoint/GetEngagementsSample.php @@ -0,0 +1,97 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/engagements_sample'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupClicks|null + * + * @throws \Bitly\Exception\GetEngagementsSampleBadRequestException + * @throws \Bitly\Exception\GetEngagementsSampleForbiddenException + * @throws \Bitly\Exception\GetEngagementsSampleInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupClicks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSampleBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSampleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSampleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetEngagementsSummary.php b/lib/Endpoint/GetEngagementsSummary.php new file mode 100644 index 0000000..672e29c --- /dev/null +++ b/lib/Endpoint/GetEngagementsSummary.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/engagements/summary'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\TotalEngagementsSummary|null + * + * @throws \Bitly\Exception\GetEngagementsSummaryBadRequestException + * @throws \Bitly\Exception\GetEngagementsSummaryForbiddenException + * @throws \Bitly\Exception\GetEngagementsSummaryNotFoundException + * @throws \Bitly\Exception\GetEngagementsSummaryGoneException + * @throws \Bitly\Exception\GetEngagementsSummaryInternalServerErrorException + * @throws \Bitly\Exception\GetEngagementsSummaryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\TotalEngagementsSummary', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSummaryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSummaryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSummaryNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSummaryGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSummaryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetEngagementsSummaryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetFocus.php b/lib/Endpoint/GetFocus.php new file mode 100644 index 0000000..f2464f1 --- /dev/null +++ b/lib/Endpoint/GetFocus.php @@ -0,0 +1,58 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\GetFocusResponse|null + * + * @throws \Bitly\Exception\GetFocusInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GetFocusResponse', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetFocusInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupBitlinksCount.php b/lib/Endpoint/GetGroupBitlinksCount.php new file mode 100644 index 0000000..739f3cd --- /dev/null +++ b/lib/Endpoint/GetGroupBitlinksCount.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/bitlinks_count'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupBitlinksCount|null + * + * @throws \Bitly\Exception\GetGroupBitlinksCountBadRequestException + * @throws \Bitly\Exception\GetGroupBitlinksCountPaymentRequiredException + * @throws \Bitly\Exception\GetGroupBitlinksCountForbiddenException + * @throws \Bitly\Exception\GetGroupBitlinksCountInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupBitlinksCount', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupBitlinksCountRollup.php b/lib/Endpoint/GetGroupBitlinksCountRollup.php new file mode 100644 index 0000000..78fe0f3 --- /dev/null +++ b/lib/Endpoint/GetGroupBitlinksCountRollup.php @@ -0,0 +1,109 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/bitlinks_count/rollup'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupBitlinksCountRollup|null + * + * @throws \Bitly\Exception\GetGroupBitlinksCountRollupBadRequestException + * @throws \Bitly\Exception\GetGroupBitlinksCountRollupPaymentRequiredException + * @throws \Bitly\Exception\GetGroupBitlinksCountRollupForbiddenException + * @throws \Bitly\Exception\GetGroupBitlinksCountRollupTooManyRequestsException + * @throws \Bitly\Exception\GetGroupBitlinksCountRollupInternalServerErrorException + * @throws \Bitly\Exception\GetGroupBitlinksCountRollupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupBitlinksCountRollup', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountRollupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountRollupPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountRollupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountRollupTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountRollupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupBitlinksCountRollupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupButtonClicksByCity.php b/lib/Endpoint/GetGroupButtonClicksByCity.php new file mode 100644 index 0000000..6b84688 --- /dev/null +++ b/lib/Endpoint/GetGroupButtonClicksByCity.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/clicks/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityMetrics|null + * + * @throws \Bitly\Exception\GetGroupButtonClicksByCityBadRequestException + * @throws \Bitly\Exception\GetGroupButtonClicksByCityForbiddenException + * @throws \Bitly\Exception\GetGroupButtonClicksByCityInternalServerErrorException + * @throws \Bitly\Exception\GetGroupButtonClicksByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupButtonClicksByCountry.php b/lib/Endpoint/GetGroupButtonClicksByCountry.php new file mode 100644 index 0000000..4296d62 --- /dev/null +++ b/lib/Endpoint/GetGroupButtonClicksByCountry.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/clicks/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClickMetrics|null + * + * @throws \Bitly\Exception\GetGroupButtonClicksByCountryBadRequestException + * @throws \Bitly\Exception\GetGroupButtonClicksByCountryForbiddenException + * @throws \Bitly\Exception\GetGroupButtonClicksByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetGroupButtonClicksByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClickMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupButtonClicksByDevice.php b/lib/Endpoint/GetGroupButtonClicksByDevice.php new file mode 100644 index 0000000..7162b9a --- /dev/null +++ b/lib/Endpoint/GetGroupButtonClicksByDevice.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/clicks/devices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DeviceMetrics|null + * + * @throws \Bitly\Exception\GetGroupButtonClicksByDeviceBadRequestException + * @throws \Bitly\Exception\GetGroupButtonClicksByDeviceForbiddenException + * @throws \Bitly\Exception\GetGroupButtonClicksByDeviceInternalServerErrorException + * @throws \Bitly\Exception\GetGroupButtonClicksByDeviceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeviceMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByDeviceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByDeviceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByDeviceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksByDeviceServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupButtonClicksOverTime.php b/lib/Endpoint/GetGroupButtonClicksOverTime.php new file mode 100644 index 0000000..c9cb7c8 --- /dev/null +++ b/lib/Endpoint/GetGroupButtonClicksOverTime.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/clicks/over_time'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupClicks|null + * + * @throws \Bitly\Exception\GetGroupButtonClicksOverTimeBadRequestException + * @throws \Bitly\Exception\GetGroupButtonClicksOverTimeForbiddenException + * @throws \Bitly\Exception\GetGroupButtonClicksOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetGroupButtonClicksOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupClicks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupButtonClicksOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupClicksByFacet.php b/lib/Endpoint/GetGroupClicksByFacet.php new file mode 100644 index 0000000..b2d1499 --- /dev/null +++ b/lib/Endpoint/GetGroupClicksByFacet.php @@ -0,0 +1,110 @@ +group_guid = $groupGuid; + $this->facet = $facet; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{facet}'], [$this->group_guid, $this->facet], '/groups/{group_guid}/clicks/{facet}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['limit', 'unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupClicksByFacet|null + * + * @throws \Bitly\Exception\GetGroupClicksByFacetBadRequestException + * @throws \Bitly\Exception\GetGroupClicksByFacetPaymentRequiredException + * @throws \Bitly\Exception\GetGroupClicksByFacetForbiddenException + * @throws \Bitly\Exception\GetGroupClicksByFacetInternalServerErrorException + * @throws \Bitly\Exception\GetGroupClicksByFacetServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupClicksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupClicksByFacetRollup.php b/lib/Endpoint/GetGroupClicksByFacetRollup.php new file mode 100644 index 0000000..0b7eee6 --- /dev/null +++ b/lib/Endpoint/GetGroupClicksByFacetRollup.php @@ -0,0 +1,110 @@ +group_guid = $groupGuid; + $this->facet = $facet; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{facet}'], [$this->group_guid, $this->facet], '/groups/{group_guid}/clicks/{facet}/rollup'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['limit', 'unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['limit' => 100]); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupClicksByFacetRollup|null + * + * @throws \Bitly\Exception\GetGroupClicksByFacetRollupBadRequestException + * @throws \Bitly\Exception\GetGroupClicksByFacetRollupPaymentRequiredException + * @throws \Bitly\Exception\GetGroupClicksByFacetRollupForbiddenException + * @throws \Bitly\Exception\GetGroupClicksByFacetRollupInternalServerErrorException + * @throws \Bitly\Exception\GetGroupClicksByFacetRollupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupClicksByFacetRollup', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetRollupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetRollupPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetRollupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetRollupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupClicksByFacetRollupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupCodeScansByCity.php b/lib/Endpoint/GetGroupCodeScansByCity.php new file mode 100644 index 0000000..9f79114 --- /dev/null +++ b/lib/Endpoint/GetGroupCodeScansByCity.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/codes/scans/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityMetrics|null + * + * @throws \Bitly\Exception\GetGroupCodeScansByCityBadRequestException + * @throws \Bitly\Exception\GetGroupCodeScansByCityForbiddenException + * @throws \Bitly\Exception\GetGroupCodeScansByCityInternalServerErrorException + * @throws \Bitly\Exception\GetGroupCodeScansByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupCodeScansByCountry.php b/lib/Endpoint/GetGroupCodeScansByCountry.php new file mode 100644 index 0000000..c75cb21 --- /dev/null +++ b/lib/Endpoint/GetGroupCodeScansByCountry.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/codes/scans/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClickMetrics|null + * + * @throws \Bitly\Exception\GetGroupCodeScansByCountryBadRequestException + * @throws \Bitly\Exception\GetGroupCodeScansByCountryForbiddenException + * @throws \Bitly\Exception\GetGroupCodeScansByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetGroupCodeScansByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClickMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupCodeScansOverTime.php b/lib/Endpoint/GetGroupCodeScansOverTime.php new file mode 100644 index 0000000..383b0a7 --- /dev/null +++ b/lib/Endpoint/GetGroupCodeScansOverTime.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/codes/scans/over_time'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupClicks|null + * + * @throws \Bitly\Exception\GetGroupCodeScansOverTimeBadRequestException + * @throws \Bitly\Exception\GetGroupCodeScansOverTimeForbiddenException + * @throws \Bitly\Exception\GetGroupCodeScansOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetGroupCodeScansOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupClicks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupCodeScansOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByBlocks.php b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByBlocks.php new file mode 100644 index 0000000..4f38528 --- /dev/null +++ b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByBlocks.php @@ -0,0 +1,107 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/digital_business_card_downloads/blocks'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadMetrics|null + * + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksBadRequestException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksForbiddenException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksNotFoundException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksInternalServerErrorException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByBlocksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByCities.php b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByCities.php new file mode 100644 index 0000000..8015038 --- /dev/null +++ b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByCities.php @@ -0,0 +1,107 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/digital_business_card_downloads/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityDownloadMetrics|null + * + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesBadRequestException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesForbiddenException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesNotFoundException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesInternalServerErrorException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityDownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCitiesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByCountries.php b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByCountries.php new file mode 100644 index 0000000..13888d8 --- /dev/null +++ b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByCountries.php @@ -0,0 +1,107 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/digital_business_card_downloads/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadMetrics|null + * + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesBadRequestException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesForbiddenException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesNotFoundException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesInternalServerErrorException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByCountriesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByDevices.php b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByDevices.php new file mode 100644 index 0000000..6829b1f --- /dev/null +++ b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByDevices.php @@ -0,0 +1,107 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/digital_business_card_downloads/devices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DeviceDownloadMetrics|null + * + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesBadRequestException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesForbiddenException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesNotFoundException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesInternalServerErrorException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeviceDownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByDevicesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByMicrosites.php b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByMicrosites.php new file mode 100644 index 0000000..b8fe104 --- /dev/null +++ b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsByMicrosites.php @@ -0,0 +1,107 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/digital_business_card_downloads/pages'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadMetrics|null + * + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesBadRequestException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesForbiddenException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesNotFoundException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesInternalServerErrorException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsByMicrositesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsOverTime.php b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsOverTime.php new file mode 100644 index 0000000..ef13093 --- /dev/null +++ b/lib/Endpoint/GetGroupDigitalBusinessCardDownloadsOverTime.php @@ -0,0 +1,107 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/digital_business_card_downloads/over_time'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadsOverTime|null + * + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeNotFoundException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadsOverTime', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupDigitalBusinessCardDownloadsOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupLinkClicksByCity.php b/lib/Endpoint/GetGroupLinkClicksByCity.php new file mode 100644 index 0000000..fa36d23 --- /dev/null +++ b/lib/Endpoint/GetGroupLinkClicksByCity.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/links/clicks/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityMetrics|null + * + * @throws \Bitly\Exception\GetGroupLinkClicksByCityBadRequestException + * @throws \Bitly\Exception\GetGroupLinkClicksByCityForbiddenException + * @throws \Bitly\Exception\GetGroupLinkClicksByCityInternalServerErrorException + * @throws \Bitly\Exception\GetGroupLinkClicksByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupLinkClicksByCountry.php b/lib/Endpoint/GetGroupLinkClicksByCountry.php new file mode 100644 index 0000000..35fab97 --- /dev/null +++ b/lib/Endpoint/GetGroupLinkClicksByCountry.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/links/clicks/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClickMetrics|null + * + * @throws \Bitly\Exception\GetGroupLinkClicksByCountryBadRequestException + * @throws \Bitly\Exception\GetGroupLinkClicksByCountryForbiddenException + * @throws \Bitly\Exception\GetGroupLinkClicksByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetGroupLinkClicksByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClickMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupLinkClicksByDevice.php b/lib/Endpoint/GetGroupLinkClicksByDevice.php new file mode 100644 index 0000000..2be4bb2 --- /dev/null +++ b/lib/Endpoint/GetGroupLinkClicksByDevice.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/links/clicks/devices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200|null + * + * @throws \Bitly\Exception\GetGroupLinkClicksByDeviceBadRequestException + * @throws \Bitly\Exception\GetGroupLinkClicksByDeviceForbiddenException + * @throws \Bitly\Exception\GetGroupLinkClicksByDeviceInternalServerErrorException + * @throws \Bitly\Exception\GetGroupLinkClicksByDeviceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByDeviceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByDeviceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByDeviceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByDeviceServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupLinkClicksByReferrer.php b/lib/Endpoint/GetGroupLinkClicksByReferrer.php new file mode 100644 index 0000000..6bbe313 --- /dev/null +++ b/lib/Endpoint/GetGroupLinkClicksByReferrer.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/links/clicks/referrers'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClickMetrics|null + * + * @throws \Bitly\Exception\GetGroupLinkClicksByReferrerBadRequestException + * @throws \Bitly\Exception\GetGroupLinkClicksByReferrerForbiddenException + * @throws \Bitly\Exception\GetGroupLinkClicksByReferrerInternalServerErrorException + * @throws \Bitly\Exception\GetGroupLinkClicksByReferrerServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClickMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByReferrerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByReferrerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByReferrerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksByReferrerServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupLinkClicksOverTime.php b/lib/Endpoint/GetGroupLinkClicksOverTime.php new file mode 100644 index 0000000..5dc363d --- /dev/null +++ b/lib/Endpoint/GetGroupLinkClicksOverTime.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/links/clicks/over_time'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupClicks|null + * + * @throws \Bitly\Exception\GetGroupLinkClicksOverTimeBadRequestException + * @throws \Bitly\Exception\GetGroupLinkClicksOverTimeForbiddenException + * @throws \Bitly\Exception\GetGroupLinkClicksOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetGroupLinkClicksOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupClicks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupLinkClicksOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupPageViewsByCity.php b/lib/Endpoint/GetGroupPageViewsByCity.php new file mode 100644 index 0000000..5919a9d --- /dev/null +++ b/lib/Endpoint/GetGroupPageViewsByCity.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/views/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityMetrics|null + * + * @throws \Bitly\Exception\GetGroupPageViewsByCityBadRequestException + * @throws \Bitly\Exception\GetGroupPageViewsByCityForbiddenException + * @throws \Bitly\Exception\GetGroupPageViewsByCityInternalServerErrorException + * @throws \Bitly\Exception\GetGroupPageViewsByCityServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByCityBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByCityForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByCityInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByCityServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupPageViewsByCountry.php b/lib/Endpoint/GetGroupPageViewsByCountry.php new file mode 100644 index 0000000..bba63ae --- /dev/null +++ b/lib/Endpoint/GetGroupPageViewsByCountry.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/views/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClickMetrics|null + * + * @throws \Bitly\Exception\GetGroupPageViewsByCountryBadRequestException + * @throws \Bitly\Exception\GetGroupPageViewsByCountryForbiddenException + * @throws \Bitly\Exception\GetGroupPageViewsByCountryInternalServerErrorException + * @throws \Bitly\Exception\GetGroupPageViewsByCountryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClickMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByCountryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByCountryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByCountryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByCountryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupPageViewsByDevice.php b/lib/Endpoint/GetGroupPageViewsByDevice.php new file mode 100644 index 0000000..7abe7ec --- /dev/null +++ b/lib/Endpoint/GetGroupPageViewsByDevice.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/views/devices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DeviceMetrics|null + * + * @throws \Bitly\Exception\GetGroupPageViewsByDeviceBadRequestException + * @throws \Bitly\Exception\GetGroupPageViewsByDeviceForbiddenException + * @throws \Bitly\Exception\GetGroupPageViewsByDeviceInternalServerErrorException + * @throws \Bitly\Exception\GetGroupPageViewsByDeviceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeviceMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByDeviceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByDeviceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByDeviceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByDeviceServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupPageViewsByReferrer.php b/lib/Endpoint/GetGroupPageViewsByReferrer.php new file mode 100644 index 0000000..5b78ccf --- /dev/null +++ b/lib/Endpoint/GetGroupPageViewsByReferrer.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/views/referrers'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClickMetrics|null + * + * @throws \Bitly\Exception\GetGroupPageViewsByReferrerBadRequestException + * @throws \Bitly\Exception\GetGroupPageViewsByReferrerForbiddenException + * @throws \Bitly\Exception\GetGroupPageViewsByReferrerInternalServerErrorException + * @throws \Bitly\Exception\GetGroupPageViewsByReferrerServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClickMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByReferrerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByReferrerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByReferrerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsByReferrerServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupPageViewsOverTime.php b/lib/Endpoint/GetGroupPageViewsOverTime.php new file mode 100644 index 0000000..096e990 --- /dev/null +++ b/lib/Endpoint/GetGroupPageViewsOverTime.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/views/over_time'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupClicks|null + * + * @throws \Bitly\Exception\GetGroupPageViewsOverTimeBadRequestException + * @throws \Bitly\Exception\GetGroupPageViewsOverTimeForbiddenException + * @throws \Bitly\Exception\GetGroupPageViewsOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetGroupPageViewsOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupClicks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPageViewsOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupPagesOverview.php b/lib/Endpoint/GetGroupPagesOverview.php new file mode 100644 index 0000000..d6c55da --- /dev/null +++ b/lib/Endpoint/GetGroupPagesOverview.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/overview'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\GroupsGroupGuidPagesOverviewGetResponse200|null + * + * @throws \Bitly\Exception\GetGroupPagesOverviewBadRequestException + * @throws \Bitly\Exception\GetGroupPagesOverviewForbiddenException + * @throws \Bitly\Exception\GetGroupPagesOverviewInternalServerErrorException + * @throws \Bitly\Exception\GetGroupPagesOverviewServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GroupsGroupGuidPagesOverviewGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPagesOverviewBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPagesOverviewForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPagesOverviewInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupPagesOverviewServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupTopButtonClicks.php b/lib/Endpoint/GetGroupTopButtonClicks.php new file mode 100644 index 0000000..46166f4 --- /dev/null +++ b/lib/Endpoint/GetGroupTopButtonClicks.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/pages/clicks/top'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedButtons|null + * + * @throws \Bitly\Exception\GetGroupTopButtonClicksBadRequestException + * @throws \Bitly\Exception\GetGroupTopButtonClicksForbiddenException + * @throws \Bitly\Exception\GetGroupTopButtonClicksInternalServerErrorException + * @throws \Bitly\Exception\GetGroupTopButtonClicksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedButtons', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopButtonClicksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopButtonClicksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopButtonClicksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopButtonClicksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupTopCodeScans.php b/lib/Endpoint/GetGroupTopCodeScans.php new file mode 100644 index 0000000..b50eb0e --- /dev/null +++ b/lib/Endpoint/GetGroupTopCodeScans.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/codes/scans/top'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedLinks|null + * + * @throws \Bitly\Exception\GetGroupTopCodeScansBadRequestException + * @throws \Bitly\Exception\GetGroupTopCodeScansForbiddenException + * @throws \Bitly\Exception\GetGroupTopCodeScansInternalServerErrorException + * @throws \Bitly\Exception\GetGroupTopCodeScansServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedLinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopCodeScansBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopCodeScansForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopCodeScansInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopCodeScansServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupTopLinkClicks.php b/lib/Endpoint/GetGroupTopLinkClicks.php new file mode 100644 index 0000000..32c13ff --- /dev/null +++ b/lib/Endpoint/GetGroupTopLinkClicks.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/links/clicks/top'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedLinks|null + * + * @throws \Bitly\Exception\GetGroupTopLinkClicksBadRequestException + * @throws \Bitly\Exception\GetGroupTopLinkClicksForbiddenException + * @throws \Bitly\Exception\GetGroupTopLinkClicksInternalServerErrorException + * @throws \Bitly\Exception\GetGroupTopLinkClicksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedLinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopLinkClicksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopLinkClicksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopLinkClicksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupTopLinkClicksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetGroupsByLogin.php b/lib/Endpoint/GetGroupsByLogin.php new file mode 100644 index 0000000..b0e63cf --- /dev/null +++ b/lib/Endpoint/GetGroupsByLogin.php @@ -0,0 +1,73 @@ +login = $login; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{login}'], [$this->login], '/users/{login}/groups'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Groups|null + * + * @throws \Bitly\Exception\GetGroupsByLoginForbiddenException + * @throws \Bitly\Exception\GetGroupsByLoginInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Groups', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupsByLoginForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetGroupsByLoginInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetImageByGUID.php b/lib/Endpoint/GetImageByGUID.php new file mode 100644 index 0000000..c8f7ee1 --- /dev/null +++ b/lib/Endpoint/GetImageByGUID.php @@ -0,0 +1,91 @@ +image_guid = $imageGuid; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{image_guid}'], [$this->image_guid], '/images/{image_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['image/*', 'application/json']]; + } + + return $this->accept; + } + + /** + * @return null + * + * @throws \Bitly\Exception\GetImageByGUIDBadRequestException + * @throws \Bitly\Exception\GetImageByGUIDForbiddenException + * @throws \Bitly\Exception\GetImageByGUIDNotFoundException + * @throws \Bitly\Exception\GetImageByGUIDInternalServerErrorException + * @throws \Bitly\Exception\GetImageByGUIDServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetImageByGUIDBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetImageByGUIDForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetImageByGUIDNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetImageByGUIDInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetImageByGUIDServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetIntegrationOAuthsByClientID.php b/lib/Endpoint/GetIntegrationOAuthsByClientID.php new file mode 100644 index 0000000..5f1b1f6 --- /dev/null +++ b/lib/Endpoint/GetIntegrationOAuthsByClientID.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/integration_oauths'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['client_id']); + $optionsResolver->setRequired(['client_id']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('client_id', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\IntegrationOAuths|null + * + * @throws \Bitly\Exception\GetIntegrationOAuthsByClientIDBadRequestException + * @throws \Bitly\Exception\GetIntegrationOAuthsByClientIDInternalServerErrorException + * @throws \Bitly\Exception\GetIntegrationOAuthsByClientIDServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\IntegrationOAuths', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetIntegrationOAuthsByClientIDBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetIntegrationOAuthsByClientIDInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetIntegrationOAuthsByClientIDServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetInvitations.php b/lib/Endpoint/GetInvitations.php new file mode 100644 index 0000000..447597b --- /dev/null +++ b/lib/Endpoint/GetInvitations.php @@ -0,0 +1,73 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/invitations'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Invitations|null + * + * @throws \Bitly\Exception\GetInvitationsForbiddenException + * @throws \Bitly\Exception\GetInvitationsInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Invitations', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetInvitationsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetInvitationsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetInvitationsByLogin.php b/lib/Endpoint/GetInvitationsByLogin.php new file mode 100644 index 0000000..1c69d29 --- /dev/null +++ b/lib/Endpoint/GetInvitationsByLogin.php @@ -0,0 +1,77 @@ +login = $login; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{login}'], [$this->login], '/users/{login}/invitations'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\InvitationsForLogin|null + * + * @throws \Bitly\Exception\GetInvitationsByLoginBadRequestException + * @throws \Bitly\Exception\GetInvitationsByLoginForbiddenException + * @throws \Bitly\Exception\GetInvitationsByLoginInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\InvitationsForLogin', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetInvitationsByLoginBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetInvitationsByLoginForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetInvitationsByLoginInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLaunchpad.php b/lib/Endpoint/GetLaunchpad.php new file mode 100644 index 0000000..2d8b3b4 --- /dev/null +++ b/lib/Endpoint/GetLaunchpad.php @@ -0,0 +1,81 @@ +launchpad_id = $launchpadId; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Launchpad|null + * + * @throws \Bitly\Exception\GetLaunchpadForbiddenException + * @throws \Bitly\Exception\GetLaunchpadNotFoundException + * @throws \Bitly\Exception\GetLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\GetLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Launchpad', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLaunchpadDigitalBusinessCardDownloadsOverTime.php b/lib/Endpoint/GetLaunchpadDigitalBusinessCardDownloadsOverTime.php new file mode 100644 index 0000000..9e4c257 --- /dev/null +++ b/lib/Endpoint/GetLaunchpadDigitalBusinessCardDownloadsOverTime.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/digital_business_card_downloads/over_time'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws \Bitly\Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws \Bitly\Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadDigitalBusinessCardDownloadsOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLaunchpadImageByImageUse.php b/lib/Endpoint/GetLaunchpadImageByImageUse.php new file mode 100644 index 0000000..16a77b1 --- /dev/null +++ b/lib/Endpoint/GetLaunchpadImageByImageUse.php @@ -0,0 +1,94 @@ +launchpad_id = $launchpadId; + $this->image_use = $imageUse; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}', '{image_use}'], [$this->launchpad_id, $this->image_use], '/launchpads/{launchpad_id}/images_by_use/{image_use}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['image/*', 'application/json']]; + } + + return $this->accept; + } + + /** + * @return null + * + * @throws \Bitly\Exception\GetLaunchpadImageByImageUseBadRequestException + * @throws \Bitly\Exception\GetLaunchpadImageByImageUseForbiddenException + * @throws \Bitly\Exception\GetLaunchpadImageByImageUseNotFoundException + * @throws \Bitly\Exception\GetLaunchpadImageByImageUseInternalServerErrorException + * @throws \Bitly\Exception\GetLaunchpadImageByImageUseServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadImageByImageUseBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadImageByImageUseForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadImageByImageUseNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadImageByImageUseInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadImageByImageUseServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLaunchpadPresetThemes.php b/lib/Endpoint/GetLaunchpadPresetThemes.php new file mode 100644 index 0000000..ac7fa46 --- /dev/null +++ b/lib/Endpoint/GetLaunchpadPresetThemes.php @@ -0,0 +1,62 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadPresetTheme[]|null + * + * @throws \Bitly\Exception\GetLaunchpadPresetThemesInternalServerErrorException + * @throws \Bitly\Exception\GetLaunchpadPresetThemesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadPresetTheme[]', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadPresetThemesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadPresetThemesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLaunchpadsForGroup.php b/lib/Endpoint/GetLaunchpadsForGroup.php new file mode 100644 index 0000000..f2783ff --- /dev/null +++ b/lib/Endpoint/GetLaunchpadsForGroup.php @@ -0,0 +1,81 @@ +group_guid = $groupGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/launchpads'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Launchpads|null + * + * @throws \Bitly\Exception\GetLaunchpadsForGroupForbiddenException + * @throws \Bitly\Exception\GetLaunchpadsForGroupNotFoundException + * @throws \Bitly\Exception\GetLaunchpadsForGroupInternalServerErrorException + * @throws \Bitly\Exception\GetLaunchpadsForGroupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Launchpads', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadsForGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadsForGroupNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadsForGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLaunchpadsForGroupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLinkEngagementsDailySummary.php b/lib/Endpoint/GetLinkEngagementsDailySummary.php new file mode 100644 index 0000000..61f3b17 --- /dev/null +++ b/lib/Endpoint/GetLinkEngagementsDailySummary.php @@ -0,0 +1,92 @@ +group_guid = $groupGuid; + $this->report_id = $reportId; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{report_id}'], [$this->group_guid, $this->report_id], '/analytics/groups/{group_guid}/reports/{report_id}/link_performance/daily_summary'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\EngagementsDailySummary|null + * + * @throws \Bitly\Exception\GetLinkEngagementsDailySummaryBadRequestException + * @throws \Bitly\Exception\GetLinkEngagementsDailySummaryForbiddenException + * @throws \Bitly\Exception\GetLinkEngagementsDailySummaryNotFoundException + * @throws \Bitly\Exception\GetLinkEngagementsDailySummaryUnprocessableEntityException + * @throws \Bitly\Exception\GetLinkEngagementsDailySummaryInternalServerErrorException + * @throws \Bitly\Exception\GetLinkEngagementsDailySummaryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\EngagementsDailySummary', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDailySummaryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDailySummaryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDailySummaryNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDailySummaryUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDailySummaryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDailySummaryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLinkEngagementsDayDrillDown.php b/lib/Endpoint/GetLinkEngagementsDayDrillDown.php new file mode 100644 index 0000000..757d309 --- /dev/null +++ b/lib/Endpoint/GetLinkEngagementsDayDrillDown.php @@ -0,0 +1,110 @@ +group_guid = $groupGuid; + $this->report_id = $reportId; + $this->timestamp = $timestamp; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{report_id}', '{timestamp}'], [$this->group_guid, $this->report_id, $this->timestamp], '/analytics/groups/{group_guid}/reports/{report_id}/link_performance/day_drill_down/{timestamp}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['sort']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('sort', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\EngagementsDayDrillDown|null + * + * @throws \Bitly\Exception\GetLinkEngagementsDayDrillDownBadRequestException + * @throws \Bitly\Exception\GetLinkEngagementsDayDrillDownForbiddenException + * @throws \Bitly\Exception\GetLinkEngagementsDayDrillDownNotFoundException + * @throws \Bitly\Exception\GetLinkEngagementsDayDrillDownUnprocessableEntityException + * @throws \Bitly\Exception\GetLinkEngagementsDayDrillDownInternalServerErrorException + * @throws \Bitly\Exception\GetLinkEngagementsDayDrillDownServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\EngagementsDayDrillDown', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDayDrillDownBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDayDrillDownForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDayDrillDownNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDayDrillDownUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDayDrillDownInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsDayDrillDownServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLinkEngagementsReport.php b/lib/Endpoint/GetLinkEngagementsReport.php new file mode 100644 index 0000000..af446db --- /dev/null +++ b/lib/Endpoint/GetLinkEngagementsReport.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->report_id = $reportId; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{report_id}'], [$this->group_guid, $this->report_id], '/analytics/groups/{group_guid}/reports/{report_id}/link_performance/export'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['text/csv', 'application/json']]; + } + + return $this->accept; + } + + /** + * @return null + * + * @throws \Bitly\Exception\GetLinkEngagementsReportBadRequestException + * @throws \Bitly\Exception\GetLinkEngagementsReportForbiddenException + * @throws \Bitly\Exception\GetLinkEngagementsReportNotFoundException + * @throws \Bitly\Exception\GetLinkEngagementsReportUnprocessableEntityException + * @throws \Bitly\Exception\GetLinkEngagementsReportInternalServerErrorException + * @throws \Bitly\Exception\GetLinkEngagementsReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + } + if (202 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsReportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsReportUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkEngagementsReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLinkPerformanceForLaunchpad.php b/lib/Endpoint/GetLinkPerformanceForLaunchpad.php new file mode 100644 index 0000000..a261355 --- /dev/null +++ b/lib/Endpoint/GetLinkPerformanceForLaunchpad.php @@ -0,0 +1,105 @@ +launchpad_id = $launchpadId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/link_performance'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference', 'page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50, 'page' => 1]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\LaunchpadLinkPerformance|null + * + * @throws \Bitly\Exception\GetLinkPerformanceForLaunchpadForbiddenException + * @throws \Bitly\Exception\GetLinkPerformanceForLaunchpadNotFoundException + * @throws \Bitly\Exception\GetLinkPerformanceForLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\GetLinkPerformanceForLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadLinkPerformance', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkPerformanceForLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkPerformanceForLaunchpadNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkPerformanceForLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkPerformanceForLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetLinkPerformanceForSite.php b/lib/Endpoint/GetLinkPerformanceForSite.php new file mode 100644 index 0000000..88eacd3 --- /dev/null +++ b/lib/Endpoint/GetLinkPerformanceForSite.php @@ -0,0 +1,105 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/link_performance'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference', 'page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50, 'page' => 1]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SiteLinkPerformance|null + * + * @throws \Bitly\Exception\GetLinkPerformanceForSiteForbiddenException + * @throws \Bitly\Exception\GetLinkPerformanceForSiteNotFoundException + * @throws \Bitly\Exception\GetLinkPerformanceForSiteInternalServerErrorException + * @throws \Bitly\Exception\GetLinkPerformanceForSiteServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteLinkPerformance', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkPerformanceForSiteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkPerformanceForSiteNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkPerformanceForSiteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetLinkPerformanceForSiteServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetMetricsForLaunchpadByCities.php b/lib/Endpoint/GetMetricsForLaunchpadByCities.php new file mode 100644 index 0000000..8488f3b --- /dev/null +++ b/lib/Endpoint/GetMetricsForLaunchpadByCities.php @@ -0,0 +1,111 @@ +launchpad_id = $launchpadId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityViewMetrics|null + * + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCitiesBadRequestException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCitiesPaymentRequiredException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCitiesForbiddenException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCitiesNotFoundException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCitiesInternalServerErrorException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCitiesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityViewMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCitiesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCitiesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCitiesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCitiesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCitiesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCitiesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetMetricsForLaunchpadByCountries.php b/lib/Endpoint/GetMetricsForLaunchpadByCountries.php new file mode 100644 index 0000000..fb1efd8 --- /dev/null +++ b/lib/Endpoint/GetMetricsForLaunchpadByCountries.php @@ -0,0 +1,107 @@ +launchpad_id = $launchpadId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Views|null + * + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCountriesBadRequestException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCountriesForbiddenException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCountriesNotFoundException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCountriesInternalServerErrorException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByCountriesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Views', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCountriesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCountriesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCountriesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCountriesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByCountriesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetMetricsForLaunchpadByDevices.php b/lib/Endpoint/GetMetricsForLaunchpadByDevices.php new file mode 100644 index 0000000..536c5ec --- /dev/null +++ b/lib/Endpoint/GetMetricsForLaunchpadByDevices.php @@ -0,0 +1,111 @@ +launchpad_id = $launchpadId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/devices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Views|null + * + * @throws \Bitly\Exception\GetMetricsForLaunchpadByDevicesBadRequestException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByDevicesPaymentRequiredException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByDevicesForbiddenException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByDevicesNotFoundException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByDevicesInternalServerErrorException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByDevicesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Views', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByDevicesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByDevicesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByDevicesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByDevicesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByDevicesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByDevicesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetMetricsForLaunchpadByReferrers.php b/lib/Endpoint/GetMetricsForLaunchpadByReferrers.php new file mode 100644 index 0000000..c5454f1 --- /dev/null +++ b/lib/Endpoint/GetMetricsForLaunchpadByReferrers.php @@ -0,0 +1,107 @@ +launchpad_id = $launchpadId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/referrers'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Views|null + * + * @throws \Bitly\Exception\GetMetricsForLaunchpadByReferrersBadRequestException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByReferrersForbiddenException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByReferrersNotFoundException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByReferrersInternalServerErrorException + * @throws \Bitly\Exception\GetMetricsForLaunchpadByReferrersServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Views', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByReferrersBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByReferrersForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByReferrersNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByReferrersInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForLaunchpadByReferrersServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetMetricsForSiteByCities.php b/lib/Endpoint/GetMetricsForSiteByCities.php new file mode 100644 index 0000000..052b6cc --- /dev/null +++ b/lib/Endpoint/GetMetricsForSiteByCities.php @@ -0,0 +1,111 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SiteCityViewMetrics|null + * + * @throws \Bitly\Exception\GetMetricsForSiteByCitiesBadRequestException + * @throws \Bitly\Exception\GetMetricsForSiteByCitiesPaymentRequiredException + * @throws \Bitly\Exception\GetMetricsForSiteByCitiesForbiddenException + * @throws \Bitly\Exception\GetMetricsForSiteByCitiesNotFoundException + * @throws \Bitly\Exception\GetMetricsForSiteByCitiesInternalServerErrorException + * @throws \Bitly\Exception\GetMetricsForSiteByCitiesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteCityViewMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByCitiesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByCitiesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByCitiesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByCitiesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByCitiesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByCitiesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetMetricsForSiteByDevices.php b/lib/Endpoint/GetMetricsForSiteByDevices.php new file mode 100644 index 0000000..4759d6a --- /dev/null +++ b/lib/Endpoint/GetMetricsForSiteByDevices.php @@ -0,0 +1,111 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/devices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SiteViewMetrics|null + * + * @throws \Bitly\Exception\GetMetricsForSiteByDevicesBadRequestException + * @throws \Bitly\Exception\GetMetricsForSiteByDevicesPaymentRequiredException + * @throws \Bitly\Exception\GetMetricsForSiteByDevicesForbiddenException + * @throws \Bitly\Exception\GetMetricsForSiteByDevicesNotFoundException + * @throws \Bitly\Exception\GetMetricsForSiteByDevicesInternalServerErrorException + * @throws \Bitly\Exception\GetMetricsForSiteByDevicesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteViewMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByDevicesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByDevicesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByDevicesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByDevicesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByDevicesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByDevicesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetMetricsForSiteByReferrers.php b/lib/Endpoint/GetMetricsForSiteByReferrers.php new file mode 100644 index 0000000..a8f6bdc --- /dev/null +++ b/lib/Endpoint/GetMetricsForSiteByReferrers.php @@ -0,0 +1,107 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/referrers'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SiteViewMetrics|null + * + * @throws \Bitly\Exception\GetMetricsForSiteByReferrersBadRequestException + * @throws \Bitly\Exception\GetMetricsForSiteByReferrersForbiddenException + * @throws \Bitly\Exception\GetMetricsForSiteByReferrersNotFoundException + * @throws \Bitly\Exception\GetMetricsForSiteByReferrersInternalServerErrorException + * @throws \Bitly\Exception\GetMetricsForSiteByReferrersServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteViewMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByReferrersBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByReferrersForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByReferrersNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByReferrersInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSiteByReferrersServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetMetricsForSitesByCountries.php b/lib/Endpoint/GetMetricsForSitesByCountries.php new file mode 100644 index 0000000..2fb8ffc --- /dev/null +++ b/lib/Endpoint/GetMetricsForSitesByCountries.php @@ -0,0 +1,107 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SiteViewMetrics|null + * + * @throws \Bitly\Exception\GetMetricsForSitesByCountriesBadRequestException + * @throws \Bitly\Exception\GetMetricsForSitesByCountriesForbiddenException + * @throws \Bitly\Exception\GetMetricsForSitesByCountriesNotFoundException + * @throws \Bitly\Exception\GetMetricsForSitesByCountriesInternalServerErrorException + * @throws \Bitly\Exception\GetMetricsForSitesByCountriesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteViewMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSitesByCountriesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSitesByCountriesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSitesByCountriesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSitesByCountriesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetMetricsForSitesByCountriesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOAuthApps.php b/lib/Endpoint/GetOAuthApps.php new file mode 100644 index 0000000..6affa8c --- /dev/null +++ b/lib/Endpoint/GetOAuthApps.php @@ -0,0 +1,70 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\OAuthApps|null + * + * @throws \Bitly\Exception\GetOAuthAppsBadRequestException + * @throws \Bitly\Exception\GetOAuthAppsNotFoundException + * @throws \Bitly\Exception\GetOAuthAppsInternalServerErrorException + * @throws \Bitly\Exception\GetOAuthAppsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OAuthApps', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOAuthAppsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOAuthAppsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOAuthAppsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOAuthAppsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOAuthAuthorizations.php b/lib/Endpoint/GetOAuthAuthorizations.php new file mode 100644 index 0000000..a43f8b6 --- /dev/null +++ b/lib/Endpoint/GetOAuthAuthorizations.php @@ -0,0 +1,66 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\Authorizations|null + * + * @throws \Bitly\Exception\GetOAuthAuthorizationsNotFoundException + * @throws \Bitly\Exception\GetOAuthAuthorizationsInternalServerErrorException + * @throws \Bitly\Exception\GetOAuthAuthorizationsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Authorizations', 'json'); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOAuthAuthorizationsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOAuthAuthorizationsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOAuthAuthorizationsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrgDomainsStatus.php b/lib/Endpoint/GetOrgDomainsStatus.php new file mode 100644 index 0000000..1eae410 --- /dev/null +++ b/lib/Endpoint/GetOrgDomainsStatus.php @@ -0,0 +1,81 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/domains/status'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OrgDomainsStatus|null + * + * @throws \Bitly\Exception\GetOrgDomainsStatusBadRequestException + * @throws \Bitly\Exception\GetOrgDomainsStatusForbiddenException + * @throws \Bitly\Exception\GetOrgDomainsStatusTooManyRequestsException + * @throws \Bitly\Exception\GetOrgDomainsStatusInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrgDomainsStatus', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgDomainsStatusBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgDomainsStatusForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgDomainsStatusTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgDomainsStatusInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrgEmails.php b/lib/Endpoint/GetOrgEmails.php new file mode 100644 index 0000000..261f971 --- /dev/null +++ b/lib/Endpoint/GetOrgEmails.php @@ -0,0 +1,96 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/org_emails'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['login', 'organization_guid']); + $optionsResolver->setRequired(['login']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('login', ['string']); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\OrgEmails|null + * + * @throws \Bitly\Exception\GetOrgEmailsForbiddenException + * @throws \Bitly\Exception\GetOrgEmailsNotFoundException + * @throws \Bitly\Exception\GetOrgEmailsInternalServerErrorException + * @throws \Bitly\Exception\GetOrgEmailsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrgEmails', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgEmailsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgEmailsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgEmailsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgEmailsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrgInvitationRequests.php b/lib/Endpoint/GetOrgInvitationRequests.php new file mode 100644 index 0000000..8056ec8 --- /dev/null +++ b/lib/Endpoint/GetOrgInvitationRequests.php @@ -0,0 +1,77 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/invitation_requests'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OrgInvitationRequests|null + * + * @throws \Bitly\Exception\GetOrgInvitationRequestsBadRequestException + * @throws \Bitly\Exception\GetOrgInvitationRequestsForbiddenException + * @throws \Bitly\Exception\GetOrgInvitationRequestsInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrgInvitationRequests', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgInvitationRequestsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgInvitationRequestsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgInvitationRequestsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrgPreferences.php b/lib/Endpoint/GetOrgPreferences.php new file mode 100644 index 0000000..4dc81fb --- /dev/null +++ b/lib/Endpoint/GetOrgPreferences.php @@ -0,0 +1,69 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/preferences'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OrganizationPreferences|null + * + * @throws \Bitly\Exception\GetOrgPreferencesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrganizationPreferences', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrgPreferencesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrganizationActivityLog.php b/lib/Endpoint/GetOrganizationActivityLog.php new file mode 100644 index 0000000..5eee266 --- /dev/null +++ b/lib/Endpoint/GetOrganizationActivityLog.php @@ -0,0 +1,103 @@ +organization_guid = $organizationGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/activity_log'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['next_page', 'after_ts', 'before_ts', 'limit', 'actions', 'user_filter']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('next_page', ['string']); + $optionsResolver->addAllowedTypes('after_ts', ['string']); + $optionsResolver->addAllowedTypes('before_ts', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('actions', ['array']); + $optionsResolver->addAllowedTypes('user_filter', ['array']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ActivityLogs|null + * + * @throws \Bitly\Exception\GetOrganizationActivityLogForbiddenException + * @throws \Bitly\Exception\GetOrganizationActivityLogInternalServerErrorException + * @throws \Bitly\Exception\GetOrganizationActivityLogServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ActivityLogs', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationActivityLogForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationActivityLogInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationActivityLogServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrganizationActivityLogEntry.php b/lib/Endpoint/GetOrganizationActivityLogEntry.php new file mode 100644 index 0000000..b770db3 --- /dev/null +++ b/lib/Endpoint/GetOrganizationActivityLogEntry.php @@ -0,0 +1,83 @@ +organization_guid = $organizationGuid; + $this->action = $action; + $this->timestamp = $timestamp; + $this->id = $id; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{action}', '{timestamp}', '{id}'], [$this->organization_guid, $this->action, $this->timestamp, $this->id], '/organizations/{organization_guid}/activity_log/{action}/{timestamp}/{id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ActivityLog|null + * + * @throws \Bitly\Exception\GetOrganizationActivityLogEntryForbiddenException + * @throws \Bitly\Exception\GetOrganizationActivityLogEntryInternalServerErrorException + * @throws \Bitly\Exception\GetOrganizationActivityLogEntryServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ActivityLog', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationActivityLogEntryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationActivityLogEntryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationActivityLogEntryServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrganizationActivityLogExport.php b/lib/Endpoint/GetOrganizationActivityLogExport.php new file mode 100644 index 0000000..96ef7a2 --- /dev/null +++ b/lib/Endpoint/GetOrganizationActivityLogExport.php @@ -0,0 +1,85 @@ +organization_guid = $organizationGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/export/activity_log'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['text/csv']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['actions', 'user_filter', 'after_ts', 'before_ts']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('actions', ['array']); + $optionsResolver->addAllowedTypes('user_filter', ['array']); + $optionsResolver->addAllowedTypes('after_ts', ['string']); + $optionsResolver->addAllowedTypes('before_ts', ['string']); + + return $optionsResolver; + } + + /** + * @return null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrganizationFeatureUsage.php b/lib/Endpoint/GetOrganizationFeatureUsage.php new file mode 100644 index 0000000..d553a8c --- /dev/null +++ b/lib/Endpoint/GetOrganizationFeatureUsage.php @@ -0,0 +1,77 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/feature_usage'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\FeatureUsage|null + * + * @throws \Bitly\Exception\GetOrganizationFeatureUsageForbiddenException + * @throws \Bitly\Exception\GetOrganizationFeatureUsageInternalServerErrorException + * @throws \Bitly\Exception\GetOrganizationFeatureUsageServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\FeatureUsage', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationFeatureUsageForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationFeatureUsageInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationFeatureUsageServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrganizationFeatureUsageByGroup.php b/lib/Endpoint/GetOrganizationFeatureUsageByGroup.php new file mode 100644 index 0000000..054df9f --- /dev/null +++ b/lib/Endpoint/GetOrganizationFeatureUsageByGroup.php @@ -0,0 +1,95 @@ +organization_guid = $organizationGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/groups/feature_usage'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['name', 'group_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('name', ['array']); + $optionsResolver->addAllowedTypes('group_guid', ['array']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\OrgFeatureUsageByGroup|null + * + * @throws \Bitly\Exception\GetOrganizationFeatureUsageByGroupBadRequestException + * @throws \Bitly\Exception\GetOrganizationFeatureUsageByGroupForbiddenException + * @throws \Bitly\Exception\GetOrganizationFeatureUsageByGroupInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrgFeatureUsageByGroup', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationFeatureUsageByGroupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationFeatureUsageByGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationFeatureUsageByGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrganizationHistoricalUsageTotalsByGroup.php b/lib/Endpoint/GetOrganizationHistoricalUsageTotalsByGroup.php new file mode 100644 index 0000000..442b3fe --- /dev/null +++ b/lib/Endpoint/GetOrganizationHistoricalUsageTotalsByGroup.php @@ -0,0 +1,97 @@ +organization_guid = $organizationGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/groups/historical_usage_totals'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['name', 'start_date', 'end_date']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('name', ['array']); + $optionsResolver->addAllowedTypes('start_date', ['string']); + $optionsResolver->addAllowedTypes('end_date', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\OrganizationHistoricalUsageTotals|null + * + * @throws \Bitly\Exception\GetOrganizationHistoricalUsageTotalsByGroupBadRequestException + * @throws \Bitly\Exception\GetOrganizationHistoricalUsageTotalsByGroupForbiddenException + * @throws \Bitly\Exception\GetOrganizationHistoricalUsageTotalsByGroupInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrganizationHistoricalUsageTotals', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationHistoricalUsageTotalsByGroupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationHistoricalUsageTotalsByGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationHistoricalUsageTotalsByGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrganizationSSOSettings.php b/lib/Endpoint/GetOrganizationSSOSettings.php new file mode 100644 index 0000000..a37fed9 --- /dev/null +++ b/lib/Endpoint/GetOrganizationSSOSettings.php @@ -0,0 +1,85 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/sso/organizations/{organization_guid}/settings'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SSOSettings|null + * + * @throws \Bitly\Exception\GetOrganizationSSOSettingsPaymentRequiredException + * @throws \Bitly\Exception\GetOrganizationSSOSettingsForbiddenException + * @throws \Bitly\Exception\GetOrganizationSSOSettingsNotFoundException + * @throws \Bitly\Exception\GetOrganizationSSOSettingsInternalServerErrorException + * @throws \Bitly\Exception\GetOrganizationSSOSettingsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SSOSettings', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationSSOSettingsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationSSOSettingsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationSSOSettingsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationSSOSettingsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationSSOSettingsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOrganizationStripeInfo.php b/lib/Endpoint/GetOrganizationStripeInfo.php new file mode 100644 index 0000000..ab5a2ee --- /dev/null +++ b/lib/Endpoint/GetOrganizationStripeInfo.php @@ -0,0 +1,77 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/stripe/organizations/{organization_guid}/info'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\StripeOrganizationInfo|null + * + * @throws \Bitly\Exception\GetOrganizationStripeInfoBadRequestException + * @throws \Bitly\Exception\GetOrganizationStripeInfoForbiddenException + * @throws \Bitly\Exception\GetOrganizationStripeInfoInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\StripeOrganizationInfo', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationStripeInfoBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationStripeInfoForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOrganizationStripeInfoInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOverrideHistoryForBitlink.php b/lib/Endpoint/GetOverrideHistoryForBitlink.php new file mode 100644 index 0000000..fe86869 --- /dev/null +++ b/lib/Endpoint/GetOverrideHistoryForBitlink.php @@ -0,0 +1,107 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/override_history'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['limit', 'offset']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('offset', ['int']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkOverrideHistory|null + * + * @throws \Bitly\Exception\GetOverrideHistoryForBitlinkPaymentRequiredException + * @throws \Bitly\Exception\GetOverrideHistoryForBitlinkForbiddenException + * @throws \Bitly\Exception\GetOverrideHistoryForBitlinkNotFoundException + * @throws \Bitly\Exception\GetOverrideHistoryForBitlinkTooManyRequestsException + * @throws \Bitly\Exception\GetOverrideHistoryForBitlinkInternalServerErrorException + * @throws \Bitly\Exception\GetOverrideHistoryForBitlinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkOverrideHistory', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideHistoryForBitlinkPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideHistoryForBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideHistoryForBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideHistoryForBitlinkTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideHistoryForBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideHistoryForBitlinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOverrideMetricsByVersion.php b/lib/Endpoint/GetOverrideMetricsByVersion.php new file mode 100644 index 0000000..e151c9d --- /dev/null +++ b/lib/Endpoint/GetOverrideMetricsByVersion.php @@ -0,0 +1,113 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/overrides_clicks_by_version'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClickMetrics|null + * + * @throws \Bitly\Exception\GetOverrideMetricsByVersionBadRequestException + * @throws \Bitly\Exception\GetOverrideMetricsByVersionPaymentRequiredException + * @throws \Bitly\Exception\GetOverrideMetricsByVersionForbiddenException + * @throws \Bitly\Exception\GetOverrideMetricsByVersionNotFoundException + * @throws \Bitly\Exception\GetOverrideMetricsByVersionGoneException + * @throws \Bitly\Exception\GetOverrideMetricsByVersionInternalServerErrorException + * @throws \Bitly\Exception\GetOverrideMetricsByVersionServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClickMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideMetricsByVersionBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideMetricsByVersionPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideMetricsByVersionForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideMetricsByVersionNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideMetricsByVersionGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideMetricsByVersionInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverrideMetricsByVersionServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOverridesForBitlink.php b/lib/Endpoint/GetOverridesForBitlink.php new file mode 100644 index 0000000..b2299bb --- /dev/null +++ b/lib/Endpoint/GetOverridesForBitlink.php @@ -0,0 +1,89 @@ +bitlink = $bitlink; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/overrides'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BitlinkOverrides|null + * + * @throws \Bitly\Exception\GetOverridesForBitlinkPaymentRequiredException + * @throws \Bitly\Exception\GetOverridesForBitlinkForbiddenException + * @throws \Bitly\Exception\GetOverridesForBitlinkNotFoundException + * @throws \Bitly\Exception\GetOverridesForBitlinkGoneException + * @throws \Bitly\Exception\GetOverridesForBitlinkInternalServerErrorException + * @throws \Bitly\Exception\GetOverridesForBitlinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkOverrides', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForBitlinkPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForBitlinkGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForBitlinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetOverridesForGroups.php b/lib/Endpoint/GetOverridesForGroups.php new file mode 100644 index 0000000..352412f --- /dev/null +++ b/lib/Endpoint/GetOverridesForGroups.php @@ -0,0 +1,113 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/overrides'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['group_guid', 'created_after', 'limit', 'offset', 'bsd']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('group_guid', ['array']); + $optionsResolver->addAllowedTypes('created_after', ['int']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('offset', ['int']); + $optionsResolver->addAllowedTypes('bsd', ['array']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlinkOverridesData|null + * + * @throws \Bitly\Exception\GetOverridesForGroupsBadRequestException + * @throws \Bitly\Exception\GetOverridesForGroupsPaymentRequiredException + * @throws \Bitly\Exception\GetOverridesForGroupsForbiddenException + * @throws \Bitly\Exception\GetOverridesForGroupsNotFoundException + * @throws \Bitly\Exception\GetOverridesForGroupsInternalServerErrorException + * @throws \Bitly\Exception\GetOverridesForGroupsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkOverridesData', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForGroupsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForGroupsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForGroupsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForGroupsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForGroupsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetOverridesForGroupsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetPaymentInvoice.php b/lib/Endpoint/GetPaymentInvoice.php new file mode 100644 index 0000000..6a35c56 --- /dev/null +++ b/lib/Endpoint/GetPaymentInvoice.php @@ -0,0 +1,75 @@ +organization_guid = $organizationGuid; + $this->invoiceID = $invoiceID; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{invoiceID}'], [$this->organization_guid, $this->invoiceID], '/organizations/{organization_guid}/payment_invoices/{invoiceID}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PaymentInvoiceDetail|null + * + * @throws \Bitly\Exception\GetPaymentInvoiceForbiddenException + * @throws \Bitly\Exception\GetPaymentInvoiceInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PaymentInvoiceDetail', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPaymentInvoiceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPaymentInvoiceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetPaymentInvoiceFile.php b/lib/Endpoint/GetPaymentInvoiceFile.php new file mode 100644 index 0000000..f654c64 --- /dev/null +++ b/lib/Endpoint/GetPaymentInvoiceFile.php @@ -0,0 +1,85 @@ +organization_guid = $organizationGuid; + $this->invoiceID = $invoiceID; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{invoiceID}'], [$this->organization_guid, $this->invoiceID], '/organizations/{organization_guid}/payment_invoices/{invoiceID}/file'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/pdf', 'application/json']]; + } + + return $this->accept; + } + + /** + * @return null + * + * @throws \Bitly\Exception\GetPaymentInvoiceFileForbiddenException + * @throws \Bitly\Exception\GetPaymentInvoiceFileNotFoundException + * @throws \Bitly\Exception\GetPaymentInvoiceFileInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPaymentInvoiceFileForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPaymentInvoiceFileNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPaymentInvoiceFileInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetPaymentInvoices.php b/lib/Endpoint/GetPaymentInvoices.php new file mode 100644 index 0000000..42fc6ef --- /dev/null +++ b/lib/Endpoint/GetPaymentInvoices.php @@ -0,0 +1,76 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/payment_invoices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PaymentInvoices|null + * + * @throws \Bitly\Exception\GetPaymentInvoicesForbiddenException + * @throws \Bitly\Exception\GetPaymentInvoicesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PaymentInvoices', 'json'); + } + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPaymentInvoicesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPaymentInvoicesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetPendingTierForOrg.php b/lib/Endpoint/GetPendingTierForOrg.php new file mode 100644 index 0000000..095fa9e --- /dev/null +++ b/lib/Endpoint/GetPendingTierForOrg.php @@ -0,0 +1,80 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/pending_tier'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OrgTierHistory|null + * + * @throws \Bitly\Exception\GetPendingTierForOrgForbiddenException + * @throws \Bitly\Exception\GetPendingTierForOrgNotFoundException + * @throws \Bitly\Exception\GetPendingTierForOrgInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrgTierHistory', 'json'); + } + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPendingTierForOrgForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPendingTierForOrgNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPendingTierForOrgInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetPrivateGeo.php b/lib/Endpoint/GetPrivateGeo.php new file mode 100644 index 0000000..5b496de --- /dev/null +++ b/lib/Endpoint/GetPrivateGeo.php @@ -0,0 +1,58 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\GeoIP|null + * + * @throws \Bitly\Exception\GetPrivateGeoInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\GeoIP', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPrivateGeoInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetProductUtilization.php b/lib/Endpoint/GetProductUtilization.php new file mode 100644 index 0000000..c63c5e5 --- /dev/null +++ b/lib/Endpoint/GetProductUtilization.php @@ -0,0 +1,77 @@ +group_guid = $groupGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/product_utilization'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ProductUtilizationResponse|null + * + * @throws \Bitly\Exception\GetProductUtilizationBadRequestException + * @throws \Bitly\Exception\GetProductUtilizationForbiddenException + * @throws \Bitly\Exception\GetProductUtilizationInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ProductUtilizationResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetProductUtilizationBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetProductUtilizationForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetProductUtilizationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetPromoCodeValidPlans.php b/lib/Endpoint/GetPromoCodeValidPlans.php new file mode 100644 index 0000000..8b8071d --- /dev/null +++ b/lib/Endpoint/GetPromoCodeValidPlans.php @@ -0,0 +1,73 @@ +promo_code = $promoCode; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{promo_code}'], [$this->promo_code], '/promo_codes/{promo_code}/valid_plans'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PromoCodeValidPlans|null + * + * @throws \Bitly\Exception\GetPromoCodeValidPlansInternalServerErrorException + * @throws \Bitly\Exception\GetPromoCodeValidPlansServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PromoCodeValidPlans', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPromoCodeValidPlansInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetPromoCodeValidPlansServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetQRCHistory.php b/lib/Endpoint/GetQRCHistory.php new file mode 100644 index 0000000..3b06a93 --- /dev/null +++ b/lib/Endpoint/GetQRCHistory.php @@ -0,0 +1,99 @@ +qrcode_id = $qrcodeId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{qrcode_id}'], [$this->qrcode_id], '/qr-codes/{qrcode_id}/history'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['limit', 'offset']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('offset', ['int']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\QRCodeHistory|null + * + * @throws \Bitly\Exception\GetQRCHistoryBadRequestException + * @throws \Bitly\Exception\GetQRCHistoryForbiddenException + * @throws \Bitly\Exception\GetQRCHistoryTooManyRequestsException + * @throws \Bitly\Exception\GetQRCHistoryInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeHistory', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCHistoryBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCHistoryForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCHistoryTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCHistoryInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetQRCodeByBitlinkId.php b/lib/Endpoint/GetQRCodeByBitlinkId.php new file mode 100644 index 0000000..f5d56ef --- /dev/null +++ b/lib/Endpoint/GetQRCodeByBitlinkId.php @@ -0,0 +1,83 @@ +bitlinkId = $bitlinkId; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlinkId}'], [$this->bitlinkId], '/qrcode/bitlink/{bitlinkId}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\QRCodeFullResponse|null + * + * @throws \Bitly\Exception\GetQRCodeByBitlinkIdBadRequestException + * @throws \Bitly\Exception\GetQRCodeByBitlinkIdForbiddenException + * @throws \Bitly\Exception\GetQRCodeByBitlinkIdNotFoundException + * @throws \Bitly\Exception\GetQRCodeByBitlinkIdGoneException + * @throws \Bitly\Exception\GetQRCodeByBitlinkIdInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeFullResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByBitlinkIdBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByBitlinkIdForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByBitlinkIdNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByBitlinkIdGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByBitlinkIdInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetQRCodeById.php b/lib/Endpoint/GetQRCodeById.php new file mode 100644 index 0000000..5c8000e --- /dev/null +++ b/lib/Endpoint/GetQRCodeById.php @@ -0,0 +1,85 @@ +id = $id; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/qrcode/full/{id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\QRCodeFullResponse|null + * + * @throws \Bitly\Exception\GetQRCodeByIdBadRequestException + * @throws \Bitly\Exception\GetQRCodeByIdForbiddenException + * @throws \Bitly\Exception\GetQRCodeByIdNotFoundException + * @throws \Bitly\Exception\GetQRCodeByIdGoneException + * @throws \Bitly\Exception\GetQRCodeByIdInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeFullResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByIdBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByIdForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByIdNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByIdGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeByIdInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetQRCodeCustomizationOptions.php b/lib/Endpoint/GetQRCodeCustomizationOptions.php new file mode 100644 index 0000000..2dbe331 --- /dev/null +++ b/lib/Endpoint/GetQRCodeCustomizationOptions.php @@ -0,0 +1,81 @@ +group_guid = $groupGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/qrcodes/customization/options/{group_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\QRCodeCustomizationOptionsResponse|null + * + * @throws \Bitly\Exception\GetQRCodeCustomizationOptionsBadRequestException + * @throws \Bitly\Exception\GetQRCodeCustomizationOptionsForbiddenException + * @throws \Bitly\Exception\GetQRCodeCustomizationOptionsNotFoundException + * @throws \Bitly\Exception\GetQRCodeCustomizationOptionsInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeCustomizationOptionsResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeCustomizationOptionsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeCustomizationOptionsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeCustomizationOptionsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeCustomizationOptionsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetQRCodeOverrideMetricsByVersion.php b/lib/Endpoint/GetQRCodeOverrideMetricsByVersion.php new file mode 100644 index 0000000..e9fc1ee --- /dev/null +++ b/lib/Endpoint/GetQRCodeOverrideMetricsByVersion.php @@ -0,0 +1,113 @@ +qrcode_id = $qrcodeId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{qrcode_id}'], [$this->qrcode_id], '/qr-codes/{qrcode_id}/engagements_by_version'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ClickMetrics|null + * + * @throws \Bitly\Exception\GetQRCodeOverrideMetricsByVersionBadRequestException + * @throws \Bitly\Exception\GetQRCodeOverrideMetricsByVersionPaymentRequiredException + * @throws \Bitly\Exception\GetQRCodeOverrideMetricsByVersionForbiddenException + * @throws \Bitly\Exception\GetQRCodeOverrideMetricsByVersionNotFoundException + * @throws \Bitly\Exception\GetQRCodeOverrideMetricsByVersionGoneException + * @throws \Bitly\Exception\GetQRCodeOverrideMetricsByVersionInternalServerErrorException + * @throws \Bitly\Exception\GetQRCodeOverrideMetricsByVersionServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ClickMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeOverrideMetricsByVersionBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeOverrideMetricsByVersionPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeOverrideMetricsByVersionForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeOverrideMetricsByVersionNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeOverrideMetricsByVersionGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeOverrideMetricsByVersionInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeOverrideMetricsByVersionServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetQRCodeTemplates.php b/lib/Endpoint/GetQRCodeTemplates.php new file mode 100644 index 0000000..651cf00 --- /dev/null +++ b/lib/Endpoint/GetQRCodeTemplates.php @@ -0,0 +1,89 @@ +group_guid = $groupGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/qr_templates'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\QRCodeTemplatesResponse|null + * + * @throws \Bitly\Exception\GetQRCodeTemplatesBadRequestException + * @throws \Bitly\Exception\GetQRCodeTemplatesPaymentRequiredException + * @throws \Bitly\Exception\GetQRCodeTemplatesForbiddenException + * @throws \Bitly\Exception\GetQRCodeTemplatesNotFoundException + * @throws \Bitly\Exception\GetQRCodeTemplatesGoneException + * @throws \Bitly\Exception\GetQRCodeTemplatesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeTemplatesResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeTemplatesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeTemplatesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeTemplatesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeTemplatesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeTemplatesGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetQRCodeTemplatesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetRegionsList.php b/lib/Endpoint/GetRegionsList.php new file mode 100644 index 0000000..b45b808 --- /dev/null +++ b/lib/Endpoint/GetRegionsList.php @@ -0,0 +1,58 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\Regions|null + * + * @throws \Bitly\Exception\GetRegionsListInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Regions', 'json'); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetRegionsListInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetRetainedEntitiesAfterDowngrade.php b/lib/Endpoint/GetRetainedEntitiesAfterDowngrade.php new file mode 100644 index 0000000..e4efed7 --- /dev/null +++ b/lib/Endpoint/GetRetainedEntitiesAfterDowngrade.php @@ -0,0 +1,73 @@ +organization_guid = $organizationGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/retained_entities_after_downgrade'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\RetainedEntitiesAfterDowngrade|null + * + * @throws \Bitly\Exception\GetRetainedEntitiesAfterDowngradeForbiddenException + * @throws \Bitly\Exception\GetRetainedEntitiesAfterDowngradeInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\RetainedEntitiesAfterDowngrade', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetRetainedEntitiesAfterDowngradeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetRetainedEntitiesAfterDowngradeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSSOUsers.php b/lib/Endpoint/GetSSOUsers.php new file mode 100644 index 0000000..2070ac6 --- /dev/null +++ b/lib/Endpoint/GetSSOUsers.php @@ -0,0 +1,99 @@ +organization_guid = $organizationGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/sso_users'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page', 'size', 'sso_username', 'login']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1, 'size' => 50]); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('sso_username', ['string']); + $optionsResolver->addAllowedTypes('login', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\PublicSSOUsersResults|null + * + * @throws \Bitly\Exception\GetSSOUsersBadRequestException + * @throws \Bitly\Exception\GetSSOUsersForbiddenException + * @throws \Bitly\Exception\GetSSOUsersInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PublicSSOUsersResults', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSSOUsersBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSSOUsersForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSSOUsersInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetScanMetricsForBitlinkByBrowser.php b/lib/Endpoint/GetScanMetricsForBitlinkByBrowser.php new file mode 100644 index 0000000..47bcdb2 --- /dev/null +++ b/lib/Endpoint/GetScanMetricsForBitlinkByBrowser.php @@ -0,0 +1,123 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/scans/browsers'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ScanMetrics|null + * + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByBrowserBadRequestException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByBrowserPaymentRequiredException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByBrowserForbiddenException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByBrowserNotFoundException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByBrowserGoneException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByBrowserInternalServerErrorException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByBrowserServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ScanMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByBrowserBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByBrowserPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByBrowserForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByBrowserNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByBrowserGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByBrowserInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByBrowserServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetScanMetricsForBitlinkByCities.php b/lib/Endpoint/GetScanMetricsForBitlinkByCities.php new file mode 100644 index 0000000..c160844 --- /dev/null +++ b/lib/Endpoint/GetScanMetricsForBitlinkByCities.php @@ -0,0 +1,123 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/scans/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityScanMetrics|null + * + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCitiesBadRequestException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCitiesPaymentRequiredException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCitiesForbiddenException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCitiesNotFoundException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCitiesGoneException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCitiesInternalServerErrorException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCitiesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityScanMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCitiesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCitiesPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCitiesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCitiesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCitiesGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCitiesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCitiesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetScanMetricsForBitlinkByCountries.php b/lib/Endpoint/GetScanMetricsForBitlinkByCountries.php new file mode 100644 index 0000000..5935a18 --- /dev/null +++ b/lib/Endpoint/GetScanMetricsForBitlinkByCountries.php @@ -0,0 +1,119 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/scans/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ScanMetrics|null + * + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCountriesBadRequestException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCountriesForbiddenException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCountriesNotFoundException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCountriesGoneException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCountriesInternalServerErrorException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByCountriesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ScanMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCountriesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCountriesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCountriesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCountriesGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCountriesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByCountriesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetScanMetricsForBitlinkByDevicesOS.php b/lib/Endpoint/GetScanMetricsForBitlinkByDevicesOS.php new file mode 100644 index 0000000..1ad9b28 --- /dev/null +++ b/lib/Endpoint/GetScanMetricsForBitlinkByDevicesOS.php @@ -0,0 +1,123 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/scans/device_os'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ScanMetrics|null + * + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSBadRequestException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSPaymentRequiredException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSForbiddenException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSNotFoundException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSGoneException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSInternalServerErrorException + * @throws \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ScanMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScanMetricsForBitlinkByDevicesOSServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetScansForBitlink.php b/lib/Endpoint/GetScansForBitlink.php new file mode 100644 index 0000000..6d1683b --- /dev/null +++ b/lib/Endpoint/GetScansForBitlink.php @@ -0,0 +1,117 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/scans'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Scans|null + * + * @throws \Bitly\Exception\GetScansForBitlinkBadRequestException + * @throws \Bitly\Exception\GetScansForBitlinkForbiddenException + * @throws \Bitly\Exception\GetScansForBitlinkNotFoundException + * @throws \Bitly\Exception\GetScansForBitlinkGoneException + * @throws \Bitly\Exception\GetScansForBitlinkInternalServerErrorException + * @throws \Bitly\Exception\GetScansForBitlinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Scans', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansForBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansForBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansForBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansForBitlinkGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansForBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansForBitlinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetScansSummaryForBitlink.php b/lib/Endpoint/GetScansSummaryForBitlink.php new file mode 100644 index 0000000..141915b --- /dev/null +++ b/lib/Endpoint/GetScansSummaryForBitlink.php @@ -0,0 +1,109 @@ +bitlink = $bitlink; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/scans/summary'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ScansSummary|null + * + * @throws \Bitly\Exception\GetScansSummaryForBitlinkBadRequestException + * @throws \Bitly\Exception\GetScansSummaryForBitlinkForbiddenException + * @throws \Bitly\Exception\GetScansSummaryForBitlinkNotFoundException + * @throws \Bitly\Exception\GetScansSummaryForBitlinkGoneException + * @throws \Bitly\Exception\GetScansSummaryForBitlinkInternalServerErrorException + * @throws \Bitly\Exception\GetScansSummaryForBitlinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ScansSummary', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansSummaryForBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansSummaryForBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansSummaryForBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansSummaryForBitlinkGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansSummaryForBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetScansSummaryForBitlinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetShopifyShopDomainDetails.php b/lib/Endpoint/GetShopifyShopDomainDetails.php new file mode 100644 index 0000000..b3c9159 --- /dev/null +++ b/lib/Endpoint/GetShopifyShopDomainDetails.php @@ -0,0 +1,88 @@ +organization_guid = $organizationGuid; + $this->client_id = $clientId; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{client_id}'], [$this->organization_guid, $this->client_id], '/private/organizations/{organization_guid}/integration_oauth/{client_id}/shopify_domain'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ShopifyDomainDetailsResponse|null + * + * @throws \Bitly\Exception\GetShopifyShopDomainDetailsBadRequestException + * @throws \Bitly\Exception\GetShopifyShopDomainDetailsForbiddenException + * @throws \Bitly\Exception\GetShopifyShopDomainDetailsNotFoundException + * @throws \Bitly\Exception\GetShopifyShopDomainDetailsInternalServerErrorException + * @throws \Bitly\Exception\GetShopifyShopDomainDetailsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ShopifyDomainDetailsResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetShopifyShopDomainDetailsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetShopifyShopDomainDetailsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetShopifyShopDomainDetailsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetShopifyShopDomainDetailsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetShopifyShopDomainDetailsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSite.php b/lib/Endpoint/GetSite.php new file mode 100644 index 0000000..ed78d2b --- /dev/null +++ b/lib/Endpoint/GetSite.php @@ -0,0 +1,85 @@ +site_id = $siteId; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\GetSiteBadRequestException + * @throws \Bitly\Exception\GetSiteForbiddenException + * @throws \Bitly\Exception\GetSiteNotFoundException + * @throws \Bitly\Exception\GetSiteInternalServerErrorException + * @throws \Bitly\Exception\GetSiteServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteClicksByCities.php b/lib/Endpoint/GetSiteClicksByCities.php new file mode 100644 index 0000000..63e5d89 --- /dev/null +++ b/lib/Endpoint/GetSiteClicksByCities.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/clicks/devices'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetSiteClicksByCitiesBadRequestException + * @throws \Bitly\Exception\GetSiteClicksByCitiesForbiddenException + * @throws \Bitly\Exception\GetSiteClicksByCitiesInternalServerErrorException + * @throws \Bitly\Exception\GetSiteClicksByCitiesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByCitiesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByCitiesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByCitiesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByCitiesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteClicksByCountries.php b/lib/Endpoint/GetSiteClicksByCountries.php new file mode 100644 index 0000000..079d22c --- /dev/null +++ b/lib/Endpoint/GetSiteClicksByCountries.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/clicks/countries'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByFacet|null + * + * @throws \Bitly\Exception\GetSiteClicksByCountriesBadRequestException + * @throws \Bitly\Exception\GetSiteClicksByCountriesForbiddenException + * @throws \Bitly\Exception\GetSiteClicksByCountriesInternalServerErrorException + * @throws \Bitly\Exception\GetSiteClicksByCountriesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByCountriesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByCountriesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByCountriesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByCountriesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteClicksByDevices.php b/lib/Endpoint/GetSiteClicksByDevices.php new file mode 100644 index 0000000..4adb508 --- /dev/null +++ b/lib/Endpoint/GetSiteClicksByDevices.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/clicks/cities'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinksByCitiesFacet|null + * + * @throws \Bitly\Exception\GetSiteClicksByDevicesBadRequestException + * @throws \Bitly\Exception\GetSiteClicksByDevicesForbiddenException + * @throws \Bitly\Exception\GetSiteClicksByDevicesInternalServerErrorException + * @throws \Bitly\Exception\GetSiteClicksByDevicesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinksByCitiesFacet', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByDevicesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByDevicesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByDevicesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksByDevicesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteClicksOverTime.php b/lib/Endpoint/GetSiteClicksOverTime.php new file mode 100644 index 0000000..594506b --- /dev/null +++ b/lib/Endpoint/GetSiteClicksOverTime.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/clicks/over_time'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\AggregateClicksForBitlinks|null + * + * @throws \Bitly\Exception\GetSiteClicksOverTimeBadRequestException + * @throws \Bitly\Exception\GetSiteClicksOverTimeForbiddenException + * @throws \Bitly\Exception\GetSiteClicksOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetSiteClicksOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AggregateClicksForBitlinks', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteClicksOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByBlocks.php b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByBlocks.php new file mode 100644 index 0000000..1b0abbb --- /dev/null +++ b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByBlocks.php @@ -0,0 +1,107 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/digital_business_card_downloads/blocks'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadMetrics|null + * + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksBadRequestException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksForbiddenException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksNotFoundException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksInternalServerErrorException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByBlocksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByCities.php b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByCities.php new file mode 100644 index 0000000..87ccae3 --- /dev/null +++ b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByCities.php @@ -0,0 +1,107 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/digital_business_card_downloads/cities'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\CityDownloadMetrics|null + * + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesBadRequestException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesForbiddenException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesNotFoundException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesInternalServerErrorException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\CityDownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCitiesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByCountries.php b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByCountries.php new file mode 100644 index 0000000..1bd16bf --- /dev/null +++ b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByCountries.php @@ -0,0 +1,107 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/digital_business_card_downloads/countries'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadMetrics|null + * + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesBadRequestException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesForbiddenException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesNotFoundException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesInternalServerErrorException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByCountriesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByDevices.php b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByDevices.php new file mode 100644 index 0000000..075a1c6 --- /dev/null +++ b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsByDevices.php @@ -0,0 +1,107 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/digital_business_card_downloads/devices'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DeviceDownloadMetrics|null + * + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesBadRequestException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesForbiddenException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesNotFoundException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesInternalServerErrorException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeviceDownloadMetrics', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsByDevicesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsOverTime.php b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsOverTime.php new file mode 100644 index 0000000..5db04c3 --- /dev/null +++ b/lib/Endpoint/GetSiteDigitalBusinessCardDownloadsOverTime.php @@ -0,0 +1,107 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/digital_business_card_downloads/over_time'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\DownloadsOverTime|null + * + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeBadRequestException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeForbiddenException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeNotFoundException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeInternalServerErrorException + * @throws \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DownloadsOverTime', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteDigitalBusinessCardDownloadsOverTimeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteFilteredTopPageButtons.php b/lib/Endpoint/GetSiteFilteredTopPageButtons.php new file mode 100644 index 0000000..6665577 --- /dev/null +++ b/lib/Endpoint/GetSiteFilteredTopPageButtons.php @@ -0,0 +1,104 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/aggregate/sites/clicks/top'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['site', 'unit', 'units', 'unit_reference', 'brand_guid', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('site', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('brand_guid', ['string']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedButtons|null + * + * @throws \Bitly\Exception\GetSiteFilteredTopPageButtonsBadRequestException + * @throws \Bitly\Exception\GetSiteFilteredTopPageButtonsForbiddenException + * @throws \Bitly\Exception\GetSiteFilteredTopPageButtonsInternalServerErrorException + * @throws \Bitly\Exception\GetSiteFilteredTopPageButtonsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedButtons', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteFilteredTopPageButtonsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteFilteredTopPageButtonsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteFilteredTopPageButtonsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteFilteredTopPageButtonsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSiteLayouts.php b/lib/Endpoint/GetSiteLayouts.php new file mode 100644 index 0000000..8592ba9 --- /dev/null +++ b/lib/Endpoint/GetSiteLayouts.php @@ -0,0 +1,74 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\BitlySiteLayout[]|null + * + * @throws \Bitly\Exception\GetSiteLayoutsBadRequestException + * @throws \Bitly\Exception\GetSiteLayoutsForbiddenException + * @throws \Bitly\Exception\GetSiteLayoutsNotFoundException + * @throws \Bitly\Exception\GetSiteLayoutsInternalServerErrorException + * @throws \Bitly\Exception\GetSiteLayoutsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlySiteLayout[]', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteLayoutsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteLayoutsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteLayoutsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteLayoutsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSiteLayoutsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSitesForGroup.php b/lib/Endpoint/GetSitesForGroup.php new file mode 100644 index 0000000..d4c604f --- /dev/null +++ b/lib/Endpoint/GetSitesForGroup.php @@ -0,0 +1,97 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/sites'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['search_after', 'size', 'sites_url_param']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('search_after', ['string']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('sites_url_param', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BitlySites|null + * + * @throws \Bitly\Exception\GetSitesForGroupBadRequestException + * @throws \Bitly\Exception\GetSitesForGroupForbiddenException + * @throws \Bitly\Exception\GetSitesForGroupInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlySites', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSitesForGroupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSitesForGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSitesForGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSortedEngagements.php b/lib/Endpoint/GetSortedEngagements.php new file mode 100644 index 0000000..297c4c7 --- /dev/null +++ b/lib/Endpoint/GetSortedEngagements.php @@ -0,0 +1,116 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/engagements/sorted'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['size', 'bitlink', 'unit', 'unit_reference', 'units', 'report_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('report_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedEngagements|null + * + * @throws \Bitly\Exception\GetSortedEngagementsBadRequestException + * @throws \Bitly\Exception\GetSortedEngagementsPaymentRequiredException + * @throws \Bitly\Exception\GetSortedEngagementsForbiddenException + * @throws \Bitly\Exception\GetSortedEngagementsNotFoundException + * @throws \Bitly\Exception\GetSortedEngagementsGoneException + * @throws \Bitly\Exception\GetSortedEngagementsInternalServerErrorException + * @throws \Bitly\Exception\GetSortedEngagementsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedEngagements', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedEngagementsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedEngagementsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedEngagementsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedEngagementsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedEngagementsGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedEngagementsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedEngagementsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSortedScans.php b/lib/Endpoint/GetSortedScans.php new file mode 100644 index 0000000..ccaf037 --- /dev/null +++ b/lib/Endpoint/GetSortedScans.php @@ -0,0 +1,114 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/engagements/scans/sorted'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['size', 'bitlink', 'unit', 'unit_reference', 'units']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedEngagements|null + * + * @throws \Bitly\Exception\GetSortedScansBadRequestException + * @throws \Bitly\Exception\GetSortedScansPaymentRequiredException + * @throws \Bitly\Exception\GetSortedScansForbiddenException + * @throws \Bitly\Exception\GetSortedScansNotFoundException + * @throws \Bitly\Exception\GetSortedScansGoneException + * @throws \Bitly\Exception\GetSortedScansInternalServerErrorException + * @throws \Bitly\Exception\GetSortedScansServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedEngagements', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetSortedScansForGroup.php b/lib/Endpoint/GetSortedScansForGroup.php new file mode 100644 index 0000000..769272d --- /dev/null +++ b/lib/Endpoint/GetSortedScansForGroup.php @@ -0,0 +1,115 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/scans/sorted'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedEngagements|null + * + * @throws \Bitly\Exception\GetSortedScansForGroupBadRequestException + * @throws \Bitly\Exception\GetSortedScansForGroupPaymentRequiredException + * @throws \Bitly\Exception\GetSortedScansForGroupForbiddenException + * @throws \Bitly\Exception\GetSortedScansForGroupNotFoundException + * @throws \Bitly\Exception\GetSortedScansForGroupGoneException + * @throws \Bitly\Exception\GetSortedScansForGroupInternalServerErrorException + * @throws \Bitly\Exception\GetSortedScansForGroupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedEngagements', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansForGroupBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansForGroupPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansForGroupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansForGroupNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansForGroupGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansForGroupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetSortedScansForGroupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetTemplates.php b/lib/Endpoint/GetTemplates.php new file mode 100644 index 0000000..f5abdbe --- /dev/null +++ b/lib/Endpoint/GetTemplates.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/site_templates'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['category']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('category', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Template[]|null + * + * @throws \Bitly\Exception\GetTemplatesForbiddenException + * @throws \Bitly\Exception\GetTemplatesNotFoundException + * @throws \Bitly\Exception\GetTemplatesInternalServerErrorException + * @throws \Bitly\Exception\GetTemplatesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Template[]', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTemplatesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTemplatesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTemplatesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTemplatesServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetTier.php b/lib/Endpoint/GetTier.php new file mode 100644 index 0000000..7d4c6df --- /dev/null +++ b/lib/Endpoint/GetTier.php @@ -0,0 +1,97 @@ +TierName = $tierName; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{TierName}'], [$this->TierName], '/tiers/{TierName}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Tier|null + * + * @throws \Bitly\Exception\GetTierForbiddenException + * @throws \Bitly\Exception\GetTierNotFoundException + * @throws \Bitly\Exception\GetTierInternalServerErrorException + * @throws \Bitly\Exception\GetTierServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Tier', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTierForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTierNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTierInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTierServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetTiers.php b/lib/Endpoint/GetTiers.php new file mode 100644 index 0000000..988ea9b --- /dev/null +++ b/lib/Endpoint/GetTiers.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/tiers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Tier[]|null + * + * @throws \Bitly\Exception\GetTiersForbiddenException + * @throws \Bitly\Exception\GetTiersInternalServerErrorException + * @throws \Bitly\Exception\GetTiersServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Tier[]', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTiersForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTiersInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTiersServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetTitleForLongURL.php b/lib/Endpoint/GetTitleForLongURL.php new file mode 100644 index 0000000..210ed27 --- /dev/null +++ b/lib/Endpoint/GetTitleForLongURL.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/private/title'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['url']); + $optionsResolver->setRequired(['url']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('url', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\TitleResponse|null + * + * @throws \Bitly\Exception\GetTitleForLongURLForbiddenException + * @throws \Bitly\Exception\GetTitleForLongURLNotFoundException + * @throws \Bitly\Exception\GetTitleForLongURLInternalServerErrorException + * @throws \Bitly\Exception\GetTitleForLongURLServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\TitleResponse', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTitleForLongURLForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTitleForLongURLNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTitleForLongURLInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTitleForLongURLServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetTopSortedBitlinks.php b/lib/Endpoint/GetTopSortedBitlinks.php new file mode 100644 index 0000000..4539e09 --- /dev/null +++ b/lib/Endpoint/GetTopSortedBitlinks.php @@ -0,0 +1,114 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/engagements/clicks/sorted'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['size', 'bitlink', 'unit', 'unit_reference', 'units']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['size' => 50]); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('bitlink', ['array']); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SortedEngagements|null + * + * @throws \Bitly\Exception\GetTopSortedBitlinksBadRequestException + * @throws \Bitly\Exception\GetTopSortedBitlinksPaymentRequiredException + * @throws \Bitly\Exception\GetTopSortedBitlinksForbiddenException + * @throws \Bitly\Exception\GetTopSortedBitlinksNotFoundException + * @throws \Bitly\Exception\GetTopSortedBitlinksGoneException + * @throws \Bitly\Exception\GetTopSortedBitlinksInternalServerErrorException + * @throws \Bitly\Exception\GetTopSortedBitlinksServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SortedEngagements', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTopSortedBitlinksBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTopSortedBitlinksPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTopSortedBitlinksForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTopSortedBitlinksNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTopSortedBitlinksGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTopSortedBitlinksInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTopSortedBitlinksServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetTwoFARecord.php b/lib/Endpoint/GetTwoFARecord.php new file mode 100644 index 0000000..a9cec60 --- /dev/null +++ b/lib/Endpoint/GetTwoFARecord.php @@ -0,0 +1,66 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\TwoFactor|null + * + * @throws \Bitly\Exception\GetTwoFARecordNotFoundException + * @throws \Bitly\Exception\GetTwoFARecordInternalServerErrorException + * @throws \Bitly\Exception\GetTwoFARecordServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\TwoFactor', 'json'); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTwoFARecordNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTwoFARecordInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetTwoFARecordServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetUMGroupPreferences.php b/lib/Endpoint/GetUMGroupPreferences.php new file mode 100644 index 0000000..abeb49e --- /dev/null +++ b/lib/Endpoint/GetUMGroupPreferences.php @@ -0,0 +1,81 @@ +group_guid = $groupGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/umpreferences'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\UMGroupPreferences|null + * + * @throws \Bitly\Exception\GetUMGroupPreferencesForbiddenException + * @throws \Bitly\Exception\GetUMGroupPreferencesNotFoundException + * @throws \Bitly\Exception\GetUMGroupPreferencesUnprocessableEntityException + * @throws \Bitly\Exception\GetUMGroupPreferencesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\UMGroupPreferences', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUMGroupPreferencesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUMGroupPreferencesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUMGroupPreferencesUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUMGroupPreferencesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetUMGroupSiteThemes.php b/lib/Endpoint/GetUMGroupSiteThemes.php new file mode 100644 index 0000000..9c6957e --- /dev/null +++ b/lib/Endpoint/GetUMGroupSiteThemes.php @@ -0,0 +1,64 @@ +group_guid = $groupGuid; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/site_themes'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SiteThemes|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteThemes', 'json'); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetUserActivityLog.php b/lib/Endpoint/GetUserActivityLog.php new file mode 100644 index 0000000..22ab6bb --- /dev/null +++ b/lib/Endpoint/GetUserActivityLog.php @@ -0,0 +1,94 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/user/activity_log'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['next_page', 'limit', 'action']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('next_page', ['string']); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('action', ['array']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ActivityLogs|null + * + * @throws \Bitly\Exception\GetUserActivityLogForbiddenException + * @throws \Bitly\Exception\GetUserActivityLogInternalServerErrorException + * @throws \Bitly\Exception\GetUserActivityLogServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ActivityLogs', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserActivityLogForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserActivityLogInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserActivityLogServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetUserAvailableTiers.php b/lib/Endpoint/GetUserAvailableTiers.php new file mode 100644 index 0000000..692bf0f --- /dev/null +++ b/lib/Endpoint/GetUserAvailableTiers.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/user_available_tiers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Tier[]|null + * + * @throws \Bitly\Exception\GetUserAvailableTiersForbiddenException + * @throws \Bitly\Exception\GetUserAvailableTiersInternalServerErrorException + * @throws \Bitly\Exception\GetUserAvailableTiersServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Tier[]', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserAvailableTiersForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserAvailableTiersInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserAvailableTiersServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetUserOnboardingSurveyResults.php b/lib/Endpoint/GetUserOnboardingSurveyResults.php new file mode 100644 index 0000000..42f281e --- /dev/null +++ b/lib/Endpoint/GetUserOnboardingSurveyResults.php @@ -0,0 +1,62 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\UserOnboardingSurvey|null + * + * @throws \Bitly\Exception\GetUserOnboardingSurveyResultsForbiddenException + * @throws \Bitly\Exception\GetUserOnboardingSurveyResultsInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\UserOnboardingSurvey', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserOnboardingSurveyResultsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserOnboardingSurveyResultsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetUserPreferences.php b/lib/Endpoint/GetUserPreferences.php new file mode 100644 index 0000000..ee1c668 --- /dev/null +++ b/lib/Endpoint/GetUserPreferences.php @@ -0,0 +1,62 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\UserPreferences|null + * + * @throws \Bitly\Exception\GetUserPreferencesBadRequestException + * @throws \Bitly\Exception\GetUserPreferencesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\UserPreferences', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserPreferencesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUserPreferencesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetUsers.php b/lib/Endpoint/GetUsers.php new file mode 100644 index 0000000..5aaaf56 --- /dev/null +++ b/lib/Endpoint/GetUsers.php @@ -0,0 +1,104 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/users'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid', 'page', 'size', 'group_guid', 'logins', 'full_name_search']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1, 'size' => 50]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('group_guid', ['string']); + $optionsResolver->addAllowedTypes('logins', ['array']); + $optionsResolver->addAllowedTypes('full_name_search', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Users|null + * + * @throws \Bitly\Exception\GetUsersForbiddenException + * @throws \Bitly\Exception\GetUsersNotFoundException + * @throws \Bitly\Exception\GetUsersInternalServerErrorException + * @throws \Bitly\Exception\GetUsersServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Users', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUsersForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUsersNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUsersInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetUsersServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetViewsForLaunchpad.php b/lib/Endpoint/GetViewsForLaunchpad.php new file mode 100644 index 0000000..83cd26d --- /dev/null +++ b/lib/Endpoint/GetViewsForLaunchpad.php @@ -0,0 +1,103 @@ +launchpad_id = $launchpadId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/views'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\Views|null + * + * @throws \Bitly\Exception\GetViewsForLaunchpadForbiddenException + * @throws \Bitly\Exception\GetViewsForLaunchpadNotFoundException + * @throws \Bitly\Exception\GetViewsForLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\GetViewsForLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Views', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsForLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsForLaunchpadNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsForLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsForLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetViewsForSite.php b/lib/Endpoint/GetViewsForSite.php new file mode 100644 index 0000000..013f3fb --- /dev/null +++ b/lib/Endpoint/GetViewsForSite.php @@ -0,0 +1,103 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/views'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SiteViewMetrics|null + * + * @throws \Bitly\Exception\GetViewsForSiteForbiddenException + * @throws \Bitly\Exception\GetViewsForSiteNotFoundException + * @throws \Bitly\Exception\GetViewsForSiteInternalServerErrorException + * @throws \Bitly\Exception\GetViewsForSiteServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteViewMetrics', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsForSiteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsForSiteNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsForSiteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsForSiteServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetViewsSummaryForLaunchpad.php b/lib/Endpoint/GetViewsSummaryForLaunchpad.php new file mode 100644 index 0000000..6569faf --- /dev/null +++ b/lib/Endpoint/GetViewsSummaryForLaunchpad.php @@ -0,0 +1,103 @@ +launchpad_id = $launchpadId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/views/summary'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ViewsSummary|null + * + * @throws \Bitly\Exception\GetViewsSummaryForLaunchpadForbiddenException + * @throws \Bitly\Exception\GetViewsSummaryForLaunchpadNotFoundException + * @throws \Bitly\Exception\GetViewsSummaryForLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\GetViewsSummaryForLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ViewsSummary', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsSummaryForLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsSummaryForLaunchpadNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsSummaryForLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsSummaryForLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/GetViewsSummaryForSite.php b/lib/Endpoint/GetViewsSummaryForSite.php new file mode 100644 index 0000000..a330b4c --- /dev/null +++ b/lib/Endpoint/GetViewsSummaryForSite.php @@ -0,0 +1,103 @@ +site_id = $siteId; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/views/summary'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['unit', 'units', 'size', 'unit_reference']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['unit' => 'day', 'size' => 50]); + $optionsResolver->addAllowedTypes('unit', ['string']); + $optionsResolver->addAllowedTypes('units', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('unit_reference', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\SiteViewsSummary|null + * + * @throws \Bitly\Exception\GetViewsSummaryForSiteForbiddenException + * @throws \Bitly\Exception\GetViewsSummaryForSiteNotFoundException + * @throws \Bitly\Exception\GetViewsSummaryForSiteInternalServerErrorException + * @throws \Bitly\Exception\GetViewsSummaryForSiteServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SiteViewsSummary', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsSummaryForSiteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsSummaryForSiteNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsSummaryForSiteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\GetViewsSummaryForSiteServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/HandleWebhook.php b/lib/Endpoint/HandleWebhook.php new file mode 100644 index 0000000..6f81888 --- /dev/null +++ b/lib/Endpoint/HandleWebhook.php @@ -0,0 +1,66 @@ + ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\HandleWebhookForbiddenException + * @throws \Bitly\Exception\HandleWebhookUnprocessableEntityException + * @throws \Bitly\Exception\HandleWebhookInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\HandleWebhookForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\HandleWebhookUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\HandleWebhookInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ListQRMinimal.php b/lib/Endpoint/ListQRMinimal.php index 4342699..cffdfbb 100644 --- a/lib/Endpoint/ListQRMinimal.php +++ b/lib/Endpoint/ListQRMinimal.php @@ -26,6 +26,7 @@ class ListQRMinimal extends \Bitly\Runtime\Client\BaseEndpoint implements \Bitly * @var int $size The quantity of items to be be returned * @var string $search_after token used to search next batch of qr codes, only use response from API as input value * @var string $query The value that you would like to search + * @var string $hostname_path_query The hostname and/or path you would like to search (case-insensitive). Subdomains included; query params and fragment ignored. * @var int $created_before Timestamp as an integer unix epoch (seconds only) * @var int $created_after Timestamp as an integer unix epoch (seconds only) * @var string $archived Whether or not to include archived resources @@ -63,13 +64,14 @@ public function getExtraHeaders(): array protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['has_render_customizations', 'size', 'search_after', 'query', 'created_before', 'created_after', 'archived', 'creating_login', 'qrc_type', 'is_gs1']); + $optionsResolver->setDefined(['has_render_customizations', 'size', 'search_after', 'query', 'hostname_path_query', 'created_before', 'created_after', 'archived', 'creating_login', 'qrc_type', 'is_gs1']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['has_render_customizations' => 'both', 'size' => 50, 'archived' => 'off', 'qrc_type' => [0 => 'bitlink', 1 => 'long_url'], 'is_gs1' => 'both']); $optionsResolver->addAllowedTypes('has_render_customizations', ['string']); $optionsResolver->addAllowedTypes('size', ['int']); $optionsResolver->addAllowedTypes('search_after', ['string']); $optionsResolver->addAllowedTypes('query', ['string']); + $optionsResolver->addAllowedTypes('hostname_path_query', ['string']); $optionsResolver->addAllowedTypes('created_before', ['int']); $optionsResolver->addAllowedTypes('created_after', ['int']); $optionsResolver->addAllowedTypes('archived', ['string']); diff --git a/lib/Endpoint/NotifyPaymentFailure.php b/lib/Endpoint/NotifyPaymentFailure.php new file mode 100644 index 0000000..7b38dbe --- /dev/null +++ b/lib/Endpoint/NotifyPaymentFailure.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/payment_failure'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\OrganizationGUID) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\NotifyPaymentFailureBadRequestException + * @throws \Bitly\Exception\NotifyPaymentFailureUnprocessableEntityException + * @throws \Bitly\Exception\NotifyPaymentFailureInternalServerErrorException + * @throws \Bitly\Exception\NotifyPaymentFailureServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\NotifyPaymentFailureBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\NotifyPaymentFailureUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\NotifyPaymentFailureInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\NotifyPaymentFailureServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PatchCanvaUserBrand.php b/lib/Endpoint/PatchCanvaUserBrand.php new file mode 100644 index 0000000..4b18769 --- /dev/null +++ b/lib/Endpoint/PatchCanvaUserBrand.php @@ -0,0 +1,82 @@ +canvaUserID = $canvaUserID; + $this->canvaBrandID = $canvaBrandID; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{canvaUserID}', '{canvaBrandID}'], [$this->canvaUserID, $this->canvaBrandID], '/canva/userbrand/{canvaUserID}/{canvaBrandID}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateCanvaUserBrand) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PatchCanvaUserBrandBadRequestException + * @throws \Bitly\Exception\PatchCanvaUserBrandNotFoundException + * @throws \Bitly\Exception\PatchCanvaUserBrandInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchCanvaUserBrandBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchCanvaUserBrandNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchCanvaUserBrandInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PatchOrgControlledDomain.php b/lib/Endpoint/PatchOrgControlledDomain.php new file mode 100644 index 0000000..43f8bea --- /dev/null +++ b/lib/Endpoint/PatchOrgControlledDomain.php @@ -0,0 +1,93 @@ +organization_guid = $organizationGuid; + $this->domain = $domain; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{domain}'], [$this->organization_guid, $this->domain], '/organizations/{organization_guid}/controlled_domains/{domain}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\PatchOrgControlledDomain) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PatchOrgControlledDomainBadRequestException + * @throws \Bitly\Exception\PatchOrgControlledDomainPaymentRequiredException + * @throws \Bitly\Exception\PatchOrgControlledDomainForbiddenException + * @throws \Bitly\Exception\PatchOrgControlledDomainUnprocessableEntityException + * @throws \Bitly\Exception\PatchOrgControlledDomainInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgControlledDomainBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgControlledDomainPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgControlledDomainForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgControlledDomainUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgControlledDomainInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PatchOrgInvitationRequest.php b/lib/Endpoint/PatchOrgInvitationRequest.php new file mode 100644 index 0000000..c9ee6b7 --- /dev/null +++ b/lib/Endpoint/PatchOrgInvitationRequest.php @@ -0,0 +1,86 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/invitation_request'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\PatchOrgInvitationRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PatchOrgInvitationRequestBadRequestException + * @throws \Bitly\Exception\PatchOrgInvitationRequestForbiddenException + * @throws \Bitly\Exception\PatchOrgInvitationRequestUnprocessableEntityException + * @throws \Bitly\Exception\PatchOrgInvitationRequestInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgInvitationRequestBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgInvitationRequestForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgInvitationRequestUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchOrgInvitationRequestInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PatchUMGroupPreferences.php b/lib/Endpoint/PatchUMGroupPreferences.php new file mode 100644 index 0000000..d350dfb --- /dev/null +++ b/lib/Endpoint/PatchUMGroupPreferences.php @@ -0,0 +1,93 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/umpreferences'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['application/json']], json_encode($this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PatchUMGroupPreferencesBadRequestException + * @throws \Bitly\Exception\PatchUMGroupPreferencesForbiddenException + * @throws \Bitly\Exception\PatchUMGroupPreferencesNotFoundException + * @throws \Bitly\Exception\PatchUMGroupPreferencesUnprocessableEntityException + * @throws \Bitly\Exception\PatchUMGroupPreferencesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); + } + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchUMGroupPreferencesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchUMGroupPreferencesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchUMGroupPreferencesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchUMGroupPreferencesUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PatchUMGroupPreferencesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PostGetLinksReport.php b/lib/Endpoint/PostGetLinksReport.php new file mode 100644 index 0000000..71739d0 --- /dev/null +++ b/lib/Endpoint/PostGetLinksReport.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/links_report'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LinksReportRequestBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/json', 'text/csv']]; + } + + return $this->accept; + } + + /** + * @return \Bitly\Model\LinksReportRequestResponse|null + * + * @throws \Bitly\Exception\PostGetLinksReportBadRequestException + * @throws \Bitly\Exception\PostGetLinksReportPaymentRequiredException + * @throws \Bitly\Exception\PostGetLinksReportForbiddenException + * @throws \Bitly\Exception\PostGetLinksReportUnprocessableEntityException + * @throws \Bitly\Exception\PostGetLinksReportInternalServerErrorException + * @throws \Bitly\Exception\PostGetLinksReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LinksReportRequestResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGetLinksReportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGetLinksReportPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGetLinksReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGetLinksReportUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGetLinksReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGetLinksReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PostGroupDataExport.php b/lib/Endpoint/PostGroupDataExport.php new file mode 100644 index 0000000..2e4f094 --- /dev/null +++ b/lib/Endpoint/PostGroupDataExport.php @@ -0,0 +1,90 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/data_export'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DataExportQuery) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PostGroupDataExportBadRequestException + * @throws \Bitly\Exception\PostGroupDataExportForbiddenException + * @throws \Bitly\Exception\PostGroupDataExportUnprocessableEntityException + * @throws \Bitly\Exception\PostGroupDataExportInternalServerErrorException + * @throws \Bitly\Exception\PostGroupDataExportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGroupDataExportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGroupDataExportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGroupDataExportUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGroupDataExportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostGroupDataExportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PostOrgUsersDataExport.php b/lib/Endpoint/PostOrgUsersDataExport.php new file mode 100644 index 0000000..9bb2a84 --- /dev/null +++ b/lib/Endpoint/PostOrgUsersDataExport.php @@ -0,0 +1,90 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/users/data_export'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\OrgUsersDataExportQuery) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PostOrgUsersDataExportBadRequestException + * @throws \Bitly\Exception\PostOrgUsersDataExportPaymentRequiredException + * @throws \Bitly\Exception\PostOrgUsersDataExportForbiddenException + * @throws \Bitly\Exception\PostOrgUsersDataExportUnprocessableEntityException + * @throws \Bitly\Exception\PostOrgUsersDataExportInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostOrgUsersDataExportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostOrgUsersDataExportPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostOrgUsersDataExportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostOrgUsersDataExportUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PostOrgUsersDataExportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PrevalidateYouTubeVideoButton.php b/lib/Endpoint/PrevalidateYouTubeVideoButton.php new file mode 100644 index 0000000..cae3d2c --- /dev/null +++ b/lib/Endpoint/PrevalidateYouTubeVideoButton.php @@ -0,0 +1,86 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/sites/{launchpad_id}/buttons/youtubeVideo/prevalidate'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\PrevalidateYouTubeVideoRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\YoutubeVideoRequest|null + * + * @throws \Bitly\Exception\PrevalidateYouTubeVideoButtonBadRequestException + * @throws \Bitly\Exception\PrevalidateYouTubeVideoButtonForbiddenException + * @throws \Bitly\Exception\PrevalidateYouTubeVideoButtonUnprocessableEntityException + * @throws \Bitly\Exception\PrevalidateYouTubeVideoButtonInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\YoutubeVideoRequest', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PrevalidateYouTubeVideoButtonBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PrevalidateYouTubeVideoButtonForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PrevalidateYouTubeVideoButtonUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PrevalidateYouTubeVideoButtonInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PublishDraftLaunchpad.php b/lib/Endpoint/PublishDraftLaunchpad.php new file mode 100644 index 0000000..74f4f98 --- /dev/null +++ b/lib/Endpoint/PublishDraftLaunchpad.php @@ -0,0 +1,81 @@ +launchpad_id = $launchpadId; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/publish'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Launchpad|null + * + * @throws \Bitly\Exception\PublishDraftLaunchpadBadRequestException + * @throws \Bitly\Exception\PublishDraftLaunchpadForbiddenException + * @throws \Bitly\Exception\PublishDraftLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\PublishDraftLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Launchpad', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PublishDraftLaunchpadBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PublishDraftLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PublishDraftLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PublishDraftLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PublishSite.php b/lib/Endpoint/PublishSite.php new file mode 100644 index 0000000..ffa1926 --- /dev/null +++ b/lib/Endpoint/PublishSite.php @@ -0,0 +1,81 @@ +site_id = $siteId; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/publish'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PublishSiteBadRequestException + * @throws \Bitly\Exception\PublishSiteForbiddenException + * @throws \Bitly\Exception\PublishSiteInternalServerErrorException + * @throws \Bitly\Exception\PublishSiteServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PublishSiteBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PublishSiteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PublishSiteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PublishSiteServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PurchaseAddOns.php b/lib/Endpoint/PurchaseAddOns.php new file mode 100644 index 0000000..18b450a --- /dev/null +++ b/lib/Endpoint/PurchaseAddOns.php @@ -0,0 +1,94 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/add_ons'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\AddOns) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PurchaseAddOnsBadRequestException + * @throws \Bitly\Exception\PurchaseAddOnsForbiddenException + * @throws \Bitly\Exception\PurchaseAddOnsNotFoundException + * @throws \Bitly\Exception\PurchaseAddOnsUnprocessableEntityException + * @throws \Bitly\Exception\PurchaseAddOnsInternalServerErrorException + * @throws \Bitly\Exception\PurchaseAddOnsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseAddOnsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseAddOnsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseAddOnsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseAddOnsUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseAddOnsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseAddOnsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PurchaseBsd.php b/lib/Endpoint/PurchaseBsd.php new file mode 100644 index 0000000..2d4887e --- /dev/null +++ b/lib/Endpoint/PurchaseBsd.php @@ -0,0 +1,74 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/domains'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\PurchaseBSD) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PurchaseBSDResponse|null + * + * @throws \Bitly\Exception\PurchaseBsdForbiddenException + * @throws \Bitly\Exception\PurchaseBsdInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PurchaseBSDResponse', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseBsdForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseBsdInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PurchaseStripeAddOns.php b/lib/Endpoint/PurchaseStripeAddOns.php new file mode 100644 index 0000000..346ef97 --- /dev/null +++ b/lib/Endpoint/PurchaseStripeAddOns.php @@ -0,0 +1,94 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/stripe/organizations/{organization_guid}/add_ons'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\AddOns) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\PurchaseStripeAddOnsBadRequestException + * @throws \Bitly\Exception\PurchaseStripeAddOnsForbiddenException + * @throws \Bitly\Exception\PurchaseStripeAddOnsNotFoundException + * @throws \Bitly\Exception\PurchaseStripeAddOnsUnprocessableEntityException + * @throws \Bitly\Exception\PurchaseStripeAddOnsInternalServerErrorException + * @throws \Bitly\Exception\PurchaseStripeAddOnsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseStripeAddOnsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseStripeAddOnsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseStripeAddOnsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseStripeAddOnsUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseStripeAddOnsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\PurchaseStripeAddOnsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/PutUMGroupSiteTheme.php b/lib/Endpoint/PutUMGroupSiteTheme.php new file mode 100644 index 0000000..46ee208 --- /dev/null +++ b/lib/Endpoint/PutUMGroupSiteTheme.php @@ -0,0 +1,64 @@ +group_guid = $groupGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/site_themes'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\SiteThemes) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + /** + * @return null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + return null; + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/RedirectQRCodeDestination.php b/lib/Endpoint/RedirectQRCodeDestination.php new file mode 100644 index 0000000..81592fc --- /dev/null +++ b/lib/Endpoint/RedirectQRCodeDestination.php @@ -0,0 +1,88 @@ +id = $id; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/qr-codes/{id}/redirect'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\RedirectQRCodeRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\QRCodeMinimal|null + * + * @throws \Bitly\Exception\RedirectQRCodeDestinationBadRequestException + * @throws \Bitly\Exception\RedirectQRCodeDestinationForbiddenException + * @throws \Bitly\Exception\RedirectQRCodeDestinationNotFoundException + * @throws \Bitly\Exception\RedirectQRCodeDestinationTooManyRequestsException + * @throws \Bitly\Exception\RedirectQRCodeDestinationInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\QRCodeMinimal', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RedirectQRCodeDestinationBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RedirectQRCodeDestinationForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RedirectQRCodeDestinationNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RedirectQRCodeDestinationTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RedirectQRCodeDestinationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/RegeneratePaymentInvoiceFile.php b/lib/Endpoint/RegeneratePaymentInvoiceFile.php new file mode 100644 index 0000000..6dd013b --- /dev/null +++ b/lib/Endpoint/RegeneratePaymentInvoiceFile.php @@ -0,0 +1,75 @@ +organization_guid = $organizationGuid; + $this->invoiceID = $invoiceID; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{invoiceID}'], [$this->organization_guid, $this->invoiceID], '/organizations/{organization_guid}/payment_invoices/{invoiceID}/file'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\RegeneratePaymentInvoiceFileForbiddenException + * @throws \Bitly\Exception\RegeneratePaymentInvoiceFileInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RegeneratePaymentInvoiceFileForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RegeneratePaymentInvoiceFileInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ReorderBlocksByContainer.php b/lib/Endpoint/ReorderBlocksByContainer.php new file mode 100644 index 0000000..eac5791 --- /dev/null +++ b/lib/Endpoint/ReorderBlocksByContainer.php @@ -0,0 +1,97 @@ +site_id = $siteId; + $this->container_id = $containerId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{container_id}'], [$this->site_id, $this->container_id], '/sites/{site_id}/containers/{container_id}/blocks'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BlockOrders) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\ReorderBlocksByContainerBadRequestException + * @throws \Bitly\Exception\ReorderBlocksByContainerForbiddenException + * @throws \Bitly\Exception\ReorderBlocksByContainerNotFoundException + * @throws \Bitly\Exception\ReorderBlocksByContainerUnprocessableEntityException + * @throws \Bitly\Exception\ReorderBlocksByContainerInternalServerErrorException + * @throws \Bitly\Exception\ReorderBlocksByContainerServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ReorderBlocksByContainerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ReorderBlocksByContainerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ReorderBlocksByContainerNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ReorderBlocksByContainerUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ReorderBlocksByContainerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ReorderBlocksByContainerServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/RequestUserSAR.php b/lib/Endpoint/RequestUserSAR.php new file mode 100644 index 0000000..a3e4610 --- /dev/null +++ b/lib/Endpoint/RequestUserSAR.php @@ -0,0 +1,80 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/user/sar'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if (isset($this->body)) { + return [['Content-Type' => ['application/json']], json_encode($this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\RequestUserSARForbiddenException + * @throws \Bitly\Exception\RequestUserSARInternalServerErrorException + * @throws \Bitly\Exception\RequestUserSARServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + return null; + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RequestUserSARForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RequestUserSARInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\RequestUserSARServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ResendInvitation.php b/lib/Endpoint/ResendInvitation.php new file mode 100644 index 0000000..2d32234 --- /dev/null +++ b/lib/Endpoint/ResendInvitation.php @@ -0,0 +1,84 @@ +organization_guid = $organizationGuid; + $this->email = $email; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{email}'], [$this->organization_guid, $this->email], '/organizations/{organization_guid}/invitations/{email}/resend'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Invitation|null + * + * @throws \Bitly\Exception\ResendInvitationForbiddenException + * @throws \Bitly\Exception\ResendInvitationNotFoundException + * @throws \Bitly\Exception\ResendInvitationTooManyRequestsException + * @throws \Bitly\Exception\ResendInvitationInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Invitation', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ResendInvitationForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ResendInvitationNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ResendInvitationTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ResendInvitationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ScheduleOrgDowngradeStripe.php b/lib/Endpoint/ScheduleOrgDowngradeStripe.php new file mode 100644 index 0000000..3f80c14 --- /dev/null +++ b/lib/Endpoint/ScheduleOrgDowngradeStripe.php @@ -0,0 +1,82 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/private/stripe/organizations/{organization_guid}/subscriptions/schedule_downgrade'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BillingDowngrade) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SubscriptionCancelledDate|null + * + * @throws \Bitly\Exception\ScheduleOrgDowngradeStripeBadRequestException + * @throws \Bitly\Exception\ScheduleOrgDowngradeStripeForbiddenException + * @throws \Bitly\Exception\ScheduleOrgDowngradeStripeInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SubscriptionCancelledDate', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ScheduleOrgDowngradeStripeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ScheduleOrgDowngradeStripeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ScheduleOrgDowngradeStripeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ScheduleOrganizationDowngrade.php b/lib/Endpoint/ScheduleOrganizationDowngrade.php new file mode 100644 index 0000000..dc3e31c --- /dev/null +++ b/lib/Endpoint/ScheduleOrganizationDowngrade.php @@ -0,0 +1,82 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/schedule_downgrade'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BillingDowngrade) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SubscriptionCancelledDate|null + * + * @throws \Bitly\Exception\ScheduleOrganizationDowngradeBadRequestException + * @throws \Bitly\Exception\ScheduleOrganizationDowngradeForbiddenException + * @throws \Bitly\Exception\ScheduleOrganizationDowngradeInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SubscriptionCancelledDate', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ScheduleOrganizationDowngradeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ScheduleOrganizationDowngradeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ScheduleOrganizationDowngradeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SearchDomains.php b/lib/Endpoint/SearchDomains.php new file mode 100644 index 0000000..d4a1779 --- /dev/null +++ b/lib/Endpoint/SearchDomains.php @@ -0,0 +1,90 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/bsds/search'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['limit', 'query', 'organization_guid']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('limit', ['int']); + $optionsResolver->addAllowedTypes('query', ['string']); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\BSDSearchResults|null + * + * @throws \Bitly\Exception\SearchDomainsForbiddenException + * @throws \Bitly\Exception\SearchDomainsInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BSDSearchResults', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchDomainsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchDomainsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SearchGroupUserRoles.php b/lib/Endpoint/SearchGroupUserRoles.php new file mode 100644 index 0000000..ce1dea3 --- /dev/null +++ b/lib/Endpoint/SearchGroupUserRoles.php @@ -0,0 +1,101 @@ +group_guid = $groupGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}'], [$this->group_guid], '/groups/{group_guid}/user_roles'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page', 'size', 'query']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1, 'size' => 50]); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('query', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\UserRoleReferences|null + * + * @throws \Bitly\Exception\SearchGroupUserRolesBadRequestException + * @throws \Bitly\Exception\SearchGroupUserRolesForbiddenException + * @throws \Bitly\Exception\SearchGroupUserRolesNotFoundException + * @throws \Bitly\Exception\SearchGroupUserRolesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\UserRoleReferences', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchGroupUserRolesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchGroupUserRolesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchGroupUserRolesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchGroupUserRolesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SearchOrgUserRoles.php b/lib/Endpoint/SearchOrgUserRoles.php new file mode 100644 index 0000000..5bea09d --- /dev/null +++ b/lib/Endpoint/SearchOrgUserRoles.php @@ -0,0 +1,101 @@ +organization_guid = $organizationGuid; + $this->queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/user_roles'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page', 'size', 'query']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1, 'size' => 50]); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('size', ['int']); + $optionsResolver->addAllowedTypes('query', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\UserRoleReferences|null + * + * @throws \Bitly\Exception\SearchOrgUserRolesBadRequestException + * @throws \Bitly\Exception\SearchOrgUserRolesForbiddenException + * @throws \Bitly\Exception\SearchOrgUserRolesNotFoundException + * @throws \Bitly\Exception\SearchOrgUserRolesInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\UserRoleReferences', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchOrgUserRolesBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchOrgUserRolesForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchOrgUserRolesNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SearchOrgUserRolesInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SendEmailVerification.php b/lib/Endpoint/SendEmailVerification.php new file mode 100644 index 0000000..2f050d9 --- /dev/null +++ b/lib/Endpoint/SendEmailVerification.php @@ -0,0 +1,87 @@ +email = $email; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{email}'], [$this->email], '/emails/{email}/verify'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if (isset($this->body)) { + return [['Content-Type' => ['application/json']], json_encode($this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\SendEmailVerificationBadRequestException + * @throws \Bitly\Exception\SendEmailVerificationNotFoundException + * @throws \Bitly\Exception\SendEmailVerificationInternalServerErrorException + * @throws \Bitly\Exception\SendEmailVerificationServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendEmailVerificationBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendEmailVerificationNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendEmailVerificationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendEmailVerificationServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SendVerificationCode.php b/lib/Endpoint/SendVerificationCode.php new file mode 100644 index 0000000..c8e98ca --- /dev/null +++ b/lib/Endpoint/SendVerificationCode.php @@ -0,0 +1,78 @@ + ['application/json']]; + } + + /** + * @return \Bitly\Model\TwoFactor|null + * + * @throws \Bitly\Exception\SendVerificationCodeBadRequestException + * @throws \Bitly\Exception\SendVerificationCodeUnauthorizedException + * @throws \Bitly\Exception\SendVerificationCodeForbiddenException + * @throws \Bitly\Exception\SendVerificationCodeNotFoundException + * @throws \Bitly\Exception\SendVerificationCodeInternalServerErrorException + * @throws \Bitly\Exception\SendVerificationCodeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\TwoFactor', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendVerificationCodeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (401 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendVerificationCodeUnauthorizedException($serializer->deserialize($body, 'Bitly\Model\Unauthorized', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendVerificationCodeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendVerificationCodeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendVerificationCodeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SendVerificationCodeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SetOrgPreference.php b/lib/Endpoint/SetOrgPreference.php new file mode 100644 index 0000000..5a707f0 --- /dev/null +++ b/lib/Endpoint/SetOrgPreference.php @@ -0,0 +1,86 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/preference'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\OrganizationPreferenceSet) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\SetOrgPreferenceBadRequestException + * @throws \Bitly\Exception\SetOrgPreferenceForbiddenException + * @throws \Bitly\Exception\SetOrgPreferenceUnprocessableEntityException + * @throws \Bitly\Exception\SetOrgPreferenceInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetOrgPreferenceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetOrgPreferenceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetOrgPreferenceUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetOrgPreferenceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SetPaymentMethodDefault.php b/lib/Endpoint/SetPaymentMethodDefault.php new file mode 100644 index 0000000..6e6e3df --- /dev/null +++ b/lib/Endpoint/SetPaymentMethodDefault.php @@ -0,0 +1,92 @@ +organization_guid = $organizationGuid; + $this->payment_method_id = $paymentMethodId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{payment_method_id}'], [$this->organization_guid, $this->payment_method_id], '/organizations/{organization_guid}/payment_methods/{payment_method_id}/set_default'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BillingAddress) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\SetPaymentMethodDefaultBadRequestException + * @throws \Bitly\Exception\SetPaymentMethodDefaultForbiddenException + * @throws \Bitly\Exception\SetPaymentMethodDefaultUnprocessableEntityException + * @throws \Bitly\Exception\SetPaymentMethodDefaultInternalServerErrorException + * @throws \Bitly\Exception\SetPaymentMethodDefaultServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPaymentMethodDefaultBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPaymentMethodDefaultForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPaymentMethodDefaultUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPaymentMethodDefaultInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPaymentMethodDefaultServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SetPhoneNumber.php b/lib/Endpoint/SetPhoneNumber.php new file mode 100644 index 0000000..c44cf64 --- /dev/null +++ b/lib/Endpoint/SetPhoneNumber.php @@ -0,0 +1,86 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/user/two_factor/sms'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\TwoFactor) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\TwoFactor|null + * + * @throws \Bitly\Exception\SetPhoneNumberBadRequestException + * @throws \Bitly\Exception\SetPhoneNumberForbiddenException + * @throws \Bitly\Exception\SetPhoneNumberUnprocessableEntityException + * @throws \Bitly\Exception\SetPhoneNumberInternalServerErrorException + * @throws \Bitly\Exception\SetPhoneNumberServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\TwoFactor', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPhoneNumberBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPhoneNumberForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPhoneNumberUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPhoneNumberInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetPhoneNumberServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SetStripeDefaultPaymentMethod.php b/lib/Endpoint/SetStripeDefaultPaymentMethod.php new file mode 100644 index 0000000..69c8f40 --- /dev/null +++ b/lib/Endpoint/SetStripeDefaultPaymentMethod.php @@ -0,0 +1,88 @@ +organization_guid = $organizationGuid; + $this->payment_method_id = $paymentMethodId; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{payment_method_id}'], [$this->organization_guid, $this->payment_method_id], '/private/stripe/organizations/{organization_guid}/payment_method/{payment_method_id}/default'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\SetStripeDefaultPaymentMethodBadRequestException + * @throws \Bitly\Exception\SetStripeDefaultPaymentMethodForbiddenException + * @throws \Bitly\Exception\SetStripeDefaultPaymentMethodUnprocessableEntityException + * @throws \Bitly\Exception\SetStripeDefaultPaymentMethodInternalServerErrorException + * @throws \Bitly\Exception\SetStripeDefaultPaymentMethodServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetStripeDefaultPaymentMethodBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetStripeDefaultPaymentMethodForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetStripeDefaultPaymentMethodUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetStripeDefaultPaymentMethodInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetStripeDefaultPaymentMethodServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/SetUserPreference.php b/lib/Endpoint/SetUserPreference.php new file mode 100644 index 0000000..c9d1d58 --- /dev/null +++ b/lib/Endpoint/SetUserPreference.php @@ -0,0 +1,81 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return '/user_preferences'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UserPreferenceBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\SetUserPreferenceBadRequestException + * @throws \Bitly\Exception\SetUserPreferenceUnprocessableEntityException + * @throws \Bitly\Exception\SetUserPreferenceInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + return null; + } + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetUserPreferenceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetUserPreferenceUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\SetUserPreferenceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ThirdPartyAppLookup.php b/lib/Endpoint/ThirdPartyAppLookup.php new file mode 100644 index 0000000..706436d --- /dev/null +++ b/lib/Endpoint/ThirdPartyAppLookup.php @@ -0,0 +1,102 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/deeplinks/scrape'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization_guid', 'third_party_app_id', 'os']); + $optionsResolver->setRequired(['third_party_app_id', 'os']); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization_guid', ['string']); + $optionsResolver->addAllowedTypes('third_party_app_id', ['string']); + $optionsResolver->addAllowedTypes('os', ['string']); + + return $optionsResolver; + } + + /** + * @return \Bitly\Model\ThirdPartyAppData|null + * + * @throws \Bitly\Exception\ThirdPartyAppLookupPaymentRequiredException + * @throws \Bitly\Exception\ThirdPartyAppLookupForbiddenException + * @throws \Bitly\Exception\ThirdPartyAppLookupNotFoundException + * @throws \Bitly\Exception\ThirdPartyAppLookupInternalServerErrorException + * @throws \Bitly\Exception\ThirdPartyAppLookupServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ThirdPartyAppData', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ThirdPartyAppLookupPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ThirdPartyAppLookupForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ThirdPartyAppLookupNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ThirdPartyAppLookupInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ThirdPartyAppLookupServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateAnalyticsModule.php b/lib/Endpoint/UpdateAnalyticsModule.php new file mode 100644 index 0000000..2c1bf60 --- /dev/null +++ b/lib/Endpoint/UpdateAnalyticsModule.php @@ -0,0 +1,92 @@ +group_guid = $groupGuid; + $this->module_guid = $moduleGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{module_guid}'], [$this->group_guid, $this->module_guid], '/analytics/groups/{group_guid}/modules/{module_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateAnalyticsModule) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Module|null + * + * @throws \Bitly\Exception\UpdateAnalyticsModuleBadRequestException + * @throws \Bitly\Exception\UpdateAnalyticsModuleForbiddenException + * @throws \Bitly\Exception\UpdateAnalyticsModuleNotFoundException + * @throws \Bitly\Exception\UpdateAnalyticsModuleInternalServerErrorException + * @throws \Bitly\Exception\UpdateAnalyticsModuleServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Module', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsModuleBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsModuleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsModuleNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsModuleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsModuleServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateAnalyticsReport.php b/lib/Endpoint/UpdateAnalyticsReport.php new file mode 100644 index 0000000..2602a03 --- /dev/null +++ b/lib/Endpoint/UpdateAnalyticsReport.php @@ -0,0 +1,93 @@ +group_guid = $groupGuid; + $this->report_id = $reportId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{group_guid}', '{report_id}'], [$this->group_guid, $this->report_id], '/analytics/groups/{group_guid}/reports/{report_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateAnalyticsReport) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\AnalyticsReport|null + * + * @throws \Bitly\Exception\UpdateAnalyticsReportBadRequestException + * @throws \Bitly\Exception\UpdateAnalyticsReportForbiddenException + * @throws \Bitly\Exception\UpdateAnalyticsReportNotFoundException + * @throws \Bitly\Exception\UpdateAnalyticsReportInternalServerErrorException + * @throws \Bitly\Exception\UpdateAnalyticsReportServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AnalyticsReport', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsReportBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsReportForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsReportNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsReportInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAnalyticsReportServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateAppAssociations.php b/lib/Endpoint/UpdateAppAssociations.php new file mode 100644 index 0000000..a6a4e21 --- /dev/null +++ b/lib/Endpoint/UpdateAppAssociations.php @@ -0,0 +1,94 @@ +custom_domain = $customDomain; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{custom_domain}'], [$this->custom_domain], '/custom_domains/{custom_domain}/appassociations'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\AppAssociations) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\AppAssociations|null + * + * @throws \Bitly\Exception\UpdateAppAssociationsBadRequestException + * @throws \Bitly\Exception\UpdateAppAssociationsPaymentRequiredException + * @throws \Bitly\Exception\UpdateAppAssociationsForbiddenException + * @throws \Bitly\Exception\UpdateAppAssociationsNotFoundException + * @throws \Bitly\Exception\UpdateAppAssociationsInternalServerErrorException + * @throws \Bitly\Exception\UpdateAppAssociationsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\AppAssociations', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAppAssociationsBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAppAssociationsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAppAssociationsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAppAssociationsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAppAssociationsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateAppAssociationsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateBillingInfo.php b/lib/Endpoint/UpdateBillingInfo.php new file mode 100644 index 0000000..d05c102 --- /dev/null +++ b/lib/Endpoint/UpdateBillingInfo.php @@ -0,0 +1,86 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/billing_info'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BillingInfo) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\UpdateBillingInfoBadRequestException + * @throws \Bitly\Exception\UpdateBillingInfoForbiddenException + * @throws \Bitly\Exception\UpdateBillingInfoUnprocessableEntityException + * @throws \Bitly\Exception\UpdateBillingInfoInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateBillingInfoBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateBillingInfoForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateBillingInfoUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateBillingInfoInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateBitlink.php b/lib/Endpoint/UpdateBitlink.php index c648769..a3ce49c 100644 --- a/lib/Endpoint/UpdateBitlink.php +++ b/lib/Endpoint/UpdateBitlink.php @@ -16,7 +16,7 @@ class UpdateBitlink extends \Bitly\Runtime\Client\BaseEndpoint implements \Bitly protected $bitlink; /** - * Updates fields in the specified link. To redirect the link (i.e. to update the Long URL), use PATCH /v4/custom_bitlinks/{custom_bitlink} (https://dev.bitly.com/api-reference/#updateCustomBitlink). + * Updates fields in the specified link. To redirect the link (i.e. to update the Long URL), use the long_url parameter. This will always charge an encode limit. * * @param string $bitlink A Bitlink made of the domain and hash */ @@ -57,6 +57,7 @@ public function getExtraHeaders(): array * @throws \Bitly\Exception\UpdateBitlinkPaymentRequiredException * @throws \Bitly\Exception\UpdateBitlinkForbiddenException * @throws \Bitly\Exception\UpdateBitlinkNotFoundException + * @throws \Bitly\Exception\UpdateBitlinkConflictException * @throws \Bitly\Exception\UpdateBitlinkGoneException * @throws \Bitly\Exception\UpdateBitlinkUnprocessableEntityException * @throws \Bitly\Exception\UpdateBitlinkTooManyRequestsException @@ -82,6 +83,9 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { throw new \Bitly\Exception\UpdateBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateBitlinkConflictException($serializer->deserialize($body, 'Bitly\Model\Conflict', 'json'), $response); + } if (is_null($contentType) === false && (410 === $status && mb_strpos($contentType, 'application/json') !== false)) { throw new \Bitly\Exception\UpdateBitlinkGoneException($serializer->deserialize($body, 'Bitly\Model\Gone', 'json'), $response); } diff --git a/lib/Endpoint/UpdateDeeplinkApp.php b/lib/Endpoint/UpdateDeeplinkApp.php new file mode 100644 index 0000000..7d89f4f --- /dev/null +++ b/lib/Endpoint/UpdateDeeplinkApp.php @@ -0,0 +1,94 @@ +deeplink_app_guid = $deeplinkAppGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{deeplink_app_guid}'], [$this->deeplink_app_guid], '/deeplinks/apps/{deeplink_app_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DeeplinkApp) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DeeplinkApp|null + * + * @throws \Bitly\Exception\UpdateDeeplinkAppPaymentRequiredException + * @throws \Bitly\Exception\UpdateDeeplinkAppForbiddenException + * @throws \Bitly\Exception\UpdateDeeplinkAppNotFoundException + * @throws \Bitly\Exception\UpdateDeeplinkAppUnprocessableEntityException + * @throws \Bitly\Exception\UpdateDeeplinkAppInternalServerErrorException + * @throws \Bitly\Exception\UpdateDeeplinkAppServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeeplinkApp', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkAppPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkAppForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkAppNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkAppUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkAppInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkAppServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateDeeplinkRule.php b/lib/Endpoint/UpdateDeeplinkRule.php new file mode 100644 index 0000000..bdd4458 --- /dev/null +++ b/lib/Endpoint/UpdateDeeplinkRule.php @@ -0,0 +1,94 @@ +deeplink_rule_guid = $deeplinkRuleGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{deeplink_rule_guid}'], [$this->deeplink_rule_guid], '/deeplinks/rules/{deeplink_rule_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DeeplinkRule) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DeeplinkRule|null + * + * @throws \Bitly\Exception\UpdateDeeplinkRulePaymentRequiredException + * @throws \Bitly\Exception\UpdateDeeplinkRuleForbiddenException + * @throws \Bitly\Exception\UpdateDeeplinkRuleNotFoundException + * @throws \Bitly\Exception\UpdateDeeplinkRuleUnprocessableEntityException + * @throws \Bitly\Exception\UpdateDeeplinkRuleInternalServerErrorException + * @throws \Bitly\Exception\UpdateDeeplinkRuleServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DeeplinkRule', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkRulePaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkRuleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkRuleNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkRuleUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkRuleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateDeeplinkRuleServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateEmail.php b/lib/Endpoint/UpdateEmail.php new file mode 100644 index 0000000..21cacf8 --- /dev/null +++ b/lib/Endpoint/UpdateEmail.php @@ -0,0 +1,90 @@ +email = $email; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{email}'], [$this->email], '/emails/{email}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\EmailBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\EmailBody|null + * + * @throws \Bitly\Exception\UpdateEmailBadRequestException + * @throws \Bitly\Exception\UpdateEmailForbiddenException + * @throws \Bitly\Exception\UpdateEmailNotFoundException + * @throws \Bitly\Exception\UpdateEmailInternalServerErrorException + * @throws \Bitly\Exception\UpdateEmailServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\EmailBody', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEmailBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEmailForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEmailNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEmailInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEmailServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateEntitiesRetainedOnDowngrade.php b/lib/Endpoint/UpdateEntitiesRetainedOnDowngrade.php new file mode 100644 index 0000000..9671a80 --- /dev/null +++ b/lib/Endpoint/UpdateEntitiesRetainedOnDowngrade.php @@ -0,0 +1,86 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/update_retained'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateRetainedDowngradeEntities) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\UpdateEntitiesRetainedOnDowngradeBadRequestException + * @throws \Bitly\Exception\UpdateEntitiesRetainedOnDowngradeForbiddenException + * @throws \Bitly\Exception\UpdateEntitiesRetainedOnDowngradeUnprocessableEntityException + * @throws \Bitly\Exception\UpdateEntitiesRetainedOnDowngradeInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEntitiesRetainedOnDowngradeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEntitiesRetainedOnDowngradeForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEntitiesRetainedOnDowngradeUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateEntitiesRetainedOnDowngradeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateImage.php b/lib/Endpoint/UpdateImage.php new file mode 100644 index 0000000..cad67f2 --- /dev/null +++ b/lib/Endpoint/UpdateImage.php @@ -0,0 +1,90 @@ +image_guid = $imageGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{image_guid}'], [$this->image_guid], '/images/{image_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ImageUpdate) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PublicImageURL|null + * + * @throws \Bitly\Exception\UpdateImageBadRequestException + * @throws \Bitly\Exception\UpdateImageForbiddenException + * @throws \Bitly\Exception\UpdateImageNotFoundException + * @throws \Bitly\Exception\UpdateImageInternalServerErrorException + * @throws \Bitly\Exception\UpdateImageServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PublicImageURL', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateImageBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateImageForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateImageNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateImageInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateImageServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpad.php b/lib/Endpoint/UpdateLaunchpad.php new file mode 100644 index 0000000..d92730a --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpad.php @@ -0,0 +1,94 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateLaunchpad) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Launchpad|null + * + * @throws \Bitly\Exception\UpdateLaunchpadBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadTooManyRequestsException + * @throws \Bitly\Exception\UpdateLaunchpadInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Launchpad', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadBitlinkContent.php b/lib/Endpoint/UpdateLaunchpadBitlinkContent.php new file mode 100644 index 0000000..9356025 --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadBitlinkContent.php @@ -0,0 +1,93 @@ +button_id = $buttonId; + $this->launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{button_id}', '{launchpad_id}'], [$this->button_id, $this->launchpad_id], '/launchpads/{launchpad_id}/contents/bitlink/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentBitlinkRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadButton|null + * + * @throws \Bitly\Exception\UpdateLaunchpadBitlinkContentBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadBitlinkContentForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadBitlinkContentNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadBitlinkContentInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadBitlinkContentServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadButton', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadBitlinkContentBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadBitlinkContentForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadBitlinkContentNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadBitlinkContentInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadBitlinkContentServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadButton.php b/lib/Endpoint/UpdateLaunchpadButton.php new file mode 100644 index 0000000..3f9898c --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadButton.php @@ -0,0 +1,93 @@ +button_id = $buttonId; + $this->launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{button_id}', '{launchpad_id}'], [$this->button_id, $this->launchpad_id], '/launchpads/{launchpad_id}/buttons/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadButtonRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadButton|null + * + * @throws \Bitly\Exception\UpdateLaunchpadButtonBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadButtonForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadButtonNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadButtonInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadButtonServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadButton', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadButtonSortOrder.php b/lib/Endpoint/UpdateLaunchpadButtonSortOrder.php new file mode 100644 index 0000000..9148efa --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadButtonSortOrder.php @@ -0,0 +1,90 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/buttons'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateButtonSortOrder) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\UpdateButtonSortOrder|null + * + * @throws \Bitly\Exception\UpdateLaunchpadButtonSortOrderBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadButtonSortOrderForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadButtonSortOrderNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadButtonSortOrderInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadButtonSortOrderServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\UpdateButtonSortOrder', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonSortOrderBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonSortOrderForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonSortOrderNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonSortOrderInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadButtonSortOrderServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadCarouselContent.php b/lib/Endpoint/UpdateLaunchpadCarouselContent.php new file mode 100644 index 0000000..f7fcc69 --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadCarouselContent.php @@ -0,0 +1,97 @@ +button_id = $buttonId; + $this->launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{button_id}', '{launchpad_id}'], [$this->button_id, $this->launchpad_id], '/launchpads/{launchpad_id}/contents/carousel/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContainerRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContainerResponse|null + * + * @throws \Bitly\Exception\UpdateLaunchpadCarouselContentBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadCarouselContentForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadCarouselContentNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadCarouselContentUnprocessableEntityException + * @throws \Bitly\Exception\UpdateLaunchpadCarouselContentInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadCarouselContentServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContainerResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadCarouselContentBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadCarouselContentForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadCarouselContentNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadCarouselContentUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadCarouselContentInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadCarouselContentServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadContentDigitalBusinessCard.php b/lib/Endpoint/UpdateLaunchpadContentDigitalBusinessCard.php new file mode 100644 index 0000000..7c658d1 --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadContentDigitalBusinessCard.php @@ -0,0 +1,72 @@ +button_id = $buttonId; + $this->launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{button_id}', '{launchpad_id}'], [$this->button_id, $this->launchpad_id], '/launchpads/{launchpad_id}/contents/digital_business_card/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentDigitalBusinessCardRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContentDigitalBusinessCardResponse|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContentDigitalBusinessCardResponse', 'json'); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadGridContent.php b/lib/Endpoint/UpdateLaunchpadGridContent.php new file mode 100644 index 0000000..285e3a4 --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadGridContent.php @@ -0,0 +1,97 @@ +button_id = $buttonId; + $this->launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{button_id}', '{launchpad_id}'], [$this->button_id, $this->launchpad_id], '/launchpads/{launchpad_id}/contents/grid/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContainerRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContainerResponse|null + * + * @throws \Bitly\Exception\UpdateLaunchpadGridContentBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadGridContentForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadGridContentNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadGridContentUnprocessableEntityException + * @throws \Bitly\Exception\UpdateLaunchpadGridContentInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadGridContentServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContainerResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadGridContentBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadGridContentForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadGridContentNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadGridContentUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadGridContentInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadGridContentServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadImageByImageUse.php b/lib/Endpoint/UpdateLaunchpadImageByImageUse.php new file mode 100644 index 0000000..b82d35e --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadImageByImageUse.php @@ -0,0 +1,93 @@ +launchpad_id = $launchpadId; + $this->image_use = $imageUse; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}', '{image_use}'], [$this->launchpad_id, $this->image_use], '/launchpads/{launchpad_id}/images_by_use/{image_use}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ImageCrop) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadImageUpdate|null + * + * @throws \Bitly\Exception\UpdateLaunchpadImageByImageUseBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadImageByImageUseForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadImageByImageUseNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadImageByImageUseInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadImageByImageUseServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadImageUpdate', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageByImageUseBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageByImageUseForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageByImageUseNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageByImageUseInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageByImageUseServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadImageContent.php b/lib/Endpoint/UpdateLaunchpadImageContent.php new file mode 100644 index 0000000..7a048cb --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadImageContent.php @@ -0,0 +1,93 @@ +button_id = $buttonId; + $this->launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{button_id}', '{launchpad_id}'], [$this->button_id, $this->launchpad_id], '/launchpads/{launchpad_id}/contents/image/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentImageRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContentImage|null + * + * @throws \Bitly\Exception\UpdateLaunchpadImageContentBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadImageContentForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadImageContentNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadImageContentInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadImageContentServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContentImage', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageContentBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageContentForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageContentNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageContentInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadImageContentServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadSocial.php b/lib/Endpoint/UpdateLaunchpadSocial.php new file mode 100644 index 0000000..d60be22 --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadSocial.php @@ -0,0 +1,93 @@ +button_id = $buttonId; + $this->launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{button_id}', '{launchpad_id}'], [$this->button_id, $this->launchpad_id], '/launchpads/{launchpad_id}/contents/social/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadSocialRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadSocial|null + * + * @throws \Bitly\Exception\UpdateLaunchpadSocialBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadSocialForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadSocialNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadSocialInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadSocialServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadSocial', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadSocialBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadSocialForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadSocialNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadSocialInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadSocialServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadTextBlockContent.php b/lib/Endpoint/UpdateLaunchpadTextBlockContent.php new file mode 100644 index 0000000..7dff2ea --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadTextBlockContent.php @@ -0,0 +1,72 @@ +launchpad_id = $launchpadId; + $this->button_id = $buttonId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}', '{button_id}'], [$this->launchpad_id, $this->button_id], '/launchpads/{launchpad_id}/contents/text_block/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentTextBlockRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContentTextBlockResponse|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContentTextBlockResponse', 'json'); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLaunchpadYoutubeVideo.php b/lib/Endpoint/UpdateLaunchpadYoutubeVideo.php new file mode 100644 index 0000000..35cf624 --- /dev/null +++ b/lib/Endpoint/UpdateLaunchpadYoutubeVideo.php @@ -0,0 +1,93 @@ +button_id = $buttonId; + $this->launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{button_id}', '{launchpad_id}'], [$this->button_id, $this->launchpad_id], '/launchpads/{launchpad_id}/contents/youtubeVideo/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadContentYouTubeRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LaunchpadContentYouTubeResponse|null + * + * @throws \Bitly\Exception\UpdateLaunchpadYoutubeVideoBadRequestException + * @throws \Bitly\Exception\UpdateLaunchpadYoutubeVideoForbiddenException + * @throws \Bitly\Exception\UpdateLaunchpadYoutubeVideoNotFoundException + * @throws \Bitly\Exception\UpdateLaunchpadYoutubeVideoInternalServerErrorException + * @throws \Bitly\Exception\UpdateLaunchpadYoutubeVideoServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LaunchpadContentYouTubeResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadYoutubeVideoBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadYoutubeVideoForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadYoutubeVideoNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadYoutubeVideoInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLaunchpadYoutubeVideoServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateLink.php b/lib/Endpoint/UpdateLink.php new file mode 100644 index 0000000..27d94c1 --- /dev/null +++ b/lib/Endpoint/UpdateLink.php @@ -0,0 +1,110 @@ +bitlink = $bitlink; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/links/{bitlink}/destinations'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LinksBitlinkDestinationsPutBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\LinkBody|null + * + * @throws \Bitly\Exception\UpdateLinkBadRequestException + * @throws \Bitly\Exception\UpdateLinkPaymentRequiredException + * @throws \Bitly\Exception\UpdateLinkForbiddenException + * @throws \Bitly\Exception\UpdateLinkNotFoundException + * @throws \Bitly\Exception\UpdateLinkConflictException + * @throws \Bitly\Exception\UpdateLinkExpectationFailedException + * @throws \Bitly\Exception\UpdateLinkUnprocessableEntityException + * @throws \Bitly\Exception\UpdateLinkTooManyRequestsException + * @throws \Bitly\Exception\UpdateLinkInternalServerErrorException + * @throws \Bitly\Exception\UpdateLinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\LinkBody', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkConflictException($serializer->deserialize($body, 'Bitly\Model\Conflict', 'json'), $response); + } + if (is_null($contentType) === false && (417 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkExpectationFailedException($serializer->deserialize($body, 'Bitly\Model\ExpectationFailed', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateLinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateOAuthApp.php b/lib/Endpoint/UpdateOAuthApp.php new file mode 100644 index 0000000..78f5bf0 --- /dev/null +++ b/lib/Endpoint/UpdateOAuthApp.php @@ -0,0 +1,90 @@ +client_id = $clientId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{client_id}'], [$this->client_id], '/apps/{client_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateApp) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OAuthAppFull|null + * + * @throws \Bitly\Exception\UpdateOAuthAppBadRequestException + * @throws \Bitly\Exception\UpdateOAuthAppForbiddenException + * @throws \Bitly\Exception\UpdateOAuthAppNotFoundException + * @throws \Bitly\Exception\UpdateOAuthAppInternalServerErrorException + * @throws \Bitly\Exception\UpdateOAuthAppServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OAuthAppFull', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOAuthAppBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOAuthAppForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOAuthAppNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOAuthAppInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOAuthAppServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateOAuthAppClientSecret.php b/lib/Endpoint/UpdateOAuthAppClientSecret.php new file mode 100644 index 0000000..8c45fb4 --- /dev/null +++ b/lib/Endpoint/UpdateOAuthAppClientSecret.php @@ -0,0 +1,87 @@ +client_id = $clientId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{client_id}'], [$this->client_id], '/oauth/apps/{client_id}/secret'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if (isset($this->body)) { + return [['Content-Type' => ['application/json']], json_encode($this->body)]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OAuthAppFull|null + * + * @throws \Bitly\Exception\UpdateOAuthAppClientSecretForbiddenException + * @throws \Bitly\Exception\UpdateOAuthAppClientSecretNotFoundException + * @throws \Bitly\Exception\UpdateOAuthAppClientSecretInternalServerErrorException + * @throws \Bitly\Exception\UpdateOAuthAppClientSecretServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OAuthAppFull', 'json'); + } + if (403 === $status) { + throw new \Bitly\Exception\UpdateOAuthAppClientSecretForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOAuthAppClientSecretNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOAuthAppClientSecretInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOAuthAppClientSecretServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateOrganization.php b/lib/Endpoint/UpdateOrganization.php new file mode 100644 index 0000000..675c356 --- /dev/null +++ b/lib/Endpoint/UpdateOrganization.php @@ -0,0 +1,86 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\OrganizationUpdate) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Organization|null + * + * @throws \Bitly\Exception\UpdateOrganizationForbiddenException + * @throws \Bitly\Exception\UpdateOrganizationNotFoundException + * @throws \Bitly\Exception\UpdateOrganizationInternalServerErrorException + * @throws \Bitly\Exception\UpdateOrganizationServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Organization', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateOrganizationSSOSettings.php b/lib/Endpoint/UpdateOrganizationSSOSettings.php new file mode 100644 index 0000000..57d3cb2 --- /dev/null +++ b/lib/Endpoint/UpdateOrganizationSSOSettings.php @@ -0,0 +1,94 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/sso/organizations/{organization_guid}/settings'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\SSOSettings) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SSOSettings|null + * + * @throws \Bitly\Exception\UpdateOrganizationSSOSettingsPaymentRequiredException + * @throws \Bitly\Exception\UpdateOrganizationSSOSettingsForbiddenException + * @throws \Bitly\Exception\UpdateOrganizationSSOSettingsNotFoundException + * @throws \Bitly\Exception\UpdateOrganizationSSOSettingsUnprocessableEntityException + * @throws \Bitly\Exception\UpdateOrganizationSSOSettingsInternalServerErrorException + * @throws \Bitly\Exception\UpdateOrganizationSSOSettingsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SSOSettings', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationSSOSettingsPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationSSOSettingsForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationSSOSettingsNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationSSOSettingsUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationSSOSettingsInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOrganizationSSOSettingsServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateOverridesForBitlink.php b/lib/Endpoint/UpdateOverridesForBitlink.php new file mode 100644 index 0000000..bf8b331 --- /dev/null +++ b/lib/Endpoint/UpdateOverridesForBitlink.php @@ -0,0 +1,102 @@ +bitlink = $bitlink; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{bitlink}'], [$this->bitlink], '/bitlinks/{bitlink}/overrides'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateOverrideRules) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BitlinkOverrides|null + * + * @throws \Bitly\Exception\UpdateOverridesForBitlinkBadRequestException + * @throws \Bitly\Exception\UpdateOverridesForBitlinkPaymentRequiredException + * @throws \Bitly\Exception\UpdateOverridesForBitlinkForbiddenException + * @throws \Bitly\Exception\UpdateOverridesForBitlinkNotFoundException + * @throws \Bitly\Exception\UpdateOverridesForBitlinkUnprocessableEntityException + * @throws \Bitly\Exception\UpdateOverridesForBitlinkTooManyRequestsException + * @throws \Bitly\Exception\UpdateOverridesForBitlinkInternalServerErrorException + * @throws \Bitly\Exception\UpdateOverridesForBitlinkServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkOverrides', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOverridesForBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOverridesForBitlinkPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOverridesForBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOverridesForBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOverridesForBitlinkUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOverridesForBitlinkTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\TooManyRequests', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOverridesForBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateOverridesForBitlinkServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdatePaymentContactInfo.php b/lib/Endpoint/UpdatePaymentContactInfo.php new file mode 100644 index 0000000..6257fc7 --- /dev/null +++ b/lib/Endpoint/UpdatePaymentContactInfo.php @@ -0,0 +1,90 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/payment_contact_info'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ContactInfo) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ContactInfo|null + * + * @throws \Bitly\Exception\UpdatePaymentContactInfoBadRequestException + * @throws \Bitly\Exception\UpdatePaymentContactInfoForbiddenException + * @throws \Bitly\Exception\UpdatePaymentContactInfoNotFoundException + * @throws \Bitly\Exception\UpdatePaymentContactInfoUnprocessableEntityException + * @throws \Bitly\Exception\UpdatePaymentContactInfoInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ContactInfo', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdatePaymentContactInfoBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdatePaymentContactInfoForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdatePaymentContactInfoNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdatePaymentContactInfoUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdatePaymentContactInfoInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateSiteAppearance.php b/lib/Endpoint/UpdateSiteAppearance.php new file mode 100644 index 0000000..2405e39 --- /dev/null +++ b/lib/Endpoint/UpdateSiteAppearance.php @@ -0,0 +1,90 @@ +site_id = $siteId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{site_id}'], [$this->site_id], '/sites/{site_id}/appearance'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BitlySiteAppearance) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\UpdateSiteAppearanceBadRequestException + * @throws \Bitly\Exception\UpdateSiteAppearanceForbiddenException + * @throws \Bitly\Exception\UpdateSiteAppearanceNotFoundException + * @throws \Bitly\Exception\UpdateSiteAppearanceInternalServerErrorException + * @throws \Bitly\Exception\UpdateSiteAppearanceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteAppearanceBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteAppearanceForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteAppearanceNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteAppearanceInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteAppearanceServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateSiteButton.php b/lib/Endpoint/UpdateSiteButton.php new file mode 100644 index 0000000..89b6519 --- /dev/null +++ b/lib/Endpoint/UpdateSiteButton.php @@ -0,0 +1,101 @@ +site_id = $siteId; + $this->button_id = $buttonId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{site_id}', '{button_id}'], [$this->site_id, $this->button_id], '/sites/{site_id}/buttons/{button_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\SiteButtonRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\UpdateSiteButtonBadRequestException + * @throws \Bitly\Exception\UpdateSiteButtonForbiddenException + * @throws \Bitly\Exception\UpdateSiteButtonNotFoundException + * @throws \Bitly\Exception\UpdateSiteButtonExpectationFailedException + * @throws \Bitly\Exception\UpdateSiteButtonUnprocessableEntityException + * @throws \Bitly\Exception\UpdateSiteButtonTooManyRequestsException + * @throws \Bitly\Exception\UpdateSiteButtonInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteButtonBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteButtonForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteButtonNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (417 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteButtonExpectationFailedException($serializer->deserialize($body, 'Bitly\Model\ExpectationFailed', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteButtonUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteButtonTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSiteButtonInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateSitesToKeep.php b/lib/Endpoint/UpdateSitesToKeep.php new file mode 100644 index 0000000..3037024 --- /dev/null +++ b/lib/Endpoint/UpdateSitesToKeep.php @@ -0,0 +1,86 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/organizations/{organization_guid}/keep_sites'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\KeepSitesRequest) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\UpdateSitesToKeepBadRequestException + * @throws \Bitly\Exception\UpdateSitesToKeepForbiddenException + * @throws \Bitly\Exception\UpdateSitesToKeepUnprocessableEntityException + * @throws \Bitly\Exception\UpdateSitesToKeepInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSitesToKeepBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSitesToKeepForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSitesToKeepUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateSitesToKeepInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateStripeCustomer.php b/lib/Endpoint/UpdateStripeCustomer.php new file mode 100644 index 0000000..6de7b45 --- /dev/null +++ b/lib/Endpoint/UpdateStripeCustomer.php @@ -0,0 +1,89 @@ +organization_guid = $organizationGuid; + $this->stripe_customer_id = $stripeCustomerId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}', '{stripe_customer_id}'], [$this->organization_guid, $this->stripe_customer_id], '/private/stripe/organizations/{organization_guid}/customers/{stripe_customer_id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpdateStripeCustomerBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\StripeCustomer|null + * + * @throws \Bitly\Exception\UpdateStripeCustomerBadRequestException + * @throws \Bitly\Exception\UpdateStripeCustomerForbiddenException + * @throws \Bitly\Exception\UpdateStripeCustomerUnprocessableEntityException + * @throws \Bitly\Exception\UpdateStripeCustomerInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\StripeCustomer', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateStripeCustomerBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateStripeCustomerForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateStripeCustomerUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateStripeCustomerInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpdateUserWithRole.php b/lib/Endpoint/UpdateUserWithRole.php new file mode 100644 index 0000000..03ecfc5 --- /dev/null +++ b/lib/Endpoint/UpdateUserWithRole.php @@ -0,0 +1,90 @@ +role_name = $roleName; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{role_name}'], [$this->role_name], '/roles/{role_name}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UserRole) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\UpdateUserWithRoleBadRequestException + * @throws \Bitly\Exception\UpdateUserWithRoleForbiddenException + * @throws \Bitly\Exception\UpdateUserWithRoleUnprocessableEntityException + * @throws \Bitly\Exception\UpdateUserWithRoleInternalServerErrorException + * @throws \Bitly\Exception\UpdateUserWithRoleServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateUserWithRoleBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateUserWithRoleForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateUserWithRoleUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateUserWithRoleInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpdateUserWithRoleServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpgradeOrganization.php b/lib/Endpoint/UpgradeOrganization.php new file mode 100644 index 0000000..326603a --- /dev/null +++ b/lib/Endpoint/UpgradeOrganization.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organization_upgrade'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\UpgradeOrgBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return null + * + * @throws \Bitly\Exception\UpgradeOrganizationBadRequestException + * @throws \Bitly\Exception\UpgradeOrganizationForbiddenException + * @throws \Bitly\Exception\UpgradeOrganizationUnprocessableEntityException + * @throws \Bitly\Exception\UpgradeOrganizationInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + return null; + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeOrganizationBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeOrganizationForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeOrganizationUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeOrganizationInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpgradeOrganizationWithStripeSubscription.php b/lib/Endpoint/UpgradeOrganizationWithStripeSubscription.php new file mode 100644 index 0000000..461db42 --- /dev/null +++ b/lib/Endpoint/UpgradeOrganizationWithStripeSubscription.php @@ -0,0 +1,86 @@ +organization_guid = $organizationGuid; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{organization_guid}'], [$this->organization_guid], '/stripe/organizations/{organization_guid}/paid_upgrade'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\StripeUpgradeOrgBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Organization|null + * + * @throws \Bitly\Exception\UpgradeOrganizationWithStripeSubscriptionBadRequestException + * @throws \Bitly\Exception\UpgradeOrganizationWithStripeSubscriptionForbiddenException + * @throws \Bitly\Exception\UpgradeOrganizationWithStripeSubscriptionUnprocessableEntityException + * @throws \Bitly\Exception\UpgradeOrganizationWithStripeSubscriptionInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Organization', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeOrganizationWithStripeSubscriptionBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeOrganizationWithStripeSubscriptionForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeOrganizationWithStripeSubscriptionUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeOrganizationWithStripeSubscriptionInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpgradeQRCodeToBitlink.php b/lib/Endpoint/UpgradeQRCodeToBitlink.php new file mode 100644 index 0000000..3ba778c --- /dev/null +++ b/lib/Endpoint/UpgradeQRCodeToBitlink.php @@ -0,0 +1,83 @@ +id = $id; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/qr-codes/{id}/to-bitlink'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BitlinkBody|null + * + * @throws \Bitly\Exception\UpgradeQRCodeToBitlinkBadRequestException + * @throws \Bitly\Exception\UpgradeQRCodeToBitlinkForbiddenException + * @throws \Bitly\Exception\UpgradeQRCodeToBitlinkNotFoundException + * @throws \Bitly\Exception\UpgradeQRCodeToBitlinkTooManyRequestsException + * @throws \Bitly\Exception\UpgradeQRCodeToBitlinkInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BitlinkBody', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeQRCodeToBitlinkBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeQRCodeToBitlinkForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeQRCodeToBitlinkNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeQRCodeToBitlinkTooManyRequestsException($serializer->deserialize($body, 'Bitly\Model\MonthlyLimitExceeded', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpgradeQRCodeToBitlinkInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UploadImage.php b/lib/Endpoint/UploadImage.php new file mode 100644 index 0000000..cda914c --- /dev/null +++ b/lib/Endpoint/UploadImage.php @@ -0,0 +1,93 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/images'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\ImageUpload) { + $bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + foreach ($formParameters as $key => $value) { + $value = is_int($value) ? (string) $value : $value; + $bodyBuilder->addResource($key, $value); + } + + return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ImageUploadResponse|null + * + * @throws \Bitly\Exception\UploadImageBadRequestException + * @throws \Bitly\Exception\UploadImageForbiddenException + * @throws \Bitly\Exception\UploadImageNotFoundException + * @throws \Bitly\Exception\UploadImageInternalServerErrorException + * @throws \Bitly\Exception\UploadImageServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ImageUploadResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadImageBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadImageForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadImageNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadImageInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadImageServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UploadLaunchpadImage.php b/lib/Endpoint/UploadLaunchpadImage.php new file mode 100644 index 0000000..6adae18 --- /dev/null +++ b/lib/Endpoint/UploadLaunchpadImage.php @@ -0,0 +1,97 @@ +launchpad_id = $launchpadId; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{launchpad_id}'], [$this->launchpad_id], '/launchpads/{launchpad_id}/image_upload'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\LaunchpadImageUpload) { + $bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory); + $formParameters = $serializer->normalize($this->body, 'json'); + foreach ($formParameters as $key => $value) { + $value = is_int($value) ? (string) $value : $value; + $bodyBuilder->addResource($key, $value); + } + + return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\ImageUploadResponse|null + * + * @throws \Bitly\Exception\UploadLaunchpadImageBadRequestException + * @throws \Bitly\Exception\UploadLaunchpadImageForbiddenException + * @throws \Bitly\Exception\UploadLaunchpadImageNotFoundException + * @throws \Bitly\Exception\UploadLaunchpadImageInternalServerErrorException + * @throws \Bitly\Exception\UploadLaunchpadImageServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\ImageUploadResponse', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadLaunchpadImageBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadLaunchpadImageForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadLaunchpadImageNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadLaunchpadImageInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UploadLaunchpadImageServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UpsertOrgEmail.php b/lib/Endpoint/UpsertOrgEmail.php new file mode 100644 index 0000000..f4a52a1 --- /dev/null +++ b/lib/Endpoint/UpsertOrgEmail.php @@ -0,0 +1,85 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/org_emails'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\OrgEmailBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\OrgEmail|null + * + * @throws \Bitly\Exception\UpsertOrgEmailForbiddenException + * @throws \Bitly\Exception\UpsertOrgEmailNotFoundException + * @throws \Bitly\Exception\UpsertOrgEmailInternalServerErrorException + * @throws \Bitly\Exception\UpsertOrgEmailServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrgEmail', 'json'); + } + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\OrgEmail', 'json'); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpsertOrgEmailForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpsertOrgEmailNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpsertOrgEmailInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UpsertOrgEmailServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/UserAcceptInvite.php b/lib/Endpoint/UserAcceptInvite.php new file mode 100644 index 0000000..a91a4ec --- /dev/null +++ b/lib/Endpoint/UserAcceptInvite.php @@ -0,0 +1,86 @@ +login = $login; + $this->body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return str_replace(['{login}'], [$this->login], '/users/{login}/invitations'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\InvitationsAccept) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\Organizations|null + * + * @throws \Bitly\Exception\UserAcceptInviteBadRequestException + * @throws \Bitly\Exception\UserAcceptInviteForbiddenException + * @throws \Bitly\Exception\UserAcceptInviteUnprocessableEntityException + * @throws \Bitly\Exception\UserAcceptInviteInternalServerErrorException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\Organizations', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UserAcceptInviteBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UserAcceptInviteForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UserAcceptInviteUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\UserAcceptInviteInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ValidateBulkUpload.php b/lib/Endpoint/ValidateBulkUpload.php new file mode 100644 index 0000000..dfff398 --- /dev/null +++ b/lib/Endpoint/ValidateBulkUpload.php @@ -0,0 +1,94 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/bulk_upload/validate'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\BulkUploadValidate) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\BulkUploadData|null + * + * @throws \Bitly\Exception\ValidateBulkUploadBadRequestException + * @throws \Bitly\Exception\ValidateBulkUploadPaymentRequiredException + * @throws \Bitly\Exception\ValidateBulkUploadForbiddenException + * @throws \Bitly\Exception\ValidateBulkUploadNotFoundException + * @throws \Bitly\Exception\ValidateBulkUploadUnprocessableEntityException + * @throws \Bitly\Exception\ValidateBulkUploadInternalServerErrorException + * @throws \Bitly\Exception\ValidateBulkUploadServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\BulkUploadData', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateBulkUploadBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateBulkUploadPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateBulkUploadForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateBulkUploadNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateBulkUploadUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateBulkUploadInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateBulkUploadServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ValidateCustomDomain.php b/lib/Endpoint/ValidateCustomDomain.php new file mode 100644 index 0000000..a4a9159 --- /dev/null +++ b/lib/Endpoint/ValidateCustomDomain.php @@ -0,0 +1,93 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/custom_domains'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\DomainValidateBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\DomainValidate|null + * + * @throws \Bitly\Exception\ValidateCustomDomainBadRequestException + * @throws \Bitly\Exception\ValidateCustomDomainForbiddenException + * @throws \Bitly\Exception\ValidateCustomDomainNotFoundException + * @throws \Bitly\Exception\ValidateCustomDomainUnprocessableEntityException + * @throws \Bitly\Exception\ValidateCustomDomainInternalServerErrorException + * @throws \Bitly\Exception\ValidateCustomDomainServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DomainValidate', 'json'); + } + if (is_null($contentType) === false && (202 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\DomainValidate', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateCustomDomainBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateCustomDomainForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateCustomDomainNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateCustomDomainUnprocessableEntityException($serializer->deserialize($body, 'Bitly\Model\UnprocessableEntity', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateCustomDomainInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateCustomDomainServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ValidatePromoCode.php b/lib/Endpoint/ValidatePromoCode.php new file mode 100644 index 0000000..90194c7 --- /dev/null +++ b/lib/Endpoint/ValidatePromoCode.php @@ -0,0 +1,84 @@ +promo_code = $promoCode; + $this->TierName = $tierName; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{promo_code}', '{TierName}'], [$this->promo_code, $this->TierName], '/promo_codes/{promo_code}/plan/{TierName}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PromoCode|null + * + * @throws \Bitly\Exception\ValidatePromoCodeBadRequestException + * @throws \Bitly\Exception\ValidatePromoCodeNotFoundException + * @throws \Bitly\Exception\ValidatePromoCodeInternalServerErrorException + * @throws \Bitly\Exception\ValidatePromoCodeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PromoCode', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidatePromoCodeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidatePromoCodeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidatePromoCodeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidatePromoCodeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/ValidateStripePromoCode.php b/lib/Endpoint/ValidateStripePromoCode.php new file mode 100644 index 0000000..31a8d1c --- /dev/null +++ b/lib/Endpoint/ValidateStripePromoCode.php @@ -0,0 +1,84 @@ +promo_code = $promoCode; + $this->TierName = $tierName; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{promo_code}', '{TierName}'], [$this->promo_code, $this->TierName], '/stripe/promo_codes/{promo_code}/plan/{TierName}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\PromoCode|null + * + * @throws \Bitly\Exception\ValidateStripePromoCodeBadRequestException + * @throws \Bitly\Exception\ValidateStripePromoCodeNotFoundException + * @throws \Bitly\Exception\ValidateStripePromoCodeInternalServerErrorException + * @throws \Bitly\Exception\ValidateStripePromoCodeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\PromoCode', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateStripePromoCodeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateStripePromoCodeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateStripePromoCodeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\ValidateStripePromoCodeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/VerifySSOSlug.php b/lib/Endpoint/VerifySSOSlug.php new file mode 100644 index 0000000..fba5153 --- /dev/null +++ b/lib/Endpoint/VerifySSOSlug.php @@ -0,0 +1,85 @@ +url_slug = $urlSlug; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{url_slug}'], [$this->url_slug], '/sso/slugs/{url_slug}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\SSOVerifySlug|null + * + * @throws \Bitly\Exception\VerifySSOSlugPaymentRequiredException + * @throws \Bitly\Exception\VerifySSOSlugForbiddenException + * @throws \Bitly\Exception\VerifySSOSlugNotFoundException + * @throws \Bitly\Exception\VerifySSOSlugInternalServerErrorException + * @throws \Bitly\Exception\VerifySSOSlugServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\SSOVerifySlug', 'json'); + } + if (is_null($contentType) === false && (402 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifySSOSlugPaymentRequiredException($serializer->deserialize($body, 'Bitly\Model\UpgradeRequired', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifySSOSlugForbiddenException($serializer->deserialize($body, 'Bitly\Model\Forbidden', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifySSOSlugNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifySSOSlugInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifySSOSlugServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Endpoint/VerifyTwoFactorCode.php b/lib/Endpoint/VerifyTwoFactorCode.php new file mode 100644 index 0000000..e46252e --- /dev/null +++ b/lib/Endpoint/VerifyTwoFactorCode.php @@ -0,0 +1,82 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/user/two_factor/sms/code/verify'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Bitly\Model\TwoFactorCode) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \Bitly\Model\TwoFactorVerify|null + * + * @throws \Bitly\Exception\VerifyTwoFactorCodeBadRequestException + * @throws \Bitly\Exception\VerifyTwoFactorCodeNotFoundException + * @throws \Bitly\Exception\VerifyTwoFactorCodeInternalServerErrorException + * @throws \Bitly\Exception\VerifyTwoFactorCodeServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Bitly\Model\TwoFactorVerify', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifyTwoFactorCodeBadRequestException($serializer->deserialize($body, 'Bitly\Model\BadRequest', 'json'), $response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifyTwoFactorCodeNotFoundException($serializer->deserialize($body, 'Bitly\Model\NotFound', 'json'), $response); + } + if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifyTwoFactorCodeInternalServerErrorException($serializer->deserialize($body, 'Bitly\Model\InternalError', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \Bitly\Exception\VerifyTwoFactorCodeServiceUnavailableException($serializer->deserialize($body, 'Bitly\Model\TemporarilyUnavailable', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['bearerAuth']; + } +} diff --git a/lib/Exception/AddEmailToUserBadRequestException.php b/lib/Exception/AddEmailToUserBadRequestException.php new file mode 100644 index 0000000..65879cb --- /dev/null +++ b/lib/Exception/AddEmailToUserBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddEmailToUserForbiddenException.php b/lib/Exception/AddEmailToUserForbiddenException.php new file mode 100644 index 0000000..84a4292 --- /dev/null +++ b/lib/Exception/AddEmailToUserForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddEmailToUserInternalServerErrorException.php b/lib/Exception/AddEmailToUserInternalServerErrorException.php new file mode 100644 index 0000000..a0f0725 --- /dev/null +++ b/lib/Exception/AddEmailToUserInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddEmailToUserNotFoundException.php b/lib/Exception/AddEmailToUserNotFoundException.php new file mode 100644 index 0000000..1b28221 --- /dev/null +++ b/lib/Exception/AddEmailToUserNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddEmailToUserUnprocessableEntityException.php b/lib/Exception/AddEmailToUserUnprocessableEntityException.php new file mode 100644 index 0000000..be354df --- /dev/null +++ b/lib/Exception/AddEmailToUserUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddUserWithRoleBadRequestException.php b/lib/Exception/AddUserWithRoleBadRequestException.php new file mode 100644 index 0000000..befe82f --- /dev/null +++ b/lib/Exception/AddUserWithRoleBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddUserWithRoleForbiddenException.php b/lib/Exception/AddUserWithRoleForbiddenException.php new file mode 100644 index 0000000..bfc8dac --- /dev/null +++ b/lib/Exception/AddUserWithRoleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddUserWithRoleInternalServerErrorException.php b/lib/Exception/AddUserWithRoleInternalServerErrorException.php new file mode 100644 index 0000000..2365f6a --- /dev/null +++ b/lib/Exception/AddUserWithRoleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddUserWithRoleServiceUnavailableException.php b/lib/Exception/AddUserWithRoleServiceUnavailableException.php new file mode 100644 index 0000000..270f867 --- /dev/null +++ b/lib/Exception/AddUserWithRoleServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AddUserWithRoleUnprocessableEntityException.php b/lib/Exception/AddUserWithRoleUnprocessableEntityException.php new file mode 100644 index 0000000..3ea80ad --- /dev/null +++ b/lib/Exception/AddUserWithRoleUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AiDomainSearchBadRequestException.php b/lib/Exception/AiDomainSearchBadRequestException.php new file mode 100644 index 0000000..0aed935 --- /dev/null +++ b/lib/Exception/AiDomainSearchBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AiDomainSearchForbiddenException.php b/lib/Exception/AiDomainSearchForbiddenException.php new file mode 100644 index 0000000..5da4b2f --- /dev/null +++ b/lib/Exception/AiDomainSearchForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AiDomainSearchInternalServerErrorException.php b/lib/Exception/AiDomainSearchInternalServerErrorException.php new file mode 100644 index 0000000..3545e94 --- /dev/null +++ b/lib/Exception/AiDomainSearchInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AnnualRenewalReminderBadRequestException.php b/lib/Exception/AnnualRenewalReminderBadRequestException.php new file mode 100644 index 0000000..58b61af --- /dev/null +++ b/lib/Exception/AnnualRenewalReminderBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AnnualRenewalReminderInternalServerErrorException.php b/lib/Exception/AnnualRenewalReminderInternalServerErrorException.php new file mode 100644 index 0000000..21b64ff --- /dev/null +++ b/lib/Exception/AnnualRenewalReminderInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AnnualRenewalReminderServiceUnavailableException.php b/lib/Exception/AnnualRenewalReminderServiceUnavailableException.php new file mode 100644 index 0000000..e7ce71a --- /dev/null +++ b/lib/Exception/AnnualRenewalReminderServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/AnnualRenewalReminderUnprocessableEntityException.php b/lib/Exception/AnnualRenewalReminderUnprocessableEntityException.php new file mode 100644 index 0000000..b65f871 --- /dev/null +++ b/lib/Exception/AnnualRenewalReminderUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyDiscountBadRequestException.php b/lib/Exception/ApplyDiscountBadRequestException.php new file mode 100644 index 0000000..8bf147e --- /dev/null +++ b/lib/Exception/ApplyDiscountBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyDiscountForbiddenException.php b/lib/Exception/ApplyDiscountForbiddenException.php new file mode 100644 index 0000000..7ea571a --- /dev/null +++ b/lib/Exception/ApplyDiscountForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyDiscountInternalServerErrorException.php b/lib/Exception/ApplyDiscountInternalServerErrorException.php new file mode 100644 index 0000000..7c1b105 --- /dev/null +++ b/lib/Exception/ApplyDiscountInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyDiscountNotFoundException.php b/lib/Exception/ApplyDiscountNotFoundException.php new file mode 100644 index 0000000..afad1aa --- /dev/null +++ b/lib/Exception/ApplyDiscountNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyDiscountServiceUnavailableException.php b/lib/Exception/ApplyDiscountServiceUnavailableException.php new file mode 100644 index 0000000..8081ed2 --- /dev/null +++ b/lib/Exception/ApplyDiscountServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyDiscountUnprocessableEntityException.php b/lib/Exception/ApplyDiscountUnprocessableEntityException.php new file mode 100644 index 0000000..40aa151 --- /dev/null +++ b/lib/Exception/ApplyDiscountUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyStripeDiscountBadRequestException.php b/lib/Exception/ApplyStripeDiscountBadRequestException.php new file mode 100644 index 0000000..81aa80e --- /dev/null +++ b/lib/Exception/ApplyStripeDiscountBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyStripeDiscountForbiddenException.php b/lib/Exception/ApplyStripeDiscountForbiddenException.php new file mode 100644 index 0000000..fffa1a0 --- /dev/null +++ b/lib/Exception/ApplyStripeDiscountForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyStripeDiscountInternalServerErrorException.php b/lib/Exception/ApplyStripeDiscountInternalServerErrorException.php new file mode 100644 index 0000000..bb764be --- /dev/null +++ b/lib/Exception/ApplyStripeDiscountInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyStripeDiscountNotFoundException.php b/lib/Exception/ApplyStripeDiscountNotFoundException.php new file mode 100644 index 0000000..862d271 --- /dev/null +++ b/lib/Exception/ApplyStripeDiscountNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyStripeDiscountServiceUnavailableException.php b/lib/Exception/ApplyStripeDiscountServiceUnavailableException.php new file mode 100644 index 0000000..8864057 --- /dev/null +++ b/lib/Exception/ApplyStripeDiscountServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyStripeDiscountUnprocessableEntityException.php b/lib/Exception/ApplyStripeDiscountUnprocessableEntityException.php new file mode 100644 index 0000000..acd5088 --- /dev/null +++ b/lib/Exception/ApplyStripeDiscountUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyTemplateForbiddenException.php b/lib/Exception/ApplyTemplateForbiddenException.php new file mode 100644 index 0000000..aa0f9c6 --- /dev/null +++ b/lib/Exception/ApplyTemplateForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyTemplateInternalServerErrorException.php b/lib/Exception/ApplyTemplateInternalServerErrorException.php new file mode 100644 index 0000000..f067765 --- /dev/null +++ b/lib/Exception/ApplyTemplateInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyTemplateNotFoundException.php b/lib/Exception/ApplyTemplateNotFoundException.php new file mode 100644 index 0000000..2caaeee --- /dev/null +++ b/lib/Exception/ApplyTemplateNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyTemplateServiceUnavailableException.php b/lib/Exception/ApplyTemplateServiceUnavailableException.php new file mode 100644 index 0000000..20d8495 --- /dev/null +++ b/lib/Exception/ApplyTemplateServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ApplyTemplateUnprocessableEntityException.php b/lib/Exception/ApplyTemplateUnprocessableEntityException.php new file mode 100644 index 0000000..9ae81cb --- /dev/null +++ b/lib/Exception/ApplyTemplateUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/BulkAddBadRequestException.php b/lib/Exception/BulkAddBadRequestException.php new file mode 100644 index 0000000..7bbc798 --- /dev/null +++ b/lib/Exception/BulkAddBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/BulkAddForbiddenException.php b/lib/Exception/BulkAddForbiddenException.php new file mode 100644 index 0000000..322bb19 --- /dev/null +++ b/lib/Exception/BulkAddForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/BulkAddInternalServerErrorException.php b/lib/Exception/BulkAddInternalServerErrorException.php new file mode 100644 index 0000000..33259af --- /dev/null +++ b/lib/Exception/BulkAddInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/BulkAddNotFoundException.php b/lib/Exception/BulkAddNotFoundException.php new file mode 100644 index 0000000..f839e73 --- /dev/null +++ b/lib/Exception/BulkAddNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CampaignAddBitlinkBadRequestException.php b/lib/Exception/CampaignAddBitlinkBadRequestException.php new file mode 100644 index 0000000..bfe4b90 --- /dev/null +++ b/lib/Exception/CampaignAddBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CampaignAddBitlinkForbiddenException.php b/lib/Exception/CampaignAddBitlinkForbiddenException.php new file mode 100644 index 0000000..01f1d4a --- /dev/null +++ b/lib/Exception/CampaignAddBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CampaignAddBitlinkInternalServerErrorException.php b/lib/Exception/CampaignAddBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..907602c --- /dev/null +++ b/lib/Exception/CampaignAddBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CampaignAddBitlinkNotFoundException.php b/lib/Exception/CampaignAddBitlinkNotFoundException.php new file mode 100644 index 0000000..1ac5fdc --- /dev/null +++ b/lib/Exception/CampaignAddBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CampaignAddBitlinkPaymentRequiredException.php b/lib/Exception/CampaignAddBitlinkPaymentRequiredException.php new file mode 100644 index 0000000..f8ea2a9 --- /dev/null +++ b/lib/Exception/CampaignAddBitlinkPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CampaignAddBitlinkServiceUnavailableException.php b/lib/Exception/CampaignAddBitlinkServiceUnavailableException.php new file mode 100644 index 0000000..17969ff --- /dev/null +++ b/lib/Exception/CampaignAddBitlinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CampaignAddBitlinkUnprocessableEntityException.php b/lib/Exception/CampaignAddBitlinkUnprocessableEntityException.php new file mode 100644 index 0000000..6b45509 --- /dev/null +++ b/lib/Exception/CampaignAddBitlinkUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CancelPendingDowngradeForbiddenException.php b/lib/Exception/CancelPendingDowngradeForbiddenException.php new file mode 100644 index 0000000..c85f229 --- /dev/null +++ b/lib/Exception/CancelPendingDowngradeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CancelPendingDowngradeInternalServerErrorException.php b/lib/Exception/CancelPendingDowngradeInternalServerErrorException.php new file mode 100644 index 0000000..cbb8c72 --- /dev/null +++ b/lib/Exception/CancelPendingDowngradeInternalServerErrorException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CancelPendingDowngradeNotFoundException.php b/lib/Exception/CancelPendingDowngradeNotFoundException.php new file mode 100644 index 0000000..58e44f0 --- /dev/null +++ b/lib/Exception/CancelPendingDowngradeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CancelPendingDowngradeStripeForbiddenException.php b/lib/Exception/CancelPendingDowngradeStripeForbiddenException.php new file mode 100644 index 0000000..09b3e8c --- /dev/null +++ b/lib/Exception/CancelPendingDowngradeStripeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CancelPendingDowngradeStripeInternalServerErrorException.php b/lib/Exception/CancelPendingDowngradeStripeInternalServerErrorException.php new file mode 100644 index 0000000..651d4b3 --- /dev/null +++ b/lib/Exception/CancelPendingDowngradeStripeInternalServerErrorException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CancelPendingDowngradeStripeNotFoundException.php b/lib/Exception/CancelPendingDowngradeStripeNotFoundException.php new file mode 100644 index 0000000..9d35ceb --- /dev/null +++ b/lib/Exception/CancelPendingDowngradeStripeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CaptureEventForbiddenException.php b/lib/Exception/CaptureEventForbiddenException.php new file mode 100644 index 0000000..e4ec85f --- /dev/null +++ b/lib/Exception/CaptureEventForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CaptureEventInternalServerErrorException.php b/lib/Exception/CaptureEventInternalServerErrorException.php new file mode 100644 index 0000000..382145f --- /dev/null +++ b/lib/Exception/CaptureEventInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ChangeUserPasswordBadRequestException.php b/lib/Exception/ChangeUserPasswordBadRequestException.php new file mode 100644 index 0000000..7272e75 --- /dev/null +++ b/lib/Exception/ChangeUserPasswordBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ChangeUserPasswordForbiddenException.php b/lib/Exception/ChangeUserPasswordForbiddenException.php new file mode 100644 index 0000000..1019a3e --- /dev/null +++ b/lib/Exception/ChangeUserPasswordForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ChangeUserPasswordInternalServerErrorException.php b/lib/Exception/ChangeUserPasswordInternalServerErrorException.php new file mode 100644 index 0000000..525343c --- /dev/null +++ b/lib/Exception/ChangeUserPasswordInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ChangeUserPasswordNotFoundException.php b/lib/Exception/ChangeUserPasswordNotFoundException.php new file mode 100644 index 0000000..c1d1548 --- /dev/null +++ b/lib/Exception/ChangeUserPasswordNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ChangeUserPasswordUnprocessableEntityException.php b/lib/Exception/ChangeUserPasswordUnprocessableEntityException.php new file mode 100644 index 0000000..cbe4e03 --- /dev/null +++ b/lib/Exception/ChangeUserPasswordUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CheckDomainDNSInternalServerErrorException.php b/lib/Exception/CheckDomainDNSInternalServerErrorException.php new file mode 100644 index 0000000..936572c --- /dev/null +++ b/lib/Exception/CheckDomainDNSInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CheckShareableReportBadRequestException.php b/lib/Exception/CheckShareableReportBadRequestException.php new file mode 100644 index 0000000..367ef23 --- /dev/null +++ b/lib/Exception/CheckShareableReportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CheckShareableReportForbiddenException.php b/lib/Exception/CheckShareableReportForbiddenException.php new file mode 100644 index 0000000..f9c9c91 --- /dev/null +++ b/lib/Exception/CheckShareableReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CheckShareableReportInternalServerErrorException.php b/lib/Exception/CheckShareableReportInternalServerErrorException.php new file mode 100644 index 0000000..aefc0b7 --- /dev/null +++ b/lib/Exception/CheckShareableReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CheckShareableReportNotFoundException.php b/lib/Exception/CheckShareableReportNotFoundException.php new file mode 100644 index 0000000..4123156 --- /dev/null +++ b/lib/Exception/CheckShareableReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CheckShareableReportServiceUnavailableException.php b/lib/Exception/CheckShareableReportServiceUnavailableException.php new file mode 100644 index 0000000..3ab0bcf --- /dev/null +++ b/lib/Exception/CheckShareableReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CloneSiteBadRequestException.php b/lib/Exception/CloneSiteBadRequestException.php new file mode 100644 index 0000000..5a4582d --- /dev/null +++ b/lib/Exception/CloneSiteBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CloneSiteForbiddenException.php b/lib/Exception/CloneSiteForbiddenException.php new file mode 100644 index 0000000..fab7008 --- /dev/null +++ b/lib/Exception/CloneSiteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CloneSiteInternalServerErrorException.php b/lib/Exception/CloneSiteInternalServerErrorException.php new file mode 100644 index 0000000..0a107cf --- /dev/null +++ b/lib/Exception/CloneSiteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CloneSitePaymentRequiredException.php b/lib/Exception/CloneSitePaymentRequiredException.php new file mode 100644 index 0000000..305561e --- /dev/null +++ b/lib/Exception/CloneSitePaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CloneSiteServiceUnavailableException.php b/lib/Exception/CloneSiteServiceUnavailableException.php new file mode 100644 index 0000000..13158db --- /dev/null +++ b/lib/Exception/CloneSiteServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsModuleBadRequestException.php b/lib/Exception/CreateAnalyticsModuleBadRequestException.php new file mode 100644 index 0000000..8a92ee2 --- /dev/null +++ b/lib/Exception/CreateAnalyticsModuleBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsModuleForbiddenException.php b/lib/Exception/CreateAnalyticsModuleForbiddenException.php new file mode 100644 index 0000000..69b2d0a --- /dev/null +++ b/lib/Exception/CreateAnalyticsModuleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsModuleInternalServerErrorException.php b/lib/Exception/CreateAnalyticsModuleInternalServerErrorException.php new file mode 100644 index 0000000..7b1cf98 --- /dev/null +++ b/lib/Exception/CreateAnalyticsModuleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsModuleNotFoundException.php b/lib/Exception/CreateAnalyticsModuleNotFoundException.php new file mode 100644 index 0000000..cbff919 --- /dev/null +++ b/lib/Exception/CreateAnalyticsModuleNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsModuleServiceUnavailableException.php b/lib/Exception/CreateAnalyticsModuleServiceUnavailableException.php new file mode 100644 index 0000000..4bb1552 --- /dev/null +++ b/lib/Exception/CreateAnalyticsModuleServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsReportBadRequestException.php b/lib/Exception/CreateAnalyticsReportBadRequestException.php new file mode 100644 index 0000000..41dcc08 --- /dev/null +++ b/lib/Exception/CreateAnalyticsReportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsReportForbiddenException.php b/lib/Exception/CreateAnalyticsReportForbiddenException.php new file mode 100644 index 0000000..c8dbc31 --- /dev/null +++ b/lib/Exception/CreateAnalyticsReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsReportInternalServerErrorException.php b/lib/Exception/CreateAnalyticsReportInternalServerErrorException.php new file mode 100644 index 0000000..0d5aec4 --- /dev/null +++ b/lib/Exception/CreateAnalyticsReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsReportNotFoundException.php b/lib/Exception/CreateAnalyticsReportNotFoundException.php new file mode 100644 index 0000000..05faf33 --- /dev/null +++ b/lib/Exception/CreateAnalyticsReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateAnalyticsReportServiceUnavailableException.php b/lib/Exception/CreateAnalyticsReportServiceUnavailableException.php new file mode 100644 index 0000000..fffd8e2 --- /dev/null +++ b/lib/Exception/CreateAnalyticsReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateCampaignChannelBadRequestException.php b/lib/Exception/CreateCampaignChannelBadRequestException.php new file mode 100644 index 0000000..2b8ac76 --- /dev/null +++ b/lib/Exception/CreateCampaignChannelBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateCampaignChannelInternalServerErrorException.php b/lib/Exception/CreateCampaignChannelInternalServerErrorException.php new file mode 100644 index 0000000..c676bc1 --- /dev/null +++ b/lib/Exception/CreateCampaignChannelInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateCampaignChannelUnprocessableEntityException.php b/lib/Exception/CreateCampaignChannelUnprocessableEntityException.php new file mode 100644 index 0000000..4f9519b --- /dev/null +++ b/lib/Exception/CreateCampaignChannelUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateChannelBitlinkBadRequestException.php b/lib/Exception/CreateChannelBitlinkBadRequestException.php new file mode 100644 index 0000000..0764863 --- /dev/null +++ b/lib/Exception/CreateChannelBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateChannelBitlinkInternalServerErrorException.php b/lib/Exception/CreateChannelBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..2fc5cb9 --- /dev/null +++ b/lib/Exception/CreateChannelBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateChannelBitlinkUnprocessableEntityException.php b/lib/Exception/CreateChannelBitlinkUnprocessableEntityException.php new file mode 100644 index 0000000..1db6ada --- /dev/null +++ b/lib/Exception/CreateChannelBitlinkUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateContainerBadRequestException.php b/lib/Exception/CreateContainerBadRequestException.php new file mode 100644 index 0000000..52bf12b --- /dev/null +++ b/lib/Exception/CreateContainerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateContainerForbiddenException.php b/lib/Exception/CreateContainerForbiddenException.php new file mode 100644 index 0000000..491d474 --- /dev/null +++ b/lib/Exception/CreateContainerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateContainerInternalServerErrorException.php b/lib/Exception/CreateContainerInternalServerErrorException.php new file mode 100644 index 0000000..c9a703d --- /dev/null +++ b/lib/Exception/CreateContainerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateContainerNotFoundException.php b/lib/Exception/CreateContainerNotFoundException.php new file mode 100644 index 0000000..3616b80 --- /dev/null +++ b/lib/Exception/CreateContainerNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateContainerServiceUnavailableException.php b/lib/Exception/CreateContainerServiceUnavailableException.php new file mode 100644 index 0000000..5e0ffcf --- /dev/null +++ b/lib/Exception/CreateContainerServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateContainerUnprocessableEntityException.php b/lib/Exception/CreateContainerUnprocessableEntityException.php new file mode 100644 index 0000000..480c029 --- /dev/null +++ b/lib/Exception/CreateContainerUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateCustomerBadRequestException.php b/lib/Exception/CreateCustomerBadRequestException.php new file mode 100644 index 0000000..c92b87c --- /dev/null +++ b/lib/Exception/CreateCustomerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateCustomerForbiddenException.php b/lib/Exception/CreateCustomerForbiddenException.php new file mode 100644 index 0000000..966b169 --- /dev/null +++ b/lib/Exception/CreateCustomerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateCustomerInternalServerErrorException.php b/lib/Exception/CreateCustomerInternalServerErrorException.php new file mode 100644 index 0000000..1b822fc --- /dev/null +++ b/lib/Exception/CreateCustomerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateCustomerUnprocessableEntityException.php b/lib/Exception/CreateCustomerUnprocessableEntityException.php new file mode 100644 index 0000000..c06a9d1 --- /dev/null +++ b/lib/Exception/CreateCustomerUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkAppBadRequestException.php b/lib/Exception/CreateDeeplinkAppBadRequestException.php new file mode 100644 index 0000000..ac58fb8 --- /dev/null +++ b/lib/Exception/CreateDeeplinkAppBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkAppExpectationFailedException.php b/lib/Exception/CreateDeeplinkAppExpectationFailedException.php new file mode 100644 index 0000000..27f382a --- /dev/null +++ b/lib/Exception/CreateDeeplinkAppExpectationFailedException.php @@ -0,0 +1,40 @@ +expectationFailed = $expectationFailed; + $this->response = $response; + } + + public function getExpectationFailed(): \Bitly\Model\ExpectationFailed + { + return $this->expectationFailed; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkAppForbiddenException.php b/lib/Exception/CreateDeeplinkAppForbiddenException.php new file mode 100644 index 0000000..43214cd --- /dev/null +++ b/lib/Exception/CreateDeeplinkAppForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkAppInternalServerErrorException.php b/lib/Exception/CreateDeeplinkAppInternalServerErrorException.php new file mode 100644 index 0000000..3d02540 --- /dev/null +++ b/lib/Exception/CreateDeeplinkAppInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkAppServiceUnavailableException.php b/lib/Exception/CreateDeeplinkAppServiceUnavailableException.php new file mode 100644 index 0000000..e6f5a81 --- /dev/null +++ b/lib/Exception/CreateDeeplinkAppServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkAppUnprocessableEntityException.php b/lib/Exception/CreateDeeplinkAppUnprocessableEntityException.php new file mode 100644 index 0000000..9a4d202 --- /dev/null +++ b/lib/Exception/CreateDeeplinkAppUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkRuleForbiddenException.php b/lib/Exception/CreateDeeplinkRuleForbiddenException.php new file mode 100644 index 0000000..d58c091 --- /dev/null +++ b/lib/Exception/CreateDeeplinkRuleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkRuleInternalServerErrorException.php b/lib/Exception/CreateDeeplinkRuleInternalServerErrorException.php new file mode 100644 index 0000000..6bf0d32 --- /dev/null +++ b/lib/Exception/CreateDeeplinkRuleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkRuleNotFoundException.php b/lib/Exception/CreateDeeplinkRuleNotFoundException.php new file mode 100644 index 0000000..46d94c5 --- /dev/null +++ b/lib/Exception/CreateDeeplinkRuleNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDeeplinkRulePaymentRequiredException.php b/lib/Exception/CreateDeeplinkRulePaymentRequiredException.php new file mode 100644 index 0000000..41a3507 --- /dev/null +++ b/lib/Exception/CreateDeeplinkRulePaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDefaultAnalyticsReportForGroupBadRequestException.php b/lib/Exception/CreateDefaultAnalyticsReportForGroupBadRequestException.php new file mode 100644 index 0000000..e76ccd3 --- /dev/null +++ b/lib/Exception/CreateDefaultAnalyticsReportForGroupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDefaultAnalyticsReportForGroupForbiddenException.php b/lib/Exception/CreateDefaultAnalyticsReportForGroupForbiddenException.php new file mode 100644 index 0000000..d211bb6 --- /dev/null +++ b/lib/Exception/CreateDefaultAnalyticsReportForGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDefaultAnalyticsReportForGroupInternalServerErrorException.php b/lib/Exception/CreateDefaultAnalyticsReportForGroupInternalServerErrorException.php new file mode 100644 index 0000000..759ce14 --- /dev/null +++ b/lib/Exception/CreateDefaultAnalyticsReportForGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDefaultAnalyticsReportForGroupNotFoundException.php b/lib/Exception/CreateDefaultAnalyticsReportForGroupNotFoundException.php new file mode 100644 index 0000000..1c87c9e --- /dev/null +++ b/lib/Exception/CreateDefaultAnalyticsReportForGroupNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateDefaultAnalyticsReportForGroupServiceUnavailableException.php b/lib/Exception/CreateDefaultAnalyticsReportForGroupServiceUnavailableException.php new file mode 100644 index 0000000..ac3d71b --- /dev/null +++ b/lib/Exception/CreateDefaultAnalyticsReportForGroupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateFocusBadRequestException.php b/lib/Exception/CreateFocusBadRequestException.php new file mode 100644 index 0000000..53e8526 --- /dev/null +++ b/lib/Exception/CreateFocusBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateFocusForbiddenException.php b/lib/Exception/CreateFocusForbiddenException.php new file mode 100644 index 0000000..ba0c10f --- /dev/null +++ b/lib/Exception/CreateFocusForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateFocusInternalServerErrorException.php b/lib/Exception/CreateFocusInternalServerErrorException.php new file mode 100644 index 0000000..5f2146d --- /dev/null +++ b/lib/Exception/CreateFocusInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGenericAccessTokenBadRequestException.php b/lib/Exception/CreateGenericAccessTokenBadRequestException.php new file mode 100644 index 0000000..32a99be --- /dev/null +++ b/lib/Exception/CreateGenericAccessTokenBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGenericAccessTokenForbiddenException.php b/lib/Exception/CreateGenericAccessTokenForbiddenException.php new file mode 100644 index 0000000..7a30491 --- /dev/null +++ b/lib/Exception/CreateGenericAccessTokenForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGenericAccessTokenInternalServerErrorException.php b/lib/Exception/CreateGenericAccessTokenInternalServerErrorException.php new file mode 100644 index 0000000..15213ef --- /dev/null +++ b/lib/Exception/CreateGenericAccessTokenInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGenericAccessTokenNotFoundException.php b/lib/Exception/CreateGenericAccessTokenNotFoundException.php new file mode 100644 index 0000000..f2c896c --- /dev/null +++ b/lib/Exception/CreateGenericAccessTokenNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGenericAccessTokenUnauthorizedException.php b/lib/Exception/CreateGenericAccessTokenUnauthorizedException.php new file mode 100644 index 0000000..42f0dca --- /dev/null +++ b/lib/Exception/CreateGenericAccessTokenUnauthorizedException.php @@ -0,0 +1,40 @@ +unauthorized = $unauthorized; + $this->response = $response; + } + + public function getUnauthorized(): \Bitly\Model\Unauthorized + { + return $this->unauthorized; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGroupBadRequestException.php b/lib/Exception/CreateGroupBadRequestException.php new file mode 100644 index 0000000..5408f45 --- /dev/null +++ b/lib/Exception/CreateGroupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGroupForbiddenException.php b/lib/Exception/CreateGroupForbiddenException.php new file mode 100644 index 0000000..a40cde6 --- /dev/null +++ b/lib/Exception/CreateGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGroupInternalServerErrorException.php b/lib/Exception/CreateGroupInternalServerErrorException.php new file mode 100644 index 0000000..4c6eff7 --- /dev/null +++ b/lib/Exception/CreateGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGroupTooManyRequestsException.php b/lib/Exception/CreateGroupTooManyRequestsException.php new file mode 100644 index 0000000..3ec46b5 --- /dev/null +++ b/lib/Exception/CreateGroupTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateGroupUnprocessableEntityException.php b/lib/Exception/CreateGroupUnprocessableEntityException.php new file mode 100644 index 0000000..0aeab39 --- /dev/null +++ b/lib/Exception/CreateGroupUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateInterventionBadRequestException.php b/lib/Exception/CreateInterventionBadRequestException.php new file mode 100644 index 0000000..55a3a20 --- /dev/null +++ b/lib/Exception/CreateInterventionBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateInterventionForbiddenException.php b/lib/Exception/CreateInterventionForbiddenException.php new file mode 100644 index 0000000..9ed04a5 --- /dev/null +++ b/lib/Exception/CreateInterventionForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateInterventionInternalServerErrorException.php b/lib/Exception/CreateInterventionInternalServerErrorException.php new file mode 100644 index 0000000..8c6b25d --- /dev/null +++ b/lib/Exception/CreateInterventionInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateInterventionServiceUnavailableException.php b/lib/Exception/CreateInterventionServiceUnavailableException.php new file mode 100644 index 0000000..20989aa --- /dev/null +++ b/lib/Exception/CreateInterventionServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateInterventionUnprocessableEntityException.php b/lib/Exception/CreateInterventionUnprocessableEntityException.php new file mode 100644 index 0000000..b702a8e --- /dev/null +++ b/lib/Exception/CreateInterventionUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadBadRequestException.php b/lib/Exception/CreateLaunchpadBadRequestException.php new file mode 100644 index 0000000..5e991a1 --- /dev/null +++ b/lib/Exception/CreateLaunchpadBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadButtonBadRequestException.php b/lib/Exception/CreateLaunchpadButtonBadRequestException.php new file mode 100644 index 0000000..a176b6a --- /dev/null +++ b/lib/Exception/CreateLaunchpadButtonBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadButtonForbiddenException.php b/lib/Exception/CreateLaunchpadButtonForbiddenException.php new file mode 100644 index 0000000..cc43f2b --- /dev/null +++ b/lib/Exception/CreateLaunchpadButtonForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadButtonInternalServerErrorException.php b/lib/Exception/CreateLaunchpadButtonInternalServerErrorException.php new file mode 100644 index 0000000..2ab98be --- /dev/null +++ b/lib/Exception/CreateLaunchpadButtonInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadButtonNotFoundException.php b/lib/Exception/CreateLaunchpadButtonNotFoundException.php new file mode 100644 index 0000000..0f19383 --- /dev/null +++ b/lib/Exception/CreateLaunchpadButtonNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadButtonServiceUnavailableException.php b/lib/Exception/CreateLaunchpadButtonServiceUnavailableException.php new file mode 100644 index 0000000..71be6ed --- /dev/null +++ b/lib/Exception/CreateLaunchpadButtonServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentBitlinkBadRequestException.php b/lib/Exception/CreateLaunchpadContentBitlinkBadRequestException.php new file mode 100644 index 0000000..d5a25c5 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentBitlinkForbiddenException.php b/lib/Exception/CreateLaunchpadContentBitlinkForbiddenException.php new file mode 100644 index 0000000..44f2931 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentBitlinkInternalServerErrorException.php b/lib/Exception/CreateLaunchpadContentBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..f6c1bcc --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentBitlinkNotFoundException.php b/lib/Exception/CreateLaunchpadContentBitlinkNotFoundException.php new file mode 100644 index 0000000..78ceb7a --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentBitlinkServiceUnavailableException.php b/lib/Exception/CreateLaunchpadContentBitlinkServiceUnavailableException.php new file mode 100644 index 0000000..8f65382 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentBitlinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentImageBadRequestException.php b/lib/Exception/CreateLaunchpadContentImageBadRequestException.php new file mode 100644 index 0000000..5156618 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentImageBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentImageForbiddenException.php b/lib/Exception/CreateLaunchpadContentImageForbiddenException.php new file mode 100644 index 0000000..02a0d53 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentImageForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentImageInternalServerErrorException.php b/lib/Exception/CreateLaunchpadContentImageInternalServerErrorException.php new file mode 100644 index 0000000..a34865c --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentImageInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentImageNotFoundException.php b/lib/Exception/CreateLaunchpadContentImageNotFoundException.php new file mode 100644 index 0000000..ed3a9aa --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentImageNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentImageServiceUnavailableException.php b/lib/Exception/CreateLaunchpadContentImageServiceUnavailableException.php new file mode 100644 index 0000000..b389822 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentImageServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentSocialBadRequestException.php b/lib/Exception/CreateLaunchpadContentSocialBadRequestException.php new file mode 100644 index 0000000..9eb6633 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentSocialBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentSocialForbiddenException.php b/lib/Exception/CreateLaunchpadContentSocialForbiddenException.php new file mode 100644 index 0000000..1dbb4e3 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentSocialForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentSocialInternalServerErrorException.php b/lib/Exception/CreateLaunchpadContentSocialInternalServerErrorException.php new file mode 100644 index 0000000..de72434 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentSocialInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentSocialNotFoundException.php b/lib/Exception/CreateLaunchpadContentSocialNotFoundException.php new file mode 100644 index 0000000..56e3611 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentSocialNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentSocialServiceUnavailableException.php b/lib/Exception/CreateLaunchpadContentSocialServiceUnavailableException.php new file mode 100644 index 0000000..4465e38 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentSocialServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentYoutubeVideoBadRequestException.php b/lib/Exception/CreateLaunchpadContentYoutubeVideoBadRequestException.php new file mode 100644 index 0000000..c74d739 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentYoutubeVideoBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentYoutubeVideoForbiddenException.php b/lib/Exception/CreateLaunchpadContentYoutubeVideoForbiddenException.php new file mode 100644 index 0000000..7205224 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentYoutubeVideoForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentYoutubeVideoInternalServerErrorException.php b/lib/Exception/CreateLaunchpadContentYoutubeVideoInternalServerErrorException.php new file mode 100644 index 0000000..55209b3 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentYoutubeVideoInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentYoutubeVideoNotFoundException.php b/lib/Exception/CreateLaunchpadContentYoutubeVideoNotFoundException.php new file mode 100644 index 0000000..4946217 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentYoutubeVideoNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadContentYoutubeVideoServiceUnavailableException.php b/lib/Exception/CreateLaunchpadContentYoutubeVideoServiceUnavailableException.php new file mode 100644 index 0000000..3becb35 --- /dev/null +++ b/lib/Exception/CreateLaunchpadContentYoutubeVideoServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadForbiddenException.php b/lib/Exception/CreateLaunchpadForbiddenException.php new file mode 100644 index 0000000..2f476aa --- /dev/null +++ b/lib/Exception/CreateLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadInternalServerErrorException.php b/lib/Exception/CreateLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..0a32b2a --- /dev/null +++ b/lib/Exception/CreateLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLaunchpadServiceUnavailableException.php b/lib/Exception/CreateLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..828b651 --- /dev/null +++ b/lib/Exception/CreateLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkBadRequestException.php b/lib/Exception/CreateLinkBadRequestException.php new file mode 100644 index 0000000..c4cb143 --- /dev/null +++ b/lib/Exception/CreateLinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkConflictException.php b/lib/Exception/CreateLinkConflictException.php new file mode 100644 index 0000000..a4a6048 --- /dev/null +++ b/lib/Exception/CreateLinkConflictException.php @@ -0,0 +1,40 @@ +conflict = $conflict; + $this->response = $response; + } + + public function getConflict(): \Bitly\Model\Conflict + { + return $this->conflict; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkExpectationFailedException.php b/lib/Exception/CreateLinkExpectationFailedException.php new file mode 100644 index 0000000..58754db --- /dev/null +++ b/lib/Exception/CreateLinkExpectationFailedException.php @@ -0,0 +1,40 @@ +expectationFailed = $expectationFailed; + $this->response = $response; + } + + public function getExpectationFailed(): \Bitly\Model\ExpectationFailed + { + return $this->expectationFailed; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkForbiddenException.php b/lib/Exception/CreateLinkForbiddenException.php new file mode 100644 index 0000000..5791acf --- /dev/null +++ b/lib/Exception/CreateLinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkInternalServerErrorException.php b/lib/Exception/CreateLinkInternalServerErrorException.php new file mode 100644 index 0000000..7607562 --- /dev/null +++ b/lib/Exception/CreateLinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkNotFoundException.php b/lib/Exception/CreateLinkNotFoundException.php new file mode 100644 index 0000000..17bdb8f --- /dev/null +++ b/lib/Exception/CreateLinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkPaymentRequiredException.php b/lib/Exception/CreateLinkPaymentRequiredException.php new file mode 100644 index 0000000..5a0ec62 --- /dev/null +++ b/lib/Exception/CreateLinkPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkServiceUnavailableException.php b/lib/Exception/CreateLinkServiceUnavailableException.php new file mode 100644 index 0000000..f280a1f --- /dev/null +++ b/lib/Exception/CreateLinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkTooManyRequestsException.php b/lib/Exception/CreateLinkTooManyRequestsException.php new file mode 100644 index 0000000..12945a2 --- /dev/null +++ b/lib/Exception/CreateLinkTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateLinkUnprocessableEntityException.php b/lib/Exception/CreateLinkUnprocessableEntityException.php new file mode 100644 index 0000000..d2cb14c --- /dev/null +++ b/lib/Exception/CreateLinkUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOAuthAppBadRequestException.php b/lib/Exception/CreateOAuthAppBadRequestException.php new file mode 100644 index 0000000..96f0995 --- /dev/null +++ b/lib/Exception/CreateOAuthAppBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOAuthAppForbiddenException.php b/lib/Exception/CreateOAuthAppForbiddenException.php new file mode 100644 index 0000000..a418995 --- /dev/null +++ b/lib/Exception/CreateOAuthAppForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOAuthAppInternalServerErrorException.php b/lib/Exception/CreateOAuthAppInternalServerErrorException.php new file mode 100644 index 0000000..9ff4506 --- /dev/null +++ b/lib/Exception/CreateOAuthAppInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrgDomainVerificationEmailBadRequestException.php b/lib/Exception/CreateOrgDomainVerificationEmailBadRequestException.php new file mode 100644 index 0000000..b9725ec --- /dev/null +++ b/lib/Exception/CreateOrgDomainVerificationEmailBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrgDomainVerificationEmailForbiddenException.php b/lib/Exception/CreateOrgDomainVerificationEmailForbiddenException.php new file mode 100644 index 0000000..36eed87 --- /dev/null +++ b/lib/Exception/CreateOrgDomainVerificationEmailForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrgDomainVerificationEmailInternalServerErrorException.php b/lib/Exception/CreateOrgDomainVerificationEmailInternalServerErrorException.php new file mode 100644 index 0000000..4819593 --- /dev/null +++ b/lib/Exception/CreateOrgDomainVerificationEmailInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrgDomainVerificationEmailPaymentRequiredException.php b/lib/Exception/CreateOrgDomainVerificationEmailPaymentRequiredException.php new file mode 100644 index 0000000..0cdd863 --- /dev/null +++ b/lib/Exception/CreateOrgDomainVerificationEmailPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationInvitationsBadRequestException.php b/lib/Exception/CreateOrganizationInvitationsBadRequestException.php new file mode 100644 index 0000000..e6b8cb5 --- /dev/null +++ b/lib/Exception/CreateOrganizationInvitationsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationInvitationsForbiddenException.php b/lib/Exception/CreateOrganizationInvitationsForbiddenException.php new file mode 100644 index 0000000..d5da4a6 --- /dev/null +++ b/lib/Exception/CreateOrganizationInvitationsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationInvitationsInternalServerErrorException.php b/lib/Exception/CreateOrganizationInvitationsInternalServerErrorException.php new file mode 100644 index 0000000..70ae3b8 --- /dev/null +++ b/lib/Exception/CreateOrganizationInvitationsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationInvitationsPaymentRequiredException.php b/lib/Exception/CreateOrganizationInvitationsPaymentRequiredException.php new file mode 100644 index 0000000..6de4c9e --- /dev/null +++ b/lib/Exception/CreateOrganizationInvitationsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationInvitationsServiceUnavailableException.php b/lib/Exception/CreateOrganizationInvitationsServiceUnavailableException.php new file mode 100644 index 0000000..6a5bd10 --- /dev/null +++ b/lib/Exception/CreateOrganizationInvitationsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationInvitationsTooManyRequestsException.php b/lib/Exception/CreateOrganizationInvitationsTooManyRequestsException.php new file mode 100644 index 0000000..e5d37ad --- /dev/null +++ b/lib/Exception/CreateOrganizationInvitationsTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationSSOSettingsBadRequestException.php b/lib/Exception/CreateOrganizationSSOSettingsBadRequestException.php new file mode 100644 index 0000000..3bf93fc --- /dev/null +++ b/lib/Exception/CreateOrganizationSSOSettingsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationSSOSettingsForbiddenException.php b/lib/Exception/CreateOrganizationSSOSettingsForbiddenException.php new file mode 100644 index 0000000..c6d7af1 --- /dev/null +++ b/lib/Exception/CreateOrganizationSSOSettingsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationSSOSettingsInternalServerErrorException.php b/lib/Exception/CreateOrganizationSSOSettingsInternalServerErrorException.php new file mode 100644 index 0000000..2f32311 --- /dev/null +++ b/lib/Exception/CreateOrganizationSSOSettingsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationSSOSettingsPaymentRequiredException.php b/lib/Exception/CreateOrganizationSSOSettingsPaymentRequiredException.php new file mode 100644 index 0000000..8ab4609 --- /dev/null +++ b/lib/Exception/CreateOrganizationSSOSettingsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationSSOSettingsServiceUnavailableException.php b/lib/Exception/CreateOrganizationSSOSettingsServiceUnavailableException.php new file mode 100644 index 0000000..52b2065 --- /dev/null +++ b/lib/Exception/CreateOrganizationSSOSettingsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOrganizationSSOSettingsUnprocessableEntityException.php b/lib/Exception/CreateOrganizationSSOSettingsUnprocessableEntityException.php new file mode 100644 index 0000000..83134ba --- /dev/null +++ b/lib/Exception/CreateOrganizationSSOSettingsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkBadRequestException.php b/lib/Exception/CreateOverridesForBitlinkBadRequestException.php new file mode 100644 index 0000000..481fd7b --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkConflictException.php b/lib/Exception/CreateOverridesForBitlinkConflictException.php new file mode 100644 index 0000000..6ad430f --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkConflictException.php @@ -0,0 +1,40 @@ +conflict = $conflict; + $this->response = $response; + } + + public function getConflict(): \Bitly\Model\Conflict + { + return $this->conflict; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkForbiddenException.php b/lib/Exception/CreateOverridesForBitlinkForbiddenException.php new file mode 100644 index 0000000..1047091 --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkInternalServerErrorException.php b/lib/Exception/CreateOverridesForBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..520741c --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkNotFoundException.php b/lib/Exception/CreateOverridesForBitlinkNotFoundException.php new file mode 100644 index 0000000..1897b57 --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkPaymentRequiredException.php b/lib/Exception/CreateOverridesForBitlinkPaymentRequiredException.php new file mode 100644 index 0000000..fe44f95 --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkServiceUnavailableException.php b/lib/Exception/CreateOverridesForBitlinkServiceUnavailableException.php new file mode 100644 index 0000000..279e6f8 --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkTooManyRequestsException.php b/lib/Exception/CreateOverridesForBitlinkTooManyRequestsException.php new file mode 100644 index 0000000..4adb7ee --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkTooManyRequestsException.php @@ -0,0 +1,40 @@ +tooManyRequests = $tooManyRequests; + $this->response = $response; + } + + public function getTooManyRequests(): \Bitly\Model\TooManyRequests + { + return $this->tooManyRequests; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateOverridesForBitlinkUnprocessableEntityException.php b/lib/Exception/CreateOverridesForBitlinkUnprocessableEntityException.php new file mode 100644 index 0000000..e42726a --- /dev/null +++ b/lib/Exception/CreateOverridesForBitlinkUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePayPalBillingAgreementBadRequestException.php b/lib/Exception/CreatePayPalBillingAgreementBadRequestException.php new file mode 100644 index 0000000..c737d96 --- /dev/null +++ b/lib/Exception/CreatePayPalBillingAgreementBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePayPalBillingAgreementForbiddenException.php b/lib/Exception/CreatePayPalBillingAgreementForbiddenException.php new file mode 100644 index 0000000..57374ce --- /dev/null +++ b/lib/Exception/CreatePayPalBillingAgreementForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePayPalBillingAgreementInternalServerErrorException.php b/lib/Exception/CreatePayPalBillingAgreementInternalServerErrorException.php new file mode 100644 index 0000000..d3b9cc7 --- /dev/null +++ b/lib/Exception/CreatePayPalBillingAgreementInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePayPalBillingAgreementTokenBadRequestException.php b/lib/Exception/CreatePayPalBillingAgreementTokenBadRequestException.php new file mode 100644 index 0000000..2d38806 --- /dev/null +++ b/lib/Exception/CreatePayPalBillingAgreementTokenBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePayPalBillingAgreementTokenForbiddenException.php b/lib/Exception/CreatePayPalBillingAgreementTokenForbiddenException.php new file mode 100644 index 0000000..5148c79 --- /dev/null +++ b/lib/Exception/CreatePayPalBillingAgreementTokenForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePayPalBillingAgreementTokenInternalServerErrorException.php b/lib/Exception/CreatePayPalBillingAgreementTokenInternalServerErrorException.php new file mode 100644 index 0000000..b3ecefb --- /dev/null +++ b/lib/Exception/CreatePayPalBillingAgreementTokenInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePayPalBillingAgreementTokenUnprocessableEntityException.php b/lib/Exception/CreatePayPalBillingAgreementTokenUnprocessableEntityException.php new file mode 100644 index 0000000..28d7427 --- /dev/null +++ b/lib/Exception/CreatePayPalBillingAgreementTokenUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePayPalBillingAgreementUnprocessableEntityException.php b/lib/Exception/CreatePayPalBillingAgreementUnprocessableEntityException.php new file mode 100644 index 0000000..3700a8a --- /dev/null +++ b/lib/Exception/CreatePayPalBillingAgreementUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePaymentMethodBadRequestException.php b/lib/Exception/CreatePaymentMethodBadRequestException.php new file mode 100644 index 0000000..879fac3 --- /dev/null +++ b/lib/Exception/CreatePaymentMethodBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePaymentMethodForbiddenException.php b/lib/Exception/CreatePaymentMethodForbiddenException.php new file mode 100644 index 0000000..d75dfb0 --- /dev/null +++ b/lib/Exception/CreatePaymentMethodForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePaymentMethodInternalServerErrorException.php b/lib/Exception/CreatePaymentMethodInternalServerErrorException.php new file mode 100644 index 0000000..aec8939 --- /dev/null +++ b/lib/Exception/CreatePaymentMethodInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePaymentMethodServiceUnavailableException.php b/lib/Exception/CreatePaymentMethodServiceUnavailableException.php new file mode 100644 index 0000000..fb96ac6 --- /dev/null +++ b/lib/Exception/CreatePaymentMethodServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreatePaymentMethodUnprocessableEntityException.php b/lib/Exception/CreatePaymentMethodUnprocessableEntityException.php new file mode 100644 index 0000000..adc1578 --- /dev/null +++ b/lib/Exception/CreatePaymentMethodUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodePreviewBadRequestException.php b/lib/Exception/CreateQRCodePreviewBadRequestException.php new file mode 100644 index 0000000..8157749 --- /dev/null +++ b/lib/Exception/CreateQRCodePreviewBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodePreviewForbiddenException.php b/lib/Exception/CreateQRCodePreviewForbiddenException.php new file mode 100644 index 0000000..b9a3d99 --- /dev/null +++ b/lib/Exception/CreateQRCodePreviewForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodePreviewGoneException.php b/lib/Exception/CreateQRCodePreviewGoneException.php new file mode 100644 index 0000000..0fc3922 --- /dev/null +++ b/lib/Exception/CreateQRCodePreviewGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodePreviewInternalServerErrorException.php b/lib/Exception/CreateQRCodePreviewInternalServerErrorException.php new file mode 100644 index 0000000..231627b --- /dev/null +++ b/lib/Exception/CreateQRCodePreviewInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodePreviewNotFoundException.php b/lib/Exception/CreateQRCodePreviewNotFoundException.php new file mode 100644 index 0000000..bf848bb --- /dev/null +++ b/lib/Exception/CreateQRCodePreviewNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodePreviewPaymentRequiredException.php b/lib/Exception/CreateQRCodePreviewPaymentRequiredException.php new file mode 100644 index 0000000..403a462 --- /dev/null +++ b/lib/Exception/CreateQRCodePreviewPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodeTemplateBadRequestException.php b/lib/Exception/CreateQRCodeTemplateBadRequestException.php new file mode 100644 index 0000000..6ce9a05 --- /dev/null +++ b/lib/Exception/CreateQRCodeTemplateBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodeTemplateForbiddenException.php b/lib/Exception/CreateQRCodeTemplateForbiddenException.php new file mode 100644 index 0000000..a702d3a --- /dev/null +++ b/lib/Exception/CreateQRCodeTemplateForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodeTemplateGoneException.php b/lib/Exception/CreateQRCodeTemplateGoneException.php new file mode 100644 index 0000000..36ef210 --- /dev/null +++ b/lib/Exception/CreateQRCodeTemplateGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodeTemplateInternalServerErrorException.php b/lib/Exception/CreateQRCodeTemplateInternalServerErrorException.php new file mode 100644 index 0000000..16da406 --- /dev/null +++ b/lib/Exception/CreateQRCodeTemplateInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodeTemplateNotFoundException.php b/lib/Exception/CreateQRCodeTemplateNotFoundException.php new file mode 100644 index 0000000..c62307a --- /dev/null +++ b/lib/Exception/CreateQRCodeTemplateNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateQRCodeTemplatePaymentRequiredException.php b/lib/Exception/CreateQRCodeTemplatePaymentRequiredException.php new file mode 100644 index 0000000..32990af --- /dev/null +++ b/lib/Exception/CreateQRCodeTemplatePaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShareableReportBadRequestException.php b/lib/Exception/CreateShareableReportBadRequestException.php new file mode 100644 index 0000000..79fe1ae --- /dev/null +++ b/lib/Exception/CreateShareableReportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShareableReportForbiddenException.php b/lib/Exception/CreateShareableReportForbiddenException.php new file mode 100644 index 0000000..11b13ae --- /dev/null +++ b/lib/Exception/CreateShareableReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShareableReportInternalServerErrorException.php b/lib/Exception/CreateShareableReportInternalServerErrorException.php new file mode 100644 index 0000000..b5107c5 --- /dev/null +++ b/lib/Exception/CreateShareableReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShareableReportNotFoundException.php b/lib/Exception/CreateShareableReportNotFoundException.php new file mode 100644 index 0000000..dc87004 --- /dev/null +++ b/lib/Exception/CreateShareableReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShareableReportServiceUnavailableException.php b/lib/Exception/CreateShareableReportServiceUnavailableException.php new file mode 100644 index 0000000..89535a1 --- /dev/null +++ b/lib/Exception/CreateShareableReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShopifyIntegrationOAuthBadRequestException.php b/lib/Exception/CreateShopifyIntegrationOAuthBadRequestException.php new file mode 100644 index 0000000..bd05a75 --- /dev/null +++ b/lib/Exception/CreateShopifyIntegrationOAuthBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShopifyIntegrationOAuthConflictException.php b/lib/Exception/CreateShopifyIntegrationOAuthConflictException.php new file mode 100644 index 0000000..f77d82f --- /dev/null +++ b/lib/Exception/CreateShopifyIntegrationOAuthConflictException.php @@ -0,0 +1,40 @@ +conflict = $conflict; + $this->response = $response; + } + + public function getConflict(): \Bitly\Model\Conflict + { + return $this->conflict; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShopifyIntegrationOAuthForbiddenException.php b/lib/Exception/CreateShopifyIntegrationOAuthForbiddenException.php new file mode 100644 index 0000000..7d3df7e --- /dev/null +++ b/lib/Exception/CreateShopifyIntegrationOAuthForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShopifyIntegrationOAuthInternalServerErrorException.php b/lib/Exception/CreateShopifyIntegrationOAuthInternalServerErrorException.php new file mode 100644 index 0000000..e782ae9 --- /dev/null +++ b/lib/Exception/CreateShopifyIntegrationOAuthInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShopifyIntegrationOAuthServiceUnavailableException.php b/lib/Exception/CreateShopifyIntegrationOAuthServiceUnavailableException.php new file mode 100644 index 0000000..717550a --- /dev/null +++ b/lib/Exception/CreateShopifyIntegrationOAuthServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateShopifyIntegrationOAuthUnprocessableEntityException.php b/lib/Exception/CreateShopifyIntegrationOAuthUnprocessableEntityException.php new file mode 100644 index 0000000..2862a44 --- /dev/null +++ b/lib/Exception/CreateShopifyIntegrationOAuthUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteBadRequestException.php b/lib/Exception/CreateSiteBadRequestException.php new file mode 100644 index 0000000..7da17c3 --- /dev/null +++ b/lib/Exception/CreateSiteBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteContentBadRequestException.php b/lib/Exception/CreateSiteContentBadRequestException.php new file mode 100644 index 0000000..d4d32f7 --- /dev/null +++ b/lib/Exception/CreateSiteContentBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteContentForbiddenException.php b/lib/Exception/CreateSiteContentForbiddenException.php new file mode 100644 index 0000000..ad62f7e --- /dev/null +++ b/lib/Exception/CreateSiteContentForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteContentInternalServerErrorException.php b/lib/Exception/CreateSiteContentInternalServerErrorException.php new file mode 100644 index 0000000..04de34e --- /dev/null +++ b/lib/Exception/CreateSiteContentInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteContentNotFoundException.php b/lib/Exception/CreateSiteContentNotFoundException.php new file mode 100644 index 0000000..36973a9 --- /dev/null +++ b/lib/Exception/CreateSiteContentNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteContentServiceUnavailableException.php b/lib/Exception/CreateSiteContentServiceUnavailableException.php new file mode 100644 index 0000000..5d4dad7 --- /dev/null +++ b/lib/Exception/CreateSiteContentServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteForbiddenException.php b/lib/Exception/CreateSiteForbiddenException.php new file mode 100644 index 0000000..fb6bad2 --- /dev/null +++ b/lib/Exception/CreateSiteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteInternalServerErrorException.php b/lib/Exception/CreateSiteInternalServerErrorException.php new file mode 100644 index 0000000..6c40f7a --- /dev/null +++ b/lib/Exception/CreateSiteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSitePaymentRequiredException.php b/lib/Exception/CreateSitePaymentRequiredException.php new file mode 100644 index 0000000..260ebb4 --- /dev/null +++ b/lib/Exception/CreateSitePaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteServiceUnavailableException.php b/lib/Exception/CreateSiteServiceUnavailableException.php new file mode 100644 index 0000000..983743d --- /dev/null +++ b/lib/Exception/CreateSiteServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSiteUnprocessableEntityException.php b/lib/Exception/CreateSiteUnprocessableEntityException.php new file mode 100644 index 0000000..83e801a --- /dev/null +++ b/lib/Exception/CreateSiteUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateStripeSetupIntentBadRequestException.php b/lib/Exception/CreateStripeSetupIntentBadRequestException.php new file mode 100644 index 0000000..0a067c1 --- /dev/null +++ b/lib/Exception/CreateStripeSetupIntentBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateStripeSetupIntentForbiddenException.php b/lib/Exception/CreateStripeSetupIntentForbiddenException.php new file mode 100644 index 0000000..c3b4b58 --- /dev/null +++ b/lib/Exception/CreateStripeSetupIntentForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateStripeSetupIntentInternalServerErrorException.php b/lib/Exception/CreateStripeSetupIntentInternalServerErrorException.php new file mode 100644 index 0000000..c8d990d --- /dev/null +++ b/lib/Exception/CreateStripeSetupIntentInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateStripeSetupIntentServiceUnavailableException.php b/lib/Exception/CreateStripeSetupIntentServiceUnavailableException.php new file mode 100644 index 0000000..51682ba --- /dev/null +++ b/lib/Exception/CreateStripeSetupIntentServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateStripeSetupIntentUnprocessableEntityException.php b/lib/Exception/CreateStripeSetupIntentUnprocessableEntityException.php new file mode 100644 index 0000000..c241251 --- /dev/null +++ b/lib/Exception/CreateStripeSetupIntentUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSubscriptionBadRequestException.php b/lib/Exception/CreateSubscriptionBadRequestException.php new file mode 100644 index 0000000..22ac665 --- /dev/null +++ b/lib/Exception/CreateSubscriptionBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSubscriptionForbiddenException.php b/lib/Exception/CreateSubscriptionForbiddenException.php new file mode 100644 index 0000000..ab05b6c --- /dev/null +++ b/lib/Exception/CreateSubscriptionForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSubscriptionInternalServerErrorException.php b/lib/Exception/CreateSubscriptionInternalServerErrorException.php new file mode 100644 index 0000000..0f73998 --- /dev/null +++ b/lib/Exception/CreateSubscriptionInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateSubscriptionUnprocessableEntityException.php b/lib/Exception/CreateSubscriptionUnprocessableEntityException.php new file mode 100644 index 0000000..9f702da --- /dev/null +++ b/lib/Exception/CreateSubscriptionUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateUserBadRequestException.php b/lib/Exception/CreateUserBadRequestException.php new file mode 100644 index 0000000..22c96a1 --- /dev/null +++ b/lib/Exception/CreateUserBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateUserInternalServerErrorException.php b/lib/Exception/CreateUserInternalServerErrorException.php new file mode 100644 index 0000000..4e650c7 --- /dev/null +++ b/lib/Exception/CreateUserInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateUserTooManyRequestsException.php b/lib/Exception/CreateUserTooManyRequestsException.php new file mode 100644 index 0000000..6d114af --- /dev/null +++ b/lib/Exception/CreateUserTooManyRequestsException.php @@ -0,0 +1,40 @@ +tooManyRequests = $tooManyRequests; + $this->response = $response; + } + + public function getTooManyRequests(): \Bitly\Model\TooManyRequests + { + return $this->tooManyRequests; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/CreateUserUnprocessableEntityException.php b/lib/Exception/CreateUserUnprocessableEntityException.php new file mode 100644 index 0000000..446c1c5 --- /dev/null +++ b/lib/Exception/CreateUserUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeactivateDeeplinkAppForbiddenException.php b/lib/Exception/DeactivateDeeplinkAppForbiddenException.php new file mode 100644 index 0000000..aa0a835 --- /dev/null +++ b/lib/Exception/DeactivateDeeplinkAppForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeactivateDeeplinkAppInternalServerErrorException.php b/lib/Exception/DeactivateDeeplinkAppInternalServerErrorException.php new file mode 100644 index 0000000..0d8c1df --- /dev/null +++ b/lib/Exception/DeactivateDeeplinkAppInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeactivateDeeplinkAppNotFoundException.php b/lib/Exception/DeactivateDeeplinkAppNotFoundException.php new file mode 100644 index 0000000..36956d5 --- /dev/null +++ b/lib/Exception/DeactivateDeeplinkAppNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeactivateDeeplinkAppPaymentRequiredException.php b/lib/Exception/DeactivateDeeplinkAppPaymentRequiredException.php new file mode 100644 index 0000000..70728d6 --- /dev/null +++ b/lib/Exception/DeactivateDeeplinkAppPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeactivateDeeplinkAppServiceUnavailableException.php b/lib/Exception/DeactivateDeeplinkAppServiceUnavailableException.php new file mode 100644 index 0000000..11b792f --- /dev/null +++ b/lib/Exception/DeactivateDeeplinkAppServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsModuleByReportForbiddenException.php b/lib/Exception/DeleteAnalyticsModuleByReportForbiddenException.php new file mode 100644 index 0000000..e90ffbe --- /dev/null +++ b/lib/Exception/DeleteAnalyticsModuleByReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsModuleByReportInternalServerErrorException.php b/lib/Exception/DeleteAnalyticsModuleByReportInternalServerErrorException.php new file mode 100644 index 0000000..134eb19 --- /dev/null +++ b/lib/Exception/DeleteAnalyticsModuleByReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsModuleByReportNotFoundException.php b/lib/Exception/DeleteAnalyticsModuleByReportNotFoundException.php new file mode 100644 index 0000000..9a8ff61 --- /dev/null +++ b/lib/Exception/DeleteAnalyticsModuleByReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsModuleByReportPaymentRequiredException.php b/lib/Exception/DeleteAnalyticsModuleByReportPaymentRequiredException.php new file mode 100644 index 0000000..988585c --- /dev/null +++ b/lib/Exception/DeleteAnalyticsModuleByReportPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsModuleForbiddenException.php b/lib/Exception/DeleteAnalyticsModuleForbiddenException.php new file mode 100644 index 0000000..d5882f3 --- /dev/null +++ b/lib/Exception/DeleteAnalyticsModuleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsModuleInternalServerErrorException.php b/lib/Exception/DeleteAnalyticsModuleInternalServerErrorException.php new file mode 100644 index 0000000..7318265 --- /dev/null +++ b/lib/Exception/DeleteAnalyticsModuleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsModuleNotFoundException.php b/lib/Exception/DeleteAnalyticsModuleNotFoundException.php new file mode 100644 index 0000000..7ea849e --- /dev/null +++ b/lib/Exception/DeleteAnalyticsModuleNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsModulePaymentRequiredException.php b/lib/Exception/DeleteAnalyticsModulePaymentRequiredException.php new file mode 100644 index 0000000..0457169 --- /dev/null +++ b/lib/Exception/DeleteAnalyticsModulePaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsReportBadRequestException.php b/lib/Exception/DeleteAnalyticsReportBadRequestException.php new file mode 100644 index 0000000..360c82e --- /dev/null +++ b/lib/Exception/DeleteAnalyticsReportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsReportForbiddenException.php b/lib/Exception/DeleteAnalyticsReportForbiddenException.php new file mode 100644 index 0000000..e81cc7b --- /dev/null +++ b/lib/Exception/DeleteAnalyticsReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsReportInternalServerErrorException.php b/lib/Exception/DeleteAnalyticsReportInternalServerErrorException.php new file mode 100644 index 0000000..0cee514 --- /dev/null +++ b/lib/Exception/DeleteAnalyticsReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsReportNotFoundException.php b/lib/Exception/DeleteAnalyticsReportNotFoundException.php new file mode 100644 index 0000000..c20f8d0 --- /dev/null +++ b/lib/Exception/DeleteAnalyticsReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsReportPaymentRequiredException.php b/lib/Exception/DeleteAnalyticsReportPaymentRequiredException.php new file mode 100644 index 0000000..9975d88 --- /dev/null +++ b/lib/Exception/DeleteAnalyticsReportPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteAnalyticsReportServiceUnavailableException.php b/lib/Exception/DeleteAnalyticsReportServiceUnavailableException.php new file mode 100644 index 0000000..c3562be --- /dev/null +++ b/lib/Exception/DeleteAnalyticsReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCampaignForbiddenException.php b/lib/Exception/DeleteCampaignForbiddenException.php new file mode 100644 index 0000000..a666b68 --- /dev/null +++ b/lib/Exception/DeleteCampaignForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCampaignInternalServerErrorException.php b/lib/Exception/DeleteCampaignInternalServerErrorException.php new file mode 100644 index 0000000..6ff2d05 --- /dev/null +++ b/lib/Exception/DeleteCampaignInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCampaignNotFoundException.php b/lib/Exception/DeleteCampaignNotFoundException.php new file mode 100644 index 0000000..36aa488 --- /dev/null +++ b/lib/Exception/DeleteCampaignNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCampaignPaymentRequiredException.php b/lib/Exception/DeleteCampaignPaymentRequiredException.php new file mode 100644 index 0000000..b350435 --- /dev/null +++ b/lib/Exception/DeleteCampaignPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCampaignServiceUnavailableException.php b/lib/Exception/DeleteCampaignServiceUnavailableException.php new file mode 100644 index 0000000..f6c1807 --- /dev/null +++ b/lib/Exception/DeleteCampaignServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCanvaUserBrandsByLoginBadRequestException.php b/lib/Exception/DeleteCanvaUserBrandsByLoginBadRequestException.php new file mode 100644 index 0000000..6bfac04 --- /dev/null +++ b/lib/Exception/DeleteCanvaUserBrandsByLoginBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCanvaUserBrandsByLoginInternalServerErrorException.php b/lib/Exception/DeleteCanvaUserBrandsByLoginInternalServerErrorException.php new file mode 100644 index 0000000..663a036 --- /dev/null +++ b/lib/Exception/DeleteCanvaUserBrandsByLoginInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteChannelBitlinkBadRequestException.php b/lib/Exception/DeleteChannelBitlinkBadRequestException.php new file mode 100644 index 0000000..c915b16 --- /dev/null +++ b/lib/Exception/DeleteChannelBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteChannelBitlinkInternalServerErrorException.php b/lib/Exception/DeleteChannelBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..4258057 --- /dev/null +++ b/lib/Exception/DeleteChannelBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteChannelBitlinkUnprocessableEntityException.php b/lib/Exception/DeleteChannelBitlinkUnprocessableEntityException.php new file mode 100644 index 0000000..c3caae9 --- /dev/null +++ b/lib/Exception/DeleteChannelBitlinkUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteChannelForbiddenException.php b/lib/Exception/DeleteChannelForbiddenException.php new file mode 100644 index 0000000..092014f --- /dev/null +++ b/lib/Exception/DeleteChannelForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteChannelInternalServerErrorException.php b/lib/Exception/DeleteChannelInternalServerErrorException.php new file mode 100644 index 0000000..94989b1 --- /dev/null +++ b/lib/Exception/DeleteChannelInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteChannelNotFoundException.php b/lib/Exception/DeleteChannelNotFoundException.php new file mode 100644 index 0000000..7af32fc --- /dev/null +++ b/lib/Exception/DeleteChannelNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteChannelPaymentRequiredException.php b/lib/Exception/DeleteChannelPaymentRequiredException.php new file mode 100644 index 0000000..fbc2a18 --- /dev/null +++ b/lib/Exception/DeleteChannelPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteChannelServiceUnavailableException.php b/lib/Exception/DeleteChannelServiceUnavailableException.php new file mode 100644 index 0000000..bba8289 --- /dev/null +++ b/lib/Exception/DeleteChannelServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCustomDomainForbiddenException.php b/lib/Exception/DeleteCustomDomainForbiddenException.php new file mode 100644 index 0000000..98b453d --- /dev/null +++ b/lib/Exception/DeleteCustomDomainForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCustomDomainInternalServerErrorException.php b/lib/Exception/DeleteCustomDomainInternalServerErrorException.php new file mode 100644 index 0000000..f351fd4 --- /dev/null +++ b/lib/Exception/DeleteCustomDomainInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteCustomDomainUnprocessableEntityException.php b/lib/Exception/DeleteCustomDomainUnprocessableEntityException.php new file mode 100644 index 0000000..f461258 --- /dev/null +++ b/lib/Exception/DeleteCustomDomainUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteDeeplinkRuleForbiddenException.php b/lib/Exception/DeleteDeeplinkRuleForbiddenException.php new file mode 100644 index 0000000..5b17e39 --- /dev/null +++ b/lib/Exception/DeleteDeeplinkRuleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteDeeplinkRuleInternalServerErrorException.php b/lib/Exception/DeleteDeeplinkRuleInternalServerErrorException.php new file mode 100644 index 0000000..ad8025a --- /dev/null +++ b/lib/Exception/DeleteDeeplinkRuleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteDeeplinkRuleNotFoundException.php b/lib/Exception/DeleteDeeplinkRuleNotFoundException.php new file mode 100644 index 0000000..8a19f30 --- /dev/null +++ b/lib/Exception/DeleteDeeplinkRuleNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteDeeplinkRulePaymentRequiredException.php b/lib/Exception/DeleteDeeplinkRulePaymentRequiredException.php new file mode 100644 index 0000000..71491f4 --- /dev/null +++ b/lib/Exception/DeleteDeeplinkRulePaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteDeeplinkRuleServiceUnavailableException.php b/lib/Exception/DeleteDeeplinkRuleServiceUnavailableException.php new file mode 100644 index 0000000..cbfd26b --- /dev/null +++ b/lib/Exception/DeleteDeeplinkRuleServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteEmailBadRequestException.php b/lib/Exception/DeleteEmailBadRequestException.php new file mode 100644 index 0000000..8f42614 --- /dev/null +++ b/lib/Exception/DeleteEmailBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteEmailForbiddenException.php b/lib/Exception/DeleteEmailForbiddenException.php new file mode 100644 index 0000000..d157d82 --- /dev/null +++ b/lib/Exception/DeleteEmailForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteEmailInternalServerErrorException.php b/lib/Exception/DeleteEmailInternalServerErrorException.php new file mode 100644 index 0000000..0ff376d --- /dev/null +++ b/lib/Exception/DeleteEmailInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteEmailNotFoundException.php b/lib/Exception/DeleteEmailNotFoundException.php new file mode 100644 index 0000000..98a5ad4 --- /dev/null +++ b/lib/Exception/DeleteEmailNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteEmailServiceUnavailableException.php b/lib/Exception/DeleteEmailServiceUnavailableException.php new file mode 100644 index 0000000..87f2bce --- /dev/null +++ b/lib/Exception/DeleteEmailServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteGroupForbiddenException.php b/lib/Exception/DeleteGroupForbiddenException.php new file mode 100644 index 0000000..df9619b --- /dev/null +++ b/lib/Exception/DeleteGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteGroupInternalServerErrorException.php b/lib/Exception/DeleteGroupInternalServerErrorException.php new file mode 100644 index 0000000..e25e2a7 --- /dev/null +++ b/lib/Exception/DeleteGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteGroupNotFoundException.php b/lib/Exception/DeleteGroupNotFoundException.php new file mode 100644 index 0000000..a5df617 --- /dev/null +++ b/lib/Exception/DeleteGroupNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteGroupServiceUnavailableException.php b/lib/Exception/DeleteGroupServiceUnavailableException.php new file mode 100644 index 0000000..273ecc6 --- /dev/null +++ b/lib/Exception/DeleteGroupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteGroupTooManyRequestsException.php b/lib/Exception/DeleteGroupTooManyRequestsException.php new file mode 100644 index 0000000..e3946c9 --- /dev/null +++ b/lib/Exception/DeleteGroupTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteIntegrationOAuthBadRequestException.php b/lib/Exception/DeleteIntegrationOAuthBadRequestException.php new file mode 100644 index 0000000..88c982e --- /dev/null +++ b/lib/Exception/DeleteIntegrationOAuthBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteIntegrationOAuthForbiddenException.php b/lib/Exception/DeleteIntegrationOAuthForbiddenException.php new file mode 100644 index 0000000..66ed025 --- /dev/null +++ b/lib/Exception/DeleteIntegrationOAuthForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteIntegrationOAuthInternalServerErrorException.php b/lib/Exception/DeleteIntegrationOAuthInternalServerErrorException.php new file mode 100644 index 0000000..f08a86e --- /dev/null +++ b/lib/Exception/DeleteIntegrationOAuthInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteIntegrationOAuthServiceUnavailableException.php b/lib/Exception/DeleteIntegrationOAuthServiceUnavailableException.php new file mode 100644 index 0000000..ecad4c6 --- /dev/null +++ b/lib/Exception/DeleteIntegrationOAuthServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteInvitationForbiddenException.php b/lib/Exception/DeleteInvitationForbiddenException.php new file mode 100644 index 0000000..4228f7f --- /dev/null +++ b/lib/Exception/DeleteInvitationForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteInvitationInternalServerErrorException.php b/lib/Exception/DeleteInvitationInternalServerErrorException.php new file mode 100644 index 0000000..a439b76 --- /dev/null +++ b/lib/Exception/DeleteInvitationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteInvitationNotFoundException.php b/lib/Exception/DeleteInvitationNotFoundException.php new file mode 100644 index 0000000..f880d9a --- /dev/null +++ b/lib/Exception/DeleteInvitationNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteInvitationTooManyRequestsException.php b/lib/Exception/DeleteInvitationTooManyRequestsException.php new file mode 100644 index 0000000..d381811 --- /dev/null +++ b/lib/Exception/DeleteInvitationTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadBadRequestException.php b/lib/Exception/DeleteLaunchpadBadRequestException.php new file mode 100644 index 0000000..5ce4f0a --- /dev/null +++ b/lib/Exception/DeleteLaunchpadBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadButtonForbiddenException.php b/lib/Exception/DeleteLaunchpadButtonForbiddenException.php new file mode 100644 index 0000000..646d3bb --- /dev/null +++ b/lib/Exception/DeleteLaunchpadButtonForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadButtonInternalServerErrorException.php b/lib/Exception/DeleteLaunchpadButtonInternalServerErrorException.php new file mode 100644 index 0000000..3cca22b --- /dev/null +++ b/lib/Exception/DeleteLaunchpadButtonInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadButtonNotFoundException.php b/lib/Exception/DeleteLaunchpadButtonNotFoundException.php new file mode 100644 index 0000000..86165e4 --- /dev/null +++ b/lib/Exception/DeleteLaunchpadButtonNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadButtonServiceUnavailableException.php b/lib/Exception/DeleteLaunchpadButtonServiceUnavailableException.php new file mode 100644 index 0000000..072799d --- /dev/null +++ b/lib/Exception/DeleteLaunchpadButtonServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadForbiddenException.php b/lib/Exception/DeleteLaunchpadForbiddenException.php new file mode 100644 index 0000000..9b92cd3 --- /dev/null +++ b/lib/Exception/DeleteLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadImageByImageUseForbiddenException.php b/lib/Exception/DeleteLaunchpadImageByImageUseForbiddenException.php new file mode 100644 index 0000000..3827a55 --- /dev/null +++ b/lib/Exception/DeleteLaunchpadImageByImageUseForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadImageByImageUseInternalServerErrorException.php b/lib/Exception/DeleteLaunchpadImageByImageUseInternalServerErrorException.php new file mode 100644 index 0000000..a345ed1 --- /dev/null +++ b/lib/Exception/DeleteLaunchpadImageByImageUseInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadImageByImageUseNotFoundException.php b/lib/Exception/DeleteLaunchpadImageByImageUseNotFoundException.php new file mode 100644 index 0000000..dfe1833 --- /dev/null +++ b/lib/Exception/DeleteLaunchpadImageByImageUseNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadImageByImageUseServiceUnavailableException.php b/lib/Exception/DeleteLaunchpadImageByImageUseServiceUnavailableException.php new file mode 100644 index 0000000..4259d1e --- /dev/null +++ b/lib/Exception/DeleteLaunchpadImageByImageUseServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadInternalServerErrorException.php b/lib/Exception/DeleteLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..01a2a35 --- /dev/null +++ b/lib/Exception/DeleteLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadNotFoundException.php b/lib/Exception/DeleteLaunchpadNotFoundException.php new file mode 100644 index 0000000..8a591d0 --- /dev/null +++ b/lib/Exception/DeleteLaunchpadNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteLaunchpadServiceUnavailableException.php b/lib/Exception/DeleteLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..1ed2772 --- /dev/null +++ b/lib/Exception/DeleteLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteQRCodeTemplateForbiddenException.php b/lib/Exception/DeleteQRCodeTemplateForbiddenException.php new file mode 100644 index 0000000..1a17899 --- /dev/null +++ b/lib/Exception/DeleteQRCodeTemplateForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteQRCodeTemplateInternalServerErrorException.php b/lib/Exception/DeleteQRCodeTemplateInternalServerErrorException.php new file mode 100644 index 0000000..cd7c81c --- /dev/null +++ b/lib/Exception/DeleteQRCodeTemplateInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteQRCodeTemplateNotFoundException.php b/lib/Exception/DeleteQRCodeTemplateNotFoundException.php new file mode 100644 index 0000000..c25247b --- /dev/null +++ b/lib/Exception/DeleteQRCodeTemplateNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteQRCodeTemplateServiceUnavailableException.php b/lib/Exception/DeleteQRCodeTemplateServiceUnavailableException.php new file mode 100644 index 0000000..cdadd16 --- /dev/null +++ b/lib/Exception/DeleteQRCodeTemplateServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteBadRequestException.php b/lib/Exception/DeleteSiteBadRequestException.php new file mode 100644 index 0000000..dcc96bb --- /dev/null +++ b/lib/Exception/DeleteSiteBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteButtonBadRequestException.php b/lib/Exception/DeleteSiteButtonBadRequestException.php new file mode 100644 index 0000000..e231dce --- /dev/null +++ b/lib/Exception/DeleteSiteButtonBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteButtonForbiddenException.php b/lib/Exception/DeleteSiteButtonForbiddenException.php new file mode 100644 index 0000000..92400c9 --- /dev/null +++ b/lib/Exception/DeleteSiteButtonForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteButtonInternalServerErrorException.php b/lib/Exception/DeleteSiteButtonInternalServerErrorException.php new file mode 100644 index 0000000..4e9a65a --- /dev/null +++ b/lib/Exception/DeleteSiteButtonInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteButtonNotFoundException.php b/lib/Exception/DeleteSiteButtonNotFoundException.php new file mode 100644 index 0000000..5a47a63 --- /dev/null +++ b/lib/Exception/DeleteSiteButtonNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteButtonServiceUnavailableException.php b/lib/Exception/DeleteSiteButtonServiceUnavailableException.php new file mode 100644 index 0000000..9e60721 --- /dev/null +++ b/lib/Exception/DeleteSiteButtonServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteForbiddenException.php b/lib/Exception/DeleteSiteForbiddenException.php new file mode 100644 index 0000000..69c2018 --- /dev/null +++ b/lib/Exception/DeleteSiteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteInternalServerErrorException.php b/lib/Exception/DeleteSiteInternalServerErrorException.php new file mode 100644 index 0000000..a73d0de --- /dev/null +++ b/lib/Exception/DeleteSiteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteNotFoundException.php b/lib/Exception/DeleteSiteNotFoundException.php new file mode 100644 index 0000000..007fb22 --- /dev/null +++ b/lib/Exception/DeleteSiteNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteSiteServiceUnavailableException.php b/lib/Exception/DeleteSiteServiceUnavailableException.php new file mode 100644 index 0000000..665d03e --- /dev/null +++ b/lib/Exception/DeleteSiteServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteUserBadRequestException.php b/lib/Exception/DeleteUserBadRequestException.php new file mode 100644 index 0000000..a0a6b06 --- /dev/null +++ b/lib/Exception/DeleteUserBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteUserForbiddenException.php b/lib/Exception/DeleteUserForbiddenException.php new file mode 100644 index 0000000..505a0c8 --- /dev/null +++ b/lib/Exception/DeleteUserForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteUserInternalServerErrorException.php b/lib/Exception/DeleteUserInternalServerErrorException.php new file mode 100644 index 0000000..0d40369 --- /dev/null +++ b/lib/Exception/DeleteUserInternalServerErrorException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteUserWithRoleBadRequestException.php b/lib/Exception/DeleteUserWithRoleBadRequestException.php new file mode 100644 index 0000000..ad95ce3 --- /dev/null +++ b/lib/Exception/DeleteUserWithRoleBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteUserWithRoleForbiddenException.php b/lib/Exception/DeleteUserWithRoleForbiddenException.php new file mode 100644 index 0000000..7df80c4 --- /dev/null +++ b/lib/Exception/DeleteUserWithRoleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteUserWithRoleInternalServerErrorException.php b/lib/Exception/DeleteUserWithRoleInternalServerErrorException.php new file mode 100644 index 0000000..a9e1d4e --- /dev/null +++ b/lib/Exception/DeleteUserWithRoleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteUserWithRoleServiceUnavailableException.php b/lib/Exception/DeleteUserWithRoleServiceUnavailableException.php new file mode 100644 index 0000000..ac206e0 --- /dev/null +++ b/lib/Exception/DeleteUserWithRoleServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DeleteUserWithRoleUnprocessableEntityException.php b/lib/Exception/DeleteUserWithRoleUnprocessableEntityException.php new file mode 100644 index 0000000..d809659 --- /dev/null +++ b/lib/Exception/DeleteUserWithRoleUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/Disable2FABadRequestException.php b/lib/Exception/Disable2FABadRequestException.php new file mode 100644 index 0000000..425e8db --- /dev/null +++ b/lib/Exception/Disable2FABadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/Disable2FAForbiddenException.php b/lib/Exception/Disable2FAForbiddenException.php new file mode 100644 index 0000000..6ba4e5c --- /dev/null +++ b/lib/Exception/Disable2FAForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/Disable2FAInternalServerErrorException.php b/lib/Exception/Disable2FAInternalServerErrorException.php new file mode 100644 index 0000000..21098f6 --- /dev/null +++ b/lib/Exception/Disable2FAInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/Disable2FANotFoundException.php b/lib/Exception/Disable2FANotFoundException.php new file mode 100644 index 0000000..49c24ee --- /dev/null +++ b/lib/Exception/Disable2FANotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/Disable2FAServiceUnavailableException.php b/lib/Exception/Disable2FAServiceUnavailableException.php new file mode 100644 index 0000000..f68bb22 --- /dev/null +++ b/lib/Exception/Disable2FAServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/Disable2FAUnauthorizedException.php b/lib/Exception/Disable2FAUnauthorizedException.php new file mode 100644 index 0000000..72b5704 --- /dev/null +++ b/lib/Exception/Disable2FAUnauthorizedException.php @@ -0,0 +1,40 @@ +unauthorized = $unauthorized; + $this->response = $response; + } + + public function getUnauthorized(): \Bitly\Model\Unauthorized + { + return $this->unauthorized; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/Disable2FAUnprocessableEntityException.php b/lib/Exception/Disable2FAUnprocessableEntityException.php new file mode 100644 index 0000000..1cff72a --- /dev/null +++ b/lib/Exception/Disable2FAUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardDraftLaunchpadBadRequestException.php b/lib/Exception/DiscardDraftLaunchpadBadRequestException.php new file mode 100644 index 0000000..b0546d8 --- /dev/null +++ b/lib/Exception/DiscardDraftLaunchpadBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardDraftLaunchpadForbiddenException.php b/lib/Exception/DiscardDraftLaunchpadForbiddenException.php new file mode 100644 index 0000000..e996689 --- /dev/null +++ b/lib/Exception/DiscardDraftLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardDraftLaunchpadInternalServerErrorException.php b/lib/Exception/DiscardDraftLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..d7141f7 --- /dev/null +++ b/lib/Exception/DiscardDraftLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardDraftLaunchpadServiceUnavailableException.php b/lib/Exception/DiscardDraftLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..f8d2320 --- /dev/null +++ b/lib/Exception/DiscardDraftLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardSiteDraftBadRequestException.php b/lib/Exception/DiscardSiteDraftBadRequestException.php new file mode 100644 index 0000000..922aaf9 --- /dev/null +++ b/lib/Exception/DiscardSiteDraftBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardSiteDraftForbiddenException.php b/lib/Exception/DiscardSiteDraftForbiddenException.php new file mode 100644 index 0000000..bc968a7 --- /dev/null +++ b/lib/Exception/DiscardSiteDraftForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardSiteDraftInternalServerErrorException.php b/lib/Exception/DiscardSiteDraftInternalServerErrorException.php new file mode 100644 index 0000000..9dd4a16 --- /dev/null +++ b/lib/Exception/DiscardSiteDraftInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardSiteDraftNotFoundException.php b/lib/Exception/DiscardSiteDraftNotFoundException.php new file mode 100644 index 0000000..650e964 --- /dev/null +++ b/lib/Exception/DiscardSiteDraftNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DiscardSiteDraftUnprocessableEntityException.php b/lib/Exception/DiscardSiteDraftUnprocessableEntityException.php new file mode 100644 index 0000000..aee076d --- /dev/null +++ b/lib/Exception/DiscardSiteDraftUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DowngradeOrganizationInternalServerErrorException.php b/lib/Exception/DowngradeOrganizationInternalServerErrorException.php new file mode 100644 index 0000000..46b927b --- /dev/null +++ b/lib/Exception/DowngradeOrganizationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DowngradeOrganizationUnprocessableEntityException.php b/lib/Exception/DowngradeOrganizationUnprocessableEntityException.php new file mode 100644 index 0000000..19776c7 --- /dev/null +++ b/lib/Exception/DowngradeOrganizationUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DuplicateAnalyticsReportBadRequestException.php b/lib/Exception/DuplicateAnalyticsReportBadRequestException.php new file mode 100644 index 0000000..23323f7 --- /dev/null +++ b/lib/Exception/DuplicateAnalyticsReportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DuplicateAnalyticsReportForbiddenException.php b/lib/Exception/DuplicateAnalyticsReportForbiddenException.php new file mode 100644 index 0000000..d790f89 --- /dev/null +++ b/lib/Exception/DuplicateAnalyticsReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DuplicateAnalyticsReportInternalServerErrorException.php b/lib/Exception/DuplicateAnalyticsReportInternalServerErrorException.php new file mode 100644 index 0000000..1cb0c83 --- /dev/null +++ b/lib/Exception/DuplicateAnalyticsReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DuplicateAnalyticsReportNotFoundException.php b/lib/Exception/DuplicateAnalyticsReportNotFoundException.php new file mode 100644 index 0000000..cbc9330 --- /dev/null +++ b/lib/Exception/DuplicateAnalyticsReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/DuplicateAnalyticsReportServiceUnavailableException.php b/lib/Exception/DuplicateAnalyticsReportServiceUnavailableException.php new file mode 100644 index 0000000..db1edd7 --- /dev/null +++ b/lib/Exception/DuplicateAnalyticsReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EditCustomDomainForbiddenException.php b/lib/Exception/EditCustomDomainForbiddenException.php new file mode 100644 index 0000000..b448e13 --- /dev/null +++ b/lib/Exception/EditCustomDomainForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EditCustomDomainInternalServerErrorException.php b/lib/Exception/EditCustomDomainInternalServerErrorException.php new file mode 100644 index 0000000..65376ee --- /dev/null +++ b/lib/Exception/EditCustomDomainInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EditQRCodePreviewBadRequestException.php b/lib/Exception/EditQRCodePreviewBadRequestException.php new file mode 100644 index 0000000..b1873a3 --- /dev/null +++ b/lib/Exception/EditQRCodePreviewBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EditQRCodePreviewForbiddenException.php b/lib/Exception/EditQRCodePreviewForbiddenException.php new file mode 100644 index 0000000..f2e58a9 --- /dev/null +++ b/lib/Exception/EditQRCodePreviewForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EditQRCodePreviewGoneException.php b/lib/Exception/EditQRCodePreviewGoneException.php new file mode 100644 index 0000000..688c62a --- /dev/null +++ b/lib/Exception/EditQRCodePreviewGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EditQRCodePreviewInternalServerErrorException.php b/lib/Exception/EditQRCodePreviewInternalServerErrorException.php new file mode 100644 index 0000000..a1076ab --- /dev/null +++ b/lib/Exception/EditQRCodePreviewInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EditQRCodePreviewNotFoundException.php b/lib/Exception/EditQRCodePreviewNotFoundException.php new file mode 100644 index 0000000..1069cde --- /dev/null +++ b/lib/Exception/EditQRCodePreviewNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EditQRCodePreviewPaymentRequiredException.php b/lib/Exception/EditQRCodePreviewPaymentRequiredException.php new file mode 100644 index 0000000..53bd7f8 --- /dev/null +++ b/lib/Exception/EditQRCodePreviewPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EvaluateInterventionBadRequestException.php b/lib/Exception/EvaluateInterventionBadRequestException.php new file mode 100644 index 0000000..338c76c --- /dev/null +++ b/lib/Exception/EvaluateInterventionBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EvaluateInterventionForbiddenException.php b/lib/Exception/EvaluateInterventionForbiddenException.php new file mode 100644 index 0000000..1e8b99b --- /dev/null +++ b/lib/Exception/EvaluateInterventionForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EvaluateInterventionInternalServerErrorException.php b/lib/Exception/EvaluateInterventionInternalServerErrorException.php new file mode 100644 index 0000000..9611902 --- /dev/null +++ b/lib/Exception/EvaluateInterventionInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EvaluateInterventionServiceUnavailableException.php b/lib/Exception/EvaluateInterventionServiceUnavailableException.php new file mode 100644 index 0000000..16ca60e --- /dev/null +++ b/lib/Exception/EvaluateInterventionServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/EvaluateInterventionUnprocessableEntityException.php b/lib/Exception/EvaluateInterventionUnprocessableEntityException.php new file mode 100644 index 0000000..f8b42dd --- /dev/null +++ b/lib/Exception/EvaluateInterventionUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExperimentDecideBadRequestException.php b/lib/Exception/ExperimentDecideBadRequestException.php new file mode 100644 index 0000000..3b391a2 --- /dev/null +++ b/lib/Exception/ExperimentDecideBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExperimentDecideForbiddenException.php b/lib/Exception/ExperimentDecideForbiddenException.php new file mode 100644 index 0000000..55ecfba --- /dev/null +++ b/lib/Exception/ExperimentDecideForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExperimentDecideInternalServerErrorException.php b/lib/Exception/ExperimentDecideInternalServerErrorException.php new file mode 100644 index 0000000..8fb4c63 --- /dev/null +++ b/lib/Exception/ExperimentDecideInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExperimentDecideUnprocessableEntityException.php b/lib/Exception/ExperimentDecideUnprocessableEntityException.php new file mode 100644 index 0000000..361979e --- /dev/null +++ b/lib/Exception/ExperimentDecideUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExperimentTrackForbiddenException.php b/lib/Exception/ExperimentTrackForbiddenException.php new file mode 100644 index 0000000..93096de --- /dev/null +++ b/lib/Exception/ExperimentTrackForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExperimentTrackInternalServerErrorException.php b/lib/Exception/ExperimentTrackInternalServerErrorException.php new file mode 100644 index 0000000..e52c4de --- /dev/null +++ b/lib/Exception/ExperimentTrackInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExperimentTrackUnprocessableEntityException.php b/lib/Exception/ExperimentTrackUnprocessableEntityException.php new file mode 100644 index 0000000..e52aaa6 --- /dev/null +++ b/lib/Exception/ExperimentTrackUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExpireOAuthAuthorizationBadRequestException.php b/lib/Exception/ExpireOAuthAuthorizationBadRequestException.php new file mode 100644 index 0000000..7df1d37 --- /dev/null +++ b/lib/Exception/ExpireOAuthAuthorizationBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExpireOAuthAuthorizationInternalServerErrorException.php b/lib/Exception/ExpireOAuthAuthorizationInternalServerErrorException.php new file mode 100644 index 0000000..799bc96 --- /dev/null +++ b/lib/Exception/ExpireOAuthAuthorizationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExpireOAuthAuthorizationNotFoundException.php b/lib/Exception/ExpireOAuthAuthorizationNotFoundException.php new file mode 100644 index 0000000..0d6d65a --- /dev/null +++ b/lib/Exception/ExpireOAuthAuthorizationNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ExpireOAuthAuthorizationServiceUnavailableException.php b/lib/Exception/ExpireOAuthAuthorizationServiceUnavailableException.php new file mode 100644 index 0000000..d6d3333 --- /dev/null +++ b/lib/Exception/ExpireOAuthAuthorizationServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FetchCompDomainPurchaseForbiddenException.php b/lib/Exception/FetchCompDomainPurchaseForbiddenException.php new file mode 100644 index 0000000..e6d83aa --- /dev/null +++ b/lib/Exception/FetchCompDomainPurchaseForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FetchCompDomainPurchaseGatewayTimeoutException.php b/lib/Exception/FetchCompDomainPurchaseGatewayTimeoutException.php new file mode 100644 index 0000000..f8defd0 --- /dev/null +++ b/lib/Exception/FetchCompDomainPurchaseGatewayTimeoutException.php @@ -0,0 +1,40 @@ +timeout = $timeout; + $this->response = $response; + } + + public function getTimeout(): \Bitly\Model\Timeout + { + return $this->timeout; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FetchCompDomainPurchaseInternalServerErrorException.php b/lib/Exception/FetchCompDomainPurchaseInternalServerErrorException.php new file mode 100644 index 0000000..8f5ff90 --- /dev/null +++ b/lib/Exception/FetchCompDomainPurchaseInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FetchDomainAgreementsInternalServerErrorException.php b/lib/Exception/FetchDomainAgreementsInternalServerErrorException.php new file mode 100644 index 0000000..daecfc2 --- /dev/null +++ b/lib/Exception/FetchDomainAgreementsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FetchDomainStatusForbiddenException.php b/lib/Exception/FetchDomainStatusForbiddenException.php new file mode 100644 index 0000000..f65cdce --- /dev/null +++ b/lib/Exception/FetchDomainStatusForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FetchDomainStatusGatewayTimeoutException.php b/lib/Exception/FetchDomainStatusGatewayTimeoutException.php new file mode 100644 index 0000000..597c9ec --- /dev/null +++ b/lib/Exception/FetchDomainStatusGatewayTimeoutException.php @@ -0,0 +1,40 @@ +timeout = $timeout; + $this->response = $response; + } + + public function getTimeout(): \Bitly\Model\Timeout + { + return $this->timeout; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FetchDomainStatusInternalServerErrorException.php b/lib/Exception/FetchDomainStatusInternalServerErrorException.php new file mode 100644 index 0000000..761ce5f --- /dev/null +++ b/lib/Exception/FetchDomainStatusInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ForgetUserForbiddenException.php b/lib/Exception/ForgetUserForbiddenException.php new file mode 100644 index 0000000..53be5d5 --- /dev/null +++ b/lib/Exception/ForgetUserForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ForgetUserInternalServerErrorException.php b/lib/Exception/ForgetUserInternalServerErrorException.php new file mode 100644 index 0000000..8269d60 --- /dev/null +++ b/lib/Exception/ForgetUserInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ForgetUserServiceUnavailableException.php b/lib/Exception/ForgetUserServiceUnavailableException.php new file mode 100644 index 0000000..bf13ec0 --- /dev/null +++ b/lib/Exception/ForgetUserServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FormCaptureBadRequestException.php b/lib/Exception/FormCaptureBadRequestException.php new file mode 100644 index 0000000..44a9509 --- /dev/null +++ b/lib/Exception/FormCaptureBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FormCaptureForbiddenException.php b/lib/Exception/FormCaptureForbiddenException.php new file mode 100644 index 0000000..07faf4d --- /dev/null +++ b/lib/Exception/FormCaptureForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FormCaptureInternalServerErrorException.php b/lib/Exception/FormCaptureInternalServerErrorException.php new file mode 100644 index 0000000..c0cc44f --- /dev/null +++ b/lib/Exception/FormCaptureInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FormCaptureServiceUnavailableException.php b/lib/Exception/FormCaptureServiceUnavailableException.php new file mode 100644 index 0000000..a6b972c --- /dev/null +++ b/lib/Exception/FormCaptureServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/FormCaptureUnprocessableEntityException.php b/lib/Exception/FormCaptureUnprocessableEntityException.php new file mode 100644 index 0000000..6fb0df8 --- /dev/null +++ b/lib/Exception/FormCaptureUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GatewayTimeoutException.php b/lib/Exception/GatewayTimeoutException.php new file mode 100644 index 0000000..20940e0 --- /dev/null +++ b/lib/Exception/GatewayTimeoutException.php @@ -0,0 +1,19 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GenerateBillingSignatureInternalServerErrorException.php b/lib/Exception/GenerateBillingSignatureInternalServerErrorException.php new file mode 100644 index 0000000..3f7539b --- /dev/null +++ b/lib/Exception/GenerateBillingSignatureInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAccessFeaturesForbiddenException.php b/lib/Exception/GetAccessFeaturesForbiddenException.php new file mode 100644 index 0000000..e3f5cf9 --- /dev/null +++ b/lib/Exception/GetAccessFeaturesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAccessFeaturesInternalServerErrorException.php b/lib/Exception/GetAccessFeaturesInternalServerErrorException.php new file mode 100644 index 0000000..435fb21 --- /dev/null +++ b/lib/Exception/GetAccessFeaturesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByCityBadRequestException.php b/lib/Exception/GetAggregateButtonClicksByCityBadRequestException.php new file mode 100644 index 0000000..610300d --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByCityForbiddenException.php b/lib/Exception/GetAggregateButtonClicksByCityForbiddenException.php new file mode 100644 index 0000000..e740cc3 --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByCityInternalServerErrorException.php b/lib/Exception/GetAggregateButtonClicksByCityInternalServerErrorException.php new file mode 100644 index 0000000..dfda494 --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByCityServiceUnavailableException.php b/lib/Exception/GetAggregateButtonClicksByCityServiceUnavailableException.php new file mode 100644 index 0000000..335f41d --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByCountryBadRequestException.php b/lib/Exception/GetAggregateButtonClicksByCountryBadRequestException.php new file mode 100644 index 0000000..f91ac22 --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByCountryForbiddenException.php b/lib/Exception/GetAggregateButtonClicksByCountryForbiddenException.php new file mode 100644 index 0000000..dbc4f2d --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByCountryInternalServerErrorException.php b/lib/Exception/GetAggregateButtonClicksByCountryInternalServerErrorException.php new file mode 100644 index 0000000..be454c3 --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByCountryServiceUnavailableException.php b/lib/Exception/GetAggregateButtonClicksByCountryServiceUnavailableException.php new file mode 100644 index 0000000..efe0cf7 --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByDeviceBadRequestException.php b/lib/Exception/GetAggregateButtonClicksByDeviceBadRequestException.php new file mode 100644 index 0000000..771acde --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByDeviceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByDeviceForbiddenException.php b/lib/Exception/GetAggregateButtonClicksByDeviceForbiddenException.php new file mode 100644 index 0000000..d65a7e2 --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByDeviceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByDeviceInternalServerErrorException.php b/lib/Exception/GetAggregateButtonClicksByDeviceInternalServerErrorException.php new file mode 100644 index 0000000..bf8c1ed --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByDeviceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksByDeviceServiceUnavailableException.php b/lib/Exception/GetAggregateButtonClicksByDeviceServiceUnavailableException.php new file mode 100644 index 0000000..3f3aa0b --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksByDeviceServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksOverTimeBadRequestException.php b/lib/Exception/GetAggregateButtonClicksOverTimeBadRequestException.php new file mode 100644 index 0000000..cbe96c1 --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksOverTimeForbiddenException.php b/lib/Exception/GetAggregateButtonClicksOverTimeForbiddenException.php new file mode 100644 index 0000000..8a71df6 --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksOverTimeInternalServerErrorException.php b/lib/Exception/GetAggregateButtonClicksOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..3dda00a --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateButtonClicksOverTimeServiceUnavailableException.php b/lib/Exception/GetAggregateButtonClicksOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..a8153bb --- /dev/null +++ b/lib/Exception/GetAggregateButtonClicksOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansByCityBadRequestException.php b/lib/Exception/GetAggregateCodeScansByCityBadRequestException.php new file mode 100644 index 0000000..a85a55f --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansByCityForbiddenException.php b/lib/Exception/GetAggregateCodeScansByCityForbiddenException.php new file mode 100644 index 0000000..941180b --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansByCityInternalServerErrorException.php b/lib/Exception/GetAggregateCodeScansByCityInternalServerErrorException.php new file mode 100644 index 0000000..ab05d56 --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansByCityServiceUnavailableException.php b/lib/Exception/GetAggregateCodeScansByCityServiceUnavailableException.php new file mode 100644 index 0000000..1af3de4 --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansByCountryBadRequestException.php b/lib/Exception/GetAggregateCodeScansByCountryBadRequestException.php new file mode 100644 index 0000000..91068b3 --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansByCountryForbiddenException.php b/lib/Exception/GetAggregateCodeScansByCountryForbiddenException.php new file mode 100644 index 0000000..511aa2a --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansByCountryInternalServerErrorException.php b/lib/Exception/GetAggregateCodeScansByCountryInternalServerErrorException.php new file mode 100644 index 0000000..2d67a10 --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansByCountryServiceUnavailableException.php b/lib/Exception/GetAggregateCodeScansByCountryServiceUnavailableException.php new file mode 100644 index 0000000..437b037 --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansOverTimeBadRequestException.php b/lib/Exception/GetAggregateCodeScansOverTimeBadRequestException.php new file mode 100644 index 0000000..211af6b --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansOverTimeForbiddenException.php b/lib/Exception/GetAggregateCodeScansOverTimeForbiddenException.php new file mode 100644 index 0000000..ddac99a --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansOverTimeInternalServerErrorException.php b/lib/Exception/GetAggregateCodeScansOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..3152c0a --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateCodeScansOverTimeServiceUnavailableException.php b/lib/Exception/GetAggregateCodeScansOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..bd787dd --- /dev/null +++ b/lib/Exception/GetAggregateCodeScansOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeBadRequestException.php b/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeBadRequestException.php new file mode 100644 index 0000000..280b05d --- /dev/null +++ b/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeForbiddenException.php b/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeForbiddenException.php new file mode 100644 index 0000000..1aeb9a7 --- /dev/null +++ b/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php b/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..08f6ff6 --- /dev/null +++ b/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php b/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..bb83a80 --- /dev/null +++ b/lib/Exception/GetAggregateDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksBadRequestException.php b/lib/Exception/GetAggregateEngagementsForBitlinksBadRequestException.php new file mode 100644 index 0000000..f4b949e --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetBadRequestException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetBadRequestException.php new file mode 100644 index 0000000..5481d79 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetForbiddenException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetForbiddenException.php new file mode 100644 index 0000000..9bf73bd --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetGoneException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetGoneException.php new file mode 100644 index 0000000..58639ef --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetInternalServerErrorException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetInternalServerErrorException.php new file mode 100644 index 0000000..c710a8b --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetNotFoundException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetNotFoundException.php new file mode 100644 index 0000000..9f2c6d5 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetPaymentRequiredException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetPaymentRequiredException.php new file mode 100644 index 0000000..d8a2b13 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetServiceUnavailableException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetServiceUnavailableException.php new file mode 100644 index 0000000..6da9a9e --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByCitiesFacetServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByFacetBadRequestException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetBadRequestException.php new file mode 100644 index 0000000..c50a808 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByFacetForbiddenException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetForbiddenException.php new file mode 100644 index 0000000..7e8060a --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByFacetGoneException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetGoneException.php new file mode 100644 index 0000000..5adac62 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByFacetInternalServerErrorException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetInternalServerErrorException.php new file mode 100644 index 0000000..b3ca45f --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByFacetNotFoundException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetNotFoundException.php new file mode 100644 index 0000000..2d79540 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByFacetPaymentRequiredException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetPaymentRequiredException.php new file mode 100644 index 0000000..21ff622 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksByFacetServiceUnavailableException.php b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetServiceUnavailableException.php new file mode 100644 index 0000000..2db5f4d --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksByFacetServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksForbiddenException.php b/lib/Exception/GetAggregateEngagementsForBitlinksForbiddenException.php new file mode 100644 index 0000000..b910959 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksGoneException.php b/lib/Exception/GetAggregateEngagementsForBitlinksGoneException.php new file mode 100644 index 0000000..699e2f8 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksInternalServerErrorException.php b/lib/Exception/GetAggregateEngagementsForBitlinksInternalServerErrorException.php new file mode 100644 index 0000000..a8c36e8 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksNotFoundException.php b/lib/Exception/GetAggregateEngagementsForBitlinksNotFoundException.php new file mode 100644 index 0000000..c1b976c --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksPaymentRequiredException.php b/lib/Exception/GetAggregateEngagementsForBitlinksPaymentRequiredException.php new file mode 100644 index 0000000..ed279d8 --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateEngagementsForBitlinksServiceUnavailableException.php b/lib/Exception/GetAggregateEngagementsForBitlinksServiceUnavailableException.php new file mode 100644 index 0000000..1119c6c --- /dev/null +++ b/lib/Exception/GetAggregateEngagementsForBitlinksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByCityBadRequestException.php b/lib/Exception/GetAggregateLinkClicksByCityBadRequestException.php new file mode 100644 index 0000000..8c167b5 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByCityForbiddenException.php b/lib/Exception/GetAggregateLinkClicksByCityForbiddenException.php new file mode 100644 index 0000000..b76fae5 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByCityInternalServerErrorException.php b/lib/Exception/GetAggregateLinkClicksByCityInternalServerErrorException.php new file mode 100644 index 0000000..2122a9a --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByCityServiceUnavailableException.php b/lib/Exception/GetAggregateLinkClicksByCityServiceUnavailableException.php new file mode 100644 index 0000000..36da6e1 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByCountryBadRequestException.php b/lib/Exception/GetAggregateLinkClicksByCountryBadRequestException.php new file mode 100644 index 0000000..8fbe2f6 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByCountryForbiddenException.php b/lib/Exception/GetAggregateLinkClicksByCountryForbiddenException.php new file mode 100644 index 0000000..b308f90 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByCountryInternalServerErrorException.php b/lib/Exception/GetAggregateLinkClicksByCountryInternalServerErrorException.php new file mode 100644 index 0000000..575eead --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByCountryServiceUnavailableException.php b/lib/Exception/GetAggregateLinkClicksByCountryServiceUnavailableException.php new file mode 100644 index 0000000..6791aa2 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByDeviceBadRequestException.php b/lib/Exception/GetAggregateLinkClicksByDeviceBadRequestException.php new file mode 100644 index 0000000..b71fd51 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByDeviceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByDeviceForbiddenException.php b/lib/Exception/GetAggregateLinkClicksByDeviceForbiddenException.php new file mode 100644 index 0000000..4e88860 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByDeviceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByDeviceInternalServerErrorException.php b/lib/Exception/GetAggregateLinkClicksByDeviceInternalServerErrorException.php new file mode 100644 index 0000000..606b309 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByDeviceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByDeviceServiceUnavailableException.php b/lib/Exception/GetAggregateLinkClicksByDeviceServiceUnavailableException.php new file mode 100644 index 0000000..0a94e00 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByDeviceServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByReferrerBadRequestException.php b/lib/Exception/GetAggregateLinkClicksByReferrerBadRequestException.php new file mode 100644 index 0000000..4c8505a --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByReferrerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByReferrerForbiddenException.php b/lib/Exception/GetAggregateLinkClicksByReferrerForbiddenException.php new file mode 100644 index 0000000..6e33298 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByReferrerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByReferrerInternalServerErrorException.php b/lib/Exception/GetAggregateLinkClicksByReferrerInternalServerErrorException.php new file mode 100644 index 0000000..9f0b632 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByReferrerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksByReferrerServiceUnavailableException.php b/lib/Exception/GetAggregateLinkClicksByReferrerServiceUnavailableException.php new file mode 100644 index 0000000..d6e033e --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksByReferrerServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksOverTimeBadRequestException.php b/lib/Exception/GetAggregateLinkClicksOverTimeBadRequestException.php new file mode 100644 index 0000000..1cda4d0 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksOverTimeForbiddenException.php b/lib/Exception/GetAggregateLinkClicksOverTimeForbiddenException.php new file mode 100644 index 0000000..08e3326 --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksOverTimeInternalServerErrorException.php b/lib/Exception/GetAggregateLinkClicksOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..048d22b --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateLinkClicksOverTimeServiceUnavailableException.php b/lib/Exception/GetAggregateLinkClicksOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..85d0ddb --- /dev/null +++ b/lib/Exception/GetAggregateLinkClicksOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByCityBadRequestException.php b/lib/Exception/GetAggregatePageViewsByCityBadRequestException.php new file mode 100644 index 0000000..decc160 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByCityForbiddenException.php b/lib/Exception/GetAggregatePageViewsByCityForbiddenException.php new file mode 100644 index 0000000..0632898 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByCityInternalServerErrorException.php b/lib/Exception/GetAggregatePageViewsByCityInternalServerErrorException.php new file mode 100644 index 0000000..feeb517 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByCityServiceUnavailableException.php b/lib/Exception/GetAggregatePageViewsByCityServiceUnavailableException.php new file mode 100644 index 0000000..292e715 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByCountryBadRequestException.php b/lib/Exception/GetAggregatePageViewsByCountryBadRequestException.php new file mode 100644 index 0000000..1f162ec --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByCountryForbiddenException.php b/lib/Exception/GetAggregatePageViewsByCountryForbiddenException.php new file mode 100644 index 0000000..6e3006a --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByCountryInternalServerErrorException.php b/lib/Exception/GetAggregatePageViewsByCountryInternalServerErrorException.php new file mode 100644 index 0000000..425df8a --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByCountryServiceUnavailableException.php b/lib/Exception/GetAggregatePageViewsByCountryServiceUnavailableException.php new file mode 100644 index 0000000..5f850dc --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByDeviceBadRequestException.php b/lib/Exception/GetAggregatePageViewsByDeviceBadRequestException.php new file mode 100644 index 0000000..12e7382 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByDeviceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByDeviceForbiddenException.php b/lib/Exception/GetAggregatePageViewsByDeviceForbiddenException.php new file mode 100644 index 0000000..8926ad6 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByDeviceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByDeviceInternalServerErrorException.php b/lib/Exception/GetAggregatePageViewsByDeviceInternalServerErrorException.php new file mode 100644 index 0000000..9575be1 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByDeviceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByDeviceServiceUnavailableException.php b/lib/Exception/GetAggregatePageViewsByDeviceServiceUnavailableException.php new file mode 100644 index 0000000..1f83598 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByDeviceServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByReferrerBadRequestException.php b/lib/Exception/GetAggregatePageViewsByReferrerBadRequestException.php new file mode 100644 index 0000000..c714049 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByReferrerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByReferrerForbiddenException.php b/lib/Exception/GetAggregatePageViewsByReferrerForbiddenException.php new file mode 100644 index 0000000..e1abd24 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByReferrerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByReferrerInternalServerErrorException.php b/lib/Exception/GetAggregatePageViewsByReferrerInternalServerErrorException.php new file mode 100644 index 0000000..89218da --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByReferrerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsByReferrerServiceUnavailableException.php b/lib/Exception/GetAggregatePageViewsByReferrerServiceUnavailableException.php new file mode 100644 index 0000000..52bd9f8 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsByReferrerServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsOverTimeBadRequestException.php b/lib/Exception/GetAggregatePageViewsOverTimeBadRequestException.php new file mode 100644 index 0000000..e62a406 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsOverTimeForbiddenException.php b/lib/Exception/GetAggregatePageViewsOverTimeForbiddenException.php new file mode 100644 index 0000000..d7a3dca --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsOverTimeInternalServerErrorException.php b/lib/Exception/GetAggregatePageViewsOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..63cf80d --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePageViewsOverTimeServiceUnavailableException.php b/lib/Exception/GetAggregatePageViewsOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..8a2f595 --- /dev/null +++ b/lib/Exception/GetAggregatePageViewsOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePagesOverviewBadRequestException.php b/lib/Exception/GetAggregatePagesOverviewBadRequestException.php new file mode 100644 index 0000000..add7ea9 --- /dev/null +++ b/lib/Exception/GetAggregatePagesOverviewBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePagesOverviewForbiddenException.php b/lib/Exception/GetAggregatePagesOverviewForbiddenException.php new file mode 100644 index 0000000..9ce0309 --- /dev/null +++ b/lib/Exception/GetAggregatePagesOverviewForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePagesOverviewInternalServerErrorException.php b/lib/Exception/GetAggregatePagesOverviewInternalServerErrorException.php new file mode 100644 index 0000000..455c8ff --- /dev/null +++ b/lib/Exception/GetAggregatePagesOverviewInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregatePagesOverviewServiceUnavailableException.php b/lib/Exception/GetAggregatePagesOverviewServiceUnavailableException.php new file mode 100644 index 0000000..0f53e57 --- /dev/null +++ b/lib/Exception/GetAggregatePagesOverviewServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByCityBadRequestException.php b/lib/Exception/GetAggregateSiteViewsByCityBadRequestException.php new file mode 100644 index 0000000..bcf1596 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByCityForbiddenException.php b/lib/Exception/GetAggregateSiteViewsByCityForbiddenException.php new file mode 100644 index 0000000..be2e25a --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByCityInternalServerErrorException.php b/lib/Exception/GetAggregateSiteViewsByCityInternalServerErrorException.php new file mode 100644 index 0000000..22ac711 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByCityServiceUnavailableException.php b/lib/Exception/GetAggregateSiteViewsByCityServiceUnavailableException.php new file mode 100644 index 0000000..2c22742 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByCountryBadRequestException.php b/lib/Exception/GetAggregateSiteViewsByCountryBadRequestException.php new file mode 100644 index 0000000..e894be6 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByCountryForbiddenException.php b/lib/Exception/GetAggregateSiteViewsByCountryForbiddenException.php new file mode 100644 index 0000000..7d81775 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByCountryInternalServerErrorException.php b/lib/Exception/GetAggregateSiteViewsByCountryInternalServerErrorException.php new file mode 100644 index 0000000..d32a0eb --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByCountryServiceUnavailableException.php b/lib/Exception/GetAggregateSiteViewsByCountryServiceUnavailableException.php new file mode 100644 index 0000000..688a440 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByDeviceBadRequestException.php b/lib/Exception/GetAggregateSiteViewsByDeviceBadRequestException.php new file mode 100644 index 0000000..8fc1c89 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByDeviceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByDeviceForbiddenException.php b/lib/Exception/GetAggregateSiteViewsByDeviceForbiddenException.php new file mode 100644 index 0000000..0e63565 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByDeviceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByDeviceInternalServerErrorException.php b/lib/Exception/GetAggregateSiteViewsByDeviceInternalServerErrorException.php new file mode 100644 index 0000000..953d568 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByDeviceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByDeviceServiceUnavailableException.php b/lib/Exception/GetAggregateSiteViewsByDeviceServiceUnavailableException.php new file mode 100644 index 0000000..9ce1bc5 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByDeviceServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByReferrerBadRequestException.php b/lib/Exception/GetAggregateSiteViewsByReferrerBadRequestException.php new file mode 100644 index 0000000..1ec27b9 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByReferrerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByReferrerForbiddenException.php b/lib/Exception/GetAggregateSiteViewsByReferrerForbiddenException.php new file mode 100644 index 0000000..c7f6103 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByReferrerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByReferrerInternalServerErrorException.php b/lib/Exception/GetAggregateSiteViewsByReferrerInternalServerErrorException.php new file mode 100644 index 0000000..5c2486d --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByReferrerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsByReferrerServiceUnavailableException.php b/lib/Exception/GetAggregateSiteViewsByReferrerServiceUnavailableException.php new file mode 100644 index 0000000..daddde5 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsByReferrerServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsOverTimeBadRequestException.php b/lib/Exception/GetAggregateSiteViewsOverTimeBadRequestException.php new file mode 100644 index 0000000..5eade31 --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsOverTimeForbiddenException.php b/lib/Exception/GetAggregateSiteViewsOverTimeForbiddenException.php new file mode 100644 index 0000000..4cda22a --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsOverTimeInternalServerErrorException.php b/lib/Exception/GetAggregateSiteViewsOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..ce2645d --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSiteViewsOverTimeServiceUnavailableException.php b/lib/Exception/GetAggregateSiteViewsOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..3f864dd --- /dev/null +++ b/lib/Exception/GetAggregateSiteViewsOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSitesOverviewBadRequestException.php b/lib/Exception/GetAggregateSitesOverviewBadRequestException.php new file mode 100644 index 0000000..1129491 --- /dev/null +++ b/lib/Exception/GetAggregateSitesOverviewBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSitesOverviewForbiddenException.php b/lib/Exception/GetAggregateSitesOverviewForbiddenException.php new file mode 100644 index 0000000..9056709 --- /dev/null +++ b/lib/Exception/GetAggregateSitesOverviewForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSitesOverviewInternalServerErrorException.php b/lib/Exception/GetAggregateSitesOverviewInternalServerErrorException.php new file mode 100644 index 0000000..bff9a61 --- /dev/null +++ b/lib/Exception/GetAggregateSitesOverviewInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateSitesOverviewServiceUnavailableException.php b/lib/Exception/GetAggregateSitesOverviewServiceUnavailableException.php new file mode 100644 index 0000000..7d5125a --- /dev/null +++ b/lib/Exception/GetAggregateSitesOverviewServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopButtonClicksBadRequestException.php b/lib/Exception/GetAggregateTopButtonClicksBadRequestException.php new file mode 100644 index 0000000..44fc5eb --- /dev/null +++ b/lib/Exception/GetAggregateTopButtonClicksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopButtonClicksForbiddenException.php b/lib/Exception/GetAggregateTopButtonClicksForbiddenException.php new file mode 100644 index 0000000..db7d33f --- /dev/null +++ b/lib/Exception/GetAggregateTopButtonClicksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopButtonClicksInternalServerErrorException.php b/lib/Exception/GetAggregateTopButtonClicksInternalServerErrorException.php new file mode 100644 index 0000000..e05388b --- /dev/null +++ b/lib/Exception/GetAggregateTopButtonClicksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopButtonClicksServiceUnavailableException.php b/lib/Exception/GetAggregateTopButtonClicksServiceUnavailableException.php new file mode 100644 index 0000000..4429ca7 --- /dev/null +++ b/lib/Exception/GetAggregateTopButtonClicksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopCodeScansBadRequestException.php b/lib/Exception/GetAggregateTopCodeScansBadRequestException.php new file mode 100644 index 0000000..4ebfec5 --- /dev/null +++ b/lib/Exception/GetAggregateTopCodeScansBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopCodeScansForbiddenException.php b/lib/Exception/GetAggregateTopCodeScansForbiddenException.php new file mode 100644 index 0000000..3cf7294 --- /dev/null +++ b/lib/Exception/GetAggregateTopCodeScansForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopCodeScansInternalServerErrorException.php b/lib/Exception/GetAggregateTopCodeScansInternalServerErrorException.php new file mode 100644 index 0000000..8ed894c --- /dev/null +++ b/lib/Exception/GetAggregateTopCodeScansInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopCodeScansServiceUnavailableException.php b/lib/Exception/GetAggregateTopCodeScansServiceUnavailableException.php new file mode 100644 index 0000000..cd7ae8a --- /dev/null +++ b/lib/Exception/GetAggregateTopCodeScansServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopLinkClicksBadRequestException.php b/lib/Exception/GetAggregateTopLinkClicksBadRequestException.php new file mode 100644 index 0000000..68eb766 --- /dev/null +++ b/lib/Exception/GetAggregateTopLinkClicksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopLinkClicksForbiddenException.php b/lib/Exception/GetAggregateTopLinkClicksForbiddenException.php new file mode 100644 index 0000000..efbcf13 --- /dev/null +++ b/lib/Exception/GetAggregateTopLinkClicksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopLinkClicksInternalServerErrorException.php b/lib/Exception/GetAggregateTopLinkClicksInternalServerErrorException.php new file mode 100644 index 0000000..9b528f8 --- /dev/null +++ b/lib/Exception/GetAggregateTopLinkClicksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAggregateTopLinkClicksServiceUnavailableException.php b/lib/Exception/GetAggregateTopLinkClicksServiceUnavailableException.php new file mode 100644 index 0000000..e382137 --- /dev/null +++ b/lib/Exception/GetAggregateTopLinkClicksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAllBrandCampaignsBadRequestException.php b/lib/Exception/GetAllBrandCampaignsBadRequestException.php new file mode 100644 index 0000000..d816749 --- /dev/null +++ b/lib/Exception/GetAllBrandCampaignsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAllBrandCampaignsInternalServerErrorException.php b/lib/Exception/GetAllBrandCampaignsInternalServerErrorException.php new file mode 100644 index 0000000..effc2d1 --- /dev/null +++ b/lib/Exception/GetAllBrandCampaignsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAllBrandCampaignsUnprocessableEntityException.php b/lib/Exception/GetAllBrandCampaignsUnprocessableEntityException.php new file mode 100644 index 0000000..69c0f49 --- /dev/null +++ b/lib/Exception/GetAllBrandCampaignsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsModuleForbiddenException.php b/lib/Exception/GetAnalyticsModuleForbiddenException.php new file mode 100644 index 0000000..7be38a1 --- /dev/null +++ b/lib/Exception/GetAnalyticsModuleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsModuleInternalServerErrorException.php b/lib/Exception/GetAnalyticsModuleInternalServerErrorException.php new file mode 100644 index 0000000..8f6d9b0 --- /dev/null +++ b/lib/Exception/GetAnalyticsModuleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsModuleNotFoundException.php b/lib/Exception/GetAnalyticsModuleNotFoundException.php new file mode 100644 index 0000000..3463ec6 --- /dev/null +++ b/lib/Exception/GetAnalyticsModuleNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsModuleServiceUnavailableException.php b/lib/Exception/GetAnalyticsModuleServiceUnavailableException.php new file mode 100644 index 0000000..91466a2 --- /dev/null +++ b/lib/Exception/GetAnalyticsModuleServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportForbiddenException.php b/lib/Exception/GetAnalyticsReportForbiddenException.php new file mode 100644 index 0000000..0267eb6 --- /dev/null +++ b/lib/Exception/GetAnalyticsReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportInternalServerErrorException.php b/lib/Exception/GetAnalyticsReportInternalServerErrorException.php new file mode 100644 index 0000000..940543c --- /dev/null +++ b/lib/Exception/GetAnalyticsReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportNotFoundException.php b/lib/Exception/GetAnalyticsReportNotFoundException.php new file mode 100644 index 0000000..bfa5156 --- /dev/null +++ b/lib/Exception/GetAnalyticsReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportServiceUnavailableException.php b/lib/Exception/GetAnalyticsReportServiceUnavailableException.php new file mode 100644 index 0000000..6f18768 --- /dev/null +++ b/lib/Exception/GetAnalyticsReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsByGroupPaginatedBadRequestException.php b/lib/Exception/GetAnalyticsReportsByGroupPaginatedBadRequestException.php new file mode 100644 index 0000000..08e7b6a --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsByGroupPaginatedBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsByGroupPaginatedForbiddenException.php b/lib/Exception/GetAnalyticsReportsByGroupPaginatedForbiddenException.php new file mode 100644 index 0000000..4952f59 --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsByGroupPaginatedForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsByGroupPaginatedInternalServerErrorException.php b/lib/Exception/GetAnalyticsReportsByGroupPaginatedInternalServerErrorException.php new file mode 100644 index 0000000..5412d2e --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsByGroupPaginatedInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsByGroupPaginatedPaymentRequiredException.php b/lib/Exception/GetAnalyticsReportsByGroupPaginatedPaymentRequiredException.php new file mode 100644 index 0000000..f31c93e --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsByGroupPaginatedPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsByGroupPaginatedServiceUnavailableException.php b/lib/Exception/GetAnalyticsReportsByGroupPaginatedServiceUnavailableException.php new file mode 100644 index 0000000..8f0259b --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsByGroupPaginatedServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsListByGroupBadRequestException.php b/lib/Exception/GetAnalyticsReportsListByGroupBadRequestException.php new file mode 100644 index 0000000..83603e0 --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsListByGroupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsListByGroupForbiddenException.php b/lib/Exception/GetAnalyticsReportsListByGroupForbiddenException.php new file mode 100644 index 0000000..fde081d --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsListByGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsListByGroupInternalServerErrorException.php b/lib/Exception/GetAnalyticsReportsListByGroupInternalServerErrorException.php new file mode 100644 index 0000000..bb864a9 --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsListByGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsListByGroupPaymentRequiredException.php b/lib/Exception/GetAnalyticsReportsListByGroupPaymentRequiredException.php new file mode 100644 index 0000000..f08a8f2 --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsListByGroupPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsReportsListByGroupServiceUnavailableException.php b/lib/Exception/GetAnalyticsReportsListByGroupServiceUnavailableException.php new file mode 100644 index 0000000..ee8ceec --- /dev/null +++ b/lib/Exception/GetAnalyticsReportsListByGroupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsUsageBadRequestException.php b/lib/Exception/GetAnalyticsUsageBadRequestException.php new file mode 100644 index 0000000..934eda5 --- /dev/null +++ b/lib/Exception/GetAnalyticsUsageBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsUsageForbiddenException.php b/lib/Exception/GetAnalyticsUsageForbiddenException.php new file mode 100644 index 0000000..67784d7 --- /dev/null +++ b/lib/Exception/GetAnalyticsUsageForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsUsageInternalServerErrorException.php b/lib/Exception/GetAnalyticsUsageInternalServerErrorException.php new file mode 100644 index 0000000..c39dffb --- /dev/null +++ b/lib/Exception/GetAnalyticsUsageInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAnalyticsUsageServiceUnavailableException.php b/lib/Exception/GetAnalyticsUsageServiceUnavailableException.php new file mode 100644 index 0000000..a4e78f3 --- /dev/null +++ b/lib/Exception/GetAnalyticsUsageServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAppAssociationsForbiddenException.php b/lib/Exception/GetAppAssociationsForbiddenException.php new file mode 100644 index 0000000..ef33e61 --- /dev/null +++ b/lib/Exception/GetAppAssociationsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAppAssociationsInternalServerErrorException.php b/lib/Exception/GetAppAssociationsInternalServerErrorException.php new file mode 100644 index 0000000..3405b91 --- /dev/null +++ b/lib/Exception/GetAppAssociationsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAppAssociationsNotFoundException.php b/lib/Exception/GetAppAssociationsNotFoundException.php new file mode 100644 index 0000000..fb8182e --- /dev/null +++ b/lib/Exception/GetAppAssociationsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAppAssociationsPaymentRequiredException.php b/lib/Exception/GetAppAssociationsPaymentRequiredException.php new file mode 100644 index 0000000..76a4ebc --- /dev/null +++ b/lib/Exception/GetAppAssociationsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAppAssociationsServiceUnavailableException.php b/lib/Exception/GetAppAssociationsServiceUnavailableException.php new file mode 100644 index 0000000..277c7ae --- /dev/null +++ b/lib/Exception/GetAppAssociationsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAutobrandedDomainBadRequestException.php b/lib/Exception/GetAutobrandedDomainBadRequestException.php new file mode 100644 index 0000000..0d44448 --- /dev/null +++ b/lib/Exception/GetAutobrandedDomainBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetAutobrandedDomainInternalServerErrorException.php b/lib/Exception/GetAutobrandedDomainInternalServerErrorException.php new file mode 100644 index 0000000..8fafb23 --- /dev/null +++ b/lib/Exception/GetAutobrandedDomainInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBillingAccountForbiddenException.php b/lib/Exception/GetBillingAccountForbiddenException.php new file mode 100644 index 0000000..10709c4 --- /dev/null +++ b/lib/Exception/GetBillingAccountForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBillingAccountIDForbiddenException.php b/lib/Exception/GetBillingAccountIDForbiddenException.php new file mode 100644 index 0000000..fd1d3ed --- /dev/null +++ b/lib/Exception/GetBillingAccountIDForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBillingAccountIDInternalServerErrorException.php b/lib/Exception/GetBillingAccountIDInternalServerErrorException.php new file mode 100644 index 0000000..475a9dc --- /dev/null +++ b/lib/Exception/GetBillingAccountIDInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBillingAccountInternalServerErrorException.php b/lib/Exception/GetBillingAccountInternalServerErrorException.php new file mode 100644 index 0000000..caa4a2a --- /dev/null +++ b/lib/Exception/GetBillingAccountInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBillingProviderBadRequestException.php b/lib/Exception/GetBillingProviderBadRequestException.php new file mode 100644 index 0000000..83be7ee --- /dev/null +++ b/lib/Exception/GetBillingProviderBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBillingProviderForbiddenException.php b/lib/Exception/GetBillingProviderForbiddenException.php new file mode 100644 index 0000000..1fbf549 --- /dev/null +++ b/lib/Exception/GetBillingProviderForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBillingProviderInternalServerErrorException.php b/lib/Exception/GetBillingProviderInternalServerErrorException.php new file mode 100644 index 0000000..327f13e --- /dev/null +++ b/lib/Exception/GetBillingProviderInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClickCountsBadRequestException.php b/lib/Exception/GetBitlinkClickCountsBadRequestException.php new file mode 100644 index 0000000..497100d --- /dev/null +++ b/lib/Exception/GetBitlinkClickCountsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClickCountsGoneException.php b/lib/Exception/GetBitlinkClickCountsGoneException.php new file mode 100644 index 0000000..10d5c43 --- /dev/null +++ b/lib/Exception/GetBitlinkClickCountsGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClickCountsInternalServerErrorException.php b/lib/Exception/GetBitlinkClickCountsInternalServerErrorException.php new file mode 100644 index 0000000..3563d96 --- /dev/null +++ b/lib/Exception/GetBitlinkClickCountsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClickCountsNotFoundException.php b/lib/Exception/GetBitlinkClickCountsNotFoundException.php new file mode 100644 index 0000000..9b1eb95 --- /dev/null +++ b/lib/Exception/GetBitlinkClickCountsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClickCountsServiceUnavailableException.php b/lib/Exception/GetBitlinkClickCountsServiceUnavailableException.php new file mode 100644 index 0000000..b354231 --- /dev/null +++ b/lib/Exception/GetBitlinkClickCountsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClickCountsUnprocessableEntityException.php b/lib/Exception/GetBitlinkClickCountsUnprocessableEntityException.php new file mode 100644 index 0000000..517a14c --- /dev/null +++ b/lib/Exception/GetBitlinkClickCountsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksBadRequestException.php b/lib/Exception/GetBitlinkClicksBadRequestException.php new file mode 100644 index 0000000..b24cbc5 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksForbiddenException.php b/lib/Exception/GetBitlinkClicksForbiddenException.php new file mode 100644 index 0000000..9113ce9 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksGoneException.php b/lib/Exception/GetBitlinkClicksGoneException.php new file mode 100644 index 0000000..0a0fcd3 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksInternalServerErrorException.php b/lib/Exception/GetBitlinkClicksInternalServerErrorException.php new file mode 100644 index 0000000..990bb50 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserBadRequestException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserBadRequestException.php new file mode 100644 index 0000000..6a8168e --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserForbiddenException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserForbiddenException.php new file mode 100644 index 0000000..885d937 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserGoneException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserGoneException.php new file mode 100644 index 0000000..25bd502 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserInternalServerErrorException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserInternalServerErrorException.php new file mode 100644 index 0000000..02d5687 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserNotFoundException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserNotFoundException.php new file mode 100644 index 0000000..ae27f68 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserPaymentRequiredException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserPaymentRequiredException.php new file mode 100644 index 0000000..3b342ed --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserServiceUnavailableException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserServiceUnavailableException.php new file mode 100644 index 0000000..1299f14 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByBrowserServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesBadRequestException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesBadRequestException.php new file mode 100644 index 0000000..fbecfc8 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesForbiddenException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesForbiddenException.php new file mode 100644 index 0000000..e3a3361 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesGoneException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesGoneException.php new file mode 100644 index 0000000..dfe3a16 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesInternalServerErrorException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesInternalServerErrorException.php new file mode 100644 index 0000000..f5e4c00 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesNotFoundException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesNotFoundException.php new file mode 100644 index 0000000..a658dc9 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesPaymentRequiredException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesPaymentRequiredException.php new file mode 100644 index 0000000..3ced1db --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesServiceUnavailableException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesServiceUnavailableException.php new file mode 100644 index 0000000..7904f86 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCitiesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesBadRequestException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesBadRequestException.php new file mode 100644 index 0000000..92fac4c --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesForbiddenException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesForbiddenException.php new file mode 100644 index 0000000..cf5d7c5 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesGoneException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesGoneException.php new file mode 100644 index 0000000..14d43a2 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesInternalServerErrorException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesInternalServerErrorException.php new file mode 100644 index 0000000..b206e90 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesNotFoundException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesNotFoundException.php new file mode 100644 index 0000000..babb607 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesPaymentRequiredException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesPaymentRequiredException.php new file mode 100644 index 0000000..723a892 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesServiceUnavailableException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesServiceUnavailableException.php new file mode 100644 index 0000000..081269d --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByCountriesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSBadRequestException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSBadRequestException.php new file mode 100644 index 0000000..f0bf035 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSForbiddenException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSForbiddenException.php new file mode 100644 index 0000000..1c9ad95 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSGoneException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSGoneException.php new file mode 100644 index 0000000..cbbc7a0 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSInternalServerErrorException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSInternalServerErrorException.php new file mode 100644 index 0000000..35faed3 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSNotFoundException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSNotFoundException.php new file mode 100644 index 0000000..b6e5324 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSPaymentRequiredException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSPaymentRequiredException.php new file mode 100644 index 0000000..ec90e3d --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSServiceUnavailableException.php b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSServiceUnavailableException.php new file mode 100644 index 0000000..b99fd84 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksMetricsForBitlinkByDevicesOSServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksNotFoundException.php b/lib/Exception/GetBitlinkClicksNotFoundException.php new file mode 100644 index 0000000..60add4b --- /dev/null +++ b/lib/Exception/GetBitlinkClicksNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksServiceUnavailableException.php b/lib/Exception/GetBitlinkClicksServiceUnavailableException.php new file mode 100644 index 0000000..0462851 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksSummaryBadRequestException.php b/lib/Exception/GetBitlinkClicksSummaryBadRequestException.php new file mode 100644 index 0000000..796c2ca --- /dev/null +++ b/lib/Exception/GetBitlinkClicksSummaryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksSummaryForbiddenException.php b/lib/Exception/GetBitlinkClicksSummaryForbiddenException.php new file mode 100644 index 0000000..e365451 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksSummaryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksSummaryGoneException.php b/lib/Exception/GetBitlinkClicksSummaryGoneException.php new file mode 100644 index 0000000..2bfbff5 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksSummaryGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksSummaryInternalServerErrorException.php b/lib/Exception/GetBitlinkClicksSummaryInternalServerErrorException.php new file mode 100644 index 0000000..f0394f0 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksSummaryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksSummaryNotFoundException.php b/lib/Exception/GetBitlinkClicksSummaryNotFoundException.php new file mode 100644 index 0000000..e597e81 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksSummaryNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkClicksSummaryServiceUnavailableException.php b/lib/Exception/GetBitlinkClicksSummaryServiceUnavailableException.php new file mode 100644 index 0000000..30da354 --- /dev/null +++ b/lib/Exception/GetBitlinkClicksSummaryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansBadRequestException.php b/lib/Exception/GetBitlinkScansBadRequestException.php new file mode 100644 index 0000000..3f016f6 --- /dev/null +++ b/lib/Exception/GetBitlinkScansBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansForbiddenException.php b/lib/Exception/GetBitlinkScansForbiddenException.php new file mode 100644 index 0000000..8795c05 --- /dev/null +++ b/lib/Exception/GetBitlinkScansForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansGoneException.php b/lib/Exception/GetBitlinkScansGoneException.php new file mode 100644 index 0000000..1ec6a26 --- /dev/null +++ b/lib/Exception/GetBitlinkScansGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansInternalServerErrorException.php b/lib/Exception/GetBitlinkScansInternalServerErrorException.php new file mode 100644 index 0000000..30c9916 --- /dev/null +++ b/lib/Exception/GetBitlinkScansInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansNotFoundException.php b/lib/Exception/GetBitlinkScansNotFoundException.php new file mode 100644 index 0000000..66a7d70 --- /dev/null +++ b/lib/Exception/GetBitlinkScansNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansServiceUnavailableException.php b/lib/Exception/GetBitlinkScansServiceUnavailableException.php new file mode 100644 index 0000000..db70459 --- /dev/null +++ b/lib/Exception/GetBitlinkScansServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansSummaryBadRequestException.php b/lib/Exception/GetBitlinkScansSummaryBadRequestException.php new file mode 100644 index 0000000..3b43e04 --- /dev/null +++ b/lib/Exception/GetBitlinkScansSummaryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansSummaryForbiddenException.php b/lib/Exception/GetBitlinkScansSummaryForbiddenException.php new file mode 100644 index 0000000..be3bb98 --- /dev/null +++ b/lib/Exception/GetBitlinkScansSummaryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansSummaryGoneException.php b/lib/Exception/GetBitlinkScansSummaryGoneException.php new file mode 100644 index 0000000..d42f12b --- /dev/null +++ b/lib/Exception/GetBitlinkScansSummaryGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansSummaryInternalServerErrorException.php b/lib/Exception/GetBitlinkScansSummaryInternalServerErrorException.php new file mode 100644 index 0000000..432bd34 --- /dev/null +++ b/lib/Exception/GetBitlinkScansSummaryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansSummaryNotFoundException.php b/lib/Exception/GetBitlinkScansSummaryNotFoundException.php new file mode 100644 index 0000000..3bd578a --- /dev/null +++ b/lib/Exception/GetBitlinkScansSummaryNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBitlinkScansSummaryServiceUnavailableException.php b/lib/Exception/GetBitlinkScansSummaryServiceUnavailableException.php new file mode 100644 index 0000000..f4ebdbb --- /dev/null +++ b/lib/Exception/GetBitlinkScansSummaryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesBadRequestException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesBadRequestException.php new file mode 100644 index 0000000..12c6f93 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesForbiddenException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesForbiddenException.php new file mode 100644 index 0000000..5f475b2 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php new file mode 100644 index 0000000..8638d42 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesNotFoundException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesNotFoundException.php new file mode 100644 index 0000000..5185066 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php new file mode 100644 index 0000000..dbe1fe0 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesBadRequestException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesBadRequestException.php new file mode 100644 index 0000000..1549aa3 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesForbiddenException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesForbiddenException.php new file mode 100644 index 0000000..1064001 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php new file mode 100644 index 0000000..9081277 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesNotFoundException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesNotFoundException.php new file mode 100644 index 0000000..b3bee26 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php new file mode 100644 index 0000000..f30ee0f --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesBadRequestException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesBadRequestException.php new file mode 100644 index 0000000..0da5a7f --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesForbiddenException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesForbiddenException.php new file mode 100644 index 0000000..6ad9bc0 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php new file mode 100644 index 0000000..09ad21c --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesNotFoundException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesNotFoundException.php new file mode 100644 index 0000000..5d14a6c --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php new file mode 100644 index 0000000..6e11adc --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeBadRequestException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeBadRequestException.php new file mode 100644 index 0000000..9cdf8a2 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeForbiddenException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeForbiddenException.php new file mode 100644 index 0000000..eb3d97f --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..db0d1f5 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeNotFoundException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeNotFoundException.php new file mode 100644 index 0000000..7f6c5c0 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..a65e593 --- /dev/null +++ b/lib/Exception/GetBlockDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBrandCampaignBadRequestException.php b/lib/Exception/GetBrandCampaignBadRequestException.php new file mode 100644 index 0000000..6f3e512 --- /dev/null +++ b/lib/Exception/GetBrandCampaignBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBrandCampaignInternalServerErrorException.php b/lib/Exception/GetBrandCampaignInternalServerErrorException.php new file mode 100644 index 0000000..ed2a29f --- /dev/null +++ b/lib/Exception/GetBrandCampaignInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBrandCampaignUnprocessableEntityException.php b/lib/Exception/GetBrandCampaignUnprocessableEntityException.php new file mode 100644 index 0000000..3fe17c4 --- /dev/null +++ b/lib/Exception/GetBrandCampaignUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBulkUploadsBadRequestException.php b/lib/Exception/GetBulkUploadsBadRequestException.php new file mode 100644 index 0000000..b948123 --- /dev/null +++ b/lib/Exception/GetBulkUploadsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBulkUploadsForbiddenException.php b/lib/Exception/GetBulkUploadsForbiddenException.php new file mode 100644 index 0000000..a68906b --- /dev/null +++ b/lib/Exception/GetBulkUploadsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBulkUploadsInternalServerErrorException.php b/lib/Exception/GetBulkUploadsInternalServerErrorException.php new file mode 100644 index 0000000..51a7a90 --- /dev/null +++ b/lib/Exception/GetBulkUploadsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBulkUploadsNotFoundException.php b/lib/Exception/GetBulkUploadsNotFoundException.php new file mode 100644 index 0000000..136749b --- /dev/null +++ b/lib/Exception/GetBulkUploadsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBulkUploadsPaymentRequiredException.php b/lib/Exception/GetBulkUploadsPaymentRequiredException.php new file mode 100644 index 0000000..d63ad75 --- /dev/null +++ b/lib/Exception/GetBulkUploadsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetBulkUploadsServiceUnavailableException.php b/lib/Exception/GetBulkUploadsServiceUnavailableException.php new file mode 100644 index 0000000..98c5321 --- /dev/null +++ b/lib/Exception/GetBulkUploadsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksBadRequestException.php b/lib/Exception/GetButtonClicksBadRequestException.php new file mode 100644 index 0000000..646ae25 --- /dev/null +++ b/lib/Exception/GetButtonClicksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksForbiddenException.php b/lib/Exception/GetButtonClicksForbiddenException.php new file mode 100644 index 0000000..b0c4e65 --- /dev/null +++ b/lib/Exception/GetButtonClicksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksGoneException.php b/lib/Exception/GetButtonClicksGoneException.php new file mode 100644 index 0000000..c135cb4 --- /dev/null +++ b/lib/Exception/GetButtonClicksGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksInternalServerErrorException.php b/lib/Exception/GetButtonClicksInternalServerErrorException.php new file mode 100644 index 0000000..440db6c --- /dev/null +++ b/lib/Exception/GetButtonClicksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksNotFoundException.php b/lib/Exception/GetButtonClicksNotFoundException.php new file mode 100644 index 0000000..2f35b20 --- /dev/null +++ b/lib/Exception/GetButtonClicksNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksServiceUnavailableException.php b/lib/Exception/GetButtonClicksServiceUnavailableException.php new file mode 100644 index 0000000..5c45a8b --- /dev/null +++ b/lib/Exception/GetButtonClicksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksSummaryBadRequestException.php b/lib/Exception/GetButtonClicksSummaryBadRequestException.php new file mode 100644 index 0000000..a91534c --- /dev/null +++ b/lib/Exception/GetButtonClicksSummaryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksSummaryForbiddenException.php b/lib/Exception/GetButtonClicksSummaryForbiddenException.php new file mode 100644 index 0000000..47554ec --- /dev/null +++ b/lib/Exception/GetButtonClicksSummaryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksSummaryGoneException.php b/lib/Exception/GetButtonClicksSummaryGoneException.php new file mode 100644 index 0000000..dff2f3b --- /dev/null +++ b/lib/Exception/GetButtonClicksSummaryGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksSummaryInternalServerErrorException.php b/lib/Exception/GetButtonClicksSummaryInternalServerErrorException.php new file mode 100644 index 0000000..07d6a58 --- /dev/null +++ b/lib/Exception/GetButtonClicksSummaryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksSummaryNotFoundException.php b/lib/Exception/GetButtonClicksSummaryNotFoundException.php new file mode 100644 index 0000000..6f04e8e --- /dev/null +++ b/lib/Exception/GetButtonClicksSummaryNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetButtonClicksSummaryServiceUnavailableException.php b/lib/Exception/GetButtonClicksSummaryServiceUnavailableException.php new file mode 100644 index 0000000..c4e6a67 --- /dev/null +++ b/lib/Exception/GetButtonClicksSummaryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCampaignClicksForbiddenException.php b/lib/Exception/GetCampaignClicksForbiddenException.php new file mode 100644 index 0000000..5c0838e --- /dev/null +++ b/lib/Exception/GetCampaignClicksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCampaignClicksInternalServerErrorException.php b/lib/Exception/GetCampaignClicksInternalServerErrorException.php new file mode 100644 index 0000000..499a239 --- /dev/null +++ b/lib/Exception/GetCampaignClicksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCampaignClicksNotFoundException.php b/lib/Exception/GetCampaignClicksNotFoundException.php new file mode 100644 index 0000000..1fb65d4 --- /dev/null +++ b/lib/Exception/GetCampaignClicksNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCampaignClicksPaymentRequiredException.php b/lib/Exception/GetCampaignClicksPaymentRequiredException.php new file mode 100644 index 0000000..a23716e --- /dev/null +++ b/lib/Exception/GetCampaignClicksPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCampaignClicksServiceUnavailableException.php b/lib/Exception/GetCampaignClicksServiceUnavailableException.php new file mode 100644 index 0000000..a48c87a --- /dev/null +++ b/lib/Exception/GetCampaignClicksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCanvaUserBrandBadRequestException.php b/lib/Exception/GetCanvaUserBrandBadRequestException.php new file mode 100644 index 0000000..bc7b62f --- /dev/null +++ b/lib/Exception/GetCanvaUserBrandBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCanvaUserBrandInternalServerErrorException.php b/lib/Exception/GetCanvaUserBrandInternalServerErrorException.php new file mode 100644 index 0000000..eba89c9 --- /dev/null +++ b/lib/Exception/GetCanvaUserBrandInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCanvaUserBrandNotFoundException.php b/lib/Exception/GetCanvaUserBrandNotFoundException.php new file mode 100644 index 0000000..65344fd --- /dev/null +++ b/lib/Exception/GetCanvaUserBrandNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetChildrenForBlockForbiddenException.php b/lib/Exception/GetChildrenForBlockForbiddenException.php new file mode 100644 index 0000000..cdb8182 --- /dev/null +++ b/lib/Exception/GetChildrenForBlockForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetChildrenForBlockInternalServerErrorException.php b/lib/Exception/GetChildrenForBlockInternalServerErrorException.php new file mode 100644 index 0000000..6dcf2ae --- /dev/null +++ b/lib/Exception/GetChildrenForBlockInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetChildrenForBlockNotFoundException.php b/lib/Exception/GetChildrenForBlockNotFoundException.php new file mode 100644 index 0000000..40e735a --- /dev/null +++ b/lib/Exception/GetChildrenForBlockNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetChildrenForBlockServiceUnavailableException.php b/lib/Exception/GetChildrenForBlockServiceUnavailableException.php new file mode 100644 index 0000000..b0abd5c --- /dev/null +++ b/lib/Exception/GetChildrenForBlockServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetConsumableFeaturesConflictException.php b/lib/Exception/GetConsumableFeaturesConflictException.php new file mode 100644 index 0000000..7a694f7 --- /dev/null +++ b/lib/Exception/GetConsumableFeaturesConflictException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetConsumableFeaturesForbiddenException.php b/lib/Exception/GetConsumableFeaturesForbiddenException.php new file mode 100644 index 0000000..2b5a88f --- /dev/null +++ b/lib/Exception/GetConsumableFeaturesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetConsumableFeaturesInternalServerErrorException.php b/lib/Exception/GetConsumableFeaturesInternalServerErrorException.php new file mode 100644 index 0000000..1c224cb --- /dev/null +++ b/lib/Exception/GetConsumableFeaturesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCountryCallingCodesBadRequestException.php b/lib/Exception/GetCountryCallingCodesBadRequestException.php new file mode 100644 index 0000000..964a334 --- /dev/null +++ b/lib/Exception/GetCountryCallingCodesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCountryCallingCodesInternalServerErrorException.php b/lib/Exception/GetCountryCallingCodesInternalServerErrorException.php new file mode 100644 index 0000000..7269699 --- /dev/null +++ b/lib/Exception/GetCountryCallingCodesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCurrencyInternalServerErrorException.php b/lib/Exception/GetCurrencyInternalServerErrorException.php new file mode 100644 index 0000000..d7f9f5b --- /dev/null +++ b/lib/Exception/GetCurrencyInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCurrencyListInternalServerErrorException.php b/lib/Exception/GetCurrencyListInternalServerErrorException.php new file mode 100644 index 0000000..b4df436 --- /dev/null +++ b/lib/Exception/GetCurrencyListInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCustomDomainForbiddenException.php b/lib/Exception/GetCustomDomainForbiddenException.php new file mode 100644 index 0000000..79f16fc --- /dev/null +++ b/lib/Exception/GetCustomDomainForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCustomDomainInternalServerErrorException.php b/lib/Exception/GetCustomDomainInternalServerErrorException.php new file mode 100644 index 0000000..fa5dd1d --- /dev/null +++ b/lib/Exception/GetCustomDomainInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCustomDomainNotFoundException.php b/lib/Exception/GetCustomDomainNotFoundException.php new file mode 100644 index 0000000..b87b7ef --- /dev/null +++ b/lib/Exception/GetCustomDomainNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCustomDomainServiceUnavailableException.php b/lib/Exception/GetCustomDomainServiceUnavailableException.php new file mode 100644 index 0000000..2e86de1 --- /dev/null +++ b/lib/Exception/GetCustomDomainServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCustomDomainsForbiddenException.php b/lib/Exception/GetCustomDomainsForbiddenException.php new file mode 100644 index 0000000..4598815 --- /dev/null +++ b/lib/Exception/GetCustomDomainsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCustomDomainsInternalServerErrorException.php b/lib/Exception/GetCustomDomainsInternalServerErrorException.php new file mode 100644 index 0000000..f03b3ee --- /dev/null +++ b/lib/Exception/GetCustomDomainsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCustomDomainsServiceUnavailableException.php b/lib/Exception/GetCustomDomainsServiceUnavailableException.php new file mode 100644 index 0000000..6749134 --- /dev/null +++ b/lib/Exception/GetCustomDomainsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetCustomDomainsUnprocessableEntityException.php b/lib/Exception/GetCustomDomainsUnprocessableEntityException.php new file mode 100644 index 0000000..346347a --- /dev/null +++ b/lib/Exception/GetCustomDomainsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkAppForbiddenException.php b/lib/Exception/GetDeeplinkAppForbiddenException.php new file mode 100644 index 0000000..3381061 --- /dev/null +++ b/lib/Exception/GetDeeplinkAppForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkAppInternalServerErrorException.php b/lib/Exception/GetDeeplinkAppInternalServerErrorException.php new file mode 100644 index 0000000..00f0428 --- /dev/null +++ b/lib/Exception/GetDeeplinkAppInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkAppNotFoundException.php b/lib/Exception/GetDeeplinkAppNotFoundException.php new file mode 100644 index 0000000..aaa2782 --- /dev/null +++ b/lib/Exception/GetDeeplinkAppNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkAppServiceUnavailableException.php b/lib/Exception/GetDeeplinkAppServiceUnavailableException.php new file mode 100644 index 0000000..538e3ca --- /dev/null +++ b/lib/Exception/GetDeeplinkAppServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkAppsForbiddenException.php b/lib/Exception/GetDeeplinkAppsForbiddenException.php new file mode 100644 index 0000000..94ea258 --- /dev/null +++ b/lib/Exception/GetDeeplinkAppsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkAppsInternalServerErrorException.php b/lib/Exception/GetDeeplinkAppsInternalServerErrorException.php new file mode 100644 index 0000000..fa7c57e --- /dev/null +++ b/lib/Exception/GetDeeplinkAppsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkAppsServiceUnavailableException.php b/lib/Exception/GetDeeplinkAppsServiceUnavailableException.php new file mode 100644 index 0000000..fab4248 --- /dev/null +++ b/lib/Exception/GetDeeplinkAppsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkMetricsRollupForbiddenException.php b/lib/Exception/GetDeeplinkMetricsRollupForbiddenException.php new file mode 100644 index 0000000..01d1def --- /dev/null +++ b/lib/Exception/GetDeeplinkMetricsRollupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkMetricsRollupGoneException.php b/lib/Exception/GetDeeplinkMetricsRollupGoneException.php new file mode 100644 index 0000000..6a1f324 --- /dev/null +++ b/lib/Exception/GetDeeplinkMetricsRollupGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkMetricsRollupInternalServerErrorException.php b/lib/Exception/GetDeeplinkMetricsRollupInternalServerErrorException.php new file mode 100644 index 0000000..e7d1518 --- /dev/null +++ b/lib/Exception/GetDeeplinkMetricsRollupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkMetricsRollupNotFoundException.php b/lib/Exception/GetDeeplinkMetricsRollupNotFoundException.php new file mode 100644 index 0000000..622386e --- /dev/null +++ b/lib/Exception/GetDeeplinkMetricsRollupNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkMetricsRollupPaymentRequiredException.php b/lib/Exception/GetDeeplinkMetricsRollupPaymentRequiredException.php new file mode 100644 index 0000000..5a4c3b8 --- /dev/null +++ b/lib/Exception/GetDeeplinkMetricsRollupPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkMetricsRollupServiceUnavailableException.php b/lib/Exception/GetDeeplinkMetricsRollupServiceUnavailableException.php new file mode 100644 index 0000000..f3c918e --- /dev/null +++ b/lib/Exception/GetDeeplinkMetricsRollupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkRulesForbiddenException.php b/lib/Exception/GetDeeplinkRulesForbiddenException.php new file mode 100644 index 0000000..6dc86fe --- /dev/null +++ b/lib/Exception/GetDeeplinkRulesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkRulesInternalServerErrorException.php b/lib/Exception/GetDeeplinkRulesInternalServerErrorException.php new file mode 100644 index 0000000..48f6bea --- /dev/null +++ b/lib/Exception/GetDeeplinkRulesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkRulesNotFoundException.php b/lib/Exception/GetDeeplinkRulesNotFoundException.php new file mode 100644 index 0000000..be40a74 --- /dev/null +++ b/lib/Exception/GetDeeplinkRulesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkRulesPaymentRequiredException.php b/lib/Exception/GetDeeplinkRulesPaymentRequiredException.php new file mode 100644 index 0000000..4c82566 --- /dev/null +++ b/lib/Exception/GetDeeplinkRulesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkRulesServiceUnavailableException.php b/lib/Exception/GetDeeplinkRulesServiceUnavailableException.php new file mode 100644 index 0000000..5668151 --- /dev/null +++ b/lib/Exception/GetDeeplinkRulesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDeeplinkRulesTooManyRequestsException.php b/lib/Exception/GetDeeplinkRulesTooManyRequestsException.php new file mode 100644 index 0000000..0768dde --- /dev/null +++ b/lib/Exception/GetDeeplinkRulesTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetDomainRegistrarInfoInternalServerErrorException.php b/lib/Exception/GetDomainRegistrarInfoInternalServerErrorException.php new file mode 100644 index 0000000..5578a3d --- /dev/null +++ b/lib/Exception/GetDomainRegistrarInfoInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsBadRequestException.php b/lib/Exception/GetEngagementsBadRequestException.php new file mode 100644 index 0000000..abb0bfe --- /dev/null +++ b/lib/Exception/GetEngagementsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsForbiddenException.php b/lib/Exception/GetEngagementsForbiddenException.php new file mode 100644 index 0000000..d6aaf9d --- /dev/null +++ b/lib/Exception/GetEngagementsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsGoneException.php b/lib/Exception/GetEngagementsGoneException.php new file mode 100644 index 0000000..9f9a3a2 --- /dev/null +++ b/lib/Exception/GetEngagementsGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsInternalServerErrorException.php b/lib/Exception/GetEngagementsInternalServerErrorException.php new file mode 100644 index 0000000..7f2445d --- /dev/null +++ b/lib/Exception/GetEngagementsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsNotFoundException.php b/lib/Exception/GetEngagementsNotFoundException.php new file mode 100644 index 0000000..5205e6c --- /dev/null +++ b/lib/Exception/GetEngagementsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSampleBadRequestException.php b/lib/Exception/GetEngagementsSampleBadRequestException.php new file mode 100644 index 0000000..d29d974 --- /dev/null +++ b/lib/Exception/GetEngagementsSampleBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSampleForbiddenException.php b/lib/Exception/GetEngagementsSampleForbiddenException.php new file mode 100644 index 0000000..ff07ebe --- /dev/null +++ b/lib/Exception/GetEngagementsSampleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSampleInternalServerErrorException.php b/lib/Exception/GetEngagementsSampleInternalServerErrorException.php new file mode 100644 index 0000000..a22021f --- /dev/null +++ b/lib/Exception/GetEngagementsSampleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsServiceUnavailableException.php b/lib/Exception/GetEngagementsServiceUnavailableException.php new file mode 100644 index 0000000..19e65f6 --- /dev/null +++ b/lib/Exception/GetEngagementsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSummaryBadRequestException.php b/lib/Exception/GetEngagementsSummaryBadRequestException.php new file mode 100644 index 0000000..f80565c --- /dev/null +++ b/lib/Exception/GetEngagementsSummaryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSummaryForbiddenException.php b/lib/Exception/GetEngagementsSummaryForbiddenException.php new file mode 100644 index 0000000..da8e02d --- /dev/null +++ b/lib/Exception/GetEngagementsSummaryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSummaryGoneException.php b/lib/Exception/GetEngagementsSummaryGoneException.php new file mode 100644 index 0000000..c65986c --- /dev/null +++ b/lib/Exception/GetEngagementsSummaryGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSummaryInternalServerErrorException.php b/lib/Exception/GetEngagementsSummaryInternalServerErrorException.php new file mode 100644 index 0000000..1505c95 --- /dev/null +++ b/lib/Exception/GetEngagementsSummaryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSummaryNotFoundException.php b/lib/Exception/GetEngagementsSummaryNotFoundException.php new file mode 100644 index 0000000..7e047bd --- /dev/null +++ b/lib/Exception/GetEngagementsSummaryNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetEngagementsSummaryServiceUnavailableException.php b/lib/Exception/GetEngagementsSummaryServiceUnavailableException.php new file mode 100644 index 0000000..f06f364 --- /dev/null +++ b/lib/Exception/GetEngagementsSummaryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetFocusInternalServerErrorException.php b/lib/Exception/GetFocusInternalServerErrorException.php new file mode 100644 index 0000000..765e99e --- /dev/null +++ b/lib/Exception/GetFocusInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountBadRequestException.php b/lib/Exception/GetGroupBitlinksCountBadRequestException.php new file mode 100644 index 0000000..bc074c4 --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountForbiddenException.php b/lib/Exception/GetGroupBitlinksCountForbiddenException.php new file mode 100644 index 0000000..8b9abc1 --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountInternalServerErrorException.php b/lib/Exception/GetGroupBitlinksCountInternalServerErrorException.php new file mode 100644 index 0000000..c24516b --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountPaymentRequiredException.php b/lib/Exception/GetGroupBitlinksCountPaymentRequiredException.php new file mode 100644 index 0000000..a605440 --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountRollupBadRequestException.php b/lib/Exception/GetGroupBitlinksCountRollupBadRequestException.php new file mode 100644 index 0000000..3c72ce3 --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountRollupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountRollupForbiddenException.php b/lib/Exception/GetGroupBitlinksCountRollupForbiddenException.php new file mode 100644 index 0000000..a2b3e9e --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountRollupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountRollupInternalServerErrorException.php b/lib/Exception/GetGroupBitlinksCountRollupInternalServerErrorException.php new file mode 100644 index 0000000..ad793bb --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountRollupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountRollupPaymentRequiredException.php b/lib/Exception/GetGroupBitlinksCountRollupPaymentRequiredException.php new file mode 100644 index 0000000..92fbd4a --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountRollupPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountRollupServiceUnavailableException.php b/lib/Exception/GetGroupBitlinksCountRollupServiceUnavailableException.php new file mode 100644 index 0000000..899c291 --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountRollupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupBitlinksCountRollupTooManyRequestsException.php b/lib/Exception/GetGroupBitlinksCountRollupTooManyRequestsException.php new file mode 100644 index 0000000..92d0501 --- /dev/null +++ b/lib/Exception/GetGroupBitlinksCountRollupTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByCityBadRequestException.php b/lib/Exception/GetGroupButtonClicksByCityBadRequestException.php new file mode 100644 index 0000000..a102cbd --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByCityForbiddenException.php b/lib/Exception/GetGroupButtonClicksByCityForbiddenException.php new file mode 100644 index 0000000..4bad81f --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByCityInternalServerErrorException.php b/lib/Exception/GetGroupButtonClicksByCityInternalServerErrorException.php new file mode 100644 index 0000000..4c39639 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByCityServiceUnavailableException.php b/lib/Exception/GetGroupButtonClicksByCityServiceUnavailableException.php new file mode 100644 index 0000000..1b5a492 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByCountryBadRequestException.php b/lib/Exception/GetGroupButtonClicksByCountryBadRequestException.php new file mode 100644 index 0000000..aa77dcd --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByCountryForbiddenException.php b/lib/Exception/GetGroupButtonClicksByCountryForbiddenException.php new file mode 100644 index 0000000..e049955 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByCountryInternalServerErrorException.php b/lib/Exception/GetGroupButtonClicksByCountryInternalServerErrorException.php new file mode 100644 index 0000000..5723e80 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByCountryServiceUnavailableException.php b/lib/Exception/GetGroupButtonClicksByCountryServiceUnavailableException.php new file mode 100644 index 0000000..27d20ca --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByDeviceBadRequestException.php b/lib/Exception/GetGroupButtonClicksByDeviceBadRequestException.php new file mode 100644 index 0000000..6ac63f2 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByDeviceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByDeviceForbiddenException.php b/lib/Exception/GetGroupButtonClicksByDeviceForbiddenException.php new file mode 100644 index 0000000..895af10 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByDeviceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByDeviceInternalServerErrorException.php b/lib/Exception/GetGroupButtonClicksByDeviceInternalServerErrorException.php new file mode 100644 index 0000000..14fe9b9 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByDeviceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksByDeviceServiceUnavailableException.php b/lib/Exception/GetGroupButtonClicksByDeviceServiceUnavailableException.php new file mode 100644 index 0000000..22c7ede --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksByDeviceServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksOverTimeBadRequestException.php b/lib/Exception/GetGroupButtonClicksOverTimeBadRequestException.php new file mode 100644 index 0000000..05c7249 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksOverTimeForbiddenException.php b/lib/Exception/GetGroupButtonClicksOverTimeForbiddenException.php new file mode 100644 index 0000000..f441ae5 --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksOverTimeInternalServerErrorException.php b/lib/Exception/GetGroupButtonClicksOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..87b806e --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupButtonClicksOverTimeServiceUnavailableException.php b/lib/Exception/GetGroupButtonClicksOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..f38245b --- /dev/null +++ b/lib/Exception/GetGroupButtonClicksOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetBadRequestException.php b/lib/Exception/GetGroupClicksByFacetBadRequestException.php new file mode 100644 index 0000000..d49471b --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetForbiddenException.php b/lib/Exception/GetGroupClicksByFacetForbiddenException.php new file mode 100644 index 0000000..2e85d73 --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetInternalServerErrorException.php b/lib/Exception/GetGroupClicksByFacetInternalServerErrorException.php new file mode 100644 index 0000000..05d6b81 --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetPaymentRequiredException.php b/lib/Exception/GetGroupClicksByFacetPaymentRequiredException.php new file mode 100644 index 0000000..6bb023e --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetRollupBadRequestException.php b/lib/Exception/GetGroupClicksByFacetRollupBadRequestException.php new file mode 100644 index 0000000..c6b4294 --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetRollupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetRollupForbiddenException.php b/lib/Exception/GetGroupClicksByFacetRollupForbiddenException.php new file mode 100644 index 0000000..e872465 --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetRollupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetRollupInternalServerErrorException.php b/lib/Exception/GetGroupClicksByFacetRollupInternalServerErrorException.php new file mode 100644 index 0000000..2eccf42 --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetRollupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetRollupPaymentRequiredException.php b/lib/Exception/GetGroupClicksByFacetRollupPaymentRequiredException.php new file mode 100644 index 0000000..ac3dfec --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetRollupPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetRollupServiceUnavailableException.php b/lib/Exception/GetGroupClicksByFacetRollupServiceUnavailableException.php new file mode 100644 index 0000000..be66b15 --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetRollupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupClicksByFacetServiceUnavailableException.php b/lib/Exception/GetGroupClicksByFacetServiceUnavailableException.php new file mode 100644 index 0000000..fc33892 --- /dev/null +++ b/lib/Exception/GetGroupClicksByFacetServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansByCityBadRequestException.php b/lib/Exception/GetGroupCodeScansByCityBadRequestException.php new file mode 100644 index 0000000..844c277 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansByCityForbiddenException.php b/lib/Exception/GetGroupCodeScansByCityForbiddenException.php new file mode 100644 index 0000000..f0d0755 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansByCityInternalServerErrorException.php b/lib/Exception/GetGroupCodeScansByCityInternalServerErrorException.php new file mode 100644 index 0000000..815e1ec --- /dev/null +++ b/lib/Exception/GetGroupCodeScansByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansByCityServiceUnavailableException.php b/lib/Exception/GetGroupCodeScansByCityServiceUnavailableException.php new file mode 100644 index 0000000..4e8c4d8 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansByCountryBadRequestException.php b/lib/Exception/GetGroupCodeScansByCountryBadRequestException.php new file mode 100644 index 0000000..ae0bfbc --- /dev/null +++ b/lib/Exception/GetGroupCodeScansByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansByCountryForbiddenException.php b/lib/Exception/GetGroupCodeScansByCountryForbiddenException.php new file mode 100644 index 0000000..b62afea --- /dev/null +++ b/lib/Exception/GetGroupCodeScansByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansByCountryInternalServerErrorException.php b/lib/Exception/GetGroupCodeScansByCountryInternalServerErrorException.php new file mode 100644 index 0000000..aedefd6 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansByCountryServiceUnavailableException.php b/lib/Exception/GetGroupCodeScansByCountryServiceUnavailableException.php new file mode 100644 index 0000000..48fd3c5 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansOverTimeBadRequestException.php b/lib/Exception/GetGroupCodeScansOverTimeBadRequestException.php new file mode 100644 index 0000000..b496122 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansOverTimeForbiddenException.php b/lib/Exception/GetGroupCodeScansOverTimeForbiddenException.php new file mode 100644 index 0000000..7678ae6 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansOverTimeInternalServerErrorException.php b/lib/Exception/GetGroupCodeScansOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..78ab4b3 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupCodeScansOverTimeServiceUnavailableException.php b/lib/Exception/GetGroupCodeScansOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..a7a1655 --- /dev/null +++ b/lib/Exception/GetGroupCodeScansOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksBadRequestException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksBadRequestException.php new file mode 100644 index 0000000..b62af97 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksForbiddenException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksForbiddenException.php new file mode 100644 index 0000000..028f41f --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksInternalServerErrorException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksInternalServerErrorException.php new file mode 100644 index 0000000..4852eba --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksNotFoundException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksNotFoundException.php new file mode 100644 index 0000000..9e14399 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksServiceUnavailableException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksServiceUnavailableException.php new file mode 100644 index 0000000..672468b --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByBlocksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesBadRequestException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesBadRequestException.php new file mode 100644 index 0000000..8cdee5b --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesForbiddenException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesForbiddenException.php new file mode 100644 index 0000000..88fcc5e --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php new file mode 100644 index 0000000..322882c --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesNotFoundException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesNotFoundException.php new file mode 100644 index 0000000..a280209 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php new file mode 100644 index 0000000..d6b43e2 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesBadRequestException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesBadRequestException.php new file mode 100644 index 0000000..b97da04 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesForbiddenException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesForbiddenException.php new file mode 100644 index 0000000..0868ab9 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php new file mode 100644 index 0000000..c8a7df7 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesNotFoundException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesNotFoundException.php new file mode 100644 index 0000000..7a0b40f --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php new file mode 100644 index 0000000..a7fb34d --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesBadRequestException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesBadRequestException.php new file mode 100644 index 0000000..b46e4f2 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesForbiddenException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesForbiddenException.php new file mode 100644 index 0000000..059da67 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php new file mode 100644 index 0000000..db3c1e6 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesNotFoundException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesNotFoundException.php new file mode 100644 index 0000000..a7108fe --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php new file mode 100644 index 0000000..d118cfd --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesBadRequestException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesBadRequestException.php new file mode 100644 index 0000000..f6488ef --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesForbiddenException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesForbiddenException.php new file mode 100644 index 0000000..66c0f8e --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesInternalServerErrorException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesInternalServerErrorException.php new file mode 100644 index 0000000..d5aa4b4 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesNotFoundException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesNotFoundException.php new file mode 100644 index 0000000..2ec471f --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesServiceUnavailableException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesServiceUnavailableException.php new file mode 100644 index 0000000..dbf88ce --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsByMicrositesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeBadRequestException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeBadRequestException.php new file mode 100644 index 0000000..6c10bcb --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeForbiddenException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeForbiddenException.php new file mode 100644 index 0000000..cfda5c0 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..2c6a1c2 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeNotFoundException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeNotFoundException.php new file mode 100644 index 0000000..ba1dfad --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..af6f076 --- /dev/null +++ b/lib/Exception/GetGroupDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByCityBadRequestException.php b/lib/Exception/GetGroupLinkClicksByCityBadRequestException.php new file mode 100644 index 0000000..1581d22 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByCityForbiddenException.php b/lib/Exception/GetGroupLinkClicksByCityForbiddenException.php new file mode 100644 index 0000000..6bf7563 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByCityInternalServerErrorException.php b/lib/Exception/GetGroupLinkClicksByCityInternalServerErrorException.php new file mode 100644 index 0000000..fde2a67 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByCityServiceUnavailableException.php b/lib/Exception/GetGroupLinkClicksByCityServiceUnavailableException.php new file mode 100644 index 0000000..b5a75ff --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByCountryBadRequestException.php b/lib/Exception/GetGroupLinkClicksByCountryBadRequestException.php new file mode 100644 index 0000000..104fac5 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByCountryForbiddenException.php b/lib/Exception/GetGroupLinkClicksByCountryForbiddenException.php new file mode 100644 index 0000000..4b07c64 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByCountryInternalServerErrorException.php b/lib/Exception/GetGroupLinkClicksByCountryInternalServerErrorException.php new file mode 100644 index 0000000..819d1ce --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByCountryServiceUnavailableException.php b/lib/Exception/GetGroupLinkClicksByCountryServiceUnavailableException.php new file mode 100644 index 0000000..5899b67 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByDeviceBadRequestException.php b/lib/Exception/GetGroupLinkClicksByDeviceBadRequestException.php new file mode 100644 index 0000000..fefec87 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByDeviceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByDeviceForbiddenException.php b/lib/Exception/GetGroupLinkClicksByDeviceForbiddenException.php new file mode 100644 index 0000000..ea6da26 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByDeviceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByDeviceInternalServerErrorException.php b/lib/Exception/GetGroupLinkClicksByDeviceInternalServerErrorException.php new file mode 100644 index 0000000..7974d8c --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByDeviceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByDeviceServiceUnavailableException.php b/lib/Exception/GetGroupLinkClicksByDeviceServiceUnavailableException.php new file mode 100644 index 0000000..1c4fb10 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByDeviceServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByReferrerBadRequestException.php b/lib/Exception/GetGroupLinkClicksByReferrerBadRequestException.php new file mode 100644 index 0000000..08f6559 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByReferrerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByReferrerForbiddenException.php b/lib/Exception/GetGroupLinkClicksByReferrerForbiddenException.php new file mode 100644 index 0000000..347fe48 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByReferrerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByReferrerInternalServerErrorException.php b/lib/Exception/GetGroupLinkClicksByReferrerInternalServerErrorException.php new file mode 100644 index 0000000..70c09bb --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByReferrerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksByReferrerServiceUnavailableException.php b/lib/Exception/GetGroupLinkClicksByReferrerServiceUnavailableException.php new file mode 100644 index 0000000..44f0c73 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksByReferrerServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksOverTimeBadRequestException.php b/lib/Exception/GetGroupLinkClicksOverTimeBadRequestException.php new file mode 100644 index 0000000..6f77a0d --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksOverTimeForbiddenException.php b/lib/Exception/GetGroupLinkClicksOverTimeForbiddenException.php new file mode 100644 index 0000000..abbcb4d --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksOverTimeInternalServerErrorException.php b/lib/Exception/GetGroupLinkClicksOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..94293b1 --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupLinkClicksOverTimeServiceUnavailableException.php b/lib/Exception/GetGroupLinkClicksOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..2d63c3f --- /dev/null +++ b/lib/Exception/GetGroupLinkClicksOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByCityBadRequestException.php b/lib/Exception/GetGroupPageViewsByCityBadRequestException.php new file mode 100644 index 0000000..49f095a --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByCityBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByCityForbiddenException.php b/lib/Exception/GetGroupPageViewsByCityForbiddenException.php new file mode 100644 index 0000000..faf1571 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByCityForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByCityInternalServerErrorException.php b/lib/Exception/GetGroupPageViewsByCityInternalServerErrorException.php new file mode 100644 index 0000000..c482d56 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByCityInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByCityServiceUnavailableException.php b/lib/Exception/GetGroupPageViewsByCityServiceUnavailableException.php new file mode 100644 index 0000000..c09a641 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByCityServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByCountryBadRequestException.php b/lib/Exception/GetGroupPageViewsByCountryBadRequestException.php new file mode 100644 index 0000000..f8bc5e1 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByCountryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByCountryForbiddenException.php b/lib/Exception/GetGroupPageViewsByCountryForbiddenException.php new file mode 100644 index 0000000..a4c5ad2 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByCountryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByCountryInternalServerErrorException.php b/lib/Exception/GetGroupPageViewsByCountryInternalServerErrorException.php new file mode 100644 index 0000000..88026a5 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByCountryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByCountryServiceUnavailableException.php b/lib/Exception/GetGroupPageViewsByCountryServiceUnavailableException.php new file mode 100644 index 0000000..4d1f2a7 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByCountryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByDeviceBadRequestException.php b/lib/Exception/GetGroupPageViewsByDeviceBadRequestException.php new file mode 100644 index 0000000..81c0647 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByDeviceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByDeviceForbiddenException.php b/lib/Exception/GetGroupPageViewsByDeviceForbiddenException.php new file mode 100644 index 0000000..b17ece7 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByDeviceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByDeviceInternalServerErrorException.php b/lib/Exception/GetGroupPageViewsByDeviceInternalServerErrorException.php new file mode 100644 index 0000000..445e237 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByDeviceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByDeviceServiceUnavailableException.php b/lib/Exception/GetGroupPageViewsByDeviceServiceUnavailableException.php new file mode 100644 index 0000000..faba63a --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByDeviceServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByReferrerBadRequestException.php b/lib/Exception/GetGroupPageViewsByReferrerBadRequestException.php new file mode 100644 index 0000000..4b9e9b9 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByReferrerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByReferrerForbiddenException.php b/lib/Exception/GetGroupPageViewsByReferrerForbiddenException.php new file mode 100644 index 0000000..ca8c028 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByReferrerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByReferrerInternalServerErrorException.php b/lib/Exception/GetGroupPageViewsByReferrerInternalServerErrorException.php new file mode 100644 index 0000000..9c7bb00 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByReferrerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsByReferrerServiceUnavailableException.php b/lib/Exception/GetGroupPageViewsByReferrerServiceUnavailableException.php new file mode 100644 index 0000000..4335615 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsByReferrerServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsOverTimeBadRequestException.php b/lib/Exception/GetGroupPageViewsOverTimeBadRequestException.php new file mode 100644 index 0000000..dadbb4f --- /dev/null +++ b/lib/Exception/GetGroupPageViewsOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsOverTimeForbiddenException.php b/lib/Exception/GetGroupPageViewsOverTimeForbiddenException.php new file mode 100644 index 0000000..825f77b --- /dev/null +++ b/lib/Exception/GetGroupPageViewsOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsOverTimeInternalServerErrorException.php b/lib/Exception/GetGroupPageViewsOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..22dbcda --- /dev/null +++ b/lib/Exception/GetGroupPageViewsOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPageViewsOverTimeServiceUnavailableException.php b/lib/Exception/GetGroupPageViewsOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..1fe9c61 --- /dev/null +++ b/lib/Exception/GetGroupPageViewsOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPagesOverviewBadRequestException.php b/lib/Exception/GetGroupPagesOverviewBadRequestException.php new file mode 100644 index 0000000..9702bc7 --- /dev/null +++ b/lib/Exception/GetGroupPagesOverviewBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPagesOverviewForbiddenException.php b/lib/Exception/GetGroupPagesOverviewForbiddenException.php new file mode 100644 index 0000000..09e2540 --- /dev/null +++ b/lib/Exception/GetGroupPagesOverviewForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPagesOverviewInternalServerErrorException.php b/lib/Exception/GetGroupPagesOverviewInternalServerErrorException.php new file mode 100644 index 0000000..487af66 --- /dev/null +++ b/lib/Exception/GetGroupPagesOverviewInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupPagesOverviewServiceUnavailableException.php b/lib/Exception/GetGroupPagesOverviewServiceUnavailableException.php new file mode 100644 index 0000000..7fd65cf --- /dev/null +++ b/lib/Exception/GetGroupPagesOverviewServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopButtonClicksBadRequestException.php b/lib/Exception/GetGroupTopButtonClicksBadRequestException.php new file mode 100644 index 0000000..9872341 --- /dev/null +++ b/lib/Exception/GetGroupTopButtonClicksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopButtonClicksForbiddenException.php b/lib/Exception/GetGroupTopButtonClicksForbiddenException.php new file mode 100644 index 0000000..9538424 --- /dev/null +++ b/lib/Exception/GetGroupTopButtonClicksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopButtonClicksInternalServerErrorException.php b/lib/Exception/GetGroupTopButtonClicksInternalServerErrorException.php new file mode 100644 index 0000000..76940b7 --- /dev/null +++ b/lib/Exception/GetGroupTopButtonClicksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopButtonClicksServiceUnavailableException.php b/lib/Exception/GetGroupTopButtonClicksServiceUnavailableException.php new file mode 100644 index 0000000..9c4f725 --- /dev/null +++ b/lib/Exception/GetGroupTopButtonClicksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopCodeScansBadRequestException.php b/lib/Exception/GetGroupTopCodeScansBadRequestException.php new file mode 100644 index 0000000..a0e61ac --- /dev/null +++ b/lib/Exception/GetGroupTopCodeScansBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopCodeScansForbiddenException.php b/lib/Exception/GetGroupTopCodeScansForbiddenException.php new file mode 100644 index 0000000..20c7c8d --- /dev/null +++ b/lib/Exception/GetGroupTopCodeScansForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopCodeScansInternalServerErrorException.php b/lib/Exception/GetGroupTopCodeScansInternalServerErrorException.php new file mode 100644 index 0000000..cb254c6 --- /dev/null +++ b/lib/Exception/GetGroupTopCodeScansInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopCodeScansServiceUnavailableException.php b/lib/Exception/GetGroupTopCodeScansServiceUnavailableException.php new file mode 100644 index 0000000..39ac7ba --- /dev/null +++ b/lib/Exception/GetGroupTopCodeScansServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopLinkClicksBadRequestException.php b/lib/Exception/GetGroupTopLinkClicksBadRequestException.php new file mode 100644 index 0000000..61803b7 --- /dev/null +++ b/lib/Exception/GetGroupTopLinkClicksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopLinkClicksForbiddenException.php b/lib/Exception/GetGroupTopLinkClicksForbiddenException.php new file mode 100644 index 0000000..447a230 --- /dev/null +++ b/lib/Exception/GetGroupTopLinkClicksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopLinkClicksInternalServerErrorException.php b/lib/Exception/GetGroupTopLinkClicksInternalServerErrorException.php new file mode 100644 index 0000000..07c09dc --- /dev/null +++ b/lib/Exception/GetGroupTopLinkClicksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupTopLinkClicksServiceUnavailableException.php b/lib/Exception/GetGroupTopLinkClicksServiceUnavailableException.php new file mode 100644 index 0000000..ea9761c --- /dev/null +++ b/lib/Exception/GetGroupTopLinkClicksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupsByLoginForbiddenException.php b/lib/Exception/GetGroupsByLoginForbiddenException.php new file mode 100644 index 0000000..d42d52c --- /dev/null +++ b/lib/Exception/GetGroupsByLoginForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetGroupsByLoginInternalServerErrorException.php b/lib/Exception/GetGroupsByLoginInternalServerErrorException.php new file mode 100644 index 0000000..392e30f --- /dev/null +++ b/lib/Exception/GetGroupsByLoginInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetImageByGUIDBadRequestException.php b/lib/Exception/GetImageByGUIDBadRequestException.php new file mode 100644 index 0000000..7b65fca --- /dev/null +++ b/lib/Exception/GetImageByGUIDBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetImageByGUIDForbiddenException.php b/lib/Exception/GetImageByGUIDForbiddenException.php new file mode 100644 index 0000000..c6db555 --- /dev/null +++ b/lib/Exception/GetImageByGUIDForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetImageByGUIDInternalServerErrorException.php b/lib/Exception/GetImageByGUIDInternalServerErrorException.php new file mode 100644 index 0000000..2e45e9f --- /dev/null +++ b/lib/Exception/GetImageByGUIDInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetImageByGUIDNotFoundException.php b/lib/Exception/GetImageByGUIDNotFoundException.php new file mode 100644 index 0000000..9133236 --- /dev/null +++ b/lib/Exception/GetImageByGUIDNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetImageByGUIDServiceUnavailableException.php b/lib/Exception/GetImageByGUIDServiceUnavailableException.php new file mode 100644 index 0000000..2607695 --- /dev/null +++ b/lib/Exception/GetImageByGUIDServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetIntegrationOAuthsByClientIDBadRequestException.php b/lib/Exception/GetIntegrationOAuthsByClientIDBadRequestException.php new file mode 100644 index 0000000..c86fece --- /dev/null +++ b/lib/Exception/GetIntegrationOAuthsByClientIDBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetIntegrationOAuthsByClientIDInternalServerErrorException.php b/lib/Exception/GetIntegrationOAuthsByClientIDInternalServerErrorException.php new file mode 100644 index 0000000..86eadbb --- /dev/null +++ b/lib/Exception/GetIntegrationOAuthsByClientIDInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetIntegrationOAuthsByClientIDServiceUnavailableException.php b/lib/Exception/GetIntegrationOAuthsByClientIDServiceUnavailableException.php new file mode 100644 index 0000000..1d66769 --- /dev/null +++ b/lib/Exception/GetIntegrationOAuthsByClientIDServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetInvitationsByLoginBadRequestException.php b/lib/Exception/GetInvitationsByLoginBadRequestException.php new file mode 100644 index 0000000..14e5e61 --- /dev/null +++ b/lib/Exception/GetInvitationsByLoginBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetInvitationsByLoginForbiddenException.php b/lib/Exception/GetInvitationsByLoginForbiddenException.php new file mode 100644 index 0000000..8e87267 --- /dev/null +++ b/lib/Exception/GetInvitationsByLoginForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetInvitationsByLoginInternalServerErrorException.php b/lib/Exception/GetInvitationsByLoginInternalServerErrorException.php new file mode 100644 index 0000000..270f78d --- /dev/null +++ b/lib/Exception/GetInvitationsByLoginInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetInvitationsForbiddenException.php b/lib/Exception/GetInvitationsForbiddenException.php new file mode 100644 index 0000000..b1ce088 --- /dev/null +++ b/lib/Exception/GetInvitationsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetInvitationsInternalServerErrorException.php b/lib/Exception/GetInvitationsInternalServerErrorException.php new file mode 100644 index 0000000..3d409be --- /dev/null +++ b/lib/Exception/GetInvitationsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeBadRequestException.php b/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeBadRequestException.php new file mode 100644 index 0000000..d8a243b --- /dev/null +++ b/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeForbiddenException.php b/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeForbiddenException.php new file mode 100644 index 0000000..5ff2da2 --- /dev/null +++ b/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php b/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..ce171a7 --- /dev/null +++ b/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php b/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..e48d5d0 --- /dev/null +++ b/lib/Exception/GetLaunchpadDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadForbiddenException.php b/lib/Exception/GetLaunchpadForbiddenException.php new file mode 100644 index 0000000..e8d8e13 --- /dev/null +++ b/lib/Exception/GetLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadImageByImageUseBadRequestException.php b/lib/Exception/GetLaunchpadImageByImageUseBadRequestException.php new file mode 100644 index 0000000..cbe3cc0 --- /dev/null +++ b/lib/Exception/GetLaunchpadImageByImageUseBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadImageByImageUseForbiddenException.php b/lib/Exception/GetLaunchpadImageByImageUseForbiddenException.php new file mode 100644 index 0000000..9f44e9c --- /dev/null +++ b/lib/Exception/GetLaunchpadImageByImageUseForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadImageByImageUseInternalServerErrorException.php b/lib/Exception/GetLaunchpadImageByImageUseInternalServerErrorException.php new file mode 100644 index 0000000..596d72e --- /dev/null +++ b/lib/Exception/GetLaunchpadImageByImageUseInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadImageByImageUseNotFoundException.php b/lib/Exception/GetLaunchpadImageByImageUseNotFoundException.php new file mode 100644 index 0000000..a29cd5a --- /dev/null +++ b/lib/Exception/GetLaunchpadImageByImageUseNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadImageByImageUseServiceUnavailableException.php b/lib/Exception/GetLaunchpadImageByImageUseServiceUnavailableException.php new file mode 100644 index 0000000..35247a0 --- /dev/null +++ b/lib/Exception/GetLaunchpadImageByImageUseServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadInternalServerErrorException.php b/lib/Exception/GetLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..28224df --- /dev/null +++ b/lib/Exception/GetLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadNotFoundException.php b/lib/Exception/GetLaunchpadNotFoundException.php new file mode 100644 index 0000000..a9f5a28 --- /dev/null +++ b/lib/Exception/GetLaunchpadNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadPresetThemesInternalServerErrorException.php b/lib/Exception/GetLaunchpadPresetThemesInternalServerErrorException.php new file mode 100644 index 0000000..d42c79a --- /dev/null +++ b/lib/Exception/GetLaunchpadPresetThemesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadPresetThemesServiceUnavailableException.php b/lib/Exception/GetLaunchpadPresetThemesServiceUnavailableException.php new file mode 100644 index 0000000..699a9f2 --- /dev/null +++ b/lib/Exception/GetLaunchpadPresetThemesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadServiceUnavailableException.php b/lib/Exception/GetLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..12dbd17 --- /dev/null +++ b/lib/Exception/GetLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadsForGroupForbiddenException.php b/lib/Exception/GetLaunchpadsForGroupForbiddenException.php new file mode 100644 index 0000000..ec045e4 --- /dev/null +++ b/lib/Exception/GetLaunchpadsForGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadsForGroupInternalServerErrorException.php b/lib/Exception/GetLaunchpadsForGroupInternalServerErrorException.php new file mode 100644 index 0000000..72b17ad --- /dev/null +++ b/lib/Exception/GetLaunchpadsForGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadsForGroupNotFoundException.php b/lib/Exception/GetLaunchpadsForGroupNotFoundException.php new file mode 100644 index 0000000..90196fc --- /dev/null +++ b/lib/Exception/GetLaunchpadsForGroupNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLaunchpadsForGroupServiceUnavailableException.php b/lib/Exception/GetLaunchpadsForGroupServiceUnavailableException.php new file mode 100644 index 0000000..986fa83 --- /dev/null +++ b/lib/Exception/GetLaunchpadsForGroupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDailySummaryBadRequestException.php b/lib/Exception/GetLinkEngagementsDailySummaryBadRequestException.php new file mode 100644 index 0000000..7e88361 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDailySummaryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDailySummaryForbiddenException.php b/lib/Exception/GetLinkEngagementsDailySummaryForbiddenException.php new file mode 100644 index 0000000..dd93602 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDailySummaryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDailySummaryInternalServerErrorException.php b/lib/Exception/GetLinkEngagementsDailySummaryInternalServerErrorException.php new file mode 100644 index 0000000..a45a762 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDailySummaryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDailySummaryNotFoundException.php b/lib/Exception/GetLinkEngagementsDailySummaryNotFoundException.php new file mode 100644 index 0000000..6d9b926 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDailySummaryNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDailySummaryServiceUnavailableException.php b/lib/Exception/GetLinkEngagementsDailySummaryServiceUnavailableException.php new file mode 100644 index 0000000..9061d3b --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDailySummaryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDailySummaryUnprocessableEntityException.php b/lib/Exception/GetLinkEngagementsDailySummaryUnprocessableEntityException.php new file mode 100644 index 0000000..3ba99ad --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDailySummaryUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDayDrillDownBadRequestException.php b/lib/Exception/GetLinkEngagementsDayDrillDownBadRequestException.php new file mode 100644 index 0000000..e73880d --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDayDrillDownBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDayDrillDownForbiddenException.php b/lib/Exception/GetLinkEngagementsDayDrillDownForbiddenException.php new file mode 100644 index 0000000..d5b9218 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDayDrillDownForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDayDrillDownInternalServerErrorException.php b/lib/Exception/GetLinkEngagementsDayDrillDownInternalServerErrorException.php new file mode 100644 index 0000000..9141ebf --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDayDrillDownInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDayDrillDownNotFoundException.php b/lib/Exception/GetLinkEngagementsDayDrillDownNotFoundException.php new file mode 100644 index 0000000..3afc95a --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDayDrillDownNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDayDrillDownServiceUnavailableException.php b/lib/Exception/GetLinkEngagementsDayDrillDownServiceUnavailableException.php new file mode 100644 index 0000000..7232745 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDayDrillDownServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsDayDrillDownUnprocessableEntityException.php b/lib/Exception/GetLinkEngagementsDayDrillDownUnprocessableEntityException.php new file mode 100644 index 0000000..27abb8d --- /dev/null +++ b/lib/Exception/GetLinkEngagementsDayDrillDownUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsReportBadRequestException.php b/lib/Exception/GetLinkEngagementsReportBadRequestException.php new file mode 100644 index 0000000..91aaa98 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsReportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsReportForbiddenException.php b/lib/Exception/GetLinkEngagementsReportForbiddenException.php new file mode 100644 index 0000000..a095db3 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsReportInternalServerErrorException.php b/lib/Exception/GetLinkEngagementsReportInternalServerErrorException.php new file mode 100644 index 0000000..ed090e4 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsReportNotFoundException.php b/lib/Exception/GetLinkEngagementsReportNotFoundException.php new file mode 100644 index 0000000..87cfbb4 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsReportServiceUnavailableException.php b/lib/Exception/GetLinkEngagementsReportServiceUnavailableException.php new file mode 100644 index 0000000..3fe0d69 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkEngagementsReportUnprocessableEntityException.php b/lib/Exception/GetLinkEngagementsReportUnprocessableEntityException.php new file mode 100644 index 0000000..dbb4ee7 --- /dev/null +++ b/lib/Exception/GetLinkEngagementsReportUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkPerformanceForLaunchpadForbiddenException.php b/lib/Exception/GetLinkPerformanceForLaunchpadForbiddenException.php new file mode 100644 index 0000000..9077cb3 --- /dev/null +++ b/lib/Exception/GetLinkPerformanceForLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkPerformanceForLaunchpadInternalServerErrorException.php b/lib/Exception/GetLinkPerformanceForLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..1d2b07e --- /dev/null +++ b/lib/Exception/GetLinkPerformanceForLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkPerformanceForLaunchpadNotFoundException.php b/lib/Exception/GetLinkPerformanceForLaunchpadNotFoundException.php new file mode 100644 index 0000000..40ffd81 --- /dev/null +++ b/lib/Exception/GetLinkPerformanceForLaunchpadNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkPerformanceForLaunchpadServiceUnavailableException.php b/lib/Exception/GetLinkPerformanceForLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..622a781 --- /dev/null +++ b/lib/Exception/GetLinkPerformanceForLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkPerformanceForSiteForbiddenException.php b/lib/Exception/GetLinkPerformanceForSiteForbiddenException.php new file mode 100644 index 0000000..8844b47 --- /dev/null +++ b/lib/Exception/GetLinkPerformanceForSiteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkPerformanceForSiteInternalServerErrorException.php b/lib/Exception/GetLinkPerformanceForSiteInternalServerErrorException.php new file mode 100644 index 0000000..5079a8b --- /dev/null +++ b/lib/Exception/GetLinkPerformanceForSiteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkPerformanceForSiteNotFoundException.php b/lib/Exception/GetLinkPerformanceForSiteNotFoundException.php new file mode 100644 index 0000000..1b046bf --- /dev/null +++ b/lib/Exception/GetLinkPerformanceForSiteNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetLinkPerformanceForSiteServiceUnavailableException.php b/lib/Exception/GetLinkPerformanceForSiteServiceUnavailableException.php new file mode 100644 index 0000000..ff05504 --- /dev/null +++ b/lib/Exception/GetLinkPerformanceForSiteServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCitiesBadRequestException.php b/lib/Exception/GetMetricsForLaunchpadByCitiesBadRequestException.php new file mode 100644 index 0000000..d2e79da --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCitiesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCitiesForbiddenException.php b/lib/Exception/GetMetricsForLaunchpadByCitiesForbiddenException.php new file mode 100644 index 0000000..bc69003 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCitiesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCitiesInternalServerErrorException.php b/lib/Exception/GetMetricsForLaunchpadByCitiesInternalServerErrorException.php new file mode 100644 index 0000000..be73a4a --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCitiesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCitiesNotFoundException.php b/lib/Exception/GetMetricsForLaunchpadByCitiesNotFoundException.php new file mode 100644 index 0000000..f011a60 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCitiesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCitiesPaymentRequiredException.php b/lib/Exception/GetMetricsForLaunchpadByCitiesPaymentRequiredException.php new file mode 100644 index 0000000..fb57dfe --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCitiesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCitiesServiceUnavailableException.php b/lib/Exception/GetMetricsForLaunchpadByCitiesServiceUnavailableException.php new file mode 100644 index 0000000..0245bbc --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCitiesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCountriesBadRequestException.php b/lib/Exception/GetMetricsForLaunchpadByCountriesBadRequestException.php new file mode 100644 index 0000000..ea78b0d --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCountriesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCountriesForbiddenException.php b/lib/Exception/GetMetricsForLaunchpadByCountriesForbiddenException.php new file mode 100644 index 0000000..41ab588 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCountriesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCountriesInternalServerErrorException.php b/lib/Exception/GetMetricsForLaunchpadByCountriesInternalServerErrorException.php new file mode 100644 index 0000000..a3b3e96 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCountriesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCountriesNotFoundException.php b/lib/Exception/GetMetricsForLaunchpadByCountriesNotFoundException.php new file mode 100644 index 0000000..9476be4 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCountriesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByCountriesServiceUnavailableException.php b/lib/Exception/GetMetricsForLaunchpadByCountriesServiceUnavailableException.php new file mode 100644 index 0000000..64f3c25 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByCountriesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByDevicesBadRequestException.php b/lib/Exception/GetMetricsForLaunchpadByDevicesBadRequestException.php new file mode 100644 index 0000000..35215c6 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByDevicesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByDevicesForbiddenException.php b/lib/Exception/GetMetricsForLaunchpadByDevicesForbiddenException.php new file mode 100644 index 0000000..f5a9c67 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByDevicesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByDevicesInternalServerErrorException.php b/lib/Exception/GetMetricsForLaunchpadByDevicesInternalServerErrorException.php new file mode 100644 index 0000000..eb0e223 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByDevicesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByDevicesNotFoundException.php b/lib/Exception/GetMetricsForLaunchpadByDevicesNotFoundException.php new file mode 100644 index 0000000..a0645e2 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByDevicesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByDevicesPaymentRequiredException.php b/lib/Exception/GetMetricsForLaunchpadByDevicesPaymentRequiredException.php new file mode 100644 index 0000000..c301d85 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByDevicesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByDevicesServiceUnavailableException.php b/lib/Exception/GetMetricsForLaunchpadByDevicesServiceUnavailableException.php new file mode 100644 index 0000000..307f745 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByDevicesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByReferrersBadRequestException.php b/lib/Exception/GetMetricsForLaunchpadByReferrersBadRequestException.php new file mode 100644 index 0000000..0890eb9 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByReferrersBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByReferrersForbiddenException.php b/lib/Exception/GetMetricsForLaunchpadByReferrersForbiddenException.php new file mode 100644 index 0000000..a640200 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByReferrersForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByReferrersInternalServerErrorException.php b/lib/Exception/GetMetricsForLaunchpadByReferrersInternalServerErrorException.php new file mode 100644 index 0000000..43e728c --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByReferrersInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByReferrersNotFoundException.php b/lib/Exception/GetMetricsForLaunchpadByReferrersNotFoundException.php new file mode 100644 index 0000000..9285687 --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByReferrersNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForLaunchpadByReferrersServiceUnavailableException.php b/lib/Exception/GetMetricsForLaunchpadByReferrersServiceUnavailableException.php new file mode 100644 index 0000000..bea67fc --- /dev/null +++ b/lib/Exception/GetMetricsForLaunchpadByReferrersServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByCitiesBadRequestException.php b/lib/Exception/GetMetricsForSiteByCitiesBadRequestException.php new file mode 100644 index 0000000..4e845b7 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByCitiesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByCitiesForbiddenException.php b/lib/Exception/GetMetricsForSiteByCitiesForbiddenException.php new file mode 100644 index 0000000..24cf2b4 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByCitiesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByCitiesInternalServerErrorException.php b/lib/Exception/GetMetricsForSiteByCitiesInternalServerErrorException.php new file mode 100644 index 0000000..2256183 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByCitiesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByCitiesNotFoundException.php b/lib/Exception/GetMetricsForSiteByCitiesNotFoundException.php new file mode 100644 index 0000000..92bcfd1 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByCitiesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByCitiesPaymentRequiredException.php b/lib/Exception/GetMetricsForSiteByCitiesPaymentRequiredException.php new file mode 100644 index 0000000..3758b17 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByCitiesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByCitiesServiceUnavailableException.php b/lib/Exception/GetMetricsForSiteByCitiesServiceUnavailableException.php new file mode 100644 index 0000000..45f0ef3 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByCitiesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByDevicesBadRequestException.php b/lib/Exception/GetMetricsForSiteByDevicesBadRequestException.php new file mode 100644 index 0000000..d0357f5 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByDevicesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByDevicesForbiddenException.php b/lib/Exception/GetMetricsForSiteByDevicesForbiddenException.php new file mode 100644 index 0000000..51ed196 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByDevicesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByDevicesInternalServerErrorException.php b/lib/Exception/GetMetricsForSiteByDevicesInternalServerErrorException.php new file mode 100644 index 0000000..d7c5193 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByDevicesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByDevicesNotFoundException.php b/lib/Exception/GetMetricsForSiteByDevicesNotFoundException.php new file mode 100644 index 0000000..6868cb7 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByDevicesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByDevicesPaymentRequiredException.php b/lib/Exception/GetMetricsForSiteByDevicesPaymentRequiredException.php new file mode 100644 index 0000000..8a2e871 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByDevicesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByDevicesServiceUnavailableException.php b/lib/Exception/GetMetricsForSiteByDevicesServiceUnavailableException.php new file mode 100644 index 0000000..2854501 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByDevicesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByReferrersBadRequestException.php b/lib/Exception/GetMetricsForSiteByReferrersBadRequestException.php new file mode 100644 index 0000000..f4bfff5 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByReferrersBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByReferrersForbiddenException.php b/lib/Exception/GetMetricsForSiteByReferrersForbiddenException.php new file mode 100644 index 0000000..013eba0 --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByReferrersForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByReferrersInternalServerErrorException.php b/lib/Exception/GetMetricsForSiteByReferrersInternalServerErrorException.php new file mode 100644 index 0000000..f461f1f --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByReferrersInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByReferrersNotFoundException.php b/lib/Exception/GetMetricsForSiteByReferrersNotFoundException.php new file mode 100644 index 0000000..63009ec --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByReferrersNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSiteByReferrersServiceUnavailableException.php b/lib/Exception/GetMetricsForSiteByReferrersServiceUnavailableException.php new file mode 100644 index 0000000..3710e6c --- /dev/null +++ b/lib/Exception/GetMetricsForSiteByReferrersServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSitesByCountriesBadRequestException.php b/lib/Exception/GetMetricsForSitesByCountriesBadRequestException.php new file mode 100644 index 0000000..268a29d --- /dev/null +++ b/lib/Exception/GetMetricsForSitesByCountriesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSitesByCountriesForbiddenException.php b/lib/Exception/GetMetricsForSitesByCountriesForbiddenException.php new file mode 100644 index 0000000..3c8e0f5 --- /dev/null +++ b/lib/Exception/GetMetricsForSitesByCountriesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSitesByCountriesInternalServerErrorException.php b/lib/Exception/GetMetricsForSitesByCountriesInternalServerErrorException.php new file mode 100644 index 0000000..9eb1bf1 --- /dev/null +++ b/lib/Exception/GetMetricsForSitesByCountriesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSitesByCountriesNotFoundException.php b/lib/Exception/GetMetricsForSitesByCountriesNotFoundException.php new file mode 100644 index 0000000..4f5114c --- /dev/null +++ b/lib/Exception/GetMetricsForSitesByCountriesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetMetricsForSitesByCountriesServiceUnavailableException.php b/lib/Exception/GetMetricsForSitesByCountriesServiceUnavailableException.php new file mode 100644 index 0000000..c356457 --- /dev/null +++ b/lib/Exception/GetMetricsForSitesByCountriesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOAuthAppsBadRequestException.php b/lib/Exception/GetOAuthAppsBadRequestException.php new file mode 100644 index 0000000..b6eccfc --- /dev/null +++ b/lib/Exception/GetOAuthAppsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOAuthAppsInternalServerErrorException.php b/lib/Exception/GetOAuthAppsInternalServerErrorException.php new file mode 100644 index 0000000..b5bd457 --- /dev/null +++ b/lib/Exception/GetOAuthAppsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOAuthAppsNotFoundException.php b/lib/Exception/GetOAuthAppsNotFoundException.php new file mode 100644 index 0000000..2edf78d --- /dev/null +++ b/lib/Exception/GetOAuthAppsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOAuthAppsServiceUnavailableException.php b/lib/Exception/GetOAuthAppsServiceUnavailableException.php new file mode 100644 index 0000000..869832e --- /dev/null +++ b/lib/Exception/GetOAuthAppsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOAuthAuthorizationsInternalServerErrorException.php b/lib/Exception/GetOAuthAuthorizationsInternalServerErrorException.php new file mode 100644 index 0000000..6c6738b --- /dev/null +++ b/lib/Exception/GetOAuthAuthorizationsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOAuthAuthorizationsNotFoundException.php b/lib/Exception/GetOAuthAuthorizationsNotFoundException.php new file mode 100644 index 0000000..ea81d00 --- /dev/null +++ b/lib/Exception/GetOAuthAuthorizationsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOAuthAuthorizationsServiceUnavailableException.php b/lib/Exception/GetOAuthAuthorizationsServiceUnavailableException.php new file mode 100644 index 0000000..89a9e8a --- /dev/null +++ b/lib/Exception/GetOAuthAuthorizationsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgDomainsStatusBadRequestException.php b/lib/Exception/GetOrgDomainsStatusBadRequestException.php new file mode 100644 index 0000000..b3aec08 --- /dev/null +++ b/lib/Exception/GetOrgDomainsStatusBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgDomainsStatusForbiddenException.php b/lib/Exception/GetOrgDomainsStatusForbiddenException.php new file mode 100644 index 0000000..6b8833f --- /dev/null +++ b/lib/Exception/GetOrgDomainsStatusForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgDomainsStatusInternalServerErrorException.php b/lib/Exception/GetOrgDomainsStatusInternalServerErrorException.php new file mode 100644 index 0000000..5e08c21 --- /dev/null +++ b/lib/Exception/GetOrgDomainsStatusInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgDomainsStatusTooManyRequestsException.php b/lib/Exception/GetOrgDomainsStatusTooManyRequestsException.php new file mode 100644 index 0000000..77004ab --- /dev/null +++ b/lib/Exception/GetOrgDomainsStatusTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgEmailsForbiddenException.php b/lib/Exception/GetOrgEmailsForbiddenException.php new file mode 100644 index 0000000..3846b69 --- /dev/null +++ b/lib/Exception/GetOrgEmailsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgEmailsInternalServerErrorException.php b/lib/Exception/GetOrgEmailsInternalServerErrorException.php new file mode 100644 index 0000000..0308090 --- /dev/null +++ b/lib/Exception/GetOrgEmailsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgEmailsNotFoundException.php b/lib/Exception/GetOrgEmailsNotFoundException.php new file mode 100644 index 0000000..7a4acf3 --- /dev/null +++ b/lib/Exception/GetOrgEmailsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgEmailsServiceUnavailableException.php b/lib/Exception/GetOrgEmailsServiceUnavailableException.php new file mode 100644 index 0000000..e966be4 --- /dev/null +++ b/lib/Exception/GetOrgEmailsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgInvitationRequestsBadRequestException.php b/lib/Exception/GetOrgInvitationRequestsBadRequestException.php new file mode 100644 index 0000000..66dbc43 --- /dev/null +++ b/lib/Exception/GetOrgInvitationRequestsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgInvitationRequestsForbiddenException.php b/lib/Exception/GetOrgInvitationRequestsForbiddenException.php new file mode 100644 index 0000000..2946d1f --- /dev/null +++ b/lib/Exception/GetOrgInvitationRequestsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgInvitationRequestsInternalServerErrorException.php b/lib/Exception/GetOrgInvitationRequestsInternalServerErrorException.php new file mode 100644 index 0000000..466b607 --- /dev/null +++ b/lib/Exception/GetOrgInvitationRequestsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrgPreferencesInternalServerErrorException.php b/lib/Exception/GetOrgPreferencesInternalServerErrorException.php new file mode 100644 index 0000000..e01cdb1 --- /dev/null +++ b/lib/Exception/GetOrgPreferencesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationActivityLogEntryForbiddenException.php b/lib/Exception/GetOrganizationActivityLogEntryForbiddenException.php new file mode 100644 index 0000000..8c83cd8 --- /dev/null +++ b/lib/Exception/GetOrganizationActivityLogEntryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationActivityLogEntryInternalServerErrorException.php b/lib/Exception/GetOrganizationActivityLogEntryInternalServerErrorException.php new file mode 100644 index 0000000..f5cd142 --- /dev/null +++ b/lib/Exception/GetOrganizationActivityLogEntryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationActivityLogEntryServiceUnavailableException.php b/lib/Exception/GetOrganizationActivityLogEntryServiceUnavailableException.php new file mode 100644 index 0000000..bc8730d --- /dev/null +++ b/lib/Exception/GetOrganizationActivityLogEntryServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationActivityLogForbiddenException.php b/lib/Exception/GetOrganizationActivityLogForbiddenException.php new file mode 100644 index 0000000..64f773f --- /dev/null +++ b/lib/Exception/GetOrganizationActivityLogForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationActivityLogInternalServerErrorException.php b/lib/Exception/GetOrganizationActivityLogInternalServerErrorException.php new file mode 100644 index 0000000..d5028b0 --- /dev/null +++ b/lib/Exception/GetOrganizationActivityLogInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationActivityLogServiceUnavailableException.php b/lib/Exception/GetOrganizationActivityLogServiceUnavailableException.php new file mode 100644 index 0000000..b429818 --- /dev/null +++ b/lib/Exception/GetOrganizationActivityLogServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationFeatureUsageByGroupBadRequestException.php b/lib/Exception/GetOrganizationFeatureUsageByGroupBadRequestException.php new file mode 100644 index 0000000..f383728 --- /dev/null +++ b/lib/Exception/GetOrganizationFeatureUsageByGroupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationFeatureUsageByGroupForbiddenException.php b/lib/Exception/GetOrganizationFeatureUsageByGroupForbiddenException.php new file mode 100644 index 0000000..74356db --- /dev/null +++ b/lib/Exception/GetOrganizationFeatureUsageByGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationFeatureUsageByGroupInternalServerErrorException.php b/lib/Exception/GetOrganizationFeatureUsageByGroupInternalServerErrorException.php new file mode 100644 index 0000000..dad90ec --- /dev/null +++ b/lib/Exception/GetOrganizationFeatureUsageByGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationFeatureUsageForbiddenException.php b/lib/Exception/GetOrganizationFeatureUsageForbiddenException.php new file mode 100644 index 0000000..e7b00a0 --- /dev/null +++ b/lib/Exception/GetOrganizationFeatureUsageForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationFeatureUsageInternalServerErrorException.php b/lib/Exception/GetOrganizationFeatureUsageInternalServerErrorException.php new file mode 100644 index 0000000..1edc2a9 --- /dev/null +++ b/lib/Exception/GetOrganizationFeatureUsageInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationFeatureUsageServiceUnavailableException.php b/lib/Exception/GetOrganizationFeatureUsageServiceUnavailableException.php new file mode 100644 index 0000000..e6a85f4 --- /dev/null +++ b/lib/Exception/GetOrganizationFeatureUsageServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupBadRequestException.php b/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupBadRequestException.php new file mode 100644 index 0000000..4a66a0c --- /dev/null +++ b/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupForbiddenException.php b/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupForbiddenException.php new file mode 100644 index 0000000..53bb489 --- /dev/null +++ b/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupInternalServerErrorException.php b/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupInternalServerErrorException.php new file mode 100644 index 0000000..055313e --- /dev/null +++ b/lib/Exception/GetOrganizationHistoricalUsageTotalsByGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationSSOSettingsForbiddenException.php b/lib/Exception/GetOrganizationSSOSettingsForbiddenException.php new file mode 100644 index 0000000..ae4ac7d --- /dev/null +++ b/lib/Exception/GetOrganizationSSOSettingsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationSSOSettingsInternalServerErrorException.php b/lib/Exception/GetOrganizationSSOSettingsInternalServerErrorException.php new file mode 100644 index 0000000..a61f936 --- /dev/null +++ b/lib/Exception/GetOrganizationSSOSettingsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationSSOSettingsNotFoundException.php b/lib/Exception/GetOrganizationSSOSettingsNotFoundException.php new file mode 100644 index 0000000..9dd5b0b --- /dev/null +++ b/lib/Exception/GetOrganizationSSOSettingsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationSSOSettingsPaymentRequiredException.php b/lib/Exception/GetOrganizationSSOSettingsPaymentRequiredException.php new file mode 100644 index 0000000..47b8777 --- /dev/null +++ b/lib/Exception/GetOrganizationSSOSettingsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationSSOSettingsServiceUnavailableException.php b/lib/Exception/GetOrganizationSSOSettingsServiceUnavailableException.php new file mode 100644 index 0000000..aacffb0 --- /dev/null +++ b/lib/Exception/GetOrganizationSSOSettingsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationStripeInfoBadRequestException.php b/lib/Exception/GetOrganizationStripeInfoBadRequestException.php new file mode 100644 index 0000000..acfd8a1 --- /dev/null +++ b/lib/Exception/GetOrganizationStripeInfoBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationStripeInfoForbiddenException.php b/lib/Exception/GetOrganizationStripeInfoForbiddenException.php new file mode 100644 index 0000000..7cdddcd --- /dev/null +++ b/lib/Exception/GetOrganizationStripeInfoForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOrganizationStripeInfoInternalServerErrorException.php b/lib/Exception/GetOrganizationStripeInfoInternalServerErrorException.php new file mode 100644 index 0000000..8bd2e06 --- /dev/null +++ b/lib/Exception/GetOrganizationStripeInfoInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideHistoryForBitlinkForbiddenException.php b/lib/Exception/GetOverrideHistoryForBitlinkForbiddenException.php new file mode 100644 index 0000000..4eaba6f --- /dev/null +++ b/lib/Exception/GetOverrideHistoryForBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideHistoryForBitlinkInternalServerErrorException.php b/lib/Exception/GetOverrideHistoryForBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..86e20f7 --- /dev/null +++ b/lib/Exception/GetOverrideHistoryForBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideHistoryForBitlinkNotFoundException.php b/lib/Exception/GetOverrideHistoryForBitlinkNotFoundException.php new file mode 100644 index 0000000..091b18f --- /dev/null +++ b/lib/Exception/GetOverrideHistoryForBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideHistoryForBitlinkPaymentRequiredException.php b/lib/Exception/GetOverrideHistoryForBitlinkPaymentRequiredException.php new file mode 100644 index 0000000..09235e3 --- /dev/null +++ b/lib/Exception/GetOverrideHistoryForBitlinkPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideHistoryForBitlinkServiceUnavailableException.php b/lib/Exception/GetOverrideHistoryForBitlinkServiceUnavailableException.php new file mode 100644 index 0000000..0cd8ecd --- /dev/null +++ b/lib/Exception/GetOverrideHistoryForBitlinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideHistoryForBitlinkTooManyRequestsException.php b/lib/Exception/GetOverrideHistoryForBitlinkTooManyRequestsException.php new file mode 100644 index 0000000..1fbc665 --- /dev/null +++ b/lib/Exception/GetOverrideHistoryForBitlinkTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideMetricsByVersionBadRequestException.php b/lib/Exception/GetOverrideMetricsByVersionBadRequestException.php new file mode 100644 index 0000000..ead96a7 --- /dev/null +++ b/lib/Exception/GetOverrideMetricsByVersionBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideMetricsByVersionForbiddenException.php b/lib/Exception/GetOverrideMetricsByVersionForbiddenException.php new file mode 100644 index 0000000..203bbba --- /dev/null +++ b/lib/Exception/GetOverrideMetricsByVersionForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideMetricsByVersionGoneException.php b/lib/Exception/GetOverrideMetricsByVersionGoneException.php new file mode 100644 index 0000000..479d46f --- /dev/null +++ b/lib/Exception/GetOverrideMetricsByVersionGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideMetricsByVersionInternalServerErrorException.php b/lib/Exception/GetOverrideMetricsByVersionInternalServerErrorException.php new file mode 100644 index 0000000..a7ae458 --- /dev/null +++ b/lib/Exception/GetOverrideMetricsByVersionInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideMetricsByVersionNotFoundException.php b/lib/Exception/GetOverrideMetricsByVersionNotFoundException.php new file mode 100644 index 0000000..0b023eb --- /dev/null +++ b/lib/Exception/GetOverrideMetricsByVersionNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideMetricsByVersionPaymentRequiredException.php b/lib/Exception/GetOverrideMetricsByVersionPaymentRequiredException.php new file mode 100644 index 0000000..662767c --- /dev/null +++ b/lib/Exception/GetOverrideMetricsByVersionPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverrideMetricsByVersionServiceUnavailableException.php b/lib/Exception/GetOverrideMetricsByVersionServiceUnavailableException.php new file mode 100644 index 0000000..d47add7 --- /dev/null +++ b/lib/Exception/GetOverrideMetricsByVersionServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForBitlinkForbiddenException.php b/lib/Exception/GetOverridesForBitlinkForbiddenException.php new file mode 100644 index 0000000..f7db6dc --- /dev/null +++ b/lib/Exception/GetOverridesForBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForBitlinkGoneException.php b/lib/Exception/GetOverridesForBitlinkGoneException.php new file mode 100644 index 0000000..6b5a45e --- /dev/null +++ b/lib/Exception/GetOverridesForBitlinkGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForBitlinkInternalServerErrorException.php b/lib/Exception/GetOverridesForBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..632c324 --- /dev/null +++ b/lib/Exception/GetOverridesForBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForBitlinkNotFoundException.php b/lib/Exception/GetOverridesForBitlinkNotFoundException.php new file mode 100644 index 0000000..db534a1 --- /dev/null +++ b/lib/Exception/GetOverridesForBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForBitlinkPaymentRequiredException.php b/lib/Exception/GetOverridesForBitlinkPaymentRequiredException.php new file mode 100644 index 0000000..dbd21a5 --- /dev/null +++ b/lib/Exception/GetOverridesForBitlinkPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForBitlinkServiceUnavailableException.php b/lib/Exception/GetOverridesForBitlinkServiceUnavailableException.php new file mode 100644 index 0000000..9be807b --- /dev/null +++ b/lib/Exception/GetOverridesForBitlinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForGroupsBadRequestException.php b/lib/Exception/GetOverridesForGroupsBadRequestException.php new file mode 100644 index 0000000..aa5507b --- /dev/null +++ b/lib/Exception/GetOverridesForGroupsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForGroupsForbiddenException.php b/lib/Exception/GetOverridesForGroupsForbiddenException.php new file mode 100644 index 0000000..e759d7a --- /dev/null +++ b/lib/Exception/GetOverridesForGroupsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForGroupsInternalServerErrorException.php b/lib/Exception/GetOverridesForGroupsInternalServerErrorException.php new file mode 100644 index 0000000..86795a4 --- /dev/null +++ b/lib/Exception/GetOverridesForGroupsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForGroupsNotFoundException.php b/lib/Exception/GetOverridesForGroupsNotFoundException.php new file mode 100644 index 0000000..5642efe --- /dev/null +++ b/lib/Exception/GetOverridesForGroupsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForGroupsPaymentRequiredException.php b/lib/Exception/GetOverridesForGroupsPaymentRequiredException.php new file mode 100644 index 0000000..118cc37 --- /dev/null +++ b/lib/Exception/GetOverridesForGroupsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetOverridesForGroupsServiceUnavailableException.php b/lib/Exception/GetOverridesForGroupsServiceUnavailableException.php new file mode 100644 index 0000000..4c26cda --- /dev/null +++ b/lib/Exception/GetOverridesForGroupsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPaymentInvoiceFileForbiddenException.php b/lib/Exception/GetPaymentInvoiceFileForbiddenException.php new file mode 100644 index 0000000..4424394 --- /dev/null +++ b/lib/Exception/GetPaymentInvoiceFileForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPaymentInvoiceFileInternalServerErrorException.php b/lib/Exception/GetPaymentInvoiceFileInternalServerErrorException.php new file mode 100644 index 0000000..e0f8cb3 --- /dev/null +++ b/lib/Exception/GetPaymentInvoiceFileInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPaymentInvoiceFileNotFoundException.php b/lib/Exception/GetPaymentInvoiceFileNotFoundException.php new file mode 100644 index 0000000..24d9a8a --- /dev/null +++ b/lib/Exception/GetPaymentInvoiceFileNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPaymentInvoiceForbiddenException.php b/lib/Exception/GetPaymentInvoiceForbiddenException.php new file mode 100644 index 0000000..3d43de9 --- /dev/null +++ b/lib/Exception/GetPaymentInvoiceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPaymentInvoiceInternalServerErrorException.php b/lib/Exception/GetPaymentInvoiceInternalServerErrorException.php new file mode 100644 index 0000000..3e8c469 --- /dev/null +++ b/lib/Exception/GetPaymentInvoiceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPaymentInvoicesForbiddenException.php b/lib/Exception/GetPaymentInvoicesForbiddenException.php new file mode 100644 index 0000000..4dd238f --- /dev/null +++ b/lib/Exception/GetPaymentInvoicesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPaymentInvoicesInternalServerErrorException.php b/lib/Exception/GetPaymentInvoicesInternalServerErrorException.php new file mode 100644 index 0000000..4c58c01 --- /dev/null +++ b/lib/Exception/GetPaymentInvoicesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPendingTierForOrgForbiddenException.php b/lib/Exception/GetPendingTierForOrgForbiddenException.php new file mode 100644 index 0000000..554a0ef --- /dev/null +++ b/lib/Exception/GetPendingTierForOrgForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPendingTierForOrgInternalServerErrorException.php b/lib/Exception/GetPendingTierForOrgInternalServerErrorException.php new file mode 100644 index 0000000..14d36c7 --- /dev/null +++ b/lib/Exception/GetPendingTierForOrgInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPendingTierForOrgNotFoundException.php b/lib/Exception/GetPendingTierForOrgNotFoundException.php new file mode 100644 index 0000000..2b0f8af --- /dev/null +++ b/lib/Exception/GetPendingTierForOrgNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPrivateGeoInternalServerErrorException.php b/lib/Exception/GetPrivateGeoInternalServerErrorException.php new file mode 100644 index 0000000..a39f5b9 --- /dev/null +++ b/lib/Exception/GetPrivateGeoInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetProductUtilizationBadRequestException.php b/lib/Exception/GetProductUtilizationBadRequestException.php new file mode 100644 index 0000000..5ea0bb2 --- /dev/null +++ b/lib/Exception/GetProductUtilizationBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetProductUtilizationForbiddenException.php b/lib/Exception/GetProductUtilizationForbiddenException.php new file mode 100644 index 0000000..b139365 --- /dev/null +++ b/lib/Exception/GetProductUtilizationForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetProductUtilizationInternalServerErrorException.php b/lib/Exception/GetProductUtilizationInternalServerErrorException.php new file mode 100644 index 0000000..20dc0ff --- /dev/null +++ b/lib/Exception/GetProductUtilizationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPromoCodeValidPlansInternalServerErrorException.php b/lib/Exception/GetPromoCodeValidPlansInternalServerErrorException.php new file mode 100644 index 0000000..52892f8 --- /dev/null +++ b/lib/Exception/GetPromoCodeValidPlansInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetPromoCodeValidPlansServiceUnavailableException.php b/lib/Exception/GetPromoCodeValidPlansServiceUnavailableException.php new file mode 100644 index 0000000..434ba99 --- /dev/null +++ b/lib/Exception/GetPromoCodeValidPlansServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCHistoryBadRequestException.php b/lib/Exception/GetQRCHistoryBadRequestException.php new file mode 100644 index 0000000..479b8b6 --- /dev/null +++ b/lib/Exception/GetQRCHistoryBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCHistoryForbiddenException.php b/lib/Exception/GetQRCHistoryForbiddenException.php new file mode 100644 index 0000000..139cfe9 --- /dev/null +++ b/lib/Exception/GetQRCHistoryForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCHistoryInternalServerErrorException.php b/lib/Exception/GetQRCHistoryInternalServerErrorException.php new file mode 100644 index 0000000..ae21407 --- /dev/null +++ b/lib/Exception/GetQRCHistoryInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCHistoryTooManyRequestsException.php b/lib/Exception/GetQRCHistoryTooManyRequestsException.php new file mode 100644 index 0000000..3de6e60 --- /dev/null +++ b/lib/Exception/GetQRCHistoryTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByBitlinkIdBadRequestException.php b/lib/Exception/GetQRCodeByBitlinkIdBadRequestException.php new file mode 100644 index 0000000..1f47bf2 --- /dev/null +++ b/lib/Exception/GetQRCodeByBitlinkIdBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByBitlinkIdForbiddenException.php b/lib/Exception/GetQRCodeByBitlinkIdForbiddenException.php new file mode 100644 index 0000000..803b906 --- /dev/null +++ b/lib/Exception/GetQRCodeByBitlinkIdForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByBitlinkIdGoneException.php b/lib/Exception/GetQRCodeByBitlinkIdGoneException.php new file mode 100644 index 0000000..8bab533 --- /dev/null +++ b/lib/Exception/GetQRCodeByBitlinkIdGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByBitlinkIdInternalServerErrorException.php b/lib/Exception/GetQRCodeByBitlinkIdInternalServerErrorException.php new file mode 100644 index 0000000..ed8ee81 --- /dev/null +++ b/lib/Exception/GetQRCodeByBitlinkIdInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByBitlinkIdNotFoundException.php b/lib/Exception/GetQRCodeByBitlinkIdNotFoundException.php new file mode 100644 index 0000000..8c69700 --- /dev/null +++ b/lib/Exception/GetQRCodeByBitlinkIdNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByIdBadRequestException.php b/lib/Exception/GetQRCodeByIdBadRequestException.php new file mode 100644 index 0000000..51fd80c --- /dev/null +++ b/lib/Exception/GetQRCodeByIdBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByIdForbiddenException.php b/lib/Exception/GetQRCodeByIdForbiddenException.php new file mode 100644 index 0000000..3077c7b --- /dev/null +++ b/lib/Exception/GetQRCodeByIdForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByIdGoneException.php b/lib/Exception/GetQRCodeByIdGoneException.php new file mode 100644 index 0000000..0e8dbd8 --- /dev/null +++ b/lib/Exception/GetQRCodeByIdGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByIdInternalServerErrorException.php b/lib/Exception/GetQRCodeByIdInternalServerErrorException.php new file mode 100644 index 0000000..cc8ba80 --- /dev/null +++ b/lib/Exception/GetQRCodeByIdInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeByIdNotFoundException.php b/lib/Exception/GetQRCodeByIdNotFoundException.php new file mode 100644 index 0000000..68476fc --- /dev/null +++ b/lib/Exception/GetQRCodeByIdNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeCustomizationOptionsBadRequestException.php b/lib/Exception/GetQRCodeCustomizationOptionsBadRequestException.php new file mode 100644 index 0000000..f37b44b --- /dev/null +++ b/lib/Exception/GetQRCodeCustomizationOptionsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeCustomizationOptionsForbiddenException.php b/lib/Exception/GetQRCodeCustomizationOptionsForbiddenException.php new file mode 100644 index 0000000..931fe75 --- /dev/null +++ b/lib/Exception/GetQRCodeCustomizationOptionsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeCustomizationOptionsInternalServerErrorException.php b/lib/Exception/GetQRCodeCustomizationOptionsInternalServerErrorException.php new file mode 100644 index 0000000..d22232a --- /dev/null +++ b/lib/Exception/GetQRCodeCustomizationOptionsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeCustomizationOptionsNotFoundException.php b/lib/Exception/GetQRCodeCustomizationOptionsNotFoundException.php new file mode 100644 index 0000000..9975d06 --- /dev/null +++ b/lib/Exception/GetQRCodeCustomizationOptionsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeOverrideMetricsByVersionBadRequestException.php b/lib/Exception/GetQRCodeOverrideMetricsByVersionBadRequestException.php new file mode 100644 index 0000000..c5dfa70 --- /dev/null +++ b/lib/Exception/GetQRCodeOverrideMetricsByVersionBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeOverrideMetricsByVersionForbiddenException.php b/lib/Exception/GetQRCodeOverrideMetricsByVersionForbiddenException.php new file mode 100644 index 0000000..ab28196 --- /dev/null +++ b/lib/Exception/GetQRCodeOverrideMetricsByVersionForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeOverrideMetricsByVersionGoneException.php b/lib/Exception/GetQRCodeOverrideMetricsByVersionGoneException.php new file mode 100644 index 0000000..4308d62 --- /dev/null +++ b/lib/Exception/GetQRCodeOverrideMetricsByVersionGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeOverrideMetricsByVersionInternalServerErrorException.php b/lib/Exception/GetQRCodeOverrideMetricsByVersionInternalServerErrorException.php new file mode 100644 index 0000000..eb1a605 --- /dev/null +++ b/lib/Exception/GetQRCodeOverrideMetricsByVersionInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeOverrideMetricsByVersionNotFoundException.php b/lib/Exception/GetQRCodeOverrideMetricsByVersionNotFoundException.php new file mode 100644 index 0000000..1d7139e --- /dev/null +++ b/lib/Exception/GetQRCodeOverrideMetricsByVersionNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeOverrideMetricsByVersionPaymentRequiredException.php b/lib/Exception/GetQRCodeOverrideMetricsByVersionPaymentRequiredException.php new file mode 100644 index 0000000..0990314 --- /dev/null +++ b/lib/Exception/GetQRCodeOverrideMetricsByVersionPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeOverrideMetricsByVersionServiceUnavailableException.php b/lib/Exception/GetQRCodeOverrideMetricsByVersionServiceUnavailableException.php new file mode 100644 index 0000000..5a75d6b --- /dev/null +++ b/lib/Exception/GetQRCodeOverrideMetricsByVersionServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeTemplatesBadRequestException.php b/lib/Exception/GetQRCodeTemplatesBadRequestException.php new file mode 100644 index 0000000..7939206 --- /dev/null +++ b/lib/Exception/GetQRCodeTemplatesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeTemplatesForbiddenException.php b/lib/Exception/GetQRCodeTemplatesForbiddenException.php new file mode 100644 index 0000000..c93ea96 --- /dev/null +++ b/lib/Exception/GetQRCodeTemplatesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeTemplatesGoneException.php b/lib/Exception/GetQRCodeTemplatesGoneException.php new file mode 100644 index 0000000..6c99746 --- /dev/null +++ b/lib/Exception/GetQRCodeTemplatesGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeTemplatesInternalServerErrorException.php b/lib/Exception/GetQRCodeTemplatesInternalServerErrorException.php new file mode 100644 index 0000000..050fe44 --- /dev/null +++ b/lib/Exception/GetQRCodeTemplatesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeTemplatesNotFoundException.php b/lib/Exception/GetQRCodeTemplatesNotFoundException.php new file mode 100644 index 0000000..c00073e --- /dev/null +++ b/lib/Exception/GetQRCodeTemplatesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetQRCodeTemplatesPaymentRequiredException.php b/lib/Exception/GetQRCodeTemplatesPaymentRequiredException.php new file mode 100644 index 0000000..0f7dea9 --- /dev/null +++ b/lib/Exception/GetQRCodeTemplatesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetRegionsListInternalServerErrorException.php b/lib/Exception/GetRegionsListInternalServerErrorException.php new file mode 100644 index 0000000..ce6ad5c --- /dev/null +++ b/lib/Exception/GetRegionsListInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetRetainedEntitiesAfterDowngradeForbiddenException.php b/lib/Exception/GetRetainedEntitiesAfterDowngradeForbiddenException.php new file mode 100644 index 0000000..100de15 --- /dev/null +++ b/lib/Exception/GetRetainedEntitiesAfterDowngradeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetRetainedEntitiesAfterDowngradeInternalServerErrorException.php b/lib/Exception/GetRetainedEntitiesAfterDowngradeInternalServerErrorException.php new file mode 100644 index 0000000..44b9b44 --- /dev/null +++ b/lib/Exception/GetRetainedEntitiesAfterDowngradeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSSOUsersBadRequestException.php b/lib/Exception/GetSSOUsersBadRequestException.php new file mode 100644 index 0000000..7a9bd2c --- /dev/null +++ b/lib/Exception/GetSSOUsersBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSSOUsersForbiddenException.php b/lib/Exception/GetSSOUsersForbiddenException.php new file mode 100644 index 0000000..4c78977 --- /dev/null +++ b/lib/Exception/GetSSOUsersForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSSOUsersInternalServerErrorException.php b/lib/Exception/GetSSOUsersInternalServerErrorException.php new file mode 100644 index 0000000..4652e34 --- /dev/null +++ b/lib/Exception/GetSSOUsersInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByBrowserBadRequestException.php b/lib/Exception/GetScanMetricsForBitlinkByBrowserBadRequestException.php new file mode 100644 index 0000000..21b3171 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByBrowserBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByBrowserForbiddenException.php b/lib/Exception/GetScanMetricsForBitlinkByBrowserForbiddenException.php new file mode 100644 index 0000000..fdf9e96 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByBrowserForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByBrowserGoneException.php b/lib/Exception/GetScanMetricsForBitlinkByBrowserGoneException.php new file mode 100644 index 0000000..fb6a7a9 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByBrowserGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByBrowserInternalServerErrorException.php b/lib/Exception/GetScanMetricsForBitlinkByBrowserInternalServerErrorException.php new file mode 100644 index 0000000..87f00d5 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByBrowserInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByBrowserNotFoundException.php b/lib/Exception/GetScanMetricsForBitlinkByBrowserNotFoundException.php new file mode 100644 index 0000000..b842739 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByBrowserNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByBrowserPaymentRequiredException.php b/lib/Exception/GetScanMetricsForBitlinkByBrowserPaymentRequiredException.php new file mode 100644 index 0000000..e555c56 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByBrowserPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByBrowserServiceUnavailableException.php b/lib/Exception/GetScanMetricsForBitlinkByBrowserServiceUnavailableException.php new file mode 100644 index 0000000..8693281 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByBrowserServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCitiesBadRequestException.php b/lib/Exception/GetScanMetricsForBitlinkByCitiesBadRequestException.php new file mode 100644 index 0000000..fcd41c8 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCitiesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCitiesForbiddenException.php b/lib/Exception/GetScanMetricsForBitlinkByCitiesForbiddenException.php new file mode 100644 index 0000000..12e7e88 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCitiesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCitiesGoneException.php b/lib/Exception/GetScanMetricsForBitlinkByCitiesGoneException.php new file mode 100644 index 0000000..70f294f --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCitiesGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCitiesInternalServerErrorException.php b/lib/Exception/GetScanMetricsForBitlinkByCitiesInternalServerErrorException.php new file mode 100644 index 0000000..2b3d83c --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCitiesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCitiesNotFoundException.php b/lib/Exception/GetScanMetricsForBitlinkByCitiesNotFoundException.php new file mode 100644 index 0000000..6774bf5 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCitiesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCitiesPaymentRequiredException.php b/lib/Exception/GetScanMetricsForBitlinkByCitiesPaymentRequiredException.php new file mode 100644 index 0000000..4d3f815 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCitiesPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCitiesServiceUnavailableException.php b/lib/Exception/GetScanMetricsForBitlinkByCitiesServiceUnavailableException.php new file mode 100644 index 0000000..3cc4614 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCitiesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCountriesBadRequestException.php b/lib/Exception/GetScanMetricsForBitlinkByCountriesBadRequestException.php new file mode 100644 index 0000000..45e3dfa --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCountriesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCountriesForbiddenException.php b/lib/Exception/GetScanMetricsForBitlinkByCountriesForbiddenException.php new file mode 100644 index 0000000..c8415f7 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCountriesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCountriesGoneException.php b/lib/Exception/GetScanMetricsForBitlinkByCountriesGoneException.php new file mode 100644 index 0000000..ec2d1f0 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCountriesGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCountriesInternalServerErrorException.php b/lib/Exception/GetScanMetricsForBitlinkByCountriesInternalServerErrorException.php new file mode 100644 index 0000000..fa4c7a3 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCountriesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCountriesNotFoundException.php b/lib/Exception/GetScanMetricsForBitlinkByCountriesNotFoundException.php new file mode 100644 index 0000000..3c29f29 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCountriesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByCountriesServiceUnavailableException.php b/lib/Exception/GetScanMetricsForBitlinkByCountriesServiceUnavailableException.php new file mode 100644 index 0000000..1cae79d --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByCountriesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByDevicesOSBadRequestException.php b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSBadRequestException.php new file mode 100644 index 0000000..1d8411f --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByDevicesOSForbiddenException.php b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSForbiddenException.php new file mode 100644 index 0000000..d1a727e --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByDevicesOSGoneException.php b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSGoneException.php new file mode 100644 index 0000000..26bdd08 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByDevicesOSInternalServerErrorException.php b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSInternalServerErrorException.php new file mode 100644 index 0000000..aa41b6e --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByDevicesOSNotFoundException.php b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSNotFoundException.php new file mode 100644 index 0000000..06deda6 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByDevicesOSPaymentRequiredException.php b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSPaymentRequiredException.php new file mode 100644 index 0000000..94eb17b --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScanMetricsForBitlinkByDevicesOSServiceUnavailableException.php b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSServiceUnavailableException.php new file mode 100644 index 0000000..9bd8b18 --- /dev/null +++ b/lib/Exception/GetScanMetricsForBitlinkByDevicesOSServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansForBitlinkBadRequestException.php b/lib/Exception/GetScansForBitlinkBadRequestException.php new file mode 100644 index 0000000..5323d7a --- /dev/null +++ b/lib/Exception/GetScansForBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansForBitlinkForbiddenException.php b/lib/Exception/GetScansForBitlinkForbiddenException.php new file mode 100644 index 0000000..7aeb968 --- /dev/null +++ b/lib/Exception/GetScansForBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansForBitlinkGoneException.php b/lib/Exception/GetScansForBitlinkGoneException.php new file mode 100644 index 0000000..5a802d7 --- /dev/null +++ b/lib/Exception/GetScansForBitlinkGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansForBitlinkInternalServerErrorException.php b/lib/Exception/GetScansForBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..4f357f1 --- /dev/null +++ b/lib/Exception/GetScansForBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansForBitlinkNotFoundException.php b/lib/Exception/GetScansForBitlinkNotFoundException.php new file mode 100644 index 0000000..43a2e95 --- /dev/null +++ b/lib/Exception/GetScansForBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansForBitlinkServiceUnavailableException.php b/lib/Exception/GetScansForBitlinkServiceUnavailableException.php new file mode 100644 index 0000000..62a292a --- /dev/null +++ b/lib/Exception/GetScansForBitlinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansSummaryForBitlinkBadRequestException.php b/lib/Exception/GetScansSummaryForBitlinkBadRequestException.php new file mode 100644 index 0000000..0194d9b --- /dev/null +++ b/lib/Exception/GetScansSummaryForBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansSummaryForBitlinkForbiddenException.php b/lib/Exception/GetScansSummaryForBitlinkForbiddenException.php new file mode 100644 index 0000000..a3b8fe8 --- /dev/null +++ b/lib/Exception/GetScansSummaryForBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansSummaryForBitlinkGoneException.php b/lib/Exception/GetScansSummaryForBitlinkGoneException.php new file mode 100644 index 0000000..c0d3ef7 --- /dev/null +++ b/lib/Exception/GetScansSummaryForBitlinkGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansSummaryForBitlinkInternalServerErrorException.php b/lib/Exception/GetScansSummaryForBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..5cf7ac1 --- /dev/null +++ b/lib/Exception/GetScansSummaryForBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansSummaryForBitlinkNotFoundException.php b/lib/Exception/GetScansSummaryForBitlinkNotFoundException.php new file mode 100644 index 0000000..f98b5c0 --- /dev/null +++ b/lib/Exception/GetScansSummaryForBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetScansSummaryForBitlinkServiceUnavailableException.php b/lib/Exception/GetScansSummaryForBitlinkServiceUnavailableException.php new file mode 100644 index 0000000..4a40848 --- /dev/null +++ b/lib/Exception/GetScansSummaryForBitlinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetShopifyShopDomainDetailsBadRequestException.php b/lib/Exception/GetShopifyShopDomainDetailsBadRequestException.php new file mode 100644 index 0000000..c4ab404 --- /dev/null +++ b/lib/Exception/GetShopifyShopDomainDetailsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetShopifyShopDomainDetailsForbiddenException.php b/lib/Exception/GetShopifyShopDomainDetailsForbiddenException.php new file mode 100644 index 0000000..7373942 --- /dev/null +++ b/lib/Exception/GetShopifyShopDomainDetailsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetShopifyShopDomainDetailsInternalServerErrorException.php b/lib/Exception/GetShopifyShopDomainDetailsInternalServerErrorException.php new file mode 100644 index 0000000..fa92e21 --- /dev/null +++ b/lib/Exception/GetShopifyShopDomainDetailsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetShopifyShopDomainDetailsNotFoundException.php b/lib/Exception/GetShopifyShopDomainDetailsNotFoundException.php new file mode 100644 index 0000000..79e217d --- /dev/null +++ b/lib/Exception/GetShopifyShopDomainDetailsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetShopifyShopDomainDetailsServiceUnavailableException.php b/lib/Exception/GetShopifyShopDomainDetailsServiceUnavailableException.php new file mode 100644 index 0000000..6a3690f --- /dev/null +++ b/lib/Exception/GetShopifyShopDomainDetailsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteBadRequestException.php b/lib/Exception/GetSiteBadRequestException.php new file mode 100644 index 0000000..4b7fcbc --- /dev/null +++ b/lib/Exception/GetSiteBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByCitiesBadRequestException.php b/lib/Exception/GetSiteClicksByCitiesBadRequestException.php new file mode 100644 index 0000000..c281382 --- /dev/null +++ b/lib/Exception/GetSiteClicksByCitiesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByCitiesForbiddenException.php b/lib/Exception/GetSiteClicksByCitiesForbiddenException.php new file mode 100644 index 0000000..3e0f64f --- /dev/null +++ b/lib/Exception/GetSiteClicksByCitiesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByCitiesInternalServerErrorException.php b/lib/Exception/GetSiteClicksByCitiesInternalServerErrorException.php new file mode 100644 index 0000000..c8b19e5 --- /dev/null +++ b/lib/Exception/GetSiteClicksByCitiesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByCitiesServiceUnavailableException.php b/lib/Exception/GetSiteClicksByCitiesServiceUnavailableException.php new file mode 100644 index 0000000..50e4ddc --- /dev/null +++ b/lib/Exception/GetSiteClicksByCitiesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByCountriesBadRequestException.php b/lib/Exception/GetSiteClicksByCountriesBadRequestException.php new file mode 100644 index 0000000..c5941ba --- /dev/null +++ b/lib/Exception/GetSiteClicksByCountriesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByCountriesForbiddenException.php b/lib/Exception/GetSiteClicksByCountriesForbiddenException.php new file mode 100644 index 0000000..9e8effa --- /dev/null +++ b/lib/Exception/GetSiteClicksByCountriesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByCountriesInternalServerErrorException.php b/lib/Exception/GetSiteClicksByCountriesInternalServerErrorException.php new file mode 100644 index 0000000..5ae26f5 --- /dev/null +++ b/lib/Exception/GetSiteClicksByCountriesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByCountriesServiceUnavailableException.php b/lib/Exception/GetSiteClicksByCountriesServiceUnavailableException.php new file mode 100644 index 0000000..a2e4178 --- /dev/null +++ b/lib/Exception/GetSiteClicksByCountriesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByDevicesBadRequestException.php b/lib/Exception/GetSiteClicksByDevicesBadRequestException.php new file mode 100644 index 0000000..78551f1 --- /dev/null +++ b/lib/Exception/GetSiteClicksByDevicesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByDevicesForbiddenException.php b/lib/Exception/GetSiteClicksByDevicesForbiddenException.php new file mode 100644 index 0000000..f9f9790 --- /dev/null +++ b/lib/Exception/GetSiteClicksByDevicesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByDevicesInternalServerErrorException.php b/lib/Exception/GetSiteClicksByDevicesInternalServerErrorException.php new file mode 100644 index 0000000..c11b844 --- /dev/null +++ b/lib/Exception/GetSiteClicksByDevicesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksByDevicesServiceUnavailableException.php b/lib/Exception/GetSiteClicksByDevicesServiceUnavailableException.php new file mode 100644 index 0000000..7138ec4 --- /dev/null +++ b/lib/Exception/GetSiteClicksByDevicesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksOverTimeBadRequestException.php b/lib/Exception/GetSiteClicksOverTimeBadRequestException.php new file mode 100644 index 0000000..6029e6a --- /dev/null +++ b/lib/Exception/GetSiteClicksOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksOverTimeForbiddenException.php b/lib/Exception/GetSiteClicksOverTimeForbiddenException.php new file mode 100644 index 0000000..d2d38da --- /dev/null +++ b/lib/Exception/GetSiteClicksOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksOverTimeInternalServerErrorException.php b/lib/Exception/GetSiteClicksOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..f0039b5 --- /dev/null +++ b/lib/Exception/GetSiteClicksOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteClicksOverTimeServiceUnavailableException.php b/lib/Exception/GetSiteClicksOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..9dc42a1 --- /dev/null +++ b/lib/Exception/GetSiteClicksOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksBadRequestException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksBadRequestException.php new file mode 100644 index 0000000..c2dce28 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksForbiddenException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksForbiddenException.php new file mode 100644 index 0000000..4b82786 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksInternalServerErrorException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksInternalServerErrorException.php new file mode 100644 index 0000000..9a32d58 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksNotFoundException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksNotFoundException.php new file mode 100644 index 0000000..cfac5bd --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksServiceUnavailableException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksServiceUnavailableException.php new file mode 100644 index 0000000..2fae05d --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByBlocksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesBadRequestException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesBadRequestException.php new file mode 100644 index 0000000..511a343 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesForbiddenException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesForbiddenException.php new file mode 100644 index 0000000..4be0c5f --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php new file mode 100644 index 0000000..d344ca4 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesNotFoundException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesNotFoundException.php new file mode 100644 index 0000000..8fe8d74 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php new file mode 100644 index 0000000..e25e5f6 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCitiesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesBadRequestException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesBadRequestException.php new file mode 100644 index 0000000..96da585 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesForbiddenException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesForbiddenException.php new file mode 100644 index 0000000..c9c488c --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php new file mode 100644 index 0000000..e154c42 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesNotFoundException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesNotFoundException.php new file mode 100644 index 0000000..629ceda --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php new file mode 100644 index 0000000..2ac20c4 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByCountriesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesBadRequestException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesBadRequestException.php new file mode 100644 index 0000000..73fd481 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesForbiddenException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesForbiddenException.php new file mode 100644 index 0000000..2b05a9a --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php new file mode 100644 index 0000000..f843a05 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesNotFoundException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesNotFoundException.php new file mode 100644 index 0000000..378c8a0 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php new file mode 100644 index 0000000..70bc379 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsByDevicesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeBadRequestException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeBadRequestException.php new file mode 100644 index 0000000..665e4d4 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeForbiddenException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeForbiddenException.php new file mode 100644 index 0000000..9a0a769 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php new file mode 100644 index 0000000..4301e59 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeNotFoundException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeNotFoundException.php new file mode 100644 index 0000000..c0cccd8 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php new file mode 100644 index 0000000..efff577 --- /dev/null +++ b/lib/Exception/GetSiteDigitalBusinessCardDownloadsOverTimeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteFilteredTopPageButtonsBadRequestException.php b/lib/Exception/GetSiteFilteredTopPageButtonsBadRequestException.php new file mode 100644 index 0000000..28c4fdf --- /dev/null +++ b/lib/Exception/GetSiteFilteredTopPageButtonsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteFilteredTopPageButtonsForbiddenException.php b/lib/Exception/GetSiteFilteredTopPageButtonsForbiddenException.php new file mode 100644 index 0000000..64d905c --- /dev/null +++ b/lib/Exception/GetSiteFilteredTopPageButtonsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteFilteredTopPageButtonsInternalServerErrorException.php b/lib/Exception/GetSiteFilteredTopPageButtonsInternalServerErrorException.php new file mode 100644 index 0000000..c753497 --- /dev/null +++ b/lib/Exception/GetSiteFilteredTopPageButtonsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteFilteredTopPageButtonsServiceUnavailableException.php b/lib/Exception/GetSiteFilteredTopPageButtonsServiceUnavailableException.php new file mode 100644 index 0000000..7513d52 --- /dev/null +++ b/lib/Exception/GetSiteFilteredTopPageButtonsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteForbiddenException.php b/lib/Exception/GetSiteForbiddenException.php new file mode 100644 index 0000000..62eea3a --- /dev/null +++ b/lib/Exception/GetSiteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteInternalServerErrorException.php b/lib/Exception/GetSiteInternalServerErrorException.php new file mode 100644 index 0000000..aac3f79 --- /dev/null +++ b/lib/Exception/GetSiteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteLayoutsBadRequestException.php b/lib/Exception/GetSiteLayoutsBadRequestException.php new file mode 100644 index 0000000..c095506 --- /dev/null +++ b/lib/Exception/GetSiteLayoutsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteLayoutsForbiddenException.php b/lib/Exception/GetSiteLayoutsForbiddenException.php new file mode 100644 index 0000000..aa750c2 --- /dev/null +++ b/lib/Exception/GetSiteLayoutsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteLayoutsInternalServerErrorException.php b/lib/Exception/GetSiteLayoutsInternalServerErrorException.php new file mode 100644 index 0000000..423023b --- /dev/null +++ b/lib/Exception/GetSiteLayoutsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteLayoutsNotFoundException.php b/lib/Exception/GetSiteLayoutsNotFoundException.php new file mode 100644 index 0000000..5cc21eb --- /dev/null +++ b/lib/Exception/GetSiteLayoutsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteLayoutsServiceUnavailableException.php b/lib/Exception/GetSiteLayoutsServiceUnavailableException.php new file mode 100644 index 0000000..c6042c0 --- /dev/null +++ b/lib/Exception/GetSiteLayoutsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteNotFoundException.php b/lib/Exception/GetSiteNotFoundException.php new file mode 100644 index 0000000..321e482 --- /dev/null +++ b/lib/Exception/GetSiteNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSiteServiceUnavailableException.php b/lib/Exception/GetSiteServiceUnavailableException.php new file mode 100644 index 0000000..bb09dcd --- /dev/null +++ b/lib/Exception/GetSiteServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSitesForGroupBadRequestException.php b/lib/Exception/GetSitesForGroupBadRequestException.php new file mode 100644 index 0000000..3649ee7 --- /dev/null +++ b/lib/Exception/GetSitesForGroupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSitesForGroupForbiddenException.php b/lib/Exception/GetSitesForGroupForbiddenException.php new file mode 100644 index 0000000..0ff2817 --- /dev/null +++ b/lib/Exception/GetSitesForGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSitesForGroupInternalServerErrorException.php b/lib/Exception/GetSitesForGroupInternalServerErrorException.php new file mode 100644 index 0000000..51d832b --- /dev/null +++ b/lib/Exception/GetSitesForGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedEngagementsBadRequestException.php b/lib/Exception/GetSortedEngagementsBadRequestException.php new file mode 100644 index 0000000..f29ef01 --- /dev/null +++ b/lib/Exception/GetSortedEngagementsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedEngagementsForbiddenException.php b/lib/Exception/GetSortedEngagementsForbiddenException.php new file mode 100644 index 0000000..d95efd6 --- /dev/null +++ b/lib/Exception/GetSortedEngagementsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedEngagementsGoneException.php b/lib/Exception/GetSortedEngagementsGoneException.php new file mode 100644 index 0000000..3a3bcf1 --- /dev/null +++ b/lib/Exception/GetSortedEngagementsGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedEngagementsInternalServerErrorException.php b/lib/Exception/GetSortedEngagementsInternalServerErrorException.php new file mode 100644 index 0000000..9d240e7 --- /dev/null +++ b/lib/Exception/GetSortedEngagementsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedEngagementsNotFoundException.php b/lib/Exception/GetSortedEngagementsNotFoundException.php new file mode 100644 index 0000000..b1c5e23 --- /dev/null +++ b/lib/Exception/GetSortedEngagementsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedEngagementsPaymentRequiredException.php b/lib/Exception/GetSortedEngagementsPaymentRequiredException.php new file mode 100644 index 0000000..734587e --- /dev/null +++ b/lib/Exception/GetSortedEngagementsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedEngagementsServiceUnavailableException.php b/lib/Exception/GetSortedEngagementsServiceUnavailableException.php new file mode 100644 index 0000000..d6ec328 --- /dev/null +++ b/lib/Exception/GetSortedEngagementsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansBadRequestException.php b/lib/Exception/GetSortedScansBadRequestException.php new file mode 100644 index 0000000..0a0aa5e --- /dev/null +++ b/lib/Exception/GetSortedScansBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansForGroupBadRequestException.php b/lib/Exception/GetSortedScansForGroupBadRequestException.php new file mode 100644 index 0000000..88292bb --- /dev/null +++ b/lib/Exception/GetSortedScansForGroupBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansForGroupForbiddenException.php b/lib/Exception/GetSortedScansForGroupForbiddenException.php new file mode 100644 index 0000000..ffd267f --- /dev/null +++ b/lib/Exception/GetSortedScansForGroupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansForGroupGoneException.php b/lib/Exception/GetSortedScansForGroupGoneException.php new file mode 100644 index 0000000..d9a263c --- /dev/null +++ b/lib/Exception/GetSortedScansForGroupGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansForGroupInternalServerErrorException.php b/lib/Exception/GetSortedScansForGroupInternalServerErrorException.php new file mode 100644 index 0000000..46f2dab --- /dev/null +++ b/lib/Exception/GetSortedScansForGroupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansForGroupNotFoundException.php b/lib/Exception/GetSortedScansForGroupNotFoundException.php new file mode 100644 index 0000000..c60cbfb --- /dev/null +++ b/lib/Exception/GetSortedScansForGroupNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansForGroupPaymentRequiredException.php b/lib/Exception/GetSortedScansForGroupPaymentRequiredException.php new file mode 100644 index 0000000..0b987ee --- /dev/null +++ b/lib/Exception/GetSortedScansForGroupPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansForGroupServiceUnavailableException.php b/lib/Exception/GetSortedScansForGroupServiceUnavailableException.php new file mode 100644 index 0000000..ba79ae9 --- /dev/null +++ b/lib/Exception/GetSortedScansForGroupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansForbiddenException.php b/lib/Exception/GetSortedScansForbiddenException.php new file mode 100644 index 0000000..e8416c8 --- /dev/null +++ b/lib/Exception/GetSortedScansForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansGoneException.php b/lib/Exception/GetSortedScansGoneException.php new file mode 100644 index 0000000..7e49d4c --- /dev/null +++ b/lib/Exception/GetSortedScansGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansInternalServerErrorException.php b/lib/Exception/GetSortedScansInternalServerErrorException.php new file mode 100644 index 0000000..760781d --- /dev/null +++ b/lib/Exception/GetSortedScansInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansNotFoundException.php b/lib/Exception/GetSortedScansNotFoundException.php new file mode 100644 index 0000000..723e5b8 --- /dev/null +++ b/lib/Exception/GetSortedScansNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansPaymentRequiredException.php b/lib/Exception/GetSortedScansPaymentRequiredException.php new file mode 100644 index 0000000..e0e2f0f --- /dev/null +++ b/lib/Exception/GetSortedScansPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetSortedScansServiceUnavailableException.php b/lib/Exception/GetSortedScansServiceUnavailableException.php new file mode 100644 index 0000000..43a19cf --- /dev/null +++ b/lib/Exception/GetSortedScansServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTemplatesForbiddenException.php b/lib/Exception/GetTemplatesForbiddenException.php new file mode 100644 index 0000000..78098af --- /dev/null +++ b/lib/Exception/GetTemplatesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTemplatesInternalServerErrorException.php b/lib/Exception/GetTemplatesInternalServerErrorException.php new file mode 100644 index 0000000..bcae906 --- /dev/null +++ b/lib/Exception/GetTemplatesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTemplatesNotFoundException.php b/lib/Exception/GetTemplatesNotFoundException.php new file mode 100644 index 0000000..5c95880 --- /dev/null +++ b/lib/Exception/GetTemplatesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTemplatesServiceUnavailableException.php b/lib/Exception/GetTemplatesServiceUnavailableException.php new file mode 100644 index 0000000..6057225 --- /dev/null +++ b/lib/Exception/GetTemplatesServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTierForbiddenException.php b/lib/Exception/GetTierForbiddenException.php new file mode 100644 index 0000000..b60293a --- /dev/null +++ b/lib/Exception/GetTierForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTierInternalServerErrorException.php b/lib/Exception/GetTierInternalServerErrorException.php new file mode 100644 index 0000000..cc527f7 --- /dev/null +++ b/lib/Exception/GetTierInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTierNotFoundException.php b/lib/Exception/GetTierNotFoundException.php new file mode 100644 index 0000000..9e3f463 --- /dev/null +++ b/lib/Exception/GetTierNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTierServiceUnavailableException.php b/lib/Exception/GetTierServiceUnavailableException.php new file mode 100644 index 0000000..5880762 --- /dev/null +++ b/lib/Exception/GetTierServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTiersForbiddenException.php b/lib/Exception/GetTiersForbiddenException.php new file mode 100644 index 0000000..d6dcdf6 --- /dev/null +++ b/lib/Exception/GetTiersForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTiersInternalServerErrorException.php b/lib/Exception/GetTiersInternalServerErrorException.php new file mode 100644 index 0000000..f205a5f --- /dev/null +++ b/lib/Exception/GetTiersInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTiersServiceUnavailableException.php b/lib/Exception/GetTiersServiceUnavailableException.php new file mode 100644 index 0000000..8d845e1 --- /dev/null +++ b/lib/Exception/GetTiersServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTitleForLongURLForbiddenException.php b/lib/Exception/GetTitleForLongURLForbiddenException.php new file mode 100644 index 0000000..cb5d1c9 --- /dev/null +++ b/lib/Exception/GetTitleForLongURLForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTitleForLongURLInternalServerErrorException.php b/lib/Exception/GetTitleForLongURLInternalServerErrorException.php new file mode 100644 index 0000000..920cb41 --- /dev/null +++ b/lib/Exception/GetTitleForLongURLInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTitleForLongURLNotFoundException.php b/lib/Exception/GetTitleForLongURLNotFoundException.php new file mode 100644 index 0000000..61fc367 --- /dev/null +++ b/lib/Exception/GetTitleForLongURLNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTitleForLongURLServiceUnavailableException.php b/lib/Exception/GetTitleForLongURLServiceUnavailableException.php new file mode 100644 index 0000000..ff895ba --- /dev/null +++ b/lib/Exception/GetTitleForLongURLServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTopSortedBitlinksBadRequestException.php b/lib/Exception/GetTopSortedBitlinksBadRequestException.php new file mode 100644 index 0000000..72885f8 --- /dev/null +++ b/lib/Exception/GetTopSortedBitlinksBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTopSortedBitlinksForbiddenException.php b/lib/Exception/GetTopSortedBitlinksForbiddenException.php new file mode 100644 index 0000000..be9583e --- /dev/null +++ b/lib/Exception/GetTopSortedBitlinksForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTopSortedBitlinksGoneException.php b/lib/Exception/GetTopSortedBitlinksGoneException.php new file mode 100644 index 0000000..4155be8 --- /dev/null +++ b/lib/Exception/GetTopSortedBitlinksGoneException.php @@ -0,0 +1,40 @@ +gone = $gone; + $this->response = $response; + } + + public function getGone(): \Bitly\Model\Gone + { + return $this->gone; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTopSortedBitlinksInternalServerErrorException.php b/lib/Exception/GetTopSortedBitlinksInternalServerErrorException.php new file mode 100644 index 0000000..d18b627 --- /dev/null +++ b/lib/Exception/GetTopSortedBitlinksInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTopSortedBitlinksNotFoundException.php b/lib/Exception/GetTopSortedBitlinksNotFoundException.php new file mode 100644 index 0000000..e92d464 --- /dev/null +++ b/lib/Exception/GetTopSortedBitlinksNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTopSortedBitlinksPaymentRequiredException.php b/lib/Exception/GetTopSortedBitlinksPaymentRequiredException.php new file mode 100644 index 0000000..90575ef --- /dev/null +++ b/lib/Exception/GetTopSortedBitlinksPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTopSortedBitlinksServiceUnavailableException.php b/lib/Exception/GetTopSortedBitlinksServiceUnavailableException.php new file mode 100644 index 0000000..5b227b1 --- /dev/null +++ b/lib/Exception/GetTopSortedBitlinksServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTwoFARecordInternalServerErrorException.php b/lib/Exception/GetTwoFARecordInternalServerErrorException.php new file mode 100644 index 0000000..f35c96f --- /dev/null +++ b/lib/Exception/GetTwoFARecordInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTwoFARecordNotFoundException.php b/lib/Exception/GetTwoFARecordNotFoundException.php new file mode 100644 index 0000000..488a63f --- /dev/null +++ b/lib/Exception/GetTwoFARecordNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetTwoFARecordServiceUnavailableException.php b/lib/Exception/GetTwoFARecordServiceUnavailableException.php new file mode 100644 index 0000000..f346113 --- /dev/null +++ b/lib/Exception/GetTwoFARecordServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUMGroupPreferencesForbiddenException.php b/lib/Exception/GetUMGroupPreferencesForbiddenException.php new file mode 100644 index 0000000..3b09849 --- /dev/null +++ b/lib/Exception/GetUMGroupPreferencesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUMGroupPreferencesInternalServerErrorException.php b/lib/Exception/GetUMGroupPreferencesInternalServerErrorException.php new file mode 100644 index 0000000..56c83c0 --- /dev/null +++ b/lib/Exception/GetUMGroupPreferencesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUMGroupPreferencesNotFoundException.php b/lib/Exception/GetUMGroupPreferencesNotFoundException.php new file mode 100644 index 0000000..3cbbf4e --- /dev/null +++ b/lib/Exception/GetUMGroupPreferencesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUMGroupPreferencesUnprocessableEntityException.php b/lib/Exception/GetUMGroupPreferencesUnprocessableEntityException.php new file mode 100644 index 0000000..38c7a24 --- /dev/null +++ b/lib/Exception/GetUMGroupPreferencesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserActivityLogForbiddenException.php b/lib/Exception/GetUserActivityLogForbiddenException.php new file mode 100644 index 0000000..c2447ae --- /dev/null +++ b/lib/Exception/GetUserActivityLogForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserActivityLogInternalServerErrorException.php b/lib/Exception/GetUserActivityLogInternalServerErrorException.php new file mode 100644 index 0000000..e68d32b --- /dev/null +++ b/lib/Exception/GetUserActivityLogInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserActivityLogServiceUnavailableException.php b/lib/Exception/GetUserActivityLogServiceUnavailableException.php new file mode 100644 index 0000000..39e100c --- /dev/null +++ b/lib/Exception/GetUserActivityLogServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserAvailableTiersForbiddenException.php b/lib/Exception/GetUserAvailableTiersForbiddenException.php new file mode 100644 index 0000000..0d101e6 --- /dev/null +++ b/lib/Exception/GetUserAvailableTiersForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserAvailableTiersInternalServerErrorException.php b/lib/Exception/GetUserAvailableTiersInternalServerErrorException.php new file mode 100644 index 0000000..abc6fc3 --- /dev/null +++ b/lib/Exception/GetUserAvailableTiersInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserAvailableTiersServiceUnavailableException.php b/lib/Exception/GetUserAvailableTiersServiceUnavailableException.php new file mode 100644 index 0000000..f63280e --- /dev/null +++ b/lib/Exception/GetUserAvailableTiersServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserOnboardingSurveyResultsForbiddenException.php b/lib/Exception/GetUserOnboardingSurveyResultsForbiddenException.php new file mode 100644 index 0000000..0f08f15 --- /dev/null +++ b/lib/Exception/GetUserOnboardingSurveyResultsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserOnboardingSurveyResultsInternalServerErrorException.php b/lib/Exception/GetUserOnboardingSurveyResultsInternalServerErrorException.php new file mode 100644 index 0000000..9d7d3a4 --- /dev/null +++ b/lib/Exception/GetUserOnboardingSurveyResultsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserPreferencesBadRequestException.php b/lib/Exception/GetUserPreferencesBadRequestException.php new file mode 100644 index 0000000..f9ce46c --- /dev/null +++ b/lib/Exception/GetUserPreferencesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUserPreferencesInternalServerErrorException.php b/lib/Exception/GetUserPreferencesInternalServerErrorException.php new file mode 100644 index 0000000..6af08d9 --- /dev/null +++ b/lib/Exception/GetUserPreferencesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUsersForbiddenException.php b/lib/Exception/GetUsersForbiddenException.php new file mode 100644 index 0000000..02d215d --- /dev/null +++ b/lib/Exception/GetUsersForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUsersInternalServerErrorException.php b/lib/Exception/GetUsersInternalServerErrorException.php new file mode 100644 index 0000000..84c3566 --- /dev/null +++ b/lib/Exception/GetUsersInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUsersNotFoundException.php b/lib/Exception/GetUsersNotFoundException.php new file mode 100644 index 0000000..ca4c953 --- /dev/null +++ b/lib/Exception/GetUsersNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetUsersServiceUnavailableException.php b/lib/Exception/GetUsersServiceUnavailableException.php new file mode 100644 index 0000000..1e9cc3f --- /dev/null +++ b/lib/Exception/GetUsersServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsForLaunchpadForbiddenException.php b/lib/Exception/GetViewsForLaunchpadForbiddenException.php new file mode 100644 index 0000000..89f6b18 --- /dev/null +++ b/lib/Exception/GetViewsForLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsForLaunchpadInternalServerErrorException.php b/lib/Exception/GetViewsForLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..d429c88 --- /dev/null +++ b/lib/Exception/GetViewsForLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsForLaunchpadNotFoundException.php b/lib/Exception/GetViewsForLaunchpadNotFoundException.php new file mode 100644 index 0000000..f5f0b5f --- /dev/null +++ b/lib/Exception/GetViewsForLaunchpadNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsForLaunchpadServiceUnavailableException.php b/lib/Exception/GetViewsForLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..dd885ec --- /dev/null +++ b/lib/Exception/GetViewsForLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsForSiteForbiddenException.php b/lib/Exception/GetViewsForSiteForbiddenException.php new file mode 100644 index 0000000..e6bc39e --- /dev/null +++ b/lib/Exception/GetViewsForSiteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsForSiteInternalServerErrorException.php b/lib/Exception/GetViewsForSiteInternalServerErrorException.php new file mode 100644 index 0000000..b285aeb --- /dev/null +++ b/lib/Exception/GetViewsForSiteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsForSiteNotFoundException.php b/lib/Exception/GetViewsForSiteNotFoundException.php new file mode 100644 index 0000000..7bd8e4b --- /dev/null +++ b/lib/Exception/GetViewsForSiteNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsForSiteServiceUnavailableException.php b/lib/Exception/GetViewsForSiteServiceUnavailableException.php new file mode 100644 index 0000000..aaa57b6 --- /dev/null +++ b/lib/Exception/GetViewsForSiteServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsSummaryForLaunchpadForbiddenException.php b/lib/Exception/GetViewsSummaryForLaunchpadForbiddenException.php new file mode 100644 index 0000000..4d9dc50 --- /dev/null +++ b/lib/Exception/GetViewsSummaryForLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsSummaryForLaunchpadInternalServerErrorException.php b/lib/Exception/GetViewsSummaryForLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..149f7db --- /dev/null +++ b/lib/Exception/GetViewsSummaryForLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsSummaryForLaunchpadNotFoundException.php b/lib/Exception/GetViewsSummaryForLaunchpadNotFoundException.php new file mode 100644 index 0000000..6926712 --- /dev/null +++ b/lib/Exception/GetViewsSummaryForLaunchpadNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsSummaryForLaunchpadServiceUnavailableException.php b/lib/Exception/GetViewsSummaryForLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..5f888ee --- /dev/null +++ b/lib/Exception/GetViewsSummaryForLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsSummaryForSiteForbiddenException.php b/lib/Exception/GetViewsSummaryForSiteForbiddenException.php new file mode 100644 index 0000000..aca3c7e --- /dev/null +++ b/lib/Exception/GetViewsSummaryForSiteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsSummaryForSiteInternalServerErrorException.php b/lib/Exception/GetViewsSummaryForSiteInternalServerErrorException.php new file mode 100644 index 0000000..3f11f40 --- /dev/null +++ b/lib/Exception/GetViewsSummaryForSiteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsSummaryForSiteNotFoundException.php b/lib/Exception/GetViewsSummaryForSiteNotFoundException.php new file mode 100644 index 0000000..ed07c2d --- /dev/null +++ b/lib/Exception/GetViewsSummaryForSiteNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/GetViewsSummaryForSiteServiceUnavailableException.php b/lib/Exception/GetViewsSummaryForSiteServiceUnavailableException.php new file mode 100644 index 0000000..5e9b1a8 --- /dev/null +++ b/lib/Exception/GetViewsSummaryForSiteServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/HandleWebhookForbiddenException.php b/lib/Exception/HandleWebhookForbiddenException.php new file mode 100644 index 0000000..08a08c6 --- /dev/null +++ b/lib/Exception/HandleWebhookForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/HandleWebhookInternalServerErrorException.php b/lib/Exception/HandleWebhookInternalServerErrorException.php new file mode 100644 index 0000000..9f1b8c6 --- /dev/null +++ b/lib/Exception/HandleWebhookInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/HandleWebhookUnprocessableEntityException.php b/lib/Exception/HandleWebhookUnprocessableEntityException.php new file mode 100644 index 0000000..f037526 --- /dev/null +++ b/lib/Exception/HandleWebhookUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/NotifyPaymentFailureBadRequestException.php b/lib/Exception/NotifyPaymentFailureBadRequestException.php new file mode 100644 index 0000000..2c830df --- /dev/null +++ b/lib/Exception/NotifyPaymentFailureBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/NotifyPaymentFailureInternalServerErrorException.php b/lib/Exception/NotifyPaymentFailureInternalServerErrorException.php new file mode 100644 index 0000000..754e512 --- /dev/null +++ b/lib/Exception/NotifyPaymentFailureInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/NotifyPaymentFailureServiceUnavailableException.php b/lib/Exception/NotifyPaymentFailureServiceUnavailableException.php new file mode 100644 index 0000000..34c3693 --- /dev/null +++ b/lib/Exception/NotifyPaymentFailureServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/NotifyPaymentFailureUnprocessableEntityException.php b/lib/Exception/NotifyPaymentFailureUnprocessableEntityException.php new file mode 100644 index 0000000..2079c40 --- /dev/null +++ b/lib/Exception/NotifyPaymentFailureUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchCanvaUserBrandBadRequestException.php b/lib/Exception/PatchCanvaUserBrandBadRequestException.php new file mode 100644 index 0000000..1a3bbf3 --- /dev/null +++ b/lib/Exception/PatchCanvaUserBrandBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchCanvaUserBrandInternalServerErrorException.php b/lib/Exception/PatchCanvaUserBrandInternalServerErrorException.php new file mode 100644 index 0000000..c5aba13 --- /dev/null +++ b/lib/Exception/PatchCanvaUserBrandInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchCanvaUserBrandNotFoundException.php b/lib/Exception/PatchCanvaUserBrandNotFoundException.php new file mode 100644 index 0000000..263a04c --- /dev/null +++ b/lib/Exception/PatchCanvaUserBrandNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgControlledDomainBadRequestException.php b/lib/Exception/PatchOrgControlledDomainBadRequestException.php new file mode 100644 index 0000000..bed335c --- /dev/null +++ b/lib/Exception/PatchOrgControlledDomainBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgControlledDomainForbiddenException.php b/lib/Exception/PatchOrgControlledDomainForbiddenException.php new file mode 100644 index 0000000..fc64feb --- /dev/null +++ b/lib/Exception/PatchOrgControlledDomainForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgControlledDomainInternalServerErrorException.php b/lib/Exception/PatchOrgControlledDomainInternalServerErrorException.php new file mode 100644 index 0000000..5950b4f --- /dev/null +++ b/lib/Exception/PatchOrgControlledDomainInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgControlledDomainPaymentRequiredException.php b/lib/Exception/PatchOrgControlledDomainPaymentRequiredException.php new file mode 100644 index 0000000..e7b81b9 --- /dev/null +++ b/lib/Exception/PatchOrgControlledDomainPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgControlledDomainUnprocessableEntityException.php b/lib/Exception/PatchOrgControlledDomainUnprocessableEntityException.php new file mode 100644 index 0000000..2192023 --- /dev/null +++ b/lib/Exception/PatchOrgControlledDomainUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgInvitationRequestBadRequestException.php b/lib/Exception/PatchOrgInvitationRequestBadRequestException.php new file mode 100644 index 0000000..85074c1 --- /dev/null +++ b/lib/Exception/PatchOrgInvitationRequestBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgInvitationRequestForbiddenException.php b/lib/Exception/PatchOrgInvitationRequestForbiddenException.php new file mode 100644 index 0000000..9a18117 --- /dev/null +++ b/lib/Exception/PatchOrgInvitationRequestForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgInvitationRequestInternalServerErrorException.php b/lib/Exception/PatchOrgInvitationRequestInternalServerErrorException.php new file mode 100644 index 0000000..e02c37f --- /dev/null +++ b/lib/Exception/PatchOrgInvitationRequestInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchOrgInvitationRequestUnprocessableEntityException.php b/lib/Exception/PatchOrgInvitationRequestUnprocessableEntityException.php new file mode 100644 index 0000000..e25a486 --- /dev/null +++ b/lib/Exception/PatchOrgInvitationRequestUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchUMGroupPreferencesBadRequestException.php b/lib/Exception/PatchUMGroupPreferencesBadRequestException.php new file mode 100644 index 0000000..ceaddae --- /dev/null +++ b/lib/Exception/PatchUMGroupPreferencesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchUMGroupPreferencesForbiddenException.php b/lib/Exception/PatchUMGroupPreferencesForbiddenException.php new file mode 100644 index 0000000..c1f4958 --- /dev/null +++ b/lib/Exception/PatchUMGroupPreferencesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchUMGroupPreferencesInternalServerErrorException.php b/lib/Exception/PatchUMGroupPreferencesInternalServerErrorException.php new file mode 100644 index 0000000..24a14e3 --- /dev/null +++ b/lib/Exception/PatchUMGroupPreferencesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchUMGroupPreferencesNotFoundException.php b/lib/Exception/PatchUMGroupPreferencesNotFoundException.php new file mode 100644 index 0000000..f44f051 --- /dev/null +++ b/lib/Exception/PatchUMGroupPreferencesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PatchUMGroupPreferencesUnprocessableEntityException.php b/lib/Exception/PatchUMGroupPreferencesUnprocessableEntityException.php new file mode 100644 index 0000000..94b0ed3 --- /dev/null +++ b/lib/Exception/PatchUMGroupPreferencesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGetLinksReportBadRequestException.php b/lib/Exception/PostGetLinksReportBadRequestException.php new file mode 100644 index 0000000..051475c --- /dev/null +++ b/lib/Exception/PostGetLinksReportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGetLinksReportForbiddenException.php b/lib/Exception/PostGetLinksReportForbiddenException.php new file mode 100644 index 0000000..ceba903 --- /dev/null +++ b/lib/Exception/PostGetLinksReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGetLinksReportInternalServerErrorException.php b/lib/Exception/PostGetLinksReportInternalServerErrorException.php new file mode 100644 index 0000000..026245e --- /dev/null +++ b/lib/Exception/PostGetLinksReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGetLinksReportPaymentRequiredException.php b/lib/Exception/PostGetLinksReportPaymentRequiredException.php new file mode 100644 index 0000000..bd19f9b --- /dev/null +++ b/lib/Exception/PostGetLinksReportPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGetLinksReportServiceUnavailableException.php b/lib/Exception/PostGetLinksReportServiceUnavailableException.php new file mode 100644 index 0000000..f834677 --- /dev/null +++ b/lib/Exception/PostGetLinksReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGetLinksReportUnprocessableEntityException.php b/lib/Exception/PostGetLinksReportUnprocessableEntityException.php new file mode 100644 index 0000000..71ec347 --- /dev/null +++ b/lib/Exception/PostGetLinksReportUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGroupDataExportBadRequestException.php b/lib/Exception/PostGroupDataExportBadRequestException.php new file mode 100644 index 0000000..b8cf151 --- /dev/null +++ b/lib/Exception/PostGroupDataExportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGroupDataExportForbiddenException.php b/lib/Exception/PostGroupDataExportForbiddenException.php new file mode 100644 index 0000000..90aaff4 --- /dev/null +++ b/lib/Exception/PostGroupDataExportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGroupDataExportInternalServerErrorException.php b/lib/Exception/PostGroupDataExportInternalServerErrorException.php new file mode 100644 index 0000000..049ec5b --- /dev/null +++ b/lib/Exception/PostGroupDataExportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGroupDataExportServiceUnavailableException.php b/lib/Exception/PostGroupDataExportServiceUnavailableException.php new file mode 100644 index 0000000..5f60ab6 --- /dev/null +++ b/lib/Exception/PostGroupDataExportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostGroupDataExportUnprocessableEntityException.php b/lib/Exception/PostGroupDataExportUnprocessableEntityException.php new file mode 100644 index 0000000..2b2947a --- /dev/null +++ b/lib/Exception/PostGroupDataExportUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostOrgUsersDataExportBadRequestException.php b/lib/Exception/PostOrgUsersDataExportBadRequestException.php new file mode 100644 index 0000000..b6d6fec --- /dev/null +++ b/lib/Exception/PostOrgUsersDataExportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostOrgUsersDataExportForbiddenException.php b/lib/Exception/PostOrgUsersDataExportForbiddenException.php new file mode 100644 index 0000000..2596962 --- /dev/null +++ b/lib/Exception/PostOrgUsersDataExportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostOrgUsersDataExportInternalServerErrorException.php b/lib/Exception/PostOrgUsersDataExportInternalServerErrorException.php new file mode 100644 index 0000000..fa9d471 --- /dev/null +++ b/lib/Exception/PostOrgUsersDataExportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostOrgUsersDataExportPaymentRequiredException.php b/lib/Exception/PostOrgUsersDataExportPaymentRequiredException.php new file mode 100644 index 0000000..4880ab0 --- /dev/null +++ b/lib/Exception/PostOrgUsersDataExportPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PostOrgUsersDataExportUnprocessableEntityException.php b/lib/Exception/PostOrgUsersDataExportUnprocessableEntityException.php new file mode 100644 index 0000000..68295d9 --- /dev/null +++ b/lib/Exception/PostOrgUsersDataExportUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PrevalidateYouTubeVideoButtonBadRequestException.php b/lib/Exception/PrevalidateYouTubeVideoButtonBadRequestException.php new file mode 100644 index 0000000..8e05e55 --- /dev/null +++ b/lib/Exception/PrevalidateYouTubeVideoButtonBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PrevalidateYouTubeVideoButtonForbiddenException.php b/lib/Exception/PrevalidateYouTubeVideoButtonForbiddenException.php new file mode 100644 index 0000000..43ad603 --- /dev/null +++ b/lib/Exception/PrevalidateYouTubeVideoButtonForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PrevalidateYouTubeVideoButtonInternalServerErrorException.php b/lib/Exception/PrevalidateYouTubeVideoButtonInternalServerErrorException.php new file mode 100644 index 0000000..90fb353 --- /dev/null +++ b/lib/Exception/PrevalidateYouTubeVideoButtonInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PrevalidateYouTubeVideoButtonUnprocessableEntityException.php b/lib/Exception/PrevalidateYouTubeVideoButtonUnprocessableEntityException.php new file mode 100644 index 0000000..c2157a5 --- /dev/null +++ b/lib/Exception/PrevalidateYouTubeVideoButtonUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PublishDraftLaunchpadBadRequestException.php b/lib/Exception/PublishDraftLaunchpadBadRequestException.php new file mode 100644 index 0000000..eab2df6 --- /dev/null +++ b/lib/Exception/PublishDraftLaunchpadBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PublishDraftLaunchpadForbiddenException.php b/lib/Exception/PublishDraftLaunchpadForbiddenException.php new file mode 100644 index 0000000..7f76a64 --- /dev/null +++ b/lib/Exception/PublishDraftLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PublishDraftLaunchpadInternalServerErrorException.php b/lib/Exception/PublishDraftLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..bee0f39 --- /dev/null +++ b/lib/Exception/PublishDraftLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PublishDraftLaunchpadServiceUnavailableException.php b/lib/Exception/PublishDraftLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..d38c095 --- /dev/null +++ b/lib/Exception/PublishDraftLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PublishSiteBadRequestException.php b/lib/Exception/PublishSiteBadRequestException.php new file mode 100644 index 0000000..8ee2eae --- /dev/null +++ b/lib/Exception/PublishSiteBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PublishSiteForbiddenException.php b/lib/Exception/PublishSiteForbiddenException.php new file mode 100644 index 0000000..94be89f --- /dev/null +++ b/lib/Exception/PublishSiteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PublishSiteInternalServerErrorException.php b/lib/Exception/PublishSiteInternalServerErrorException.php new file mode 100644 index 0000000..213f1ab --- /dev/null +++ b/lib/Exception/PublishSiteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PublishSiteServiceUnavailableException.php b/lib/Exception/PublishSiteServiceUnavailableException.php new file mode 100644 index 0000000..cc7998d --- /dev/null +++ b/lib/Exception/PublishSiteServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseAddOnsBadRequestException.php b/lib/Exception/PurchaseAddOnsBadRequestException.php new file mode 100644 index 0000000..fa43453 --- /dev/null +++ b/lib/Exception/PurchaseAddOnsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseAddOnsForbiddenException.php b/lib/Exception/PurchaseAddOnsForbiddenException.php new file mode 100644 index 0000000..25b353e --- /dev/null +++ b/lib/Exception/PurchaseAddOnsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseAddOnsInternalServerErrorException.php b/lib/Exception/PurchaseAddOnsInternalServerErrorException.php new file mode 100644 index 0000000..71f3d41 --- /dev/null +++ b/lib/Exception/PurchaseAddOnsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseAddOnsNotFoundException.php b/lib/Exception/PurchaseAddOnsNotFoundException.php new file mode 100644 index 0000000..c86559b --- /dev/null +++ b/lib/Exception/PurchaseAddOnsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseAddOnsServiceUnavailableException.php b/lib/Exception/PurchaseAddOnsServiceUnavailableException.php new file mode 100644 index 0000000..5b68c14 --- /dev/null +++ b/lib/Exception/PurchaseAddOnsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseAddOnsUnprocessableEntityException.php b/lib/Exception/PurchaseAddOnsUnprocessableEntityException.php new file mode 100644 index 0000000..f800d59 --- /dev/null +++ b/lib/Exception/PurchaseAddOnsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseBsdForbiddenException.php b/lib/Exception/PurchaseBsdForbiddenException.php new file mode 100644 index 0000000..8073f0a --- /dev/null +++ b/lib/Exception/PurchaseBsdForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseBsdInternalServerErrorException.php b/lib/Exception/PurchaseBsdInternalServerErrorException.php new file mode 100644 index 0000000..65f34e5 --- /dev/null +++ b/lib/Exception/PurchaseBsdInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseStripeAddOnsBadRequestException.php b/lib/Exception/PurchaseStripeAddOnsBadRequestException.php new file mode 100644 index 0000000..6fa2e69 --- /dev/null +++ b/lib/Exception/PurchaseStripeAddOnsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseStripeAddOnsForbiddenException.php b/lib/Exception/PurchaseStripeAddOnsForbiddenException.php new file mode 100644 index 0000000..57089c1 --- /dev/null +++ b/lib/Exception/PurchaseStripeAddOnsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseStripeAddOnsInternalServerErrorException.php b/lib/Exception/PurchaseStripeAddOnsInternalServerErrorException.php new file mode 100644 index 0000000..e306172 --- /dev/null +++ b/lib/Exception/PurchaseStripeAddOnsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseStripeAddOnsNotFoundException.php b/lib/Exception/PurchaseStripeAddOnsNotFoundException.php new file mode 100644 index 0000000..7ed1c3b --- /dev/null +++ b/lib/Exception/PurchaseStripeAddOnsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseStripeAddOnsServiceUnavailableException.php b/lib/Exception/PurchaseStripeAddOnsServiceUnavailableException.php new file mode 100644 index 0000000..a49a73f --- /dev/null +++ b/lib/Exception/PurchaseStripeAddOnsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/PurchaseStripeAddOnsUnprocessableEntityException.php b/lib/Exception/PurchaseStripeAddOnsUnprocessableEntityException.php new file mode 100644 index 0000000..93ac3f8 --- /dev/null +++ b/lib/Exception/PurchaseStripeAddOnsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RedirectQRCodeDestinationBadRequestException.php b/lib/Exception/RedirectQRCodeDestinationBadRequestException.php new file mode 100644 index 0000000..d672e8a --- /dev/null +++ b/lib/Exception/RedirectQRCodeDestinationBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RedirectQRCodeDestinationForbiddenException.php b/lib/Exception/RedirectQRCodeDestinationForbiddenException.php new file mode 100644 index 0000000..8f75d37 --- /dev/null +++ b/lib/Exception/RedirectQRCodeDestinationForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RedirectQRCodeDestinationInternalServerErrorException.php b/lib/Exception/RedirectQRCodeDestinationInternalServerErrorException.php new file mode 100644 index 0000000..d36265c --- /dev/null +++ b/lib/Exception/RedirectQRCodeDestinationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RedirectQRCodeDestinationNotFoundException.php b/lib/Exception/RedirectQRCodeDestinationNotFoundException.php new file mode 100644 index 0000000..807d05c --- /dev/null +++ b/lib/Exception/RedirectQRCodeDestinationNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RedirectQRCodeDestinationTooManyRequestsException.php b/lib/Exception/RedirectQRCodeDestinationTooManyRequestsException.php new file mode 100644 index 0000000..37c3d3a --- /dev/null +++ b/lib/Exception/RedirectQRCodeDestinationTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RegeneratePaymentInvoiceFileForbiddenException.php b/lib/Exception/RegeneratePaymentInvoiceFileForbiddenException.php new file mode 100644 index 0000000..88dc338 --- /dev/null +++ b/lib/Exception/RegeneratePaymentInvoiceFileForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RegeneratePaymentInvoiceFileInternalServerErrorException.php b/lib/Exception/RegeneratePaymentInvoiceFileInternalServerErrorException.php new file mode 100644 index 0000000..2f67793 --- /dev/null +++ b/lib/Exception/RegeneratePaymentInvoiceFileInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ReorderBlocksByContainerBadRequestException.php b/lib/Exception/ReorderBlocksByContainerBadRequestException.php new file mode 100644 index 0000000..315a9e6 --- /dev/null +++ b/lib/Exception/ReorderBlocksByContainerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ReorderBlocksByContainerForbiddenException.php b/lib/Exception/ReorderBlocksByContainerForbiddenException.php new file mode 100644 index 0000000..c4346db --- /dev/null +++ b/lib/Exception/ReorderBlocksByContainerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ReorderBlocksByContainerInternalServerErrorException.php b/lib/Exception/ReorderBlocksByContainerInternalServerErrorException.php new file mode 100644 index 0000000..78251dd --- /dev/null +++ b/lib/Exception/ReorderBlocksByContainerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ReorderBlocksByContainerNotFoundException.php b/lib/Exception/ReorderBlocksByContainerNotFoundException.php new file mode 100644 index 0000000..b035fd2 --- /dev/null +++ b/lib/Exception/ReorderBlocksByContainerNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ReorderBlocksByContainerServiceUnavailableException.php b/lib/Exception/ReorderBlocksByContainerServiceUnavailableException.php new file mode 100644 index 0000000..b6ad6df --- /dev/null +++ b/lib/Exception/ReorderBlocksByContainerServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ReorderBlocksByContainerUnprocessableEntityException.php b/lib/Exception/ReorderBlocksByContainerUnprocessableEntityException.php new file mode 100644 index 0000000..47eca87 --- /dev/null +++ b/lib/Exception/ReorderBlocksByContainerUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RequestUserSARForbiddenException.php b/lib/Exception/RequestUserSARForbiddenException.php new file mode 100644 index 0000000..bc810eb --- /dev/null +++ b/lib/Exception/RequestUserSARForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RequestUserSARInternalServerErrorException.php b/lib/Exception/RequestUserSARInternalServerErrorException.php new file mode 100644 index 0000000..879f385 --- /dev/null +++ b/lib/Exception/RequestUserSARInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/RequestUserSARServiceUnavailableException.php b/lib/Exception/RequestUserSARServiceUnavailableException.php new file mode 100644 index 0000000..f6f56d4 --- /dev/null +++ b/lib/Exception/RequestUserSARServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ResendInvitationForbiddenException.php b/lib/Exception/ResendInvitationForbiddenException.php new file mode 100644 index 0000000..b5e53f5 --- /dev/null +++ b/lib/Exception/ResendInvitationForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ResendInvitationInternalServerErrorException.php b/lib/Exception/ResendInvitationInternalServerErrorException.php new file mode 100644 index 0000000..a7a0261 --- /dev/null +++ b/lib/Exception/ResendInvitationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ResendInvitationNotFoundException.php b/lib/Exception/ResendInvitationNotFoundException.php new file mode 100644 index 0000000..c3fa565 --- /dev/null +++ b/lib/Exception/ResendInvitationNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ResendInvitationTooManyRequestsException.php b/lib/Exception/ResendInvitationTooManyRequestsException.php new file mode 100644 index 0000000..1b0cb0e --- /dev/null +++ b/lib/Exception/ResendInvitationTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ScheduleOrgDowngradeStripeBadRequestException.php b/lib/Exception/ScheduleOrgDowngradeStripeBadRequestException.php new file mode 100644 index 0000000..25d0ffe --- /dev/null +++ b/lib/Exception/ScheduleOrgDowngradeStripeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ScheduleOrgDowngradeStripeForbiddenException.php b/lib/Exception/ScheduleOrgDowngradeStripeForbiddenException.php new file mode 100644 index 0000000..0033c2b --- /dev/null +++ b/lib/Exception/ScheduleOrgDowngradeStripeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ScheduleOrgDowngradeStripeInternalServerErrorException.php b/lib/Exception/ScheduleOrgDowngradeStripeInternalServerErrorException.php new file mode 100644 index 0000000..f65dae1 --- /dev/null +++ b/lib/Exception/ScheduleOrgDowngradeStripeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ScheduleOrganizationDowngradeBadRequestException.php b/lib/Exception/ScheduleOrganizationDowngradeBadRequestException.php new file mode 100644 index 0000000..9234ff9 --- /dev/null +++ b/lib/Exception/ScheduleOrganizationDowngradeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ScheduleOrganizationDowngradeForbiddenException.php b/lib/Exception/ScheduleOrganizationDowngradeForbiddenException.php new file mode 100644 index 0000000..4ebf16c --- /dev/null +++ b/lib/Exception/ScheduleOrganizationDowngradeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ScheduleOrganizationDowngradeInternalServerErrorException.php b/lib/Exception/ScheduleOrganizationDowngradeInternalServerErrorException.php new file mode 100644 index 0000000..fa196e8 --- /dev/null +++ b/lib/Exception/ScheduleOrganizationDowngradeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchDomainsForbiddenException.php b/lib/Exception/SearchDomainsForbiddenException.php new file mode 100644 index 0000000..3042b89 --- /dev/null +++ b/lib/Exception/SearchDomainsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchDomainsInternalServerErrorException.php b/lib/Exception/SearchDomainsInternalServerErrorException.php new file mode 100644 index 0000000..a589422 --- /dev/null +++ b/lib/Exception/SearchDomainsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchGroupUserRolesBadRequestException.php b/lib/Exception/SearchGroupUserRolesBadRequestException.php new file mode 100644 index 0000000..8088c80 --- /dev/null +++ b/lib/Exception/SearchGroupUserRolesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchGroupUserRolesForbiddenException.php b/lib/Exception/SearchGroupUserRolesForbiddenException.php new file mode 100644 index 0000000..8eab56b --- /dev/null +++ b/lib/Exception/SearchGroupUserRolesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchGroupUserRolesInternalServerErrorException.php b/lib/Exception/SearchGroupUserRolesInternalServerErrorException.php new file mode 100644 index 0000000..92a1396 --- /dev/null +++ b/lib/Exception/SearchGroupUserRolesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchGroupUserRolesNotFoundException.php b/lib/Exception/SearchGroupUserRolesNotFoundException.php new file mode 100644 index 0000000..6753a03 --- /dev/null +++ b/lib/Exception/SearchGroupUserRolesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchOrgUserRolesBadRequestException.php b/lib/Exception/SearchOrgUserRolesBadRequestException.php new file mode 100644 index 0000000..7c11df4 --- /dev/null +++ b/lib/Exception/SearchOrgUserRolesBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchOrgUserRolesForbiddenException.php b/lib/Exception/SearchOrgUserRolesForbiddenException.php new file mode 100644 index 0000000..c75ea80 --- /dev/null +++ b/lib/Exception/SearchOrgUserRolesForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchOrgUserRolesInternalServerErrorException.php b/lib/Exception/SearchOrgUserRolesInternalServerErrorException.php new file mode 100644 index 0000000..0469f92 --- /dev/null +++ b/lib/Exception/SearchOrgUserRolesInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SearchOrgUserRolesNotFoundException.php b/lib/Exception/SearchOrgUserRolesNotFoundException.php new file mode 100644 index 0000000..90031b5 --- /dev/null +++ b/lib/Exception/SearchOrgUserRolesNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendEmailVerificationBadRequestException.php b/lib/Exception/SendEmailVerificationBadRequestException.php new file mode 100644 index 0000000..2a4840e --- /dev/null +++ b/lib/Exception/SendEmailVerificationBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendEmailVerificationInternalServerErrorException.php b/lib/Exception/SendEmailVerificationInternalServerErrorException.php new file mode 100644 index 0000000..e8fb2f7 --- /dev/null +++ b/lib/Exception/SendEmailVerificationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendEmailVerificationNotFoundException.php b/lib/Exception/SendEmailVerificationNotFoundException.php new file mode 100644 index 0000000..60b078b --- /dev/null +++ b/lib/Exception/SendEmailVerificationNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendEmailVerificationServiceUnavailableException.php b/lib/Exception/SendEmailVerificationServiceUnavailableException.php new file mode 100644 index 0000000..d534757 --- /dev/null +++ b/lib/Exception/SendEmailVerificationServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendVerificationCodeBadRequestException.php b/lib/Exception/SendVerificationCodeBadRequestException.php new file mode 100644 index 0000000..10b63a1 --- /dev/null +++ b/lib/Exception/SendVerificationCodeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendVerificationCodeForbiddenException.php b/lib/Exception/SendVerificationCodeForbiddenException.php new file mode 100644 index 0000000..51e340b --- /dev/null +++ b/lib/Exception/SendVerificationCodeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendVerificationCodeInternalServerErrorException.php b/lib/Exception/SendVerificationCodeInternalServerErrorException.php new file mode 100644 index 0000000..542e82d --- /dev/null +++ b/lib/Exception/SendVerificationCodeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendVerificationCodeNotFoundException.php b/lib/Exception/SendVerificationCodeNotFoundException.php new file mode 100644 index 0000000..fc505c2 --- /dev/null +++ b/lib/Exception/SendVerificationCodeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendVerificationCodeServiceUnavailableException.php b/lib/Exception/SendVerificationCodeServiceUnavailableException.php new file mode 100644 index 0000000..655884f --- /dev/null +++ b/lib/Exception/SendVerificationCodeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SendVerificationCodeUnauthorizedException.php b/lib/Exception/SendVerificationCodeUnauthorizedException.php new file mode 100644 index 0000000..0f8bc70 --- /dev/null +++ b/lib/Exception/SendVerificationCodeUnauthorizedException.php @@ -0,0 +1,40 @@ +unauthorized = $unauthorized; + $this->response = $response; + } + + public function getUnauthorized(): \Bitly\Model\Unauthorized + { + return $this->unauthorized; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetOrgPreferenceBadRequestException.php b/lib/Exception/SetOrgPreferenceBadRequestException.php new file mode 100644 index 0000000..5fe683a --- /dev/null +++ b/lib/Exception/SetOrgPreferenceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetOrgPreferenceForbiddenException.php b/lib/Exception/SetOrgPreferenceForbiddenException.php new file mode 100644 index 0000000..3e5a84d --- /dev/null +++ b/lib/Exception/SetOrgPreferenceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetOrgPreferenceInternalServerErrorException.php b/lib/Exception/SetOrgPreferenceInternalServerErrorException.php new file mode 100644 index 0000000..7c71364 --- /dev/null +++ b/lib/Exception/SetOrgPreferenceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetOrgPreferenceUnprocessableEntityException.php b/lib/Exception/SetOrgPreferenceUnprocessableEntityException.php new file mode 100644 index 0000000..b4b22df --- /dev/null +++ b/lib/Exception/SetOrgPreferenceUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPaymentMethodDefaultBadRequestException.php b/lib/Exception/SetPaymentMethodDefaultBadRequestException.php new file mode 100644 index 0000000..3c5abe7 --- /dev/null +++ b/lib/Exception/SetPaymentMethodDefaultBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPaymentMethodDefaultForbiddenException.php b/lib/Exception/SetPaymentMethodDefaultForbiddenException.php new file mode 100644 index 0000000..d3e8f27 --- /dev/null +++ b/lib/Exception/SetPaymentMethodDefaultForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPaymentMethodDefaultInternalServerErrorException.php b/lib/Exception/SetPaymentMethodDefaultInternalServerErrorException.php new file mode 100644 index 0000000..e184bea --- /dev/null +++ b/lib/Exception/SetPaymentMethodDefaultInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPaymentMethodDefaultServiceUnavailableException.php b/lib/Exception/SetPaymentMethodDefaultServiceUnavailableException.php new file mode 100644 index 0000000..efbe3d2 --- /dev/null +++ b/lib/Exception/SetPaymentMethodDefaultServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPaymentMethodDefaultUnprocessableEntityException.php b/lib/Exception/SetPaymentMethodDefaultUnprocessableEntityException.php new file mode 100644 index 0000000..e13a99c --- /dev/null +++ b/lib/Exception/SetPaymentMethodDefaultUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPhoneNumberBadRequestException.php b/lib/Exception/SetPhoneNumberBadRequestException.php new file mode 100644 index 0000000..ac1d3f3 --- /dev/null +++ b/lib/Exception/SetPhoneNumberBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPhoneNumberForbiddenException.php b/lib/Exception/SetPhoneNumberForbiddenException.php new file mode 100644 index 0000000..4b2bc59 --- /dev/null +++ b/lib/Exception/SetPhoneNumberForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPhoneNumberInternalServerErrorException.php b/lib/Exception/SetPhoneNumberInternalServerErrorException.php new file mode 100644 index 0000000..6f62a1a --- /dev/null +++ b/lib/Exception/SetPhoneNumberInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPhoneNumberServiceUnavailableException.php b/lib/Exception/SetPhoneNumberServiceUnavailableException.php new file mode 100644 index 0000000..fa95a78 --- /dev/null +++ b/lib/Exception/SetPhoneNumberServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetPhoneNumberUnprocessableEntityException.php b/lib/Exception/SetPhoneNumberUnprocessableEntityException.php new file mode 100644 index 0000000..6592e3f --- /dev/null +++ b/lib/Exception/SetPhoneNumberUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetStripeDefaultPaymentMethodBadRequestException.php b/lib/Exception/SetStripeDefaultPaymentMethodBadRequestException.php new file mode 100644 index 0000000..ad2d89a --- /dev/null +++ b/lib/Exception/SetStripeDefaultPaymentMethodBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetStripeDefaultPaymentMethodForbiddenException.php b/lib/Exception/SetStripeDefaultPaymentMethodForbiddenException.php new file mode 100644 index 0000000..c8a6a94 --- /dev/null +++ b/lib/Exception/SetStripeDefaultPaymentMethodForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetStripeDefaultPaymentMethodInternalServerErrorException.php b/lib/Exception/SetStripeDefaultPaymentMethodInternalServerErrorException.php new file mode 100644 index 0000000..1866c00 --- /dev/null +++ b/lib/Exception/SetStripeDefaultPaymentMethodInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetStripeDefaultPaymentMethodServiceUnavailableException.php b/lib/Exception/SetStripeDefaultPaymentMethodServiceUnavailableException.php new file mode 100644 index 0000000..878ff3c --- /dev/null +++ b/lib/Exception/SetStripeDefaultPaymentMethodServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetStripeDefaultPaymentMethodUnprocessableEntityException.php b/lib/Exception/SetStripeDefaultPaymentMethodUnprocessableEntityException.php new file mode 100644 index 0000000..7540f84 --- /dev/null +++ b/lib/Exception/SetStripeDefaultPaymentMethodUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetUserPreferenceBadRequestException.php b/lib/Exception/SetUserPreferenceBadRequestException.php new file mode 100644 index 0000000..0f93140 --- /dev/null +++ b/lib/Exception/SetUserPreferenceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetUserPreferenceInternalServerErrorException.php b/lib/Exception/SetUserPreferenceInternalServerErrorException.php new file mode 100644 index 0000000..dc9e843 --- /dev/null +++ b/lib/Exception/SetUserPreferenceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/SetUserPreferenceUnprocessableEntityException.php b/lib/Exception/SetUserPreferenceUnprocessableEntityException.php new file mode 100644 index 0000000..0915e34 --- /dev/null +++ b/lib/Exception/SetUserPreferenceUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ThirdPartyAppLookupForbiddenException.php b/lib/Exception/ThirdPartyAppLookupForbiddenException.php new file mode 100644 index 0000000..692357d --- /dev/null +++ b/lib/Exception/ThirdPartyAppLookupForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ThirdPartyAppLookupInternalServerErrorException.php b/lib/Exception/ThirdPartyAppLookupInternalServerErrorException.php new file mode 100644 index 0000000..4ec8bbc --- /dev/null +++ b/lib/Exception/ThirdPartyAppLookupInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ThirdPartyAppLookupNotFoundException.php b/lib/Exception/ThirdPartyAppLookupNotFoundException.php new file mode 100644 index 0000000..87fc3b4 --- /dev/null +++ b/lib/Exception/ThirdPartyAppLookupNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ThirdPartyAppLookupPaymentRequiredException.php b/lib/Exception/ThirdPartyAppLookupPaymentRequiredException.php new file mode 100644 index 0000000..53aef32 --- /dev/null +++ b/lib/Exception/ThirdPartyAppLookupPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ThirdPartyAppLookupServiceUnavailableException.php b/lib/Exception/ThirdPartyAppLookupServiceUnavailableException.php new file mode 100644 index 0000000..654829c --- /dev/null +++ b/lib/Exception/ThirdPartyAppLookupServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UnauthorizedException.php b/lib/Exception/UnauthorizedException.php new file mode 100644 index 0000000..4c2a0e9 --- /dev/null +++ b/lib/Exception/UnauthorizedException.php @@ -0,0 +1,19 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsModuleForbiddenException.php b/lib/Exception/UpdateAnalyticsModuleForbiddenException.php new file mode 100644 index 0000000..0254cf5 --- /dev/null +++ b/lib/Exception/UpdateAnalyticsModuleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsModuleInternalServerErrorException.php b/lib/Exception/UpdateAnalyticsModuleInternalServerErrorException.php new file mode 100644 index 0000000..19b883c --- /dev/null +++ b/lib/Exception/UpdateAnalyticsModuleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsModuleNotFoundException.php b/lib/Exception/UpdateAnalyticsModuleNotFoundException.php new file mode 100644 index 0000000..e1aa2e7 --- /dev/null +++ b/lib/Exception/UpdateAnalyticsModuleNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsModuleServiceUnavailableException.php b/lib/Exception/UpdateAnalyticsModuleServiceUnavailableException.php new file mode 100644 index 0000000..d045ca6 --- /dev/null +++ b/lib/Exception/UpdateAnalyticsModuleServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsReportBadRequestException.php b/lib/Exception/UpdateAnalyticsReportBadRequestException.php new file mode 100644 index 0000000..32468f8 --- /dev/null +++ b/lib/Exception/UpdateAnalyticsReportBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsReportForbiddenException.php b/lib/Exception/UpdateAnalyticsReportForbiddenException.php new file mode 100644 index 0000000..2bf8a41 --- /dev/null +++ b/lib/Exception/UpdateAnalyticsReportForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsReportInternalServerErrorException.php b/lib/Exception/UpdateAnalyticsReportInternalServerErrorException.php new file mode 100644 index 0000000..83c0b93 --- /dev/null +++ b/lib/Exception/UpdateAnalyticsReportInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsReportNotFoundException.php b/lib/Exception/UpdateAnalyticsReportNotFoundException.php new file mode 100644 index 0000000..f61b17e --- /dev/null +++ b/lib/Exception/UpdateAnalyticsReportNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAnalyticsReportServiceUnavailableException.php b/lib/Exception/UpdateAnalyticsReportServiceUnavailableException.php new file mode 100644 index 0000000..0a4d377 --- /dev/null +++ b/lib/Exception/UpdateAnalyticsReportServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAppAssociationsBadRequestException.php b/lib/Exception/UpdateAppAssociationsBadRequestException.php new file mode 100644 index 0000000..9805702 --- /dev/null +++ b/lib/Exception/UpdateAppAssociationsBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAppAssociationsForbiddenException.php b/lib/Exception/UpdateAppAssociationsForbiddenException.php new file mode 100644 index 0000000..f03c3d7 --- /dev/null +++ b/lib/Exception/UpdateAppAssociationsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAppAssociationsInternalServerErrorException.php b/lib/Exception/UpdateAppAssociationsInternalServerErrorException.php new file mode 100644 index 0000000..3563802 --- /dev/null +++ b/lib/Exception/UpdateAppAssociationsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAppAssociationsNotFoundException.php b/lib/Exception/UpdateAppAssociationsNotFoundException.php new file mode 100644 index 0000000..e7832ff --- /dev/null +++ b/lib/Exception/UpdateAppAssociationsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAppAssociationsPaymentRequiredException.php b/lib/Exception/UpdateAppAssociationsPaymentRequiredException.php new file mode 100644 index 0000000..1b38e54 --- /dev/null +++ b/lib/Exception/UpdateAppAssociationsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateAppAssociationsServiceUnavailableException.php b/lib/Exception/UpdateAppAssociationsServiceUnavailableException.php new file mode 100644 index 0000000..f65e2a5 --- /dev/null +++ b/lib/Exception/UpdateAppAssociationsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateBillingInfoBadRequestException.php b/lib/Exception/UpdateBillingInfoBadRequestException.php new file mode 100644 index 0000000..dde7813 --- /dev/null +++ b/lib/Exception/UpdateBillingInfoBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateBillingInfoForbiddenException.php b/lib/Exception/UpdateBillingInfoForbiddenException.php new file mode 100644 index 0000000..9ffb031 --- /dev/null +++ b/lib/Exception/UpdateBillingInfoForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateBillingInfoInternalServerErrorException.php b/lib/Exception/UpdateBillingInfoInternalServerErrorException.php new file mode 100644 index 0000000..c221736 --- /dev/null +++ b/lib/Exception/UpdateBillingInfoInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateBillingInfoUnprocessableEntityException.php b/lib/Exception/UpdateBillingInfoUnprocessableEntityException.php new file mode 100644 index 0000000..3e0c46a --- /dev/null +++ b/lib/Exception/UpdateBillingInfoUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateBitlinkConflictException.php b/lib/Exception/UpdateBitlinkConflictException.php new file mode 100644 index 0000000..4d3874d --- /dev/null +++ b/lib/Exception/UpdateBitlinkConflictException.php @@ -0,0 +1,40 @@ +conflict = $conflict; + $this->response = $response; + } + + public function getConflict(): \Bitly\Model\Conflict + { + return $this->conflict; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkAppForbiddenException.php b/lib/Exception/UpdateDeeplinkAppForbiddenException.php new file mode 100644 index 0000000..7626a06 --- /dev/null +++ b/lib/Exception/UpdateDeeplinkAppForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkAppInternalServerErrorException.php b/lib/Exception/UpdateDeeplinkAppInternalServerErrorException.php new file mode 100644 index 0000000..288fe0c --- /dev/null +++ b/lib/Exception/UpdateDeeplinkAppInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkAppNotFoundException.php b/lib/Exception/UpdateDeeplinkAppNotFoundException.php new file mode 100644 index 0000000..0342011 --- /dev/null +++ b/lib/Exception/UpdateDeeplinkAppNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkAppPaymentRequiredException.php b/lib/Exception/UpdateDeeplinkAppPaymentRequiredException.php new file mode 100644 index 0000000..a98727a --- /dev/null +++ b/lib/Exception/UpdateDeeplinkAppPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkAppServiceUnavailableException.php b/lib/Exception/UpdateDeeplinkAppServiceUnavailableException.php new file mode 100644 index 0000000..a15e221 --- /dev/null +++ b/lib/Exception/UpdateDeeplinkAppServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkAppUnprocessableEntityException.php b/lib/Exception/UpdateDeeplinkAppUnprocessableEntityException.php new file mode 100644 index 0000000..1cbefc6 --- /dev/null +++ b/lib/Exception/UpdateDeeplinkAppUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkRuleForbiddenException.php b/lib/Exception/UpdateDeeplinkRuleForbiddenException.php new file mode 100644 index 0000000..940ac3c --- /dev/null +++ b/lib/Exception/UpdateDeeplinkRuleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkRuleInternalServerErrorException.php b/lib/Exception/UpdateDeeplinkRuleInternalServerErrorException.php new file mode 100644 index 0000000..4b54b17 --- /dev/null +++ b/lib/Exception/UpdateDeeplinkRuleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkRuleNotFoundException.php b/lib/Exception/UpdateDeeplinkRuleNotFoundException.php new file mode 100644 index 0000000..16baa5a --- /dev/null +++ b/lib/Exception/UpdateDeeplinkRuleNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkRulePaymentRequiredException.php b/lib/Exception/UpdateDeeplinkRulePaymentRequiredException.php new file mode 100644 index 0000000..107be32 --- /dev/null +++ b/lib/Exception/UpdateDeeplinkRulePaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkRuleServiceUnavailableException.php b/lib/Exception/UpdateDeeplinkRuleServiceUnavailableException.php new file mode 100644 index 0000000..a14033e --- /dev/null +++ b/lib/Exception/UpdateDeeplinkRuleServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateDeeplinkRuleUnprocessableEntityException.php b/lib/Exception/UpdateDeeplinkRuleUnprocessableEntityException.php new file mode 100644 index 0000000..f5b5658 --- /dev/null +++ b/lib/Exception/UpdateDeeplinkRuleUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEmailBadRequestException.php b/lib/Exception/UpdateEmailBadRequestException.php new file mode 100644 index 0000000..d722d73 --- /dev/null +++ b/lib/Exception/UpdateEmailBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEmailForbiddenException.php b/lib/Exception/UpdateEmailForbiddenException.php new file mode 100644 index 0000000..698d595 --- /dev/null +++ b/lib/Exception/UpdateEmailForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEmailInternalServerErrorException.php b/lib/Exception/UpdateEmailInternalServerErrorException.php new file mode 100644 index 0000000..921359e --- /dev/null +++ b/lib/Exception/UpdateEmailInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEmailNotFoundException.php b/lib/Exception/UpdateEmailNotFoundException.php new file mode 100644 index 0000000..c049441 --- /dev/null +++ b/lib/Exception/UpdateEmailNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEmailServiceUnavailableException.php b/lib/Exception/UpdateEmailServiceUnavailableException.php new file mode 100644 index 0000000..8ac47e3 --- /dev/null +++ b/lib/Exception/UpdateEmailServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEntitiesRetainedOnDowngradeBadRequestException.php b/lib/Exception/UpdateEntitiesRetainedOnDowngradeBadRequestException.php new file mode 100644 index 0000000..2e3d37f --- /dev/null +++ b/lib/Exception/UpdateEntitiesRetainedOnDowngradeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEntitiesRetainedOnDowngradeForbiddenException.php b/lib/Exception/UpdateEntitiesRetainedOnDowngradeForbiddenException.php new file mode 100644 index 0000000..ea85964 --- /dev/null +++ b/lib/Exception/UpdateEntitiesRetainedOnDowngradeForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEntitiesRetainedOnDowngradeInternalServerErrorException.php b/lib/Exception/UpdateEntitiesRetainedOnDowngradeInternalServerErrorException.php new file mode 100644 index 0000000..d3534a8 --- /dev/null +++ b/lib/Exception/UpdateEntitiesRetainedOnDowngradeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateEntitiesRetainedOnDowngradeUnprocessableEntityException.php b/lib/Exception/UpdateEntitiesRetainedOnDowngradeUnprocessableEntityException.php new file mode 100644 index 0000000..0c2187b --- /dev/null +++ b/lib/Exception/UpdateEntitiesRetainedOnDowngradeUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateImageBadRequestException.php b/lib/Exception/UpdateImageBadRequestException.php new file mode 100644 index 0000000..ccea181 --- /dev/null +++ b/lib/Exception/UpdateImageBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateImageForbiddenException.php b/lib/Exception/UpdateImageForbiddenException.php new file mode 100644 index 0000000..312245d --- /dev/null +++ b/lib/Exception/UpdateImageForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateImageInternalServerErrorException.php b/lib/Exception/UpdateImageInternalServerErrorException.php new file mode 100644 index 0000000..f964b9e --- /dev/null +++ b/lib/Exception/UpdateImageInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateImageNotFoundException.php b/lib/Exception/UpdateImageNotFoundException.php new file mode 100644 index 0000000..304dcd5 --- /dev/null +++ b/lib/Exception/UpdateImageNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateImageServiceUnavailableException.php b/lib/Exception/UpdateImageServiceUnavailableException.php new file mode 100644 index 0000000..bcae315 --- /dev/null +++ b/lib/Exception/UpdateImageServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadBadRequestException.php b/lib/Exception/UpdateLaunchpadBadRequestException.php new file mode 100644 index 0000000..d562663 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadBitlinkContentBadRequestException.php b/lib/Exception/UpdateLaunchpadBitlinkContentBadRequestException.php new file mode 100644 index 0000000..fe43345 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadBitlinkContentBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadBitlinkContentForbiddenException.php b/lib/Exception/UpdateLaunchpadBitlinkContentForbiddenException.php new file mode 100644 index 0000000..850de59 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadBitlinkContentForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadBitlinkContentInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadBitlinkContentInternalServerErrorException.php new file mode 100644 index 0000000..f254e6d --- /dev/null +++ b/lib/Exception/UpdateLaunchpadBitlinkContentInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadBitlinkContentNotFoundException.php b/lib/Exception/UpdateLaunchpadBitlinkContentNotFoundException.php new file mode 100644 index 0000000..0ed3cf7 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadBitlinkContentNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadBitlinkContentServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadBitlinkContentServiceUnavailableException.php new file mode 100644 index 0000000..a0b7177 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadBitlinkContentServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonBadRequestException.php b/lib/Exception/UpdateLaunchpadButtonBadRequestException.php new file mode 100644 index 0000000..4a28a4f --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonForbiddenException.php b/lib/Exception/UpdateLaunchpadButtonForbiddenException.php new file mode 100644 index 0000000..cc72749 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadButtonInternalServerErrorException.php new file mode 100644 index 0000000..68bac60 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonNotFoundException.php b/lib/Exception/UpdateLaunchpadButtonNotFoundException.php new file mode 100644 index 0000000..db8ccca --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadButtonServiceUnavailableException.php new file mode 100644 index 0000000..6fefc55 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonSortOrderBadRequestException.php b/lib/Exception/UpdateLaunchpadButtonSortOrderBadRequestException.php new file mode 100644 index 0000000..31b79f7 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonSortOrderBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonSortOrderForbiddenException.php b/lib/Exception/UpdateLaunchpadButtonSortOrderForbiddenException.php new file mode 100644 index 0000000..1257bf7 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonSortOrderForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonSortOrderInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadButtonSortOrderInternalServerErrorException.php new file mode 100644 index 0000000..75e7d5d --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonSortOrderInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonSortOrderNotFoundException.php b/lib/Exception/UpdateLaunchpadButtonSortOrderNotFoundException.php new file mode 100644 index 0000000..76b88e3 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonSortOrderNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadButtonSortOrderServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadButtonSortOrderServiceUnavailableException.php new file mode 100644 index 0000000..6fee48e --- /dev/null +++ b/lib/Exception/UpdateLaunchpadButtonSortOrderServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadCarouselContentBadRequestException.php b/lib/Exception/UpdateLaunchpadCarouselContentBadRequestException.php new file mode 100644 index 0000000..427ecdd --- /dev/null +++ b/lib/Exception/UpdateLaunchpadCarouselContentBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadCarouselContentForbiddenException.php b/lib/Exception/UpdateLaunchpadCarouselContentForbiddenException.php new file mode 100644 index 0000000..a75a0c7 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadCarouselContentForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadCarouselContentInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadCarouselContentInternalServerErrorException.php new file mode 100644 index 0000000..788ca1a --- /dev/null +++ b/lib/Exception/UpdateLaunchpadCarouselContentInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadCarouselContentNotFoundException.php b/lib/Exception/UpdateLaunchpadCarouselContentNotFoundException.php new file mode 100644 index 0000000..2a4b92e --- /dev/null +++ b/lib/Exception/UpdateLaunchpadCarouselContentNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadCarouselContentServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadCarouselContentServiceUnavailableException.php new file mode 100644 index 0000000..b54f5c4 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadCarouselContentServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadCarouselContentUnprocessableEntityException.php b/lib/Exception/UpdateLaunchpadCarouselContentUnprocessableEntityException.php new file mode 100644 index 0000000..fa97ab3 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadCarouselContentUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadForbiddenException.php b/lib/Exception/UpdateLaunchpadForbiddenException.php new file mode 100644 index 0000000..c5cb258 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadGridContentBadRequestException.php b/lib/Exception/UpdateLaunchpadGridContentBadRequestException.php new file mode 100644 index 0000000..0669f57 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadGridContentBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadGridContentForbiddenException.php b/lib/Exception/UpdateLaunchpadGridContentForbiddenException.php new file mode 100644 index 0000000..05dc8e3 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadGridContentForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadGridContentInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadGridContentInternalServerErrorException.php new file mode 100644 index 0000000..ce0fe7d --- /dev/null +++ b/lib/Exception/UpdateLaunchpadGridContentInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadGridContentNotFoundException.php b/lib/Exception/UpdateLaunchpadGridContentNotFoundException.php new file mode 100644 index 0000000..0038b62 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadGridContentNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadGridContentServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadGridContentServiceUnavailableException.php new file mode 100644 index 0000000..2494f9a --- /dev/null +++ b/lib/Exception/UpdateLaunchpadGridContentServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadGridContentUnprocessableEntityException.php b/lib/Exception/UpdateLaunchpadGridContentUnprocessableEntityException.php new file mode 100644 index 0000000..cba8cab --- /dev/null +++ b/lib/Exception/UpdateLaunchpadGridContentUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageByImageUseBadRequestException.php b/lib/Exception/UpdateLaunchpadImageByImageUseBadRequestException.php new file mode 100644 index 0000000..b4575c8 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageByImageUseBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageByImageUseForbiddenException.php b/lib/Exception/UpdateLaunchpadImageByImageUseForbiddenException.php new file mode 100644 index 0000000..523b4cb --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageByImageUseForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageByImageUseInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadImageByImageUseInternalServerErrorException.php new file mode 100644 index 0000000..51d5a2e --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageByImageUseInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageByImageUseNotFoundException.php b/lib/Exception/UpdateLaunchpadImageByImageUseNotFoundException.php new file mode 100644 index 0000000..bfdd0f5 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageByImageUseNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageByImageUseServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadImageByImageUseServiceUnavailableException.php new file mode 100644 index 0000000..8f228ee --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageByImageUseServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageContentBadRequestException.php b/lib/Exception/UpdateLaunchpadImageContentBadRequestException.php new file mode 100644 index 0000000..c78f810 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageContentBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageContentForbiddenException.php b/lib/Exception/UpdateLaunchpadImageContentForbiddenException.php new file mode 100644 index 0000000..4f79920 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageContentForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageContentInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadImageContentInternalServerErrorException.php new file mode 100644 index 0000000..bcc6683 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageContentInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageContentNotFoundException.php b/lib/Exception/UpdateLaunchpadImageContentNotFoundException.php new file mode 100644 index 0000000..5138769 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageContentNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadImageContentServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadImageContentServiceUnavailableException.php new file mode 100644 index 0000000..d1e4ead --- /dev/null +++ b/lib/Exception/UpdateLaunchpadImageContentServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadInternalServerErrorException.php new file mode 100644 index 0000000..30370b5 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadNotFoundException.php b/lib/Exception/UpdateLaunchpadNotFoundException.php new file mode 100644 index 0000000..112932e --- /dev/null +++ b/lib/Exception/UpdateLaunchpadNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadServiceUnavailableException.php new file mode 100644 index 0000000..086e6e4 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadSocialBadRequestException.php b/lib/Exception/UpdateLaunchpadSocialBadRequestException.php new file mode 100644 index 0000000..6d62dc2 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadSocialBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadSocialForbiddenException.php b/lib/Exception/UpdateLaunchpadSocialForbiddenException.php new file mode 100644 index 0000000..186f17e --- /dev/null +++ b/lib/Exception/UpdateLaunchpadSocialForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadSocialInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadSocialInternalServerErrorException.php new file mode 100644 index 0000000..0050cef --- /dev/null +++ b/lib/Exception/UpdateLaunchpadSocialInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadSocialNotFoundException.php b/lib/Exception/UpdateLaunchpadSocialNotFoundException.php new file mode 100644 index 0000000..04a63a2 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadSocialNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadSocialServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadSocialServiceUnavailableException.php new file mode 100644 index 0000000..f5f38eb --- /dev/null +++ b/lib/Exception/UpdateLaunchpadSocialServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadTooManyRequestsException.php b/lib/Exception/UpdateLaunchpadTooManyRequestsException.php new file mode 100644 index 0000000..32a72a6 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadYoutubeVideoBadRequestException.php b/lib/Exception/UpdateLaunchpadYoutubeVideoBadRequestException.php new file mode 100644 index 0000000..5c2886e --- /dev/null +++ b/lib/Exception/UpdateLaunchpadYoutubeVideoBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadYoutubeVideoForbiddenException.php b/lib/Exception/UpdateLaunchpadYoutubeVideoForbiddenException.php new file mode 100644 index 0000000..569e3be --- /dev/null +++ b/lib/Exception/UpdateLaunchpadYoutubeVideoForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadYoutubeVideoInternalServerErrorException.php b/lib/Exception/UpdateLaunchpadYoutubeVideoInternalServerErrorException.php new file mode 100644 index 0000000..f36dea2 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadYoutubeVideoInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadYoutubeVideoNotFoundException.php b/lib/Exception/UpdateLaunchpadYoutubeVideoNotFoundException.php new file mode 100644 index 0000000..c4a1f78 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadYoutubeVideoNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLaunchpadYoutubeVideoServiceUnavailableException.php b/lib/Exception/UpdateLaunchpadYoutubeVideoServiceUnavailableException.php new file mode 100644 index 0000000..6708351 --- /dev/null +++ b/lib/Exception/UpdateLaunchpadYoutubeVideoServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkBadRequestException.php b/lib/Exception/UpdateLinkBadRequestException.php new file mode 100644 index 0000000..6230771 --- /dev/null +++ b/lib/Exception/UpdateLinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkConflictException.php b/lib/Exception/UpdateLinkConflictException.php new file mode 100644 index 0000000..35a16ff --- /dev/null +++ b/lib/Exception/UpdateLinkConflictException.php @@ -0,0 +1,40 @@ +conflict = $conflict; + $this->response = $response; + } + + public function getConflict(): \Bitly\Model\Conflict + { + return $this->conflict; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkExpectationFailedException.php b/lib/Exception/UpdateLinkExpectationFailedException.php new file mode 100644 index 0000000..f26e7fa --- /dev/null +++ b/lib/Exception/UpdateLinkExpectationFailedException.php @@ -0,0 +1,40 @@ +expectationFailed = $expectationFailed; + $this->response = $response; + } + + public function getExpectationFailed(): \Bitly\Model\ExpectationFailed + { + return $this->expectationFailed; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkForbiddenException.php b/lib/Exception/UpdateLinkForbiddenException.php new file mode 100644 index 0000000..cb17554 --- /dev/null +++ b/lib/Exception/UpdateLinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkInternalServerErrorException.php b/lib/Exception/UpdateLinkInternalServerErrorException.php new file mode 100644 index 0000000..153f2d3 --- /dev/null +++ b/lib/Exception/UpdateLinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkNotFoundException.php b/lib/Exception/UpdateLinkNotFoundException.php new file mode 100644 index 0000000..ed67aab --- /dev/null +++ b/lib/Exception/UpdateLinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkPaymentRequiredException.php b/lib/Exception/UpdateLinkPaymentRequiredException.php new file mode 100644 index 0000000..8af75d7 --- /dev/null +++ b/lib/Exception/UpdateLinkPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkServiceUnavailableException.php b/lib/Exception/UpdateLinkServiceUnavailableException.php new file mode 100644 index 0000000..c9cf38f --- /dev/null +++ b/lib/Exception/UpdateLinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkTooManyRequestsException.php b/lib/Exception/UpdateLinkTooManyRequestsException.php new file mode 100644 index 0000000..be3a217 --- /dev/null +++ b/lib/Exception/UpdateLinkTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateLinkUnprocessableEntityException.php b/lib/Exception/UpdateLinkUnprocessableEntityException.php new file mode 100644 index 0000000..4467f3c --- /dev/null +++ b/lib/Exception/UpdateLinkUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppBadRequestException.php b/lib/Exception/UpdateOAuthAppBadRequestException.php new file mode 100644 index 0000000..041a7e5 --- /dev/null +++ b/lib/Exception/UpdateOAuthAppBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppClientSecretForbiddenException.php b/lib/Exception/UpdateOAuthAppClientSecretForbiddenException.php new file mode 100644 index 0000000..847fd70 --- /dev/null +++ b/lib/Exception/UpdateOAuthAppClientSecretForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppClientSecretInternalServerErrorException.php b/lib/Exception/UpdateOAuthAppClientSecretInternalServerErrorException.php new file mode 100644 index 0000000..0bca099 --- /dev/null +++ b/lib/Exception/UpdateOAuthAppClientSecretInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppClientSecretNotFoundException.php b/lib/Exception/UpdateOAuthAppClientSecretNotFoundException.php new file mode 100644 index 0000000..8bbff45 --- /dev/null +++ b/lib/Exception/UpdateOAuthAppClientSecretNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppClientSecretServiceUnavailableException.php b/lib/Exception/UpdateOAuthAppClientSecretServiceUnavailableException.php new file mode 100644 index 0000000..8c61670 --- /dev/null +++ b/lib/Exception/UpdateOAuthAppClientSecretServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppForbiddenException.php b/lib/Exception/UpdateOAuthAppForbiddenException.php new file mode 100644 index 0000000..41c1366 --- /dev/null +++ b/lib/Exception/UpdateOAuthAppForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppInternalServerErrorException.php b/lib/Exception/UpdateOAuthAppInternalServerErrorException.php new file mode 100644 index 0000000..5a3489c --- /dev/null +++ b/lib/Exception/UpdateOAuthAppInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppNotFoundException.php b/lib/Exception/UpdateOAuthAppNotFoundException.php new file mode 100644 index 0000000..15e0906 --- /dev/null +++ b/lib/Exception/UpdateOAuthAppNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOAuthAppServiceUnavailableException.php b/lib/Exception/UpdateOAuthAppServiceUnavailableException.php new file mode 100644 index 0000000..eee9c71 --- /dev/null +++ b/lib/Exception/UpdateOAuthAppServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationForbiddenException.php b/lib/Exception/UpdateOrganizationForbiddenException.php new file mode 100644 index 0000000..4910c23 --- /dev/null +++ b/lib/Exception/UpdateOrganizationForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationInternalServerErrorException.php b/lib/Exception/UpdateOrganizationInternalServerErrorException.php new file mode 100644 index 0000000..2061acb --- /dev/null +++ b/lib/Exception/UpdateOrganizationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationNotFoundException.php b/lib/Exception/UpdateOrganizationNotFoundException.php new file mode 100644 index 0000000..6a6f5dc --- /dev/null +++ b/lib/Exception/UpdateOrganizationNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationSSOSettingsForbiddenException.php b/lib/Exception/UpdateOrganizationSSOSettingsForbiddenException.php new file mode 100644 index 0000000..4bec6af --- /dev/null +++ b/lib/Exception/UpdateOrganizationSSOSettingsForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationSSOSettingsInternalServerErrorException.php b/lib/Exception/UpdateOrganizationSSOSettingsInternalServerErrorException.php new file mode 100644 index 0000000..92c4935 --- /dev/null +++ b/lib/Exception/UpdateOrganizationSSOSettingsInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationSSOSettingsNotFoundException.php b/lib/Exception/UpdateOrganizationSSOSettingsNotFoundException.php new file mode 100644 index 0000000..34107d2 --- /dev/null +++ b/lib/Exception/UpdateOrganizationSSOSettingsNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationSSOSettingsPaymentRequiredException.php b/lib/Exception/UpdateOrganizationSSOSettingsPaymentRequiredException.php new file mode 100644 index 0000000..392d791 --- /dev/null +++ b/lib/Exception/UpdateOrganizationSSOSettingsPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationSSOSettingsServiceUnavailableException.php b/lib/Exception/UpdateOrganizationSSOSettingsServiceUnavailableException.php new file mode 100644 index 0000000..c0025b6 --- /dev/null +++ b/lib/Exception/UpdateOrganizationSSOSettingsServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationSSOSettingsUnprocessableEntityException.php b/lib/Exception/UpdateOrganizationSSOSettingsUnprocessableEntityException.php new file mode 100644 index 0000000..4d9dc73 --- /dev/null +++ b/lib/Exception/UpdateOrganizationSSOSettingsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOrganizationServiceUnavailableException.php b/lib/Exception/UpdateOrganizationServiceUnavailableException.php new file mode 100644 index 0000000..989a6b5 --- /dev/null +++ b/lib/Exception/UpdateOrganizationServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOverridesForBitlinkBadRequestException.php b/lib/Exception/UpdateOverridesForBitlinkBadRequestException.php new file mode 100644 index 0000000..c334032 --- /dev/null +++ b/lib/Exception/UpdateOverridesForBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOverridesForBitlinkForbiddenException.php b/lib/Exception/UpdateOverridesForBitlinkForbiddenException.php new file mode 100644 index 0000000..8e3d443 --- /dev/null +++ b/lib/Exception/UpdateOverridesForBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOverridesForBitlinkInternalServerErrorException.php b/lib/Exception/UpdateOverridesForBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..207dbb7 --- /dev/null +++ b/lib/Exception/UpdateOverridesForBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOverridesForBitlinkNotFoundException.php b/lib/Exception/UpdateOverridesForBitlinkNotFoundException.php new file mode 100644 index 0000000..0162e20 --- /dev/null +++ b/lib/Exception/UpdateOverridesForBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOverridesForBitlinkPaymentRequiredException.php b/lib/Exception/UpdateOverridesForBitlinkPaymentRequiredException.php new file mode 100644 index 0000000..a5ab2f5 --- /dev/null +++ b/lib/Exception/UpdateOverridesForBitlinkPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOverridesForBitlinkServiceUnavailableException.php b/lib/Exception/UpdateOverridesForBitlinkServiceUnavailableException.php new file mode 100644 index 0000000..1c7c742 --- /dev/null +++ b/lib/Exception/UpdateOverridesForBitlinkServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOverridesForBitlinkTooManyRequestsException.php b/lib/Exception/UpdateOverridesForBitlinkTooManyRequestsException.php new file mode 100644 index 0000000..41a90f2 --- /dev/null +++ b/lib/Exception/UpdateOverridesForBitlinkTooManyRequestsException.php @@ -0,0 +1,40 @@ +tooManyRequests = $tooManyRequests; + $this->response = $response; + } + + public function getTooManyRequests(): \Bitly\Model\TooManyRequests + { + return $this->tooManyRequests; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateOverridesForBitlinkUnprocessableEntityException.php b/lib/Exception/UpdateOverridesForBitlinkUnprocessableEntityException.php new file mode 100644 index 0000000..364ad9e --- /dev/null +++ b/lib/Exception/UpdateOverridesForBitlinkUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdatePaymentContactInfoBadRequestException.php b/lib/Exception/UpdatePaymentContactInfoBadRequestException.php new file mode 100644 index 0000000..468211f --- /dev/null +++ b/lib/Exception/UpdatePaymentContactInfoBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdatePaymentContactInfoForbiddenException.php b/lib/Exception/UpdatePaymentContactInfoForbiddenException.php new file mode 100644 index 0000000..64097db --- /dev/null +++ b/lib/Exception/UpdatePaymentContactInfoForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdatePaymentContactInfoInternalServerErrorException.php b/lib/Exception/UpdatePaymentContactInfoInternalServerErrorException.php new file mode 100644 index 0000000..98dd3ce --- /dev/null +++ b/lib/Exception/UpdatePaymentContactInfoInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdatePaymentContactInfoNotFoundException.php b/lib/Exception/UpdatePaymentContactInfoNotFoundException.php new file mode 100644 index 0000000..3899876 --- /dev/null +++ b/lib/Exception/UpdatePaymentContactInfoNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdatePaymentContactInfoUnprocessableEntityException.php b/lib/Exception/UpdatePaymentContactInfoUnprocessableEntityException.php new file mode 100644 index 0000000..0b48036 --- /dev/null +++ b/lib/Exception/UpdatePaymentContactInfoUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteAppearanceBadRequestException.php b/lib/Exception/UpdateSiteAppearanceBadRequestException.php new file mode 100644 index 0000000..9f2c4b6 --- /dev/null +++ b/lib/Exception/UpdateSiteAppearanceBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteAppearanceForbiddenException.php b/lib/Exception/UpdateSiteAppearanceForbiddenException.php new file mode 100644 index 0000000..dd09539 --- /dev/null +++ b/lib/Exception/UpdateSiteAppearanceForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteAppearanceInternalServerErrorException.php b/lib/Exception/UpdateSiteAppearanceInternalServerErrorException.php new file mode 100644 index 0000000..c35e2f2 --- /dev/null +++ b/lib/Exception/UpdateSiteAppearanceInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteAppearanceNotFoundException.php b/lib/Exception/UpdateSiteAppearanceNotFoundException.php new file mode 100644 index 0000000..db98111 --- /dev/null +++ b/lib/Exception/UpdateSiteAppearanceNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteAppearanceServiceUnavailableException.php b/lib/Exception/UpdateSiteAppearanceServiceUnavailableException.php new file mode 100644 index 0000000..a9bf6d5 --- /dev/null +++ b/lib/Exception/UpdateSiteAppearanceServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteButtonBadRequestException.php b/lib/Exception/UpdateSiteButtonBadRequestException.php new file mode 100644 index 0000000..277e390 --- /dev/null +++ b/lib/Exception/UpdateSiteButtonBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteButtonExpectationFailedException.php b/lib/Exception/UpdateSiteButtonExpectationFailedException.php new file mode 100644 index 0000000..a10398d --- /dev/null +++ b/lib/Exception/UpdateSiteButtonExpectationFailedException.php @@ -0,0 +1,40 @@ +expectationFailed = $expectationFailed; + $this->response = $response; + } + + public function getExpectationFailed(): \Bitly\Model\ExpectationFailed + { + return $this->expectationFailed; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteButtonForbiddenException.php b/lib/Exception/UpdateSiteButtonForbiddenException.php new file mode 100644 index 0000000..b0385c3 --- /dev/null +++ b/lib/Exception/UpdateSiteButtonForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteButtonInternalServerErrorException.php b/lib/Exception/UpdateSiteButtonInternalServerErrorException.php new file mode 100644 index 0000000..b19561d --- /dev/null +++ b/lib/Exception/UpdateSiteButtonInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteButtonNotFoundException.php b/lib/Exception/UpdateSiteButtonNotFoundException.php new file mode 100644 index 0000000..5cf4003 --- /dev/null +++ b/lib/Exception/UpdateSiteButtonNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteButtonTooManyRequestsException.php b/lib/Exception/UpdateSiteButtonTooManyRequestsException.php new file mode 100644 index 0000000..b77689a --- /dev/null +++ b/lib/Exception/UpdateSiteButtonTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSiteButtonUnprocessableEntityException.php b/lib/Exception/UpdateSiteButtonUnprocessableEntityException.php new file mode 100644 index 0000000..78fbdff --- /dev/null +++ b/lib/Exception/UpdateSiteButtonUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSitesToKeepBadRequestException.php b/lib/Exception/UpdateSitesToKeepBadRequestException.php new file mode 100644 index 0000000..040b6b8 --- /dev/null +++ b/lib/Exception/UpdateSitesToKeepBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSitesToKeepForbiddenException.php b/lib/Exception/UpdateSitesToKeepForbiddenException.php new file mode 100644 index 0000000..21acf6a --- /dev/null +++ b/lib/Exception/UpdateSitesToKeepForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSitesToKeepInternalServerErrorException.php b/lib/Exception/UpdateSitesToKeepInternalServerErrorException.php new file mode 100644 index 0000000..d0c6178 --- /dev/null +++ b/lib/Exception/UpdateSitesToKeepInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateSitesToKeepUnprocessableEntityException.php b/lib/Exception/UpdateSitesToKeepUnprocessableEntityException.php new file mode 100644 index 0000000..f55ff0c --- /dev/null +++ b/lib/Exception/UpdateSitesToKeepUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateStripeCustomerBadRequestException.php b/lib/Exception/UpdateStripeCustomerBadRequestException.php new file mode 100644 index 0000000..407e18c --- /dev/null +++ b/lib/Exception/UpdateStripeCustomerBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateStripeCustomerForbiddenException.php b/lib/Exception/UpdateStripeCustomerForbiddenException.php new file mode 100644 index 0000000..9e6da65 --- /dev/null +++ b/lib/Exception/UpdateStripeCustomerForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateStripeCustomerInternalServerErrorException.php b/lib/Exception/UpdateStripeCustomerInternalServerErrorException.php new file mode 100644 index 0000000..83e5ea6 --- /dev/null +++ b/lib/Exception/UpdateStripeCustomerInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateStripeCustomerUnprocessableEntityException.php b/lib/Exception/UpdateStripeCustomerUnprocessableEntityException.php new file mode 100644 index 0000000..1c8847b --- /dev/null +++ b/lib/Exception/UpdateStripeCustomerUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateUserWithRoleBadRequestException.php b/lib/Exception/UpdateUserWithRoleBadRequestException.php new file mode 100644 index 0000000..ee153ba --- /dev/null +++ b/lib/Exception/UpdateUserWithRoleBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateUserWithRoleForbiddenException.php b/lib/Exception/UpdateUserWithRoleForbiddenException.php new file mode 100644 index 0000000..d934f93 --- /dev/null +++ b/lib/Exception/UpdateUserWithRoleForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateUserWithRoleInternalServerErrorException.php b/lib/Exception/UpdateUserWithRoleInternalServerErrorException.php new file mode 100644 index 0000000..809625d --- /dev/null +++ b/lib/Exception/UpdateUserWithRoleInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateUserWithRoleServiceUnavailableException.php b/lib/Exception/UpdateUserWithRoleServiceUnavailableException.php new file mode 100644 index 0000000..7cbcc0f --- /dev/null +++ b/lib/Exception/UpdateUserWithRoleServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpdateUserWithRoleUnprocessableEntityException.php b/lib/Exception/UpdateUserWithRoleUnprocessableEntityException.php new file mode 100644 index 0000000..c390dbd --- /dev/null +++ b/lib/Exception/UpdateUserWithRoleUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeOrganizationBadRequestException.php b/lib/Exception/UpgradeOrganizationBadRequestException.php new file mode 100644 index 0000000..a8dcd1a --- /dev/null +++ b/lib/Exception/UpgradeOrganizationBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeOrganizationForbiddenException.php b/lib/Exception/UpgradeOrganizationForbiddenException.php new file mode 100644 index 0000000..64b39fb --- /dev/null +++ b/lib/Exception/UpgradeOrganizationForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeOrganizationInternalServerErrorException.php b/lib/Exception/UpgradeOrganizationInternalServerErrorException.php new file mode 100644 index 0000000..6d4077d --- /dev/null +++ b/lib/Exception/UpgradeOrganizationInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeOrganizationUnprocessableEntityException.php b/lib/Exception/UpgradeOrganizationUnprocessableEntityException.php new file mode 100644 index 0000000..1111212 --- /dev/null +++ b/lib/Exception/UpgradeOrganizationUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeOrganizationWithStripeSubscriptionBadRequestException.php b/lib/Exception/UpgradeOrganizationWithStripeSubscriptionBadRequestException.php new file mode 100644 index 0000000..7ec1cad --- /dev/null +++ b/lib/Exception/UpgradeOrganizationWithStripeSubscriptionBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeOrganizationWithStripeSubscriptionForbiddenException.php b/lib/Exception/UpgradeOrganizationWithStripeSubscriptionForbiddenException.php new file mode 100644 index 0000000..a7e909d --- /dev/null +++ b/lib/Exception/UpgradeOrganizationWithStripeSubscriptionForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeOrganizationWithStripeSubscriptionInternalServerErrorException.php b/lib/Exception/UpgradeOrganizationWithStripeSubscriptionInternalServerErrorException.php new file mode 100644 index 0000000..ba1c7db --- /dev/null +++ b/lib/Exception/UpgradeOrganizationWithStripeSubscriptionInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeOrganizationWithStripeSubscriptionUnprocessableEntityException.php b/lib/Exception/UpgradeOrganizationWithStripeSubscriptionUnprocessableEntityException.php new file mode 100644 index 0000000..be7c627 --- /dev/null +++ b/lib/Exception/UpgradeOrganizationWithStripeSubscriptionUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeQRCodeToBitlinkBadRequestException.php b/lib/Exception/UpgradeQRCodeToBitlinkBadRequestException.php new file mode 100644 index 0000000..ff425ac --- /dev/null +++ b/lib/Exception/UpgradeQRCodeToBitlinkBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeQRCodeToBitlinkForbiddenException.php b/lib/Exception/UpgradeQRCodeToBitlinkForbiddenException.php new file mode 100644 index 0000000..088f31a --- /dev/null +++ b/lib/Exception/UpgradeQRCodeToBitlinkForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeQRCodeToBitlinkInternalServerErrorException.php b/lib/Exception/UpgradeQRCodeToBitlinkInternalServerErrorException.php new file mode 100644 index 0000000..59db500 --- /dev/null +++ b/lib/Exception/UpgradeQRCodeToBitlinkInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeQRCodeToBitlinkNotFoundException.php b/lib/Exception/UpgradeQRCodeToBitlinkNotFoundException.php new file mode 100644 index 0000000..06242f3 --- /dev/null +++ b/lib/Exception/UpgradeQRCodeToBitlinkNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpgradeQRCodeToBitlinkTooManyRequestsException.php b/lib/Exception/UpgradeQRCodeToBitlinkTooManyRequestsException.php new file mode 100644 index 0000000..c84b04e --- /dev/null +++ b/lib/Exception/UpgradeQRCodeToBitlinkTooManyRequestsException.php @@ -0,0 +1,40 @@ +monthlyLimitExceeded = $monthlyLimitExceeded; + $this->response = $response; + } + + public function getMonthlyLimitExceeded(): \Bitly\Model\MonthlyLimitExceeded + { + return $this->monthlyLimitExceeded; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadImageBadRequestException.php b/lib/Exception/UploadImageBadRequestException.php new file mode 100644 index 0000000..43bc4fa --- /dev/null +++ b/lib/Exception/UploadImageBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadImageForbiddenException.php b/lib/Exception/UploadImageForbiddenException.php new file mode 100644 index 0000000..831e6de --- /dev/null +++ b/lib/Exception/UploadImageForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadImageInternalServerErrorException.php b/lib/Exception/UploadImageInternalServerErrorException.php new file mode 100644 index 0000000..4a62674 --- /dev/null +++ b/lib/Exception/UploadImageInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadImageNotFoundException.php b/lib/Exception/UploadImageNotFoundException.php new file mode 100644 index 0000000..6ae45c9 --- /dev/null +++ b/lib/Exception/UploadImageNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadImageServiceUnavailableException.php b/lib/Exception/UploadImageServiceUnavailableException.php new file mode 100644 index 0000000..c32b27c --- /dev/null +++ b/lib/Exception/UploadImageServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadLaunchpadImageBadRequestException.php b/lib/Exception/UploadLaunchpadImageBadRequestException.php new file mode 100644 index 0000000..4392d7f --- /dev/null +++ b/lib/Exception/UploadLaunchpadImageBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadLaunchpadImageForbiddenException.php b/lib/Exception/UploadLaunchpadImageForbiddenException.php new file mode 100644 index 0000000..582551b --- /dev/null +++ b/lib/Exception/UploadLaunchpadImageForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadLaunchpadImageInternalServerErrorException.php b/lib/Exception/UploadLaunchpadImageInternalServerErrorException.php new file mode 100644 index 0000000..5247276 --- /dev/null +++ b/lib/Exception/UploadLaunchpadImageInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadLaunchpadImageNotFoundException.php b/lib/Exception/UploadLaunchpadImageNotFoundException.php new file mode 100644 index 0000000..38e48ed --- /dev/null +++ b/lib/Exception/UploadLaunchpadImageNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UploadLaunchpadImageServiceUnavailableException.php b/lib/Exception/UploadLaunchpadImageServiceUnavailableException.php new file mode 100644 index 0000000..9525e3b --- /dev/null +++ b/lib/Exception/UploadLaunchpadImageServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpsertOrgEmailForbiddenException.php b/lib/Exception/UpsertOrgEmailForbiddenException.php new file mode 100644 index 0000000..5468a00 --- /dev/null +++ b/lib/Exception/UpsertOrgEmailForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpsertOrgEmailInternalServerErrorException.php b/lib/Exception/UpsertOrgEmailInternalServerErrorException.php new file mode 100644 index 0000000..241d8eb --- /dev/null +++ b/lib/Exception/UpsertOrgEmailInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpsertOrgEmailNotFoundException.php b/lib/Exception/UpsertOrgEmailNotFoundException.php new file mode 100644 index 0000000..0ddf316 --- /dev/null +++ b/lib/Exception/UpsertOrgEmailNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UpsertOrgEmailServiceUnavailableException.php b/lib/Exception/UpsertOrgEmailServiceUnavailableException.php new file mode 100644 index 0000000..63a60c4 --- /dev/null +++ b/lib/Exception/UpsertOrgEmailServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UserAcceptInviteBadRequestException.php b/lib/Exception/UserAcceptInviteBadRequestException.php new file mode 100644 index 0000000..686a1f0 --- /dev/null +++ b/lib/Exception/UserAcceptInviteBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UserAcceptInviteForbiddenException.php b/lib/Exception/UserAcceptInviteForbiddenException.php new file mode 100644 index 0000000..0f8d51c --- /dev/null +++ b/lib/Exception/UserAcceptInviteForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UserAcceptInviteInternalServerErrorException.php b/lib/Exception/UserAcceptInviteInternalServerErrorException.php new file mode 100644 index 0000000..8d56ee7 --- /dev/null +++ b/lib/Exception/UserAcceptInviteInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/UserAcceptInviteUnprocessableEntityException.php b/lib/Exception/UserAcceptInviteUnprocessableEntityException.php new file mode 100644 index 0000000..ac42c92 --- /dev/null +++ b/lib/Exception/UserAcceptInviteUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateBulkUploadBadRequestException.php b/lib/Exception/ValidateBulkUploadBadRequestException.php new file mode 100644 index 0000000..df8e1ca --- /dev/null +++ b/lib/Exception/ValidateBulkUploadBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateBulkUploadForbiddenException.php b/lib/Exception/ValidateBulkUploadForbiddenException.php new file mode 100644 index 0000000..37a76a7 --- /dev/null +++ b/lib/Exception/ValidateBulkUploadForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateBulkUploadInternalServerErrorException.php b/lib/Exception/ValidateBulkUploadInternalServerErrorException.php new file mode 100644 index 0000000..9777636 --- /dev/null +++ b/lib/Exception/ValidateBulkUploadInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateBulkUploadNotFoundException.php b/lib/Exception/ValidateBulkUploadNotFoundException.php new file mode 100644 index 0000000..f04d075 --- /dev/null +++ b/lib/Exception/ValidateBulkUploadNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateBulkUploadPaymentRequiredException.php b/lib/Exception/ValidateBulkUploadPaymentRequiredException.php new file mode 100644 index 0000000..f0cc299 --- /dev/null +++ b/lib/Exception/ValidateBulkUploadPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateBulkUploadServiceUnavailableException.php b/lib/Exception/ValidateBulkUploadServiceUnavailableException.php new file mode 100644 index 0000000..dc40c09 --- /dev/null +++ b/lib/Exception/ValidateBulkUploadServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateBulkUploadUnprocessableEntityException.php b/lib/Exception/ValidateBulkUploadUnprocessableEntityException.php new file mode 100644 index 0000000..0e57b09 --- /dev/null +++ b/lib/Exception/ValidateBulkUploadUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateCustomDomainBadRequestException.php b/lib/Exception/ValidateCustomDomainBadRequestException.php new file mode 100644 index 0000000..04a061b --- /dev/null +++ b/lib/Exception/ValidateCustomDomainBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateCustomDomainForbiddenException.php b/lib/Exception/ValidateCustomDomainForbiddenException.php new file mode 100644 index 0000000..d311ba5 --- /dev/null +++ b/lib/Exception/ValidateCustomDomainForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateCustomDomainInternalServerErrorException.php b/lib/Exception/ValidateCustomDomainInternalServerErrorException.php new file mode 100644 index 0000000..c135aa6 --- /dev/null +++ b/lib/Exception/ValidateCustomDomainInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateCustomDomainNotFoundException.php b/lib/Exception/ValidateCustomDomainNotFoundException.php new file mode 100644 index 0000000..faf3160 --- /dev/null +++ b/lib/Exception/ValidateCustomDomainNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateCustomDomainServiceUnavailableException.php b/lib/Exception/ValidateCustomDomainServiceUnavailableException.php new file mode 100644 index 0000000..4ba1c44 --- /dev/null +++ b/lib/Exception/ValidateCustomDomainServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateCustomDomainUnprocessableEntityException.php b/lib/Exception/ValidateCustomDomainUnprocessableEntityException.php new file mode 100644 index 0000000..a44ca17 --- /dev/null +++ b/lib/Exception/ValidateCustomDomainUnprocessableEntityException.php @@ -0,0 +1,40 @@ +unprocessableEntity = $unprocessableEntity; + $this->response = $response; + } + + public function getUnprocessableEntity(): \Bitly\Model\UnprocessableEntity + { + return $this->unprocessableEntity; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidatePromoCodeBadRequestException.php b/lib/Exception/ValidatePromoCodeBadRequestException.php new file mode 100644 index 0000000..d7531f7 --- /dev/null +++ b/lib/Exception/ValidatePromoCodeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidatePromoCodeInternalServerErrorException.php b/lib/Exception/ValidatePromoCodeInternalServerErrorException.php new file mode 100644 index 0000000..6694054 --- /dev/null +++ b/lib/Exception/ValidatePromoCodeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidatePromoCodeNotFoundException.php b/lib/Exception/ValidatePromoCodeNotFoundException.php new file mode 100644 index 0000000..e7693e5 --- /dev/null +++ b/lib/Exception/ValidatePromoCodeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidatePromoCodeServiceUnavailableException.php b/lib/Exception/ValidatePromoCodeServiceUnavailableException.php new file mode 100644 index 0000000..2bc4415 --- /dev/null +++ b/lib/Exception/ValidatePromoCodeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateStripePromoCodeBadRequestException.php b/lib/Exception/ValidateStripePromoCodeBadRequestException.php new file mode 100644 index 0000000..bc534b9 --- /dev/null +++ b/lib/Exception/ValidateStripePromoCodeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateStripePromoCodeInternalServerErrorException.php b/lib/Exception/ValidateStripePromoCodeInternalServerErrorException.php new file mode 100644 index 0000000..e97d9d2 --- /dev/null +++ b/lib/Exception/ValidateStripePromoCodeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateStripePromoCodeNotFoundException.php b/lib/Exception/ValidateStripePromoCodeNotFoundException.php new file mode 100644 index 0000000..3ec43d6 --- /dev/null +++ b/lib/Exception/ValidateStripePromoCodeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/ValidateStripePromoCodeServiceUnavailableException.php b/lib/Exception/ValidateStripePromoCodeServiceUnavailableException.php new file mode 100644 index 0000000..292f139 --- /dev/null +++ b/lib/Exception/ValidateStripePromoCodeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifySSOSlugForbiddenException.php b/lib/Exception/VerifySSOSlugForbiddenException.php new file mode 100644 index 0000000..7f35657 --- /dev/null +++ b/lib/Exception/VerifySSOSlugForbiddenException.php @@ -0,0 +1,40 @@ +forbidden = $forbidden; + $this->response = $response; + } + + public function getForbidden(): \Bitly\Model\Forbidden + { + return $this->forbidden; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifySSOSlugInternalServerErrorException.php b/lib/Exception/VerifySSOSlugInternalServerErrorException.php new file mode 100644 index 0000000..4663a0c --- /dev/null +++ b/lib/Exception/VerifySSOSlugInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifySSOSlugNotFoundException.php b/lib/Exception/VerifySSOSlugNotFoundException.php new file mode 100644 index 0000000..cd96db7 --- /dev/null +++ b/lib/Exception/VerifySSOSlugNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifySSOSlugPaymentRequiredException.php b/lib/Exception/VerifySSOSlugPaymentRequiredException.php new file mode 100644 index 0000000..d117bd5 --- /dev/null +++ b/lib/Exception/VerifySSOSlugPaymentRequiredException.php @@ -0,0 +1,40 @@ +upgradeRequired = $upgradeRequired; + $this->response = $response; + } + + public function getUpgradeRequired(): \Bitly\Model\UpgradeRequired + { + return $this->upgradeRequired; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifySSOSlugServiceUnavailableException.php b/lib/Exception/VerifySSOSlugServiceUnavailableException.php new file mode 100644 index 0000000..5512cc4 --- /dev/null +++ b/lib/Exception/VerifySSOSlugServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifyTwoFactorCodeBadRequestException.php b/lib/Exception/VerifyTwoFactorCodeBadRequestException.php new file mode 100644 index 0000000..a851ad2 --- /dev/null +++ b/lib/Exception/VerifyTwoFactorCodeBadRequestException.php @@ -0,0 +1,40 @@ +badRequest = $badRequest; + $this->response = $response; + } + + public function getBadRequest(): \Bitly\Model\BadRequest + { + return $this->badRequest; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifyTwoFactorCodeInternalServerErrorException.php b/lib/Exception/VerifyTwoFactorCodeInternalServerErrorException.php new file mode 100644 index 0000000..1069a23 --- /dev/null +++ b/lib/Exception/VerifyTwoFactorCodeInternalServerErrorException.php @@ -0,0 +1,40 @@ +internalError = $internalError; + $this->response = $response; + } + + public function getInternalError(): \Bitly\Model\InternalError + { + return $this->internalError; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifyTwoFactorCodeNotFoundException.php b/lib/Exception/VerifyTwoFactorCodeNotFoundException.php new file mode 100644 index 0000000..5a7d4fb --- /dev/null +++ b/lib/Exception/VerifyTwoFactorCodeNotFoundException.php @@ -0,0 +1,40 @@ +notFound = $notFound; + $this->response = $response; + } + + public function getNotFound(): \Bitly\Model\NotFound + { + return $this->notFound; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Exception/VerifyTwoFactorCodeServiceUnavailableException.php b/lib/Exception/VerifyTwoFactorCodeServiceUnavailableException.php new file mode 100644 index 0000000..99717af --- /dev/null +++ b/lib/Exception/VerifyTwoFactorCodeServiceUnavailableException.php @@ -0,0 +1,40 @@ +temporarilyUnavailable = $temporarilyUnavailable; + $this->response = $response; + } + + public function getTemporarilyUnavailable(): \Bitly\Model\TemporarilyUnavailable + { + return $this->temporarilyUnavailable; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/lib/Model/AggregateLaunchpadsOverviewGetResponse200.php b/lib/Model/AggregateLaunchpadsOverviewGetResponse200.php new file mode 100644 index 0000000..453aed1 --- /dev/null +++ b/lib/Model/AggregateLaunchpadsOverviewGetResponse200.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var float + */ + protected $views; + /** + * @var float + */ + protected $clicks; + /** + * @var string + */ + protected $info; + + public function getViews(): float + { + return $this->views; + } + + public function setViews(float $views): self + { + $this->initialized['views'] = true; + $this->views = $views; + + return $this; + } + + public function getClicks(): float + { + return $this->clicks; + } + + public function setClicks(float $clicks): self + { + $this->initialized['clicks'] = true; + $this->clicks = $clicks; + + return $this; + } + + public function getInfo(): string + { + return $this->info; + } + + public function setInfo(string $info): self + { + $this->initialized['info'] = true; + $this->info = $info; + + return $this; + } +} diff --git a/lib/Model/AggregateSitesOverviewGetResponse200.php b/lib/Model/AggregateSitesOverviewGetResponse200.php new file mode 100644 index 0000000..df0124b --- /dev/null +++ b/lib/Model/AggregateSitesOverviewGetResponse200.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var float + */ + protected $views; + /** + * @var float + */ + protected $clicks; + /** + * @var string + */ + protected $info; + + public function getViews(): float + { + return $this->views; + } + + public function setViews(float $views): self + { + $this->initialized['views'] = true; + $this->views = $views; + + return $this; + } + + public function getClicks(): float + { + return $this->clicks; + } + + public function setClicks(float $clicks): self + { + $this->initialized['clicks'] = true; + $this->clicks = $clicks; + + return $this; + } + + public function getInfo(): string + { + return $this->info; + } + + public function setInfo(string $info): self + { + $this->initialized['info'] = true; + $this->info = $info; + + return $this; + } +} diff --git a/lib/Model/BillingAccount.php b/lib/Model/BillingAccount.php index 0b92690..8ee1ba1 100644 --- a/lib/Model/BillingAccount.php +++ b/lib/Model/BillingAccount.php @@ -85,6 +85,10 @@ public function isInitialized($property): bool * @var string */ protected $migrationStatus; + /** + * @var string + */ + protected $stripeAccount; /** * @var list */ @@ -319,6 +323,19 @@ public function setMigrationStatus(string $migrationStatus): self return $this; } + public function getStripeAccount(): string + { + return $this->stripeAccount; + } + + public function setStripeAccount(string $stripeAccount): self + { + $this->initialized['stripeAccount'] = true; + $this->stripeAccount = $stripeAccount; + + return $this; + } + /** * @return list */ diff --git a/lib/Model/CampaignsCampaignGuidAddURLsPostBody.php b/lib/Model/CampaignsCampaignGuidAddURLsPostBody.php new file mode 100644 index 0000000..9a6b877 --- /dev/null +++ b/lib/Model/CampaignsCampaignGuidAddURLsPostBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $file; + + public function getFile(): string + { + return $this->file; + } + + public function setFile(string $file): self + { + $this->initialized['file'] = true; + $this->file = $file; + + return $this; + } +} diff --git a/lib/Model/CreateCustomerResponse.php b/lib/Model/CreateCustomerResponse.php index 9392456..d2d2607 100644 --- a/lib/Model/CreateCustomerResponse.php +++ b/lib/Model/CreateCustomerResponse.php @@ -28,7 +28,7 @@ public function isInitialized($property): bool /** * @var string */ - protected $object; + protected $customer; /** * @var string */ @@ -47,15 +47,15 @@ public function setId(string $id): self return $this; } - public function getObject(): string + public function getCustomer(): string { - return $this->object; + return $this->customer; } - public function setObject(string $object): self + public function setCustomer(string $customer): self { - $this->initialized['object'] = true; - $this->object = $object; + $this->initialized['customer'] = true; + $this->customer = $customer; return $this; } diff --git a/lib/Model/FullShorten.php b/lib/Model/FullShorten.php index 40c7f14..25f8e4a 100644 --- a/lib/Model/FullShorten.php +++ b/lib/Model/FullShorten.php @@ -54,13 +54,13 @@ public function isInitialized($property): bool */ protected $forceNewLink; /** - * Custom keyword for creating keyword overrides. If provided, creates an override at domain/keyword. + * Custom keyword for creating keyword overrides. If provided, creates an override at domain/keyword. Cannot use bit.ly domain. * * @var string */ protected $keyword; /** - * Existing bitlink ID to add a keyword override to. Format: domain/hash. Cannot be used with long_url. + * Existing bitlink ID to add a keyword override to. Format: domain/hash. Cannot be used with long_url. Cannot use bit.ly domain. * * @var string */ @@ -182,7 +182,7 @@ public function setForceNewLink(bool $forceNewLink): self } /** - * Custom keyword for creating keyword overrides. If provided, creates an override at domain/keyword. + * Custom keyword for creating keyword overrides. If provided, creates an override at domain/keyword. Cannot use bit.ly domain. */ public function getKeyword(): string { @@ -190,7 +190,7 @@ public function getKeyword(): string } /** - * Custom keyword for creating keyword overrides. If provided, creates an override at domain/keyword. + * Custom keyword for creating keyword overrides. If provided, creates an override at domain/keyword. Cannot use bit.ly domain. */ public function setKeyword(string $keyword): self { @@ -201,7 +201,7 @@ public function setKeyword(string $keyword): self } /** - * Existing bitlink ID to add a keyword override to. Format: domain/hash. Cannot be used with long_url. + * Existing bitlink ID to add a keyword override to. Format: domain/hash. Cannot be used with long_url. Cannot use bit.ly domain. */ public function getBitlinkId(): string { @@ -209,7 +209,7 @@ public function getBitlinkId(): string } /** - * Existing bitlink ID to add a keyword override to. Format: domain/hash. Cannot be used with long_url. + * Existing bitlink ID to add a keyword override to. Format: domain/hash. Cannot be used with long_url. Cannot use bit.ly domain. */ public function setBitlinkId(string $bitlinkId): self { diff --git a/lib/Model/GroupsGroupGuidLinksClicksDevicesGetResponse200.php b/lib/Model/GroupsGroupGuidLinksClicksDevicesGetResponse200.php new file mode 100644 index 0000000..5036a1c --- /dev/null +++ b/lib/Model/GroupsGroupGuidLinksClicksDevicesGetResponse200.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var string + */ + protected $unit; + /** + * @var int + */ + protected $units; + /** + * @var string + */ + protected $facet; + /** + * @var string + */ + protected $unitReference; + /** + * @var list + */ + protected $metrics; + + public function getUnit(): string + { + return $this->unit; + } + + public function setUnit(string $unit): self + { + $this->initialized['unit'] = true; + $this->unit = $unit; + + return $this; + } + + public function getUnits(): int + { + return $this->units; + } + + public function setUnits(int $units): self + { + $this->initialized['units'] = true; + $this->units = $units; + + return $this; + } + + public function getFacet(): string + { + return $this->facet; + } + + public function setFacet(string $facet): self + { + $this->initialized['facet'] = true; + $this->facet = $facet; + + return $this; + } + + public function getUnitReference(): string + { + return $this->unitReference; + } + + public function setUnitReference(string $unitReference): self + { + $this->initialized['unitReference'] = true; + $this->unitReference = $unitReference; + + return $this; + } + + /** + * @return list + */ + public function getMetrics(): array + { + return $this->metrics; + } + + /** + * @param list $metrics + */ + public function setMetrics(array $metrics): self + { + $this->initialized['metrics'] = true; + $this->metrics = $metrics; + + return $this; + } +} diff --git a/lib/Model/GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItem.php b/lib/Model/GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItem.php new file mode 100644 index 0000000..ccf59cb --- /dev/null +++ b/lib/Model/GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItem.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var int + */ + protected $clicks; + /** + * @var string + */ + protected $value; + + public function getClicks(): int + { + return $this->clicks; + } + + public function setClicks(int $clicks): self + { + $this->initialized['clicks'] = true; + $this->clicks = $clicks; + + return $this; + } + + public function getValue(): string + { + return $this->value; + } + + public function setValue(string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } +} diff --git a/lib/Model/GroupsGroupGuidPagesOverviewGetResponse200.php b/lib/Model/GroupsGroupGuidPagesOverviewGetResponse200.php new file mode 100644 index 0000000..2bf5dd6 --- /dev/null +++ b/lib/Model/GroupsGroupGuidPagesOverviewGetResponse200.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var float + */ + protected $views; + /** + * @var float + */ + protected $clicks; + /** + * @var string + */ + protected $info; + + public function getViews(): float + { + return $this->views; + } + + public function setViews(float $views): self + { + $this->initialized['views'] = true; + $this->views = $views; + + return $this; + } + + public function getClicks(): float + { + return $this->clicks; + } + + public function setClicks(float $clicks): self + { + $this->initialized['clicks'] = true; + $this->clicks = $clicks; + + return $this; + } + + public function getInfo(): string + { + return $this->info; + } + + public function setInfo(string $info): self + { + $this->initialized['info'] = true; + $this->info = $info; + + return $this; + } +} diff --git a/lib/Model/Invitation.php b/lib/Model/Invitation.php index e5649ac..b9d0ef6 100644 --- a/lib/Model/Invitation.php +++ b/lib/Model/Invitation.php @@ -37,6 +37,12 @@ public function isInitialized($property): bool * @var string */ protected $created; + /** + * login of the user who sent the invitation. + * + * @var string + */ + protected $invitedBy; public function getEmail(): string { @@ -95,4 +101,23 @@ public function setCreated(string $created): self return $this; } + + /** + * login of the user who sent the invitation. + */ + public function getInvitedBy(): string + { + return $this->invitedBy; + } + + /** + * login of the user who sent the invitation. + */ + public function setInvitedBy(string $invitedBy): self + { + $this->initialized['invitedBy'] = true; + $this->invitedBy = $invitedBy; + + return $this; + } } diff --git a/lib/Model/LaunchpadContentBitlinkRequestContent.php b/lib/Model/LaunchpadContentBitlinkRequestContent.php index 21ab19c..4297087 100644 --- a/lib/Model/LaunchpadContentBitlinkRequestContent.php +++ b/lib/Model/LaunchpadContentBitlinkRequestContent.php @@ -28,11 +28,11 @@ public function isInitialized($property): bool /** * @var string */ - protected $bitlink; + protected $bitlinkId; /** * @var string */ - protected $title; + protected $linkTitle; public function getDescription(): string { @@ -47,28 +47,28 @@ public function setDescription(string $description): self return $this; } - public function getBitlink(): string + public function getBitlinkId(): string { - return $this->bitlink; + return $this->bitlinkId; } - public function setBitlink(string $bitlink): self + public function setBitlinkId(string $bitlinkId): self { - $this->initialized['bitlink'] = true; - $this->bitlink = $bitlink; + $this->initialized['bitlinkId'] = true; + $this->bitlinkId = $bitlinkId; return $this; } - public function getTitle(): string + public function getLinkTitle(): string { - return $this->title; + return $this->linkTitle; } - public function setTitle(string $title): self + public function setLinkTitle(string $linkTitle): self { - $this->initialized['title'] = true; - $this->title = $title; + $this->initialized['linkTitle'] = true; + $this->linkTitle = $linkTitle; return $this; } diff --git a/lib/Model/LinksBitlinkDestinationsPutBody.php b/lib/Model/LinksBitlinkDestinationsPutBody.php new file mode 100644 index 0000000..570e41b --- /dev/null +++ b/lib/Model/LinksBitlinkDestinationsPutBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var LinkDestination + */ + protected $destinations; + + public function getDestinations(): LinkDestination + { + return $this->destinations; + } + + public function setDestinations(LinkDestination $destinations): self + { + $this->initialized['destinations'] = true; + $this->destinations = $destinations; + + return $this; + } +} diff --git a/lib/Normalizer/AggregateLaunchpadsOverviewGetResponse200Normalizer.php b/lib/Normalizer/AggregateLaunchpadsOverviewGetResponse200Normalizer.php new file mode 100644 index 0000000..4b4e5f7 --- /dev/null +++ b/lib/Normalizer/AggregateLaunchpadsOverviewGetResponse200Normalizer.php @@ -0,0 +1,104 @@ +setViews($data['views']); + unset($data['views']); + } + if (\array_key_exists('clicks', $data)) { + $object->setClicks($data['clicks']); + unset($data['clicks']); + } + if (\array_key_exists('info', $data)) { + $object->setInfo($data['info']); + unset($data['info']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $dataArray = []; + if ($data->isInitialized('views') && null !== $data->getViews()) { + $dataArray['views'] = $data->getViews(); + } + if ($data->isInitialized('clicks') && null !== $data->getClicks()) { + $dataArray['clicks'] = $data->getClicks(); + } + if ($data->isInitialized('info') && null !== $data->getInfo()) { + $dataArray['info'] = $data->getInfo(); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $dataArray[$key] = $value; + } + } + + return $dataArray; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\Bitly\Model\AggregateLaunchpadsOverviewGetResponse200::class => false]; + } +} diff --git a/lib/Normalizer/AggregateSitesOverviewGetResponse200Normalizer.php b/lib/Normalizer/AggregateSitesOverviewGetResponse200Normalizer.php new file mode 100644 index 0000000..07b3a63 --- /dev/null +++ b/lib/Normalizer/AggregateSitesOverviewGetResponse200Normalizer.php @@ -0,0 +1,104 @@ +setViews($data['views']); + unset($data['views']); + } + if (\array_key_exists('clicks', $data)) { + $object->setClicks($data['clicks']); + unset($data['clicks']); + } + if (\array_key_exists('info', $data)) { + $object->setInfo($data['info']); + unset($data['info']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $dataArray = []; + if ($data->isInitialized('views') && null !== $data->getViews()) { + $dataArray['views'] = $data->getViews(); + } + if ($data->isInitialized('clicks') && null !== $data->getClicks()) { + $dataArray['clicks'] = $data->getClicks(); + } + if ($data->isInitialized('info') && null !== $data->getInfo()) { + $dataArray['info'] = $data->getInfo(); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $dataArray[$key] = $value; + } + } + + return $dataArray; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\Bitly\Model\AggregateSitesOverviewGetResponse200::class => false]; + } +} diff --git a/lib/Normalizer/BillingAccountNormalizer.php b/lib/Normalizer/BillingAccountNormalizer.php index 6caa930..c2da06f 100644 --- a/lib/Normalizer/BillingAccountNormalizer.php +++ b/lib/Normalizer/BillingAccountNormalizer.php @@ -112,6 +112,10 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setMigrationStatus($data['migration_status']); unset($data['migration_status']); } + if (\array_key_exists('stripe_account', $data)) { + $object->setStripeAccount($data['stripe_account']); + unset($data['stripe_account']); + } if (\array_key_exists('upcoming_subscriptions', $data)) { $values = []; foreach ($data['upcoming_subscriptions'] as $value) { @@ -197,6 +201,9 @@ public function normalize(mixed $data, ?string $format = null, array $context = if ($data->isInitialized('migrationStatus') && null !== $data->getMigrationStatus()) { $dataArray['migration_status'] = $data->getMigrationStatus(); } + if ($data->isInitialized('stripeAccount') && null !== $data->getStripeAccount()) { + $dataArray['stripe_account'] = $data->getStripeAccount(); + } if ($data->isInitialized('upcomingSubscriptions') && null !== $data->getUpcomingSubscriptions()) { $values = []; foreach ($data->getUpcomingSubscriptions() as $value) { diff --git a/lib/Normalizer/CampaignsCampaignGuidAddURLsPostBodyNormalizer.php b/lib/Normalizer/CampaignsCampaignGuidAddURLsPostBodyNormalizer.php new file mode 100644 index 0000000..7d6ec8e --- /dev/null +++ b/lib/Normalizer/CampaignsCampaignGuidAddURLsPostBodyNormalizer.php @@ -0,0 +1,84 @@ +setFile($data['file']); + unset($data['file']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $dataArray = []; + if ($data->isInitialized('file') && null !== $data->getFile()) { + $dataArray['file'] = $data->getFile(); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $dataArray[$key] = $value; + } + } + + return $dataArray; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\Bitly\Model\CampaignsCampaignGuidAddURLsPostBody::class => false]; + } +} diff --git a/lib/Normalizer/CreateCustomerResponseNormalizer.php b/lib/Normalizer/CreateCustomerResponseNormalizer.php index 6a51c21..56069a0 100644 --- a/lib/Normalizer/CreateCustomerResponseNormalizer.php +++ b/lib/Normalizer/CreateCustomerResponseNormalizer.php @@ -53,9 +53,9 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId($data['id']); unset($data['id']); } - if (\array_key_exists('object', $data)) { - $object->setObject($data['object']); - unset($data['object']); + if (\array_key_exists('customer', $data)) { + $object->setCustomer($data['customer']); + unset($data['customer']); } if (\array_key_exists('client_secret', $data)) { $object->setClientSecret($data['client_secret']); @@ -76,8 +76,8 @@ public function normalize(mixed $data, ?string $format = null, array $context = if ($data->isInitialized('id') && null !== $data->getId()) { $dataArray['id'] = $data->getId(); } - if ($data->isInitialized('object') && null !== $data->getObject()) { - $dataArray['object'] = $data->getObject(); + if ($data->isInitialized('customer') && null !== $data->getCustomer()) { + $dataArray['customer'] = $data->getCustomer(); } if ($data->isInitialized('clientSecret') && null !== $data->getClientSecret()) { $dataArray['client_secret'] = $data->getClientSecret(); diff --git a/lib/Normalizer/GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItemNormalizer.php b/lib/Normalizer/GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItemNormalizer.php new file mode 100644 index 0000000..a79ab9f --- /dev/null +++ b/lib/Normalizer/GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItemNormalizer.php @@ -0,0 +1,91 @@ +setClicks($data['clicks']); + unset($data['clicks']); + } + if (\array_key_exists('value', $data)) { + $object->setValue($data['value']); + unset($data['value']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $dataArray = []; + if ($data->isInitialized('clicks') && null !== $data->getClicks()) { + $dataArray['clicks'] = $data->getClicks(); + } + if ($data->isInitialized('value') && null !== $data->getValue()) { + $dataArray['value'] = $data->getValue(); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $dataArray[$key] = $value; + } + } + + return $dataArray; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItem::class => false]; + } +} diff --git a/lib/Normalizer/GroupsGroupGuidLinksClicksDevicesGetResponse200Normalizer.php b/lib/Normalizer/GroupsGroupGuidLinksClicksDevicesGetResponse200Normalizer.php new file mode 100644 index 0000000..481836c --- /dev/null +++ b/lib/Normalizer/GroupsGroupGuidLinksClicksDevicesGetResponse200Normalizer.php @@ -0,0 +1,120 @@ +setUnit($data['unit']); + unset($data['unit']); + } + if (\array_key_exists('units', $data)) { + $object->setUnits($data['units']); + unset($data['units']); + } + if (\array_key_exists('facet', $data)) { + $object->setFacet($data['facet']); + unset($data['facet']); + } + if (\array_key_exists('unit_reference', $data)) { + $object->setUnitReference($data['unit_reference']); + unset($data['unit_reference']); + } + if (\array_key_exists('metrics', $data)) { + $values = []; + foreach ($data['metrics'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItem::class, 'json', $context); + } + $object->setMetrics($values); + unset($data['metrics']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $dataArray = []; + if ($data->isInitialized('unit') && null !== $data->getUnit()) { + $dataArray['unit'] = $data->getUnit(); + } + if ($data->isInitialized('units') && null !== $data->getUnits()) { + $dataArray['units'] = $data->getUnits(); + } + if ($data->isInitialized('facet') && null !== $data->getFacet()) { + $dataArray['facet'] = $data->getFacet(); + } + if ($data->isInitialized('unitReference') && null !== $data->getUnitReference()) { + $dataArray['unit_reference'] = $data->getUnitReference(); + } + if ($data->isInitialized('metrics') && null !== $data->getMetrics()) { + $values = []; + foreach ($data->getMetrics() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $dataArray['metrics'] = $values; + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $dataArray[$key] = $value_1; + } + } + + return $dataArray; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200::class => false]; + } +} diff --git a/lib/Normalizer/GroupsGroupGuidPagesOverviewGetResponse200Normalizer.php b/lib/Normalizer/GroupsGroupGuidPagesOverviewGetResponse200Normalizer.php new file mode 100644 index 0000000..bfc7c75 --- /dev/null +++ b/lib/Normalizer/GroupsGroupGuidPagesOverviewGetResponse200Normalizer.php @@ -0,0 +1,104 @@ +setViews($data['views']); + unset($data['views']); + } + if (\array_key_exists('clicks', $data)) { + $object->setClicks($data['clicks']); + unset($data['clicks']); + } + if (\array_key_exists('info', $data)) { + $object->setInfo($data['info']); + unset($data['info']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $dataArray = []; + if ($data->isInitialized('views') && null !== $data->getViews()) { + $dataArray['views'] = $data->getViews(); + } + if ($data->isInitialized('clicks') && null !== $data->getClicks()) { + $dataArray['clicks'] = $data->getClicks(); + } + if ($data->isInitialized('info') && null !== $data->getInfo()) { + $dataArray['info'] = $data->getInfo(); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $dataArray[$key] = $value; + } + } + + return $dataArray; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\Bitly\Model\GroupsGroupGuidPagesOverviewGetResponse200::class => false]; + } +} diff --git a/lib/Normalizer/InvitationNormalizer.php b/lib/Normalizer/InvitationNormalizer.php index 1c70254..dd9b1c5 100644 --- a/lib/Normalizer/InvitationNormalizer.php +++ b/lib/Normalizer/InvitationNormalizer.php @@ -73,6 +73,10 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setCreated($data['created']); unset($data['created']); } + if (\array_key_exists('invited_by', $data)) { + $object->setInvitedBy($data['invited_by']); + unset($data['invited_by']); + } foreach ($data as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $object[$key_1] = $value_2; @@ -101,6 +105,9 @@ public function normalize(mixed $data, ?string $format = null, array $context = if ($data->isInitialized('created') && null !== $data->getCreated()) { $dataArray['created'] = $data->getCreated(); } + if ($data->isInitialized('invitedBy') && null !== $data->getInvitedBy()) { + $dataArray['invited_by'] = $data->getInvitedBy(); + } foreach ($data as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { $dataArray[$key_1] = $value_2; diff --git a/lib/Normalizer/JaneObjectNormalizer.php b/lib/Normalizer/JaneObjectNormalizer.php index f71202a..a2754f6 100644 --- a/lib/Normalizer/JaneObjectNormalizer.php +++ b/lib/Normalizer/JaneObjectNormalizer.php @@ -1160,6 +1160,20 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \Bitly\Model\Gone::class => GoneNormalizer::class, + \Bitly\Model\LinksBitlinkDestinationsPutBody::class => LinksBitlinkDestinationsPutBodyNormalizer::class, + + \Bitly\Model\CampaignsCampaignGuidAddURLsPostBody::class => CampaignsCampaignGuidAddURLsPostBodyNormalizer::class, + + \Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200::class => GroupsGroupGuidLinksClicksDevicesGetResponse200Normalizer::class, + + \Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItem::class => GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItemNormalizer::class, + + \Bitly\Model\GroupsGroupGuidPagesOverviewGetResponse200::class => GroupsGroupGuidPagesOverviewGetResponse200Normalizer::class, + + \Bitly\Model\AggregateSitesOverviewGetResponse200::class => AggregateSitesOverviewGetResponse200Normalizer::class, + + \Bitly\Model\AggregateLaunchpadsOverviewGetResponse200::class => AggregateLaunchpadsOverviewGetResponse200Normalizer::class, + \Jane\Component\JsonSchemaRuntime\Reference::class => \Bitly\Runtime\Normalizer\ReferenceNormalizer::class, ]; protected $normalizersCache = []; @@ -1775,6 +1789,13 @@ public function getSupportedTypes(?string $format = null): array \Bitly\Model\Timeout::class => false, \Bitly\Model\Unauthorized::class => false, \Bitly\Model\Gone::class => false, + \Bitly\Model\LinksBitlinkDestinationsPutBody::class => false, + \Bitly\Model\CampaignsCampaignGuidAddURLsPostBody::class => false, + \Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200::class => false, + \Bitly\Model\GroupsGroupGuidLinksClicksDevicesGetResponse200MetricsItem::class => false, + \Bitly\Model\GroupsGroupGuidPagesOverviewGetResponse200::class => false, + \Bitly\Model\AggregateSitesOverviewGetResponse200::class => false, + \Bitly\Model\AggregateLaunchpadsOverviewGetResponse200::class => false, \Jane\Component\JsonSchemaRuntime\Reference::class => false, ]; } diff --git a/lib/Normalizer/LaunchpadContentBitlinkRequestContentNormalizer.php b/lib/Normalizer/LaunchpadContentBitlinkRequestContentNormalizer.php index b8e6013..9bec286 100644 --- a/lib/Normalizer/LaunchpadContentBitlinkRequestContentNormalizer.php +++ b/lib/Normalizer/LaunchpadContentBitlinkRequestContentNormalizer.php @@ -53,13 +53,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setDescription($data['description']); unset($data['description']); } - if (\array_key_exists('bitlink', $data)) { - $object->setBitlink($data['bitlink']); - unset($data['bitlink']); + if (\array_key_exists('bitlink_id', $data)) { + $object->setBitlinkId($data['bitlink_id']); + unset($data['bitlink_id']); } - if (\array_key_exists('title', $data)) { - $object->setTitle($data['title']); - unset($data['title']); + if (\array_key_exists('link_title', $data)) { + $object->setLinkTitle($data['link_title']); + unset($data['link_title']); } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -76,11 +76,11 @@ public function normalize(mixed $data, ?string $format = null, array $context = if ($data->isInitialized('description') && null !== $data->getDescription()) { $dataArray['description'] = $data->getDescription(); } - if ($data->isInitialized('bitlink') && null !== $data->getBitlink()) { - $dataArray['bitlink'] = $data->getBitlink(); + if ($data->isInitialized('bitlinkId') && null !== $data->getBitlinkId()) { + $dataArray['bitlink_id'] = $data->getBitlinkId(); } - if ($data->isInitialized('title') && null !== $data->getTitle()) { - $dataArray['title'] = $data->getTitle(); + if ($data->isInitialized('linkTitle') && null !== $data->getLinkTitle()) { + $dataArray['link_title'] = $data->getLinkTitle(); } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { diff --git a/lib/Normalizer/LinksBitlinkDestinationsPutBodyNormalizer.php b/lib/Normalizer/LinksBitlinkDestinationsPutBodyNormalizer.php new file mode 100644 index 0000000..7cbe6f3 --- /dev/null +++ b/lib/Normalizer/LinksBitlinkDestinationsPutBodyNormalizer.php @@ -0,0 +1,84 @@ +setDestinations($this->denormalizer->denormalize($data['destinations'], \Bitly\Model\LinkDestination::class, 'json', $context)); + unset($data['destinations']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $dataArray = []; + if ($data->isInitialized('destinations') && null !== $data->getDestinations()) { + $dataArray['destinations'] = $this->normalizer->normalize($data->getDestinations(), 'json', $context); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $dataArray[$key] = $value; + } + } + + return $dataArray; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\Bitly\Model\LinksBitlinkDestinationsPutBody::class => false]; + } +}